fuma-content 1.2.3 → 1.3.0

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 (158) hide show
  1. package/dist/async-cache-C47yxLCv.js +0 -2
  2. package/dist/bin.js +0 -2
  3. package/dist/{build-mdx-C8u32vDa.js → build-mdx-DjMJg3TP.js} +1 -3
  4. package/dist/bun/index.d.ts +2 -3
  5. package/dist/bun/index.js +0 -2
  6. package/dist/{bun-NahDFkhR.js → bun-qVjHRKNw.js} +0 -2
  7. package/dist/code-generator-DFGEY6P5.js +0 -2
  8. package/dist/collections/data/runtime.d.ts +3 -4
  9. package/dist/collections/data/runtime.js +0 -2
  10. package/dist/collections/data.d.ts +4 -5
  11. package/dist/collections/data.js +2 -4
  12. package/dist/collections/fs.d.ts +1 -1
  13. package/dist/collections/fs.js +0 -2
  14. package/dist/collections/index.d.ts +1 -1
  15. package/dist/collections/json/loader-webpack.d.ts +2 -3
  16. package/dist/collections/json/loader-webpack.js +1 -5
  17. package/dist/collections/mdx/loader-webpack.d.ts +2 -3
  18. package/dist/collections/mdx/loader-webpack.js +1 -5
  19. package/dist/collections/mdx/react.d.ts +3 -4
  20. package/dist/collections/mdx/react.js +0 -2
  21. package/dist/collections/mdx/runtime-browser.d.ts +2 -2
  22. package/dist/collections/mdx/runtime-browser.js +0 -2
  23. package/dist/collections/mdx/runtime-dynamic.d.ts +5 -6
  24. package/dist/collections/mdx/runtime-dynamic.js +3 -6
  25. package/dist/collections/mdx/runtime.d.ts +1 -1
  26. package/dist/collections/mdx/runtime.js +0 -2
  27. package/dist/collections/mdx/vue.d.ts +7 -8
  28. package/dist/collections/mdx/vue.js +0 -2
  29. package/dist/collections/mdx.d.ts +1 -1
  30. package/dist/collections/mdx.js +1 -3
  31. package/dist/collections/obsidian.d.ts +2 -3
  32. package/dist/collections/obsidian.js +3 -6
  33. package/dist/collections/runtime/file-store.d.ts +1 -1
  34. package/dist/collections/runtime/file-store.js +0 -2
  35. package/dist/collections/runtime/store.d.ts +1 -1
  36. package/dist/collections/runtime/store.js +0 -2
  37. package/dist/collections/yaml/loader-webpack.d.ts +2 -3
  38. package/dist/collections/yaml/loader-webpack.js +1 -5
  39. package/dist/collections-Bl9hpWMS.js +0 -2
  40. package/dist/config/index.d.ts +1 -1
  41. package/dist/config/index.js +0 -2
  42. package/dist/core-CrYszxmc.js +0 -2
  43. package/dist/{core-BbTeLenA.d.ts → core-Dmd3yqUH.d.ts} +1 -2
  44. package/dist/{dynamic-CNEaikCN.d.ts → dynamic-C15fv7uG.d.ts} +2 -3
  45. package/dist/dynamic.d.ts +1 -1
  46. package/dist/dynamic.js +1 -3
  47. package/dist/{file-store-DutRtol_.d.ts → file-store-Bs81Afz5.d.ts} +2 -3
  48. package/dist/{flatten-m0wfHxLH.js → flatten-Db7WzTB7.js} +0 -2
  49. package/dist/{fs-KJjb32Nq.d.ts → fs-DYfoYdl-.d.ts} +2 -3
  50. package/dist/{git-BxnPg5Ao.d.ts → git-C0-Uazuh.d.ts} +2 -3
  51. package/dist/{index-DVqrqxzl.d.ts → index-Dfg2QKTT.d.ts} +3 -4
  52. package/dist/index.d.ts +2 -3
  53. package/dist/is-promise-like-C04ERo2r.js +0 -2
  54. package/dist/{load-from-file-C3CnD8mJ.js → load-from-file-DpW8who8.js} +0 -2
  55. package/dist/{loader-ol04zeoP.js → loader-B19JQedw.js} +0 -2
  56. package/dist/{loader-CyhM9SLt.js → loader-BTPxE-0W.js} +3 -5
  57. package/dist/{loader-e2SkeDfY.js → loader-CORy1xd9.js} +1 -3
  58. package/dist/{loader-D_sKOzDc.js → loader-DJcLC5Gg.js} +1 -3
  59. package/dist/{mdx-L0I8mePE.d.ts → mdx-0plToRQa.d.ts} +3 -4
  60. package/dist/next/index.d.ts +2 -3
  61. package/dist/next/index.js +1 -3
  62. package/dist/node/index.d.ts +1 -2
  63. package/dist/node/index.js +0 -2
  64. package/dist/node/loader.d.ts +2 -3
  65. package/dist/node/loader.js +0 -2
  66. package/dist/{node-Du4i4XDg.js → node--IKK4_8Y.js} +0 -2
  67. package/dist/plugins/git.d.ts +1 -1
  68. package/dist/plugins/git.js +0 -2
  69. package/dist/plugins/json-schema.d.ts +2 -3
  70. package/dist/plugins/json-schema.js +0 -2
  71. package/dist/plugins/loader/index.d.ts +1 -1
  72. package/dist/plugins/loader/index.js +3 -5
  73. package/dist/plugins/loader/webpack.d.ts +1 -1
  74. package/dist/plugins/loader/webpack.js +0 -2
  75. package/dist/plugins/remark/include.d.ts +1 -2
  76. package/dist/plugins/remark/include.js +4 -5
  77. package/dist/{runtime-TETi5Giq.d.ts → runtime-4S3BDs-G.d.ts} +5 -6
  78. package/dist/{runtime-browser-M4sE6SmL.d.ts → runtime-browser-CXjm3FXK.d.ts} +4 -6
  79. package/dist/{store-BC3n1VPY.d.ts → store-j10gHjm1.d.ts} +2 -3
  80. package/dist/utils/frontmatter.d.ts +15 -0
  81. package/dist/{fuma-matter-E30PU53R.js → utils/frontmatter.js} +3 -5
  82. package/dist/validation-Bf_v2L3p.js +0 -2
  83. package/dist/vite/index.d.ts +2 -3
  84. package/dist/vite/index.js +1 -3
  85. package/dist/{vite-DVIOnBqW.js → vite-myuLielb.js} +0 -2
  86. package/package.json +24 -20
  87. package/dist/async-cache-C47yxLCv.js.map +0 -1
  88. package/dist/bin.js.map +0 -1
  89. package/dist/build-mdx-C8u32vDa.js.map +0 -1
  90. package/dist/bun/index.d.ts.map +0 -1
  91. package/dist/bun/index.js.map +0 -1
  92. package/dist/bun-NahDFkhR.js.map +0 -1
  93. package/dist/code-generator-DFGEY6P5.js.map +0 -1
  94. package/dist/collections/data/runtime.d.ts.map +0 -1
  95. package/dist/collections/data/runtime.js.map +0 -1
  96. package/dist/collections/data.d.ts.map +0 -1
  97. package/dist/collections/data.js.map +0 -1
  98. package/dist/collections/fs.js.map +0 -1
  99. package/dist/collections/json/loader-webpack.d.ts.map +0 -1
  100. package/dist/collections/json/loader-webpack.js.map +0 -1
  101. package/dist/collections/mdx/loader-webpack.d.ts.map +0 -1
  102. package/dist/collections/mdx/loader-webpack.js.map +0 -1
  103. package/dist/collections/mdx/react.d.ts.map +0 -1
  104. package/dist/collections/mdx/react.js.map +0 -1
  105. package/dist/collections/mdx/runtime-browser.js.map +0 -1
  106. package/dist/collections/mdx/runtime-dynamic.d.ts.map +0 -1
  107. package/dist/collections/mdx/runtime-dynamic.js.map +0 -1
  108. package/dist/collections/mdx/runtime.js.map +0 -1
  109. package/dist/collections/mdx/vue.d.ts.map +0 -1
  110. package/dist/collections/mdx/vue.js.map +0 -1
  111. package/dist/collections/mdx.js.map +0 -1
  112. package/dist/collections/obsidian.d.ts.map +0 -1
  113. package/dist/collections/obsidian.js.map +0 -1
  114. package/dist/collections/runtime/file-store.js.map +0 -1
  115. package/dist/collections/runtime/store.js.map +0 -1
  116. package/dist/collections/yaml/loader-webpack.d.ts.map +0 -1
  117. package/dist/collections/yaml/loader-webpack.js.map +0 -1
  118. package/dist/collections-Bl9hpWMS.js.map +0 -1
  119. package/dist/config/index.js.map +0 -1
  120. package/dist/core-BbTeLenA.d.ts.map +0 -1
  121. package/dist/core-CrYszxmc.js.map +0 -1
  122. package/dist/dynamic-CNEaikCN.d.ts.map +0 -1
  123. package/dist/dynamic.js.map +0 -1
  124. package/dist/file-store-DutRtol_.d.ts.map +0 -1
  125. package/dist/flatten-m0wfHxLH.js.map +0 -1
  126. package/dist/fs-KJjb32Nq.d.ts.map +0 -1
  127. package/dist/fuma-matter-E30PU53R.js.map +0 -1
  128. package/dist/git-BxnPg5Ao.d.ts.map +0 -1
  129. package/dist/index-DVqrqxzl.d.ts.map +0 -1
  130. package/dist/index.d.ts.map +0 -1
  131. package/dist/is-promise-like-C04ERo2r.js.map +0 -1
  132. package/dist/load-from-file-C3CnD8mJ.js.map +0 -1
  133. package/dist/loader-CyhM9SLt.js.map +0 -1
  134. package/dist/loader-D_sKOzDc.js.map +0 -1
  135. package/dist/loader-e2SkeDfY.js.map +0 -1
  136. package/dist/loader-ol04zeoP.js.map +0 -1
  137. package/dist/mdx-L0I8mePE.d.ts.map +0 -1
  138. package/dist/next/index.d.ts.map +0 -1
  139. package/dist/next/index.js.map +0 -1
  140. package/dist/node/index.d.ts.map +0 -1
  141. package/dist/node/index.js.map +0 -1
  142. package/dist/node/loader.d.ts.map +0 -1
  143. package/dist/node/loader.js.map +0 -1
  144. package/dist/node-Du4i4XDg.js.map +0 -1
  145. package/dist/plugins/git.js.map +0 -1
  146. package/dist/plugins/json-schema.d.ts.map +0 -1
  147. package/dist/plugins/json-schema.js.map +0 -1
  148. package/dist/plugins/loader/index.js.map +0 -1
  149. package/dist/plugins/loader/webpack.js.map +0 -1
  150. package/dist/plugins/remark/include.d.ts.map +0 -1
  151. package/dist/plugins/remark/include.js.map +0 -1
  152. package/dist/runtime-TETi5Giq.d.ts.map +0 -1
  153. package/dist/runtime-browser-M4sE6SmL.d.ts.map +0 -1
  154. package/dist/store-BC3n1VPY.d.ts.map +0 -1
  155. package/dist/validation-Bf_v2L3p.js.map +0 -1
  156. package/dist/vite/index.d.ts.map +0 -1
  157. package/dist/vite/index.js.map +0 -1
  158. package/dist/vite-DVIOnBqW.js.map +0 -1
@@ -26,5 +26,3 @@ function createCache(store = /* @__PURE__ */ new Map()) {
26
26
  }
27
27
  //#endregion
28
28
  export { createCache as t };
29
-
30
- //# sourceMappingURL=async-cache-C47yxLCv.js.map
package/dist/bin.js CHANGED
@@ -20,5 +20,3 @@ async function start() {
20
20
  start();
21
21
  //#endregion
22
22
  export {};
23
-
24
- //# sourceMappingURL=bin.js.map
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-CiIaOW0V.js";
2
2
  import { t as createCache } from "./async-cache-C47yxLCv.js";
3
- import { t as flattenNode } from "./flatten-m0wfHxLH.js";
3
+ import { t as flattenNode } from "./flatten-Db7WzTB7.js";
4
4
  import { visit } from "unist-util-visit";
5
5
  import { VFile } from "vfile";
6
6
  import { createProcessor } from "@mdx-js/mdx";
@@ -154,5 +154,3 @@ async function buildMDX({ core, collection, filePath, frontmatter, source, compi
154
154
  }
155
155
  //#endregion
156
156
  export { build_mdx_exports as n, buildMDX as t };
157
-
158
- //# sourceMappingURL=build-mdx-C8u32vDa.js.map
@@ -1,4 +1,4 @@
1
- import { n as CoreOptions, t as Core } from "../core-BbTeLenA.js";
1
+ import { n as CoreOptions, t as Core } from "../core-Dmd3yqUH.js";
2
2
  import { BunPlugin } from "bun";
3
3
 
4
4
  //#region src/bun/index.d.ts
@@ -8,5 +8,4 @@ declare class BunCore extends Core {
8
8
  createBunPlugin(): BunPlugin;
9
9
  }
10
10
  //#endregion
11
- export { BunCore, BunOptions, createContent };
12
- //# sourceMappingURL=index.d.ts.map
11
+ export { BunCore, BunOptions, createContent };
package/dist/bun/index.js CHANGED
@@ -27,5 +27,3 @@ var BunCore = class extends Core {
27
27
  };
28
28
  //#endregion
29
29
  export { BunCore, createContent };
30
-
31
- //# sourceMappingURL=index.js.map
@@ -31,5 +31,3 @@ function toBun(test = /.+/, loader) {
31
31
  }
32
32
  //#endregion
33
33
  export { toBun };
34
-
35
- //# sourceMappingURL=bun-NahDFkhR.js.map
@@ -101,5 +101,3 @@ function slash(path) {
101
101
  }
102
102
  //#endregion
103
103
  export { slash as n, CodeGenerator as t };
104
-
105
- //# sourceMappingURL=code-generator-DFGEY6P5.js.map
@@ -1,5 +1,5 @@
1
- import { D as GetCollectionConfig } from "../../core-BbTeLenA.js";
2
- import { t as FileCollectionStore } from "../../file-store-DutRtol_.js";
1
+ import { D as GetCollectionConfig } from "../../core-Dmd3yqUH.js";
2
+ import { t as FileCollectionStore } from "../../file-store-Bs81Afz5.js";
3
3
 
4
4
  //#region src/collections/data/runtime.d.ts
5
5
  declare function dataStore<Config, Name extends string>(_name: Name, base: string, input: Record<string, unknown>): FileCollectionStore<{
@@ -8,5 +8,4 @@ declare function dataStore<Config, Name extends string>(_name: Name, base: strin
8
8
  } ? GetCollectionConfig<Config, Name>["$inferOutput"] : never;
9
9
  }>;
10
10
  //#endregion
11
- export { dataStore };
12
- //# sourceMappingURL=runtime.d.ts.map
11
+ export { dataStore };
@@ -7,5 +7,3 @@ function dataStore(_name, base, input) {
7
7
  }
8
8
  //#endregion
9
9
  export { dataStore };
10
-
11
- //# sourceMappingURL=runtime.js.map
@@ -1,6 +1,6 @@
1
- import { v as AsyncPipe } from "../core-BbTeLenA.js";
2
- import { n as LoaderConfig } from "../index-DVqrqxzl.js";
3
- import { n as FileSystemCollectionConfig, t as FileSystemCollection } from "../fs-KJjb32Nq.js";
1
+ import { v as AsyncPipe } from "../core-Dmd3yqUH.js";
2
+ import { n as LoaderConfig } from "../index-Dfg2QKTT.js";
3
+ import { n as FileSystemCollectionConfig, t as FileSystemCollection } from "../fs-DYfoYdl-.js";
4
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
5
 
6
6
  //#region src/collections/data.d.ts
@@ -42,5 +42,4 @@ declare function dataCollection<Schema extends StandardSchemaV1 | undefined = un
42
42
  declare function yamlLoader(): LoaderConfig;
43
43
  declare function jsonLoader(): LoaderConfig;
44
44
  //#endregion
45
- export { DataCollection, DataCollectionConfig, DataTransformationContext, dataCollection, jsonLoader, yamlLoader };
46
- //# sourceMappingURL=data.d.ts.map
45
+ export { DataCollection, DataCollectionConfig, DataTransformationContext, dataCollection, jsonLoader, yamlLoader };
@@ -101,7 +101,7 @@ function yamlLoader() {
101
101
  };
102
102
  },
103
103
  async createLoader() {
104
- const { createYamlLoader } = await import("../loader-D_sKOzDc.js").then((n) => n.n);
104
+ const { createYamlLoader } = await import("../loader-DJcLC5Gg.js").then((n) => n.n);
105
105
  const core = this.core;
106
106
  return createYamlLoader({ getCore: () => core });
107
107
  }
@@ -146,7 +146,7 @@ function jsonLoader() {
146
146
  };
147
147
  },
148
148
  async createLoader(environment) {
149
- const { createJsonLoader } = await import("../loader-e2SkeDfY.js").then((n) => n.n);
149
+ const { createJsonLoader } = await import("../loader-CORy1xd9.js").then((n) => n.n);
150
150
  const core = this.core;
151
151
  return createJsonLoader({ getCore: () => core }, environment === "vite" ? "json" : "js");
152
152
  }
@@ -154,5 +154,3 @@ function jsonLoader() {
154
154
  }
155
155
  //#endregion
156
156
  export { DataCollection, dataCollection, jsonLoader, yamlLoader };
157
-
158
- //# sourceMappingURL=data.js.map
@@ -1,2 +1,2 @@
1
- import { n as FileSystemCollectionConfig, r as fileSystemCollection, t as FileSystemCollection } from "../fs-KJjb32Nq.js";
1
+ import { n as FileSystemCollectionConfig, r as fileSystemCollection, t as FileSystemCollection } from "../fs-DYfoYdl-.js";
2
2
  export { FileSystemCollection, FileSystemCollectionConfig, fileSystemCollection };
@@ -61,5 +61,3 @@ function fileSystemCollection(config) {
61
61
  }
62
62
  //#endregion
63
63
  export { FileSystemCollection, fileSystemCollection };
64
-
65
- //# sourceMappingURL=fs.js.map
@@ -1,2 +1,2 @@
1
- import { _ as defineCollectionHook, g as CollectionHookContext, h as CollectionHook, m as Collection } from "../core-BbTeLenA.js";
1
+ import { _ as defineCollectionHook, g as CollectionHookContext, h as CollectionHook, m as Collection } from "../core-Dmd3yqUH.js";
2
2
  export { Collection, CollectionHook, CollectionHookContext, defineCollectionHook };
@@ -1,7 +1,6 @@
1
- import { c as WebpackLoader } from "../../index-DVqrqxzl.js";
1
+ import { c as WebpackLoader } from "../../index-Dfg2QKTT.js";
2
2
 
3
3
  //#region src/collections/json/loader-webpack.d.ts
4
4
  declare const _default: WebpackLoader;
5
5
  //#endregion
6
- export { _default as default };
7
- //# sourceMappingURL=loader-webpack.d.ts.map
6
+ export { _default as default };
@@ -1,10 +1,6 @@
1
- import "../../validation-Bf_v2L3p.js";
2
1
  import { createWebpackLoader } from "../../plugins/loader/webpack.js";
3
- import "../../loader-ol04zeoP.js";
4
- import { t as createJsonLoader } from "../../loader-e2SkeDfY.js";
2
+ import { t as createJsonLoader } from "../../loader-CORy1xd9.js";
5
3
  //#region src/collections/json/loader-webpack.ts
6
4
  var loader_webpack_default = createWebpackLoader((core) => createJsonLoader(core, "json"));
7
5
  //#endregion
8
6
  export { loader_webpack_default as default };
9
-
10
- //# sourceMappingURL=loader-webpack.js.map
@@ -1,7 +1,6 @@
1
- import { c as WebpackLoader } from "../../index-DVqrqxzl.js";
1
+ import { c as WebpackLoader } from "../../index-Dfg2QKTT.js";
2
2
 
3
3
  //#region src/collections/mdx/loader-webpack.d.ts
4
4
  declare const _default: WebpackLoader;
5
5
  //#endregion
6
- export { _default as default };
7
- //# sourceMappingURL=loader-webpack.d.ts.map
6
+ export { _default as default };
@@ -1,10 +1,6 @@
1
- import "../../validation-Bf_v2L3p.js";
2
- import "../../fuma-matter-E30PU53R.js";
3
1
  import { createWebpackLoader } from "../../plugins/loader/webpack.js";
4
- import { t as createMdxLoader } from "../../loader-CyhM9SLt.js";
2
+ import { t as createMdxLoader } from "../../loader-BTPxE-0W.js";
5
3
  //#region src/collections/mdx/loader-webpack.ts
6
4
  var loader_webpack_default = createWebpackLoader(createMdxLoader);
7
5
  //#endregion
8
6
  export { loader_webpack_default as default };
9
-
10
- //# sourceMappingURL=loader-webpack.js.map
@@ -1,5 +1,5 @@
1
- import { i as CompiledMDX } from "../../mdx-L0I8mePE.js";
2
- import { t as MDXStoreBrowserData } from "../../runtime-browser-M4sE6SmL.js";
1
+ import { i as CompiledMDX } from "../../mdx-0plToRQa.js";
2
+ import { t as MDXStoreBrowserData } from "../../runtime-browser-CXjm3FXK.js";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/collections/mdx/react.d.ts
@@ -10,5 +10,4 @@ import { ReactNode } from "react";
10
10
  */
11
11
  declare function useRenderer<Frontmatter, Attached>(entry: MDXStoreBrowserData<Frontmatter, Attached> | undefined, renderFn: (data: CompiledMDX<Frontmatter> & Attached) => ReactNode): ReactNode;
12
12
  //#endregion
13
- export { useRenderer };
14
- //# sourceMappingURL=react.d.ts.map
13
+ export { useRenderer };
@@ -31,5 +31,3 @@ function useRenderer(entry, renderFn) {
31
31
  }
32
32
  //#endregion
33
33
  export { useRenderer };
34
-
35
- //# sourceMappingURL=react.js.map
@@ -1,3 +1,3 @@
1
- import { n as _internal_data, r as mdxStoreBrowser, t as MDXStoreBrowserData } from "../../runtime-browser-M4sE6SmL.js";
2
- import { r as WithGit } from "../../runtime-TETi5Giq.js";
1
+ import { n as _internal_data, r as mdxStoreBrowser, t as MDXStoreBrowserData } from "../../runtime-browser-CXjm3FXK.js";
2
+ import { r as WithGit } from "../../runtime-4S3BDs-G.js";
3
3
  export { MDXStoreBrowserData, WithGit, _internal_data, mdxStoreBrowser };
@@ -25,5 +25,3 @@ function mdxStoreBrowser(name, _input) {
25
25
  }
26
26
  //#endregion
27
27
  export { _internal_data, mdxStoreBrowser };
28
-
29
- //# sourceMappingURL=runtime-browser.js.map
@@ -1,7 +1,7 @@
1
- import { D as GetCollectionConfig, n as CoreOptions } from "../../core-BbTeLenA.js";
2
- import { t as FileCollectionStore } from "../../file-store-DutRtol_.js";
3
- import { i as CompiledMDX } from "../../mdx-L0I8mePE.js";
4
- import { r as WithGit } from "../../runtime-TETi5Giq.js";
1
+ import { D as GetCollectionConfig, n as CoreOptions } from "../../core-Dmd3yqUH.js";
2
+ import { t as FileCollectionStore } from "../../file-store-Bs81Afz5.js";
3
+ import { i as CompiledMDX } from "../../mdx-0plToRQa.js";
4
+ import { r as WithGit } from "../../runtime-4S3BDs-G.js";
5
5
  import { MDXContent } from "mdx/types";
6
6
 
7
7
  //#region src/collections/mdx/runtime-dynamic.d.ts
@@ -16,5 +16,4 @@ type GetFrontmatter<Config, Name extends string> = GetCollectionConfig<Config, N
16
16
  declare function mdxStoreDynamic<Config, Name extends string, Attached>(config: Config, coreOptions: CoreOptions, name: Name, base: string, _frontmatter: Record<string, unknown>, jsxRuntime: unknown): Promise<FileCollectionStore<MDXStoreDynamicData<GetFrontmatter<Config, Name>, Attached>>>;
17
17
  type MdxContent = MDXContent;
18
18
  //#endregion
19
- export { MDXStoreDynamicData, MdxContent, type WithGit, mdxStoreDynamic };
20
- //# sourceMappingURL=runtime-dynamic.d.ts.map
19
+ export { MDXStoreDynamicData, MdxContent, type WithGit, mdxStoreDynamic };
@@ -1,10 +1,9 @@
1
1
  import { t as Core } from "../../core-CrYszxmc.js";
2
- import "../../validation-Bf_v2L3p.js";
3
2
  import { t as createCache } from "../../async-cache-C47yxLCv.js";
4
3
  import { MDXCollection } from "../mdx.js";
5
- import { t as fumaMatter } from "../../fuma-matter-E30PU53R.js";
4
+ import { parseFrontmatter } from "../../utils/frontmatter.js";
6
5
  import { FileCollectionStore } from "../runtime/file-store.js";
7
- import { t as buildMDX } from "../../build-mdx-C8u32vDa.js";
6
+ import { t as buildMDX } from "../../build-mdx-DjMJg3TP.js";
8
7
  import fs from "node:fs/promises";
9
8
  import path from "node:path";
10
9
  import { pathToFileURL } from "node:url";
@@ -29,7 +28,7 @@ async function mdxStoreDynamic(config, coreOptions, name, base, _frontmatter, js
29
28
  return cache.cached(k, async () => {
30
29
  const filePath = path.join(base, k);
31
30
  let content = (await fs.readFile(filePath)).toString();
32
- content = fumaMatter(content).content;
31
+ content = parseFrontmatter(content).content;
33
32
  const compiled = await buildMDX({
34
33
  core,
35
34
  collection,
@@ -69,5 +68,3 @@ async function executeMdx(compiled, options = {}) {
69
68
  }
70
69
  //#endregion
71
70
  export { mdxStoreDynamic };
72
-
73
- //# sourceMappingURL=runtime-dynamic.js.map
@@ -1,2 +1,2 @@
1
- import { a as mdxStoreLazy, i as mdxStore, n as MDXStoreLazyData, r as WithGit, t as MDXStoreData } from "../../runtime-TETi5Giq.js";
1
+ import { a as mdxStoreLazy, i as mdxStore, n as MDXStoreLazyData, r as WithGit, t as MDXStoreData } from "../../runtime-4S3BDs-G.js";
2
2
  export { MDXStoreData, MDXStoreLazyData, WithGit, mdxStore, mdxStoreLazy };
@@ -21,5 +21,3 @@ function mdxStoreLazy(_name, base, _input) {
21
21
  }
22
22
  //#endregion
23
23
  export { mdxStore, mdxStoreLazy };
24
-
25
- //# sourceMappingURL=runtime.js.map
@@ -1,10 +1,10 @@
1
- import { i as CompiledMDX } from "../../mdx-L0I8mePE.js";
2
- import { t as MDXStoreBrowserData } from "../../runtime-browser-M4sE6SmL.js";
3
- import * as vue from "vue";
1
+ import { i as CompiledMDX } from "../../mdx-0plToRQa.js";
2
+ import { t as MDXStoreBrowserData } from "../../runtime-browser-CXjm3FXK.js";
3
+ import * as _$vue from "vue";
4
4
 
5
5
  //#region src/collections/mdx/vue.vue.d.ts
6
6
  declare const __VLS_export: <Frontmatter, Attached = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
- props: vue.PublicProps & __VLS_PrettifyLocal<{
7
+ props: _$vue.PublicProps & __VLS_PrettifyLocal<{
8
8
  entry?: MDXStoreBrowserData<Frontmatter, Attached>;
9
9
  }> & (typeof globalThis extends {
10
10
  __VLS_PROPS_FALLBACK: infer P;
@@ -17,11 +17,10 @@ declare const __VLS_export: <Frontmatter, Attached = unknown>(__VLS_props: NonNu
17
17
  }) => any;
18
18
  };
19
19
  emit: {};
20
- }>) => vue.VNode & {
20
+ }>) => _$vue.VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
23
23
  declare const _default: typeof __VLS_export;
24
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=vue.vue.d.ts.map
24
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
25
25
  //#endregion
26
- export { _default as Vue };
27
- //# sourceMappingURL=vue.d.ts.map
26
+ export { _default as Vue };
@@ -30,5 +30,3 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  });
31
31
  //#endregion
32
32
  export { _sfc_main as Vue };
33
-
34
- //# sourceMappingURL=vue.js.map
@@ -1,2 +1,2 @@
1
- import { a as LinkReference, i as CompiledMDX, n as MDXCollectionConfig, r as mdxCollection, t as MDXCollection } from "../mdx-L0I8mePE.js";
1
+ import { a as LinkReference, i as CompiledMDX, n as MDXCollectionConfig, r as mdxCollection, t as MDXCollection } from "../mdx-0plToRQa.js";
2
2
  export { CompiledMDX, LinkReference, MDXCollection, MDXCollectionConfig, mdxCollection };
@@ -312,12 +312,10 @@ function mdxLoader() {
312
312
  };
313
313
  },
314
314
  async createLoader() {
315
- const { createMdxLoader } = await import("../loader-CyhM9SLt.js").then((n) => n.n);
315
+ const { createMdxLoader } = await import("../loader-BTPxE-0W.js").then((n) => n.n);
316
316
  return createMdxLoader({ getCore: () => this.core });
317
317
  }
318
318
  };
319
319
  }
320
320
  //#endregion
321
321
  export { MDXCollection, mdxCollection };
322
-
323
- //# sourceMappingURL=mdx.js.map
@@ -1,9 +1,8 @@
1
- import { n as MDXCollectionConfig, t as MDXCollection } from "../mdx-L0I8mePE.js";
1
+ import { n as MDXCollectionConfig, t as MDXCollection } from "../mdx-0plToRQa.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
 
4
4
  //#region src/collections/obsidian.d.ts
5
5
  type MDXObsidianCollectionConfig<FrontmatterSchema extends StandardSchemaV1 | undefined = undefined> = MDXCollectionConfig<FrontmatterSchema>;
6
6
  declare function mdxObsidianCollection<FrontmatterSchema extends StandardSchemaV1 | undefined = undefined>(config: MDXObsidianCollectionConfig<FrontmatterSchema>): MDXCollection<FrontmatterSchema>;
7
7
  //#endregion
8
- export { MDXObsidianCollectionConfig, mdxObsidianCollection };
9
- //# sourceMappingURL=obsidian.d.ts.map
8
+ export { MDXObsidianCollectionConfig, mdxObsidianCollection };
@@ -1,8 +1,7 @@
1
1
  import { n as slash } from "../code-generator-DFGEY6P5.js";
2
- import "../validation-Bf_v2L3p.js";
3
2
  import { MDXCollection, mdxCollection } from "./mdx.js";
4
- import { t as fumaMatter } from "../fuma-matter-E30PU53R.js";
5
- import { t as flattenNode } from "../flatten-m0wfHxLH.js";
3
+ import { parseFrontmatter } from "../utils/frontmatter.js";
4
+ import { t as flattenNode } from "../flatten-Db7WzTB7.js";
6
5
  import { remarkInclude } from "../plugins/remark/include.js";
7
6
  import { readFile } from "node:fs/promises";
8
7
  import path from "node:path";
@@ -47,7 +46,7 @@ async function buildStorage(options) {
47
46
  case ".md":
48
47
  case ".mdx": {
49
48
  const rawContent = await raw.read();
50
- const { data, content } = fumaMatter(rawContent);
49
+ const { data, content } = parseFrontmatter(rawContent);
51
50
  if (enforceMdx) outPath = outPath.slice(0, -path.extname(outPath).length) + ".mdx";
52
51
  parsed = {
53
52
  format: "content",
@@ -534,5 +533,3 @@ function mdxObsidianCollection(config) {
534
533
  }
535
534
  //#endregion
536
535
  export { mdxObsidianCollection };
537
-
538
- //# sourceMappingURL=obsidian.js.map
@@ -1,2 +1,2 @@
1
- import { n as FileInfo, t as FileCollectionStore } from "../../file-store-DutRtol_.js";
1
+ import { n as FileInfo, t as FileCollectionStore } from "../../file-store-Bs81Afz5.js";
2
2
  export { FileCollectionStore, FileInfo };
@@ -24,5 +24,3 @@ var FileCollectionStore = class extends MapCollectionStore {
24
24
  };
25
25
  //#endregion
26
26
  export { FileCollectionStore };
27
-
28
- //# sourceMappingURL=file-store.js.map
@@ -1,2 +1,2 @@
1
- import { n as MapCollectionStore, t as CollectionStore } from "../../store-BC3n1VPY.js";
1
+ import { n as MapCollectionStore, t as CollectionStore } from "../../store-j10gHjm1.js";
2
2
  export { CollectionStore, MapCollectionStore };
@@ -30,5 +30,3 @@ var MapCollectionStore = class MapCollectionStore {
30
30
  };
31
31
  //#endregion
32
32
  export { MapCollectionStore };
33
-
34
- //# sourceMappingURL=store.js.map
@@ -1,7 +1,6 @@
1
- import { c as WebpackLoader } from "../../index-DVqrqxzl.js";
1
+ import { c as WebpackLoader } from "../../index-Dfg2QKTT.js";
2
2
 
3
3
  //#region src/collections/yaml/loader-webpack.d.ts
4
4
  declare const _default: WebpackLoader;
5
5
  //#endregion
6
- export { _default as default };
7
- //# sourceMappingURL=loader-webpack.d.ts.map
6
+ export { _default as default };
@@ -1,10 +1,6 @@
1
- import "../../validation-Bf_v2L3p.js";
2
1
  import { createWebpackLoader } from "../../plugins/loader/webpack.js";
3
- import "../../loader-ol04zeoP.js";
4
- import { t as createYamlLoader } from "../../loader-D_sKOzDc.js";
2
+ import { t as createYamlLoader } from "../../loader-DJcLC5Gg.js";
5
3
  //#region src/collections/yaml/loader-webpack.ts
6
4
  var loader_webpack_default = createWebpackLoader((core) => createYamlLoader(core));
7
5
  //#endregion
8
6
  export { loader_webpack_default as default };
9
-
10
- //# sourceMappingURL=loader-webpack.js.map
@@ -90,5 +90,3 @@ function defineCollectionHook(...args) {
90
90
  }
91
91
  //#endregion
92
92
  export { asyncHook as a, pipe as i, defineCollectionHook as n, hook as o, asyncPipe as r, Collection as t };
93
-
94
- //# sourceMappingURL=collections-Bl9hpWMS.js.map
@@ -1,2 +1,2 @@
1
- import { A as GlobalConfig, M as defineConfig, O as CollectionsPack, j as WorkspaceConfig, k as EmitConfig } from "../core-BbTeLenA.js";
1
+ import { A as GlobalConfig, M as defineConfig, O as CollectionsPack, j as WorkspaceConfig, k as EmitConfig } from "../core-Dmd3yqUH.js";
2
2
  export { CollectionsPack, EmitConfig, GlobalConfig, WorkspaceConfig, defineConfig };
@@ -4,5 +4,3 @@ function defineConfig(config = {}) {
4
4
  }
5
5
  //#endregion
6
6
  export { defineConfig };
7
-
8
- //# sourceMappingURL=index.js.map
@@ -216,5 +216,3 @@ var Core = class Core {
216
216
  };
217
217
  //#endregion
218
218
  export { Core as t };
219
-
220
- //# sourceMappingURL=core-CrYszxmc.js.map
@@ -311,5 +311,4 @@ declare class Core {
311
311
  private initConfig;
312
312
  }
313
313
  //#endregion
314
- export { GlobalConfig as A, Hook as C, GetCollectionConfig as D, Awaitable as E, defineConfig as M, CollectionsPack as O, AsyncHook as S, hook as T, defineCollectionHook as _, EmitOptions as a, asyncPipe as b, PluginContext as c, ResolvedCoreOptions as d, ServerContext as f, CollectionHookContext as g, CollectionHook as h, EmitEntry as i, WorkspaceConfig as j, EmitConfig as k, PluginOption$1 as l, Collection as m, CoreOptions as n, EmitOutput as o, CodeGenerator as p, EmitContext as r, Plugin as s, Core as t, ResolvedConfig as u, AsyncPipe as v, asyncHook as w, pipe as x, Pipe as y };
315
- //# sourceMappingURL=core-BbTeLenA.d.ts.map
314
+ export { GlobalConfig as A, Hook as C, GetCollectionConfig as D, Awaitable as E, defineConfig as M, CollectionsPack as O, AsyncHook as S, hook as T, defineCollectionHook as _, EmitOptions as a, asyncPipe as b, PluginContext as c, ResolvedCoreOptions as d, ServerContext as f, CollectionHookContext as g, CollectionHook as h, EmitEntry as i, WorkspaceConfig as j, EmitConfig as k, PluginOption$1 as l, Collection as m, CoreOptions as n, EmitOutput as o, CodeGenerator as p, EmitContext as r, Plugin as s, Core as t, ResolvedConfig as u, AsyncPipe as v, asyncHook as w, pipe as x, Pipe as y };
@@ -1,4 +1,4 @@
1
- import { t as Core } from "./core-BbTeLenA.js";
1
+ import { t as Core } from "./core-Dmd3yqUH.js";
2
2
 
3
3
  //#region src/config/load-from-file.d.ts
4
4
  /**
@@ -28,5 +28,4 @@ declare function createDynamicCore({
28
28
  mode: "dev" | "production";
29
29
  }): DynamicCore;
30
30
  //#endregion
31
- export { createDynamicCore as n, DynamicCore as t };
32
- //# sourceMappingURL=dynamic-CNEaikCN.d.ts.map
31
+ export { createDynamicCore as n, DynamicCore as t };
package/dist/dynamic.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as createDynamicCore, t as DynamicCore } from "./dynamic-CNEaikCN.js";
1
+ import { n as createDynamicCore, t as DynamicCore } from "./dynamic-C15fv7uG.js";
2
2
  export { DynamicCore, createDynamicCore };
package/dist/dynamic.js CHANGED
@@ -9,7 +9,7 @@ function createDynamicCore({ core, compileMode = true, mode }) {
9
9
  })).mtime.getTime().toString();
10
10
  }
11
11
  async function init() {
12
- const { loadConfig } = await import("./load-from-file-C3CnD8mJ.js").then((n) => n.n);
12
+ const { loadConfig } = await import("./load-from-file-DpW8who8.js").then((n) => n.n);
13
13
  await core.init({ config: loadConfig(core, compileMode) });
14
14
  }
15
15
  return { async getCore() {
@@ -24,5 +24,3 @@ function createDynamicCore({ core, compileMode = true, mode }) {
24
24
  }
25
25
  //#endregion
26
26
  export { createDynamicCore };
27
-
28
- //# sourceMappingURL=dynamic.js.map
@@ -1,4 +1,4 @@
1
- import { n as MapCollectionStore } from "./store-BC3n1VPY.js";
1
+ import { n as MapCollectionStore } from "./store-j10gHjm1.js";
2
2
 
3
3
  //#region src/collections/runtime/file-store.d.ts
4
4
  interface FileInfo {
@@ -16,5 +16,4 @@ declare class FileCollectionStore<V> extends MapCollectionStore<string, FileInfo
16
16
  castData<T>(_cast: (input: FileInfo & V) => FileInfo & T): FileCollectionStore<T>;
17
17
  }
18
18
  //#endregion
19
- export { FileInfo as n, FileCollectionStore as t };
20
- //# sourceMappingURL=file-store-DutRtol_.d.ts.map
19
+ export { FileInfo as n, FileCollectionStore as t };
@@ -6,5 +6,3 @@ function flattenNode(node) {
6
6
  }
7
7
  //#endregion
8
8
  export { flattenNode as t };
9
-
10
- //# sourceMappingURL=flatten-m0wfHxLH.js.map
@@ -1,4 +1,4 @@
1
- import { m as Collection } from "./core-BbTeLenA.js";
1
+ import { m as Collection } from "./core-Dmd3yqUH.js";
2
2
 
3
3
  //#region src/collections/fs.d.ts
4
4
  declare class FileSystemCollection extends Collection {
@@ -37,5 +37,4 @@ interface FileSystemCollectionConfig {
37
37
  }
38
38
  declare function fileSystemCollection(config: FileSystemCollectionConfig): FileSystemCollection;
39
39
  //#endregion
40
- export { FileSystemCollectionConfig as n, fileSystemCollection as r, FileSystemCollection as t };
41
- //# sourceMappingURL=fs-KJjb32Nq.d.ts.map
40
+ export { FileSystemCollectionConfig as n, fileSystemCollection as r, FileSystemCollection as t };
@@ -1,4 +1,4 @@
1
- import { S as AsyncHook, h as CollectionHook, s as Plugin } from "./core-BbTeLenA.js";
1
+ import { S as AsyncHook, h as CollectionHook, s as Plugin } from "./core-Dmd3yqUH.js";
2
2
 
3
3
  //#region src/plugins/git.d.ts
4
4
  interface GitFileData {
@@ -33,5 +33,4 @@ interface GitClient {
33
33
  }) => Promise<GitFileData>;
34
34
  }
35
35
  //#endregion
36
- export { gitHook as a, git as i, GitFileData as n, GitHook as r, GitClient as t };
37
- //# sourceMappingURL=git-BxnPg5Ao.d.ts.map
36
+ export { gitHook as a, git as i, GitFileData as n, GitHook as r, GitClient as t };
@@ -1,5 +1,5 @@
1
- import { c as PluginContext, h as CollectionHook, s as Plugin } from "./core-BbTeLenA.js";
2
- import { t as DynamicCore } from "./dynamic-CNEaikCN.js";
1
+ import { c as PluginContext, h as CollectionHook, s as Plugin } from "./core-Dmd3yqUH.js";
2
+ import { t as DynamicCore } from "./dynamic-C15fv7uG.js";
3
3
  import { NextConfig } from "next";
4
4
  import { LoaderContext } from "webpack";
5
5
 
@@ -80,5 +80,4 @@ interface LoaderHook {
80
80
  }
81
81
  declare const loaderHook: CollectionHook<LoaderHook, undefined>;
82
82
  //#endregion
83
- export { LoaderOutput as a, WebpackLoader as c, LoaderInput as i, WebpackLoaderOptions as l, LoaderConfig as n, loaderHook as o, LoaderHook as r, loaderPlugin as s, Loader as t, createWebpackLoader as u };
84
- //# sourceMappingURL=index-DVqrqxzl.d.ts.map
83
+ export { LoaderOutput as a, WebpackLoader as c, LoaderInput as i, WebpackLoaderOptions as l, LoaderConfig as n, loaderHook as o, LoaderHook as r, loaderPlugin as s, Loader as t, createWebpackLoader as u };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Hook, D as GetCollectionConfig, S as AsyncHook, T as hook, a as EmitOptions, b as asyncPipe, c as PluginContext, d as ResolvedCoreOptions, f as ServerContext, i as EmitEntry, l as PluginOption, n as CoreOptions, o as EmitOutput, r as EmitContext, s as Plugin, t as Core, u as ResolvedConfig, v as AsyncPipe, w as asyncHook, x as pipe, y as Pipe } from "./core-BbTeLenA.js";
1
+ import { C as Hook, D as GetCollectionConfig, S as AsyncHook, T as hook, a as EmitOptions, b as asyncPipe, c as PluginContext, d as ResolvedCoreOptions, f as ServerContext, i as EmitEntry, l as PluginOption, n as CoreOptions, o as EmitOutput, r as EmitContext, s as Plugin, t as Core, u as ResolvedConfig, v as AsyncPipe, w as asyncHook, x as pipe, y as Pipe } from "./core-Dmd3yqUH.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
 
4
4
  //#region src/utils/validation.d.ts
@@ -14,5 +14,4 @@ declare function validate<Schema extends StandardSchemaV1, Context>(schema: Stan
14
14
  */
15
15
  declare function getJSONSchema(schema: StandardSchemaV1): Record<string, unknown> | undefined;
16
16
  //#endregion
17
- export { AsyncHook, AsyncPipe, Core, CoreOptions, EmitContext, EmitEntry, EmitOptions, EmitOutput, type GetCollectionConfig, Hook, Pipe, Plugin, PluginContext, PluginOption, ResolvedConfig, ResolvedCoreOptions, ServerContext, ValidationError, asyncHook, asyncPipe, getJSONSchema, hook, pipe, validate };
18
- //# sourceMappingURL=index.d.ts.map
17
+ export { AsyncHook, AsyncPipe, Core, CoreOptions, EmitContext, EmitEntry, EmitOptions, EmitOutput, type GetCollectionConfig, Hook, Pipe, Plugin, PluginContext, PluginOption, ResolvedConfig, ResolvedCoreOptions, ServerContext, ValidationError, asyncHook, asyncPipe, getJSONSchema, hook, pipe, validate };
@@ -4,5 +4,3 @@ function isPromiseLike(v) {
4
4
  }
5
5
  //#endregion
6
6
  export { isPromiseLike as t };
7
-
8
- //# sourceMappingURL=is-promise-like-C04ERo2r.js.map
@@ -32,5 +32,3 @@ async function loadConfig(core, compileMode) {
32
32
  }
33
33
  //#endregion
34
34
  export { load_from_file_exports as n, loadConfig as t };
35
-
36
- //# sourceMappingURL=load-from-file-C3CnD8mJ.js.map
@@ -54,5 +54,3 @@ function createDataLoader({ getCore }, parse, moduleType = "js") {
54
54
  }
55
55
  //#endregion
56
56
  export { createDataLoader as t };
57
-
58
- //# sourceMappingURL=loader-ol04zeoP.js.map