@levi-gemcommerce/analytics 1.0.0-dev.25 → 1.0.0-dev.26

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/esm/index.js CHANGED
@@ -12,7 +12,7 @@ import { useTranslation } from 'react-i18next';
12
12
  import { create } from 'zustand';
13
13
  import { useQuery } from '@tanstack/react-query';
14
14
  import { PolarisVizProvider, LineChart, DonutChart } from '@shopify/polaris-viz';
15
- import chartStyle from '@shopify/polaris-viz/build/esm/styles.css?url';
15
+ import '@shopify/polaris-viz/build/esm/styles.css';
16
16
  import { unstable_batchedUpdates, createPortal } from 'react-dom';
17
17
  import { t as t$1 } from 'i18next';
18
18
 
@@ -1251,19 +1251,19 @@ const LINE_SERIES_COLORS = {
1251
1251
  all: [...SERIES_COLORS.all],
1252
1252
  };
1253
1253
  const MetricChartProvider = ({ children, minHeight = CHART_MIN_HEIGHT, seriesColors = LINE_SERIES_COLORS, }) => {
1254
- return (jsxs(Fragment, { children: [jsx("link", { rel: "stylesheet", href: chartStyle }), jsx(PolarisVizProvider, { themes: {
1255
- Light: {
1256
- chartContainer: {
1257
- minHeight,
1258
- },
1259
- grid: {
1260
- horizontalOverflow: true,
1261
- verticalOverflow: true,
1262
- horizontalMargin: 0,
1263
- },
1264
- seriesColors,
1254
+ return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
1255
+ Light: {
1256
+ chartContainer: {
1257
+ minHeight,
1258
+ },
1259
+ grid: {
1260
+ horizontalOverflow: true,
1261
+ verticalOverflow: true,
1262
+ horizontalMargin: 0,
1265
1263
  },
1266
- }, children: children })] }));
1264
+ seriesColors,
1265
+ },
1266
+ }, children: children }) }));
1267
1267
  };
1268
1268
 
1269
1269
  const DEFAULT_PRICING_CONTEXT = {
@@ -24952,24 +24952,24 @@ const ChartContainerWrapper = ({ props, children, height, }) => {
24952
24952
  };
24953
24953
 
24954
24954
  const GChartProvider = ({ children, minHeight = 228, seriesColors, }) => {
24955
- return (jsxs(Fragment, { children: [jsx("link", { rel: "stylesheet", href: chartStyle }), jsx(PolarisVizProvider, { themes: {
24956
- Light: {
24957
- chartContainer: {
24958
- minHeight,
24959
- },
24960
- grid: {
24961
- horizontalOverflow: true,
24962
- verticalOverflow: true,
24963
- horizontalMargin: 0,
24964
- },
24965
- seriesColors: {
24966
- comparison: 'rgba(64, 176, 230, 1)',
24967
- single: 'rgba(64, 176, 230, 1)',
24968
- all: ['#2C7DFF', '#F34A70'],
24969
- ...seriesColors,
24970
- },
24955
+ return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
24956
+ Light: {
24957
+ chartContainer: {
24958
+ minHeight,
24959
+ },
24960
+ grid: {
24961
+ horizontalOverflow: true,
24962
+ verticalOverflow: true,
24963
+ horizontalMargin: 0,
24971
24964
  },
24972
- }, children: children })] }));
24965
+ seriesColors: {
24966
+ comparison: 'rgba(64, 176, 230, 1)',
24967
+ single: 'rgba(64, 176, 230, 1)',
24968
+ all: ['#2C7DFF', '#F34A70'],
24969
+ ...seriesColors,
24970
+ },
24971
+ },
24972
+ }, children: children }) }));
24973
24973
  };
24974
24974
 
24975
24975
  const FunnelSelectionItem = ({ item, isSelected, isChangeFunnel, onSelectRow }) => {
@@ -12,7 +12,7 @@ import { useTranslation } from 'react-i18next';
12
12
  import { create } from 'zustand';
13
13
  import { useQuery } from '@tanstack/react-query';
14
14
  import { PolarisVizProvider, LineChart, DonutChart } from '@shopify/polaris-viz';
15
- import chartStyle from '@shopify/polaris-viz/build/esm/styles.css?url';
15
+ import '@shopify/polaris-viz/build/esm/styles.css';
16
16
  import { unstable_batchedUpdates, createPortal } from 'react-dom';
17
17
  import { t as t$1 } from 'i18next';
18
18
 
@@ -1251,19 +1251,19 @@ const LINE_SERIES_COLORS = {
1251
1251
  all: [...SERIES_COLORS.all],
1252
1252
  };
1253
1253
  const MetricChartProvider = ({ children, minHeight = CHART_MIN_HEIGHT, seriesColors = LINE_SERIES_COLORS, }) => {
1254
- return (jsxs(Fragment, { children: [jsx("link", { rel: "stylesheet", href: chartStyle }), jsx(PolarisVizProvider, { themes: {
1255
- Light: {
1256
- chartContainer: {
1257
- minHeight,
1258
- },
1259
- grid: {
1260
- horizontalOverflow: true,
1261
- verticalOverflow: true,
1262
- horizontalMargin: 0,
1263
- },
1264
- seriesColors,
1254
+ return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
1255
+ Light: {
1256
+ chartContainer: {
1257
+ minHeight,
1258
+ },
1259
+ grid: {
1260
+ horizontalOverflow: true,
1261
+ verticalOverflow: true,
1262
+ horizontalMargin: 0,
1265
1263
  },
1266
- }, children: children })] }));
1264
+ seriesColors,
1265
+ },
1266
+ }, children: children }) }));
1267
1267
  };
1268
1268
 
1269
1269
  const DEFAULT_PRICING_CONTEXT = {
@@ -24952,24 +24952,24 @@ const ChartContainerWrapper = ({ props, children, height, }) => {
24952
24952
  };
24953
24953
 
24954
24954
  const GChartProvider = ({ children, minHeight = 228, seriesColors, }) => {
24955
- return (jsxs(Fragment, { children: [jsx("link", { rel: "stylesheet", href: chartStyle }), jsx(PolarisVizProvider, { themes: {
24956
- Light: {
24957
- chartContainer: {
24958
- minHeight,
24959
- },
24960
- grid: {
24961
- horizontalOverflow: true,
24962
- verticalOverflow: true,
24963
- horizontalMargin: 0,
24964
- },
24965
- seriesColors: {
24966
- comparison: 'rgba(64, 176, 230, 1)',
24967
- single: 'rgba(64, 176, 230, 1)',
24968
- all: ['#2C7DFF', '#F34A70'],
24969
- ...seriesColors,
24970
- },
24955
+ return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
24956
+ Light: {
24957
+ chartContainer: {
24958
+ minHeight,
24959
+ },
24960
+ grid: {
24961
+ horizontalOverflow: true,
24962
+ verticalOverflow: true,
24963
+ horizontalMargin: 0,
24971
24964
  },
24972
- }, children: children })] }));
24965
+ seriesColors: {
24966
+ comparison: 'rgba(64, 176, 230, 1)',
24967
+ single: 'rgba(64, 176, 230, 1)',
24968
+ all: ['#2C7DFF', '#F34A70'],
24969
+ ...seriesColors,
24970
+ },
24971
+ },
24972
+ }, children: children }) }));
24973
24973
  };
24974
24974
 
24975
24975
  const FunnelSelectionItem = ({ item, isSelected, isChangeFunnel, onSelectRow }) => {
@@ -1,5 +1,6 @@
1
1
  import type { PartialTheme } from '@shopify/polaris-viz-core';
2
2
  import type { ReactElement, ReactNode } from 'react';
3
+ import '@shopify/polaris-viz/build/esm/styles.css';
3
4
  type ISeriesColors = PartialTheme['seriesColors'];
4
5
  export interface IProps {
5
6
  children: ReactNode;
@@ -1,3 +1,4 @@
1
+ import '@shopify/polaris-viz/build/esm/styles.css';
1
2
  export declare const GChartProvider: ({ children, minHeight, seriesColors, }: {
2
3
  children: React.ReactNode;
3
4
  minHeight?: number;
@@ -1,5 +1,6 @@
1
1
  import type { PartialTheme } from '@shopify/polaris-viz-core';
2
2
  import type { ReactElement, ReactNode } from 'react';
3
+ import '@shopify/polaris-viz/build/esm/styles.css';
3
4
  type ISeriesColors = PartialTheme['seriesColors'];
4
5
  export interface IProps {
5
6
  children: ReactNode;
@@ -1,3 +1,4 @@
1
+ import '@shopify/polaris-viz/build/esm/styles.css';
1
2
  export declare const GChartProvider: ({ children, minHeight, seriesColors, }: {
2
3
  children: React.ReactNode;
3
4
  minHeight?: number;