@next/third-parties 15.0.0-canary.15 → 15.0.0-canary.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = ThirdPartyScriptEmbed;
|
|
4
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
6
|
const react_1 = require("react");
|
|
6
7
|
function ThirdPartyScriptEmbed({ html, height = null, width = null, children, dataNtpc = '', }) {
|
|
@@ -21,4 +22,3 @@ function ThirdPartyScriptEmbed({ html, height = null, width = null, children, da
|
|
|
21
22
|
width: width != null ? `${width}px` : 'auto',
|
|
22
23
|
}, "data-ntpc": dataNtpc, dangerouslySetInnerHTML: { __html: html } })) : null] }));
|
|
23
24
|
}
|
|
24
|
-
exports.default = ThirdPartyScriptEmbed;
|
package/dist/google/ga.js
CHANGED
|
@@ -4,7 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.GoogleAnalytics = GoogleAnalytics;
|
|
8
|
+
exports.sendGAEvent = sendGAEvent;
|
|
8
9
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
10
|
// TODO: Evaluate import 'client only'
|
|
10
11
|
const react_1 = require("react");
|
|
@@ -35,7 +36,6 @@ function GoogleAnalytics(props) {
|
|
|
35
36
|
gtag('config', '${gaId}');`,
|
|
36
37
|
} }), (0, jsx_runtime_1.jsx)(script_1.default, { id: "_next-ga", src: `https://www.googletagmanager.com/gtag/js?id=${gaId}` })] }));
|
|
37
38
|
}
|
|
38
|
-
exports.GoogleAnalytics = GoogleAnalytics;
|
|
39
39
|
function sendGAEvent(..._args) {
|
|
40
40
|
if (currDataLayerName === undefined) {
|
|
41
41
|
console.warn(`@next/third-parties: GA has not been initialized`);
|
|
@@ -48,4 +48,3 @@ function sendGAEvent(..._args) {
|
|
|
48
48
|
console.warn(`@next/third-parties: GA dataLayer ${currDataLayerName} does not exist`);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
exports.sendGAEvent = sendGAEvent;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = GoogleMapsEmbed;
|
|
6
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
8
|
const third_party_capital_1 = require("third-party-capital");
|
|
8
9
|
const ThirdPartyScriptEmbed_1 = __importDefault(require("../ThirdPartyScriptEmbed"));
|
|
@@ -12,4 +13,3 @@ function GoogleMapsEmbed(props) {
|
|
|
12
13
|
const { html } = (0, third_party_capital_1.GoogleMapsEmbed)(formattedProps);
|
|
13
14
|
return ((0, jsx_runtime_1.jsx)(ThirdPartyScriptEmbed_1.default, { height: formattedProps.height || null, width: formattedProps.width || null, html: html, dataNtpc: "GoogleMapsEmbed" }));
|
|
14
15
|
}
|
|
15
|
-
exports.default = GoogleMapsEmbed;
|
package/dist/google/gtm.js
CHANGED
|
@@ -4,7 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.sendGTMEvent =
|
|
7
|
+
exports.sendGTMEvent = void 0;
|
|
8
|
+
exports.GoogleTagManager = GoogleTagManager;
|
|
8
9
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
10
|
// TODO: Evaluate import 'client only'
|
|
10
11
|
const react_1 = require("react");
|
|
@@ -38,7 +39,6 @@ function GoogleTagManager(props) {
|
|
|
38
39
|
})(window,'${dataLayerName}');`,
|
|
39
40
|
} }), (0, jsx_runtime_1.jsx)(script_1.default, { id: "_next-gtm", "data-ntpc": "GTM", src: `https://www.googletagmanager.com/gtm.js?id=${gtmId}${gtmLayer}${gtmAuth}${gtmPreview}` })] }));
|
|
40
41
|
}
|
|
41
|
-
exports.GoogleTagManager = GoogleTagManager;
|
|
42
42
|
const sendGTMEvent = (data) => {
|
|
43
43
|
if (currDataLayerName === undefined) {
|
|
44
44
|
console.warn(`@next/third-parties: GTM has not been initialized`);
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = YouTubeEmbed;
|
|
6
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
8
|
const script_1 = __importDefault(require("next/script"));
|
|
8
9
|
const third_party_capital_1 = require("third-party-capital");
|
|
@@ -17,4 +18,3 @@ function YouTubeEmbed(props) {
|
|
|
17
18
|
const { html, scripts, stylesheets } = (0, third_party_capital_1.YouTubeEmbed)(props);
|
|
18
19
|
return ((0, jsx_runtime_1.jsx)(ThirdPartyScriptEmbed_1.default, { height: props.height || null, width: props.width || null, html: html, dataNtpc: "YouTubeEmbed", children: scripts === null || scripts === void 0 ? void 0 : scripts.map((script) => ((0, jsx_runtime_1.jsx)(script_1.default, { src: script.url, strategy: scriptStrategy[script.strategy], stylesheets: stylesheets }, script.url))) }));
|
|
19
20
|
}
|
|
20
|
-
exports.default = YouTubeEmbed;
|
package/dist/types/google.d.ts
CHANGED
|
@@ -4,9 +4,14 @@ declare global {
|
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
+
type JSONValue = string | number | boolean | JSONValue[] | {
|
|
8
|
+
[key: string]: JSONValue;
|
|
9
|
+
};
|
|
7
10
|
export type GTMParams = {
|
|
8
11
|
gtmId: string;
|
|
9
|
-
dataLayer?:
|
|
12
|
+
dataLayer?: {
|
|
13
|
+
[key: string]: JSONValue;
|
|
14
|
+
};
|
|
10
15
|
dataLayerName?: string;
|
|
11
16
|
auth?: string;
|
|
12
17
|
preview?: string;
|
|
@@ -39,3 +44,4 @@ export type YouTubeEmbed = {
|
|
|
39
44
|
params?: string;
|
|
40
45
|
style?: string;
|
|
41
46
|
};
|
|
47
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/third-parties",
|
|
3
|
-
"version": "15.0.0-canary.
|
|
3
|
+
"version": "15.0.0-canary.151",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "vercel/next.js",
|
|
6
6
|
"directory": "packages/third-parties"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"third-party-capital": "1.0.20"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"next": "15.0.0-canary.
|
|
29
|
+
"next": "15.0.0-canary.151",
|
|
30
30
|
"outdent": "0.8.0",
|
|
31
31
|
"prettier": "2.5.1"
|
|
32
32
|
},
|