fumadocs-mdx 13.0.3 → 13.0.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.
Files changed (65) hide show
  1. package/dist/bin.cjs +352 -272
  2. package/dist/{build-mdx-TtQzmq6W.d.cts → build-mdx-BjXOmv0b.d.cts} +1 -1
  3. package/dist/{build-mdx--WI4tf2-.d.ts → build-mdx-CY5UldCO.d.ts} +1 -1
  4. package/dist/bun/index.cjs +177 -57
  5. package/dist/bun/index.d.cts +2 -2
  6. package/dist/bun/index.d.ts +2 -2
  7. package/dist/bun/index.js +26 -34
  8. package/dist/chunk-2HXTGJBI.js +101 -0
  9. package/dist/chunk-4JSFLXXT.js +8 -0
  10. package/dist/{chunk-JVZFH6ND.js → chunk-QXHN25N3.js} +2 -2
  11. package/dist/{chunk-EELYB2XC.js → chunk-TZ5EQBFW.js} +9 -103
  12. package/dist/chunk-VUEZTR2H.js +26 -0
  13. package/dist/{chunk-XQ5O7IPO.js → chunk-XYGORKQA.js} +5 -3
  14. package/dist/chunk-YAIPHUCZ.js +56 -0
  15. package/dist/chunk-ZNVPB2IR.js +170 -0
  16. package/dist/config/index.d.cts +2 -2
  17. package/dist/config/index.d.ts +2 -2
  18. package/dist/{core-DhfmVKRA.d.cts → core-DB7TdlyC.d.cts} +21 -7
  19. package/dist/{core-DhfmVKRA.d.ts → core-DB7TdlyC.d.ts} +21 -7
  20. package/dist/index-D7s7kCc2.d.cts +7 -0
  21. package/dist/index-D7s7kCc2.d.ts +7 -0
  22. package/dist/index.d.cts +4 -4
  23. package/dist/index.d.ts +4 -4
  24. package/dist/load-from-file-AVYOFOI7.js +7 -0
  25. package/dist/next/index.cjs +145 -139
  26. package/dist/next/index.js +56 -36
  27. package/dist/node/loader.cjs +242 -128
  28. package/dist/node/loader.d.cts +2 -2
  29. package/dist/node/loader.d.ts +2 -2
  30. package/dist/node/loader.js +29 -16
  31. package/dist/plugins/json-schema.cjs +22 -70
  32. package/dist/plugins/json-schema.d.cts +2 -2
  33. package/dist/plugins/json-schema.d.ts +2 -2
  34. package/dist/plugins/json-schema.js +19 -14
  35. package/dist/runtime/next/async.cjs +56 -11
  36. package/dist/runtime/next/async.d.cts +4 -6
  37. package/dist/runtime/next/async.d.ts +4 -6
  38. package/dist/runtime/next/async.js +3 -6
  39. package/dist/runtime/next/index.d.cts +5 -5
  40. package/dist/runtime/next/index.d.ts +5 -5
  41. package/dist/runtime/vite/browser.d.cts +3 -3
  42. package/dist/runtime/vite/browser.d.ts +3 -3
  43. package/dist/runtime/vite/server.d.cts +3 -3
  44. package/dist/runtime/vite/server.d.ts +3 -3
  45. package/dist/{types-zrV4v6mp.d.cts → types-Bnh9n7mj.d.cts} +2 -2
  46. package/dist/{types-CMva20Zp.d.ts → types-ey1AZqrg.d.ts} +2 -2
  47. package/dist/vite/index.cjs +238 -159
  48. package/dist/vite/index.js +113 -118
  49. package/dist/webpack/{index.cjs → mdx.cjs} +126 -104
  50. package/dist/webpack/mdx.d.cts +6 -0
  51. package/dist/webpack/mdx.d.ts +6 -0
  52. package/dist/webpack/{index.js → mdx.js} +12 -14
  53. package/dist/webpack/meta.cjs +528 -0
  54. package/dist/webpack/meta.d.cts +6 -0
  55. package/dist/webpack/meta.d.ts +6 -0
  56. package/dist/webpack/meta.js +42 -0
  57. package/loader-mdx.cjs +1 -1
  58. package/loader-meta.cjs +7 -0
  59. package/package.json +6 -3
  60. package/dist/chunk-U4MQ44TS.js +0 -53
  61. package/dist/chunk-XZY2AWJI.js +0 -81
  62. package/dist/chunk-YVCR6FUH.js +0 -82
  63. package/dist/load-MNG3CLET.js +0 -7
  64. package/dist/webpack/index.d.cts +0 -15
  65. package/dist/webpack/index.d.ts +0 -15
@@ -34,65 +34,8 @@ __export(json_schema_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(json_schema_exports);
36
36
  var import_zod = require("zod");
37
-
38
- // src/utils/collections.ts
39
- var import_picomatch = __toESM(require("picomatch"), 1);
40
- var import_tinyglobby = require("tinyglobby");
41
- var import_node_path = __toESM(require("path"), 1);
42
- var SupportedFormats = {
43
- doc: ["mdx", "md"],
44
- meta: ["json", "yaml"]
45
- };
46
- function getGlobPatterns(collection) {
47
- if (collection.files) return collection.files;
48
- return [`**/*.{${SupportedFormats[collection.type].join(",")}}`];
49
- }
50
- function isFileSupported(filePath, collection) {
51
- return SupportedFormats[collection.type].some(
52
- (format) => filePath.endsWith(`.${format}`)
53
- );
54
- }
55
- function createCollectionMatcher(core) {
56
- const CacheKey = "collection-matcher";
57
- return {
58
- scan(config) {
59
- const scanned = [];
60
- function scan(name, collection) {
61
- const patterns = getGlobPatterns(collection);
62
- for (const dir of Array.isArray(collection.dir) ? collection.dir : [collection.dir]) {
63
- scanned.push({
64
- name,
65
- collection,
66
- matcher: (0, import_picomatch.default)(patterns, {
67
- cwd: dir
68
- })
69
- });
70
- }
71
- }
72
- for (const [name, collection] of config.collections) {
73
- if (collection.type === "docs") {
74
- scan(name, collection.meta);
75
- scan(name, collection.docs);
76
- } else {
77
- scan(name, collection);
78
- }
79
- }
80
- return scanned;
81
- },
82
- getFileCollection(file) {
83
- const scanned = core.cache.get(CacheKey) ?? this.scan(core.getConfig());
84
- core.cache.set(CacheKey, scanned);
85
- for (const item of scanned) {
86
- if (isFileSupported(file, item.collection) && item.matcher(file))
87
- return { name: item.name, collection: item.collection };
88
- }
89
- }
90
- };
91
- }
92
-
93
- // src/plugins/json-schema.ts
94
37
  var import_promises = __toESM(require("fs/promises"), 1);
95
- var import_node_path2 = __toESM(require("path"), 1);
38
+ var import_node_path = __toESM(require("path"), 1);
96
39
  function jsonSchema({
97
40
  insert = false
98
41
  } = {}) {
@@ -106,12 +49,21 @@ function jsonSchema({
106
49
  },
107
50
  configureServer(server) {
108
51
  if (!server.watcher || !insert) return;
109
- const matcher = createCollectionMatcher(this.core);
110
52
  server.watcher.on("add", async (file) => {
111
- const match = matcher.getFileCollection(file);
112
- if (!match || match.collection.type !== "meta") return;
113
- const { name } = match;
114
- const parent = config.collections.get(name);
53
+ let parent;
54
+ let match;
55
+ for (const collection of config.collectionList) {
56
+ if (collection.type === "meta" && collection.hasFile(file)) {
57
+ match = collection;
58
+ break;
59
+ }
60
+ if (collection.type === "docs" && collection.meta.hasFile(file)) {
61
+ parent = collection;
62
+ match = collection.meta;
63
+ break;
64
+ }
65
+ }
66
+ if (!match) return;
115
67
  let obj;
116
68
  try {
117
69
  const content = (await import_promises.default.readFile(file)).toString();
@@ -120,12 +72,12 @@ function jsonSchema({
120
72
  return;
121
73
  }
122
74
  if ("$schema" in obj) return;
123
- const schemaPath = import_node_path2.default.join(
75
+ const schemaPath = import_node_path.default.join(
124
76
  this.outDir,
125
- getSchemaPath(parent?.type === "docs" ? `${name}.meta` : name)
77
+ getSchemaPath(parent ? `${parent.name}.meta` : match.name)
126
78
  );
127
79
  const updated = {
128
- $schema: import_node_path2.default.relative(import_node_path2.default.dirname(file), schemaPath),
80
+ $schema: import_node_path.default.relative(import_node_path.default.dirname(file), schemaPath),
129
81
  ...obj
130
82
  };
131
83
  await import_promises.default.writeFile(file, JSON.stringify(updated, null, 2));
@@ -144,16 +96,16 @@ function jsonSchema({
144
96
  )
145
97
  });
146
98
  }
147
- for (const [name, collection] of config.collections) {
99
+ for (const collection of config.collectionList) {
148
100
  if (collection.type === "docs") {
149
101
  if (collection.meta.schema instanceof import_zod.z.ZodType) {
150
- onSchema(`${name}.meta`, collection.meta.schema);
102
+ onSchema(`${collection.name}.meta`, collection.meta.schema);
151
103
  }
152
104
  if (collection.docs.schema instanceof import_zod.z.ZodType) {
153
- onSchema(`${name}.docs`, collection.docs.schema);
105
+ onSchema(`${collection.name}.docs`, collection.docs.schema);
154
106
  }
155
107
  } else if (collection.schema instanceof import_zod.z.ZodType) {
156
- onSchema(name, collection.schema);
108
+ onSchema(collection.name, collection.schema);
157
109
  }
158
110
  }
159
111
  return files;
@@ -1,7 +1,7 @@
1
- import { i as Plugin } from '../core-DhfmVKRA.cjs';
1
+ import { i as Plugin } from '../core-DB7TdlyC.cjs';
2
+ import '@mdx-js/mdx';
2
3
  import '@standard-schema/spec';
3
4
  import 'fumadocs-core/mdx-plugins';
4
- import '@mdx-js/mdx';
5
5
  import 'unified';
6
6
  import 'zod';
7
7
  import 'chokidar';
@@ -1,7 +1,7 @@
1
- import { i as Plugin } from '../core-DhfmVKRA.js';
1
+ import { i as Plugin } from '../core-DB7TdlyC.js';
2
+ import '@mdx-js/mdx';
2
3
  import '@standard-schema/spec';
3
4
  import 'fumadocs-core/mdx-plugins';
4
- import '@mdx-js/mdx';
5
5
  import 'unified';
6
6
  import 'zod';
7
7
  import 'chokidar';
@@ -1,7 +1,3 @@
1
- import {
2
- createCollectionMatcher
3
- } from "../chunk-XZY2AWJI.js";
4
-
5
1
  // src/plugins/json-schema.ts
6
2
  import { z } from "zod";
7
3
  import fs from "fs/promises";
@@ -19,12 +15,21 @@ function jsonSchema({
19
15
  },
20
16
  configureServer(server) {
21
17
  if (!server.watcher || !insert) return;
22
- const matcher = createCollectionMatcher(this.core);
23
18
  server.watcher.on("add", async (file) => {
24
- const match = matcher.getFileCollection(file);
25
- if (!match || match.collection.type !== "meta") return;
26
- const { name } = match;
27
- const parent = config.collections.get(name);
19
+ let parent;
20
+ let match;
21
+ for (const collection of config.collectionList) {
22
+ if (collection.type === "meta" && collection.hasFile(file)) {
23
+ match = collection;
24
+ break;
25
+ }
26
+ if (collection.type === "docs" && collection.meta.hasFile(file)) {
27
+ parent = collection;
28
+ match = collection.meta;
29
+ break;
30
+ }
31
+ }
32
+ if (!match) return;
28
33
  let obj;
29
34
  try {
30
35
  const content = (await fs.readFile(file)).toString();
@@ -35,7 +40,7 @@ function jsonSchema({
35
40
  if ("$schema" in obj) return;
36
41
  const schemaPath = path.join(
37
42
  this.outDir,
38
- getSchemaPath(parent?.type === "docs" ? `${name}.meta` : name)
43
+ getSchemaPath(parent ? `${parent.name}.meta` : match.name)
39
44
  );
40
45
  const updated = {
41
46
  $schema: path.relative(path.dirname(file), schemaPath),
@@ -57,16 +62,16 @@ function jsonSchema({
57
62
  )
58
63
  });
59
64
  }
60
- for (const [name, collection] of config.collections) {
65
+ for (const collection of config.collectionList) {
61
66
  if (collection.type === "docs") {
62
67
  if (collection.meta.schema instanceof z.ZodType) {
63
- onSchema(`${name}.meta`, collection.meta.schema);
68
+ onSchema(`${collection.name}.meta`, collection.meta.schema);
64
69
  }
65
70
  if (collection.docs.schema instanceof z.ZodType) {
66
- onSchema(`${name}.docs`, collection.docs.schema);
71
+ onSchema(`${collection.name}.docs`, collection.docs.schema);
67
72
  }
68
73
  } else if (collection.schema instanceof z.ZodType) {
69
- onSchema(name, collection.schema);
74
+ onSchema(collection.name, collection.schema);
70
75
  }
71
76
  }
72
77
  return files;
@@ -595,35 +595,83 @@ var import_node_url = require("url");
595
595
  var import_promises2 = __toESM(require("fs/promises"), 1);
596
596
 
597
597
  // src/config/build.ts
598
+ var import_picomatch = __toESM(require("picomatch"), 1);
599
+ var SupportedFormats = {
600
+ doc: ["mdx", "md"],
601
+ meta: ["json", "yaml"]
602
+ };
603
+ function buildCollection(name, config) {
604
+ if (config.type === "docs") {
605
+ return {
606
+ ...config,
607
+ name,
608
+ meta: buildPrimitiveCollection(name, config.meta),
609
+ docs: buildPrimitiveCollection(name, config.docs)
610
+ };
611
+ }
612
+ return buildPrimitiveCollection(name, config);
613
+ }
614
+ function buildPrimitiveCollection(name, { files, ...config }) {
615
+ const supportedFormats = SupportedFormats[config.type];
616
+ const patterns = files ?? [`**/*.{${supportedFormats.join(",")}}`];
617
+ let matchers;
618
+ return {
619
+ ...config,
620
+ name,
621
+ patterns,
622
+ isFileSupported(filePath) {
623
+ return supportedFormats.some((format) => filePath.endsWith(`.${format}`));
624
+ },
625
+ hasFile(filePath) {
626
+ matchers ??= (Array.isArray(config.dir) ? config.dir : [config.dir]).map(
627
+ (dir) => (0, import_picomatch.default)(patterns, {
628
+ cwd: dir
629
+ })
630
+ );
631
+ return this.isFileSupported(filePath) && matchers.some((matcher) => matcher(filePath));
632
+ }
633
+ };
634
+ }
598
635
  function buildConfig(config) {
599
636
  const collections = /* @__PURE__ */ new Map();
600
- let globalConfig = {};
637
+ const loaded = {};
601
638
  for (const [k, v] of Object.entries(config)) {
602
639
  if (!v) {
603
640
  continue;
604
641
  }
605
642
  if (typeof v === "object" && "type" in v) {
606
643
  if (v.type === "docs") {
607
- collections.set(k, v);
644
+ collections.set(k, buildCollection(k, v));
608
645
  continue;
609
646
  }
610
647
  if (v.type === "doc" || v.type === "meta") {
611
- collections.set(k, v);
648
+ collections.set(
649
+ k,
650
+ buildCollection(k, v)
651
+ );
612
652
  continue;
613
653
  }
614
654
  }
615
655
  if (k === "default" && v) {
616
- globalConfig = v;
656
+ Object.assign(loaded, v);
617
657
  continue;
618
658
  }
619
659
  throw new Error(
620
660
  `Unknown export "${k}", you can only export collections from source configuration file.`
621
661
  );
622
662
  }
663
+ if (loaded.collections) {
664
+ for (const [k, v] of Object.entries(loaded.collections)) {
665
+ collections.set(k, buildCollection(k, v));
666
+ }
667
+ }
623
668
  const mdxOptionsCache = /* @__PURE__ */ new Map();
624
669
  return {
625
- global: globalConfig,
626
- collections,
670
+ global: loaded,
671
+ collectionList: Array.from(collections.values()),
672
+ getCollection(name) {
673
+ return collections.get(name);
674
+ },
627
675
  async getDefaultMDXOptions(mode = "default") {
628
676
  const cached = mdxOptionsCache.get(mode);
629
677
  if (cached) return cached;
@@ -646,17 +694,14 @@ function buildConfig(config) {
646
694
 
647
695
  // src/runtime/next/async.ts
648
696
  function getDocCollection(config, collection) {
649
- const col = config.collections.get(collection);
697
+ const col = config.getCollection(collection);
650
698
  if (col?.type === "doc" && col.mdxOptions) return col;
651
699
  if (col?.type === "docs" && col.docs.mdxOptions) return col.docs;
652
700
  }
653
- async function getOptions(config, collection) {
654
- return collection?.mdxOptions ?? await config.getDefaultMDXOptions("remote");
655
- }
656
701
  var _runtimeAsync = {
657
702
  doc(files, collectionName, config) {
658
703
  const collection = getDocCollection(config, collectionName);
659
- const initMdxOptions = getOptions(config, collection);
704
+ const initMdxOptions = collection?.mdxOptions ?? config.getDefaultMDXOptions("remote");
660
705
  return files.map(({ info, data, lastModified }) => {
661
706
  let cachedResult;
662
707
  async function compileAndLoad() {
@@ -1,5 +1,5 @@
1
- import { c as RuntimeAsync } from '../../types-zrV4v6mp.cjs';
2
- import { L as LoadedConfig } from '../../core-DhfmVKRA.cjs';
1
+ import { R as RuntimeAsync } from '../../types-Bnh9n7mj.cjs';
2
+ export { j as buildConfig } from '../../core-DB7TdlyC.cjs';
3
3
  import '@standard-schema/spec';
4
4
  import 'fumadocs-core/source';
5
5
  import '../../index.cjs';
@@ -7,15 +7,13 @@ import 'fumadocs-core/mdx-plugins';
7
7
  import 'fumadocs-core/toc';
8
8
  import 'mdx/types';
9
9
  import 'mdast';
10
- import '../../build-mdx-TtQzmq6W.cjs';
10
+ import '../../build-mdx-BjXOmv0b.cjs';
11
11
  import '@mdx-js/mdx';
12
12
  import 'react';
13
13
  import 'unified';
14
14
  import 'zod';
15
15
  import 'chokidar';
16
16
 
17
- declare function buildConfig(config: Record<string, unknown>): LoadedConfig;
18
-
19
17
  declare const _runtimeAsync: RuntimeAsync;
20
18
 
21
- export { _runtimeAsync, buildConfig };
19
+ export { _runtimeAsync };
@@ -1,5 +1,5 @@
1
- import { c as RuntimeAsync } from '../../types-CMva20Zp.js';
2
- import { L as LoadedConfig } from '../../core-DhfmVKRA.js';
1
+ import { R as RuntimeAsync } from '../../types-ey1AZqrg.js';
2
+ export { j as buildConfig } from '../../core-DB7TdlyC.js';
3
3
  import '@standard-schema/spec';
4
4
  import 'fumadocs-core/source';
5
5
  import '../../index.js';
@@ -7,15 +7,13 @@ import 'fumadocs-core/mdx-plugins';
7
7
  import 'fumadocs-core/toc';
8
8
  import 'mdx/types';
9
9
  import 'mdast';
10
- import '../../build-mdx--WI4tf2-.js';
10
+ import '../../build-mdx-CY5UldCO.js';
11
11
  import '@mdx-js/mdx';
12
12
  import 'react';
13
13
  import 'unified';
14
14
  import 'zod';
15
15
  import 'chokidar';
16
16
 
17
- declare function buildConfig(config: Record<string, unknown>): LoadedConfig;
18
-
19
17
  declare const _runtimeAsync: RuntimeAsync;
20
18
 
21
- export { _runtimeAsync, buildConfig };
19
+ export { _runtimeAsync };
@@ -7,7 +7,7 @@ import {
7
7
  } from "../../chunk-NVRDCY6Z.js";
8
8
  import {
9
9
  buildConfig
10
- } from "../../chunk-U4MQ44TS.js";
10
+ } from "../../chunk-2HXTGJBI.js";
11
11
  import {
12
12
  buildMDX
13
13
  } from "../../chunk-3J3WL7WN.js";
@@ -21,17 +21,14 @@ import { executeMdx } from "@fumadocs/mdx-remote/client";
21
21
  import { pathToFileURL } from "url";
22
22
  import fs from "fs/promises";
23
23
  function getDocCollection(config, collection) {
24
- const col = config.collections.get(collection);
24
+ const col = config.getCollection(collection);
25
25
  if (col?.type === "doc" && col.mdxOptions) return col;
26
26
  if (col?.type === "docs" && col.docs.mdxOptions) return col.docs;
27
27
  }
28
- async function getOptions(config, collection) {
29
- return collection?.mdxOptions ?? await config.getDefaultMDXOptions("remote");
30
- }
31
28
  var _runtimeAsync = {
32
29
  doc(files, collectionName, config) {
33
30
  const collection = getDocCollection(config, collectionName);
34
- const initMdxOptions = getOptions(config, collection);
31
+ const initMdxOptions = collection?.mdxOptions ?? config.getDefaultMDXOptions("remote");
35
32
  return files.map(({ info, data, lastModified }) => {
36
33
  let cachedResult;
37
34
  async function compileAndLoad() {
@@ -1,18 +1,18 @@
1
1
  import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
2
- import { R as Runtime } from '../../types-zrV4v6mp.cjs';
3
- export { b as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, c as RuntimeAsync, a as RuntimeFile } from '../../types-zrV4v6mp.cjs';
2
+ import { a as Runtime } from '../../types-Bnh9n7mj.cjs';
3
+ export { c as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, R as RuntimeAsync, b as RuntimeFile } from '../../types-Bnh9n7mj.cjs';
4
4
  import { FileInfo } from '../../index.cjs';
5
5
  import '@standard-schema/spec';
6
- import '../../core-DhfmVKRA.cjs';
7
- import 'fumadocs-core/mdx-plugins';
6
+ import '../../core-DB7TdlyC.cjs';
8
7
  import '@mdx-js/mdx';
8
+ import 'fumadocs-core/mdx-plugins';
9
9
  import 'unified';
10
10
  import 'zod';
11
11
  import 'chokidar';
12
12
  import 'fumadocs-core/toc';
13
13
  import 'mdx/types';
14
14
  import 'mdast';
15
- import '../../build-mdx-TtQzmq6W.cjs';
15
+ import '../../build-mdx-BjXOmv0b.cjs';
16
16
  import 'react';
17
17
 
18
18
  declare const _runtime: Runtime;
@@ -1,18 +1,18 @@
1
1
  import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
2
- import { R as Runtime } from '../../types-CMva20Zp.js';
3
- export { b as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, c as RuntimeAsync, a as RuntimeFile } from '../../types-CMva20Zp.js';
2
+ import { a as Runtime } from '../../types-ey1AZqrg.js';
3
+ export { c as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, R as RuntimeAsync, b as RuntimeFile } from '../../types-ey1AZqrg.js';
4
4
  import { FileInfo } from '../../index.js';
5
5
  import '@standard-schema/spec';
6
- import '../../core-DhfmVKRA.js';
7
- import 'fumadocs-core/mdx-plugins';
6
+ import '../../core-DB7TdlyC.js';
8
7
  import '@mdx-js/mdx';
8
+ import 'fumadocs-core/mdx-plugins';
9
9
  import 'unified';
10
10
  import 'zod';
11
11
  import 'chokidar';
12
12
  import 'fumadocs-core/toc';
13
13
  import 'mdx/types';
14
14
  import 'mdast';
15
- import '../../build-mdx--WI4tf2-.js';
15
+ import '../../build-mdx-CY5UldCO.js';
16
16
  import 'react';
17
17
 
18
18
  declare const _runtime: Runtime;
@@ -1,9 +1,9 @@
1
- import { b as DocCollection, c as DocsCollection, M as MetaCollection } from '../../core-DhfmVKRA.cjs';
1
+ import { b as DocCollection, c as DocsCollection, M as MetaCollection } from '../../core-DB7TdlyC.cjs';
2
2
  import { StandardSchemaV1 } from '@standard-schema/spec';
3
- import { C as CompiledMDXProperties } from '../../build-mdx-TtQzmq6W.cjs';
3
+ import { C as CompiledMDXProperties } from '../../build-mdx-BjXOmv0b.cjs';
4
4
  import { ReactNode, FC } from 'react';
5
- import 'fumadocs-core/mdx-plugins';
6
5
  import '@mdx-js/mdx';
6
+ import 'fumadocs-core/mdx-plugins';
7
7
  import 'unified';
8
8
  import 'zod';
9
9
  import 'chokidar';
@@ -1,9 +1,9 @@
1
- import { b as DocCollection, c as DocsCollection, M as MetaCollection } from '../../core-DhfmVKRA.js';
1
+ import { b as DocCollection, c as DocsCollection, M as MetaCollection } from '../../core-DB7TdlyC.js';
2
2
  import { StandardSchemaV1 } from '@standard-schema/spec';
3
- import { C as CompiledMDXProperties } from '../../build-mdx--WI4tf2-.js';
3
+ import { C as CompiledMDXProperties } from '../../build-mdx-CY5UldCO.js';
4
4
  import { ReactNode, FC } from 'react';
5
- import 'fumadocs-core/mdx-plugins';
6
5
  import '@mdx-js/mdx';
6
+ import 'fumadocs-core/mdx-plugins';
7
7
  import 'unified';
8
8
  import 'zod';
9
9
  import 'chokidar';
@@ -2,14 +2,14 @@ import { PageData, MetaData, Source } from 'fumadocs-core/source';
2
2
  import { BaseCreate, DocMap, MetaMap, LazyDocMap } from './browser.cjs';
3
3
  export { ClientLoader, ClientLoaderOptions, CompiledMDXFile, createClientLoader, fromConfig as fromConfigBase, toClientRenderer } from './browser.cjs';
4
4
  import { DocCollectionEntry, MetaCollectionEntry, AsyncDocCollectionEntry } from '../../index.cjs';
5
- import '../../core-DhfmVKRA.cjs';
5
+ import '../../core-DB7TdlyC.cjs';
6
+ import '@mdx-js/mdx';
6
7
  import '@standard-schema/spec';
7
8
  import 'fumadocs-core/mdx-plugins';
8
- import '@mdx-js/mdx';
9
9
  import 'unified';
10
10
  import 'zod';
11
11
  import 'chokidar';
12
- import '../../build-mdx-TtQzmq6W.cjs';
12
+ import '../../build-mdx-BjXOmv0b.cjs';
13
13
  import 'fumadocs-core/toc';
14
14
  import 'react';
15
15
  import 'mdx/types';
@@ -2,14 +2,14 @@ import { PageData, MetaData, Source } from 'fumadocs-core/source';
2
2
  import { BaseCreate, DocMap, MetaMap, LazyDocMap } from './browser.js';
3
3
  export { ClientLoader, ClientLoaderOptions, CompiledMDXFile, createClientLoader, fromConfig as fromConfigBase, toClientRenderer } from './browser.js';
4
4
  import { DocCollectionEntry, MetaCollectionEntry, AsyncDocCollectionEntry } from '../../index.js';
5
- import '../../core-DhfmVKRA.js';
5
+ import '../../core-DB7TdlyC.js';
6
+ import '@mdx-js/mdx';
6
7
  import '@standard-schema/spec';
7
8
  import 'fumadocs-core/mdx-plugins';
8
- import '@mdx-js/mdx';
9
9
  import 'unified';
10
10
  import 'zod';
11
11
  import 'chokidar';
12
- import '../../build-mdx--WI4tf2-.js';
12
+ import '../../build-mdx-CY5UldCO.js';
13
13
  import 'fumadocs-core/toc';
14
14
  import 'react';
15
15
  import 'mdx/types';
@@ -1,6 +1,6 @@
1
1
  import { StandardSchemaV1 } from '@standard-schema/spec';
2
2
  import { Source, PageData, MetaData } from 'fumadocs-core/source';
3
- import { L as LoadedConfig, b as DocCollection, c as DocsCollection, M as MetaCollection } from './core-DhfmVKRA.cjs';
3
+ import { L as LoadedConfig, b as DocCollection, c as DocsCollection, M as MetaCollection } from './core-DB7TdlyC.cjs';
4
4
  import { FileInfo, AsyncDocCollectionEntry, MetaCollectionEntry, DocCollectionEntry } from './index.cjs';
5
5
 
6
6
  interface RuntimeFile {
@@ -42,4 +42,4 @@ interface RuntimeAsync {
42
42
  } : never;
43
43
  }
44
44
 
45
- export type { AsyncRuntimeFile as A, DocOut as D, MetaOut as M, Runtime as R, RuntimeFile as a, AsyncDocOut as b, RuntimeAsync as c };
45
+ export type { AsyncRuntimeFile as A, DocOut as D, MetaOut as M, RuntimeAsync as R, Runtime as a, RuntimeFile as b, AsyncDocOut as c };
@@ -1,6 +1,6 @@
1
1
  import { StandardSchemaV1 } from '@standard-schema/spec';
2
2
  import { Source, PageData, MetaData } from 'fumadocs-core/source';
3
- import { L as LoadedConfig, b as DocCollection, c as DocsCollection, M as MetaCollection } from './core-DhfmVKRA.js';
3
+ import { L as LoadedConfig, b as DocCollection, c as DocsCollection, M as MetaCollection } from './core-DB7TdlyC.js';
4
4
  import { FileInfo, AsyncDocCollectionEntry, MetaCollectionEntry, DocCollectionEntry } from './index.js';
5
5
 
6
6
  interface RuntimeFile {
@@ -42,4 +42,4 @@ interface RuntimeAsync {
42
42
  } : never;
43
43
  }
44
44
 
45
- export type { AsyncRuntimeFile as A, DocOut as D, MetaOut as M, Runtime as R, RuntimeFile as a, AsyncDocOut as b, RuntimeAsync as c };
45
+ export type { AsyncRuntimeFile as A, DocOut as D, MetaOut as M, RuntimeAsync as R, Runtime as a, RuntimeFile as b, AsyncDocOut as c };