@wix/blog 1.0.715 → 1.0.717
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.d.ts +7 -0
- package/build/cjs/context-blog-feed.js +5 -5
- package/build/cjs/context-blog-feed.js.map +1 -1
- package/build/cjs/context-category-item.js +1 -1
- package/build/cjs/context-category-item.js.map +1 -1
- package/build/cjs/context-post-by-id.js +953 -928
- package/build/cjs/context-post-by-id.js.map +1 -1
- package/build/cjs/context-post-by-slug.js +148 -123
- package/build/cjs/context-post-by-slug.js.map +1 -1
- package/build/cjs/context-post-list-item.d.ts +8 -3
- package/build/cjs/context-post-list-item.js +897 -874
- package/build/cjs/context-post-list-item.js.map +1 -1
- package/build/cjs/context-post.js +1 -1
- package/build/cjs/context-post.js.map +1 -1
- package/build/cjs/context-related-posts.d.ts +7 -0
- package/build/cjs/context-related-posts.js +5 -5
- package/build/cjs/context-related-posts.js.map +1 -1
- package/build/cjs/context-tag-item.js +1 -1
- package/build/cjs/context-tag-item.js.map +1 -1
- package/build/es/context-blog-feed.d.mts +7 -0
- package/build/es/context-blog-feed.mjs +5 -5
- package/build/es/context-blog-feed.mjs.map +1 -1
- package/build/es/context-category-item.mjs +1 -1
- package/build/es/context-category-item.mjs.map +1 -1
- package/build/es/context-post-by-id.mjs +953 -928
- package/build/es/context-post-by-id.mjs.map +1 -1
- package/build/es/context-post-by-slug.mjs +148 -123
- package/build/es/context-post-by-slug.mjs.map +1 -1
- package/build/es/context-post-list-item.d.mts +8 -3
- package/build/es/context-post-list-item.mjs +897 -874
- package/build/es/context-post-list-item.mjs.map +1 -1
- package/build/es/context-post.mjs +1 -1
- package/build/es/context-post.mjs.map +1 -1
- package/build/es/context-related-posts.d.mts +7 -0
- package/build/es/context-related-posts.mjs +5 -5
- package/build/es/context-related-posts.mjs.map +1 -1
- package/build/es/context-tag-item.mjs +1 -1
- package/build/es/context-tag-item.mjs.map +1 -1
- package/build/internal/cjs/context-blog-feed.d.ts +7 -0
- package/build/internal/cjs/context-post-list-item.d.ts +8 -3
- package/build/internal/cjs/context-related-posts.d.ts +7 -0
- package/build/internal/es/context-blog-feed.d.mts +7 -0
- package/build/internal/es/context-post-list-item.d.mts +8 -3
- package/build/internal/es/context-related-posts.d.mts +7 -0
- package/{_sdk-exports → context-runtime}/context-blog-feed/runtime.d.ts +7 -0
- package/{_sdk-exports → context-runtime}/context-blog-feed/runtime.js +2 -2
- package/context-runtime/context-post-by-id/runtime.js +5 -0
- package/{_sdk-exports → context-runtime}/context-post-by-slug/runtime.js +2 -2
- package/{_sdk-exports → context-runtime}/context-post-list-item/runtime.d.ts +8 -3
- package/context-runtime/context-post-list-item/runtime.js +5 -0
- package/{_sdk-exports → context-runtime}/context-related-posts/runtime.d.ts +7 -0
- package/{_sdk-exports → context-runtime}/context-related-posts/runtime.js +2 -2
- package/package.json +4 -4
- package/_sdk-exports/context-post-by-id/runtime.js +0 -5
- package/_sdk-exports/context-post-list-item/runtime.js +0 -5
- /package/{_sdk-exports → context-runtime}/context-category-item/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-category-item/runtime.js +0 -0
- /package/{_sdk-exports → context-runtime}/context-post/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-post/runtime.js +0 -0
- /package/{_sdk-exports → context-runtime}/context-post-by-id/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-post-by-slug/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-tag-item/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-tag-item/runtime.js +0 -0
|
@@ -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
|
|
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;
|