fumadocs-mdx 11.10.1 → 12.0.0
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/bin.cjs +29 -139
- package/dist/bin.js +1 -1
- package/dist/{browser-B2G8uAF2.d.cts → browser-D5lvL8vv.d.ts} +51 -4
- package/dist/{browser-DrH7tKRi.d.ts → browser-DjWADqp8.d.cts} +51 -4
- package/dist/bun/index.cjs +126 -108
- package/dist/bun/index.js +5 -5
- package/dist/chunk-3M4SHY6K.js +80 -0
- package/dist/{chunk-UOOPSLFY.js → chunk-AUOOMFAI.js} +27 -21
- package/dist/{chunk-QJCCVMBJ.js → chunk-KGUBBRL6.js} +11 -13
- package/dist/{chunk-SVTXMVLQ.js → chunk-KTDVTBMH.js} +1 -1
- package/dist/{chunk-766EAFX6.js → chunk-POXTQZ4D.js} +1 -31
- package/dist/chunk-SWNOXPYJ.js +142 -0
- package/dist/{chunk-XXSKWWMB.js → chunk-TLD6JMT6.js} +1 -1
- package/dist/{chunk-CNKI574E.js → chunk-VXEBLM4X.js} +1 -1
- package/dist/{chunk-QVZ7JH4H.js → chunk-YC25YEBF.js} +1 -1
- package/dist/chunk-ZLCSVXCD.js +10 -0
- package/dist/config/index.cjs +18 -97
- package/dist/config/index.d.cts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +48 -9
- package/dist/{define-BH4bnHQl.d.ts → define--6HQ1ehX.d.cts} +18 -3
- package/dist/{define-BH4bnHQl.d.cts → define--6HQ1ehX.d.ts} +18 -3
- package/dist/loader-mdx.cjs +127 -139
- package/dist/loader-mdx.js +6 -6
- package/dist/next/index.cjs +29 -139
- package/dist/next/index.js +16 -16
- package/dist/node/loader.cjs +131 -143
- package/dist/node/loader.js +6 -6
- package/dist/postinstall-U7VROOY7.js +9 -0
- package/dist/{mdx-options-T73E4LQB.js → preset-WFEORCAB.js} +1 -1
- package/dist/runtime/next/async.cjs +198 -150
- package/dist/runtime/next/async.d.cts +3 -3
- package/dist/runtime/next/async.d.ts +3 -3
- package/dist/runtime/next/async.js +50 -30
- package/dist/runtime/next/index.cjs +32 -21
- package/dist/runtime/next/index.d.cts +11 -7
- package/dist/runtime/next/index.d.ts +11 -7
- package/dist/runtime/next/index.js +2 -1
- package/dist/runtime/vite/browser.d.cts +2 -3
- package/dist/runtime/vite/browser.d.ts +2 -3
- package/dist/runtime/vite/server.cjs +67 -21
- package/dist/runtime/vite/server.d.cts +14 -28
- package/dist/runtime/vite/server.d.ts +14 -28
- package/dist/runtime/vite/server.js +61 -21
- package/dist/shared-0QIuV0XZ.d.ts +70 -0
- package/dist/shared-CqgMnt9h.d.cts +70 -0
- package/dist/{types-DN9KrG7R.d.ts → types-DLIAvrgC.d.ts} +6 -32
- package/dist/{types-DT83Ijs6.d.cts → types-Dl8HLbm5.d.cts} +6 -32
- package/dist/vite/index.cjs +131 -143
- package/dist/vite/index.js +7 -7
- package/package.json +2 -6
- package/dist/build-mdx-DnC1jKvn.d.cts +0 -46
- package/dist/build-mdx-DnC1jKvn.d.ts +0 -46
- package/dist/chunk-GBMFGEC7.js +0 -57
- package/dist/chunk-QQWCBFFE.js +0 -40
- package/dist/chunk-SMSNZ6N5.js +0 -155
- package/dist/config/zod-3.cjs +0 -422
- package/dist/config/zod-3.d.cts +0 -53
- package/dist/config/zod-3.d.ts +0 -53
- package/dist/config/zod-3.js +0 -40
- package/dist/postinstall-XV4WSHZP.js +0 -9
package/dist/config/zod-3.d.cts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod/v3';
|
|
2
|
-
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, D as DefaultMDXOptions, a as DocCollection, b as DocsCollection, G as GlobalConfig, M as MetaCollection, d as defineCollections, e as defineConfig, c as defineDocs, g as getDefaultMDXOptions } from '../define-BH4bnHQl.cjs';
|
|
3
|
-
export { Params, remarkInclude } from './index.cjs';
|
|
4
|
-
import '@standard-schema/spec';
|
|
5
|
-
import 'fumadocs-core/mdx-plugins';
|
|
6
|
-
import '@mdx-js/mdx';
|
|
7
|
-
import 'unified';
|
|
8
|
-
import 'zod';
|
|
9
|
-
import 'mdast';
|
|
10
|
-
|
|
11
|
-
declare const metaSchema: z.ZodObject<{
|
|
12
|
-
title: z.ZodOptional<z.ZodString>;
|
|
13
|
-
pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
-
description: z.ZodOptional<z.ZodString>;
|
|
15
|
-
root: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
defaultOpen: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
title?: string | undefined;
|
|
20
|
-
pages?: string[] | undefined;
|
|
21
|
-
description?: string | undefined;
|
|
22
|
-
root?: boolean | undefined;
|
|
23
|
-
defaultOpen?: boolean | undefined;
|
|
24
|
-
icon?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
title?: string | undefined;
|
|
27
|
-
pages?: string[] | undefined;
|
|
28
|
-
description?: string | undefined;
|
|
29
|
-
root?: boolean | undefined;
|
|
30
|
-
defaultOpen?: boolean | undefined;
|
|
31
|
-
icon?: string | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
declare const frontmatterSchema: z.ZodObject<{
|
|
34
|
-
title: z.ZodString;
|
|
35
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
37
|
-
full: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
_openapi: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
title: string;
|
|
41
|
-
description?: string | undefined;
|
|
42
|
-
icon?: string | undefined;
|
|
43
|
-
full?: boolean | undefined;
|
|
44
|
-
_openapi?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
title: string;
|
|
47
|
-
description?: string | undefined;
|
|
48
|
-
icon?: string | undefined;
|
|
49
|
-
full?: boolean | undefined;
|
|
50
|
-
_openapi?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
|
|
53
|
-
export { frontmatterSchema, metaSchema };
|
package/dist/config/zod-3.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod/v3';
|
|
2
|
-
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, D as DefaultMDXOptions, a as DocCollection, b as DocsCollection, G as GlobalConfig, M as MetaCollection, d as defineCollections, e as defineConfig, c as defineDocs, g as getDefaultMDXOptions } from '../define-BH4bnHQl.js';
|
|
3
|
-
export { Params, remarkInclude } from './index.js';
|
|
4
|
-
import '@standard-schema/spec';
|
|
5
|
-
import 'fumadocs-core/mdx-plugins';
|
|
6
|
-
import '@mdx-js/mdx';
|
|
7
|
-
import 'unified';
|
|
8
|
-
import 'zod';
|
|
9
|
-
import 'mdast';
|
|
10
|
-
|
|
11
|
-
declare const metaSchema: z.ZodObject<{
|
|
12
|
-
title: z.ZodOptional<z.ZodString>;
|
|
13
|
-
pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
-
description: z.ZodOptional<z.ZodString>;
|
|
15
|
-
root: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
defaultOpen: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
title?: string | undefined;
|
|
20
|
-
pages?: string[] | undefined;
|
|
21
|
-
description?: string | undefined;
|
|
22
|
-
root?: boolean | undefined;
|
|
23
|
-
defaultOpen?: boolean | undefined;
|
|
24
|
-
icon?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
title?: string | undefined;
|
|
27
|
-
pages?: string[] | undefined;
|
|
28
|
-
description?: string | undefined;
|
|
29
|
-
root?: boolean | undefined;
|
|
30
|
-
defaultOpen?: boolean | undefined;
|
|
31
|
-
icon?: string | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
declare const frontmatterSchema: z.ZodObject<{
|
|
34
|
-
title: z.ZodString;
|
|
35
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
37
|
-
full: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
_openapi: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
title: string;
|
|
41
|
-
description?: string | undefined;
|
|
42
|
-
icon?: string | undefined;
|
|
43
|
-
full?: boolean | undefined;
|
|
44
|
-
_openapi?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
title: string;
|
|
47
|
-
description?: string | undefined;
|
|
48
|
-
icon?: string | undefined;
|
|
49
|
-
full?: boolean | undefined;
|
|
50
|
-
_openapi?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
|
|
53
|
-
export { frontmatterSchema, metaSchema };
|
package/dist/config/zod-3.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defineCollections,
|
|
3
|
-
defineConfig,
|
|
4
|
-
defineDocs
|
|
5
|
-
} from "../chunk-GBMFGEC7.js";
|
|
6
|
-
import {
|
|
7
|
-
getDefaultMDXOptions
|
|
8
|
-
} from "../chunk-SMSNZ6N5.js";
|
|
9
|
-
import {
|
|
10
|
-
remarkInclude
|
|
11
|
-
} from "../chunk-SVTXMVLQ.js";
|
|
12
|
-
import "../chunk-VWJKRQZR.js";
|
|
13
|
-
|
|
14
|
-
// src/config/zod-3.ts
|
|
15
|
-
import { z } from "zod/v3";
|
|
16
|
-
var metaSchema = z.object({
|
|
17
|
-
title: z.string().optional(),
|
|
18
|
-
pages: z.array(z.string()).optional(),
|
|
19
|
-
description: z.string().optional(),
|
|
20
|
-
root: z.boolean().optional(),
|
|
21
|
-
defaultOpen: z.boolean().optional(),
|
|
22
|
-
icon: z.string().optional()
|
|
23
|
-
});
|
|
24
|
-
var frontmatterSchema = z.object({
|
|
25
|
-
title: z.string(),
|
|
26
|
-
description: z.string().optional(),
|
|
27
|
-
icon: z.string().optional(),
|
|
28
|
-
full: z.boolean().optional(),
|
|
29
|
-
// Fumadocs OpenAPI generated
|
|
30
|
-
_openapi: z.object({}).passthrough().optional()
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
defineCollections,
|
|
34
|
-
defineConfig,
|
|
35
|
-
defineDocs,
|
|
36
|
-
frontmatterSchema,
|
|
37
|
-
getDefaultMDXOptions,
|
|
38
|
-
metaSchema,
|
|
39
|
-
remarkInclude
|
|
40
|
-
};
|