react-marketing-tools 0.3.3 → 0.3.5

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,7 +1,7 @@
1
1
  {
2
- "src/lib/index.tsx": {
2
+ "lib/index.tsx": {
3
3
  "file": "react-marketing-tools.umd.js",
4
4
  "isEntry": true,
5
- "src": "src/lib/index.tsx"
5
+ "src": "lib/index.tsx"
6
6
  }
7
7
  }
@@ -1,4 +1,4 @@
1
- import { TrackAnalyticsEventOptions } from './types';
1
+ import { TrackAnalyticsEventOptions } from '../types';
2
2
  /**
3
3
  *
4
4
  * @paramType {object} options
@@ -1,3 +1,3 @@
1
- import { Ga4GoogleAnalyticsEventTracking } from './types';
1
+ import { Ga4GoogleAnalyticsEventTracking } from '../types';
2
2
  declare const ga4GoogleAnalyticsEventTracking: (options: Ga4GoogleAnalyticsEventTracking) => Promise<void>;
3
3
  export default ga4GoogleAnalyticsEventTracking;
@@ -1,3 +1,3 @@
1
- import { HandleDataLayerPushOptions } from './types';
1
+ import { HandleDataLayerPushOptions } from '../types';
2
2
  declare const handleDataLayerPush: (options: HandleDataLayerPushOptions) => Promise<void>;
3
3
  export default handleDataLayerPush;
@@ -1,5 +1,5 @@
1
1
  import DeviceDetector from 'device-detector-js';
2
- import { AllowedTypes, EventNameInfo } from './types';
2
+ import { AllowedTypes, EventNameInfo } from '../types';
3
3
  /**
4
4
  *
5
5
  * @param {object} user the structure of this data is dictated by you, aka your API or DB.
package/dist/index.d.ts CHANGED
@@ -1,14 +1,13 @@
1
1
  import { ReactNode, Context } from 'react';
2
2
  import type { ProviderStateProps, ProviderApiProps } from './types';
3
- export * from './types';
4
3
  export { config, analyticsPlatform, buildConfig, showMeBuildInAnalyticsPlatform, showMeBuildInGlobalEventActionList, showMeBuildInEventActionPrefixList, } from './buildConfig';
5
4
  export { trackAnalyticsEvent } from './analytics/analyticsEventService';
6
5
  export declare const ContextState: Context<ProviderStateProps>;
7
6
  export declare const ContextApi: Context<ProviderApiProps>;
8
- declare type ReactMarketingProviderProps = {
7
+ type ReactMarketingProviderProps = {
9
8
  children: ReactNode;
10
9
  };
11
- export declare const ReactMarketingProvider: ({ children, }: ReactMarketingProviderProps) => JSX.Element;
10
+ export declare const ReactMarketingProvider: ({ children, }: ReactMarketingProviderProps) => import("react/jsx-runtime").JSX.Element;
12
11
  /**
13
12
  * @property {string} appName
14
13
  * @property {string} appSessionCookieName
@@ -1,3 +1,3 @@
1
- import { IpInfo, ServerLocationData } from './types';
1
+ import { IpInfo, ServerLocationData } from '../types';
2
2
  export declare const buildServerLocationData: (withServerLocationInfo: boolean | undefined) => Promise<ServerLocationData | undefined>;
3
3
  export declare const getIpInfo: (IP_INFO_TOKEN: string) => Promise<IpInfo>;