@wix/stores 1.0.994 → 1.0.996

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.
@@ -17,6 +17,7 @@ import '@wix/auto_sdk_stores_read-only-variants-v-3';
17
17
  import '@wix/auto_sdk_stores_ribbons-v-3';
18
18
  import '@wix/auto_sdk_stores_stores-locations-v-3';
19
19
  import '@wix/auto_sdk_stores_stores-media-v-3';
20
+ import '@wix/auto_sdk_stores_product-bundles-v-3';
20
21
  import '@wix/auto_sdk_stores_abandoned-carts';
21
22
  import '@wix/auto_sdk_stores_subscription-options';
22
23
  import '@wix/auto_sdk_stores_inventory';
@@ -37,6 +38,7 @@ import '@wix/auto_sdk_stores_read-only-variants-v-3/meta';
37
38
  import '@wix/auto_sdk_stores_ribbons-v-3/meta';
38
39
  import '@wix/auto_sdk_stores_stores-locations-v-3/meta';
39
40
  import '@wix/auto_sdk_stores_stores-media-v-3/meta';
41
+ import '@wix/auto_sdk_stores_product-bundles-v-3/meta';
40
42
  import '@wix/auto_sdk_stores_abandoned-carts/meta';
41
43
  import '@wix/auto_sdk_stores_subscription-options/meta';
42
44
  import '@wix/auto_sdk_stores_inventory/meta';
@@ -30,11 +30,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // context-product-by-slug.ts
31
31
  var context_product_by_slug_exports = {};
32
32
  __export(context_product_by_slug_exports, {
33
- NO_PRODUCT_SLUG_ERROR: () => nu,
34
- ProductBySlugContextProvider: () => au,
35
- default: () => au,
36
- injectAccessTokenGetter: () => ou,
37
- useProductBySlugContext: () => ru
33
+ NO_PRODUCT_SLUG_ERROR: () => ru,
34
+ ProductBySlugContextProvider: () => ou,
35
+ default: () => ou,
36
+ injectAccessTokenGetter: () => su,
37
+ useProductBySlugContext: () => iu
38
38
  });
39
39
  module.exports = __toCommonJS(context_product_by_slug_exports);
40
40
 
@@ -3466,28 +3466,36 @@ function Zl() {
3466
3466
  return Ql(new URL(e2.currentUrl));
3467
3467
  }
3468
3468
  function Ql(e2) {
3469
- return e2.pathname.split(`/`).filter(Boolean).at(-1) || void 0;
3469
+ let t2 = e2.pathname.split(`/`).filter(Boolean).at(-1);
3470
+ return t2 ? $l(t2) : void 0;
3470
3471
  }
3471
- var $l = q(`seo/seo-service`);
3472
- var eu = q(`@wix/site-service-rendering-context`);
3473
- function tu(e2) {
3474
- let t2 = (0, import_services_manager_react.useService)($l), { SSR: n2 } = (0, import_services_manager_react.useService)(eu), i2 = (0, import_react.useRef)(false);
3472
+ function $l(e2) {
3473
+ try {
3474
+ return decodeURIComponent(e2);
3475
+ } catch {
3476
+ return e2;
3477
+ }
3478
+ }
3479
+ var eu = q(`seo/seo-service`);
3480
+ var tu = q(`@wix/site-service-rendering-context`);
3481
+ function nu(e2) {
3482
+ let t2 = (0, import_services_manager_react.useService)(eu), { SSR: n2 } = (0, import_services_manager_react.useService)(tu), i2 = (0, import_react.useRef)(false);
3475
3483
  !i2.current && e2.id && n2 && (i2.current = true, t2.setSeoEntity({ itemType: `STORES_PRODUCT`, seoData: e2.seoData ?? {}, itemData: { product: e2 } }).catch(() => {
3476
3484
  }));
3477
3485
  }
3478
- var nu = `No product slug is available for the product context`;
3479
- function ru() {
3486
+ var ru = `No product slug is available for the product context`;
3487
+ function iu() {
3480
3488
  return (0, import_product_context_provider.useProductContext)();
3481
3489
  }
3482
- function iu({ productPromise: e2 }) {
3490
+ function au({ productPromise: e2 }) {
3483
3491
  let { seoProduct: t2 } = kn(e2);
3484
- return tu(t2), null;
3492
+ return nu(t2), null;
3485
3493
  }
3486
- function au({ children: e2 }) {
3487
- let t2 = Zl(), n2 = Yl(`slug:${t2}`, () => t2 ? Gi(t2) : Promise.reject(Error(nu)));
3488
- return (0, import_jsx_runtime.jsxs)(zl, { productPromise: n2, source: Xl.PRODUCT_BY_SLUG, children: [(0, import_jsx_runtime.jsx)(iu, { productPromise: n2 }), e2] });
3494
+ function ou({ children: e2 }) {
3495
+ let t2 = Zl(), n2 = Yl(`slug:${t2}`, () => t2 ? Gi(t2) : Promise.reject(Error(ru)));
3496
+ return (0, import_jsx_runtime.jsxs)(zl, { productPromise: n2, source: Xl.PRODUCT_BY_SLUG, children: [(0, import_jsx_runtime.jsx)(au, { productPromise: n2 }), e2] });
3489
3497
  }
3490
- var ou = On(`b276b552-68b9-4936-98d5-fbe43c0bd257`);
3498
+ var su = On(`b276b552-68b9-4936-98d5-fbe43c0bd257`);
3491
3499
  // Annotate the CommonJS export names for ESM import in node:
3492
3500
  0 && (module.exports = {
3493
3501
  NO_PRODUCT_SLUG_ERROR,