fumadocs-mdx 11.6.3 → 11.6.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/{chunk-MK7EXW7O.js → chunk-3UUEUK4M.js} +2 -2
- package/dist/{chunk-4LSNX4UE.js → chunk-7SSA5RCV.js} +1 -1
- package/dist/{chunk-IOENRFUX.js → chunk-7UCWBLFI.js} +4 -1
- package/dist/{chunk-HFLDWPJA.js → chunk-LC4HO353.js} +3 -3
- package/dist/config/index.cjs +4 -1
- package/dist/config/index.d.cts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +2 -2
- package/dist/{define-Cbpc-b73.d.cts → define-uoePrCQ_.d.cts} +1 -1
- package/dist/{define-Cbpc-b73.d.ts → define-uoePrCQ_.d.ts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/loader-mdx.cjs +4 -1
- package/dist/loader-mdx.js +7 -7
- package/dist/{mdx-options-CAU273O3.js → mdx-options-7J2A6BUA.js} +1 -1
- package/dist/next/index.js +9 -9
- package/dist/runtime/async.d.cts +2 -2
- package/dist/runtime/async.d.ts +2 -2
- package/dist/runtime/async.js +2 -2
- package/dist/{types-DeEXKgfl.d.ts → types-BvEsyMKj.d.ts} +1 -1
- package/dist/{types-CY4MX9if.d.cts → types-Cph8Ml_K.d.cts} +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/mdx-plugins/remark-include.ts
|
|
2
2
|
import { visit } from "unist-util-visit";
|
|
3
|
-
import * as path from "
|
|
4
|
-
import * as fs from "
|
|
3
|
+
import * as path from "path";
|
|
4
|
+
import * as fs from "fs/promises";
|
|
5
5
|
import matter from "gray-matter";
|
|
6
6
|
function flattenNode(node) {
|
|
7
7
|
if ("children" in node)
|
|
@@ -82,7 +82,10 @@ function getDefaultMDXOptions({
|
|
|
82
82
|
],
|
|
83
83
|
remarkImageOptions !== false && [plugins.remarkImage, remarkImageOptions],
|
|
84
84
|
// Fumadocs 14 compatibility
|
|
85
|
-
"remarkCodeTab" in plugins && remarkCodeTabOptions !== false &&
|
|
85
|
+
"remarkCodeTab" in plugins && remarkCodeTabOptions !== false && [
|
|
86
|
+
plugins.remarkCodeTab,
|
|
87
|
+
remarkCodeTabOptions
|
|
88
|
+
],
|
|
86
89
|
...v,
|
|
87
90
|
remarkStructureOptions !== false && [
|
|
88
91
|
plugins.remarkStructure,
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-DRVUBK5B.js";
|
|
4
4
|
|
|
5
5
|
// src/utils/config.ts
|
|
6
|
-
import * as fs from "
|
|
7
|
-
import * as path from "
|
|
8
|
-
import { pathToFileURL } from "
|
|
6
|
+
import * as fs from "fs/promises";
|
|
7
|
+
import * as path from "path";
|
|
8
|
+
import { pathToFileURL } from "url";
|
|
9
9
|
function findConfigFile() {
|
|
10
10
|
return path.resolve("source.config.ts");
|
|
11
11
|
}
|
package/dist/config/index.cjs
CHANGED
|
@@ -181,7 +181,10 @@ function getDefaultMDXOptions({
|
|
|
181
181
|
],
|
|
182
182
|
remarkImageOptions !== false && [plugins.remarkImage, remarkImageOptions],
|
|
183
183
|
// Fumadocs 14 compatibility
|
|
184
|
-
"remarkCodeTab" in plugins && remarkCodeTabOptions !== false &&
|
|
184
|
+
"remarkCodeTab" in plugins && remarkCodeTabOptions !== false && [
|
|
185
|
+
plugins.remarkCodeTab,
|
|
186
|
+
remarkCodeTabOptions
|
|
187
|
+
],
|
|
185
188
|
...v,
|
|
186
189
|
remarkStructureOptions !== false && [
|
|
187
190
|
plugins.remarkStructure,
|
package/dist/config/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as BaseCollection, B as BaseCollectionEntry, C as CollectionSchema, h as DefaultMDXOptions, D as DocCollection, c as DocsCollection, F as FileInfo, G as GlobalConfig, M as MarkdownProps, b as MetaCollection, d as defineCollections, g as defineConfig, e as defineDocs, f as frontmatterSchema, i as getDefaultMDXOptions, m as metaSchema } from '../define-
|
|
1
|
+
export { a as BaseCollection, B as BaseCollectionEntry, C as CollectionSchema, h as DefaultMDXOptions, D as DocCollection, c as DocsCollection, F as FileInfo, G as GlobalConfig, M as MarkdownProps, b as MetaCollection, d as defineCollections, g as defineConfig, e as defineDocs, f as frontmatterSchema, i as getDefaultMDXOptions, m as metaSchema } from '../define-uoePrCQ_.cjs';
|
|
2
2
|
import { Processor, Transformer } from 'unified';
|
|
3
3
|
import { Root } from 'mdast';
|
|
4
4
|
import '@mdx-js/mdx';
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as BaseCollection, B as BaseCollectionEntry, C as CollectionSchema, h as DefaultMDXOptions, D as DocCollection, c as DocsCollection, F as FileInfo, G as GlobalConfig, M as MarkdownProps, b as MetaCollection, d as defineCollections, g as defineConfig, e as defineDocs, f as frontmatterSchema, i as getDefaultMDXOptions, m as metaSchema } from '../define-
|
|
1
|
+
export { a as BaseCollection, B as BaseCollectionEntry, C as CollectionSchema, h as DefaultMDXOptions, D as DocCollection, c as DocsCollection, F as FileInfo, G as GlobalConfig, M as MarkdownProps, b as MetaCollection, d as defineCollections, g as defineConfig, e as defineDocs, f as frontmatterSchema, i as getDefaultMDXOptions, m as metaSchema } from '../define-uoePrCQ_.js';
|
|
2
2
|
import { Processor, Transformer } from 'unified';
|
|
3
3
|
import { Root } from 'mdast';
|
|
4
4
|
import '@mdx-js/mdx';
|
package/dist/config/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "../chunk-2ZOW45YZ.js";
|
|
5
5
|
import {
|
|
6
6
|
remarkInclude
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-3UUEUK4M.js";
|
|
8
8
|
import {
|
|
9
9
|
getDefaultMDXOptions
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-7UCWBLFI.js";
|
|
11
11
|
|
|
12
12
|
// src/config/define.ts
|
|
13
13
|
function defineCollections(options) {
|
|
@@ -19,7 +19,7 @@ type DefaultMDXOptions = Omit<NonNullable<ProcessorOptions>, 'rehypePlugins' | '
|
|
|
19
19
|
remarkStructureOptions?: plugins.StructureOptions | false;
|
|
20
20
|
remarkHeadingOptions?: plugins.RemarkHeadingOptions;
|
|
21
21
|
remarkImageOptions?: plugins.RemarkImageOptions | false;
|
|
22
|
-
remarkCodeTabOptions?: false;
|
|
22
|
+
remarkCodeTabOptions?: plugins.RemarkCodeTabOptions | false;
|
|
23
23
|
rehypeCodeOptions?: plugins.RehypeCodeOptions | false;
|
|
24
24
|
};
|
|
25
25
|
declare function getDefaultMDXOptions({ valueToExport, rehypeCodeOptions, remarkImageOptions, remarkHeadingOptions, remarkStructureOptions, remarkCodeTabOptions, ...mdxOptions }: DefaultMDXOptions): ProcessorOptions;
|
|
@@ -19,7 +19,7 @@ type DefaultMDXOptions = Omit<NonNullable<ProcessorOptions>, 'rehypePlugins' | '
|
|
|
19
19
|
remarkStructureOptions?: plugins.StructureOptions | false;
|
|
20
20
|
remarkHeadingOptions?: plugins.RemarkHeadingOptions;
|
|
21
21
|
remarkImageOptions?: plugins.RemarkImageOptions | false;
|
|
22
|
-
remarkCodeTabOptions?: false;
|
|
22
|
+
remarkCodeTabOptions?: plugins.RemarkCodeTabOptions | false;
|
|
23
23
|
rehypeCodeOptions?: plugins.RehypeCodeOptions | false;
|
|
24
24
|
};
|
|
25
25
|
declare function getDefaultMDXOptions({ valueToExport, rehypeCodeOptions, remarkImageOptions, remarkHeadingOptions, remarkStructureOptions, remarkCodeTabOptions, ...mdxOptions }: DefaultMDXOptions): ProcessorOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import { B as BaseCollectionEntry } from './define-
|
|
3
|
-
import { R as Runtime } from './types-
|
|
2
|
+
import { B as BaseCollectionEntry } from './define-uoePrCQ_.cjs';
|
|
3
|
+
import { R as Runtime } from './types-Cph8Ml_K.cjs';
|
|
4
4
|
import '@mdx-js/mdx';
|
|
5
5
|
import 'mdx/types';
|
|
6
6
|
import 'fumadocs-core/mdx-plugins';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import { B as BaseCollectionEntry } from './define-
|
|
3
|
-
import { R as Runtime } from './types-
|
|
2
|
+
import { B as BaseCollectionEntry } from './define-uoePrCQ_.js';
|
|
3
|
+
import { R as Runtime } from './types-BvEsyMKj.js';
|
|
4
4
|
import '@mdx-js/mdx';
|
|
5
5
|
import 'mdx/types';
|
|
6
6
|
import 'fumadocs-core/mdx-plugins';
|
package/dist/index.js
CHANGED
package/dist/loader-mdx.cjs
CHANGED
|
@@ -121,7 +121,10 @@ function getDefaultMDXOptions({
|
|
|
121
121
|
],
|
|
122
122
|
remarkImageOptions !== false && [plugins.remarkImage, remarkImageOptions],
|
|
123
123
|
// Fumadocs 14 compatibility
|
|
124
|
-
"remarkCodeTab" in plugins && remarkCodeTabOptions !== false &&
|
|
124
|
+
"remarkCodeTab" in plugins && remarkCodeTabOptions !== false && [
|
|
125
|
+
plugins.remarkCodeTab,
|
|
126
|
+
remarkCodeTabOptions
|
|
127
|
+
],
|
|
125
128
|
...v,
|
|
126
129
|
remarkStructureOptions !== false && [
|
|
127
130
|
plugins.remarkStructure,
|
package/dist/loader-mdx.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigHash,
|
|
3
3
|
loadConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LC4HO353.js";
|
|
5
5
|
import {
|
|
6
6
|
validate
|
|
7
7
|
} from "./chunk-2ZOW45YZ.js";
|
|
8
8
|
import {
|
|
9
9
|
remarkInclude
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3UUEUK4M.js";
|
|
11
11
|
import "./chunk-DRVUBK5B.js";
|
|
12
12
|
|
|
13
13
|
// src/loader-mdx.ts
|
|
14
|
-
import * as path2 from "
|
|
15
|
-
import { parse } from "
|
|
14
|
+
import * as path2 from "path";
|
|
15
|
+
import { parse } from "querystring";
|
|
16
16
|
import grayMatter from "gray-matter";
|
|
17
17
|
|
|
18
18
|
// src/utils/build-mdx.ts
|
|
@@ -49,8 +49,8 @@ async function buildMDX(cacheKey, source, options = {}) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// src/utils/git-timestamp.ts
|
|
52
|
-
import path from "
|
|
53
|
-
import fs from "
|
|
52
|
+
import path from "path";
|
|
53
|
+
import fs from "fs";
|
|
54
54
|
import { spawn } from "cross-spawn";
|
|
55
55
|
var cache2 = /* @__PURE__ */ new Map();
|
|
56
56
|
function getGitTimestamp(file) {
|
|
@@ -104,7 +104,7 @@ async function loader(source, callback) {
|
|
|
104
104
|
}
|
|
105
105
|
let mdxOptions = collection?.mdxOptions;
|
|
106
106
|
if (!mdxOptions) {
|
|
107
|
-
const { getDefaultMDXOptions } = await import("./mdx-options-
|
|
107
|
+
const { getDefaultMDXOptions } = await import("./mdx-options-7J2A6BUA.js");
|
|
108
108
|
config._mdx_loader ??= {};
|
|
109
109
|
const extendedOptions = config.global?.mdxOptions;
|
|
110
110
|
config._mdx_loader.cachedProcessorOptions ??= typeof extendedOptions === "function" ? getDefaultMDXOptions(await extendedOptions()) : getDefaultMDXOptions(extendedOptions ?? {});
|
package/dist/next/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
findConfigFile,
|
|
3
3
|
getConfigHash,
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-LC4HO353.js";
|
|
6
6
|
import {
|
|
7
7
|
ValidationError,
|
|
8
8
|
validate
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
import "../chunk-DRVUBK5B.js";
|
|
11
11
|
|
|
12
12
|
// src/next/create.ts
|
|
13
|
-
import path3 from "
|
|
13
|
+
import path3 from "path";
|
|
14
14
|
|
|
15
15
|
// src/map/index.ts
|
|
16
|
-
import * as path2 from "
|
|
17
|
-
import * as fs2 from "
|
|
16
|
+
import * as path2 from "path";
|
|
17
|
+
import * as fs2 from "fs/promises";
|
|
18
18
|
|
|
19
19
|
// src/map/generate.ts
|
|
20
|
-
import * as path from "
|
|
21
|
-
import * as fs from "
|
|
20
|
+
import * as path from "path";
|
|
21
|
+
import * as fs from "fs/promises";
|
|
22
22
|
import fg from "fast-glob";
|
|
23
23
|
|
|
24
24
|
// src/utils/get-type-from-path.ts
|
|
25
|
-
import { extname } from "
|
|
25
|
+
import { extname } from "path";
|
|
26
26
|
var docTypes = [".mdx", ".md"];
|
|
27
27
|
var metaTypes = [".json", ".yaml"];
|
|
28
28
|
function getTypeFromPath(path5) {
|
|
@@ -338,8 +338,8 @@ function createMDX({
|
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
// src/postinstall.ts
|
|
341
|
-
import * as path4 from "
|
|
342
|
-
import * as fs3 from "
|
|
341
|
+
import * as path4 from "path";
|
|
342
|
+
import * as fs3 from "fs/promises";
|
|
343
343
|
async function postInstall(configPath = findConfigFile()) {
|
|
344
344
|
const jsOut = path4.resolve(".source/index.ts");
|
|
345
345
|
const hash = await getConfigHash(configPath);
|
package/dist/runtime/async.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoadedConfig, a as RuntimeAsync } from '../types-
|
|
2
|
-
import '../define-
|
|
1
|
+
import { L as LoadedConfig, a as RuntimeAsync } from '../types-Cph8Ml_K.cjs';
|
|
2
|
+
import '../define-uoePrCQ_.cjs';
|
|
3
3
|
import '@mdx-js/mdx';
|
|
4
4
|
import 'mdx/types';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
package/dist/runtime/async.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoadedConfig, a as RuntimeAsync } from '../types-
|
|
2
|
-
import '../define-
|
|
1
|
+
import { L as LoadedConfig, a as RuntimeAsync } from '../types-BvEsyMKj.js';
|
|
2
|
+
import '../define-uoePrCQ_.js';
|
|
3
3
|
import '@mdx-js/mdx';
|
|
4
4
|
import 'mdx/types';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
package/dist/runtime/async.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_runtime,
|
|
3
3
|
createMDXSource
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7SSA5RCV.js";
|
|
5
5
|
import {
|
|
6
6
|
remarkInclude
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-3UUEUK4M.js";
|
|
8
8
|
import {
|
|
9
9
|
buildConfig
|
|
10
10
|
} from "../chunk-DRVUBK5B.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DocCollection, b as MetaCollection, c as DocsCollection, G as GlobalConfig, F as FileInfo, M as MarkdownProps, B as BaseCollectionEntry } from './define-
|
|
1
|
+
import { D as DocCollection, b as MetaCollection, c as DocsCollection, G as GlobalConfig, F as FileInfo, M as MarkdownProps, B as BaseCollectionEntry } from './define-uoePrCQ_.js';
|
|
2
2
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
3
|
import { Source, PageData, MetaData } from 'fumadocs-core/source';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DocCollection, b as MetaCollection, c as DocsCollection, G as GlobalConfig, F as FileInfo, M as MarkdownProps, B as BaseCollectionEntry } from './define-
|
|
1
|
+
import { D as DocCollection, b as MetaCollection, c as DocsCollection, G as GlobalConfig, F as FileInfo, M as MarkdownProps, B as BaseCollectionEntry } from './define-uoePrCQ_.cjs';
|
|
2
2
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
3
|
import { Source, PageData, MetaData } from 'fumadocs-core/source';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "11.6.
|
|
3
|
+
"version": "11.6.4",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"chokidar": "^4.0.3",
|
|
48
48
|
"cross-spawn": "^7.0.6",
|
|
49
49
|
"esbuild": "^0.25.4",
|
|
50
|
-
"estree-util-value-to-estree": "^3.
|
|
50
|
+
"estree-util-value-to-estree": "^3.4.0",
|
|
51
51
|
"fast-glob": "^3.3.3",
|
|
52
52
|
"gray-matter": "^4.0.3",
|
|
53
53
|
"js-yaml": "^4.1.0",
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
"@types/js-yaml": "^4.0.9",
|
|
62
62
|
"@types/mdast": "^4.0.3",
|
|
63
63
|
"@types/mdx": "^2.0.13",
|
|
64
|
-
"@types/react": "^19.1.
|
|
64
|
+
"@types/react": "^19.1.4",
|
|
65
65
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
66
|
-
"next": "^15.3.
|
|
66
|
+
"next": "^15.3.2",
|
|
67
67
|
"unified": "^11.0.5",
|
|
68
68
|
"vfile": "^6.0.3",
|
|
69
69
|
"webpack": "^5.99.8",
|
|
70
|
-
"@fumadocs/mdx-remote": "1.3.
|
|
70
|
+
"@fumadocs/mdx-remote": "1.3.1",
|
|
71
71
|
"eslint-config-custom": "0.0.0",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
72
|
+
"tsconfig": "0.0.0",
|
|
73
|
+
"fumadocs-core": "15.3.3"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@fumadocs/mdx-remote": "^1.2.0",
|