@docusaurus/theme-common 0.0.0-5408 → 0.0.0-5410
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.
|
@@ -12,10 +12,10 @@ function extractMDXAdmonitionTitle(children) {
|
|
|
12
12
|
const mdxAdmonitionTitle = items.find((item) => React.isValidElement(item) &&
|
|
13
13
|
item.props?.mdxType ===
|
|
14
14
|
'mdxAdmonitionTitle');
|
|
15
|
-
const rest =
|
|
15
|
+
const rest = items.filter((item) => item !== mdxAdmonitionTitle);
|
|
16
16
|
return {
|
|
17
17
|
mdxAdmonitionTitle: mdxAdmonitionTitle?.props.children,
|
|
18
|
-
rest,
|
|
18
|
+
rest: rest.length > 0 ? <>{rest}</> : null,
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export function processAdmonitionProps(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admonitionUtils.js","sourceRoot":"","sources":["../../src/utils/admonitionUtils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,8EAA8E;AAC9E,+EAA+E;AAC/E,SAAS,yBAAyB,CAAC,QAAmB;IAIpD,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CACnC,CAAC,IAAI,EAAE,EAAE,CACP,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,KAAkC,EAAE,OAAO;YAC/C,oBAAoB,CACE,CAAC;IAC7B,MAAM,IAAI,GAAG,
|
|
1
|
+
{"version":3,"file":"admonitionUtils.js","sourceRoot":"","sources":["../../src/utils/admonitionUtils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,8EAA8E;AAC9E,+EAA+E;AAC/E,SAAS,yBAAyB,CAAC,QAAmB;IAIpD,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CACnC,CAAC,IAAI,EAAE,EAAE,CACP,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,KAAkC,EAAE,OAAO;YAC/C,oBAAoB,CACE,CAAC;IAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,kBAAkB,CAAC,CAAC;IACjE,OAAO;QACL,kBAAkB,EAAE,kBAAkB,EAAE,KAAK,CAAC,QAAQ;QACtD,IAAI,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;KAC3C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAEpC,KAAY;IACZ,MAAM,EAAC,kBAAkB,EAAE,IAAI,EAAC,GAAG,yBAAyB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7E,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,kBAAkB,CAAC;IAChD,OAAO;QACL,GAAG,KAAK;QACR,wCAAwC;QACxC,gEAAgE;QAChE,qCAAqC;QACrC,GAAG,CAAC,KAAK,IAAI,EAAC,KAAK,EAAC,CAAC;QACrB,QAAQ,EAAE,IAAI;KACf,CAAC;AACJ,CAAC"}
|
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-5410",
|
|
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-5410",
|
|
34
|
+
"@docusaurus/module-type-aliases": "0.0.0-5410",
|
|
35
|
+
"@docusaurus/plugin-content-blog": "0.0.0-5410",
|
|
36
|
+
"@docusaurus/plugin-content-docs": "0.0.0-5410",
|
|
37
|
+
"@docusaurus/plugin-content-pages": "0.0.0-5410",
|
|
38
|
+
"@docusaurus/utils": "0.0.0-5410",
|
|
39
39
|
"@types/history": "^4.7.11",
|
|
40
40
|
"@types/react": "*",
|
|
41
41
|
"@types/react-router-config": "*",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"utility-types": "^3.10.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@docusaurus/core": "0.0.0-
|
|
50
|
-
"@docusaurus/types": "0.0.0-
|
|
49
|
+
"@docusaurus/core": "0.0.0-5410",
|
|
50
|
+
"@docusaurus/types": "0.0.0-5410",
|
|
51
51
|
"fs-extra": "^10.1.0",
|
|
52
52
|
"lodash": "^4.17.21"
|
|
53
53
|
},
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=16.14"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "1675018febfafecbd59e3124d1818cf0845424e9"
|
|
62
62
|
}
|
|
@@ -20,10 +20,10 @@ function extractMDXAdmonitionTitle(children: ReactNode): {
|
|
|
20
20
|
(item.props as {mdxType: string} | null)?.mdxType ===
|
|
21
21
|
'mdxAdmonitionTitle',
|
|
22
22
|
) as JSX.Element | undefined;
|
|
23
|
-
const rest =
|
|
23
|
+
const rest = items.filter((item) => item !== mdxAdmonitionTitle);
|
|
24
24
|
return {
|
|
25
25
|
mdxAdmonitionTitle: mdxAdmonitionTitle?.props.children,
|
|
26
|
-
rest,
|
|
26
|
+
rest: rest.length > 0 ? <>{rest}</> : null,
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
|