fumadocs-mdx 15.6.0 → 15.6.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/bun/index.d.ts +1 -1
- package/dist/bun/index.js +2 -2
- package/dist/config/index.d.ts +1 -1
- package/dist/{core-CrKTFOR5.d.ts → core-ikvOVBe5.d.ts} +11 -10
- package/dist/{index-file-BwHGQnO1.js → index-file-BZgXUjEx.js} +1 -1
- package/dist/{index-Cwcc8D9G.d.ts → index-tRoEcGRV.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/macro/index.d.ts +1 -1
- package/dist/macro/index.js +1 -1
- package/dist/{mdx-onCcdgWo.js → mdx-Bn5bb2TQ.js} +1 -1
- package/dist/{meta-CmTae89C.js → meta-DRB7wcYE.js} +6 -6
- package/dist/next/index.d.ts +1 -1
- package/dist/next/index.js +5 -5
- package/dist/node/_loader.js +2 -2
- package/dist/node/index.d.ts +1 -1
- package/dist/node/loader.js +2 -2
- package/dist/plugins/index-file.d.ts +1 -1
- package/dist/plugins/index-file.js +1 -1
- package/dist/plugins/json-schema.d.ts +1 -1
- package/dist/plugins/last-modified.d.ts +1 -1
- package/dist/rolldown/index.d.ts +1 -1
- package/dist/rolldown/index.js +2 -2
- package/dist/runtime/browser.d.ts +2 -2
- package/dist/runtime/dynamic.d.ts +1 -1
- package/dist/runtime/server.d.ts +1 -1
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +3 -3
- package/dist/webpack/macro.d.ts +1 -1
- package/dist/webpack/mdx.d.ts +1 -1
- package/dist/webpack/mdx.js +1 -1
- package/dist/webpack/meta.d.ts +1 -1
- package/dist/webpack/meta.js +1 -1
- package/package.json +5 -5
package/dist/bun/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as CoreOptions } from "../core-
|
|
1
|
+
import { r as CoreOptions } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { n as ResolvedMacroOptions, t as MacroPluginOption } from "../options-BCId5Url.js";
|
|
3
3
|
import { BunPlugin } from "bun";
|
|
4
4
|
export interface MdxPluginOptions extends Pick<CoreOptions, 'configPath' | 'outDir' | 'plugins'> {
|
package/dist/bun/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-Bn5bb2TQ.js";
|
|
2
2
|
import { r as buildConfig } from "../build-TiTOkhq4.js";
|
|
3
3
|
import { t as createCore } from "../core-CJjfu3ju.js";
|
|
4
4
|
import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-DUcfPohH.js";
|
|
5
|
-
import { t as createMetaLoader } from "../meta-
|
|
5
|
+
import { t as createMetaLoader } from "../meta-DRB7wcYE.js";
|
|
6
6
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-3R0gLmlP.js";
|
|
7
7
|
import { r as resolveMacroOptions } from "../options-B2o-zV4A.js";
|
|
8
8
|
import { r as slash } from "../codegen-BAuFQ5Ew.js";
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as DocsCollection, D as defineCollections, E as SatteriPresetOptions, F as DefaultMDXOptions, I as MDXPresetOptions, L as applyMdxPreset, O as defineConfig, P as PostprocessOptions, S as DocCollectionSatteri, T as MetaCollection, _ as BaseCollection, b as DocCollectionBase, g as AnyCollection, k as defineDocs, v as CollectionSchema, w as GlobalConfig, x as DocCollectionMdx, y as DocCollection } from "../core-
|
|
1
|
+
import { C as DocsCollection, D as defineCollections, E as SatteriPresetOptions, F as DefaultMDXOptions, I as MDXPresetOptions, L as applyMdxPreset, O as defineConfig, P as PostprocessOptions, S as DocCollectionSatteri, T as MetaCollection, _ as BaseCollection, b as DocCollectionBase, g as AnyCollection, k as defineDocs, v as CollectionSchema, w as GlobalConfig, x as DocCollectionMdx, y as DocCollection } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { remarkInclude } from "fumadocs-core/mdx-plugins/remark-include";
|
|
3
3
|
/** @deprecated import `pageSchema` from `fumadocs-core/source/schema` instead (since 16.2.3) */
|
|
4
4
|
export declare const frontmatterSchema: import("zod").ZodObject<{
|
|
@@ -100,8 +100,15 @@ declare module 'satteri' {
|
|
|
100
100
|
}[];
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
type SatteriOptionsInput = SatteriPresetOptions | ((environment: BuildEnvironment) => SatteriPresetOptions | Promise<SatteriPresetOptions>) | undefined;
|
|
103
|
+
type SatteriOptionsInput = SatteriPresetOptions$1 | ((environment: BuildEnvironment) => SatteriPresetOptions$1 | Promise<SatteriPresetOptions$1>) | undefined;
|
|
104
104
|
type CollectionSchema<Schema extends StandardSchemaV1, Context> = Schema | ((ctx: Context) => Schema);
|
|
105
|
+
/** the file that a collection schema validates */
|
|
106
|
+
interface SchemaContext {
|
|
107
|
+
/** absolute path of the file */
|
|
108
|
+
path: string;
|
|
109
|
+
/** content of the file */
|
|
110
|
+
source: string;
|
|
111
|
+
}
|
|
105
112
|
type AnyCollection = DocsCollection | DocCollection | MetaCollection;
|
|
106
113
|
interface BaseCollection {
|
|
107
114
|
dir: string;
|
|
@@ -109,19 +116,13 @@ interface BaseCollection {
|
|
|
109
116
|
}
|
|
110
117
|
interface MetaCollection<Schema extends StandardSchemaV1 = StandardSchemaV1> extends BaseCollection {
|
|
111
118
|
type: 'meta';
|
|
112
|
-
schema?: CollectionSchema<Schema,
|
|
113
|
-
path: string;
|
|
114
|
-
source: string;
|
|
115
|
-
}>;
|
|
119
|
+
schema?: CollectionSchema<Schema, SchemaContext>;
|
|
116
120
|
}
|
|
117
121
|
interface DocCollectionBase<Schema extends StandardSchemaV1 = StandardSchemaV1> extends BaseCollection {
|
|
118
122
|
postprocess?: Partial<PostprocessOptions>;
|
|
119
123
|
async?: boolean;
|
|
120
124
|
dynamic?: boolean;
|
|
121
|
-
schema?: CollectionSchema<Schema,
|
|
122
|
-
path: string;
|
|
123
|
-
source: string;
|
|
124
|
-
}>;
|
|
125
|
+
schema?: CollectionSchema<Schema, SchemaContext>;
|
|
125
126
|
/**
|
|
126
127
|
* Expose the last modified date of each document.
|
|
127
128
|
*
|
|
@@ -485,4 +486,4 @@ declare function createCore(options: CoreOptions): {
|
|
|
485
486
|
transformVFile(options: TransformOptions<DocCollectionItem>, file: VFile): Promise<VFile>;
|
|
486
487
|
};
|
|
487
488
|
type Core = ReturnType<typeof createCore>;
|
|
488
|
-
export { SatteriOptionsInput as A, DocsCollection as C, defineCollections as D, SatteriPresetOptions
|
|
489
|
+
export { SatteriOptionsInput as A, DocsCollection as C, defineCollections as D, SatteriPresetOptions as E, DefaultMDXOptions as F, MDXPresetOptions as I, applyMdxPreset as L, LastModifiedFn as M, ExtractedReference as N, defineConfig as O, PostprocessOptions as P, DocCollectionSatteri as S, MetaCollection as T, BaseCollection as _, EmitOptions as a, DocCollectionBase as b, PluginContext as c, TransformOptions as d, IndexFilePlugin as f, AnyCollection as g, BuildEnvironment as h, EmitEntry as i, CompiledMDXProperties as j, defineDocs as k, PluginOption as l, indexFile as m, Core as n, EmitOutput as o, IndexFilePluginOptions as p, CoreOptions as r, Plugin as s, CompilationContext as t, ServerContext as u, CollectionSchema as v, GlobalConfig as w, DocCollectionMdx as x, DocCollection as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ident, r as slash, t as createCodegen } from "./codegen-BAuFQ5Ew.js";
|
|
2
2
|
import { n as resolveFrontmatter, t as frontmatterCode } from "./code-BWwFhg-7.js";
|
|
3
|
-
import { n as readStaticParams } from "./meta-
|
|
3
|
+
import { n as readStaticParams } from "./meta-DRB7wcYE.js";
|
|
4
4
|
import { frontmatter } from "fumadocs-core/content/md/frontmatter";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { N as ExtractedReference, a as EmitOptions, c as PluginContext, d as TransformOptions, i as EmitEntry, j as CompiledMDXProperties, l as PluginOption, n as Core, o as EmitOutput, r as CoreOptions, s as Plugin, t as CompilationContext, u as ServerContext } from "./core-
|
|
1
|
+
import { N as ExtractedReference, a as EmitOptions, c as PluginContext, d as TransformOptions, i as EmitEntry, j as CompiledMDXProperties, l as PluginOption, n as Core, o as EmitOutput, r as CoreOptions, s as Plugin, t as CompilationContext, u as ServerContext } from "./core-ikvOVBe5.js";
|
|
2
2
|
export type { CompilationContext, CompiledMDXProperties, Core, CoreOptions, EmitEntry, EmitOptions, EmitOutput, ExtractedReference, Plugin, PluginContext, PluginOption, ServerContext, TransformOptions };
|
package/dist/macro/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SatteriOptionsInput, N as ExtractedReference, P as PostprocessOptions, h as BuildEnvironment, v as CollectionSchema } from "../core-
|
|
1
|
+
import { A as SatteriOptionsInput, N as ExtractedReference, P as PostprocessOptions, h as BuildEnvironment, v as CollectionSchema } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { MacroAsyncDocCollection, MacroAsyncDocsCollection, MacroDocCollection, MacroDocsCollection, MacroMetaCollection } from "../runtime/macro.js";
|
|
3
3
|
import { MetaData, PageData } from "fumadocs-core/source";
|
|
4
4
|
import { metaSchema, pageSchema } from "fumadocs-core/source/schema";
|
package/dist/macro/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/macro/index.ts
|
|
2
2
|
function macroError() {
|
|
3
|
-
return /* @__PURE__ */ new Error("[MDX] this macro was not compiled by the bundler plugin of `fumadocs-mdx`.
|
|
3
|
+
return /* @__PURE__ */ new Error("[MDX] this macro was not compiled by the bundler plugin of `fumadocs-mdx`. Outside the bundler, like in a script or a test, run it with the Bun or Node loader of `fumadocs-mdx`: https://fumadocs.dev/docs/mdx/loader. In the bundler, set the `include` option on your bundler plugin, and make sure this module matches its patterns.");
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Define a docs collection (doc + meta), compiled by the bundler plugin.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as slash } from "./codegen-BAuFQ5Ew.js";
|
|
2
2
|
import { n as resolveFrontmatter, t as frontmatterCode } from "./code-BWwFhg-7.js";
|
|
3
|
-
import { n as readStaticParams } from "./meta-
|
|
3
|
+
import { n as readStaticParams } from "./meta-DRB7wcYE.js";
|
|
4
4
|
import { frontmatter } from "fumadocs-core/content/md/frontmatter";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
@@ -4,7 +4,7 @@ import { readFileSync } from "node:fs";
|
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { getStaticParams } from "fumadocs-core/source";
|
|
7
|
-
import { parse } from "yaml";
|
|
7
|
+
import { parse as parse$1 } from "yaml";
|
|
8
8
|
// src/loaders/meta.ts
|
|
9
9
|
const querySchema = z.looseObject({
|
|
10
10
|
collection: z.string().optional(),
|
|
@@ -12,11 +12,11 @@ const querySchema = z.looseObject({
|
|
|
12
12
|
macro_id: z.string().optional()
|
|
13
13
|
});
|
|
14
14
|
/** the data of a meta file, see {@link metaModule} for modules like `meta.ts` */
|
|
15
|
-
function parse
|
|
15
|
+
function parse(filePath, source, addDependency) {
|
|
16
16
|
if (/\.[jt]s$/.test(filePath)) return metaModule(runModule(filePath, source, addDependency));
|
|
17
17
|
try {
|
|
18
18
|
if (filePath.endsWith(".json")) return { data: JSON.parse(source) };
|
|
19
|
-
if (filePath.endsWith(".yaml")) return { data: parse(source) };
|
|
19
|
+
if (filePath.endsWith(".yaml")) return { data: parse$1(source) };
|
|
20
20
|
} catch (e) {
|
|
21
21
|
throw new Error(`invalid data in ${filePath}`, { cause: e });
|
|
22
22
|
}
|
|
@@ -39,7 +39,7 @@ function readStaticParams(dir, file, addDependency) {
|
|
|
39
39
|
if (error.code === "ENOENT") continue;
|
|
40
40
|
throw error;
|
|
41
41
|
}
|
|
42
|
-
return parse
|
|
42
|
+
return parse(metaFile, content, addDependency).data?.staticParams;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
@@ -72,7 +72,7 @@ function createMetaLoader({ getCore }, resolve = {}) {
|
|
|
72
72
|
case "docs": metaCollection = collection.meta;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
const { data, dataAt } = parse
|
|
75
|
+
const { data, dataAt } = parse(filePath, source, compiler.addDependency);
|
|
76
76
|
if (!metaCollection) return data;
|
|
77
77
|
const options = {
|
|
78
78
|
collection: metaCollection,
|
|
@@ -111,7 +111,7 @@ function createMetaLoader({ getCore }, resolve = {}) {
|
|
|
111
111
|
const result = onMeta(source, input);
|
|
112
112
|
if (result === null) return {
|
|
113
113
|
loader: "object",
|
|
114
|
-
exports: parse
|
|
114
|
+
exports: parse(input.filePath, source, () => void 0).data
|
|
115
115
|
};
|
|
116
116
|
return result().then((data) => ({
|
|
117
117
|
loader: "object",
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as IndexFilePluginOptions, r as CoreOptions } from "../core-
|
|
1
|
+
import { p as IndexFilePluginOptions, r as CoreOptions } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { t as MacroPluginOption } from "../options-BCId5Url.js";
|
|
3
3
|
import { NextConfig } from "next";
|
|
4
4
|
export interface CreateMDXOptions extends Pick<CoreOptions, 'configPath' | 'outDir'> {
|
package/dist/next/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as loadConfig } from "../load-from-file-gZlf7m88.js";
|
|
2
2
|
import { t as createCore } from "../core-CJjfu3ju.js";
|
|
3
3
|
import { i as metaLoaderQueryGlob, n as metaLoaderFileGlob, t as mdxLoaderGlob } from "../loaders-3R0gLmlP.js";
|
|
4
|
-
import { t as indexFile } from "../index-file-
|
|
4
|
+
import { t as indexFile } from "../index-file-BZgXUjEx.js";
|
|
5
5
|
import { n as createMacroMatcher, r as resolveMacroOptions } from "../options-B2o-zV4A.js";
|
|
6
|
-
import * as path
|
|
6
|
+
import * as path from "node:path";
|
|
7
7
|
// src/next/index.ts
|
|
8
8
|
const defaultPageExtensions = [
|
|
9
9
|
"mdx",
|
|
@@ -42,7 +42,7 @@ function createMDX(options = {}) {
|
|
|
42
42
|
rules: {
|
|
43
43
|
...nextConfig.turbopack?.rules,
|
|
44
44
|
...macro ? Object.fromEntries(macro.include.map((pattern) => [pattern, {
|
|
45
|
-
condition: { content: /['"]fumadocs-mdx\/macro['"]/ },
|
|
45
|
+
condition: { all: [{ not: "foreign" }, { content: /['"]fumadocs-mdx\/macro['"]/ }] },
|
|
46
46
|
loaders: [{
|
|
47
47
|
loader: "fumadocs-mdx/webpack/macro",
|
|
48
48
|
options: turbopackLoaderOptions
|
|
@@ -93,7 +93,7 @@ function createMDX(options = {}) {
|
|
|
93
93
|
if (macro) {
|
|
94
94
|
const matcher = createMacroMatcher(macro);
|
|
95
95
|
config.module.rules.push({
|
|
96
|
-
test: (resource) => matcher(path
|
|
96
|
+
test: (resource) => matcher(path.relative(process.cwd(), resource)),
|
|
97
97
|
enforce: "pre",
|
|
98
98
|
use: [{
|
|
99
99
|
loader: "fumadocs-mdx/webpack/macro",
|
|
@@ -154,7 +154,7 @@ function init(dev, core) {
|
|
|
154
154
|
console.log("[MDX] started dev server");
|
|
155
155
|
});
|
|
156
156
|
watcher.on("all", async (_event, file) => {
|
|
157
|
-
if (path
|
|
157
|
+
if (path.resolve(file) === core.configPath) {
|
|
158
158
|
watcher.removeAllListeners();
|
|
159
159
|
await watcher.close();
|
|
160
160
|
await initOrReload();
|
package/dist/node/_loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createCore } from "../core-CJjfu3ju.js";
|
|
2
2
|
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-DUcfPohH.js";
|
|
3
|
-
import { t as createMdxLoader } from "../mdx-
|
|
4
|
-
import { t as createMetaLoader } from "../meta-
|
|
3
|
+
import { t as createMdxLoader } from "../mdx-Bn5bb2TQ.js";
|
|
4
|
+
import { t as createMetaLoader } from "../meta-DRB7wcYE.js";
|
|
5
5
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-3R0gLmlP.js";
|
|
6
6
|
import { n as createNodeEvaluator, t as MacroCollector } from "../eval-DAaN7Bq9.js";
|
|
7
7
|
import { n as createMacroMatcher, r as resolveMacroOptions } from "../options-B2o-zV4A.js";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as CoreOptions } from "../core-
|
|
1
|
+
import { r as CoreOptions } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { t as MacroPluginOption } from "../options-BCId5Url.js";
|
|
3
3
|
export interface NodeLoaderOptions extends Pick<CoreOptions, 'configPath' | 'outDir' | 'plugins'> {
|
|
4
4
|
/**
|
package/dist/node/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createCore } from "../core-CJjfu3ju.js";
|
|
2
|
-
import { t as createMdxLoader } from "../mdx-
|
|
2
|
+
import { t as createMdxLoader } from "../mdx-Bn5bb2TQ.js";
|
|
3
3
|
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-DUcfPohH.js";
|
|
4
|
-
import { t as createMetaLoader } from "../meta-
|
|
4
|
+
import { t as createMetaLoader } from "../meta-DRB7wcYE.js";
|
|
5
5
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-3R0gLmlP.js";
|
|
6
6
|
// src/node/loader.ts
|
|
7
7
|
const core = createCore({ environment: "node" });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { f as IndexFilePlugin, m as indexFile, p as IndexFilePluginOptions } from "../core-
|
|
1
|
+
import { f as IndexFilePlugin, m as indexFile, p as IndexFilePluginOptions } from "../core-ikvOVBe5.js";
|
|
2
2
|
export { IndexFilePlugin, IndexFilePluginOptions, indexFile as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../index-file-
|
|
1
|
+
export { t as default } from "../index-file-BZgXUjEx.js";
|
package/dist/rolldown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as CoreOptions } from "../core-
|
|
1
|
+
import { r as CoreOptions } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { t as MacroPluginOption } from "../options-BCId5Url.js";
|
|
3
3
|
import { RolldownPlugin } from "rolldown";
|
|
4
4
|
export interface PluginOptions extends Pick<CoreOptions, 'configPath' | 'outDir' | 'plugins'> {
|
package/dist/rolldown/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { r as buildConfig } from "../build-TiTOkhq4.js";
|
|
|
2
2
|
import { t as createCore } from "../core-CJjfu3ju.js";
|
|
3
3
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-3R0gLmlP.js";
|
|
4
4
|
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-DUcfPohH.js";
|
|
5
|
-
import { t as createMdxLoader } from "../mdx-
|
|
6
|
-
import { t as createMetaLoader } from "../meta-
|
|
5
|
+
import { t as createMdxLoader } from "../mdx-Bn5bb2TQ.js";
|
|
6
|
+
import { t as createMetaLoader } from "../meta-DRB7wcYE.js";
|
|
7
7
|
import { n as createNodeEvaluator, t as MacroCollector } from "../eval-DAaN7Bq9.js";
|
|
8
8
|
import { r as resolveMacroOptions, t as MacroModuleId } from "../options-B2o-zV4A.js";
|
|
9
9
|
import { r as slash } from "../codegen-BAuFQ5Ew.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as DocsCollection, N as ExtractedReference, j as CompiledMDXProperties, y as DocCollection } from "../core-
|
|
1
|
+
import { C as DocsCollection, N as ExtractedReference, j as CompiledMDXProperties, y as DocCollection } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { a as InternalTypeConfig } from "../types-DfxNhkVk.js";
|
|
3
3
|
import { FC, ReactNode } from "react";
|
|
4
4
|
import { Params } from "fumadocs-core/source";
|
|
@@ -13,7 +13,7 @@ interface PageOutputs {
|
|
|
13
13
|
extractedReferences?: ExtractedReference[];
|
|
14
14
|
}
|
|
15
15
|
/** the exports of a compiled page for its props, with its outputs for them */
|
|
16
|
-
type PageAt<Page extends CompiledMDXProperties<unknown>> =
|
|
16
|
+
type PageAt<Page extends CompiledMDXProperties<unknown>> = { [K in keyof Page as Exclude<K, keyof PageOutputs>]: Page[K]; } & PageOutputs;
|
|
17
17
|
type CompiledMDXFile<Name extends string, Frontmatter, TC extends InternalTypeConfig> = CompiledMDXProperties<Frontmatter> & TC['DocData'][Name] & Record<string, unknown>;
|
|
18
18
|
export interface ClientLoaderOptions<Doc, Props> {
|
|
19
19
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../config/index.js";
|
|
2
2
|
import { AsyncDocCollectionEntry, AsyncDocsCollectionEntry } from "./server.js";
|
|
3
|
-
import { C as DocsCollection, r as CoreOptions, y as DocCollection } from "../core-
|
|
3
|
+
import { C as DocsCollection, r as CoreOptions, y as DocCollection } from "../core-ikvOVBe5.js";
|
|
4
4
|
import { a as InternalTypeConfig, r as FileInfo } from "../types-DfxNhkVk.js";
|
|
5
5
|
export interface LazyEntry<Data = unknown> {
|
|
6
6
|
info: FileInfo;
|
package/dist/runtime/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as DocsCollection, T as MetaCollection, y as DocCollection } from "../core-
|
|
1
|
+
import { C as DocsCollection, T as MetaCollection, y as DocCollection } from "../core-ikvOVBe5.js";
|
|
2
2
|
import "../config/index.js";
|
|
3
3
|
import { a as InternalTypeConfig, n as DocMethods, o as MetaMethods, t as DocData } from "../types-DfxNhkVk.js";
|
|
4
4
|
import { MetaData, PageData, Params, Source } from "fumadocs-core/source";
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as IndexFilePluginOptions, r as CoreOptions, w as GlobalConfig } from "../core-
|
|
1
|
+
import { p as IndexFilePluginOptions, r as CoreOptions, w as GlobalConfig } from "../core-ikvOVBe5.js";
|
|
2
2
|
import { t as MacroPluginOption } from "../options-BCId5Url.js";
|
|
3
3
|
import "../config/index.js";
|
|
4
4
|
import { Plugin } from "vite";
|
package/dist/vite/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as buildConfig } from "../build-TiTOkhq4.js";
|
|
2
|
-
import { t as createMdxLoader } from "../mdx-
|
|
2
|
+
import { t as createMdxLoader } from "../mdx-Bn5bb2TQ.js";
|
|
3
3
|
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-DUcfPohH.js";
|
|
4
4
|
import { t as createCore } from "../core-CJjfu3ju.js";
|
|
5
|
-
import { t as createMetaLoader } from "../meta-
|
|
6
|
-
import { t as indexFile } from "../index-file-
|
|
5
|
+
import { t as createMetaLoader } from "../meta-DRB7wcYE.js";
|
|
6
|
+
import { t as indexFile } from "../index-file-BZgXUjEx.js";
|
|
7
7
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-3R0gLmlP.js";
|
|
8
8
|
import { r as resolveMacroOptions, t as MacroModuleId } from "../options-B2o-zV4A.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
package/dist/webpack/macro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as WebpackLoaderOptions } from "../index-
|
|
1
|
+
import { t as WebpackLoaderOptions } from "../index-tRoEcGRV.js";
|
|
2
2
|
import { LoaderDefinitionFunction } from "webpack";
|
|
3
3
|
/**
|
|
4
4
|
* Expand macro calls (`fumadocs-mdx/macro`) into static imports of content files.
|
package/dist/webpack/mdx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as WebpackLoaderOptions } from "../index-
|
|
1
|
+
import { t as WebpackLoaderOptions } from "../index-tRoEcGRV.js";
|
|
2
2
|
import { LoaderDefinitionFunction } from "webpack";
|
|
3
3
|
declare const loader: LoaderDefinitionFunction<WebpackLoaderOptions>;
|
|
4
4
|
export { loader as default };
|
package/dist/webpack/mdx.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-Bn5bb2TQ.js";
|
|
2
2
|
import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-DUcfPohH.js";
|
|
3
3
|
import { t as getCore } from "../webpack-BoqJZRKf.js";
|
|
4
4
|
// src/webpack/mdx.ts
|
package/dist/webpack/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as WebpackLoaderOptions } from "../index-
|
|
1
|
+
import { t as WebpackLoaderOptions } from "../index-tRoEcGRV.js";
|
|
2
2
|
import { LoaderDefinitionFunction } from "webpack";
|
|
3
3
|
declare const loader: LoaderDefinitionFunction<WebpackLoaderOptions>;
|
|
4
4
|
export { loader as default };
|
package/dist/webpack/meta.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-DUcfPohH.js";
|
|
2
|
-
import { t as createMetaLoader } from "../meta-
|
|
2
|
+
import { t as createMetaLoader } from "../meta-DRB7wcYE.js";
|
|
3
3
|
import { t as getCore } from "../webpack-BoqJZRKf.js";
|
|
4
4
|
// src/webpack/meta.ts
|
|
5
5
|
const instances = /* @__PURE__ */ new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "15.6.
|
|
3
|
+
"version": "15.6.2",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -88,18 +88,18 @@
|
|
|
88
88
|
"@types/picomatch": "^4.0.3",
|
|
89
89
|
"@types/react": "^19.3.0",
|
|
90
90
|
"@vitejs/plugin-rsc": "^0.5.39",
|
|
91
|
-
"fumadocs-core": "16.19.
|
|
91
|
+
"fumadocs-core": "16.19.1",
|
|
92
92
|
"mdast-util-directive": "^3.2.0",
|
|
93
|
-
"next": "^16.4.
|
|
93
|
+
"next": "^16.4.6",
|
|
94
94
|
"react": "^19.3.1",
|
|
95
95
|
"remark": "^15.0.1",
|
|
96
96
|
"remark-directive": "^4.0.0",
|
|
97
97
|
"remark-mdx": "^3.1.1",
|
|
98
|
-
"rolldown": "~1.
|
|
98
|
+
"rolldown": "~1.3.1",
|
|
99
99
|
"satteri": "^0.11.7",
|
|
100
100
|
"tsconfig": "0.0.0",
|
|
101
101
|
"tsdown": "0.23.7",
|
|
102
|
-
"vite": "^8.3.
|
|
102
|
+
"vite": "^8.3.8",
|
|
103
103
|
"webpack": "^5.112.2"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|