@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.
@@ -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), renderingContext: (0, import_services_manager_react.useService)(Kn) };
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 { _id: s2 } = e6 ?? {};
2030
- if (!r2 && e6 && s2 && !xo.has(e6) && a2.renderingContext.SSR) {
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: s2 }, 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: s2 } } });
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
  };