fumadocs-mdx 14.0.1 → 14.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/{build-mdx-6UAK5FF5.js → build-mdx-W3233QBZ.js} +1 -1
- package/dist/bun/index.d.ts +1 -1
- package/dist/bun/index.js +5 -5
- package/dist/{chunk-ZY6UZ7NH.js → chunk-6RPNS75C.js} +1 -1
- package/dist/{chunk-7UKSZSPY.js → chunk-ED3ON275.js} +3 -4
- package/dist/{chunk-BEBCWQC7.js → chunk-GB4W3YCZ.js} +1 -1
- package/dist/{chunk-SLY7WXTX.js → chunk-KOPLIEVQ.js} +5 -6
- package/dist/{chunk-MTTISKQJ.js → chunk-LPX7ZO66.js} +1 -1
- package/dist/{chunk-K6HCOGOX.js → chunk-OLL7FM7W.js} +2 -2
- package/dist/{chunk-IQGEFL2B.js → chunk-Q5OSGLJL.js} +1 -1
- package/dist/{chunk-E5DJTSIM.js → chunk-S7KOJHHO.js} +4 -1
- package/dist/{chunk-6NISOLQ6.js → chunk-USWQVJWR.js} +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +1 -1
- package/dist/{core-B9ZoS6sA.d.ts → core-C3QZSdEx.d.ts} +1 -1
- package/dist/{index-CNOvhtOn.d.ts → index-RVIZxMZG.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/load-from-file-OZ5N7DXU.js +8 -0
- package/dist/next/index.cjs +8 -6
- package/dist/next/index.d.ts +1 -1
- package/dist/next/index.js +5 -5
- package/dist/node/loader.js +3 -3
- 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 +5 -2
- package/dist/plugins/last-modified.js +10 -3
- package/dist/runtime/browser.d.ts +1 -1
- package/dist/runtime/dynamic.d.ts +1 -1
- package/dist/runtime/dynamic.js +4 -4
- package/dist/runtime/server.d.ts +1 -1
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +7 -7
- package/dist/webpack/mdx.d.ts +2 -2
- package/dist/webpack/mdx.js +4 -4
- package/dist/webpack/meta.d.ts +2 -2
- package/dist/webpack/meta.js +3 -3
- package/package.json +4 -6
- package/dist/bin.cjs +0 -1958
- package/dist/bin.d.cts +0 -1
- package/dist/bun/index.cjs +0 -1147
- package/dist/bun/index.d.cts +0 -25
- package/dist/config/index.cjs +0 -400
- package/dist/config/index.d.cts +0 -18
- package/dist/core-DTuP23zu.d.cts +0 -341
- package/dist/index-BD8Woo4m.d.cts +0 -8
- package/dist/index.cjs +0 -18
- package/dist/index.d.cts +0 -61
- package/dist/load-from-file-5HUQN36V.js +0 -8
- package/dist/next/index.d.cts +0 -33
- package/dist/node/loader.cjs +0 -1200
- package/dist/node/loader.d.cts +0 -5
- package/dist/plugins/index-file.cjs +0 -495
- package/dist/plugins/index-file.d.cts +0 -14
- package/dist/plugins/json-schema.cjs +0 -114
- package/dist/plugins/json-schema.d.cts +0 -31
- package/dist/plugins/last-modified.cjs +0 -110
- package/dist/plugins/last-modified.d.cts +0 -37
- package/dist/runtime/browser.cjs +0 -93
- package/dist/runtime/browser.d.cts +0 -53
- package/dist/runtime/dynamic.cjs +0 -1023
- package/dist/runtime/dynamic.d.cts +0 -27
- package/dist/runtime/server.cjs +0 -176
- package/dist/runtime/server.d.cts +0 -14
- package/dist/runtime/types.cjs +0 -18
- package/dist/runtime/types.d.cts +0 -61
- package/dist/vite/index.cjs +0 -1687
- package/dist/vite/index.d.cts +0 -44
- package/dist/webpack/mdx.cjs +0 -1124
- package/dist/webpack/mdx.d.cts +0 -20
- package/dist/webpack/meta.cjs +0 -684
- package/dist/webpack/meta.d.cts +0 -20
package/dist/vite/index.d.cts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
import { I as IndexFilePluginOptions } from '../core-DTuP23zu.cjs';
|
|
3
|
-
import '@mdx-js/mdx';
|
|
4
|
-
import '@standard-schema/spec';
|
|
5
|
-
import 'unified';
|
|
6
|
-
import 'fumadocs-core/mdx-plugins';
|
|
7
|
-
import 'zod';
|
|
8
|
-
import 'chokidar';
|
|
9
|
-
import 'vfile';
|
|
10
|
-
import 'fumadocs-core/source';
|
|
11
|
-
import '../runtime/types.cjs';
|
|
12
|
-
import 'fumadocs-core/mdx-plugins/remark-structure';
|
|
13
|
-
import 'fumadocs-core/toc';
|
|
14
|
-
import 'mdast';
|
|
15
|
-
import 'mdx/types';
|
|
16
|
-
|
|
17
|
-
interface PluginOptions {
|
|
18
|
-
/**
|
|
19
|
-
* Generate index files for accessing content.
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue true
|
|
22
|
-
*/
|
|
23
|
-
index?: boolean | IndexFilePluginOptions;
|
|
24
|
-
/**
|
|
25
|
-
* @defaultValue source.config.ts
|
|
26
|
-
*/
|
|
27
|
-
configPath?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Update Vite config to fix module resolution of Fumadocs
|
|
30
|
-
*
|
|
31
|
-
* @defaultValue true
|
|
32
|
-
*/
|
|
33
|
-
updateViteConfig?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Output directory of generated files
|
|
36
|
-
*
|
|
37
|
-
* @defaultValue '.source'
|
|
38
|
-
*/
|
|
39
|
-
outDir?: string;
|
|
40
|
-
}
|
|
41
|
-
declare function mdx(config: Record<string, unknown>, pluginOptions?: PluginOptions): Promise<Plugin>;
|
|
42
|
-
declare function postInstall(pluginOptions?: PluginOptions): Promise<void>;
|
|
43
|
-
|
|
44
|
-
export { type PluginOptions, mdx as default, postInstall };
|