@wix/blog 1.0.702 → 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-blog-feed/runtime.js +2 -2
- package/_sdk-exports/context-post/runtime.d.ts +195 -115
- package/_sdk-exports/context-post/runtime.js +2 -5
- package/_sdk-exports/context-post-by-id/runtime.js +3 -3
- package/_sdk-exports/context-post-by-slug/runtime.d.ts +18 -0
- package/_sdk-exports/context-post-by-slug/runtime.js +5 -0
- package/_sdk-exports/context-post-item/runtime.d.ts +5 -6
- package/_sdk-exports/context-post-item/runtime.js +4 -4
- package/_sdk-exports/context-post-list-item/runtime.d.ts +508 -0
- package/_sdk-exports/context-post-list-item/runtime.js +5 -0
- package/_sdk-exports/context-related-posts/runtime.js +2 -2
- package/build/cjs/context-blog-feed.js +1 -1
- package/build/cjs/context-blog-feed.js.map +1 -1
- package/build/cjs/context-post-by-id.js +534 -496
- package/build/cjs/context-post-by-id.js.map +1 -1
- package/build/cjs/context-post-by-slug.d.ts +18 -0
- package/build/cjs/context-post-by-slug.js +5455 -0
- package/build/cjs/context-post-by-slug.js.map +1 -0
- package/build/cjs/context-post-item.d.ts +5 -6
- package/build/cjs/context-post-item.js +804 -788
- 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/cjs/context-post.d.ts +195 -115
- package/build/cjs/context-post.js +342 -5175
- package/build/cjs/context-post.js.map +1 -1
- package/build/cjs/context-related-posts.js +1 -1
- package/build/cjs/context-related-posts.js.map +1 -1
- package/build/es/context-blog-feed.mjs +1 -1
- package/build/es/context-blog-feed.mjs.map +1 -1
- package/build/es/context-post-by-id.mjs +534 -496
- package/build/es/context-post-by-id.mjs.map +1 -1
- package/build/es/context-post-by-slug.d.mts +18 -0
- package/build/es/context-post-by-slug.mjs +5415 -0
- package/build/es/context-post-by-slug.mjs.map +1 -0
- package/build/es/context-post-item.d.mts +5 -6
- package/build/es/context-post-item.mjs +803 -798
- 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/es/context-post.d.mts +195 -115
- package/build/es/context-post.mjs +341 -5173
- package/build/es/context-post.mjs.map +1 -1
- package/build/es/context-related-posts.mjs +1 -1
- package/build/es/context-related-posts.mjs.map +1 -1
- package/build/internal/cjs/context-post-by-slug.d.ts +18 -0
- package/build/internal/cjs/context-post-item.d.ts +5 -6
- package/build/internal/cjs/context-post-list-item.d.ts +508 -0
- package/build/internal/cjs/context-post.d.ts +195 -115
- package/build/internal/es/context-post-by-slug.d.mts +18 -0
- package/build/internal/es/context-post-item.d.mts +5 -6
- package/build/internal/es/context-post-list-item.d.mts +508 -0
- package/build/internal/es/context-post.d.mts +195 -115
- package/context/post-by-slug/package.json +3 -0
- package/context/post-list-item/package.json +3 -0
- package/package.json +26 -2
- package/post-by-slug-context-provider/package.json +3 -0
- package/post-list-item-context-provider/package.json +3 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { usePostContext as usePostBySlugContext } from "@wix/blog/post-context-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/extensions/post-by-slug-context-provider/post-by-slug-context-provider.d.ts
|
|
5
|
+
/** Props accepted by {@link PostBySlugProvider}. */
|
|
6
|
+
interface PostBySlugProviderProps {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Supplies the post page's blog post through the Post context: the one the URL slug names, or
|
|
11
|
+
* the draft in the dashboard's Preview Post. Also sets the page's SEO, counts the post view,
|
|
12
|
+
* and redirects to the post's translation in the page language.
|
|
13
|
+
*/
|
|
14
|
+
declare function PostBySlugProvider({
|
|
15
|
+
children
|
|
16
|
+
}: PostBySlugProviderProps): React.ReactNode;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { PostBySlugProvider, PostBySlugProvider as default, PostBySlugProviderProps, usePostBySlugContext };
|