fumadocs-mdx 12.0.0 → 12.0.2
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 +103 -85
- package/dist/bin.js +1 -1
- package/dist/{browser-D5lvL8vv.d.ts → browser-BupUnhpC.d.ts} +1 -1
- package/dist/{browser-DjWADqp8.d.cts → browser-R0x9IPaQ.d.cts} +1 -1
- package/dist/bun/index.cjs +156 -130
- package/dist/bun/index.js +10 -10
- package/dist/chunk-ADR6R7HM.js +29 -0
- package/dist/{chunk-3M4SHY6K.js → chunk-FSZMKRVH.js} +1 -1
- package/dist/{chunk-POXTQZ4D.js → chunk-LGYVNESJ.js} +2 -6
- package/dist/chunk-LMG6UWCL.js +167 -0
- package/dist/{chunk-SWNOXPYJ.js → chunk-QAUWMR5D.js} +6 -6
- package/dist/{chunk-KGUBBRL6.js → chunk-RMDXSZYE.js} +11 -39
- package/dist/{chunk-YC25YEBF.js → chunk-U4MQ44TS.js} +1 -1
- package/dist/chunk-XMFLD5J6.js +30 -0
- package/dist/{chunk-TLD6JMT6.js → chunk-ZX7TM4AR.js} +4 -2
- package/dist/config/index.cjs +84 -56
- package/dist/config/index.d.cts +2 -6
- package/dist/config/index.d.ts +2 -6
- package/dist/config/index.js +2 -2
- package/dist/{define--6HQ1ehX.d.cts → define-DJbJduHy.d.cts} +15 -15
- package/dist/{define--6HQ1ehX.d.ts → define-DJbJduHy.d.ts} +15 -15
- package/dist/index.cjs +127 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +11 -0
- package/dist/load-UUXLUBHL.js +9 -0
- package/dist/loader-mdx.cjs +217 -174
- package/dist/loader-mdx.js +7 -7
- package/dist/next/index.cjs +129 -109
- package/dist/next/index.js +40 -54
- package/dist/node/loader.cjs +152 -109
- package/dist/node/loader.js +6 -7
- package/dist/postinstall-SCSXM4IM.js +10 -0
- package/dist/{preset-WFEORCAB.js → preset-ZMP6U62C.js} +1 -1
- package/dist/runtime/next/async.cjs +117 -65
- package/dist/runtime/next/async.d.cts +3 -3
- package/dist/runtime/next/async.d.ts +3 -3
- package/dist/runtime/next/async.js +15 -8
- package/dist/runtime/next/index.d.cts +8 -8
- package/dist/runtime/next/index.d.ts +8 -8
- package/dist/runtime/vite/browser.d.cts +2 -2
- package/dist/runtime/vite/browser.d.ts +2 -2
- package/dist/runtime/vite/server.d.cts +5 -5
- package/dist/runtime/vite/server.d.ts +5 -5
- package/dist/{shared-CqgMnt9h.d.cts → shared-Cnm1afPW.d.cts} +3 -2
- package/dist/{shared-0QIuV0XZ.d.ts → shared-DpXxElc1.d.ts} +3 -2
- package/dist/{types-DLIAvrgC.d.ts → types-CbLt05Gc.d.cts} +7 -8
- package/dist/{types-Dl8HLbm5.d.cts → types-Ci6BA1tA.d.ts} +7 -8
- package/dist/vite/index.cjs +177 -145
- package/dist/vite/index.d.cts +1 -0
- package/dist/vite/index.d.ts +1 -0
- package/dist/vite/index.js +15 -20
- package/dist/{watcher-4NDMOH4R.js → watcher-HGOH3APP.js} +1 -1
- package/package.json +23 -15
- package/dist/chunk-KTDVTBMH.js +0 -139
- package/dist/postinstall-U7VROOY7.js +0 -9
|
@@ -30,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// src/mdx/preset.ts
|
|
33
|
+
// src/loaders/mdx/preset.ts
|
|
34
34
|
var preset_exports = {};
|
|
35
35
|
__export(preset_exports, {
|
|
36
36
|
getDefaultMDXOptions: () => getDefaultMDXOptions
|
|
@@ -111,7 +111,7 @@ function getDefaultMDXOptions({
|
|
|
111
111
|
}
|
|
112
112
|
var plugins;
|
|
113
113
|
var init_preset = __esm({
|
|
114
|
-
"src/mdx/preset.ts"() {
|
|
114
|
+
"src/loaders/mdx/preset.ts"() {
|
|
115
115
|
"use strict";
|
|
116
116
|
plugins = __toESM(require("fumadocs-core/mdx-plugins"), 1);
|
|
117
117
|
}
|
|
@@ -209,10 +209,10 @@ function resolveFiles({ docs, meta }) {
|
|
|
209
209
|
return outputs;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
// src/mdx/build-mdx.ts
|
|
212
|
+
// src/loaders/mdx/build-mdx.ts
|
|
213
213
|
var import_mdx = require("@mdx-js/mdx");
|
|
214
214
|
|
|
215
|
-
// src/mdx/remark-include.ts
|
|
215
|
+
// src/loaders/mdx/remark-include.ts
|
|
216
216
|
var import_unified = require("unified");
|
|
217
217
|
var import_unist_util_visit = require("unist-util-visit");
|
|
218
218
|
var path = __toESM(require("path"), 1);
|
|
@@ -234,11 +234,32 @@ function fumaMatter(input) {
|
|
|
234
234
|
return output;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
// src/mdx/remark-include.ts
|
|
237
|
+
// src/loaders/mdx/remark-include.ts
|
|
238
238
|
var import_remark_parse = __toESM(require("remark-parse"), 1);
|
|
239
239
|
var import_remark_mdx = __toESM(require("remark-mdx"), 1);
|
|
240
240
|
var import_mdx_plugins = require("fumadocs-core/mdx-plugins");
|
|
241
|
-
var
|
|
241
|
+
var ElementLikeTypes = [
|
|
242
|
+
"mdxJsxFlowElement",
|
|
243
|
+
"mdxJsxTextElement",
|
|
244
|
+
"containerDirective",
|
|
245
|
+
"textDirective",
|
|
246
|
+
"leafDirective"
|
|
247
|
+
];
|
|
248
|
+
function isElementLike(node) {
|
|
249
|
+
return ElementLikeTypes.includes(node.type);
|
|
250
|
+
}
|
|
251
|
+
function parseElementAttributes(element) {
|
|
252
|
+
if (Array.isArray(element.attributes)) {
|
|
253
|
+
const attributes = {};
|
|
254
|
+
for (const attr of element.attributes) {
|
|
255
|
+
if (attr.type === "mdxJsxAttribute" && (typeof attr.value === "string" || attr.value === null)) {
|
|
256
|
+
attributes[attr.name] = attr.value;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return attributes;
|
|
260
|
+
}
|
|
261
|
+
return element.attributes ?? {};
|
|
262
|
+
}
|
|
242
263
|
function flattenNode(node) {
|
|
243
264
|
if ("children" in node)
|
|
244
265
|
return node.children.map((child) => flattenNode(child)).join("");
|
|
@@ -255,21 +276,31 @@ function parseSpecifier(specifier) {
|
|
|
255
276
|
}
|
|
256
277
|
function extractSection(root, section) {
|
|
257
278
|
let nodes;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
279
|
+
let capturingHeadingContent = false;
|
|
280
|
+
(0, import_unist_util_visit.visit)(root, (node) => {
|
|
281
|
+
if (node.type === "heading") {
|
|
282
|
+
if (capturingHeadingContent) {
|
|
283
|
+
return false;
|
|
284
|
+
}
|
|
285
|
+
if (node.data?.hProperties?.id === section) {
|
|
286
|
+
capturingHeadingContent = true;
|
|
287
|
+
nodes = [node];
|
|
288
|
+
return "skip";
|
|
289
|
+
}
|
|
290
|
+
return;
|
|
264
291
|
}
|
|
265
|
-
if (
|
|
266
|
-
nodes
|
|
267
|
-
|
|
292
|
+
if (capturingHeadingContent) {
|
|
293
|
+
nodes?.push(node);
|
|
294
|
+
return "skip";
|
|
268
295
|
}
|
|
269
|
-
if (
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
296
|
+
if (isElementLike(node) && node.name === "section") {
|
|
297
|
+
const attributes = parseElementAttributes(node);
|
|
298
|
+
if (attributes.id === section) {
|
|
299
|
+
nodes = node.children;
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
});
|
|
273
304
|
if (nodes)
|
|
274
305
|
return {
|
|
275
306
|
type: "root",
|
|
@@ -301,55 +332,52 @@ ${e instanceof Error ? e.message : String(e)}`,
|
|
|
301
332
|
data: {}
|
|
302
333
|
};
|
|
303
334
|
}
|
|
304
|
-
const
|
|
335
|
+
const parser = (data._getProcessor ?? getDefaultProcessor)(
|
|
305
336
|
ext === ".mdx" ? "mdx" : "md"
|
|
306
337
|
);
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
338
|
+
const parsed = fumaMatter(content);
|
|
339
|
+
let mdast = parser.parse({
|
|
340
|
+
path: file,
|
|
341
|
+
value: parsed.content,
|
|
342
|
+
data: { frontmatter: parsed.data }
|
|
343
|
+
});
|
|
310
344
|
if (heading) {
|
|
311
|
-
const extracted = extractSection(
|
|
345
|
+
const extracted = extractSection(
|
|
346
|
+
await (0, import_unified.unified)().use(import_mdx_plugins.remarkHeading).run(mdast),
|
|
347
|
+
heading
|
|
348
|
+
);
|
|
312
349
|
if (!extracted)
|
|
313
350
|
throw new Error(
|
|
314
|
-
`Cannot find section ${heading} in ${file}, make sure you have encapsulated the section in a <section id="${heading}"> tag.`
|
|
351
|
+
`Cannot find section ${heading} in ${file}, make sure you have encapsulated the section in a <section id="${heading}"> tag, or a :::section directive with remark-directive configured.`
|
|
315
352
|
);
|
|
316
|
-
|
|
353
|
+
mdast = extracted;
|
|
317
354
|
}
|
|
318
|
-
await update(
|
|
319
|
-
return
|
|
355
|
+
await update(mdast, path.dirname(file), data);
|
|
356
|
+
return mdast;
|
|
320
357
|
}
|
|
321
358
|
async function update(tree, directory, data) {
|
|
322
359
|
const queue = [];
|
|
323
|
-
(0, import_unist_util_visit.visit)(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
Object.assign(
|
|
345
|
-
parent && parent.type === "paragraph" ? parent : node,
|
|
346
|
-
replace
|
|
347
|
-
);
|
|
348
|
-
})
|
|
349
|
-
);
|
|
350
|
-
return "skip";
|
|
351
|
-
}
|
|
352
|
-
);
|
|
360
|
+
(0, import_unist_util_visit.visit)(tree, ElementLikeTypes, (_node, _, parent) => {
|
|
361
|
+
const node = _node;
|
|
362
|
+
if (node.name !== TagName) return;
|
|
363
|
+
const specifier = flattenNode(node);
|
|
364
|
+
if (specifier.length === 0) return "skip";
|
|
365
|
+
const attributes = parseElementAttributes(node);
|
|
366
|
+
const { file: relativePath, section } = parseSpecifier(specifier);
|
|
367
|
+
const file = path.resolve(
|
|
368
|
+
"cwd" in attributes ? process.cwd() : directory,
|
|
369
|
+
relativePath
|
|
370
|
+
);
|
|
371
|
+
queue.push(
|
|
372
|
+
embedContent(file, section, attributes, data).then((replace) => {
|
|
373
|
+
Object.assign(
|
|
374
|
+
parent && parent.type === "paragraph" ? parent : node,
|
|
375
|
+
replace
|
|
376
|
+
);
|
|
377
|
+
})
|
|
378
|
+
);
|
|
379
|
+
return "skip";
|
|
380
|
+
});
|
|
353
381
|
await Promise.all(queue);
|
|
354
382
|
}
|
|
355
383
|
return async (tree, file) => {
|
|
@@ -362,7 +390,7 @@ function getDefaultProcessor(format) {
|
|
|
362
390
|
return mdProcessor.use(import_remark_mdx.default);
|
|
363
391
|
}
|
|
364
392
|
|
|
365
|
-
// src/mdx/remark-postprocess.ts
|
|
393
|
+
// src/loaders/mdx/remark-postprocess.ts
|
|
366
394
|
var import_unist_util_visit2 = require("unist-util-visit");
|
|
367
395
|
var import_mdast_util_to_markdown = require("mdast-util-to-markdown");
|
|
368
396
|
var import_estree_util_value_to_estree = require("estree-util-value-to-estree");
|
|
@@ -391,7 +419,7 @@ function remarkPostprocess({
|
|
|
391
419
|
if (includeProcessedMarkdown) {
|
|
392
420
|
file.data._markdown = (0, import_mdast_util_to_markdown.toMarkdown)(tree, {
|
|
393
421
|
...this.data("settings"),
|
|
394
|
-
//
|
|
422
|
+
// from https://github.com/remarkjs/remark/blob/main/packages/remark-stringify/lib/index.js
|
|
395
423
|
extensions: this.data("toMarkdownExtensions") || []
|
|
396
424
|
});
|
|
397
425
|
}
|
|
@@ -445,7 +473,7 @@ function flattenNode2(node) {
|
|
|
445
473
|
return "";
|
|
446
474
|
}
|
|
447
475
|
|
|
448
|
-
// src/mdx/build-mdx.ts
|
|
476
|
+
// src/loaders/mdx/build-mdx.ts
|
|
449
477
|
var cache = /* @__PURE__ */ new Map();
|
|
450
478
|
async function buildMDX(cacheKey, source, options) {
|
|
451
479
|
const { filePath, frontmatter, data, _compiler, ...rest } = options;
|
|
@@ -481,7 +509,7 @@ async function buildMDX(cacheKey, source, options) {
|
|
|
481
509
|
return processor;
|
|
482
510
|
}
|
|
483
511
|
return getProcessor(
|
|
484
|
-
options.format ?? filePath.endsWith(".mdx") ? "mdx" : "md"
|
|
512
|
+
options.format ?? (filePath.endsWith(".mdx") ? "mdx" : "md")
|
|
485
513
|
).process({
|
|
486
514
|
value: source,
|
|
487
515
|
path: filePath,
|
|
@@ -498,6 +526,28 @@ async function buildMDX(cacheKey, source, options) {
|
|
|
498
526
|
var import_client = require("@fumadocs/mdx-remote/client");
|
|
499
527
|
var import_node_url = require("url");
|
|
500
528
|
|
|
529
|
+
// src/next/map/file-cache.ts
|
|
530
|
+
var import_lru_cache = require("lru-cache");
|
|
531
|
+
var import_promises = __toESM(require("fs/promises"), 1);
|
|
532
|
+
var import_node_path = __toESM(require("path"), 1);
|
|
533
|
+
var map = new import_lru_cache.LRUCache({
|
|
534
|
+
max: 100
|
|
535
|
+
});
|
|
536
|
+
function toFullPath(file) {
|
|
537
|
+
if (import_node_path.default.isAbsolute(file)) {
|
|
538
|
+
return import_node_path.default.relative(process.cwd(), file);
|
|
539
|
+
}
|
|
540
|
+
return file;
|
|
541
|
+
}
|
|
542
|
+
async function readFileWithCache(file) {
|
|
543
|
+
const fullPath = toFullPath(file);
|
|
544
|
+
const cached = map.get(fullPath);
|
|
545
|
+
if (cached) return cached;
|
|
546
|
+
const read = import_promises.default.readFile(fullPath).then((s) => s.toString());
|
|
547
|
+
map.set(fullPath, read);
|
|
548
|
+
return read;
|
|
549
|
+
}
|
|
550
|
+
|
|
501
551
|
// src/config/build.ts
|
|
502
552
|
function buildConfig(config) {
|
|
503
553
|
const collections = /* @__PURE__ */ new Map();
|
|
@@ -561,12 +611,14 @@ var _runtimeAsync = {
|
|
|
561
611
|
doc(files, collectionName, config) {
|
|
562
612
|
const collection = getDocCollection(config, collectionName);
|
|
563
613
|
const initMdxOptions = getOptions(config, collection);
|
|
564
|
-
return files.map(({ info, data,
|
|
614
|
+
return files.map(({ info, data, lastModified }) => {
|
|
565
615
|
let cachedResult;
|
|
566
616
|
async function compileAndLoad() {
|
|
567
617
|
if (cachedResult) return cachedResult;
|
|
568
618
|
const mdxOptions = await initMdxOptions;
|
|
569
|
-
const
|
|
619
|
+
const raw = await readFileWithCache(info.fullPath);
|
|
620
|
+
const { content } = fumaMatter(raw);
|
|
621
|
+
const compiled = await buildMDX(collectionName, content, {
|
|
570
622
|
...mdxOptions,
|
|
571
623
|
development: false,
|
|
572
624
|
frontmatter: data,
|
|
@@ -586,7 +638,7 @@ var _runtimeAsync = {
|
|
|
586
638
|
info,
|
|
587
639
|
async getText(type) {
|
|
588
640
|
if (type === "raw") {
|
|
589
|
-
return
|
|
641
|
+
return readFileWithCache(info.fullPath);
|
|
590
642
|
}
|
|
591
643
|
const out = await compileAndLoad();
|
|
592
644
|
if (typeof out._markdown !== "string") missingProcessedMarkdown();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { L as LoadedConfig,
|
|
1
|
+
import { L as LoadedConfig, R as RuntimeAsync } from '../../types-CbLt05Gc.cjs';
|
|
2
2
|
import '@standard-schema/spec';
|
|
3
3
|
import 'fumadocs-core/source';
|
|
4
|
-
import '../../define
|
|
4
|
+
import '../../define-DJbJduHy.cjs';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import 'unified';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../../shared-
|
|
9
|
+
import '../../shared-Cnm1afPW.cjs';
|
|
10
10
|
import 'fumadocs-core/server';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'mdx/types';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { L as LoadedConfig,
|
|
1
|
+
import { L as LoadedConfig, R as RuntimeAsync } from '../../types-Ci6BA1tA.js';
|
|
2
2
|
import '@standard-schema/spec';
|
|
3
3
|
import 'fumadocs-core/source';
|
|
4
|
-
import '../../define
|
|
4
|
+
import '../../define-DJbJduHy.js';
|
|
5
5
|
import 'fumadocs-core/mdx-plugins';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import 'unified';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../../shared-
|
|
9
|
+
import '../../shared-DpXxElc1.js';
|
|
10
10
|
import 'fumadocs-core/server';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'mdx/types';
|
|
@@ -6,13 +6,18 @@ import {
|
|
|
6
6
|
missingProcessedMarkdown
|
|
7
7
|
} from "../../chunk-ZLCSVXCD.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-KTDVTBMH.js";
|
|
9
|
+
readFileWithCache
|
|
10
|
+
} from "../../chunk-ADR6R7HM.js";
|
|
12
11
|
import {
|
|
13
12
|
buildConfig
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import
|
|
13
|
+
} from "../../chunk-U4MQ44TS.js";
|
|
14
|
+
import {
|
|
15
|
+
buildMDX
|
|
16
|
+
} from "../../chunk-QAUWMR5D.js";
|
|
17
|
+
import "../../chunk-LMG6UWCL.js";
|
|
18
|
+
import {
|
|
19
|
+
fumaMatter
|
|
20
|
+
} from "../../chunk-VWJKRQZR.js";
|
|
16
21
|
|
|
17
22
|
// src/runtime/next/async.ts
|
|
18
23
|
import { executeMdx } from "@fumadocs/mdx-remote/client";
|
|
@@ -29,12 +34,14 @@ var _runtimeAsync = {
|
|
|
29
34
|
doc(files, collectionName, config) {
|
|
30
35
|
const collection = getDocCollection(config, collectionName);
|
|
31
36
|
const initMdxOptions = getOptions(config, collection);
|
|
32
|
-
return files.map(({ info, data,
|
|
37
|
+
return files.map(({ info, data, lastModified }) => {
|
|
33
38
|
let cachedResult;
|
|
34
39
|
async function compileAndLoad() {
|
|
35
40
|
if (cachedResult) return cachedResult;
|
|
36
41
|
const mdxOptions = await initMdxOptions;
|
|
37
|
-
const
|
|
42
|
+
const raw = await readFileWithCache(info.fullPath);
|
|
43
|
+
const { content } = fumaMatter(raw);
|
|
44
|
+
const compiled = await buildMDX(collectionName, content, {
|
|
38
45
|
...mdxOptions,
|
|
39
46
|
development: false,
|
|
40
47
|
frontmatter: data,
|
|
@@ -54,7 +61,7 @@ var _runtimeAsync = {
|
|
|
54
61
|
info,
|
|
55
62
|
async getText(type) {
|
|
56
63
|
if (type === "raw") {
|
|
57
|
-
return
|
|
64
|
+
return readFileWithCache(info.fullPath);
|
|
58
65
|
}
|
|
59
66
|
const out = await compileAndLoad();
|
|
60
67
|
if (typeof out._markdown !== "string") missingProcessedMarkdown();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { F as FileInfo } from '../../shared-Cnm1afPW.cjs';
|
|
1
2
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import
|
|
5
|
-
import '@standard-schema/spec';
|
|
6
|
-
import '../../define--6HQ1ehX.cjs';
|
|
3
|
+
import { a as Runtime } from '../../types-CbLt05Gc.cjs';
|
|
4
|
+
export { c as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, R as RuntimeAsync, b as RuntimeFile } from '../../types-CbLt05Gc.cjs';
|
|
5
|
+
import '../../define-DJbJduHy.cjs';
|
|
7
6
|
import 'fumadocs-core/mdx-plugins';
|
|
8
|
-
import '@mdx-js/mdx';
|
|
9
|
-
import 'unified';
|
|
10
|
-
import 'zod';
|
|
11
7
|
import 'fumadocs-core/server';
|
|
12
8
|
import 'react';
|
|
13
9
|
import 'mdx/types';
|
|
10
|
+
import '@standard-schema/spec';
|
|
11
|
+
import '@mdx-js/mdx';
|
|
12
|
+
import 'unified';
|
|
13
|
+
import 'zod';
|
|
14
14
|
|
|
15
15
|
declare const _runtime: Runtime;
|
|
16
16
|
interface AnyCollectionEntry {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { F as FileInfo } from '../../shared-DpXxElc1.js';
|
|
1
2
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import
|
|
5
|
-
import '@standard-schema/spec';
|
|
6
|
-
import '../../define--6HQ1ehX.js';
|
|
3
|
+
import { a as Runtime } from '../../types-Ci6BA1tA.js';
|
|
4
|
+
export { c as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, R as RuntimeAsync, b as RuntimeFile } from '../../types-Ci6BA1tA.js';
|
|
5
|
+
import '../../define-DJbJduHy.js';
|
|
7
6
|
import 'fumadocs-core/mdx-plugins';
|
|
8
|
-
import '@mdx-js/mdx';
|
|
9
|
-
import 'unified';
|
|
10
|
-
import 'zod';
|
|
11
7
|
import 'fumadocs-core/server';
|
|
12
8
|
import 'react';
|
|
13
9
|
import 'mdx/types';
|
|
10
|
+
import '@standard-schema/spec';
|
|
11
|
+
import '@mdx-js/mdx';
|
|
12
|
+
import 'unified';
|
|
13
|
+
import 'zod';
|
|
14
14
|
|
|
15
15
|
declare const _runtime: Runtime;
|
|
16
16
|
interface AnyCollectionEntry {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as ClientLoader, a as ClientLoaderOptions, c as createClientLoader, f as fromConfig, t as toClientRenderer } from '../../browser-
|
|
1
|
+
export { C as ClientLoader, a as ClientLoaderOptions, c as createClientLoader, f as fromConfig, t as toClientRenderer } from '../../browser-R0x9IPaQ.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@mdx-js/mdx';
|
|
4
4
|
import 'fumadocs-core/mdx-plugins';
|
|
5
5
|
import 'fumadocs-core/server';
|
|
6
6
|
import 'mdx/types';
|
|
7
|
-
import '../../define
|
|
7
|
+
import '../../define-DJbJduHy.cjs';
|
|
8
8
|
import '@standard-schema/spec';
|
|
9
9
|
import 'unified';
|
|
10
10
|
import 'zod';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as ClientLoader, a as ClientLoaderOptions, c as createClientLoader, f as fromConfig, t as toClientRenderer } from '../../browser-
|
|
1
|
+
export { C as ClientLoader, a as ClientLoaderOptions, c as createClientLoader, f as fromConfig, t as toClientRenderer } from '../../browser-BupUnhpC.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@mdx-js/mdx';
|
|
4
4
|
import 'fumadocs-core/mdx-plugins';
|
|
5
5
|
import 'fumadocs-core/server';
|
|
6
6
|
import 'mdx/types';
|
|
7
|
-
import '../../define
|
|
7
|
+
import '../../define-DJbJduHy.js';
|
|
8
8
|
import '@standard-schema/spec';
|
|
9
9
|
import 'unified';
|
|
10
10
|
import 'zod';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { B as BaseCreate, D as DocMap, M as MetaMap, L as LazyDocMap } from '../../browser-
|
|
2
|
-
export { C as ClientLoader, a as ClientLoaderOptions, b as CompiledMDXFile, c as createClientLoader, t as toClientRenderer } from '../../browser-
|
|
1
|
+
import { B as BaseCreate, D as DocMap, M as MetaMap, L as LazyDocMap } from '../../browser-R0x9IPaQ.cjs';
|
|
2
|
+
export { C as ClientLoader, a as ClientLoaderOptions, b as CompiledMDXFile, c as createClientLoader, t as toClientRenderer } from '../../browser-R0x9IPaQ.cjs';
|
|
3
3
|
import { PageData, MetaData, Source } from 'fumadocs-core/source';
|
|
4
|
-
import { D as DocCollectionEntry, M as MetaCollectionEntry, A as AsyncDocCollectionEntry } from '../../shared-
|
|
4
|
+
import { D as DocCollectionEntry, M as MetaCollectionEntry, A as AsyncDocCollectionEntry } from '../../shared-Cnm1afPW.cjs';
|
|
5
5
|
import '@mdx-js/mdx';
|
|
6
6
|
import 'fumadocs-core/mdx-plugins';
|
|
7
7
|
import 'fumadocs-core/server';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'mdx/types';
|
|
10
|
-
import '../../define
|
|
10
|
+
import '../../define-DJbJduHy.cjs';
|
|
11
11
|
import '@standard-schema/spec';
|
|
12
12
|
import 'unified';
|
|
13
13
|
import 'zod';
|
|
@@ -24,4 +24,4 @@ interface ServerCreate<Config> extends BaseCreate<Config> {
|
|
|
24
24
|
}
|
|
25
25
|
declare function fromConfig<Config>(): ServerCreate<Config>;
|
|
26
26
|
|
|
27
|
-
export { type ServerCreate, fromConfig };
|
|
27
|
+
export { DocMap, LazyDocMap, MetaMap, type ServerCreate, fromConfig };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { B as BaseCreate, D as DocMap, M as MetaMap, L as LazyDocMap } from '../../browser-
|
|
2
|
-
export { C as ClientLoader, a as ClientLoaderOptions, b as CompiledMDXFile, c as createClientLoader, t as toClientRenderer } from '../../browser-
|
|
1
|
+
import { B as BaseCreate, D as DocMap, M as MetaMap, L as LazyDocMap } from '../../browser-BupUnhpC.js';
|
|
2
|
+
export { C as ClientLoader, a as ClientLoaderOptions, b as CompiledMDXFile, c as createClientLoader, t as toClientRenderer } from '../../browser-BupUnhpC.js';
|
|
3
3
|
import { PageData, MetaData, Source } from 'fumadocs-core/source';
|
|
4
|
-
import { D as DocCollectionEntry, M as MetaCollectionEntry, A as AsyncDocCollectionEntry } from '../../shared-
|
|
4
|
+
import { D as DocCollectionEntry, M as MetaCollectionEntry, A as AsyncDocCollectionEntry } from '../../shared-DpXxElc1.js';
|
|
5
5
|
import '@mdx-js/mdx';
|
|
6
6
|
import 'fumadocs-core/mdx-plugins';
|
|
7
7
|
import 'fumadocs-core/server';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'mdx/types';
|
|
10
|
-
import '../../define
|
|
10
|
+
import '../../define-DJbJduHy.js';
|
|
11
11
|
import '@standard-schema/spec';
|
|
12
12
|
import 'unified';
|
|
13
13
|
import 'zod';
|
|
@@ -24,4 +24,4 @@ interface ServerCreate<Config> extends BaseCreate<Config> {
|
|
|
24
24
|
}
|
|
25
25
|
declare function fromConfig<Config>(): ServerCreate<Config>;
|
|
26
26
|
|
|
27
|
-
export { type ServerCreate, fromConfig };
|
|
27
|
+
export { DocMap, LazyDocMap, MetaMap, type ServerCreate, fromConfig };
|
|
@@ -2,7 +2,7 @@ import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
|
2
2
|
import { TableOfContents } from 'fumadocs-core/server';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import { MDXProps } from 'mdx/types';
|
|
5
|
-
import { E as ExtractedReference } from './define
|
|
5
|
+
import { E as ExtractedReference } from './define-DJbJduHy.cjs';
|
|
6
6
|
|
|
7
7
|
interface FileInfo {
|
|
8
8
|
/**
|
|
@@ -66,5 +66,6 @@ type AsyncDocCollectionEntry<Frontmatter> = Override<DocMethods & {
|
|
|
66
66
|
load: () => Promise<DocData>;
|
|
67
67
|
}, Frontmatter>;
|
|
68
68
|
type Override<A, B> = Omit<A, keyof B> & B;
|
|
69
|
+
declare function missingProcessedMarkdown(): never;
|
|
69
70
|
|
|
70
|
-
export type
|
|
71
|
+
export { type AsyncDocCollectionEntry as A, type DocCollectionEntry as D, type FileInfo as F, type MetaCollectionEntry as M, type Override as O, type DocData as a, type DocMethods as b, missingProcessedMarkdown as m };
|
|
@@ -2,7 +2,7 @@ import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
|
2
2
|
import { TableOfContents } from 'fumadocs-core/server';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import { MDXProps } from 'mdx/types';
|
|
5
|
-
import { E as ExtractedReference } from './define
|
|
5
|
+
import { E as ExtractedReference } from './define-DJbJduHy.js';
|
|
6
6
|
|
|
7
7
|
interface FileInfo {
|
|
8
8
|
/**
|
|
@@ -66,5 +66,6 @@ type AsyncDocCollectionEntry<Frontmatter> = Override<DocMethods & {
|
|
|
66
66
|
load: () => Promise<DocData>;
|
|
67
67
|
}, Frontmatter>;
|
|
68
68
|
type Override<A, B> = Omit<A, keyof B> & B;
|
|
69
|
+
declare function missingProcessedMarkdown(): never;
|
|
69
70
|
|
|
70
|
-
export type
|
|
71
|
+
export { type AsyncDocCollectionEntry as A, type DocCollectionEntry as D, type FileInfo as F, type MetaCollectionEntry as M, type Override as O, type DocData as a, type DocMethods as b, missingProcessedMarkdown as m };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
2
|
import { Source, PageData, MetaData } from 'fumadocs-core/source';
|
|
3
|
-
import { a as DocCollection, M as MetaCollection, b as DocsCollection, G as GlobalConfig } from './define
|
|
3
|
+
import { a as DocCollection, M as MetaCollection, b as DocsCollection, G as GlobalConfig } from './define-DJbJduHy.cjs';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
|
5
|
-
import { F as FileInfo,
|
|
5
|
+
import { F as FileInfo, D as DocCollectionEntry, M as MetaCollectionEntry, A as AsyncDocCollectionEntry } from './shared-Cnm1afPW.cjs';
|
|
6
6
|
|
|
7
7
|
interface LoadedConfig {
|
|
8
8
|
collections: Map<string, DocCollection | MetaCollection | DocsCollection>;
|
|
@@ -15,12 +15,11 @@ interface RuntimeFile {
|
|
|
15
15
|
data: Record<string, unknown>;
|
|
16
16
|
}
|
|
17
17
|
interface AsyncRuntimeFile {
|
|
18
|
-
info: FileInfo
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
matter: string;
|
|
22
|
-
body: string;
|
|
18
|
+
info: FileInfo & {
|
|
19
|
+
hash?: string;
|
|
20
|
+
absolutePath?: string;
|
|
23
21
|
};
|
|
22
|
+
data: Record<string, unknown>;
|
|
24
23
|
lastModified?: Date;
|
|
25
24
|
}
|
|
26
25
|
type DocOut<Schema extends StandardSchemaV1 = StandardSchemaV1> = DocCollectionEntry<StandardSchemaV1.InferOutput<Schema>>;
|
|
@@ -50,4 +49,4 @@ interface RuntimeAsync {
|
|
|
50
49
|
} : never;
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
export type { AsyncRuntimeFile as A, DocOut as D, LoadedConfig as L, MetaOut as M,
|
|
52
|
+
export type { AsyncRuntimeFile as A, DocOut as D, LoadedConfig as L, MetaOut as M, RuntimeAsync as R, Runtime as a, RuntimeFile as b, AsyncDocOut as c };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
2
|
import { Source, PageData, MetaData } from 'fumadocs-core/source';
|
|
3
|
-
import { a as DocCollection, M as MetaCollection, b as DocsCollection, G as GlobalConfig } from './define
|
|
3
|
+
import { a as DocCollection, M as MetaCollection, b as DocsCollection, G as GlobalConfig } from './define-DJbJduHy.js';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
|
5
|
-
import { F as FileInfo,
|
|
5
|
+
import { F as FileInfo, D as DocCollectionEntry, M as MetaCollectionEntry, A as AsyncDocCollectionEntry } from './shared-DpXxElc1.js';
|
|
6
6
|
|
|
7
7
|
interface LoadedConfig {
|
|
8
8
|
collections: Map<string, DocCollection | MetaCollection | DocsCollection>;
|
|
@@ -15,12 +15,11 @@ interface RuntimeFile {
|
|
|
15
15
|
data: Record<string, unknown>;
|
|
16
16
|
}
|
|
17
17
|
interface AsyncRuntimeFile {
|
|
18
|
-
info: FileInfo
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
matter: string;
|
|
22
|
-
body: string;
|
|
18
|
+
info: FileInfo & {
|
|
19
|
+
hash?: string;
|
|
20
|
+
absolutePath?: string;
|
|
23
21
|
};
|
|
22
|
+
data: Record<string, unknown>;
|
|
24
23
|
lastModified?: Date;
|
|
25
24
|
}
|
|
26
25
|
type DocOut<Schema extends StandardSchemaV1 = StandardSchemaV1> = DocCollectionEntry<StandardSchemaV1.InferOutput<Schema>>;
|
|
@@ -50,4 +49,4 @@ interface RuntimeAsync {
|
|
|
50
49
|
} : never;
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
export type { AsyncRuntimeFile as A, DocOut as D, LoadedConfig as L, MetaOut as M,
|
|
52
|
+
export type { AsyncRuntimeFile as A, DocOut as D, LoadedConfig as L, MetaOut as M, RuntimeAsync as R, Runtime as a, RuntimeFile as b, AsyncDocOut as c };
|