@wix/stores 1.0.964 → 1.0.965

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.
@@ -2196,7 +2196,7 @@ function ci(e2, t2) {
2196
2196
  return (0, import_react.useMemo)(() => ({ categories: e2, currentCategoryId: t2 }), [e2, t2]);
2197
2197
  }
2198
2198
  var li = ti(`seo/seo-service`);
2199
- var ui = ti(`@wix/viewer-service-environment`);
2199
+ var ui = ti(`@wix/site-service-rendering-context`);
2200
2200
  function di(e2) {
2201
2201
  return e2.breadcrumbs.map(({ id: e3, name: t2, slug: n2 }) => ({ categoryId: e3, categoryName: t2, categorySlug: n2 }));
2202
2202
  }
@@ -2207,8 +2207,8 @@ function pi(e2) {
2207
2207
  return { itemType: e2.parentCategoryId ? `STORES_SUB_CATEGORY` : `STORES_CATEGORY`, itemData: { category: { id: e2.id, name: e2.name, slug: e2.slug, description: e2.description, itemCounter: e2.itemCounter, image: e2.image, parentCategory: fi(e2.parentCategoryId), breadcrumbsInfo: { breadcrumbs: di(e2) } } }, ...e2.seoData ? { seoData: e2.seoData } : {} };
2208
2208
  }
2209
2209
  function mi(e2) {
2210
- let t2 = (0, import_services_manager_react.useService)(li), n2 = (0, import_services_manager_react.useService)(ui), r2 = (0, import_react.useRef)(false);
2211
- !r2.current && e2.id && n2.isSSR() && (r2.current = true, t2.setSeoEntity(pi(e2)).catch(() => {
2210
+ let t2 = (0, import_services_manager_react.useService)(li), { SSR: n2 } = (0, import_services_manager_react.useService)(ui), r2 = (0, import_react.useRef)(false);
2211
+ !r2.current && e2.id && n2 && (r2.current = true, t2.setSeoEntity(pi(e2)).catch(() => {
2212
2212
  }));
2213
2213
  }
2214
2214
  function hi(e2) {