@levi-gemcommerce/analytics 1.0.0-dev.36 → 1.0.0-dev.37

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.
Files changed (28) hide show
  1. package/dist/esm/components/CardPathAnalysis/CardJourneyAnalysis.d.ts +3 -1
  2. package/dist/esm/components/CardPathAnalysis/components/PathAnalysisChart.d.ts +1 -0
  3. package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.d.ts +23 -0
  4. package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.d.ts +2 -0
  5. package/dist/esm/components/CardPathAnalysis/contexts/index.d.ts +1 -0
  6. package/dist/esm/components/CardPathAnalysis/helpers/pathAnalysis.d.ts +1 -1
  7. package/dist/esm/gemxql.js +1 -1
  8. package/dist/esm/gemxql.mjs +1 -1
  9. package/dist/esm/index.js +361 -465
  10. package/dist/esm/index.mjs +361 -465
  11. package/dist/esm/modules/page-analytic/index.d.ts +1 -2
  12. package/dist/esm/providers/PricingProvider.d.ts +1 -1
  13. package/dist/esm/providers/index.d.ts +0 -2
  14. package/dist/esm/types/pricing.d.ts +1 -1
  15. package/dist/esm/types.js +1 -1
  16. package/dist/esm/types.mjs +1 -1
  17. package/dist/umd/esm/components/CardPathAnalysis/CardJourneyAnalysis.d.ts +3 -1
  18. package/dist/umd/esm/components/CardPathAnalysis/components/PathAnalysisChart.d.ts +1 -0
  19. package/dist/umd/esm/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.d.ts +23 -0
  20. package/dist/umd/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.d.ts +2 -0
  21. package/dist/umd/esm/components/CardPathAnalysis/contexts/index.d.ts +1 -0
  22. package/dist/umd/esm/components/CardPathAnalysis/helpers/pathAnalysis.d.ts +1 -1
  23. package/dist/umd/esm/modules/page-analytic/index.d.ts +1 -2
  24. package/dist/umd/esm/providers/PricingProvider.d.ts +1 -1
  25. package/dist/umd/esm/providers/index.d.ts +0 -2
  26. package/dist/umd/esm/types/pricing.d.ts +1 -1
  27. package/dist/umd/index.js +1 -1
  28. package/package.json +1 -1
@@ -1,7 +1,9 @@
1
1
  import type { CardPathAnalysisProps } from './components';
2
+ import type { IPathAnalysisConfig } from './contexts/PathAnalysisConfigProvider';
2
3
  import { EAnalyticMode } from '@/types';
3
4
  interface IProps extends CardPathAnalysisProps {
4
5
  analyticMode: EAnalyticMode;
6
+ config: IPathAnalysisConfig;
5
7
  }
6
- export declare const CardJourneyAnalysis: ({ analyticMode, ...props }: IProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const CardJourneyAnalysis: ({ analyticMode, config, ...props }: IProps) => import("react/jsx-runtime").JSX.Element;
7
9
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { IFunnelChartColors } from '@/shared/charts';
2
+ import '../assets/styles/PathAnalysis.scss';
2
3
  interface PathAnalysisChartProps {
3
4
  funnelColors?: IFunnelChartColors;
4
5
  isEnabled?: boolean;
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { IBasePathAnalyticPageWithChild } from '../types';
3
+ export interface IPathAnalysisPricingConfig {
4
+ isLoading: boolean;
5
+ isPathAnalysisEnabled: boolean;
6
+ onOpenModalPricing: () => void;
7
+ }
8
+ export interface IPathAnalysisHeatmapConfig {
9
+ isEnabledV1: boolean;
10
+ isEnabledV2: boolean;
11
+ onView: (level: number, pages: IBasePathAnalyticPageWithChild[]) => void;
12
+ }
13
+ export interface IPathAnalysisConfig {
14
+ pricing: IPathAnalysisPricingConfig;
15
+ heatmap: IPathAnalysisHeatmapConfig;
16
+ }
17
+ export interface IPathAnalysisConfigProviderProps {
18
+ children: ReactNode;
19
+ pricing: IPathAnalysisPricingConfig;
20
+ heatmap: IPathAnalysisHeatmapConfig;
21
+ }
22
+ export declare const PathAnalysisConfigProvider: ({ children, pricing, heatmap }: IPathAnalysisConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const usePathAnalysisConfig: () => IPathAnalysisConfig;
@@ -21,6 +21,7 @@ export interface IAnalyticsData {
21
21
  previousPathAnalyticsMap?: Record<string, IBasePathAnalyticPageWithParent>;
22
22
  isLoading?: boolean;
23
23
  locationPath?: string;
24
+ shopifyPageType?: string;
24
25
  }
25
26
  export interface PathAnalysisType {
26
27
  mode: EAnalyticMode;
@@ -30,6 +31,7 @@ export interface PathAnalysisType {
30
31
  campaignVersionID?: string;
31
32
  pathAnalytics?: IBasePathAnalyticPageWithParent[];
32
33
  isLoadingMetric: boolean;
34
+ shopifyPageType?: string;
33
35
  pageWithMetric: IBasePathAnalyticPageWithChild | undefined;
34
36
  dynamicLevels: IBasePathAnalyticPageWithChild[];
35
37
  nextLevelPages: IBasePathAnalyticPageWithChild[];
@@ -1 +1,2 @@
1
+ export * from './PathAnalysisConfigProvider';
1
2
  export * from './PathAnalysisProvider';
@@ -1,5 +1,5 @@
1
- import type { IBasePathAnalyticPageWithChild, IBasePathAnalyticPageWithParent } from '../types';
2
1
  import type { IGetTextPrice } from '@/modules/shopify';
2
+ import type { IBasePathAnalyticPageWithChild, IBasePathAnalyticPageWithParent } from '../types';
3
3
  export declare const processPathAnalytics: (analyticsData: IBasePathAnalyticPageWithParent[] | undefined, locationPath: string) => IBasePathAnalyticPageWithChild | undefined;
4
4
  export declare const processPathAnalyticsTree: (analyticsData: IBasePathAnalyticPageWithParent[] | undefined) => IBasePathAnalyticPageWithChild[] | undefined;
5
5
  export declare const getFunnelChildrenPages: (page: IBasePathAnalyticPageWithChild | undefined) => IBasePathAnalyticPageWithChild[];
@@ -1124,7 +1124,7 @@ var ETrafficSourceType;
1124
1124
  *
1125
1125
  * They are duplicated here so the SDK no longer needs to import the host's
1126
1126
  * pricing module directly. The host can import these enums back from
1127
- * `@gem-sdk/analytics/types` to build the value passed to `PricingProvider`,
1127
+ * `@gem-sdk/analytics/types` to build the value passed to `PathAnalysisConfigProvider`,
1128
1128
  * which guarantees the string values stay in sync on both sides.
1129
1129
  */
1130
1130
  var IPlanKey;
@@ -1124,7 +1124,7 @@ var ETrafficSourceType;
1124
1124
  *
1125
1125
  * They are duplicated here so the SDK no longer needs to import the host's
1126
1126
  * pricing module directly. The host can import these enums back from
1127
- * `@gem-sdk/analytics/types` to build the value passed to `PricingProvider`,
1127
+ * `@gem-sdk/analytics/types` to build the value passed to `PathAnalysisConfigProvider`,
1128
1128
  * which guarantees the string values stay in sync on both sides.
1129
1129
  */
1130
1130
  var IPlanKey;