@xylabs/sdk-react 2.10.5 → 2.11.2
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.
- package/dist/WithChildren.d.ts +4 -0
- package/dist/WithChildren.js +2 -0
- package/dist/WithChildren.js.map +1 -0
- package/dist/cjs5/WithChildren.d.ts +4 -0
- package/dist/cjs5/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +2 -0
- package/dist/cjs5/components/Pixel/PixelDebuggerProvider.d.ts +2 -1
- package/dist/cjs5/contexts/CookieConsent/Loader.d.ts +2 -1
- package/dist/cjs5/contexts/Ethers/Loader.d.ts +4 -4
- package/dist/cjs5/contexts/NetworkSettings/Loader.d.ts +4 -4
- package/dist/cjs5/contexts/UserEvents/Provider.d.ts +4 -4
- package/dist/cjs5/index.d.ts +1 -0
- package/dist/cjs5/index.js +19 -4
- package/dist/cjs5/index.js.map +1 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +2 -0
- package/dist/components/Pixel/PixelDebuggerProvider.d.ts +2 -1
- package/dist/components/Pixel/PixelDebuggerProvider.js.map +1 -1
- package/dist/contexts/CookieConsent/Loader.d.ts +2 -1
- package/dist/contexts/CookieConsent/Loader.js.map +1 -1
- package/dist/contexts/Ethers/Loader.d.ts +4 -4
- package/dist/contexts/Ethers/Loader.js.map +1 -1
- package/dist/contexts/NetworkSettings/Loader.d.ts +4 -4
- package/dist/contexts/NetworkSettings/Loader.js.map +1 -1
- package/dist/contexts/UserEvents/Provider.d.ts +4 -4
- package/dist/contexts/UserEvents/Provider.js +1 -1
- package/dist/contexts/UserEvents/Provider.js.map +1 -1
- package/dist/esm2015/WithChildren.d.ts +4 -0
- package/dist/esm2015/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +2 -0
- package/dist/esm2015/components/Pixel/PixelDebuggerProvider.d.ts +2 -1
- package/dist/esm2015/contexts/CookieConsent/Loader.d.ts +2 -1
- package/dist/esm2015/contexts/Ethers/Loader.d.ts +4 -4
- package/dist/esm2015/contexts/NetworkSettings/Loader.d.ts +4 -4
- package/dist/esm2015/contexts/UserEvents/Provider.d.ts +4 -4
- package/dist/esm2015/index.d.ts +1 -0
- package/dist/esm2015/index.js +19 -4
- package/dist/esm2015/index.js.map +1 -1
- package/dist/esm2017/WithChildren.d.ts +4 -0
- package/dist/esm2017/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +2 -0
- package/dist/esm2017/components/Pixel/PixelDebuggerProvider.d.ts +2 -1
- package/dist/esm2017/contexts/CookieConsent/Loader.d.ts +2 -1
- package/dist/esm2017/contexts/Ethers/Loader.d.ts +4 -4
- package/dist/esm2017/contexts/NetworkSettings/Loader.d.ts +4 -4
- package/dist/esm2017/contexts/UserEvents/Provider.d.ts +4 -4
- package/dist/esm2017/index.d.ts +1 -0
- package/dist/esm2017/index.js +19 -4
- package/dist/esm2017/index.js.map +1 -1
- package/dist/esm5/WithChildren.d.ts +4 -0
- package/dist/esm5/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +2 -0
- package/dist/esm5/components/Pixel/PixelDebuggerProvider.d.ts +2 -1
- package/dist/esm5/contexts/CookieConsent/Loader.d.ts +2 -1
- package/dist/esm5/contexts/Ethers/Loader.d.ts +4 -4
- package/dist/esm5/contexts/NetworkSettings/Loader.d.ts +4 -4
- package/dist/esm5/contexts/UserEvents/Provider.d.ts +4 -4
- package/dist/esm5/index.d.ts +1 -0
- package/dist/esm5/index.js +19 -4
- package/dist/esm5/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/Tracking/Drip/BaseEvent.js +4 -1
- package/dist/lib/Tracking/Drip/BaseEvent.js.map +1 -1
- package/dist/lib/Tracking/Facebook/Fbq.js +2 -1
- package/dist/lib/Tracking/Facebook/Fbq.js.map +1 -1
- package/dist/lib/Tracking/Google/Gtag.js +4 -1
- package/dist/lib/Tracking/Google/Gtag.js.map +1 -1
- package/dist/lib/Tracking/Reddit/Rdt.js +2 -1
- package/dist/lib/Tracking/Reddit/Rdt.js.map +1 -1
- package/dist/lib/Tracking/Snapchat/Snaptr.js +2 -1
- package/dist/lib/Tracking/Snapchat/Snaptr.js.map +1 -1
- package/dist/lib/Tracking/Tapjoy/EF.js +2 -1
- package/dist/lib/Tracking/Tapjoy/EF.js.map +1 -1
- package/dist/lib/Tracking/Tiktok/Ttq.js +2 -1
- package/dist/lib/Tracking/Tiktok/Ttq.js.map +1 -1
- package/dist/node/WithChildren.d.ts +4 -0
- package/dist/node/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +2 -0
- package/dist/node/components/Pixel/PixelDebuggerProvider.d.ts +2 -1
- package/dist/node/contexts/CookieConsent/Loader.d.ts +2 -1
- package/dist/node/contexts/Ethers/Loader.d.ts +4 -4
- package/dist/node/contexts/NetworkSettings/Loader.d.ts +4 -4
- package/dist/node/contexts/UserEvents/Provider.d.ts +4 -4
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +19 -4
- package/dist/node/index.js.map +1 -1
- package/dist/node-esm/WithChildren.d.ts +4 -0
- package/dist/node-esm/components/InvertableThemeProvider/InvertableThemeProviderProps.d.ts +2 -0
- package/dist/node-esm/components/Pixel/PixelDebuggerProvider.d.ts +2 -1
- package/dist/node-esm/contexts/CookieConsent/Loader.d.ts +2 -1
- package/dist/node-esm/contexts/Ethers/Loader.d.ts +4 -4
- package/dist/node-esm/contexts/NetworkSettings/Loader.d.ts +4 -4
- package/dist/node-esm/contexts/UserEvents/Provider.d.ts +4 -4
- package/dist/node-esm/index.d.ts +1 -0
- package/dist/node-esm/index.js +19 -4
- package/dist/node-esm/index.js.map +1 -1
- package/package.json +18 -11
- package/src/WithChildren.ts +3 -0
- package/src/components/InvertableThemeProvider/InvertableThemeProviderProps.ts +2 -0
- package/src/components/Pixel/PixelDebuggerProvider.tsx +2 -1
- package/src/contexts/CookieConsent/Loader.tsx +2 -1
- package/src/contexts/Ethers/Loader.tsx +5 -2
- package/src/contexts/NetworkSettings/Loader.tsx +3 -3
- package/src/contexts/UserEvents/Provider.tsx +6 -3
- package/src/index.ts +1 -0
- package/src/lib/Tracking/Drip/BaseEvent.ts +4 -2
- package/src/lib/Tracking/Facebook/Fbq.ts +2 -2
- package/src/lib/Tracking/Google/Gtag.ts +4 -2
- package/src/lib/Tracking/Reddit/Rdt.ts +2 -2
- package/src/lib/Tracking/Snapchat/Snaptr.ts +2 -2
- package/src/lib/Tracking/Tapjoy/EF.ts +2 -1
- package/src/lib/Tracking/Tiktok/Ttq.ts +2 -2
- package/dist/cjs5/lib/global.d.ts +0 -2
- package/dist/esm2015/lib/global.d.ts +0 -2
- package/dist/esm2017/lib/global.d.ts +0 -2
- package/dist/esm5/lib/global.d.ts +0 -2
- package/dist/lib/global.d.ts +0 -2
- package/dist/lib/global.js +0 -4
- package/dist/lib/global.js.map +0 -1
- package/dist/node/lib/global.d.ts +0 -2
- package/dist/node-esm/lib/global.d.ts +0 -2
- package/src/lib/global.ts +0 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
interface InvertableThemeProviderProps {
|
|
3
4
|
dark?: boolean;
|
|
4
5
|
scoped?: boolean;
|
|
@@ -12,5 +13,6 @@ interface InvertableThemeProviderProps {
|
|
|
12
13
|
darkOptions?: ThemeOptions;
|
|
13
14
|
lightOptions?: ThemeOptions;
|
|
14
15
|
resolve?: boolean;
|
|
16
|
+
children?: ReactNode;
|
|
15
17
|
}
|
|
16
18
|
export type { InvertableThemeProviderProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PixelDebuggerProvider.js","sourceRoot":"","sources":["../../../src/components/Pixel/PixelDebuggerProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"PixelDebuggerProvider.js","sourceRoot":"","sources":["../../../src/components/Pixel/PixelDebuggerProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAG7C,MAAM,CAAC,MAAM,qBAAqB,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,eAAe,CAAU,kBAAkB,EAAE,KAAK,CAAC,CAAA;IACzF,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,gBACpE,QAAQ,IACuB,CACnC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/contexts/CookieConsent/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/contexts/CookieConsent/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAEhD,MAAM,+BAA+B,GAAG,iBAAiB,CAAA;AAEzD,MAAM,mBAAmB,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnE,MAAM,2BAA2B,GAAG,GAAG,EAAE;QACvC,OAAO,YAAY,CAAC,OAAO,CAAC,+BAA+B,CAAC,KAAK,MAAM,CAAA;IACzE,CAAC,CAAA;IACD,MAAM,yBAAyB,GAAG,CAAC,QAAiB,EAAE,EAAE;QACtD,YAAY,CAAC,OAAO,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IACpF,CAAC,CAAA;IACD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,2BAA2B,EAAE,CAAC,CAAA;IACvE,MAAM,kBAAkB,GAAG,CAAC,QAAiB,EAAE,EAAE;QAC/C,yBAAyB,CAAC,QAAQ,CAAC,CAAA;QACnC,WAAW,CAAC,QAAQ,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,YAAY,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAA;QACxD,WAAW,CAAC,2BAA2B,EAAE,CAAC,CAAA;IAC5C,CAAC,CAAA;IAED,OAAO,CACL,KAAC,oBAAoB,CAAC,QAAQ,kBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,+BAA+B,EAAE,gBAEhH,QAAQ,IACqB,CACjC,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
interface
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface EthersLoaderProps {
|
|
3
3
|
enabled?: boolean;
|
|
4
|
+
children?: ReactNode;
|
|
4
5
|
}
|
|
5
|
-
export declare const EthersLoader: React.FC<
|
|
6
|
-
export {};
|
|
6
|
+
export declare const EthersLoader: React.FC<EthersLoaderProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/contexts/Ethers/Loader.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/contexts/Ethers/Loader.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAO3C,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;;IACjE,8DAA8D;IAC9D,MAAM,MAAM,GAAG,MAAa,CAAA;IAC5B,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;IAE1B,IAAI,MAAA,MAAM,CAAC,QAAQ,0CAAE,UAAU,EAAE;QAC/B,OAAO,KAAC,oBAAoB,cAAE,QAAQ,GAAwB,CAAA;KAC/D;IAED,IAAI,MAAA,MAAM,CAAC,QAAQ,0CAAE,OAAO,EAAE;QAC5B,OAAO,KAAC,iBAAiB,cAAE,QAAQ,GAAqB,CAAA;KACzD;IAED,IAAI,MAAA,MAAM,CAAC,QAAQ,0CAAE,KAAK,EAAE;QAC1B,OAAO,KAAC,yBAAyB,cAAE,QAAQ,GAA6B,CAAA;KACzE;IAED,IAAI,CAAA,MAAA,MAAM,CAAC,QAAQ,0CAAE,YAAY,MAAK,OAAO,EAAE;QAC7C,OAAO,KAAC,iBAAiB,cAAE,QAAQ,GAAqB,CAAA;KACzD;IAED,IAAI,MAAM,CAAC,QAAQ,EAAE;QACnB,OAAO,KAAC,iBAAiB,cAAE,QAAQ,GAAqB,CAAA;KACzD;IAED,OAAO,KAAC,kBAAkB,cAAE,QAAQ,GAAsB,CAAA;AAC5D,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithChildren } from '../../WithChildren';
|
|
3
|
+
export interface NetworkSettingsLoaderProps {
|
|
3
4
|
enabled?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare const NetworkSettingsLoader: React.FC<
|
|
6
|
-
export {};
|
|
6
|
+
export declare const NetworkSettingsLoader: React.FC<WithChildren<NetworkSettingsLoaderProps>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/contexts/NetworkSettings/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAMlD,MAAM,CAAC,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/contexts/NetworkSettings/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAMlD,MAAM,CAAC,MAAM,qBAAqB,GAAuD,CAAC,KAAK,EAAE,EAAE;IACjG,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;IAE1B,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,kBAC9B,KAAK,EAAE;YACL,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC,4CAA4C,CAAC;YAClF,sBAAsB,EAAE,UAAU,CAAC,UAAU,CAAC,4CAA4C,CAAC;YAC3F,mBAAmB,EAAE,UAAU,CAAC,UAAU,CAAC,4CAA4C,CAAC;YACxF,yBAAyB,EAAE,UAAU,CAAC,UAAU,CAAC,4CAA4C,CAAC;SAC/F,gBAEA,QAAQ,IACuB,CACnC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { UserEventHandler } from '@xylabs/pixel';
|
|
2
|
-
import
|
|
3
|
-
interface
|
|
3
|
+
import { WithChildren } from '../../WithChildren';
|
|
4
|
+
export interface UserEventsProviderProps<T> {
|
|
4
5
|
userEvents: UserEventHandler<T>;
|
|
5
6
|
}
|
|
6
|
-
export declare const UserEventsProvider: React.FC<
|
|
7
|
-
export {};
|
|
7
|
+
export declare const UserEventsProvider: React.FC<WithChildren<UserEventsProviderProps<unknown>>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { XyoUserEventHandler } from '../../lib';
|
|
3
3
|
import { UserEventsContext } from './Context';
|
|
4
|
-
export const UserEventsProvider = ({ userEvents, children }) => {
|
|
4
|
+
export const UserEventsProvider = ({ userEvents, children, }) => {
|
|
5
5
|
return (_jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents: userEvents !== null && userEvents !== void 0 ? userEvents : XyoUserEventHandler.get() } }, { children: children })));
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=Provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../src/contexts/UserEvents/Provider.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../src/contexts/UserEvents/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAM7C,MAAM,CAAC,MAAM,kBAAkB,GAA6D,CAAC,EAC3F,UAAU,EACV,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,iBAAiB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,mBAAmB,CAAC,GAAG,EAAE,EAAE,gBACvF,QAAQ,IACkB,CAC9B,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
interface InvertableThemeProviderProps {
|
|
3
4
|
dark?: boolean;
|
|
4
5
|
scoped?: boolean;
|
|
@@ -12,5 +13,6 @@ interface InvertableThemeProviderProps {
|
|
|
12
13
|
darkOptions?: ThemeOptions;
|
|
13
14
|
lightOptions?: ThemeOptions;
|
|
14
15
|
resolve?: boolean;
|
|
16
|
+
children?: ReactNode;
|
|
15
17
|
}
|
|
16
18
|
export type { InvertableThemeProviderProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
interface
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface EthersLoaderProps {
|
|
3
3
|
enabled?: boolean;
|
|
4
|
+
children?: ReactNode;
|
|
4
5
|
}
|
|
5
|
-
export declare const EthersLoader: React.FC<
|
|
6
|
-
export {};
|
|
6
|
+
export declare const EthersLoader: React.FC<EthersLoaderProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithChildren } from '../../WithChildren';
|
|
3
|
+
export interface NetworkSettingsLoaderProps {
|
|
3
4
|
enabled?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare const NetworkSettingsLoader: React.FC<
|
|
6
|
-
export {};
|
|
6
|
+
export declare const NetworkSettingsLoader: React.FC<WithChildren<NetworkSettingsLoaderProps>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { UserEventHandler } from '@xylabs/pixel';
|
|
2
|
-
import
|
|
3
|
-
interface
|
|
3
|
+
import { WithChildren } from '../../WithChildren';
|
|
4
|
+
export interface UserEventsProviderProps<T> {
|
|
4
5
|
userEvents: UserEventHandler<T>;
|
|
5
6
|
}
|
|
6
|
-
export declare const UserEventsProvider: React.FC<
|
|
7
|
-
export {};
|
|
7
|
+
export declare const UserEventsProvider: React.FC<WithChildren<UserEventsProviderProps<unknown>>>;
|
package/dist/esm2015/index.d.ts
CHANGED
package/dist/esm2015/index.js
CHANGED
|
@@ -394,11 +394,10 @@ class Referrer {
|
|
|
394
394
|
}
|
|
395
395
|
Referrer.storageId = '_coin_referrer';
|
|
396
396
|
|
|
397
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
398
|
-
const global = window;
|
|
399
|
-
|
|
400
397
|
class Fbq {
|
|
401
398
|
constructor(pixelId) {
|
|
399
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
400
|
+
const global = window;
|
|
402
401
|
this.pixelId = pixelId;
|
|
403
402
|
this.fbq = function () {
|
|
404
403
|
// eslint-disable-next-line prefer-rest-params,prefer-spread
|
|
@@ -548,6 +547,8 @@ class Gtag {
|
|
|
548
547
|
this.ga4id = ga4id;
|
|
549
548
|
this.awid = awid;
|
|
550
549
|
this.domains = domains;
|
|
550
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
551
|
+
const global = window;
|
|
551
552
|
global.dataLayer = (_a = global.dataLayer) !== null && _a !== void 0 ? _a : [];
|
|
552
553
|
this.gtag =
|
|
553
554
|
(_b = global.gtag) !== null && _b !== void 0 ? _b : function () {
|
|
@@ -583,6 +584,8 @@ class Gtag {
|
|
|
583
584
|
return sessionStorage.getItem('initialReferrer') || '';
|
|
584
585
|
}
|
|
585
586
|
static clearDataLayer() {
|
|
587
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
588
|
+
const global = window;
|
|
586
589
|
const dataLayer = global.dataLayer;
|
|
587
590
|
dataLayer.length = 0;
|
|
588
591
|
}
|
|
@@ -856,12 +859,16 @@ class DripBaseEvent {
|
|
|
856
859
|
});
|
|
857
860
|
}
|
|
858
861
|
getDcq() {
|
|
862
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
863
|
+
const global = window;
|
|
859
864
|
if (!global._dcq) {
|
|
860
865
|
throw Error('DCQ not found');
|
|
861
866
|
}
|
|
862
867
|
return global._dcq;
|
|
863
868
|
}
|
|
864
869
|
getDcs() {
|
|
870
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
871
|
+
const global = window;
|
|
865
872
|
if (!global._dcs) {
|
|
866
873
|
throw Error('DCS not found');
|
|
867
874
|
}
|
|
@@ -890,6 +897,8 @@ class Rdt {
|
|
|
890
897
|
}
|
|
891
898
|
}
|
|
892
899
|
static getRdt() {
|
|
900
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
901
|
+
const global = window;
|
|
893
902
|
if (global.rdt) {
|
|
894
903
|
return global.rdt;
|
|
895
904
|
}
|
|
@@ -972,6 +981,8 @@ class RedditStandardEvents {
|
|
|
972
981
|
|
|
973
982
|
class SnapTr {
|
|
974
983
|
static getSnapTr() {
|
|
984
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
985
|
+
const global = window;
|
|
975
986
|
if (global.snaptr) {
|
|
976
987
|
return global.snaptr;
|
|
977
988
|
}
|
|
@@ -1104,6 +1115,8 @@ class EF {
|
|
|
1104
1115
|
}
|
|
1105
1116
|
}
|
|
1106
1117
|
static getEF() {
|
|
1118
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1119
|
+
const global = window;
|
|
1107
1120
|
if (global.EF) {
|
|
1108
1121
|
return global.EF;
|
|
1109
1122
|
}
|
|
@@ -1169,6 +1182,8 @@ class Ttq {
|
|
|
1169
1182
|
}
|
|
1170
1183
|
}
|
|
1171
1184
|
static getTtq() {
|
|
1185
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1186
|
+
const global = window;
|
|
1172
1187
|
if (global.ttq) {
|
|
1173
1188
|
return global.ttq;
|
|
1174
1189
|
}
|
|
@@ -1647,7 +1662,7 @@ const DebugUserEventsContext = createContext({
|
|
|
1647
1662
|
},
|
|
1648
1663
|
});
|
|
1649
1664
|
|
|
1650
|
-
const UserEventsProvider = ({ userEvents, children }) => {
|
|
1665
|
+
const UserEventsProvider = ({ userEvents, children, }) => {
|
|
1651
1666
|
return (jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents: userEvents !== null && userEvents !== void 0 ? userEvents : XyoUserEventHandler.get() } }, { children: children })));
|
|
1652
1667
|
};
|
|
1653
1668
|
|