@wix/blog 1.0.701 → 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.
@@ -4464,7 +4464,7 @@ var Ju = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPrev
4464
4464
  let { t: a2 } = yo(), o2 = Zl(), s2 = u(() => 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 = u(() => wl(e6.post), [e6]), x2 = Ql(), S2 = u(() => e6.post?.richContent && e6.paywall ? Zc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4465
4465
  return u(() => {
4466
4466
  let n3 = qu(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 });
4467
- 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 };
4467
+ 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 };
4468
4468
  }, [e6, t2, b2, S2, s2, o2, c2, f2, d2, p2, m2, h2, g2, _2, l2, r2, i2, v2, y2]);
4469
4469
  };
4470
4470
  var Yu = (e6) => ({ post: e6, hasError: false });
@@ -4473,7 +4473,7 @@ var Zu = (e6) => {
4473
4473
  throw e6;
4474
4474
  };
4475
4475
  var Qu = { ...Ku(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4476
- }, liveLikes: void 0, postUrl: void 0, clockValue: 0, relatedPostsSource: { currentPostId: void 0, categoryIds: void 0, relatedPostIds: void 0 }, isLoadingPost: true, hasError: false, isEmpty: false };
4476
+ }, 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 };
4477
4477
  var $u = { ...Qu, isLoadingPost: false, hasError: true, isEmpty: true };
4478
4478
  var ed = 2500;
4479
4479
  var td = Promise.resolve(Yu({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));