fumadocs-core 16.7.16 → 16.8.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 (119) hide show
  1. package/dist/{advanced-BCAHgGV0.js → advanced-Tvsn2Nn4.js} +1 -1
  2. package/dist/{algolia-ZyQLVdey.d.ts → algolia-BvGetcJs.d.ts} +1 -1
  3. package/dist/breadcrumb.d.ts +1 -1
  4. package/dist/{build-doc-DBVRblOC.js → build-doc-DH9A5-KD.js} +1 -1
  5. package/dist/{client-BRJhJ58c.d.ts → client-Dyup8E6r.d.ts} +3 -3
  6. package/dist/content/md/frontmatter.d.ts +15 -0
  7. package/dist/content/md/frontmatter.js +24 -0
  8. package/dist/content/mdx/preset-bundler.d.ts +7 -7
  9. package/dist/content/mdx/preset-bundler.js +1 -1
  10. package/dist/content/mdx/preset-runtime.d.ts +7 -7
  11. package/dist/content/mdx/preset-runtime.js +1 -1
  12. package/dist/content/toc.d.ts +1 -1
  13. package/dist/highlight/shiki/full.d.ts +1 -1
  14. package/dist/highlight/shiki/index.d.ts +1 -1
  15. package/dist/highlight/shiki/react.d.ts +2 -2
  16. package/dist/i18n/index.d.ts +1 -1
  17. package/dist/i18n/middleware.d.ts +1 -1
  18. package/dist/{index-B-4lKkNh2.d.ts → index-5SWg3Kgu2.d.ts} +1 -1
  19. package/dist/{index-DxyTmDjY.d.ts → index-DzLmtQFW.d.ts} +1 -1
  20. package/dist/{index-B518t-3i.d.ts → index-nW94Fpi3.d.ts} +1 -1
  21. package/dist/{index-gTnj-v3t.d.ts → index-vYFNSGnq.d.ts} +207 -162
  22. package/dist/loader-EZG5Wob-.js +748 -0
  23. package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
  24. package/dist/mdx-plugins/index.d.ts +17 -17
  25. package/dist/mdx-plugins/index.js +1 -1
  26. package/dist/mdx-plugins/rehype-code.core.d.ts +1 -1
  27. package/dist/mdx-plugins/rehype-code.core.js +1 -1
  28. package/dist/mdx-plugins/rehype-code.d.ts +2 -2
  29. package/dist/mdx-plugins/rehype-code.js +1 -1
  30. package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
  31. package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
  32. package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
  33. package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
  34. package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
  35. package/dist/mdx-plugins/remark-gfm.d.ts +1 -1
  36. package/dist/mdx-plugins/remark-heading.d.ts +1 -1
  37. package/dist/mdx-plugins/remark-image.d.ts +1 -1
  38. package/dist/mdx-plugins/remark-image.js +2 -2
  39. package/dist/mdx-plugins/remark-llms.d.ts +1 -1
  40. package/dist/mdx-plugins/remark-llms.runtime.d.ts +1 -1
  41. package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
  42. package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
  43. package/dist/mdx-plugins/remark-npm.d.ts +1 -1
  44. package/dist/mdx-plugins/remark-steps.d.ts +1 -1
  45. package/dist/mdx-plugins/remark-structure.d.ts +1 -1
  46. package/dist/mdx-plugins/stringifier.d.ts +1 -1
  47. package/dist/page-tree/index.d.ts +2 -2
  48. package/dist/{rehype-code-RQFGrMHT.d.ts → rehype-code-DXCf4vCa.d.ts} +1 -1
  49. package/dist/{rehype-code.core-AKfLRGV3.d.ts → rehype-code.core-BZyEKRRx.d.ts} +2 -2
  50. package/dist/{rehype-code.core-n_TXY2L8.js → rehype-code.core-Cz33III3.js} +321 -1
  51. package/dist/{remark-heading-DJvYcq64.d.ts → remark-heading-BkmtL7mJ.d.ts} +1 -1
  52. package/dist/{remark-llms-Dwjerpo2.d.ts → remark-llms-CC6AjEDH.d.ts} +1 -1
  53. package/dist/{remark-structure-BxbC5Buc.d.ts → remark-structure-C2-K9_ko.d.ts} +1 -1
  54. package/dist/search/algolia.d.ts +1 -1
  55. package/dist/search/client/algolia.d.ts +1 -1
  56. package/dist/search/client/fetch.d.ts +1 -1
  57. package/dist/search/client/flexsearch-static.d.ts +1 -1
  58. package/dist/search/client/flexsearch-static.js +1 -1
  59. package/dist/search/client/mixedbread.d.ts +1 -1
  60. package/dist/search/client/mixedbread.js +1 -1
  61. package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
  62. package/dist/search/client/orama-cloud-legacy.js +1 -1
  63. package/dist/search/client/orama-cloud.d.ts +1 -1
  64. package/dist/search/client/orama-cloud.js +1 -1
  65. package/dist/search/client/orama-static.d.ts +1 -1
  66. package/dist/search/client/orama-static.js +1 -1
  67. package/dist/search/client.d.ts +1 -1
  68. package/dist/search/flexsearch.d.ts +9 -6
  69. package/dist/search/flexsearch.js +43 -19
  70. package/dist/search/index.d.ts +1 -1
  71. package/dist/search/mixedbread.d.ts +2 -2
  72. package/dist/search/mixedbread.js +2 -2
  73. package/dist/search/orama-cloud-legacy.d.ts +1 -1
  74. package/dist/search/orama-cloud.d.ts +1 -1
  75. package/dist/search/server.d.ts +1 -1
  76. package/dist/search/server.js +42 -33
  77. package/dist/{server-DSoALz54.d.ts → server-CYtF8IuH.d.ts} +10 -7
  78. package/dist/source/client/index.d.ts +1 -1
  79. package/dist/source/dynamic.d.ts +2 -0
  80. package/dist/source/dynamic.js +63 -0
  81. package/dist/source/index.d.ts +2 -2
  82. package/dist/source/index.js +5 -796
  83. package/dist/source/llms.d.ts +2 -0
  84. package/dist/source/llms.js +66 -0
  85. package/dist/source/plugins/lucide-icons.d.ts +1 -1
  86. package/dist/source/plugins/lucide-icons.js +1 -1
  87. package/dist/source/plugins/slugs.d.ts +1 -1
  88. package/dist/source/plugins/slugs.js +1 -1
  89. package/dist/source/plugins/status-badges.d.ts +2 -2
  90. package/dist/toc.d.ts +1 -1
  91. package/package.json +8 -2
  92. /package/dist/{codeblock-utils-D1ODmcHy.d.ts → codeblock-utils-BFx9G8T-.d.ts} +0 -0
  93. /package/dist/{definitions-57FFofI9.d.ts → definitions-Cob-Q8-8.d.ts} +0 -0
  94. /package/dist/{dist-BvM8AIGy.js → dist-Deq67Kq0.js} +0 -0
  95. /package/dist/{endpoint-CAUHRXte.js → endpoint-BIAOm-1v.js} +0 -0
  96. /package/dist/{fromFile-Fn_3e7Ng.js → fromFile-BO-SGwwS.js} +0 -0
  97. /package/dist/{icon-CboA1P8m.js → icon-Cibw_sJ6.js} +0 -0
  98. /package/dist/{index-GHkAEvmO.d.ts → index-CnkxgKNd.d.ts} +0 -0
  99. /package/dist/{index-CRLkAaM0.d.ts → index-DaiDEfiL.d.ts} +0 -0
  100. /package/dist/{path-v4s3P8pA.js → path-ClKaiDuq.js} +0 -0
  101. /package/dist/{rehype-toc-wIDEJODt.d.ts → rehype-toc-D5_U8iEU.d.ts} +0 -0
  102. /package/dist/{remark-admonition-CfMnMJY5.d.ts → remark-admonition-Do12F5_K.d.ts} +0 -0
  103. /package/dist/{remark-code-tab-BC5W5GqG.d.ts → remark-code-tab-B8g4pbaL.d.ts} +0 -0
  104. /package/dist/{remark-directive-admonition-CUXTwdDg.d.ts → remark-directive-admonition-WTw742i0.d.ts} +0 -0
  105. /package/dist/{remark-feedback-block-Bd_7j2CA.d.ts → remark-feedback-block-CF-ABTc-.d.ts} +0 -0
  106. /package/dist/{remark-gfm-D9aa2ppr.d.ts → remark-gfm-Cv2b95uW.d.ts} +0 -0
  107. /package/dist/{remark-image-CSTFtaeg.d.ts → remark-image-B8S2Lk0J.d.ts} +0 -0
  108. /package/dist/{remark-mdx-files-Cv1mLv9_.d.ts → remark-mdx-files-DXcBGoX9.d.ts} +0 -0
  109. /package/dist/{remark-mdx-mermaid-DKj2NHxp.d.ts → remark-mdx-mermaid-CQU6XhYd.d.ts} +0 -0
  110. /package/dist/{remark-npm-BQkE8_Hf.d.ts → remark-npm-BZsXR24w.d.ts} +0 -0
  111. /package/dist/{remark-steps-BmZAJIGA.d.ts → remark-steps-BcG9tJSi.d.ts} +0 -0
  112. /package/dist/{remove-markdown-D2ifi9PZ.js → remove-markdown-B9biXFjm.js} +0 -0
  113. /package/dist/{remove-undefined-CTqT55E9.js → remove-undefined-C3ZKZLEo.js} +0 -0
  114. /package/dist/{stringifier-B2PmymrT.d.ts → stringifier-B_MrdMwd.d.ts} +0 -0
  115. /package/dist/{toc-CZK90oS5.d.ts → toc-B04VAipv.d.ts} +0 -0
  116. /package/dist/{types-RCtxugu0.d.ts → types-DpbpliNk.d.ts} +0 -0
  117. /package/dist/{util-BvKVaD5t.d.ts → util-D7vTp-Ia.d.ts} +0 -0
  118. /package/dist/{util-DEs3M9dw.js → util-DKxlHpW7.js} +0 -0
  119. /package/dist/{utils-CkDkYuX8.js → utils-DMOkhB3T.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { createContentHighlighter } from "./search/index.js";
2
- import { t as removeUndefined } from "./remove-undefined-CTqT55E9.js";
2
+ import { t as removeUndefined } from "./remove-undefined-C3ZKZLEo.js";
3
3
  import { getByID, search } from "@orama/orama";
4
4
  //#region src/search/orama/search/simple.ts
5
5
  async function searchSimple(db, query, params = {}) {
@@ -1,4 +1,4 @@
1
- import { i as StructuredData } from "./remark-structure-BxbC5Buc.js";
1
+ import { i as StructuredData } from "./remark-structure-C2-K9_ko.js";
2
2
  import { Algoliasearch } from "algoliasearch";
3
3
 
4
4
  //#region src/search/algolia.d.ts
@@ -1,4 +1,4 @@
1
- import { i as Root, r as Node, t as Folder } from "./definitions-57FFofI9.js";
1
+ import { i as Root, r as Node, t as Folder } from "./definitions-Cob-Q8-8.js";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/breadcrumb.d.ts
@@ -1,5 +1,5 @@
1
1
  import { r as findPath } from "./utils-BFW0mEx9.js";
2
- import { r as extname, t as basename } from "./path-v4s3P8pA.js";
2
+ import { r as extname, t as basename } from "./path-ClKaiDuq.js";
3
3
  //#region src/search/server/build-index.ts
4
4
  async function buildIndexDefault(page) {
5
5
  let structuredData;
@@ -1,6 +1,6 @@
1
- import { t as Awaitable } from "./types-RCtxugu0.js";
2
- import { t as BaseIndex } from "./algolia-ZyQLVdey.js";
3
- import { r as SortedResult } from "./index-GHkAEvmO.js";
1
+ import { t as Awaitable } from "./types-DpbpliNk.js";
2
+ import { t as BaseIndex } from "./algolia-BvGetcJs.js";
3
+ import { r as SortedResult } from "./index-CnkxgKNd.js";
4
4
  import { DependencyList } from "react";
5
5
  import { AnyOrama, Orama, SearchParams } from "@orama/orama";
6
6
  import { LiteClient, SearchResponse } from "algoliasearch/lite";
@@ -0,0 +1,15 @@
1
+ //#region src/content/md/frontmatter.d.ts
2
+ interface Output {
3
+ /**
4
+ * The matter section, including the delimiter.
5
+ */
6
+ matter: string;
7
+ content: string;
8
+ data: unknown;
9
+ }
10
+ /**
11
+ * parse frontmatter, it supports only yaml format
12
+ */
13
+ declare function frontmatter(input: string): Output;
14
+ //#endregion
15
+ export { frontmatter };
@@ -0,0 +1,24 @@
1
+ import { load } from "js-yaml";
2
+ //#region src/content/md/frontmatter.ts
3
+ /**
4
+ * Inspired by https://github.com/jonschlinkert/gray-matter
5
+ */
6
+ const regex = /^---\r?\n(.+?)\r?\n---\r?\n?/s;
7
+ /**
8
+ * parse frontmatter, it supports only yaml format
9
+ */
10
+ function frontmatter(input) {
11
+ const output = {
12
+ matter: "",
13
+ data: {},
14
+ content: input
15
+ };
16
+ const match = regex.exec(input);
17
+ if (!match) return output;
18
+ output.matter = match[0];
19
+ output.content = input.slice(match[0].length);
20
+ output.data = load(match[1]) ?? {};
21
+ return output;
22
+ }
23
+ //#endregion
24
+ export { frontmatter };
@@ -1,10 +1,10 @@
1
- import { t as RehypeCodeOptions } from "../../rehype-code-RQFGrMHT.js";
2
- import { t as RemarkImageOptions } from "../../remark-image-CSTFtaeg.js";
3
- import { r as StructureOptions } from "../../remark-structure-BxbC5Buc.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-DJvYcq64.js";
5
- import { t as RemarkCodeTabOptions } from "../../remark-code-tab-BC5W5GqG.js";
6
- import { t as RemarkNpmOptions } from "../../remark-npm-BQkE8_Hf.js";
7
- import { t as ResolvePlugins } from "../../util-BvKVaD5t.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-DXCf4vCa.js";
2
+ import { t as RemarkImageOptions } from "../../remark-image-B8S2Lk0J.js";
3
+ import { r as StructureOptions } from "../../remark-structure-C2-K9_ko.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-BkmtL7mJ.js";
5
+ import { t as RemarkCodeTabOptions } from "../../remark-code-tab-B8g4pbaL.js";
6
+ import { t as RemarkNpmOptions } from "../../remark-npm-BZsXR24w.js";
7
+ import { t as ResolvePlugins } from "../../util-D7vTp-Ia.js";
8
8
  import { Pluggable } from "unified";
9
9
  import { ProcessorOptions } from "@mdx-js/mdx";
10
10
 
@@ -1,4 +1,4 @@
1
- import { t as resolvePlugins } from "../../util-DEs3M9dw.js";
1
+ import { t as resolvePlugins } from "../../util-DKxlHpW7.js";
2
2
  //#region src/content/mdx/preset-bundler.ts
3
3
  /**
4
4
  * apply MDX processor presets
@@ -1,10 +1,10 @@
1
- import { t as RehypeCodeOptions } from "../../rehype-code-RQFGrMHT.js";
2
- import { t as RemarkImageOptions } from "../../remark-image-CSTFtaeg.js";
3
- import { r as StructureOptions } from "../../remark-structure-BxbC5Buc.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-DJvYcq64.js";
5
- import { t as RemarkCodeTabOptions } from "../../remark-code-tab-BC5W5GqG.js";
6
- import { t as RemarkNpmOptions } from "../../remark-npm-BQkE8_Hf.js";
7
- import { t as ResolvePlugins } from "../../util-BvKVaD5t.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-DXCf4vCa.js";
2
+ import { t as RemarkImageOptions } from "../../remark-image-B8S2Lk0J.js";
3
+ import { r as StructureOptions } from "../../remark-structure-C2-K9_ko.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-BkmtL7mJ.js";
5
+ import { t as RemarkCodeTabOptions } from "../../remark-code-tab-B8g4pbaL.js";
6
+ import { t as RemarkNpmOptions } from "../../remark-npm-BZsXR24w.js";
7
+ import { t as ResolvePlugins } from "../../util-D7vTp-Ia.js";
8
8
  import { ProcessorOptions } from "@mdx-js/mdx";
9
9
 
10
10
  //#region src/content/mdx/preset-runtime.d.ts
@@ -1,4 +1,4 @@
1
- import { t as resolvePlugins } from "../../util-DEs3M9dw.js";
1
+ import { t as resolvePlugins } from "../../util-DKxlHpW7.js";
2
2
  //#region src/content/mdx/preset-runtime.ts
3
3
  /**
4
4
  * apply MDX processor presets
@@ -1,4 +1,4 @@
1
- import { c as TOCItemType } from "../toc-CZK90oS5.js";
1
+ import { c as TOCItemType } from "../toc-B04VAipv.js";
2
2
  import { Compatible } from "vfile";
3
3
  import { PluggableList } from "unified";
4
4
 
@@ -1,4 +1,4 @@
1
- import { n as ShikiFactory } from "../../index-DxyTmDjY.js";
1
+ import { n as ShikiFactory } from "../../index-DzLmtQFW.js";
2
2
 
3
3
  //#region src/highlight/shiki/full.d.ts
4
4
  declare const defaultShikiFactory: ShikiFactory;
@@ -1,2 +1,2 @@
1
- import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-DxyTmDjY.js";
1
+ import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-DzLmtQFW.js";
2
2
  export { HighlightHastOptions, ShikiFactory, createShikiFactory, highlightHast };
@@ -1,5 +1,5 @@
1
- import { t as Awaitable } from "../../types-RCtxugu0.js";
2
- import { t as HighlightHastOptions } from "../../index-DxyTmDjY.js";
1
+ import { t as Awaitable } from "../../types-DpbpliNk.js";
2
+ import { t as HighlightHastOptions } from "../../index-DzLmtQFW.js";
3
3
  import { DependencyList, ReactNode } from "react";
4
4
  import { Components } from "hast-util-to-jsx-runtime";
5
5
  import { HighlighterCore } from "shiki";
@@ -1,2 +1,2 @@
1
- import { n as defineI18n, t as I18nConfig } from "../index-CRLkAaM0.js";
1
+ import { n as defineI18n, t as I18nConfig } from "../index-DaiDEfiL.js";
2
2
  export { I18nConfig, defineI18n };
@@ -1,4 +1,4 @@
1
- import { t as I18nConfig } from "../index-CRLkAaM0.js";
1
+ import { t as I18nConfig } from "../index-DaiDEfiL.js";
2
2
  import { NextProxy } from "next/server.js";
3
3
  import { NextURL } from "next/dist/server/web/next-url.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as Root } from "./definitions-57FFofI9.js";
1
+ import { i as Root } from "./definitions-Cob-Q8-8.js";
2
2
  //#region src/source/client/index.d.ts
3
3
  interface SerializedPageTree {
4
4
  $fumadocs_loader: 'page-tree';
@@ -1,4 +1,4 @@
1
- import { t as Awaitable } from "./types-RCtxugu0.js";
1
+ import { t as Awaitable } from "./types-DpbpliNk.js";
2
2
  import { Root } from "hast";
3
3
  import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, HighlighterCore } from "shiki";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-57FFofI9.js";
1
+ import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-Cob-Q8-8.js";
2
2
 
3
3
  //#region src/page-tree/utils.d.ts
4
4
  /**