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.
@@ -1,9 +1,9 @@
1
- import { BuildConfigOptions, Config, Platform } from './types';
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
- export * from './lib/analytics/types'
2
- export * from './lib/buildConfig/types'
3
- export * from './lib/ipInfo/types'
4
- export * from './lib/types'
5
- export * from './lib/index'
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;