@wix/blog 1.0.703 → 1.0.704
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/_sdk-exports/context-post-item/runtime.d.ts +3 -3
- package/_sdk-exports/context-post-item/runtime.js +2 -2
- package/_sdk-exports/context-post-list-item/runtime.d.ts +508 -0
- package/_sdk-exports/context-post-list-item/runtime.js +5 -0
- package/build/cjs/context-post-item.d.ts +3 -3
- package/build/cjs/context-post-item.js +4 -2
- package/build/cjs/context-post-item.js.map +1 -1
- package/build/cjs/context-post-list-item.d.ts +508 -0
- package/build/cjs/context-post-list-item.js +3698 -0
- package/build/cjs/context-post-list-item.js.map +1 -0
- package/build/es/context-post-item.d.mts +3 -3
- package/build/es/context-post-item.mjs +2 -1
- package/build/es/context-post-item.mjs.map +1 -1
- package/build/es/context-post-list-item.d.mts +508 -0
- package/build/es/context-post-list-item.mjs +3657 -0
- package/build/es/context-post-list-item.mjs.map +1 -0
- package/build/internal/cjs/context-post-item.d.ts +3 -3
- package/build/internal/cjs/context-post-list-item.d.ts +508 -0
- package/build/internal/es/context-post-item.d.mts +3 -3
- package/build/internal/es/context-post-list-item.d.mts +508 -0
- package/context/post-list-item/package.json +3 -0
- package/package.json +14 -2
- package/post-list-item-context-provider/package.json +3 -0
|
@@ -464,7 +464,7 @@ interface LiveLikes {
|
|
|
464
464
|
subscribe(listener: () => void): () => void;
|
|
465
465
|
}
|
|
466
466
|
//#endregion
|
|
467
|
-
//#region src/extensions/post-item-context-provider/post-item-context-provider.d.ts
|
|
467
|
+
//#region src/extensions/post-list-item-context-provider/post-list-item-context-provider.d.ts
|
|
468
468
|
/**
|
|
469
469
|
* The cell's raw item plus its like state, for the Blog widgets that read a cell directly
|
|
470
470
|
* (Comments, Cover Media). Elements bind the Post context this provider publishes, never this.
|
|
@@ -487,7 +487,7 @@ type PostItemContextType = PostListItem & Omit<PostLikes, 'likeCount' | 'viewCou
|
|
|
487
487
|
* Nullable rather than throwing: the hook runs for every element inside the repeater
|
|
488
488
|
* cell, including on the editor stage before the cell is populated.
|
|
489
489
|
*/
|
|
490
|
-
declare function
|
|
490
|
+
declare function usePostListItemContext(): PostItemContextType | null;
|
|
491
491
|
/** Props accepted by {@link PostItemContextProvider}. */
|
|
492
492
|
interface PostItemContextProviderProps extends React.PropsWithChildren {
|
|
493
493
|
/**
|
|
@@ -505,4 +505,4 @@ declare function PostItemContextProvider({
|
|
|
505
505
|
children
|
|
506
506
|
}: PostItemContextProviderProps): React.ReactNode;
|
|
507
507
|
|
|
508
|
-
export { PostItemContextProvider, type PostItemContextProviderProps, type PostItemContextType, type PostListItem, PostItemContextProvider as default, usePostItemContext };
|
|
508
|
+
export { PostItemContextProvider, type PostItemContextProviderProps, type PostItemContextType, type PostListItem, PostItemContextProvider as default, usePostListItemContext as usePostItemContext, usePostListItemContext };
|
|
@@ -3651,6 +3651,7 @@ export {
|
|
|
3651
3651
|
ms as PostItemContextProvider,
|
|
3652
3652
|
ms as default,
|
|
3653
3653
|
hs as injectAccessTokenGetter,
|
|
3654
|
-
fs as usePostItemContext
|
|
3654
|
+
fs as usePostItemContext,
|
|
3655
|
+
fs as usePostListItemContext
|
|
3655
3656
|
};
|
|
3656
3657
|
//# sourceMappingURL=context-post-item.mjs.map
|