fuma-content 1.0.1 → 1.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/async-cache-BM9Yf4Nw.js +29 -0
- package/dist/async-cache-BM9Yf4Nw.js.map +1 -0
- package/dist/bin.d.ts +1 -1
- package/dist/bin.js +21 -14
- package/dist/bin.js.map +1 -0
- package/dist/build-D8A5ByFk.js +42 -0
- package/dist/build-D8A5ByFk.js.map +1 -0
- package/dist/build-mdx-C1PZsGp2.js +395 -0
- package/dist/build-mdx-C1PZsGp2.js.map +1 -0
- package/dist/build-mdx-DFndaVbS.js +4 -0
- package/dist/bun/index.d.ts +6 -13
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +23 -34
- package/dist/bun/index.js.map +1 -0
- package/dist/bun-QKQnqgIi.js +35 -0
- package/dist/bun-QKQnqgIi.js.map +1 -0
- package/dist/code-generator-gPtrfZ6Q.js +133 -0
- package/dist/code-generator-gPtrfZ6Q.js.map +1 -0
- package/dist/collections/handlers/fs.d.ts +2 -10
- package/dist/collections/handlers/fs.js +28 -6
- package/dist/collections/handlers/fs.js.map +1 -0
- package/dist/collections/index.d.ts +2 -10
- package/dist/collections/index.js +16 -6
- package/dist/collections/index.js.map +1 -0
- package/dist/collections/mdx/loader-webpack.d.ts +6 -14
- package/dist/collections/mdx/loader-webpack.d.ts.map +1 -0
- package/dist/collections/mdx/loader-webpack.js +23 -36
- package/dist/collections/mdx/loader-webpack.js.map +1 -0
- package/dist/collections/mdx/runtime-browser.d.ts +27 -37
- package/dist/collections/mdx/runtime-browser.d.ts.map +1 -0
- package/dist/collections/mdx/runtime-browser.js +57 -70
- package/dist/collections/mdx/runtime-browser.js.map +1 -0
- package/dist/collections/mdx/runtime-dynamic.d.ts +22 -30
- package/dist/collections/mdx/runtime-dynamic.d.ts.map +1 -0
- package/dist/collections/mdx/runtime-dynamic.js +63 -85
- package/dist/collections/mdx/runtime-dynamic.js.map +1 -0
- package/dist/collections/mdx/runtime.d.ts +31 -52
- package/dist/collections/mdx/runtime.d.ts.map +1 -0
- package/dist/collections/mdx/runtime.js +24 -34
- package/dist/collections/mdx/runtime.js.map +1 -0
- package/dist/collections/mdx.d.ts +2 -10
- package/dist/collections/mdx.js +240 -284
- package/dist/collections/mdx.js.map +1 -0
- package/dist/collections/meta/loader-webpack.d.ts +6 -14
- package/dist/collections/meta/loader-webpack.d.ts.map +1 -0
- package/dist/collections/meta/loader-webpack.js +25 -39
- package/dist/collections/meta/loader-webpack.js.map +1 -0
- package/dist/collections/meta/runtime.d.ts +7 -15
- package/dist/collections/meta/runtime.d.ts.map +1 -0
- package/dist/collections/meta/runtime.js +9 -15
- package/dist/collections/meta/runtime.js.map +1 -0
- package/dist/collections/meta.d.ts +2 -10
- package/dist/collections/meta.js +128 -164
- package/dist/collections/meta.js.map +1 -0
- package/dist/collections/runtime/file-store.d.ts +17 -14
- package/dist/collections/runtime/file-store.d.ts.map +1 -0
- package/dist/collections/runtime/file-store.js +30 -6
- package/dist/collections/runtime/file-store.js.map +1 -0
- package/dist/collections/runtime/store.d.ts +3 -28
- package/dist/collections/runtime/store.js +3 -6
- package/dist/config/index.d.ts +2 -10
- package/dist/config/index.js +6 -5
- package/dist/config/index.js.map +1 -0
- package/dist/core-Bkh-SI_3.d.ts +561 -0
- package/dist/core-Bkh-SI_3.d.ts.map +1 -0
- package/dist/core-ZuoVBkeg.js +170 -0
- package/dist/core-ZuoVBkeg.js.map +1 -0
- package/dist/dynamic-B40uAtdo.js +28 -0
- package/dist/dynamic-B40uAtdo.js.map +1 -0
- package/dist/fuma-matter-O4fA6nSx.js +27 -0
- package/dist/fuma-matter-O4fA6nSx.js.map +1 -0
- package/dist/index.d.ts +13 -16
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -8
- package/dist/load-from-file-1f4WaHsf.js +38 -0
- package/dist/load-from-file-1f4WaHsf.js.map +1 -0
- package/dist/load-from-file-BTNnBu6f.js +3 -0
- package/dist/loader-80abXEHx.js +4 -0
- package/dist/loader-BFhPyg3z.js +4 -0
- package/dist/loader-CXnMFuyE.js +80 -0
- package/dist/loader-CXnMFuyE.js.map +1 -0
- package/dist/loader-gk94iHf5.js +66 -0
- package/dist/loader-gk94iHf5.js.map +1 -0
- package/dist/next/index.cjs +459 -551
- package/dist/next/index.d.ts +16 -22
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +71 -89
- package/dist/next/index.js.map +1 -0
- package/dist/node/loader.d.ts +4 -2
- package/dist/node/loader.d.ts.map +1 -0
- package/dist/node/loader.js +32 -44
- package/dist/node/loader.js.map +1 -0
- package/dist/node-CGIIJIcs.js +31 -0
- package/dist/node-CGIIJIcs.js.map +1 -0
- package/dist/pipe-5cnvE6KY.js +31 -0
- package/dist/pipe-5cnvE6KY.js.map +1 -0
- package/dist/plugins/git.d.ts +2 -10
- package/dist/plugins/git.js +57 -65
- package/dist/plugins/git.js.map +1 -0
- package/dist/plugins/json-schema.d.ts +2 -10
- package/dist/plugins/json-schema.js +60 -58
- package/dist/plugins/json-schema.js.map +1 -0
- package/dist/plugins/with-loader/index.d.ts +2 -61
- package/dist/plugins/with-loader/index.js +28 -6
- package/dist/plugins/with-loader/index.js.map +1 -0
- package/dist/plugins/with-loader/webpack.d.ts +10 -18
- package/dist/plugins/with-loader/webpack.d.ts.map +1 -0
- package/dist/plugins/with-loader/webpack.js +43 -12
- package/dist/plugins/with-loader/webpack.js.map +1 -0
- package/dist/store-0LQ2PlH6.js +37 -0
- package/dist/store-0LQ2PlH6.js.map +1 -0
- package/dist/store-DEjYYF6a.d.ts +31 -0
- package/dist/store-DEjYYF6a.d.ts.map +1 -0
- package/dist/validation-BOJKRAp5.js +28 -0
- package/dist/validation-BOJKRAp5.js.map +1 -0
- package/dist/vite/index.d.ts +22 -28
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +37 -52
- package/dist/vite/index.js.map +1 -0
- package/dist/vite-X-2Al8fq.js +32 -0
- package/dist/vite-X-2Al8fq.js.map +1 -0
- package/package.json +7 -6
- package/dist/build-mdx-I4NROXCF.js +0 -8
- package/dist/bun-DMNX4PBC.js +0 -40
- package/dist/chunk-3VQS3KSP.js +0 -39
- package/dist/chunk-BTRE6MOX.js +0 -16
- package/dist/chunk-E4HRKSP4.js +0 -24
- package/dist/chunk-ERBMAQYP.js +0 -33
- package/dist/chunk-GGL4EF6H.js +0 -38
- package/dist/chunk-JBZTQ55D.js +0 -30
- package/dist/chunk-KH5GT2Y5.js +0 -104
- package/dist/chunk-LUM7SIZN.js +0 -40
- package/dist/chunk-MT7RY65Y.js +0 -167
- package/dist/chunk-NRZ4GE5O.js +0 -207
- package/dist/chunk-OQQNA7L7.js +0 -412
- package/dist/chunk-OUJENWQ4.js +0 -45
- package/dist/chunk-RMSV4HP6.js +0 -85
- package/dist/chunk-RXR7OL76.js +0 -37
- package/dist/chunk-VWJKRQZR.js +0 -19
- package/dist/chunk-W6HENTK7.js +0 -44
- package/dist/chunk-XR5N6ZXJ.js +0 -50
- package/dist/core-Bo8KaWQz.d.ts +0 -411
- package/dist/load-from-file-HL2VEY3M.js +0 -7
- package/dist/loader-NFSL6P5I.js +0 -7
- package/dist/loader-T756NSCS.js +0 -7
- package/dist/node-DCMYL4DL.js +0 -34
- package/dist/vite-QCUPZHHB.js +0 -32
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/config/index.ts"],"sourcesContent":["import type { PluginOption } from \"@/core\";\nimport type { Collection } from \"@/collections\";\n\nexport interface GlobalConfig<\n Collections extends Record<string, Collection> = Record<string, Collection>,\n> {\n plugins?: PluginOption[];\n collections?: Collections;\n workspaces?: Record<string, Omit<WorkspaceConfig, \"name\">>;\n\n /**\n * specify a directory to access & store cache (disabled during development mode).\n *\n * The cache will never be updated, delete the cache folder to clean.\n */\n experimentalBuildCache?: string;\n}\n\nexport interface WorkspaceConfig {\n name: string;\n dir: string;\n config: GlobalConfig | { default: GlobalConfig };\n}\n\nexport function defineConfig<\n Collections extends Record<string, Collection> = Record<string, Collection>,\n>(config: GlobalConfig<Collections> = {}): GlobalConfig<Collections> {\n return config;\n}\n"],"mappings":";AAwBA,SAAgB,aAEd,SAAoC,EAAE,EAA6B;AACnE,QAAO"}
|
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
import { LoadHook } from "node:module";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
import { ProcessorOptions, createProcessor } from "@mdx-js/mdx";
|
|
4
|
+
import { VFile } from "vfile";
|
|
5
|
+
import { Processor } from "unified";
|
|
6
|
+
import { FSWatcher } from "chokidar";
|
|
7
|
+
import { Root } from "mdast";
|
|
8
|
+
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
9
|
+
import { MDXProps } from "mdx/types";
|
|
10
|
+
import * as Vite from "vite";
|
|
11
|
+
import { NextConfig } from "next";
|
|
12
|
+
|
|
13
|
+
//#region src/plugins/json-schema.d.ts
|
|
14
|
+
interface JSONSchemaOptions {
|
|
15
|
+
/**
|
|
16
|
+
* insert `$schema` field to JSON files on creation.
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue false
|
|
19
|
+
*/
|
|
20
|
+
insert?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface JSONSchemaHandler {
|
|
23
|
+
create: () => object | undefined | Promise<object | undefined>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Generate JSON schemas locally for collection schemas
|
|
27
|
+
*
|
|
28
|
+
* note: **it only works with Zod**
|
|
29
|
+
*/
|
|
30
|
+
declare function jsonSchema({
|
|
31
|
+
insert
|
|
32
|
+
}?: JSONSchemaOptions): Plugin;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/collections/handlers/fs.d.ts
|
|
35
|
+
interface FileHandlerConfig {
|
|
36
|
+
/**
|
|
37
|
+
* Directory to scan
|
|
38
|
+
*/
|
|
39
|
+
dir: string;
|
|
40
|
+
/**
|
|
41
|
+
* what files to include/exclude (glob patterns)
|
|
42
|
+
*
|
|
43
|
+
* Include all files if not specified
|
|
44
|
+
*/
|
|
45
|
+
files?: string[];
|
|
46
|
+
/**
|
|
47
|
+
* Restrict to a list of file extensions to include, e.g. `['js', 'ts']`.
|
|
48
|
+
*/
|
|
49
|
+
supportedFormats?: string[];
|
|
50
|
+
}
|
|
51
|
+
interface FIleCollectionHandler {
|
|
52
|
+
/**
|
|
53
|
+
* content directory (absolute)
|
|
54
|
+
*/
|
|
55
|
+
dir: string;
|
|
56
|
+
hasFile: (filePath: string) => boolean;
|
|
57
|
+
isFileSupported: (filePath: string) => boolean;
|
|
58
|
+
patterns: string[];
|
|
59
|
+
}
|
|
60
|
+
declare function initFileCollection(collection: Collection, init: InitOptions, config: FileHandlerConfig): void;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/collections/mdx/remark-postprocess.d.ts
|
|
63
|
+
interface ExtractedReference {
|
|
64
|
+
href: string;
|
|
65
|
+
}
|
|
66
|
+
interface PostprocessOptions {
|
|
67
|
+
_format: "md" | "mdx";
|
|
68
|
+
/**
|
|
69
|
+
* Properties to export from `vfile.data`
|
|
70
|
+
*/
|
|
71
|
+
valueToExport?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* stringify MDAST and export via `_markdown`.
|
|
74
|
+
*/
|
|
75
|
+
includeProcessedMarkdown?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* extract link references, export via `extractedReferences`.
|
|
78
|
+
*/
|
|
79
|
+
extractLinkReferences?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* store MDAST and export via `_mdast`.
|
|
82
|
+
*/
|
|
83
|
+
includeMDAST?: boolean | {
|
|
84
|
+
removePosition?: boolean;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/collections/mdx/remark-preprocess.d.ts
|
|
89
|
+
interface PreprocessOptions {
|
|
90
|
+
preprocessor?: Processor<Root>;
|
|
91
|
+
}
|
|
92
|
+
declare module "vfile" {
|
|
93
|
+
interface DataMap {
|
|
94
|
+
_preprocessed?: boolean;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/types.d.ts
|
|
99
|
+
type GetCollectionConfig<Config, Name extends string> = Config extends Record<Name, Collection> ? Config[Name] : Config extends {
|
|
100
|
+
default: GlobalConfig<infer Collections>;
|
|
101
|
+
} ? Collections[Name] : never;
|
|
102
|
+
type Awaitable$1<T> = T | PromiseLike<T>;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/utils/pipe.d.ts
|
|
105
|
+
interface Pipe<Data, Context = undefined> {
|
|
106
|
+
/**
|
|
107
|
+
* add a transformation step
|
|
108
|
+
*
|
|
109
|
+
* @returns the same pipe instance
|
|
110
|
+
*/
|
|
111
|
+
pipe: (fn: (data: Data, context: Context) => Data) => Pipe<Data, Context>;
|
|
112
|
+
run: (data: Data, context: Context) => Data;
|
|
113
|
+
}
|
|
114
|
+
interface AsyncPipe<Data, Context = undefined> {
|
|
115
|
+
/**
|
|
116
|
+
* add a transformation step
|
|
117
|
+
*
|
|
118
|
+
* @returns the same pipe instance
|
|
119
|
+
*/
|
|
120
|
+
pipe: (fn: (data: Data, context: Context) => Awaitable$1<Data>) => AsyncPipe<Data, Context>;
|
|
121
|
+
run: (data: Data, context: Context) => Awaitable$1<Data>;
|
|
122
|
+
}
|
|
123
|
+
declare function pipe<Data, Context>(): Pipe<Data, Context>;
|
|
124
|
+
declare function asyncPipe<Data, Context>(): AsyncPipe<Data, Context>;
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/plugins/with-loader/index.d.ts
|
|
127
|
+
type Awaitable<T> = T | Promise<T>;
|
|
128
|
+
interface CompilerOptions {
|
|
129
|
+
addDependency: (file: string) => void;
|
|
130
|
+
}
|
|
131
|
+
type LoaderEnvironment = "vite" | "bun" | "node";
|
|
132
|
+
interface Loader {
|
|
133
|
+
/**
|
|
134
|
+
* Transform input into JavaScript.
|
|
135
|
+
*
|
|
136
|
+
* Returns:
|
|
137
|
+
* - `LoaderOutput`: JavaScript code & source map.
|
|
138
|
+
* - `null`: skip the loader. Fallback to default behaviour if possible, otherwise the adapter will try workarounds.
|
|
139
|
+
*/
|
|
140
|
+
load: (input: LoaderInput) => Awaitable<LoaderOutput | null>;
|
|
141
|
+
bun?: {
|
|
142
|
+
/**
|
|
143
|
+
* 1. Bun doesn't allow `null` in loaders.
|
|
144
|
+
* 2. Bun requires sync result to support dynamic require().
|
|
145
|
+
*/
|
|
146
|
+
load?: (source: string, input: LoaderInput) => Awaitable<Bun.OnLoadResult>;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
interface LoaderInput {
|
|
150
|
+
development: boolean;
|
|
151
|
+
compiler: CompilerOptions;
|
|
152
|
+
filePath: string;
|
|
153
|
+
query: Record<string, string | string[] | undefined>;
|
|
154
|
+
getSource: () => string | Promise<string>;
|
|
155
|
+
}
|
|
156
|
+
interface LoaderOutput {
|
|
157
|
+
code: string;
|
|
158
|
+
map?: unknown;
|
|
159
|
+
}
|
|
160
|
+
interface WithLoaderConfig {
|
|
161
|
+
/**
|
|
162
|
+
* Filter file paths, the input can be either a file URL or file path.
|
|
163
|
+
*
|
|
164
|
+
* Must take resource query into consideration.
|
|
165
|
+
*/
|
|
166
|
+
test?: RegExp;
|
|
167
|
+
createLoader: (this: PluginContext, environment: LoaderEnvironment) => Promise<Loader>;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* a light layer for implementing loaders.
|
|
171
|
+
*
|
|
172
|
+
* @remarks it doesn't include Next.js, you have to define the webpack/turbopack config, and export the loaders on your own.
|
|
173
|
+
*/
|
|
174
|
+
declare function withLoader(plugin: Plugin, {
|
|
175
|
+
test,
|
|
176
|
+
createLoader
|
|
177
|
+
}: WithLoaderConfig): Plugin;
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/collections/mdx/build-mdx.d.ts
|
|
180
|
+
type MDXProcessor = ReturnType<typeof createProcessor>;
|
|
181
|
+
interface FumaContentDataMap {
|
|
182
|
+
/**
|
|
183
|
+
* [Fuma Content] raw frontmatter, you can modify it
|
|
184
|
+
*/
|
|
185
|
+
frontmatter?: Record<string, unknown>;
|
|
186
|
+
/**
|
|
187
|
+
* [Fuma Content] additional ESM exports to write
|
|
188
|
+
*/
|
|
189
|
+
"mdx-export"?: {
|
|
190
|
+
name: string;
|
|
191
|
+
value: unknown;
|
|
192
|
+
}[];
|
|
193
|
+
/**
|
|
194
|
+
* [Fuma Content] The compiler object from loader
|
|
195
|
+
*/
|
|
196
|
+
_compiler?: CompilerOptions;
|
|
197
|
+
/**
|
|
198
|
+
* [Fuma Content] get internal processor, do not use this on user land.
|
|
199
|
+
*/
|
|
200
|
+
_getProcessor?: (format: "md" | "mdx") => MDXProcessor | Promise<MDXProcessor>;
|
|
201
|
+
}
|
|
202
|
+
declare module "vfile" {
|
|
203
|
+
interface DataMap extends FumaContentDataMap {}
|
|
204
|
+
}
|
|
205
|
+
type CompiledMDX<Frontmatter = Record<string, unknown>> = {
|
|
206
|
+
frontmatter: Frontmatter;
|
|
207
|
+
} & CompiledMDXData & Record<string, unknown>;
|
|
208
|
+
interface CompiledMDXData {
|
|
209
|
+
default: FC<MDXProps>;
|
|
210
|
+
/**
|
|
211
|
+
* Enable from `postprocess` option.
|
|
212
|
+
*/
|
|
213
|
+
_markdown?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Enable from `postprocess` option.
|
|
216
|
+
*/
|
|
217
|
+
_mdast?: string;
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/collections/mdx.d.ts
|
|
221
|
+
interface CompilationContext {
|
|
222
|
+
collection: Collection;
|
|
223
|
+
filePath: string;
|
|
224
|
+
source: string;
|
|
225
|
+
}
|
|
226
|
+
interface MDXCollectionHandler {
|
|
227
|
+
readonly cwd: string;
|
|
228
|
+
readonly dynamic: boolean;
|
|
229
|
+
readonly lazy: boolean;
|
|
230
|
+
preprocess?: PreprocessOptions;
|
|
231
|
+
postprocess?: Partial<PostprocessOptions>;
|
|
232
|
+
getMDXOptions?: (environment: "bundler" | "runtime") => Awaitable$1<ProcessorOptions>;
|
|
233
|
+
/**
|
|
234
|
+
* Transform & validate frontmatter
|
|
235
|
+
*/
|
|
236
|
+
frontmatter: AsyncPipe<Record<string, unknown> | undefined, CompilationContext>;
|
|
237
|
+
/**
|
|
238
|
+
* Transform `vfile` on compilation stage
|
|
239
|
+
*/
|
|
240
|
+
vfile: AsyncPipe<VFile, CompilationContext>;
|
|
241
|
+
/**
|
|
242
|
+
* Transform the initializer code (TypeScript) for collection store
|
|
243
|
+
*/
|
|
244
|
+
storeInitializer: Pipe<string, EmitCodeGeneratorContext & {
|
|
245
|
+
environment: "browser" | "server" | "dynamic";
|
|
246
|
+
}>;
|
|
247
|
+
}
|
|
248
|
+
interface MDXCollectionConfig<FrontmatterSchema extends StandardSchemaV1 | undefined = undefined> extends FileHandlerConfig {
|
|
249
|
+
postprocess?: Partial<PostprocessOptions>;
|
|
250
|
+
frontmatter?: FrontmatterSchema;
|
|
251
|
+
options?: (environment: "bundler" | "runtime") => Awaitable$1<ProcessorOptions>;
|
|
252
|
+
lazy?: boolean;
|
|
253
|
+
dynamic?: boolean;
|
|
254
|
+
}
|
|
255
|
+
interface MDXCollection<Frontmatter> extends Collection {
|
|
256
|
+
_frontmatter?: Frontmatter;
|
|
257
|
+
}
|
|
258
|
+
declare function defineMDX<FrontmatterSchema extends StandardSchemaV1 | undefined = undefined>(config: MDXCollectionConfig<FrontmatterSchema>): MDXCollection<FrontmatterSchema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<FrontmatterSchema> : Record<string, unknown>>;
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/collections/meta.d.ts
|
|
261
|
+
interface MetaTransformationContext {
|
|
262
|
+
path: string;
|
|
263
|
+
source: string;
|
|
264
|
+
}
|
|
265
|
+
interface MetaCollectionHandler {
|
|
266
|
+
/**
|
|
267
|
+
* Transform metadata
|
|
268
|
+
*/
|
|
269
|
+
transform: AsyncPipe<unknown, MetaTransformationContext>;
|
|
270
|
+
schema?: StandardSchemaV1;
|
|
271
|
+
}
|
|
272
|
+
interface MetaCollectionConfig<Schema extends StandardSchemaV1> extends Omit<FileHandlerConfig, "supportedFormats"> {
|
|
273
|
+
schema?: Schema;
|
|
274
|
+
}
|
|
275
|
+
type MetaCollection<_Data> = Collection & {
|
|
276
|
+
_type?: _Data;
|
|
277
|
+
};
|
|
278
|
+
declare function defineMeta<Schema extends StandardSchemaV1>(config: MetaCollectionConfig<Schema>): MetaCollection<Schema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<Schema> : Record<string, unknown>>;
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region src/plugins/git.d.ts
|
|
281
|
+
interface VersionControlFileData {
|
|
282
|
+
/**
|
|
283
|
+
* Last modified date of file, obtained from version control.
|
|
284
|
+
*/
|
|
285
|
+
lastModified: Date | null;
|
|
286
|
+
/**
|
|
287
|
+
* Creation date of file, obtained from version control.
|
|
288
|
+
*/
|
|
289
|
+
creationDate: Date | null;
|
|
290
|
+
}
|
|
291
|
+
interface VersionControlHandler {
|
|
292
|
+
/**
|
|
293
|
+
* receive the version control client.
|
|
294
|
+
*/
|
|
295
|
+
client: (context: {
|
|
296
|
+
client: VersionControlClient;
|
|
297
|
+
}) => void | Promise<void>;
|
|
298
|
+
}
|
|
299
|
+
interface GitPluginOptions {
|
|
300
|
+
/**
|
|
301
|
+
* Filter the collections to include by names
|
|
302
|
+
*/
|
|
303
|
+
filter?: (collection: string) => boolean;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Add version control integration for Git.
|
|
307
|
+
* 1. Injects `creationDate` & `lastModified` properties to page exports.
|
|
308
|
+
*
|
|
309
|
+
* @remarks If you are using Vercel, please set `VERCEL_DEEP_CLONE` environment variable to `true`. This ensures the client can access the full commit history of Git.
|
|
310
|
+
*/
|
|
311
|
+
declare function git(options?: GitPluginOptions): Plugin;
|
|
312
|
+
interface VersionControlClient {
|
|
313
|
+
getFileData: (options: {
|
|
314
|
+
filePath: string;
|
|
315
|
+
}) => Promise<VersionControlFileData>;
|
|
316
|
+
}
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region src/collections/index.d.ts
|
|
319
|
+
interface InitOptions {
|
|
320
|
+
name: string;
|
|
321
|
+
workspace?: WorkspaceConfig;
|
|
322
|
+
}
|
|
323
|
+
interface Collection {
|
|
324
|
+
name: string;
|
|
325
|
+
init?: (options: InitOptions) => void;
|
|
326
|
+
readonly handlers: CollectionHandlers;
|
|
327
|
+
/**
|
|
328
|
+
* information for the collection type, can be shared for all collections of same type.
|
|
329
|
+
*/
|
|
330
|
+
readonly typeInfo: CollectionTypeInfo;
|
|
331
|
+
}
|
|
332
|
+
interface CollectionTypeInfo {
|
|
333
|
+
/**
|
|
334
|
+
* ID for collection type.
|
|
335
|
+
*
|
|
336
|
+
* @example `my-package:my-collection-type`
|
|
337
|
+
*/
|
|
338
|
+
readonly id: string;
|
|
339
|
+
/**
|
|
340
|
+
* plugins to register, registered once for each collection type.
|
|
341
|
+
*/
|
|
342
|
+
readonly plugins?: PluginOption$1;
|
|
343
|
+
}
|
|
344
|
+
interface CollectionHandlers {
|
|
345
|
+
fs?: FIleCollectionHandler;
|
|
346
|
+
mdx?: MDXCollectionHandler;
|
|
347
|
+
meta?: MetaCollectionHandler;
|
|
348
|
+
"json-schema"?: JSONSchemaHandler;
|
|
349
|
+
"version-control"?: VersionControlHandler;
|
|
350
|
+
}
|
|
351
|
+
declare function createCollection(info: CollectionTypeInfo, init: (collection: Collection, options: InitOptions) => void): Collection;
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region src/config/index.d.ts
|
|
354
|
+
interface GlobalConfig<Collections$1 extends Record<string, Collection> = Record<string, Collection>> {
|
|
355
|
+
plugins?: PluginOption$1[];
|
|
356
|
+
collections?: Collections$1;
|
|
357
|
+
workspaces?: Record<string, Omit<WorkspaceConfig, "name">>;
|
|
358
|
+
/**
|
|
359
|
+
* specify a directory to access & store cache (disabled during development mode).
|
|
360
|
+
*
|
|
361
|
+
* The cache will never be updated, delete the cache folder to clean.
|
|
362
|
+
*/
|
|
363
|
+
experimentalBuildCache?: string;
|
|
364
|
+
}
|
|
365
|
+
interface WorkspaceConfig {
|
|
366
|
+
name: string;
|
|
367
|
+
dir: string;
|
|
368
|
+
config: GlobalConfig | {
|
|
369
|
+
default: GlobalConfig;
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
declare function defineConfig<Collections$1 extends Record<string, Collection> = Record<string, Collection>>(config?: GlobalConfig<Collections$1>): GlobalConfig<Collections$1>;
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region src/config/build.d.ts
|
|
375
|
+
interface LoadedConfig extends Omit<GlobalConfig, "workspaces" | "collections"> {
|
|
376
|
+
collections: Map<string, Collection>;
|
|
377
|
+
workspaces: Record<string, {
|
|
378
|
+
dir: string;
|
|
379
|
+
config: LoadedConfig;
|
|
380
|
+
}>;
|
|
381
|
+
}
|
|
382
|
+
//#endregion
|
|
383
|
+
//#region src/utils/code-generator.d.ts
|
|
384
|
+
interface GlobImportOptions {
|
|
385
|
+
base: string;
|
|
386
|
+
query?: Record<string, string | undefined>;
|
|
387
|
+
import?: string;
|
|
388
|
+
eager?: boolean;
|
|
389
|
+
}
|
|
390
|
+
interface CodeGeneratorOptions {
|
|
391
|
+
target: "default" | "vite";
|
|
392
|
+
outDir: string;
|
|
393
|
+
/**
|
|
394
|
+
* add .js extenstion to imports
|
|
395
|
+
*/
|
|
396
|
+
jsExtension: boolean;
|
|
397
|
+
globCache: Map<string, Promise<string[]>>;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Code generator (one instance per file)
|
|
401
|
+
*/
|
|
402
|
+
declare class CodeGenerator {
|
|
403
|
+
private readonly lines;
|
|
404
|
+
private readonly globCache;
|
|
405
|
+
private readonly importInfos;
|
|
406
|
+
private eagerImportId;
|
|
407
|
+
readonly options: CodeGeneratorOptions;
|
|
408
|
+
constructor({
|
|
409
|
+
target,
|
|
410
|
+
jsExtension,
|
|
411
|
+
globCache,
|
|
412
|
+
outDir
|
|
413
|
+
}: Partial<CodeGeneratorOptions>);
|
|
414
|
+
addNamespaceImport(namespace: string, specifier: string, types?: boolean): void;
|
|
415
|
+
addNamedImport(names: string[], specifier: string, types?: boolean): void;
|
|
416
|
+
push(...insert: string[]): void;
|
|
417
|
+
pushAsync(insert: Promise<string | undefined>[]): Promise<void>;
|
|
418
|
+
generateGlobImport(patterns: string | string[], options: GlobImportOptions): Promise<string>;
|
|
419
|
+
private generateViteGlobImport;
|
|
420
|
+
private generateNodeGlobImport;
|
|
421
|
+
formatImportPath(file: string): string;
|
|
422
|
+
toString(): string;
|
|
423
|
+
}
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/core.d.ts
|
|
426
|
+
interface EmitEntry {
|
|
427
|
+
/**
|
|
428
|
+
* path relative to output directory
|
|
429
|
+
*/
|
|
430
|
+
path: string;
|
|
431
|
+
content: string;
|
|
432
|
+
}
|
|
433
|
+
interface PluginContext {
|
|
434
|
+
core: Core;
|
|
435
|
+
}
|
|
436
|
+
interface EmitContext extends PluginContext {
|
|
437
|
+
createCodeGenerator: (path: string, content: (ctx: EmitCodeGeneratorContext) => Promise<void>) => Promise<EmitEntry>;
|
|
438
|
+
}
|
|
439
|
+
interface EmitCodeGeneratorContext {
|
|
440
|
+
core: Core;
|
|
441
|
+
workspace?: string;
|
|
442
|
+
codegen: CodeGenerator;
|
|
443
|
+
}
|
|
444
|
+
interface Plugin {
|
|
445
|
+
/**
|
|
446
|
+
* unique name for plugin
|
|
447
|
+
*
|
|
448
|
+
* @example `my-package:my-plugin`
|
|
449
|
+
*/
|
|
450
|
+
name: string;
|
|
451
|
+
/**
|
|
452
|
+
* on config loaded/updated
|
|
453
|
+
*/
|
|
454
|
+
config?: (this: PluginContext, config: LoadedConfig) => Awaitable$1<void | LoadedConfig>;
|
|
455
|
+
collection?: (this: PluginContext, collection: Collection) => Awaitable$1<void>;
|
|
456
|
+
/**
|
|
457
|
+
* Generate files (e.g. types, index file, or JSON schemas)
|
|
458
|
+
*/
|
|
459
|
+
emit?: (this: EmitContext) => Awaitable$1<EmitEntry[]>;
|
|
460
|
+
/**
|
|
461
|
+
* Configure Fumadocs dev server
|
|
462
|
+
*/
|
|
463
|
+
configureServer?: (this: PluginContext, server: ServerContext) => Awaitable$1<void>;
|
|
464
|
+
vite?: {
|
|
465
|
+
createPlugin?: (this: PluginContext) => Vite.PluginOption;
|
|
466
|
+
};
|
|
467
|
+
bun?: {
|
|
468
|
+
build?: (this: PluginContext, build: Bun.PluginBuilder) => Awaitable$1<void>;
|
|
469
|
+
};
|
|
470
|
+
next?: {
|
|
471
|
+
config?: (this: PluginContext, config: NextConfig) => NextConfig;
|
|
472
|
+
};
|
|
473
|
+
node?: {
|
|
474
|
+
createLoad?: (this: PluginContext) => Awaitable$1<LoadHook>;
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
type PluginOption$1 = Awaitable$1<Plugin | PluginOption$1[] | false | undefined>;
|
|
478
|
+
interface ServerContext {
|
|
479
|
+
/**
|
|
480
|
+
* the file watcher, by default all content files are watched, along with other files.
|
|
481
|
+
*
|
|
482
|
+
* make sure to filter when listening to events
|
|
483
|
+
*/
|
|
484
|
+
watcher?: FSWatcher;
|
|
485
|
+
}
|
|
486
|
+
interface CoreOptions {
|
|
487
|
+
configPath: string;
|
|
488
|
+
outDir: string;
|
|
489
|
+
plugins?: PluginOption$1[];
|
|
490
|
+
emit?: {
|
|
491
|
+
target?: "default" | "vite";
|
|
492
|
+
/**
|
|
493
|
+
* add .js extenstion to imports
|
|
494
|
+
*/
|
|
495
|
+
jsExtension?: boolean;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* the workspace info if this instance is created as a workspace
|
|
499
|
+
*/
|
|
500
|
+
workspace?: {
|
|
501
|
+
parent: Core;
|
|
502
|
+
name: string;
|
|
503
|
+
dir: string;
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
interface EmitOptions {
|
|
507
|
+
/**
|
|
508
|
+
* filter the plugins to run emit
|
|
509
|
+
*/
|
|
510
|
+
filterPlugin?: (plugin: Plugin) => boolean;
|
|
511
|
+
/**
|
|
512
|
+
* filter the workspaces to run emit
|
|
513
|
+
*/
|
|
514
|
+
filterWorkspace?: (workspace: string) => boolean;
|
|
515
|
+
/**
|
|
516
|
+
* write files
|
|
517
|
+
*/
|
|
518
|
+
write?: boolean;
|
|
519
|
+
}
|
|
520
|
+
interface EmitOutput {
|
|
521
|
+
entries: EmitEntry[];
|
|
522
|
+
workspaces: Record<string, EmitEntry[]>;
|
|
523
|
+
}
|
|
524
|
+
declare class Core {
|
|
525
|
+
private readonly workspaces;
|
|
526
|
+
private readonly options;
|
|
527
|
+
private plugins;
|
|
528
|
+
private config;
|
|
529
|
+
static defaultOptions: {
|
|
530
|
+
configPath: string;
|
|
531
|
+
outDir: string;
|
|
532
|
+
};
|
|
533
|
+
/**
|
|
534
|
+
* Convenient cache store, reset when config changes.
|
|
535
|
+
*
|
|
536
|
+
* You can group namespaces in cache key with ":", like `my-plugin:data`
|
|
537
|
+
*/
|
|
538
|
+
readonly cache: Map<string, unknown>;
|
|
539
|
+
constructor(options: CoreOptions);
|
|
540
|
+
init({
|
|
541
|
+
config: newConfig
|
|
542
|
+
}: {
|
|
543
|
+
config: Awaitable$1<LoadedConfig>;
|
|
544
|
+
}): Promise<void>;
|
|
545
|
+
getWorkspaces(): Map<string, Core>;
|
|
546
|
+
getOptions(): CoreOptions;
|
|
547
|
+
getConfig(): LoadedConfig;
|
|
548
|
+
/**
|
|
549
|
+
* The file path of compiled config file, the file may not exist (e.g. on Vite, or still compiling)
|
|
550
|
+
*/
|
|
551
|
+
getCompiledConfigPath(): string;
|
|
552
|
+
getPlugins(workspace?: boolean): Plugin[];
|
|
553
|
+
getCollections(workspace?: boolean): Collection[];
|
|
554
|
+
getCollection(name: string): Collection | undefined;
|
|
555
|
+
getPluginContext(): PluginContext;
|
|
556
|
+
initServer(server: ServerContext): Promise<void>;
|
|
557
|
+
emit(emitOptions?: EmitOptions): Promise<EmitOutput>;
|
|
558
|
+
}
|
|
559
|
+
//#endregion
|
|
560
|
+
export { JSONSchemaOptions as $, MDXCollection as A, WithLoaderConfig as B, VersionControlHandler as C, MetaCollectionHandler as D, MetaCollectionConfig as E, CompiledMDXData as F, pipe as G, AsyncPipe as H, CompilerOptions as I, ExtractedReference as J, Awaitable$1 as K, Loader as L, MDXCollectionHandler as M, defineMDX as N, MetaTransformationContext as O, CompiledMDX as P, JSONSchemaHandler as Q, LoaderInput as R, VersionControlFileData as S, MetaCollection as T, Pipe as U, withLoader as V, asyncPipe as W, FileHandlerConfig as X, FIleCollectionHandler as Y, initFileCollection as Z, CollectionTypeInfo as _, EmitEntry as a, GitPluginOptions as b, Plugin as c, ServerContext as d, jsonSchema as et, GlobalConfig as f, CollectionHandlers as g, Collection as h, EmitContext as i, MDXCollectionConfig as j, defineMeta as k, PluginContext as l, defineConfig as m, CoreOptions as n, EmitOptions as o, WorkspaceConfig as p, GetCollectionConfig as q, EmitCodeGeneratorContext as r, EmitOutput as s, Core as t, PluginOption$1 as u, InitOptions as v, git as w, VersionControlClient as x, createCollection as y, LoaderOutput as z };
|
|
561
|
+
//# sourceMappingURL=core-Bkh-SI_3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-Bkh-SI_3.d.ts","names":[],"sources":["../src/plugins/json-schema.ts","../src/collections/handlers/fs.ts","../src/collections/mdx/remark-postprocess.ts","../src/collections/mdx/remark-preprocess.ts","../src/types.ts","../src/utils/pipe.ts","../src/plugins/with-loader/index.ts","../src/collections/mdx/build-mdx.ts","../src/collections/mdx.ts","../src/collections/meta.ts","../src/plugins/git.ts","../src/collections/index.ts","../src/config/index.ts","../src/config/build.ts","../src/utils/code-generator.ts","../src/core.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;UA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