Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
95168bf1
Unverified
Commit
95168bf1
authored
Dec 12, 2023
by
Jiachi Liu
Committed by
GitHub
Dec 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix third party typings (#59503)
parent
bd5157c7
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
11 deletions
+12
-11
google.d.ts
packages/third-parties/google.d.ts
+1
-1
package.json
packages/third-parties/package.json
+2
-1
ThirdPartyScriptEmbed.tsx
packages/third-parties/src/ThirdPartyScriptEmbed.tsx
+2
-2
google-maps-embed.tsx
packages/third-parties/src/google/google-maps-embed.tsx
+0
-1
google.ts
packages/third-parties/src/types/google.ts
+6
-5
page.tsx
test/e2e/app-dir/third-parties/app/ga/page.tsx
+1
-1
page.tsx
.../e2e/app-dir/third-parties/app/google-maps-embed/page.tsx
+0
-0
page.tsx
test/e2e/app-dir/third-parties/app/gtm/page.tsx
+0
-0
page.tsx
test/e2e/app-dir/third-parties/app/youtube-embed/page.tsx
+0
-0
No files found.
packages/third-parties/google.d.ts
View file @
95168bf1
export
*
from
'./dist/
types
/index'
export
*
from
'./dist/
google
/index'
packages/third-parties/package.json
View file @
95168bf1
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
}
}
},
},
"files"
:
[
"files"
:
[
"dist"
"dist"
,
"google.d.ts"
],
],
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"scripts"
:
{
"scripts"
:
{
...
...
packages/third-parties/src/ThirdPartyScriptEmbed.tsx
View file @
95168bf1
...
@@ -4,8 +4,8 @@ import React, { useEffect } from 'react'
...
@@ -4,8 +4,8 @@ import React, { useEffect } from 'react'
export
type
ScriptEmbed
=
{
export
type
ScriptEmbed
=
{
html
?:
string
|
null
html
?:
string
|
null
height
?:
number
|
null
height
?:
string
|
number
|
null
width
?:
number
|
null
width
?:
string
|
number
|
null
children
?:
React
.
ReactElement
|
React
.
ReactElement
[]
children
?:
React
.
ReactElement
|
React
.
ReactElement
[]
dataNtpc
?:
string
dataNtpc
?:
string
}
}
...
...
packages/third-parties/src/google/google-maps-embed.tsx
View file @
95168bf1
import
React
from
'react'
import
{
GoogleMapsEmbed
as
TPCGoogleMapEmbed
}
from
'third-party-capital'
import
{
GoogleMapsEmbed
as
TPCGoogleMapEmbed
}
from
'third-party-capital'
import
ThirdPartyScriptEmbed
from
'../ThirdPartyScriptEmbed'
import
ThirdPartyScriptEmbed
from
'../ThirdPartyScriptEmbed'
...
...
packages/third-parties/src/types/google.ts
View file @
95168bf1
...
@@ -19,14 +19,15 @@ export type GAParams = {
...
@@ -19,14 +19,15 @@ export type GAParams = {
}
}
export
type
GoogleMapsEmbed
=
{
export
type
GoogleMapsEmbed
=
{
height
?:
number
height
?:
number
|
string
width
?:
number
width
?:
number
|
string
mode
:
'place'
|
'view'
|
'directions'
|
'streetview'
|
'search'
mode
:
'place'
|
'view'
|
'directions'
|
'streetview'
|
'search'
apiKey
:
string
apiKey
:
string
style
:
string
style
?
:
string
allowfullscreen
:
boolean
allowfullscreen
?
:
boolean
loading
:
'eager'
|
'lazy'
loading
?
:
'eager'
|
'lazy'
q
?:
string
q
?:
string
id
?:
string
center
?:
string
center
?:
string
zoom
?:
string
zoom
?:
string
maptype
?:
string
maptype
?:
string
...
...
test/e2e/app-dir/third-parties/app/ga/page.
js
→
test/e2e/app-dir/third-parties/app/ga/page.
tsx
View file @
95168bf1
...
@@ -9,7 +9,7 @@ const Page = () => {
...
@@ -9,7 +9,7 @@ const Page = () => {
}
}
return
(
return
(
<
div
class
=
"container"
>
<
div
class
Name
=
"container"
>
<
GoogleAnalytics
gaId=
"GA-XYZ"
/>
<
GoogleAnalytics
gaId=
"GA-XYZ"
/>
<
h1
>
GA
</
h1
>
<
h1
>
GA
</
h1
>
<
button
id=
"ga-send"
onClick=
{
onClick
}
>
<
button
id=
"ga-send"
onClick=
{
onClick
}
>
...
...
test/e2e/app-dir/third-parties/app/google-maps-embed/page.
js
→
test/e2e/app-dir/third-parties/app/google-maps-embed/page.
tsx
View file @
95168bf1
File moved
test/e2e/app-dir/third-parties/app/gtm/page.
js
→
test/e2e/app-dir/third-parties/app/gtm/page.
tsx
View file @
95168bf1
File moved
test/e2e/app-dir/third-parties/app/youtube-embed/page.
js
→
test/e2e/app-dir/third-parties/app/youtube-embed/page.
tsx
View file @
95168bf1
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment