@wix/blog 1.0.728 → 1.0.730
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/build/cjs/context-blog-feed.js +266 -265
- package/build/cjs/context-blog-feed.js.map +1 -1
- package/build/cjs/context-post-by-slug.js +5 -5
- package/build/cjs/context-post-by-slug.js.map +1 -1
- package/build/es/context-blog-feed.mjs +266 -265
- package/build/es/context-blog-feed.mjs.map +1 -1
- package/build/es/context-post-by-slug.mjs +5 -5
- package/build/es/context-post-by-slug.mjs.map +1 -1
- package/context-runtime/context-blog-feed/runtime.js +3 -3
- package/context-runtime/context-post-by-slug/runtime.js +2 -2
- package/package.json +5 -5
|
@@ -2017,7 +2017,7 @@ var xo = /* @__PURE__ */ new WeakSet();
|
|
|
2017
2017
|
var So = ({ post: e6, author: t2, categories: n2 }, r2 = false, i2) => {
|
|
2018
2018
|
let a2;
|
|
2019
2019
|
try {
|
|
2020
|
-
a2 = { seo: (0, import_services_manager_react.useService)(Ua), url: (0, import_services_manager_react.useService)(W)
|
|
2020
|
+
a2 = { seo: (0, import_services_manager_react.useService)(Ua), url: (0, import_services_manager_react.useService)(W) };
|
|
2021
2021
|
} catch {
|
|
2022
2022
|
return;
|
|
2023
2023
|
}
|
|
@@ -2026,12 +2026,12 @@ var So = ({ post: e6, author: t2, categories: n2 }, r2 = false, i2) => {
|
|
|
2026
2026
|
o2 = (0, import_services_manager_react.useService)(Wa).locales;
|
|
2027
2027
|
} catch {
|
|
2028
2028
|
}
|
|
2029
|
-
let {
|
|
2030
|
-
if (!r2 && e6 &&
|
|
2029
|
+
let { isEditor: s2 } = Xn(), { _id: c2 } = e6 ?? {};
|
|
2030
|
+
if (!r2 && e6 && c2 && !xo.has(e6) && !s2) {
|
|
2031
2031
|
xo.add(e6);
|
|
2032
2032
|
let r3 = Oa(a2.url) ?? ka(a2.url.currentUrl, e6.slug);
|
|
2033
|
-
a2.seo.setSeoEntity({ itemType: `BLOG_POST`, itemData: bo({ ...e6, _id:
|
|
2034
|
-
Ja(i2, e7, { feature: Ga.seo, action: `set-post-seo-entity`, contexts: { seo: { postId:
|
|
2033
|
+
a2.seo.setSeoEntity({ itemType: `BLOG_POST`, itemData: bo({ ...e6, _id: c2 }, t2, r3, n2, o2, a2.url.currentUrl), seoData: e6.seoData }).catch((e7) => {
|
|
2034
|
+
Ja(i2, e7, { feature: Ga.seo, action: `set-post-seo-entity`, contexts: { seo: { postId: c2 } } });
|
|
2035
2035
|
});
|
|
2036
2036
|
}
|
|
2037
2037
|
};
|