@docusaurus/plugin-content-blog 4.0.0-canary-6859 → 4.0.0-canary-6863
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/lib/client/contexts.js +1 -1
- package/package.json +12 -12
- package/src/client/contexts.tsx +1 -1
package/lib/client/contexts.js
CHANGED
|
@@ -36,7 +36,7 @@ function useContextValue({ content, isBlogPostPage, }) {
|
|
|
36
36
|
*/
|
|
37
37
|
export function BlogPostProvider({ children, content, isBlogPostPage = false, }) {
|
|
38
38
|
const contextValue = useContextValue({ content, isBlogPostPage });
|
|
39
|
-
return <Context
|
|
39
|
+
return <Context value={contextValue}>{children}</Context>;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Returns the data of the currently browsed blog post. Gives access to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-blog",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6863",
|
|
4
4
|
"description": "Blog plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-blog.d.ts",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@docusaurus/core": "4.0.0-canary-
|
|
35
|
-
"@docusaurus/glob": "4.0.0-canary-
|
|
36
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
37
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
38
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
39
|
-
"@docusaurus/theme-common": "4.0.0-canary-
|
|
40
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
41
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
42
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
43
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
34
|
+
"@docusaurus/core": "4.0.0-canary-6863",
|
|
35
|
+
"@docusaurus/glob": "4.0.0-canary-6863",
|
|
36
|
+
"@docusaurus/logger": "4.0.0-canary-6863",
|
|
37
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6863",
|
|
38
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6863",
|
|
39
|
+
"@docusaurus/theme-common": "4.0.0-canary-6863",
|
|
40
|
+
"@docusaurus/types": "4.0.0-canary-6863",
|
|
41
|
+
"@docusaurus/utils": "4.0.0-canary-6863",
|
|
42
|
+
"@docusaurus/utils-common": "4.0.0-canary-6863",
|
|
43
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6863",
|
|
44
44
|
"cheerio": "^1.2.0",
|
|
45
45
|
"combine-promises": "^1.2.0",
|
|
46
46
|
"feed": "^5.2.1",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"tree-node-cli": "^3.0.0",
|
|
70
70
|
"unified": "^11.0.5"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "dcf62792e7f4b7a7dcf4e9558665c93dd4e6da3e"
|
|
73
73
|
}
|
package/src/client/contexts.tsx
CHANGED
|
@@ -76,7 +76,7 @@ export function BlogPostProvider({
|
|
|
76
76
|
isBlogPostPage?: boolean;
|
|
77
77
|
}): ReactNode {
|
|
78
78
|
const contextValue = useContextValue({content, isBlogPostPage});
|
|
79
|
-
return <Context
|
|
79
|
+
return <Context value={contextValue}>{children}</Context>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|