fumadocs-mdx 13.0.7 → 13.0.8
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 +5 -5
- package/dist/{build-mdx-BnJhW5O1.d.cts → build-mdx-BjXOmv0b.d.cts} +1 -1
- package/dist/{build-mdx-DNzfRRlY.d.ts → build-mdx-CY5UldCO.d.ts} +1 -1
- package/dist/bun/index.cjs +17 -13
- package/dist/bun/index.d.cts +1 -1
- package/dist/bun/index.d.ts +1 -1
- package/dist/bun/index.js +2 -2
- package/dist/{chunk-ETIN2W7C.js → chunk-5FTSWCB4.js} +16 -11
- package/dist/{chunk-4757L6ST.js → chunk-DMJ6I4C3.js} +1 -2
- package/dist/config/index.d.cts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/{core-HkAVGq_a.d.cts → core-DB7TdlyC.d.cts} +1 -1
- package/dist/{core-HkAVGq_a.d.ts → core-DB7TdlyC.d.ts} +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/node/loader.cjs +2 -2
- package/dist/node/loader.js +2 -2
- package/dist/plugins/json-schema.d.cts +1 -1
- package/dist/plugins/json-schema.d.ts +1 -1
- package/dist/runtime/next/async.d.cts +3 -3
- package/dist/runtime/next/async.d.ts +3 -3
- package/dist/runtime/next/index.d.cts +4 -4
- package/dist/runtime/next/index.d.ts +4 -4
- 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 +2 -2
- package/dist/runtime/vite/server.d.ts +2 -2
- package/dist/{types-By6wKOnT.d.cts → types-Bnh9n7mj.d.cts} +1 -1
- package/dist/{types-DgD5Omj2.d.ts → types-ey1AZqrg.d.ts} +1 -1
- package/dist/vite/index.cjs +2 -2
- package/dist/vite/index.js +2 -2
- package/dist/webpack/mdx.cjs +1 -0
- package/dist/webpack/mdx.js +1 -1
- package/dist/webpack/meta.cjs +2 -2
- package/dist/webpack/meta.js +2 -2
- package/package.json +2 -2
package/dist/bin.cjs
CHANGED
|
@@ -1430,7 +1430,7 @@ function toVite(loader) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
|
-
var import_node_url2, import_promises4, import_node_querystring, import_node_path6;
|
|
1433
|
+
var import_node_url2, import_promises4, import_node_querystring, import_node_path6, import_node_fs;
|
|
1434
1434
|
var init_adapter = __esm({
|
|
1435
1435
|
"src/loaders/adapter.ts"() {
|
|
1436
1436
|
"use strict";
|
|
@@ -1439,6 +1439,7 @@ var init_adapter = __esm({
|
|
|
1439
1439
|
import_node_querystring = require("querystring");
|
|
1440
1440
|
init_validation();
|
|
1441
1441
|
import_node_path6 = __toESM(require("path"), 1);
|
|
1442
|
+
import_node_fs = require("fs");
|
|
1442
1443
|
}
|
|
1443
1444
|
});
|
|
1444
1445
|
|
|
@@ -1708,8 +1709,7 @@ function createMetaLoader(configLoader, resolve5 = {}) {
|
|
|
1708
1709
|
};
|
|
1709
1710
|
},
|
|
1710
1711
|
bun: {
|
|
1711
|
-
|
|
1712
|
-
const source = await getSource();
|
|
1712
|
+
loadSync(source, { filePath }) {
|
|
1713
1713
|
const isJson = filePath.endsWith(".json");
|
|
1714
1714
|
let data;
|
|
1715
1715
|
try {
|
|
@@ -1851,10 +1851,10 @@ var init_vite2 = __esm({
|
|
|
1851
1851
|
});
|
|
1852
1852
|
|
|
1853
1853
|
// src/bin.ts
|
|
1854
|
-
var
|
|
1854
|
+
var import_node_fs2 = require("fs");
|
|
1855
1855
|
async function start() {
|
|
1856
1856
|
const [configPath] = process.argv.slice(2);
|
|
1857
|
-
const isNext = (0,
|
|
1857
|
+
const isNext = (0, import_node_fs2.existsSync)("next.config.js") || (0, import_node_fs2.existsSync)("next.config.mjs") || (0, import_node_fs2.existsSync)("next.config.mts") || (0, import_node_fs2.existsSync)("next.config.ts");
|
|
1858
1858
|
if (isNext) {
|
|
1859
1859
|
const { postInstall: postInstall3 } = await Promise.resolve().then(() => (init_next2(), next_exports));
|
|
1860
1860
|
await postInstall3(configPath);
|
|
@@ -3,7 +3,7 @@ import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
|
3
3
|
import { TOCItemType } from 'fumadocs-core/toc';
|
|
4
4
|
import { FC } from 'react';
|
|
5
5
|
import { MDXProps } from 'mdx/types';
|
|
6
|
-
import { E as ExtractedReference } from './core-
|
|
6
|
+
import { E as ExtractedReference } from './core-DB7TdlyC.cjs';
|
|
7
7
|
|
|
8
8
|
type Processor = ReturnType<typeof createProcessor>;
|
|
9
9
|
interface CompilerOptions {
|
|
@@ -3,7 +3,7 @@ import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
|
3
3
|
import { TOCItemType } from 'fumadocs-core/toc';
|
|
4
4
|
import { FC } from 'react';
|
|
5
5
|
import { MDXProps } from 'mdx/types';
|
|
6
|
-
import { E as ExtractedReference } from './core-
|
|
6
|
+
import { E as ExtractedReference } from './core-DB7TdlyC.js';
|
|
7
7
|
|
|
8
8
|
type Processor = ReturnType<typeof createProcessor>;
|
|
9
9
|
interface CompilerOptions {
|
package/dist/bun/index.cjs
CHANGED
|
@@ -916,8 +916,7 @@ function createMetaLoader(configLoader, resolve2 = {}) {
|
|
|
916
916
|
};
|
|
917
917
|
},
|
|
918
918
|
bun: {
|
|
919
|
-
|
|
920
|
-
const source = await getSource();
|
|
919
|
+
loadSync(source, { filePath }) {
|
|
921
920
|
const isJson = filePath.endsWith(".json");
|
|
922
921
|
let data;
|
|
923
922
|
try {
|
|
@@ -939,9 +938,17 @@ var import_node_url = require("url");
|
|
|
939
938
|
var import_promises4 = __toESM(require("fs/promises"), 1);
|
|
940
939
|
var import_node_querystring = require("querystring");
|
|
941
940
|
var import_node_path4 = __toESM(require("path"), 1);
|
|
941
|
+
var import_node_fs = require("fs");
|
|
942
942
|
function toBun(loader) {
|
|
943
|
+
function toResult(output) {
|
|
944
|
+
if (!output) return;
|
|
945
|
+
return {
|
|
946
|
+
contents: output.code,
|
|
947
|
+
loader: "js"
|
|
948
|
+
};
|
|
949
|
+
}
|
|
943
950
|
return (build) => {
|
|
944
|
-
build.onLoad({ filter: loader.test ?? /.+/ },
|
|
951
|
+
build.onLoad({ filter: loader.test ?? /.+/ }, (args) => {
|
|
945
952
|
const [filePath, query = ""] = args.path.split("?", 2);
|
|
946
953
|
const input = {
|
|
947
954
|
async getSource() {
|
|
@@ -955,17 +962,14 @@ function toBun(loader) {
|
|
|
955
962
|
}
|
|
956
963
|
}
|
|
957
964
|
};
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
if (!loader.bun?.fallback) {
|
|
961
|
-
return;
|
|
962
|
-
}
|
|
963
|
-
return loader.bun.fallback(input);
|
|
965
|
+
if (loader.bun?.loadSync) {
|
|
966
|
+
return loader.bun.loadSync((0, import_node_fs.readFileSync)(filePath).toString(), input);
|
|
964
967
|
}
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
}
|
|
968
|
+
const result = loader.load(input);
|
|
969
|
+
if (result instanceof Promise) {
|
|
970
|
+
return result.then(toResult);
|
|
971
|
+
}
|
|
972
|
+
return toResult(result);
|
|
969
973
|
});
|
|
970
974
|
};
|
|
971
975
|
}
|
package/dist/bun/index.d.cts
CHANGED
package/dist/bun/index.d.ts
CHANGED
package/dist/bun/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "../chunk-2E2JCOSO.js";
|
|
7
7
|
import {
|
|
8
8
|
createMetaLoader
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-DMJ6I4C3.js";
|
|
10
10
|
import {
|
|
11
11
|
createIntegratedConfigLoader,
|
|
12
12
|
toBun
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-5FTSWCB4.js";
|
|
14
14
|
import "../chunk-3J3WL7WN.js";
|
|
15
15
|
import "../chunk-K5ZLPEIQ.js";
|
|
16
16
|
import "../chunk-VUEZTR2H.js";
|
|
@@ -7,6 +7,7 @@ import { fileURLToPath } from "url";
|
|
|
7
7
|
import fs from "fs/promises";
|
|
8
8
|
import { parse } from "querystring";
|
|
9
9
|
import path from "path";
|
|
10
|
+
import { readFileSync } from "fs";
|
|
10
11
|
function toNode(loader) {
|
|
11
12
|
return async (url, _context, nextLoad) => {
|
|
12
13
|
if (url.startsWith("file:///") && (!loader.test || loader.test.test(url))) {
|
|
@@ -92,8 +93,15 @@ function toWebpack(loader) {
|
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
function toBun(loader) {
|
|
96
|
+
function toResult(output) {
|
|
97
|
+
if (!output) return;
|
|
98
|
+
return {
|
|
99
|
+
contents: output.code,
|
|
100
|
+
loader: "js"
|
|
101
|
+
};
|
|
102
|
+
}
|
|
95
103
|
return (build) => {
|
|
96
|
-
build.onLoad({ filter: loader.test ?? /.+/ },
|
|
104
|
+
build.onLoad({ filter: loader.test ?? /.+/ }, (args) => {
|
|
97
105
|
const [filePath, query = ""] = args.path.split("?", 2);
|
|
98
106
|
const input = {
|
|
99
107
|
async getSource() {
|
|
@@ -107,17 +115,14 @@ function toBun(loader) {
|
|
|
107
115
|
}
|
|
108
116
|
}
|
|
109
117
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
if (!loader.bun?.fallback) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
return loader.bun.fallback(input);
|
|
118
|
+
if (loader.bun?.loadSync) {
|
|
119
|
+
return loader.bun.loadSync(readFileSync(filePath).toString(), input);
|
|
116
120
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
+
const result = loader.load(input);
|
|
122
|
+
if (result instanceof Promise) {
|
|
123
|
+
return result.then(toResult);
|
|
124
|
+
}
|
|
125
|
+
return toResult(result);
|
|
121
126
|
});
|
|
122
127
|
};
|
|
123
128
|
}
|
|
@@ -54,8 +54,7 @@ function createMetaLoader(configLoader, resolve = {}) {
|
|
|
54
54
|
};
|
|
55
55
|
},
|
|
56
56
|
bun: {
|
|
57
|
-
|
|
58
|
-
const source = await getSource();
|
|
57
|
+
loadSync(source, { filePath }) {
|
|
59
58
|
const isJson = filePath.endsWith(".json");
|
|
60
59
|
let data;
|
|
61
60
|
try {
|
package/dist/config/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AnyCollection, B as BaseCollection,
|
|
1
|
+
export { A as AnyCollection, B as BaseCollection, a as CollectionSchema, D as DefaultMDXOptions, b as DocCollection, c as DocsCollection, G as GlobalConfig, M as MetaCollection, P as PostprocessOptions, d as defineCollections, f as defineConfig, e as defineDocs, h as frontmatterSchema, g as getDefaultMDXOptions, m as metaSchema } from '../core-DB7TdlyC.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 AnyCollection, B as BaseCollection,
|
|
1
|
+
export { A as AnyCollection, B as BaseCollection, a as CollectionSchema, D as DefaultMDXOptions, b as DocCollection, c as DocsCollection, G as GlobalConfig, M as MetaCollection, P as PostprocessOptions, d as defineCollections, f as defineConfig, e as defineDocs, h as frontmatterSchema, g as getDefaultMDXOptions, m as metaSchema } from '../core-DB7TdlyC.js';
|
|
2
2
|
import { Processor, Transformer } from 'unified';
|
|
3
3
|
import { Root } from 'mdast';
|
|
4
4
|
import '@mdx-js/mdx';
|
|
@@ -231,4 +231,4 @@ declare function createCore(options: CoreOptions, defaultPlugins?: PluginOption[
|
|
|
231
231
|
};
|
|
232
232
|
type Core = ReturnType<typeof createCore>;
|
|
233
233
|
|
|
234
|
-
export { type AnyCollection as A, type BaseCollection as B, type
|
|
234
|
+
export { type AnyCollection as A, type BaseCollection as B, type CoreOptions as C, type DefaultMDXOptions as D, type ExtractedReference as E, type GlobalConfig as G, type LoadedConfig as L, type MetaCollection as M, type PostprocessOptions as P, type ServerContext as S, type CollectionSchema as a, type DocCollection as b, type DocsCollection as c, defineCollections as d, defineDocs as e, defineConfig as f, getDefaultMDXOptions as g, frontmatterSchema as h, type Plugin as i, buildConfig as j, type EmitEntry as k, type PluginContext as l, metaSchema as m, type PluginOption as n, type EmitOptions as o, findConfigFile as p, createCore as q, type Core as r };
|
|
@@ -231,4 +231,4 @@ declare function createCore(options: CoreOptions, defaultPlugins?: PluginOption[
|
|
|
231
231
|
};
|
|
232
232
|
type Core = ReturnType<typeof createCore>;
|
|
233
233
|
|
|
234
|
-
export { type AnyCollection as A, type BaseCollection as B, type
|
|
234
|
+
export { type AnyCollection as A, type BaseCollection as B, type CoreOptions as C, type DefaultMDXOptions as D, type ExtractedReference as E, type GlobalConfig as G, type LoadedConfig as L, type MetaCollection as M, type PostprocessOptions as P, type ServerContext as S, type CollectionSchema as a, type DocCollection as b, type DocsCollection as c, defineCollections as d, defineDocs as e, defineConfig as f, getDefaultMDXOptions as g, frontmatterSchema as h, type Plugin as i, buildConfig as j, type EmitEntry as k, type PluginContext as l, metaSchema as m, type PluginOption as n, type EmitOptions as o, findConfigFile as p, createCore as q, type Core as r };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
2
2
|
import { TOCItemType } from 'fumadocs-core/toc';
|
|
3
3
|
import { MDXContent } from 'mdx/types';
|
|
4
|
-
import { E as ExtractedReference } from './core-
|
|
5
|
-
export { r as Core,
|
|
4
|
+
import { E as ExtractedReference } from './core-DB7TdlyC.cjs';
|
|
5
|
+
export { r as Core, C as CoreOptions, k as EmitEntry, o as EmitOptions, i as Plugin, l as PluginContext, n as PluginOption, S as ServerContext, q as createCore, p as findConfigFile } from './core-DB7TdlyC.cjs';
|
|
6
6
|
import { Root } from 'mdast';
|
|
7
|
-
import { C as CompiledMDXProperties } from './build-mdx-
|
|
7
|
+
import { C as CompiledMDXProperties } from './build-mdx-BjXOmv0b.cjs';
|
|
8
8
|
import '@mdx-js/mdx';
|
|
9
9
|
import '@standard-schema/spec';
|
|
10
10
|
import 'unified';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
2
2
|
import { TOCItemType } from 'fumadocs-core/toc';
|
|
3
3
|
import { MDXContent } from 'mdx/types';
|
|
4
|
-
import { E as ExtractedReference } from './core-
|
|
5
|
-
export { r as Core,
|
|
4
|
+
import { E as ExtractedReference } from './core-DB7TdlyC.js';
|
|
5
|
+
export { r as Core, C as CoreOptions, k as EmitEntry, o as EmitOptions, i as Plugin, l as PluginContext, n as PluginOption, S as ServerContext, q as createCore, p as findConfigFile } from './core-DB7TdlyC.js';
|
|
6
6
|
import { Root } from 'mdast';
|
|
7
|
-
import { C as CompiledMDXProperties } from './build-mdx-
|
|
7
|
+
import { C as CompiledMDXProperties } from './build-mdx-CY5UldCO.js';
|
|
8
8
|
import '@mdx-js/mdx';
|
|
9
9
|
import '@standard-schema/spec';
|
|
10
10
|
import 'unified';
|
package/dist/node/loader.cjs
CHANGED
|
@@ -900,6 +900,7 @@ var import_node_url = require("url");
|
|
|
900
900
|
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
901
901
|
var import_node_querystring = require("querystring");
|
|
902
902
|
var import_node_path4 = __toESM(require("path"), 1);
|
|
903
|
+
var import_node_fs = require("fs");
|
|
903
904
|
function toNode(loader) {
|
|
904
905
|
return async (url, _context, nextLoad) => {
|
|
905
906
|
if (url.startsWith("file:///") && (!loader.test || loader.test.test(url))) {
|
|
@@ -1019,8 +1020,7 @@ function createMetaLoader(configLoader2, resolve3 = {}) {
|
|
|
1019
1020
|
};
|
|
1020
1021
|
},
|
|
1021
1022
|
bun: {
|
|
1022
|
-
|
|
1023
|
-
const source = await getSource();
|
|
1023
|
+
loadSync(source, { filePath }) {
|
|
1024
1024
|
const isJson = filePath.endsWith(".json");
|
|
1025
1025
|
let data;
|
|
1026
1026
|
try {
|
package/dist/node/loader.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "../chunk-2E2JCOSO.js";
|
|
4
4
|
import {
|
|
5
5
|
createMetaLoader
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-DMJ6I4C3.js";
|
|
7
7
|
import {
|
|
8
8
|
createStandaloneConfigLoader,
|
|
9
9
|
toNode
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-5FTSWCB4.js";
|
|
11
11
|
import "../chunk-3J3WL7WN.js";
|
|
12
12
|
import "../chunk-K5ZLPEIQ.js";
|
|
13
13
|
import "../chunk-VUEZTR2H.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RuntimeAsync } from '../../types-
|
|
2
|
-
export { j as buildConfig } from '../../core-
|
|
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,7 +7,7 @@ import 'fumadocs-core/mdx-plugins';
|
|
|
7
7
|
import 'fumadocs-core/toc';
|
|
8
8
|
import 'mdx/types';
|
|
9
9
|
import 'mdast';
|
|
10
|
-
import '../../build-mdx-
|
|
10
|
+
import '../../build-mdx-BjXOmv0b.cjs';
|
|
11
11
|
import '@mdx-js/mdx';
|
|
12
12
|
import 'react';
|
|
13
13
|
import 'unified';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RuntimeAsync } from '../../types-
|
|
2
|
-
export { j as buildConfig } from '../../core-
|
|
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,7 +7,7 @@ import 'fumadocs-core/mdx-plugins';
|
|
|
7
7
|
import 'fumadocs-core/toc';
|
|
8
8
|
import 'mdx/types';
|
|
9
9
|
import 'mdast';
|
|
10
|
-
import '../../build-mdx-
|
|
10
|
+
import '../../build-mdx-CY5UldCO.js';
|
|
11
11
|
import '@mdx-js/mdx';
|
|
12
12
|
import 'react';
|
|
13
13
|
import 'unified';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import { a as Runtime } from '../../types-
|
|
3
|
-
export { c as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, R as RuntimeAsync, b as RuntimeFile } from '../../types-
|
|
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-
|
|
6
|
+
import '../../core-DB7TdlyC.cjs';
|
|
7
7
|
import '@mdx-js/mdx';
|
|
8
8
|
import 'fumadocs-core/mdx-plugins';
|
|
9
9
|
import 'unified';
|
|
@@ -12,7 +12,7 @@ import 'chokidar';
|
|
|
12
12
|
import 'fumadocs-core/toc';
|
|
13
13
|
import 'mdx/types';
|
|
14
14
|
import 'mdast';
|
|
15
|
-
import '../../build-mdx-
|
|
15
|
+
import '../../build-mdx-BjXOmv0b.cjs';
|
|
16
16
|
import 'react';
|
|
17
17
|
|
|
18
18
|
declare const _runtime: Runtime;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PageData, MetaData, Source, VirtualFile } from 'fumadocs-core/source';
|
|
2
|
-
import { a as Runtime } from '../../types-
|
|
3
|
-
export { c as AsyncDocOut, A as AsyncRuntimeFile, D as DocOut, M as MetaOut, R as RuntimeAsync, b as RuntimeFile } from '../../types-
|
|
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-
|
|
6
|
+
import '../../core-DB7TdlyC.js';
|
|
7
7
|
import '@mdx-js/mdx';
|
|
8
8
|
import 'fumadocs-core/mdx-plugins';
|
|
9
9
|
import 'unified';
|
|
@@ -12,7 +12,7 @@ import 'chokidar';
|
|
|
12
12
|
import 'fumadocs-core/toc';
|
|
13
13
|
import 'mdx/types';
|
|
14
14
|
import 'mdast';
|
|
15
|
-
import '../../build-mdx-
|
|
15
|
+
import '../../build-mdx-CY5UldCO.js';
|
|
16
16
|
import 'react';
|
|
17
17
|
|
|
18
18
|
declare const _runtime: Runtime;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
3
|
+
import { C as CompiledMDXProperties } from '../../build-mdx-BjXOmv0b.cjs';
|
|
4
4
|
import { ReactNode, FC } from 'react';
|
|
5
5
|
import '@mdx-js/mdx';
|
|
6
6
|
import 'fumadocs-core/mdx-plugins';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
3
|
+
import { C as CompiledMDXProperties } from '../../build-mdx-CY5UldCO.js';
|
|
4
4
|
import { ReactNode, FC } from 'react';
|
|
5
5
|
import '@mdx-js/mdx';
|
|
6
6
|
import 'fumadocs-core/mdx-plugins';
|
|
@@ -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-
|
|
5
|
+
import '../../core-DB7TdlyC.cjs';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import '@standard-schema/spec';
|
|
8
8
|
import 'fumadocs-core/mdx-plugins';
|
|
9
9
|
import 'unified';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'chokidar';
|
|
12
|
-
import '../../build-mdx-
|
|
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-
|
|
5
|
+
import '../../core-DB7TdlyC.js';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
7
7
|
import '@standard-schema/spec';
|
|
8
8
|
import 'fumadocs-core/mdx-plugins';
|
|
9
9
|
import 'unified';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'chokidar';
|
|
12
|
-
import '../../build-mdx-
|
|
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,
|
|
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 {
|
|
@@ -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,
|
|
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 {
|
package/dist/vite/index.cjs
CHANGED
|
@@ -834,6 +834,7 @@ var import_node_url = require("url");
|
|
|
834
834
|
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
835
835
|
var import_node_querystring = require("querystring");
|
|
836
836
|
var import_node_path3 = __toESM(require("path"), 1);
|
|
837
|
+
var import_node_fs = require("fs");
|
|
837
838
|
function toVite(loader) {
|
|
838
839
|
return {
|
|
839
840
|
filter(id) {
|
|
@@ -1210,8 +1211,7 @@ function createMetaLoader(configLoader, resolve3 = {}) {
|
|
|
1210
1211
|
};
|
|
1211
1212
|
},
|
|
1212
1213
|
bun: {
|
|
1213
|
-
|
|
1214
|
-
const source = await getSource();
|
|
1214
|
+
loadSync(source, { filePath }) {
|
|
1215
1215
|
const isJson = filePath.endsWith(".json");
|
|
1216
1216
|
let data;
|
|
1217
1217
|
try {
|
package/dist/vite/index.js
CHANGED
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "../chunk-2E2JCOSO.js";
|
|
11
11
|
import {
|
|
12
12
|
createMetaLoader
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-DMJ6I4C3.js";
|
|
14
14
|
import {
|
|
15
15
|
createIntegratedConfigLoader,
|
|
16
16
|
toVite
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-5FTSWCB4.js";
|
|
18
18
|
import "../chunk-3J3WL7WN.js";
|
|
19
19
|
import "../chunk-K5ZLPEIQ.js";
|
|
20
20
|
import "../chunk-VUEZTR2H.js";
|
package/dist/webpack/mdx.cjs
CHANGED
|
@@ -830,6 +830,7 @@ var import_node_url = require("url");
|
|
|
830
830
|
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
831
831
|
var import_node_querystring = require("querystring");
|
|
832
832
|
var import_node_path3 = __toESM(require("path"), 1);
|
|
833
|
+
var import_node_fs = require("fs");
|
|
833
834
|
function toWebpack(loader2) {
|
|
834
835
|
return async function(source, callback) {
|
|
835
836
|
try {
|
package/dist/webpack/mdx.js
CHANGED
package/dist/webpack/meta.cjs
CHANGED
|
@@ -317,6 +317,7 @@ async function validate(schema, data, context, errorMessage) {
|
|
|
317
317
|
|
|
318
318
|
// src/loaders/adapter.ts
|
|
319
319
|
var import_node_path = __toESM(require("path"), 1);
|
|
320
|
+
var import_node_fs = require("fs");
|
|
320
321
|
function toWebpack(loader2) {
|
|
321
322
|
return async function(source, callback) {
|
|
322
323
|
try {
|
|
@@ -507,8 +508,7 @@ function createMetaLoader(configLoader, resolve2 = {}) {
|
|
|
507
508
|
};
|
|
508
509
|
},
|
|
509
510
|
bun: {
|
|
510
|
-
|
|
511
|
-
const source = await getSource();
|
|
511
|
+
loadSync(source, { filePath }) {
|
|
512
512
|
const isJson = filePath.endsWith(".json");
|
|
513
513
|
let data;
|
|
514
514
|
try {
|
package/dist/webpack/meta.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMetaLoader
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-DMJ6I4C3.js";
|
|
4
4
|
import {
|
|
5
5
|
createStandaloneConfigLoader,
|
|
6
6
|
toWebpack
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-5FTSWCB4.js";
|
|
8
8
|
import {
|
|
9
9
|
createCore
|
|
10
10
|
} from "../chunk-2AQRQXSO.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.8",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"webpack": "^5.102.1",
|
|
117
117
|
"@fumadocs/mdx-remote": "1.4.3",
|
|
118
118
|
"eslint-config-custom": "0.0.0",
|
|
119
|
-
"fumadocs-core": "16.0.
|
|
119
|
+
"fumadocs-core": "16.0.11",
|
|
120
120
|
"tsconfig": "0.0.0"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|