@wix/stores 1.0.963 → 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.
- package/_sdk-exports/context-category-by-slug-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-by-id-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-by-slug-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-item-context-provider/runtime.js +2 -2
- package/build/cjs/context-category-by-slug-context-provider.js +3 -3
- package/build/cjs/context-category-by-slug-context-provider.js.map +1 -1
- package/build/cjs/context-product-by-id-context-provider.js +414 -412
- package/build/cjs/context-product-by-id-context-provider.js.map +1 -1
- package/build/cjs/context-product-by-slug-context-provider.js +428 -425
- package/build/cjs/context-product-by-slug-context-provider.js.map +1 -1
- package/build/cjs/context-product-item-context-provider.js +251 -249
- package/build/cjs/context-product-item-context-provider.js.map +1 -1
- package/build/es/context-category-by-slug-context-provider.mjs +3 -3
- package/build/es/context-category-by-slug-context-provider.mjs.map +1 -1
- package/build/es/context-product-by-id-context-provider.mjs +414 -412
- package/build/es/context-product-by-id-context-provider.mjs.map +1 -1
- package/build/es/context-product-by-slug-context-provider.mjs +428 -425
- package/build/es/context-product-by-slug-context-provider.mjs.map +1 -1
- package/build/es/context-product-item-context-provider.mjs +251 -249
- package/build/es/context-product-item-context-provider.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -2156,7 +2156,7 @@ function ci(e2, t2) {
|
|
|
2156
2156
|
return r(() => ({ categories: e2, currentCategoryId: t2 }), [e2, t2]);
|
|
2157
2157
|
}
|
|
2158
2158
|
var li = ti(`seo/seo-service`);
|
|
2159
|
-
var ui = ti(`@wix/
|
|
2159
|
+
var ui = ti(`@wix/site-service-rendering-context`);
|
|
2160
2160
|
function di(e2) {
|
|
2161
2161
|
return e2.breadcrumbs.map(({ id: e3, name: t2, slug: n2 }) => ({ categoryId: e3, categoryName: t2, categorySlug: n2 }));
|
|
2162
2162
|
}
|
|
@@ -2167,8 +2167,8 @@ function pi(e2) {
|
|
|
2167
2167
|
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 } : {} };
|
|
2168
2168
|
}
|
|
2169
2169
|
function mi(e2) {
|
|
2170
|
-
let t2 = f(li), n2 = f(ui), r2 = i(false);
|
|
2171
|
-
!r2.current && e2.id && n2
|
|
2170
|
+
let t2 = f(li), { SSR: n2 } = f(ui), r2 = i(false);
|
|
2171
|
+
!r2.current && e2.id && n2 && (r2.current = true, t2.setSeoEntity(pi(e2)).catch(() => {
|
|
2172
2172
|
}));
|
|
2173
2173
|
}
|
|
2174
2174
|
function hi(e2) {
|