@wix/blog 1.0.704 → 1.0.706
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-blog-feed/runtime.d.ts +8 -8
- package/_sdk-exports/context-category-item/runtime.d.ts +4 -4
- package/_sdk-exports/context-post/runtime.d.ts +27 -13
- package/_sdk-exports/context-post-by-slug/runtime.js +4 -4
- package/_sdk-exports/context-post-list-item/runtime.d.ts +8 -8
- package/_sdk-exports/context-post-list-item/runtime.js +2 -2
- package/_sdk-exports/context-related-posts/runtime.d.ts +5 -5
- package/_sdk-exports/context-related-posts/runtime.js +2 -2
- package/_sdk-exports/context-tag-item/runtime.d.ts +4 -4
- package/build/cjs/context-blog-feed.d.ts +8 -8
- package/build/cjs/context-category-item.d.ts +4 -4
- package/build/cjs/context-post-by-slug.js +1455 -1988
- package/build/cjs/context-post-by-slug.js.map +1 -1
- package/build/cjs/context-post-list-item.d.ts +8 -8
- package/build/cjs/context-post-list-item.js +0 -2
- package/build/cjs/context-post-list-item.js.map +1 -1
- package/build/cjs/context-post.d.ts +27 -13
- package/build/cjs/context-related-posts.d.ts +5 -5
- package/build/cjs/context-related-posts.js +10 -3
- package/build/cjs/context-related-posts.js.map +1 -1
- package/build/cjs/context-tag-item.d.ts +4 -4
- package/build/es/context-blog-feed.d.mts +8 -8
- package/build/es/context-category-item.d.mts +4 -4
- package/build/es/context-post-by-slug.mjs +1455 -1988
- package/build/es/context-post-by-slug.mjs.map +1 -1
- package/build/es/context-post-list-item.d.mts +8 -8
- package/build/es/context-post-list-item.mjs +0 -1
- package/build/es/context-post-list-item.mjs.map +1 -1
- package/build/es/context-post.d.mts +27 -13
- package/build/es/context-related-posts.d.mts +5 -5
- package/build/es/context-related-posts.mjs +10 -3
- package/build/es/context-related-posts.mjs.map +1 -1
- package/build/es/context-tag-item.d.mts +4 -4
- package/build/internal/cjs/context-blog-feed.d.ts +8 -8
- package/build/internal/cjs/context-category-item.d.ts +4 -4
- package/build/internal/cjs/context-post-list-item.d.ts +8 -8
- package/build/internal/cjs/context-post.d.ts +27 -13
- package/build/internal/cjs/context-related-posts.d.ts +5 -5
- package/build/internal/cjs/context-tag-item.d.ts +4 -4
- package/build/internal/es/context-blog-feed.d.mts +8 -8
- package/build/internal/es/context-category-item.d.mts +4 -4
- package/build/internal/es/context-post-list-item.d.mts +8 -8
- package/build/internal/es/context-post.d.mts +27 -13
- package/build/internal/es/context-related-posts.d.mts +5 -5
- package/build/internal/es/context-tag-item.d.mts +4 -4
- package/package.json +2 -14
- package/_sdk-exports/context-post-item/runtime.d.ts +0 -508
- package/_sdk-exports/context-post-item/runtime.js +0 -5
- package/build/cjs/context-post-item.d.ts +0 -508
- package/build/cjs/context-post-item.js +0 -3698
- package/build/cjs/context-post-item.js.map +0 -1
- package/build/es/context-post-item.d.mts +0 -508
- package/build/es/context-post-item.mjs +0 -3657
- package/build/es/context-post-item.mjs.map +0 -1
- package/build/internal/cjs/context-post-item.d.ts +0 -508
- package/build/internal/es/context-post-item.d.mts +0 -508
- package/context/post-item/package.json +0 -3
- package/post-item-context-provider/package.json +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/links.d.ts
|
|
3
|
+
//#region ../../node_modules/.pnpm/@wix+editor-react-types@1.0.110/node_modules/@wix/editor-react-types/dist/links.d.ts
|
|
4
4
|
type LinkTarget = '_self' | '_blank';
|
|
5
5
|
/**
|
|
6
6
|
* A link to a URL, used for navigation within components.
|
|
@@ -36,7 +36,7 @@ type Link = {
|
|
|
36
36
|
pageRole?: string;
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/image.d.ts
|
|
39
|
+
//#region ../../node_modules/.pnpm/@wix+editor-react-types@1.0.110/node_modules/@wix/editor-react-types/dist/image.d.ts
|
|
40
40
|
type Point = {
|
|
41
41
|
x: number;
|
|
42
42
|
y: number;
|
|
@@ -73,7 +73,7 @@ type Image = {
|
|
|
73
73
|
alt?: string;
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/base.d.ts
|
|
76
|
+
//#region ../../node_modules/.pnpm/@wix+editor-react-types@1.0.110/node_modules/@wix/editor-react-types/dist/base.d.ts
|
|
77
77
|
/**
|
|
78
78
|
* Rich text content with resolved links.
|
|
79
79
|
*
|
|
@@ -101,7 +101,7 @@ type RichText = {
|
|
|
101
101
|
linkList: Array<Link>;
|
|
102
102
|
};
|
|
103
103
|
//#endregion
|
|
104
|
-
//#region ../../node_modules/type-fest/source/observable-like.d.ts
|
|
104
|
+
//#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/observable-like.d.ts
|
|
105
105
|
declare global {
|
|
106
106
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
107
107
|
interface SymbolConstructor {
|
|
@@ -119,7 +119,7 @@ As well, some guidance on making an `Observable` to not include `closed` propert
|
|
|
119
119
|
@category Observable
|
|
120
120
|
*/
|
|
121
121
|
//#endregion
|
|
122
|
-
//#region ../../node_modules/@wix/sdk-types/build/index.d.ts
|
|
122
|
+
//#region ../../node_modules/.pnpm/@wix+sdk-types@1.17.12/node_modules/@wix/sdk-types/build/index.d.ts
|
|
123
123
|
declare global {
|
|
124
124
|
interface ContextualClient {}
|
|
125
125
|
}
|
|
@@ -406,7 +406,7 @@ interface LiveLikes {
|
|
|
406
406
|
* @example Thank the site visitor after they like the post
|
|
407
407
|
* ```tsx
|
|
408
408
|
* import { useState } from 'react';
|
|
409
|
-
* import { usePostByIdContext } from '@wix/blog/post-by-id
|
|
409
|
+
* import { usePostByIdContext } from '@wix/blog/context/post-by-id';
|
|
410
410
|
*
|
|
411
411
|
* function LikeButton() {
|
|
412
412
|
* const { isEmpty, isLiked, liveLikes, toggleLike } = usePostByIdContext();
|
|
@@ -444,7 +444,7 @@ interface LiveLikes {
|
|
|
444
444
|
* @example Show the like count as soon as it changes
|
|
445
445
|
* ```tsx
|
|
446
446
|
* import { useSyncExternalStore } from 'react';
|
|
447
|
-
* import { usePostByIdContext } from '@wix/blog/post-by-id
|
|
447
|
+
* import { usePostByIdContext } from '@wix/blog/context/post-by-id';
|
|
448
448
|
*
|
|
449
449
|
* const noLikes = () => () => {};
|
|
450
450
|
*
|
|
@@ -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, usePostListItemContext
|
|
508
|
+
export { PostItemContextProvider, type PostItemContextProviderProps, type PostItemContextType, type PostListItem, PostItemContextProvider as default, usePostListItemContext };
|