@levi-gemcommerce/analytics 1.0.0-dev.28 → 1.0.0-dev.30
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 +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3550,7 +3550,7 @@ const usePathAnalysisChart = () => {
|
|
|
3550
3550
|
return [
|
|
3551
3551
|
{
|
|
3552
3552
|
value: Number(totalAddedToCart ?? 0),
|
|
3553
|
-
key: METRICS_COLUMNS[IPAMetricKey.PAGE_ADDED_TO_CART]
|
|
3553
|
+
key: METRICS_COLUMNS[IPAMetricKey.PAGE_ADDED_TO_CART]?.label ?? t('Added to cart'),
|
|
3554
3554
|
labelTooltip: PA_METRIC_TOOLTIP[IPAMetricKey.PAGE_CART_ADDITION],
|
|
3555
3555
|
},
|
|
3556
3556
|
{
|
|
@@ -21846,7 +21846,7 @@ function getVerticalLabels({ labels, characterWidths, longestLabelWidth, targetW
|
|
|
21846
21846
|
}
|
|
21847
21847
|
|
|
21848
21848
|
function getFontSize() {
|
|
21849
|
-
const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
|
21849
|
+
const isMobile = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0);
|
|
21850
21850
|
const fontSize = isMobile ? TOUCH_FONT_SIZE : FONT_SIZE;
|
|
21851
21851
|
return fontSize;
|
|
21852
21852
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3550,7 +3550,7 @@ const usePathAnalysisChart = () => {
|
|
|
3550
3550
|
return [
|
|
3551
3551
|
{
|
|
3552
3552
|
value: Number(totalAddedToCart ?? 0),
|
|
3553
|
-
key: METRICS_COLUMNS[IPAMetricKey.PAGE_ADDED_TO_CART]
|
|
3553
|
+
key: METRICS_COLUMNS[IPAMetricKey.PAGE_ADDED_TO_CART]?.label ?? t('Added to cart'),
|
|
3554
3554
|
labelTooltip: PA_METRIC_TOOLTIP[IPAMetricKey.PAGE_CART_ADDITION],
|
|
3555
3555
|
},
|
|
3556
3556
|
{
|
|
@@ -21846,7 +21846,7 @@ function getVerticalLabels({ labels, characterWidths, longestLabelWidth, targetW
|
|
|
21846
21846
|
}
|
|
21847
21847
|
|
|
21848
21848
|
function getFontSize() {
|
|
21849
|
-
const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
|
21849
|
+
const isMobile = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0);
|
|
21850
21850
|
const fontSize = isMobile ? TOUCH_FONT_SIZE : FONT_SIZE;
|
|
21851
21851
|
return fontSize;
|
|
21852
21852
|
}
|