fumadocs-mdx 11.8.2 → 11.8.3
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/index.d.cts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/zod-3.d.cts +1 -1
- package/dist/config/zod-3.d.ts +1 -1
- package/dist/{define-DnJzAZrj.d.cts → define-DAZmbu3U.d.cts} +1 -1
- package/dist/{define-DnJzAZrj.d.ts → define-DAZmbu3U.d.ts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/loader-mdx.js +1 -1
- package/dist/next/index.cjs +2 -4
- package/dist/next/index.js +2 -4
- package/dist/runtime/async.d.cts +2 -2
- package/dist/runtime/async.d.ts +2 -2
- package/dist/runtime/async.js +1 -1
- package/dist/runtime/vite.d.cts +1 -1
- package/dist/runtime/vite.d.ts +1 -1
- package/dist/{types-BmVgoqsr.d.cts → types-B2kQsHs7.d.cts} +1 -1
- package/dist/{types-WSHJKA8L.d.ts → types-CkmezNbX.d.ts} +1 -1
- package/dist/vite/index.cjs +13 -0
- package/dist/vite/index.js +16 -1
- package/package.json +7 -7
package/dist/config/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema,
|
|
1
|
+
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, b as DefaultMDXOptions, D as DocCollection, a as DocsCollection, G as GlobalConfig, M as MetaCollection, d as defineCollections, e as defineConfig, c as defineDocs, f as frontmatterSchema, g as getDefaultMDXOptions, m as metaSchema } from '../define-DAZmbu3U.cjs';
|
|
2
2
|
import { Processor, Transformer } from 'unified';
|
|
3
3
|
import { Root } from 'mdast';
|
|
4
4
|
import '@standard-schema/spec';
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema,
|
|
1
|
+
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, b as DefaultMDXOptions, D as DocCollection, a as DocsCollection, G as GlobalConfig, M as MetaCollection, d as defineCollections, e as defineConfig, c as defineDocs, f as frontmatterSchema, g as getDefaultMDXOptions, m as metaSchema } from '../define-DAZmbu3U.js';
|
|
2
2
|
import { Processor, Transformer } from 'unified';
|
|
3
3
|
import { Root } from 'mdast';
|
|
4
4
|
import '@standard-schema/spec';
|
package/dist/config/zod-3.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
|
-
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema,
|
|
2
|
+
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, b as DefaultMDXOptions, D as DocCollection, a as DocsCollection, G as GlobalConfig, M as MetaCollection, d as defineCollections, e as defineConfig, c as defineDocs, g as getDefaultMDXOptions } from '../define-DAZmbu3U.cjs';
|
|
3
3
|
export { Params, remarkInclude } from './index.cjs';
|
|
4
4
|
import '@standard-schema/spec';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
package/dist/config/zod-3.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
|
-
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema,
|
|
2
|
+
export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, b as DefaultMDXOptions, D as DocCollection, a as DocsCollection, G as GlobalConfig, M as MetaCollection, d as defineCollections, e as defineConfig, c as defineDocs, g as getDefaultMDXOptions } from '../define-DAZmbu3U.js';
|
|
3
3
|
export { Params, remarkInclude } from './index.js';
|
|
4
4
|
import '@standard-schema/spec';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
|
@@ -107,4 +107,4 @@ declare function defineDocs<DocSchema extends StandardSchemaV1 = typeof frontmat
|
|
|
107
107
|
}): DocsCollection<DocSchema, MetaSchema, Async>;
|
|
108
108
|
declare function defineConfig(config?: GlobalConfig): GlobalConfig;
|
|
109
109
|
|
|
110
|
-
export { type AnyCollection as A, type BaseCollection as B, type CollectionSchema as C, type
|
|
110
|
+
export { type AnyCollection as A, type BaseCollection as B, type CollectionSchema as C, type DocCollection as D, type GlobalConfig as G, type MetaCollection as M, type DocsCollection as a, type DefaultMDXOptions as b, defineDocs as c, defineCollections as d, defineConfig as e, frontmatterSchema as f, getDefaultMDXOptions as g, metaSchema as m };
|
|
@@ -107,4 +107,4 @@ declare function defineDocs<DocSchema extends StandardSchemaV1 = typeof frontmat
|
|
|
107
107
|
}): DocsCollection<DocSchema, MetaSchema, Async>;
|
|
108
108
|
declare function defineConfig(config?: GlobalConfig): GlobalConfig;
|
|
109
109
|
|
|
110
|
-
export { type AnyCollection as A, type BaseCollection as B, type CollectionSchema as C, type
|
|
110
|
+
export { type AnyCollection as A, type BaseCollection as B, type CollectionSchema as C, type DocCollection as D, type GlobalConfig as G, type MetaCollection as M, type DocsCollection as a, type DefaultMDXOptions as b, defineDocs as c, defineCollections as d, defineConfig as e, frontmatterSchema as f, getDefaultMDXOptions as g, metaSchema as m };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import { R as Runtime, B as BaseCollectionEntry } from './types-
|
|
2
|
+
import { R as Runtime, B as BaseCollectionEntry } from './types-B2kQsHs7.cjs';
|
|
3
3
|
import '@standard-schema/spec';
|
|
4
|
-
import './define-
|
|
4
|
+
import './define-DAZmbu3U.cjs';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import 'unified';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import { R as Runtime, B as BaseCollectionEntry } from './types-
|
|
2
|
+
import { R as Runtime, B as BaseCollectionEntry } from './types-CkmezNbX.js';
|
|
3
3
|
import '@standard-schema/spec';
|
|
4
|
-
import './define-
|
|
4
|
+
import './define-DAZmbu3U.js';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import 'unified';
|
package/dist/loader-mdx.js
CHANGED
package/dist/next/index.cjs
CHANGED
|
@@ -764,11 +764,9 @@ function createMDX({
|
|
|
764
764
|
configPath = findConfigFile(),
|
|
765
765
|
outDir = ".source"
|
|
766
766
|
} = {}) {
|
|
767
|
-
|
|
768
|
-
const isBuild = process.argv.includes("build");
|
|
769
|
-
if ((isDev || isBuild) && process.env._FUMADOCS_MDX !== "1") {
|
|
767
|
+
if (process.env._FUMADOCS_MDX !== "1") {
|
|
770
768
|
process.env._FUMADOCS_MDX = "1";
|
|
771
|
-
void start(
|
|
769
|
+
void start(process.env.NODE_ENV === "development", configPath, outDir);
|
|
772
770
|
}
|
|
773
771
|
return (nextConfig = {}) => {
|
|
774
772
|
const mdxLoaderOptions = {
|
package/dist/next/index.js
CHANGED
|
@@ -280,11 +280,9 @@ function createMDX({
|
|
|
280
280
|
configPath = findConfigFile(),
|
|
281
281
|
outDir = ".source"
|
|
282
282
|
} = {}) {
|
|
283
|
-
|
|
284
|
-
const isBuild = process.argv.includes("build");
|
|
285
|
-
if ((isDev || isBuild) && process.env._FUMADOCS_MDX !== "1") {
|
|
283
|
+
if (process.env._FUMADOCS_MDX !== "1") {
|
|
286
284
|
process.env._FUMADOCS_MDX = "1";
|
|
287
|
-
void start(
|
|
285
|
+
void start(process.env.NODE_ENV === "development", configPath, outDir);
|
|
288
286
|
}
|
|
289
287
|
return (nextConfig = {}) => {
|
|
290
288
|
const mdxLoaderOptions = {
|
package/dist/runtime/async.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LoadedConfig, a as RuntimeAsync } from '../types-
|
|
1
|
+
import { L as LoadedConfig, a as RuntimeAsync } from '../types-B2kQsHs7.cjs';
|
|
2
2
|
import '@standard-schema/spec';
|
|
3
3
|
import 'fumadocs-core/source';
|
|
4
|
-
import '../define-
|
|
4
|
+
import '../define-DAZmbu3U.cjs';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import 'unified';
|
package/dist/runtime/async.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LoadedConfig, a as RuntimeAsync } from '../types-
|
|
1
|
+
import { L as LoadedConfig, a as RuntimeAsync } from '../types-CkmezNbX.js';
|
|
2
2
|
import '@standard-schema/spec';
|
|
3
3
|
import 'fumadocs-core/source';
|
|
4
|
-
import '../define-
|
|
4
|
+
import '../define-DAZmbu3U.js';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import 'unified';
|
package/dist/runtime/async.js
CHANGED
package/dist/runtime/vite.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { MDXProps } from 'mdx/types';
|
|
3
|
-
import {
|
|
3
|
+
import { D as DocCollection, a as DocsCollection, M as MetaCollection } from '../define-DAZmbu3U.cjs';
|
|
4
4
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
5
5
|
import { PageData, MetaData, Source } from 'fumadocs-core/source';
|
|
6
6
|
import { C as CompiledMDXProperties } from '../build-mdx-DnC1jKvn.cjs';
|
package/dist/runtime/vite.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { MDXProps } from 'mdx/types';
|
|
3
|
-
import {
|
|
3
|
+
import { D as DocCollection, a as DocsCollection, M as MetaCollection } from '../define-DAZmbu3U.js';
|
|
4
4
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
5
5
|
import { PageData, MetaData, Source } from 'fumadocs-core/source';
|
|
6
6
|
import { C as CompiledMDXProperties } from '../build-mdx-DnC1jKvn.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
2
|
import { Source, PageData, MetaData } from 'fumadocs-core/source';
|
|
3
|
-
import {
|
|
3
|
+
import { D as DocCollection, M as MetaCollection, a as DocsCollection, G as GlobalConfig } from './define-DAZmbu3U.cjs';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
|
5
5
|
import { C as CompiledMDXProperties } from './build-mdx-DnC1jKvn.cjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
2
|
import { Source, PageData, MetaData } from 'fumadocs-core/source';
|
|
3
|
-
import {
|
|
3
|
+
import { D as DocCollection, M as MetaCollection, a as DocsCollection, G as GlobalConfig } from './define-DAZmbu3U.js';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
|
5
5
|
import { C as CompiledMDXProperties } from './build-mdx-DnC1jKvn.js';
|
|
6
6
|
|
package/dist/vite/index.cjs
CHANGED
|
@@ -203,6 +203,7 @@ __export(vite_exports, {
|
|
|
203
203
|
default: () => mdx
|
|
204
204
|
});
|
|
205
205
|
module.exports = __toCommonJS(vite_exports);
|
|
206
|
+
var import_vite = require("vite");
|
|
206
207
|
|
|
207
208
|
// src/config/build.ts
|
|
208
209
|
function buildConfig(config) {
|
|
@@ -622,6 +623,7 @@ function meta(name, collection) {
|
|
|
622
623
|
}
|
|
623
624
|
|
|
624
625
|
// src/vite/index.ts
|
|
626
|
+
var FumadocsDeps = ["fumadocs-core", "fumadocs-ui", "fumadocs-openapi"];
|
|
625
627
|
var querySchema = import_zod.z.object({
|
|
626
628
|
only: import_zod.z.literal(["frontmatter", "all"]).default("all"),
|
|
627
629
|
collection: import_zod.z.string().optional()
|
|
@@ -726,6 +728,17 @@ function mdx(config, options = {}) {
|
|
|
726
728
|
name: "fumadocs-mdx",
|
|
727
729
|
// needed, otherwise other plugins will be executed before our `transform`.
|
|
728
730
|
enforce: "pre",
|
|
731
|
+
config(config2) {
|
|
732
|
+
return (0, import_vite.mergeConfig)(config2, {
|
|
733
|
+
optimizeDeps: {
|
|
734
|
+
exclude: FumadocsDeps
|
|
735
|
+
},
|
|
736
|
+
resolve: {
|
|
737
|
+
noExternal: FumadocsDeps,
|
|
738
|
+
dedupe: FumadocsDeps
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
},
|
|
729
742
|
async buildStart() {
|
|
730
743
|
if (!generateIndexFile) return;
|
|
731
744
|
console.log("[Fumadocs MDX] Generating index files");
|
package/dist/vite/index.js
CHANGED
|
@@ -14,15 +14,18 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
buildMDX
|
|
16
16
|
} from "../chunk-QQWCBFFE.js";
|
|
17
|
-
import "../chunk-SVTXMVLQ.js";
|
|
18
17
|
import {
|
|
19
18
|
buildConfig
|
|
20
19
|
} from "../chunk-QVZ7JH4H.js";
|
|
20
|
+
import "../chunk-SVTXMVLQ.js";
|
|
21
21
|
import {
|
|
22
22
|
fumaMatter
|
|
23
23
|
} from "../chunk-VWJKRQZR.js";
|
|
24
24
|
|
|
25
25
|
// src/vite/index.ts
|
|
26
|
+
import {
|
|
27
|
+
mergeConfig
|
|
28
|
+
} from "vite";
|
|
26
29
|
import { parse } from "querystring";
|
|
27
30
|
import { z } from "zod";
|
|
28
31
|
import * as fs from "fs/promises";
|
|
@@ -92,6 +95,7 @@ function meta(name, collection) {
|
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
// src/vite/index.ts
|
|
98
|
+
var FumadocsDeps = ["fumadocs-core", "fumadocs-ui", "fumadocs-openapi"];
|
|
95
99
|
var querySchema = z.object({
|
|
96
100
|
only: z.literal(["frontmatter", "all"]).default("all"),
|
|
97
101
|
collection: z.string().optional()
|
|
@@ -196,6 +200,17 @@ function mdx(config, options = {}) {
|
|
|
196
200
|
name: "fumadocs-mdx",
|
|
197
201
|
// needed, otherwise other plugins will be executed before our `transform`.
|
|
198
202
|
enforce: "pre",
|
|
203
|
+
config(config2) {
|
|
204
|
+
return mergeConfig(config2, {
|
|
205
|
+
optimizeDeps: {
|
|
206
|
+
exclude: FumadocsDeps
|
|
207
|
+
},
|
|
208
|
+
resolve: {
|
|
209
|
+
noExternal: FumadocsDeps,
|
|
210
|
+
dedupe: FumadocsDeps
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
},
|
|
199
214
|
async buildStart() {
|
|
200
215
|
if (!generateIndexFile) return;
|
|
201
216
|
console.log("[Fumadocs MDX] Generating index files");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "11.8.
|
|
3
|
+
"version": "11.8.3",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -56,8 +56,7 @@
|
|
|
56
56
|
"bin.js"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"
|
|
60
|
-
"@mdx-js/mdx": "^3.1.0",
|
|
59
|
+
"@mdx-js/mdx": "^3.1.1",
|
|
61
60
|
"@standard-schema/spec": "^1.0.0",
|
|
62
61
|
"chokidar": "^4.0.3",
|
|
63
62
|
"esbuild": "^0.25.9",
|
|
@@ -65,12 +64,13 @@
|
|
|
65
64
|
"js-yaml": "^4.1.0",
|
|
66
65
|
"lru-cache": "^11.1.0",
|
|
67
66
|
"picocolors": "^1.1.1",
|
|
68
|
-
"remark-mdx": "^3.1.
|
|
67
|
+
"remark-mdx": "^3.1.1",
|
|
69
68
|
"remark-parse": "^11.0.0",
|
|
70
69
|
"tinyexec": "^1.0.1",
|
|
71
70
|
"tinyglobby": "^0.2.14",
|
|
71
|
+
"unified": "^11.0.5",
|
|
72
72
|
"unist-util-visit": "^5.0.0",
|
|
73
|
-
"zod": "^4.1.
|
|
73
|
+
"zod": "^4.1.5"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
82
82
|
"next": "^15.5.2",
|
|
83
83
|
"react": "^19.1.1",
|
|
84
|
-
"rollup": "^4.
|
|
84
|
+
"rollup": "^4.50.0",
|
|
85
85
|
"vfile": "^6.0.3",
|
|
86
86
|
"vite": "^7.1.3",
|
|
87
87
|
"webpack": "^5.101.3",
|
|
88
88
|
"@fumadocs/mdx-remote": "1.4.0",
|
|
89
89
|
"eslint-config-custom": "0.0.0",
|
|
90
|
-
"fumadocs-core": "15.7.
|
|
90
|
+
"fumadocs-core": "15.7.8",
|
|
91
91
|
"tsconfig": "0.0.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|