@levi-gemcommerce/analytics 1.0.0-dev.25 → 1.0.0-dev.27
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 +29 -30
- package/dist/esm/index.mjs +29 -30
- package/dist/umd/index.js +4 -4
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -12,7 +12,6 @@ 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';
|
|
16
15
|
import { unstable_batchedUpdates, createPortal } from 'react-dom';
|
|
17
16
|
import { t as t$1 } from 'i18next';
|
|
18
17
|
|
|
@@ -1251,19 +1250,19 @@ const LINE_SERIES_COLORS = {
|
|
|
1251
1250
|
all: [...SERIES_COLORS.all],
|
|
1252
1251
|
};
|
|
1253
1252
|
const MetricChartProvider = ({ children, minHeight = CHART_MIN_HEIGHT, seriesColors = LINE_SERIES_COLORS, }) => {
|
|
1254
|
-
return (
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
},
|
|
1264
|
-
seriesColors,
|
|
1253
|
+
return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
|
|
1254
|
+
Light: {
|
|
1255
|
+
chartContainer: {
|
|
1256
|
+
minHeight,
|
|
1257
|
+
},
|
|
1258
|
+
grid: {
|
|
1259
|
+
horizontalOverflow: true,
|
|
1260
|
+
verticalOverflow: true,
|
|
1261
|
+
horizontalMargin: 0,
|
|
1265
1262
|
},
|
|
1266
|
-
|
|
1263
|
+
seriesColors,
|
|
1264
|
+
},
|
|
1265
|
+
}, children: children }) }));
|
|
1267
1266
|
};
|
|
1268
1267
|
|
|
1269
1268
|
const DEFAULT_PRICING_CONTEXT = {
|
|
@@ -24952,24 +24951,24 @@ const ChartContainerWrapper = ({ props, children, height, }) => {
|
|
|
24952
24951
|
};
|
|
24953
24952
|
|
|
24954
24953
|
const GChartProvider = ({ children, minHeight = 228, seriesColors, }) => {
|
|
24955
|
-
return (
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
|
|
24959
|
-
|
|
24960
|
-
|
|
24961
|
-
|
|
24962
|
-
|
|
24963
|
-
|
|
24964
|
-
},
|
|
24965
|
-
seriesColors: {
|
|
24966
|
-
comparison: 'rgba(64, 176, 230, 1)',
|
|
24967
|
-
single: 'rgba(64, 176, 230, 1)',
|
|
24968
|
-
all: ['#2C7DFF', '#F34A70'],
|
|
24969
|
-
...seriesColors,
|
|
24970
|
-
},
|
|
24954
|
+
return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
|
|
24955
|
+
Light: {
|
|
24956
|
+
chartContainer: {
|
|
24957
|
+
minHeight,
|
|
24958
|
+
},
|
|
24959
|
+
grid: {
|
|
24960
|
+
horizontalOverflow: true,
|
|
24961
|
+
verticalOverflow: true,
|
|
24962
|
+
horizontalMargin: 0,
|
|
24971
24963
|
},
|
|
24972
|
-
|
|
24964
|
+
seriesColors: {
|
|
24965
|
+
comparison: 'rgba(64, 176, 230, 1)',
|
|
24966
|
+
single: 'rgba(64, 176, 230, 1)',
|
|
24967
|
+
all: ['#2C7DFF', '#F34A70'],
|
|
24968
|
+
...seriesColors,
|
|
24969
|
+
},
|
|
24970
|
+
},
|
|
24971
|
+
}, children: children }) }));
|
|
24973
24972
|
};
|
|
24974
24973
|
|
|
24975
24974
|
const FunnelSelectionItem = ({ item, isSelected, isChangeFunnel, onSelectRow }) => {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -12,7 +12,6 @@ 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';
|
|
16
15
|
import { unstable_batchedUpdates, createPortal } from 'react-dom';
|
|
17
16
|
import { t as t$1 } from 'i18next';
|
|
18
17
|
|
|
@@ -1251,19 +1250,19 @@ const LINE_SERIES_COLORS = {
|
|
|
1251
1250
|
all: [...SERIES_COLORS.all],
|
|
1252
1251
|
};
|
|
1253
1252
|
const MetricChartProvider = ({ children, minHeight = CHART_MIN_HEIGHT, seriesColors = LINE_SERIES_COLORS, }) => {
|
|
1254
|
-
return (
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
},
|
|
1264
|
-
seriesColors,
|
|
1253
|
+
return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
|
|
1254
|
+
Light: {
|
|
1255
|
+
chartContainer: {
|
|
1256
|
+
minHeight,
|
|
1257
|
+
},
|
|
1258
|
+
grid: {
|
|
1259
|
+
horizontalOverflow: true,
|
|
1260
|
+
verticalOverflow: true,
|
|
1261
|
+
horizontalMargin: 0,
|
|
1265
1262
|
},
|
|
1266
|
-
|
|
1263
|
+
seriesColors,
|
|
1264
|
+
},
|
|
1265
|
+
}, children: children }) }));
|
|
1267
1266
|
};
|
|
1268
1267
|
|
|
1269
1268
|
const DEFAULT_PRICING_CONTEXT = {
|
|
@@ -24952,24 +24951,24 @@ const ChartContainerWrapper = ({ props, children, height, }) => {
|
|
|
24952
24951
|
};
|
|
24953
24952
|
|
|
24954
24953
|
const GChartProvider = ({ children, minHeight = 228, seriesColors, }) => {
|
|
24955
|
-
return (
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
|
|
24959
|
-
|
|
24960
|
-
|
|
24961
|
-
|
|
24962
|
-
|
|
24963
|
-
|
|
24964
|
-
},
|
|
24965
|
-
seriesColors: {
|
|
24966
|
-
comparison: 'rgba(64, 176, 230, 1)',
|
|
24967
|
-
single: 'rgba(64, 176, 230, 1)',
|
|
24968
|
-
all: ['#2C7DFF', '#F34A70'],
|
|
24969
|
-
...seriesColors,
|
|
24970
|
-
},
|
|
24954
|
+
return (jsx(Fragment, { children: jsx(PolarisVizProvider, { themes: {
|
|
24955
|
+
Light: {
|
|
24956
|
+
chartContainer: {
|
|
24957
|
+
minHeight,
|
|
24958
|
+
},
|
|
24959
|
+
grid: {
|
|
24960
|
+
horizontalOverflow: true,
|
|
24961
|
+
verticalOverflow: true,
|
|
24962
|
+
horizontalMargin: 0,
|
|
24971
24963
|
},
|
|
24972
|
-
|
|
24964
|
+
seriesColors: {
|
|
24965
|
+
comparison: 'rgba(64, 176, 230, 1)',
|
|
24966
|
+
single: 'rgba(64, 176, 230, 1)',
|
|
24967
|
+
all: ['#2C7DFF', '#F34A70'],
|
|
24968
|
+
...seriesColors,
|
|
24969
|
+
},
|
|
24970
|
+
},
|
|
24971
|
+
}, children: children }) }));
|
|
24973
24972
|
};
|
|
24974
24973
|
|
|
24975
24974
|
const FunnelSelectionItem = ({ item, isSelected, isChangeFunnel, onSelectRow }) => {
|