react-gtm-ts
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -1,12 +0,9 @@ | ||
type GTMInitProps = { | ||
GTMCode: string; | ||
declare const ReactTagManager: { | ||
init: (GTMCode: string) => void; | ||
action: ({ event, ...more }: { | ||
[key: string]: string; | ||
event: string; | ||
}) => void; | ||
}; | ||
declare const GTMInit: ({ GTMCode }: GTMInitProps) => void; | ||
type GTMActionProps = { | ||
event: string; | ||
[key: string]: string; | ||
}; | ||
declare const GTMAction: ({ event, ...more }: GTMActionProps) => void; | ||
export { GTMAction, GTMInit }; | ||
export { ReactTagManager }; |
@@ -23,4 +23,3 @@ "use strict"; | ||
__export(src_exports, { | ||
GTMAction: () => GTMAction, | ||
GTMInit: () => GTMInit | ||
ReactTagManager: () => ReactTagManager | ||
}); | ||
@@ -30,3 +29,3 @@ module.exports = __toCommonJS(src_exports); | ||
// src/features/init/index.ts | ||
var GTMInit = ({ GTMCode }) => { | ||
var init = (GTMCode) => { | ||
if (typeof window === "undefined") | ||
@@ -45,3 +44,3 @@ return; | ||
// src/features/action/index.ts | ||
var GTMAction = ({ event, ...more }) => { | ||
var action = ({ event, ...more }) => { | ||
if (typeof window === "undefined") | ||
@@ -54,6 +53,11 @@ return; | ||
}; | ||
// src/features/index.ts | ||
var ReactTagManager = { | ||
init, | ||
action | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
GTMAction, | ||
GTMInit | ||
ReactTagManager | ||
}); |
@@ -5,3 +5,3 @@ { | ||
"license": "ISC", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"main": "./dist/index.js", | ||
@@ -8,0 +8,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is not supported yet
4579
95