@wix/blog 1.0.715 → 1.0.716

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.
Files changed (41) hide show
  1. package/_sdk-exports/context-blog-feed/runtime.d.ts +7 -0
  2. package/_sdk-exports/context-blog-feed/runtime.js +2 -2
  3. package/_sdk-exports/context-post-by-id/runtime.js +4 -4
  4. package/_sdk-exports/context-post-by-slug/runtime.js +2 -2
  5. package/_sdk-exports/context-post-list-item/runtime.d.ts +8 -3
  6. package/_sdk-exports/context-post-list-item/runtime.js +4 -4
  7. package/_sdk-exports/context-related-posts/runtime.d.ts +7 -0
  8. package/_sdk-exports/context-related-posts/runtime.js +2 -2
  9. package/build/cjs/context-blog-feed.d.ts +7 -0
  10. package/build/cjs/context-blog-feed.js +4 -4
  11. package/build/cjs/context-blog-feed.js.map +1 -1
  12. package/build/cjs/context-post-by-id.js +916 -893
  13. package/build/cjs/context-post-by-id.js.map +1 -1
  14. package/build/cjs/context-post-by-slug.js +145 -122
  15. package/build/cjs/context-post-by-slug.js.map +1 -1
  16. package/build/cjs/context-post-list-item.d.ts +8 -3
  17. package/build/cjs/context-post-list-item.js +896 -873
  18. package/build/cjs/context-post-list-item.js.map +1 -1
  19. package/build/cjs/context-related-posts.d.ts +7 -0
  20. package/build/cjs/context-related-posts.js +4 -4
  21. package/build/cjs/context-related-posts.js.map +1 -1
  22. package/build/es/context-blog-feed.d.mts +7 -0
  23. package/build/es/context-blog-feed.mjs +4 -4
  24. package/build/es/context-blog-feed.mjs.map +1 -1
  25. package/build/es/context-post-by-id.mjs +916 -893
  26. package/build/es/context-post-by-id.mjs.map +1 -1
  27. package/build/es/context-post-by-slug.mjs +146 -123
  28. package/build/es/context-post-by-slug.mjs.map +1 -1
  29. package/build/es/context-post-list-item.d.mts +8 -3
  30. package/build/es/context-post-list-item.mjs +896 -873
  31. package/build/es/context-post-list-item.mjs.map +1 -1
  32. package/build/es/context-related-posts.d.mts +7 -0
  33. package/build/es/context-related-posts.mjs +4 -4
  34. package/build/es/context-related-posts.mjs.map +1 -1
  35. package/build/internal/cjs/context-blog-feed.d.ts +7 -0
  36. package/build/internal/cjs/context-post-list-item.d.ts +8 -3
  37. package/build/internal/cjs/context-related-posts.d.ts +7 -0
  38. package/build/internal/es/context-blog-feed.d.mts +7 -0
  39. package/build/internal/es/context-post-list-item.d.mts +8 -3
  40. package/build/internal/es/context-related-posts.d.mts +7 -0
  41. package/package.json +2 -2
@@ -403,6 +403,13 @@ interface PostListItem {
403
403
  * a sample number instead.
404
404
  */
405
405
  initialCommentCount: number | undefined;
406
+ /**
407
+ * Number of likes on the post, as loaded with the post.
408
+ *
409
+ * `undefined` when the count wasn't loaded with the post. In the editor, but not in Preview,
410
+ * a sample number instead.
411
+ */
412
+ initialLikeCount: number | undefined;
406
413
  /** Name of the post's author, as rich text. Empty when the author isn't found. */
407
414
  authorName: RichText;
408
415
  /**
@@ -313,6 +313,13 @@ interface PostListItem {
313
313
  * a sample number instead.
314
314
  */
315
315
  initialCommentCount: number | undefined;
316
+ /**
317
+ * Number of likes on the post, as loaded with the post.
318
+ *
319
+ * `undefined` when the count wasn't loaded with the post. In the editor, but not in Preview,
320
+ * a sample number instead.
321
+ */
322
+ initialLikeCount: number | undefined;
316
323
  /** Name of the post's author, as rich text. Empty when the author isn't found. */
317
324
  authorName: RichText;
318
325
  /**
@@ -472,9 +479,7 @@ interface LiveLikes {
472
479
  type PostItemContextType = PostListItem & Omit<PostLikes, 'likeCount' | 'viewCount' | 'commentCount'> & {
473
480
  /**
474
481
  * The raw counters for widgets (Counters reads `likeCountValue`). Named apart
475
- * from the bindable richText labels `likeCount` / `viewCount` / `commentCount`, which
476
- * `PostListItem` already carries and this provider overrides once the per-cell metadata
477
- * read resolves.
482
+ * from the bindable richText labels `likeCount` / `viewCount` / `commentCount`.
478
483
  */
479
484
  likeCountValue: number;
480
485
  viewCountValue: number | undefined;
@@ -322,6 +322,13 @@ interface PostListItem {
322
322
  * a sample number instead.
323
323
  */
324
324
  initialCommentCount: number | undefined;
325
+ /**
326
+ * Number of likes on the post, as loaded with the post.
327
+ *
328
+ * `undefined` when the count wasn't loaded with the post. In the editor, but not in Preview,
329
+ * a sample number instead.
330
+ */
331
+ initialLikeCount: number | undefined;
325
332
  /** Name of the post's author, as rich text. Empty when the author isn't found. */
326
333
  authorName: RichText;
327
334
  /**
@@ -403,6 +403,13 @@ interface PostListItem {
403
403
  * a sample number instead.
404
404
  */
405
405
  initialCommentCount: number | undefined;
406
+ /**
407
+ * Number of likes on the post, as loaded with the post.
408
+ *
409
+ * `undefined` when the count wasn't loaded with the post. In the editor, but not in Preview,
410
+ * a sample number instead.
411
+ */
412
+ initialLikeCount: number | undefined;
406
413
  /** Name of the post's author, as rich text. Empty when the author isn't found. */
407
414
  authorName: RichText;
408
415
  /**
@@ -313,6 +313,13 @@ interface PostListItem {
313
313
  * a sample number instead.
314
314
  */
315
315
  initialCommentCount: number | undefined;
316
+ /**
317
+ * Number of likes on the post, as loaded with the post.
318
+ *
319
+ * `undefined` when the count wasn't loaded with the post. In the editor, but not in Preview,
320
+ * a sample number instead.
321
+ */
322
+ initialLikeCount: number | undefined;
316
323
  /** Name of the post's author, as rich text. Empty when the author isn't found. */
317
324
  authorName: RichText;
318
325
  /**
@@ -472,9 +479,7 @@ interface LiveLikes {
472
479
  type PostItemContextType = PostListItem & Omit<PostLikes, 'likeCount' | 'viewCount' | 'commentCount'> & {
473
480
  /**
474
481
  * The raw counters for widgets (Counters reads `likeCountValue`). Named apart
475
- * from the bindable richText labels `likeCount` / `viewCount` / `commentCount`, which
476
- * `PostListItem` already carries and this provider overrides once the per-cell metadata
477
- * read resolves.
482
+ * from the bindable richText labels `likeCount` / `viewCount` / `commentCount`.
478
483
  */
479
484
  likeCountValue: number;
480
485
  viewCountValue: number | undefined;
@@ -322,6 +322,13 @@ interface PostListItem {
322
322
  * a sample number instead.
323
323
  */
324
324
  initialCommentCount: number | undefined;
325
+ /**
326
+ * Number of likes on the post, as loaded with the post.
327
+ *
328
+ * `undefined` when the count wasn't loaded with the post. In the editor, but not in Preview,
329
+ * a sample number instead.
330
+ */
331
+ initialLikeCount: number | undefined;
325
332
  /** Name of the post's author, as rich text. Empty when the author isn't found. */
326
333
  authorName: RichText;
327
334
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/blog",
3
- "version": "1.0.715",
3
+ "version": "1.0.716",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -193,5 +193,5 @@
193
193
  "optional": true
194
194
  }
195
195
  },
196
- "falconPackageHash": "2c3f62e31f756281e91999beb5320fa22cb18b51a428e4258a9dc81b"
196
+ "falconPackageHash": "7ce1e88f17ba54485539f6dec1871ebec4da16a032ea2c15366bd7cb"
197
197
  }