@levi-gemcommerce/analytics 1.0.0-dev.32 → 1.0.0-dev.34

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
@@ -20948,7 +20948,7 @@ const useResizeObserver = () => {
20948
20948
  };
20949
20949
 
20950
20950
  function useBrowserCheck() {
20951
- const userAgent = navigator?.userAgent;
20951
+ const userAgent = typeof navigator !== 'undefined' ? navigator.userAgent : '';
20952
20952
  return useMemo(() => {
20953
20953
  const isFirefox = userAgent.includes('Firefox');
20954
20954
  const isChromium = userAgent.includes('Chrome');
@@ -22742,7 +22742,7 @@ const ChartContainer = (props) => {
22742
22742
  characterWidths,
22743
22743
  characterWidthOffsets,
22744
22744
  theme: printFriendlyTheme,
22745
- isTouchDevice: isTouchDevice(),
22745
+ isTouchDevice: typeof window === 'undefined' ? false : isTouchDevice(),
22746
22746
  isPerformanceImpacted: dataTooBigToAnimate,
22747
22747
  scrollContainer: props.scrollContainer,
22748
22748
  containerBounds: containerBounds ?? EMPTY_BOUNDS,
@@ -20948,7 +20948,7 @@ const useResizeObserver = () => {
20948
20948
  };
20949
20949
 
20950
20950
  function useBrowserCheck() {
20951
- const userAgent = navigator?.userAgent;
20951
+ const userAgent = typeof navigator !== 'undefined' ? navigator.userAgent : '';
20952
20952
  return useMemo(() => {
20953
20953
  const isFirefox = userAgent.includes('Firefox');
20954
20954
  const isChromium = userAgent.includes('Chrome');
@@ -22742,7 +22742,7 @@ const ChartContainer = (props) => {
22742
22742
  characterWidths,
22743
22743
  characterWidthOffsets,
22744
22744
  theme: printFriendlyTheme,
22745
- isTouchDevice: isTouchDevice(),
22745
+ isTouchDevice: typeof window === 'undefined' ? false : isTouchDevice(),
22746
22746
  isPerformanceImpacted: dataTooBigToAnimate,
22747
22747
  scrollContainer: props.scrollContainer,
22748
22748
  containerBounds: containerBounds ?? EMPTY_BOUNDS,