@wix/blog 1.0.700 → 1.0.702

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.
@@ -4504,7 +4504,7 @@ var Ju = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPrev
4504
4504
  let { t: a2 } = yo(), o2 = Zl(), s2 = (0, import_react.useMemo)(() => eu(a2, o2), [a2, o2]), c2 = Ll(e6.fetchedAt), l2 = au(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = Xl(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = Fl($n), y2 = Fl(`tag`), b2 = (0, import_react.useMemo)(() => wl(e6.post), [e6]), x2 = Ql(), S2 = (0, import_react.useMemo)(() => e6.post?.richContent && e6.paywall ? Zc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4505
4505
  return (0, import_react.useMemo)(() => {
4506
4506
  let n3 = qu(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 });
4507
- return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, postUrl: r2 || !e6.post ? void 0 : cr(e6.post, i2)?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: $(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
4507
+ return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, commentingEnabled: e6.post?.commentingEnabled ?? void 0, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, postUrl: r2 || !e6.post ? void 0 : cr(e6.post, i2)?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: $(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
4508
4508
  }, [e6, t2, b2, S2, s2, o2, c2, f2, d2, p2, m2, h2, g2, _2, l2, r2, i2, v2, y2]);
4509
4509
  };
4510
4510
  var Yu = (e6) => ({ post: e6, hasError: false });
@@ -4513,7 +4513,7 @@ var Zu = (e6) => {
4513
4513
  throw e6;
4514
4514
  };
4515
4515
  var Qu = { ...Ku(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4516
- }, liveLikes: void 0, postUrl: void 0, clockValue: 0, relatedPostsSource: { currentPostId: void 0, categoryIds: void 0, relatedPostIds: void 0 }, isLoadingPost: true, hasError: false, isEmpty: false };
4516
+ }, liveLikes: void 0, postUrl: void 0, clockValue: 0, relatedPostsSource: { currentPostId: void 0, categoryIds: void 0, relatedPostIds: void 0 }, commentingEnabled: void 0, isLoadingPost: true, hasError: false, isEmpty: false };
4517
4517
  var $u = { ...Qu, isLoadingPost: false, hasError: true, isEmpty: true };
4518
4518
  var ed = 2500;
4519
4519
  var td = Promise.resolve(Yu({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));