@elgorditosalsero/react-gtm-hook
Advanced tools
Comparing version 2.7.1 to 2.7.2
import React, { Context, ReactNode } from 'react'; | ||
import { ISnippetsParams } from './models/GoogleTagManager'; | ||
import { ISendToGTM, ISnippetsParams } from './models/GoogleTagManager'; | ||
import { sendToGTM } from './utils/GoogleTagManager'; | ||
@@ -32,3 +32,3 @@ declare global { | ||
export declare const GTMContext: React.Context<ISnippetsParams | undefined>; | ||
export declare const GTMContextDispatch: React.Context<(({ dataLayerName, data }: import("./models/GoogleTagManager").ISendToGTM) => void) | undefined>; | ||
export declare const GTMContextDispatch: React.Context<((data: ISendToGTM['data']) => void) | undefined>; | ||
/** | ||
@@ -38,3 +38,3 @@ * The Google Tag Manager Provider | ||
declare function GTMProvider({ state, children }: GTMHookProviderProps): JSX.Element; | ||
declare function useGTMDispatch(): ({ dataLayerName, data }: import("./models/GoogleTagManager").ISendToGTM) => void; | ||
declare function useGTMDispatch(): (data: object) => void; | ||
export { GTMProvider, useGTMDispatch, sendToGTM }; |
@@ -57,3 +57,3 @@ /** | ||
dataLayerName: string; | ||
data: Object; | ||
data: object; | ||
}; |
@@ -14,3 +14,3 @@ { | ||
"description": "Easily manage the Google Tag Manager via Hook", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"license": "MIT", | ||
@@ -17,0 +17,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73487