react-marketing-tools 0.2.8 → 0.3.0
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/{lib/buildConfig → buildConfig}/index.d.ts +4 -4
- package/dist/index.d.ts +26 -5
- package/dist/react-marketing-tools.es.js +2535 -2532
- package/dist/react-marketing-tools.umd.js +8 -8
- package/dist/types.d.ts +104 -0
- package/package.json +3 -2
- package/dist/lib/buildConfig/types.d.ts +0 -28
- package/dist/lib/index.d.ts +0 -25
- package/dist/lib/types.d.ts +0 -14
- /package/dist/{lib/analytics → analytics}/analyticsEventService.d.ts +0 -0
- /package/dist/{lib/analytics → analytics}/ga4GoogleAnalyticsEventTracking.d.ts +0 -0
- /package/dist/{lib/analytics → analytics}/handleDataLayerPush.d.ts +0 -0
- /package/dist/{lib/analytics → analytics}/helpers.d.ts +0 -0
- /package/dist/{lib/analytics → analytics}/types.d.ts +0 -0
- /package/dist/{lib/ipInfo → ipInfo}/index.d.ts +0 -0
- /package/dist/{lib/ipInfo → ipInfo}/types.d.ts +0 -0
- /package/dist/{lib/utilities → utilities}/assertValueCheckers.d.ts +0 -0
- /package/dist/{lib/utilities → utilities}/commonFunctions.d.ts +0 -0
- /package/dist/{lib/utilities → utilities}/cookies.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BuildConfigOptions, Config,
|
|
2
|
-
export declare const analyticsPlatform: Platform;
|
|
3
|
-
export declare const showMeBuildInAnalyticsPlatform: () => void;
|
|
1
|
+
import { BuildConfigOptions, Config, AnalyticsPlatform } from '../types';
|
|
4
2
|
export declare const analyticsEventActionPrefixList: Record<string, string>;
|
|
5
|
-
export declare const showMeBuildInEventActionPrefixList: () => void;
|
|
6
3
|
export declare const analyticsGlobalEventActionList: Record<string, string>;
|
|
4
|
+
export declare const analyticsPlatform: AnalyticsPlatform;
|
|
5
|
+
export declare const showMeBuildInAnalyticsPlatform: () => void;
|
|
6
|
+
export declare const showMeBuildInEventActionPrefixList: () => void;
|
|
7
7
|
export declare const showMeBuildInGlobalEventActionList: () => void;
|
|
8
8
|
export declare let config: Config;
|
|
9
9
|
declare const buildConfig: (options: BuildConfigOptions) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from './
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
import { ReactNode, Context } from 'react';
|
|
2
|
+
import type { ProviderStateProps, ProviderApiProps } from './types';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export { buildConfig } from './buildConfig';
|
|
5
|
+
export { trackAnalyticsEvent } from './analytics/analyticsEventService';
|
|
6
|
+
export declare const ContextState: Context<ProviderStateProps>;
|
|
7
|
+
export declare const ContextApi: Context<ProviderApiProps>;
|
|
8
|
+
declare type ReactMarketingProviderProps = {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const ReactMarketingProvider: ({ children, }: ReactMarketingProviderProps) => JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* @property {string} appName
|
|
14
|
+
* @property {string} appSessionCookieName
|
|
15
|
+
* @property {object} analyticsPlatform
|
|
16
|
+
* @property {object} eventActionPrefixList
|
|
17
|
+
* @property {object} analyticsGlobalEventActionList
|
|
18
|
+
*/
|
|
19
|
+
export declare const useMarketingState: () => ProviderStateProps;
|
|
20
|
+
/**
|
|
21
|
+
* @property {function} trackAnalyticsEvent(options)
|
|
22
|
+
* @property {function} showMeBuildInAnalyticsPlatform
|
|
23
|
+
* @property {function} showMeBuildInEventActionPrefixList
|
|
24
|
+
* @property {function} showMeBuildInGlobalEventActionList
|
|
25
|
+
*/
|
|
26
|
+
export declare const useMarketingApi: () => ProviderApiProps;
|