@docusaurus/mdx-loader 0.0.0-5072 → 0.0.0-5078
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/index.d.ts +1 -2
- package/lib/index.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/index.ts +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { mdxLoader } from './loader';
|
|
9
8
|
export default mdxLoader;
|
|
10
9
|
export declare type TOCItem = {
|
|
@@ -18,7 +17,7 @@ export declare type LoadedMDXContent<FrontMatter, Metadata, Assets = undefined>
|
|
|
18
17
|
/** As provided by the content plugin. */
|
|
19
18
|
readonly metadata: Metadata;
|
|
20
19
|
/** A list of TOC items (headings). */
|
|
21
|
-
readonly toc
|
|
20
|
+
readonly toc: readonly TOCItem[];
|
|
22
21
|
/** First h1 title before any content. */
|
|
23
22
|
readonly contentTitle: string | undefined;
|
|
24
23
|
/**
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAEnC,eAAe,SAAS,CAAC;AAEzB,oBAAY,OAAO,GAAG;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,gBAAgB,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,IAAI;IACxE,gDAAgD;IAChD,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,sCAAsC;IACtC,QAAQ,CAAC,GAAG,EAAE,SAAS,OAAO,EAAE,CAAC;IACjC,yCAAyC;IACzC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,IAAI,GAAG,CAAC,OAAO,CAAC;CACjB,CAAC;AACF,YAAY,EAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/mdx-loader",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5078",
|
|
4
4
|
"description": "Docusaurus Loader for MDX",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/parser": "^7.18.3",
|
|
22
22
|
"@babel/traverse": "^7.18.2",
|
|
23
|
-
"@docusaurus/logger": "0.0.0-
|
|
24
|
-
"@docusaurus/utils": "0.0.0-
|
|
23
|
+
"@docusaurus/logger": "0.0.0-5078",
|
|
24
|
+
"@docusaurus/utils": "0.0.0-5078",
|
|
25
25
|
"@mdx-js/mdx": "^1.6.22",
|
|
26
26
|
"escape-html": "^1.0.3",
|
|
27
27
|
"file-loader": "^6.2.0",
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
"remark-emoji": "^2.2.0",
|
|
32
32
|
"stringify-object": "^3.3.0",
|
|
33
33
|
"tslib": "^2.4.0",
|
|
34
|
+
"unified": "^9.2.2",
|
|
34
35
|
"unist-util-visit": "^2.0.3",
|
|
35
36
|
"url-loader": "^4.1.1",
|
|
36
37
|
"webpack": "^5.72.1"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@docusaurus/types": "0.0.0-
|
|
40
|
+
"@docusaurus/types": "0.0.0-5078",
|
|
40
41
|
"@types/escape-html": "^1.0.2",
|
|
41
42
|
"@types/mdast": "^3.0.10",
|
|
42
43
|
"@types/stringify-object": "^3.3.1",
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"engines": {
|
|
55
56
|
"node": ">=16.14"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "b1ac010dc6c95b2a788eac5c9843b6a4b3852706"
|
|
58
59
|
}
|
package/src/index.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type LoadedMDXContent<FrontMatter, Metadata, Assets = undefined> = {
|
|
|
21
21
|
/** As provided by the content plugin. */
|
|
22
22
|
readonly metadata: Metadata;
|
|
23
23
|
/** A list of TOC items (headings). */
|
|
24
|
-
readonly toc
|
|
24
|
+
readonly toc: readonly TOCItem[];
|
|
25
25
|
/** First h1 title before any content. */
|
|
26
26
|
readonly contentTitle: string | undefined;
|
|
27
27
|
/**
|