@numueg/theme-sdk 0.13.1 → 0.13.2

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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { resolveThemeSettings } from './chunk-XF2FGIVS.mjs';
2
- export { KNOWN_SETTING_TYPES, KNOWN_TEMPLATES, REQUIRED_TEMPLATES, SDK_VERSION, THEME_CONTRACT_VERSION, mergeResults, validateBuiltManifest, validateManifest, validateSectionSchema, validateSettingsAgainstSchema } from './chunk-AFOLV2U5.mjs';
2
+ export { KNOWN_SETTING_TYPES, KNOWN_TEMPLATES, REQUIRED_TEMPLATES, SDK_VERSION, THEME_CONTRACT_VERSION, mergeResults, validateBuiltManifest, validateManifest, validateSectionSchema, validateSettingsAgainstSchema } from './chunk-X2YWGRRG.mjs';
3
3
  import { ShopContext, ThemeSettingsContext, CurrentTemplateContext, PageContext, LocalizationContext, CurrencyContext, CartContext, CustomerContext, NavigationContext, CollectionContext, ProductContext, useShop, useLocalization, useCustomer, useThemeSettings } from './chunk-VZO2WMEM.mjs';
4
4
  export { CartContext, CollectionContext, CurrencyContext, CustomerContext, LocalizationContext, NavigationContext, PageContext, ProductContext, ShopContext, ThemeSettingsContext, useCollections, useCustomer, useDirection, useFieldTranslation, useLocale, useLocalization, useNumberFormat, usePage, useProducts, useShop, useThemeSettings, useTranslation } from './chunk-VZO2WMEM.mjs';
5
5
  import { createContext, forwardRef, useState, useImperativeHandle, useEffect, useCallback, useMemo, useRef, useContext, useSyncExternalStore, StrictMode, createElement, Component } from 'react';
@@ -666,9 +666,11 @@ function dispatchAnalyticsEvent(eventName, payload = {}) {
666
666
  }
667
667
  const step = EVENT_TO_FUNNEL_STEP[eventName] ?? null;
668
668
  const customerId = readCustomerId();
669
+ const pageUrl = typeof window !== "undefined" ? window.location.href : void 0;
669
670
  const body = step ? {
670
671
  event_id: eventId,
671
672
  path: window.location.pathname,
673
+ page_url: pageUrl,
672
674
  fingerprint: getFingerprint(),
673
675
  step,
674
676
  step_data: payload,
@@ -679,6 +681,7 @@ function dispatchAnalyticsEvent(eventName, payload = {}) {
679
681
  event: eventName,
680
682
  payload,
681
683
  event_id: eventId,
684
+ page_url: pageUrl,
682
685
  ts: Date.now(),
683
686
  attribution: readAttribution() ?? void 0,
684
687
  customer_id: customerId ?? void 0