@docusaurus/theme-common 0.0.0-5448 → 0.0.0-5449
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/contexts/blogPost.js +3 -3
- package/package.json +11 -11
- package/src/contexts/blogPost.tsx +3 -3
package/lib/contexts/blogPost.js
CHANGED
|
@@ -8,9 +8,9 @@ import React, { useMemo, useContext } from 'react';
|
|
|
8
8
|
import { ReactContextError } from '../utils/reactUtils';
|
|
9
9
|
const Context = React.createContext(null);
|
|
10
10
|
/**
|
|
11
|
-
* Note: we don't use `PropBlogPostContent` as context value on purpose.
|
|
12
|
-
* currently stored inside the MDX component, but we may want to
|
|
13
|
-
* the future.
|
|
11
|
+
* Note: we don't use `PropBlogPostContent` as context value on purpose.
|
|
12
|
+
* Metadata is currently stored inside the MDX component, but we may want to
|
|
13
|
+
* change that in the future.
|
|
14
14
|
*/
|
|
15
15
|
function useContextValue({ content, isBlogPostPage, }) {
|
|
16
16
|
return useMemo(() => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-common",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5449",
|
|
4
4
|
"description": "Common code for Docusaurus themes.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
34
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
35
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
36
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
37
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
38
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
+
"@docusaurus/mdx-loader": "0.0.0-5449",
|
|
34
|
+
"@docusaurus/module-type-aliases": "0.0.0-5449",
|
|
35
|
+
"@docusaurus/plugin-content-blog": "0.0.0-5449",
|
|
36
|
+
"@docusaurus/plugin-content-docs": "0.0.0-5449",
|
|
37
|
+
"@docusaurus/plugin-content-pages": "0.0.0-5449",
|
|
38
|
+
"@docusaurus/utils": "0.0.0-5449",
|
|
39
39
|
"@types/history": "^4.7.11",
|
|
40
40
|
"@types/react": "*",
|
|
41
41
|
"@types/react-router-config": "*",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"utility-types": "^3.10.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@docusaurus/core": "0.0.0-
|
|
51
|
-
"@docusaurus/types": "0.0.0-
|
|
52
|
-
"fs-extra": "^
|
|
50
|
+
"@docusaurus/core": "0.0.0-5449",
|
|
51
|
+
"@docusaurus/types": "0.0.0-5449",
|
|
52
|
+
"fs-extra": "^11.1.0",
|
|
53
53
|
"lodash": "^4.17.21"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=16.14"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "46fe5ffd9189c11945c3c150c17c7f048e92b398"
|
|
63
63
|
}
|
|
@@ -24,9 +24,9 @@ export type BlogPostContextValue = Pick<
|
|
|
24
24
|
const Context = React.createContext<BlogPostContextValue | null>(null);
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Note: we don't use `PropBlogPostContent` as context value on purpose.
|
|
28
|
-
* currently stored inside the MDX component, but we may want to
|
|
29
|
-
* the future.
|
|
27
|
+
* Note: we don't use `PropBlogPostContent` as context value on purpose.
|
|
28
|
+
* Metadata is currently stored inside the MDX component, but we may want to
|
|
29
|
+
* change that in the future.
|
|
30
30
|
*/
|
|
31
31
|
function useContextValue({
|
|
32
32
|
content,
|