fumadocs-mdx 15.2.3 → 15.3.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/{build-CsdoQ3rC.js → build-DvX_5u5A.js} +1 -1
- package/dist/{build-satteri-k0DGJ1In.js → build-satteri-D-ZGkE5A.js} +5 -5
- package/dist/bun/index.js +1 -1
- package/dist/{mdx-B3lIEUoO.js → mdx-DkuxK47O.js} +1 -1
- package/dist/node/_loader.js +1 -1
- package/dist/node/loader.js +1 -1
- package/dist/rolldown/index.js +1 -1
- package/dist/runtime/dynamic.js +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/webpack/mdx.js +1 -1
- package/package.json +13 -13
|
@@ -3,7 +3,7 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
|
3
3
|
var build_exports = /* @__PURE__ */ __exportAll({ buildMDX: () => buildMDX });
|
|
4
4
|
async function buildMDX(core, collection, options) {
|
|
5
5
|
if ((collection ? collection.compiler : core.getConfig().global.compiler) === "satteri") {
|
|
6
|
-
const { buildSatteriMDX } = await import("./build-satteri-
|
|
6
|
+
const { buildSatteriMDX } = await import("./build-satteri-D-ZGkE5A.js");
|
|
7
7
|
return buildSatteriMDX(core, collection, options);
|
|
8
8
|
}
|
|
9
9
|
const { buildJSMDX } = await import("./build-default-LB5TcE_V.js");
|
|
@@ -50,19 +50,19 @@ async function buildSatteriMDX(core, collection, { filePath, frontmatter, source
|
|
|
50
50
|
function postprocessPlugin({ extractLinkReferences = false }, lastModified) {
|
|
51
51
|
return {
|
|
52
52
|
name: "remark-postprocess",
|
|
53
|
+
before(_root, ctx) {
|
|
54
|
+
if (extractLinkReferences) ctx.data.extractedReferences ??= [];
|
|
55
|
+
},
|
|
53
56
|
heading(node, ctx) {
|
|
54
57
|
const frontmatter = ctx.data.frontmatter ??= {};
|
|
55
58
|
if (!frontmatter.title && node.depth === 1) frontmatter.title = ctx.textContent(node);
|
|
56
59
|
},
|
|
57
60
|
link(node, ctx) {
|
|
58
|
-
if (extractLinkReferences)
|
|
61
|
+
if (extractLinkReferences) ctx.data.extractedReferences.push({ href: node.url });
|
|
59
62
|
},
|
|
60
63
|
collectExports({ data, addExport }) {
|
|
61
|
-
if (extractLinkReferences) addExport("extractedReferences", JSON.stringify(data.extractedReferences
|
|
64
|
+
if (extractLinkReferences) addExport("extractedReferences", JSON.stringify(data.extractedReferences));
|
|
62
65
|
if (lastModified) addExport("lastModified", `new Date(${lastModified.getTime()})`);
|
|
63
|
-
},
|
|
64
|
-
afterToJs({ result }) {
|
|
65
|
-
if (extractLinkReferences) result.data.extractedReferences ??= [];
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
package/dist/bun/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-DkuxK47O.js";
|
|
2
2
|
import { i as buildConfig, t as createCore } from "../core-BPlsDtvN.js";
|
|
3
3
|
import { r as slash } from "../codegen-ESdi9CDJ.js";
|
|
4
4
|
import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-Bf3BetFi.js";
|
|
@@ -63,7 +63,7 @@ function createMdxLoader({ getCore }) {
|
|
|
63
63
|
code: `export const frontmatter = ${JSON.stringify(matter.data)}`,
|
|
64
64
|
map: null
|
|
65
65
|
};
|
|
66
|
-
const { buildMDX } = await import("./build-
|
|
66
|
+
const { buildMDX } = await import("./build-DvX_5u5A.js").then((n) => n.n);
|
|
67
67
|
const compiled = await buildMDX(core, docCollection, {
|
|
68
68
|
isDevelopment,
|
|
69
69
|
source: "\n".repeat(countLines(matter.matter)) + matter.content,
|
package/dist/node/_loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-DkuxK47O.js";
|
|
2
2
|
import { t as createCore } from "../core-BPlsDtvN.js";
|
|
3
3
|
import { r as slash } from "../codegen-ESdi9CDJ.js";
|
|
4
4
|
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-Bf3BetFi.js";
|
package/dist/node/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-DkuxK47O.js";
|
|
2
2
|
import { t as createCore } from "../core-BPlsDtvN.js";
|
|
3
3
|
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-Bf3BetFi.js";
|
|
4
4
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
package/dist/rolldown/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-DkuxK47O.js";
|
|
2
2
|
import { i as buildConfig, t as createCore } from "../core-BPlsDtvN.js";
|
|
3
3
|
import { r as slash } from "../codegen-ESdi9CDJ.js";
|
|
4
4
|
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-Bf3BetFi.js";
|
package/dist/runtime/dynamic.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as buildConfig, t as createCore } from "../core-BPlsDtvN.js";
|
|
2
|
-
import { t as buildMDX } from "../build-
|
|
2
|
+
import { t as buildMDX } from "../build-DvX_5u5A.js";
|
|
3
3
|
import { server } from "./server.js";
|
|
4
4
|
import { frontmatter } from "fumadocs-core/content/md/frontmatter";
|
|
5
5
|
import fs from "node:fs/promises";
|
package/dist/vite/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-DkuxK47O.js";
|
|
2
2
|
import { i as buildConfig, t as createCore } from "../core-BPlsDtvN.js";
|
|
3
3
|
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-Bf3BetFi.js";
|
|
4
4
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
package/dist/webpack/mdx.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-DkuxK47O.js";
|
|
2
2
|
import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-Bf3BetFi.js";
|
|
3
3
|
import { t as getCore } from "../webpack-BSog6pml.js";
|
|
4
4
|
//#region src/webpack/mdx.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.3.0",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@mdx-js/mdx": "^3.1.1",
|
|
57
57
|
"@standard-schema/spec": "^1.1.0",
|
|
58
58
|
"chokidar": "^5.0.0",
|
|
59
|
-
"esbuild": "^0.28.
|
|
59
|
+
"esbuild": "^0.28.2",
|
|
60
60
|
"estree-util-value-to-estree": "^3.5.0",
|
|
61
61
|
"github-slugger": "^2.0.0",
|
|
62
|
-
"magic-string": "^1.1.
|
|
62
|
+
"magic-string": "^1.1.1",
|
|
63
63
|
"mdast-util-mdx": "^3.0.0",
|
|
64
64
|
"picocolors": "^1.1.1",
|
|
65
65
|
"picomatch": "^4.0.5",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"unist-util-visit": "^5.1.0",
|
|
71
71
|
"vfile": "^6.0.3",
|
|
72
72
|
"yaml": "^2.9.0",
|
|
73
|
-
"yuku-analyzer": "^0.8.
|
|
73
|
+
"yuku-analyzer": "^0.8.5",
|
|
74
74
|
"zod": "^4.4.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/bun": "^1.3.14",
|
|
78
78
|
"@types/mdast": "^4.0.4",
|
|
79
79
|
"@types/mdx": "^2.0.14",
|
|
80
|
-
"@types/node": "^26.
|
|
80
|
+
"@types/node": "^26.2.0",
|
|
81
81
|
"@types/picomatch": "^4.0.3",
|
|
82
82
|
"@types/react": "^19.2.18",
|
|
83
83
|
"mdast-util-directive": "^3.1.0",
|
|
@@ -86,15 +86,15 @@
|
|
|
86
86
|
"remark": "^15.0.1",
|
|
87
87
|
"remark-directive": "^4.0.0",
|
|
88
88
|
"remark-mdx": "^3.1.1",
|
|
89
|
-
"rolldown": "^1.2.
|
|
90
|
-
"satteri": "^0.
|
|
89
|
+
"rolldown": "^1.2.4",
|
|
90
|
+
"satteri": "^0.10.3",
|
|
91
91
|
"tsdown": "0.22.14",
|
|
92
|
-
"vite": "^8.2.
|
|
92
|
+
"vite": "^8.2.1",
|
|
93
93
|
"webpack": "^5.109.2",
|
|
94
|
-
"@fumadocs/satteri": "0.
|
|
95
|
-
"fumadocs
|
|
96
|
-
"
|
|
97
|
-
"
|
|
94
|
+
"@fumadocs/satteri": "0.4.0",
|
|
95
|
+
"@fumadocs/vite": "0.1.0",
|
|
96
|
+
"fumadocs-core": "16.14.5",
|
|
97
|
+
"tsconfig": "0.0.0"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"@fumadocs/satteri": "0.x.x",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"next": "^15.3.0 || ^16.0.0",
|
|
107
107
|
"react": "^19.2.0",
|
|
108
108
|
"rolldown": "*",
|
|
109
|
-
"satteri": "^0.
|
|
109
|
+
"satteri": "^0.10.0",
|
|
110
110
|
"vite": "7.x.x || 8.x.x"
|
|
111
111
|
},
|
|
112
112
|
"peerDependenciesMeta": {
|