fumadocs-mdx 9.0.2 → 9.0.4
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/dist/config.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NextConfig } from 'next';
|
|
2
|
-
import { RemarkHeadingOptions, RemarkImageOptions, RehypeCodeOptions } from 'fumadocs-core/mdx-plugins';
|
|
2
|
+
import { StructureOptions, RemarkHeadingOptions, RemarkImageOptions, RehypeCodeOptions } from 'fumadocs-core/mdx-plugins';
|
|
3
3
|
import { Pluggable } from 'unified';
|
|
4
4
|
import { Options as Options$1 } from './loader-mdx.mjs';
|
|
5
|
-
import { O as Options } from './search-index-plugin-
|
|
5
|
+
import { O as Options } from './search-index-plugin-DG9nZ1CX.mjs';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import 'webpack';
|
|
8
8
|
|
|
@@ -13,6 +13,7 @@ type MDXOptions = Omit<NonNullable<Options$1>, 'rehypePlugins' | 'remarkPlugins'
|
|
|
13
13
|
* Properties to export from `vfile.data`
|
|
14
14
|
*/
|
|
15
15
|
valueToExport?: string[];
|
|
16
|
+
remarkStructureOptions?: StructureOptions | false;
|
|
16
17
|
remarkHeadingOptions?: RemarkHeadingOptions;
|
|
17
18
|
remarkImageOptions?: RemarkImageOptions | false;
|
|
18
19
|
rehypeCodeOptions?: RehypeCodeOptions | false;
|
package/dist/config.mjs
CHANGED
|
@@ -121,7 +121,8 @@ var SearchIndexPlugin = class _SearchIndexPlugin {
|
|
|
121
121
|
structuredData: info.data.structuredData,
|
|
122
122
|
title: info.data.frontmatter.title,
|
|
123
123
|
description: info.data.frontmatter.description,
|
|
124
|
-
url: getUrl(relativePath)
|
|
124
|
+
url: getUrl(relativePath),
|
|
125
|
+
_data: info.data
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
compilation.emitAsset(
|
|
@@ -152,6 +153,7 @@ function getMDXLoaderOptions({
|
|
|
152
153
|
rehypeCodeOptions,
|
|
153
154
|
remarkImageOptions,
|
|
154
155
|
remarkHeadingOptions,
|
|
156
|
+
remarkStructureOptions,
|
|
155
157
|
...mdxOptions
|
|
156
158
|
}) {
|
|
157
159
|
const mdxExports = [
|
|
@@ -167,7 +169,10 @@ function getMDXLoaderOptions({
|
|
|
167
169
|
[remarkHeading, remarkHeadingOptions],
|
|
168
170
|
remarkImageOptions !== false && [remarkImage, remarkImageOptions],
|
|
169
171
|
...v,
|
|
170
|
-
|
|
172
|
+
remarkStructureOptions !== false && [
|
|
173
|
+
remarkStructure,
|
|
174
|
+
remarkStructureOptions
|
|
175
|
+
],
|
|
171
176
|
[remarkMdxExport, { values: mdxExports }]
|
|
172
177
|
],
|
|
173
178
|
mdxOptions.remarkPlugins
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { MDXProps } from 'mdx/types';
|
|
4
4
|
import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
5
5
|
import { TableOfContents } from 'fumadocs-core/server';
|
|
6
|
-
export { S as SearchIndex } from './search-index-plugin-
|
|
6
|
+
export { S as SearchIndex } from './search-index-plugin-DG9nZ1CX.mjs';
|
|
7
7
|
|
|
8
8
|
declare const defaultSchemas: {
|
|
9
9
|
frontmatter: z.ZodObject<{
|
|
@@ -14,14 +14,14 @@ declare const defaultSchemas: {
|
|
|
14
14
|
_openapi: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
title: string;
|
|
17
|
-
icon?: string | undefined;
|
|
18
17
|
description?: string | undefined;
|
|
18
|
+
icon?: string | undefined;
|
|
19
19
|
full?: boolean | undefined;
|
|
20
20
|
_openapi?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
title: string;
|
|
23
|
-
icon?: string | undefined;
|
|
24
23
|
description?: string | undefined;
|
|
24
|
+
icon?: string | undefined;
|
|
25
25
|
full?: boolean | undefined;
|
|
26
26
|
_openapi?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
27
27
|
}>;
|
|
@@ -6,6 +6,13 @@ interface SearchIndex {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
url: string;
|
|
8
8
|
structuredData: StructuredData;
|
|
9
|
+
/**
|
|
10
|
+
* VFile Data
|
|
11
|
+
*/
|
|
12
|
+
_data: {
|
|
13
|
+
frontmatter: Record<string, unknown>;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
9
16
|
}
|
|
10
17
|
interface Options {
|
|
11
18
|
rootContentDir: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.4",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"unified": "^11.0.5",
|
|
54
54
|
"webpack": "^5.90.3",
|
|
55
55
|
"eslint-config-custom": "0.0.0",
|
|
56
|
-
"fumadocs-core": "13.
|
|
56
|
+
"fumadocs-core": "13.4.1",
|
|
57
57
|
"tsconfig": "0.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|