fumadocs-core 16.9.2 → 16.9.3

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 (147) hide show
  1. package/dist/{advanced-BCAHgGV0.js → advanced-BJ-uurHJ.js} +1 -1
  2. package/dist/{algolia-Dy_nhfqJ.d.ts → algolia-CfRm9dj6.d.ts} +1 -1
  3. package/dist/breadcrumb.d.ts +1 -1
  4. package/dist/breadcrumb.js +2 -2
  5. package/dist/{build-doc-CqRdmOMh.js → build-doc-DHR7rjs9.js} +2 -2
  6. package/dist/{client-CjDMTbRr.d.ts → client-CIcYfa2I.d.ts} +3 -3
  7. package/dist/content/mdx/preset-bundler.d.ts +7 -7
  8. package/dist/content/mdx/preset-bundler.js +1 -1
  9. package/dist/content/mdx/preset-runtime.d.ts +7 -7
  10. package/dist/content/mdx/preset-runtime.js +1 -1
  11. package/dist/content/toc.d.ts +1 -1
  12. package/dist/framework/waku.js +3 -6
  13. package/dist/highlight/client.js +1 -1
  14. package/dist/highlight/index.js +1 -1
  15. package/dist/highlight/shiki/full.d.ts +1 -1
  16. package/dist/highlight/shiki/index.d.ts +1 -1
  17. package/dist/highlight/shiki/index.js +1 -1
  18. package/dist/highlight/shiki/react.d.ts +2 -2
  19. package/dist/i18n/index.d.ts +1 -1
  20. package/dist/i18n/middleware.d.ts +1 -1
  21. package/dist/i18n/middleware.js +2 -2
  22. package/dist/{index-D36IQyWl.d.ts → index-BLKQLw5Y.d.ts} +1 -1
  23. package/dist/{index-C7Im4R_D2.d.ts → index-BPRluZaH2.d.ts} +20 -18
  24. package/dist/{index-CFaAAU5K.d.ts → index-CrF56b4C.d.ts} +1 -1
  25. package/dist/{index-L7sAY8Os.d.ts → index-aTQav1VD.d.ts} +1 -1
  26. package/dist/{loader-AC1aN-MX.js → loader-CfOmE00t.js} +4 -4
  27. package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
  28. package/dist/mdx-plugins/index.d.ts +18 -18
  29. package/dist/mdx-plugins/index.js +2 -2
  30. package/dist/mdx-plugins/rehype-code.core.d.ts +2 -2
  31. package/dist/mdx-plugins/rehype-code.core.js +1 -1
  32. package/dist/mdx-plugins/rehype-code.d.ts +3 -3
  33. package/dist/mdx-plugins/rehype-code.js +1 -1
  34. package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
  35. package/dist/mdx-plugins/rehype-toc.js +1 -1
  36. package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
  37. package/dist/mdx-plugins/remark-admonition.js +1 -1
  38. package/dist/mdx-plugins/remark-block-id.js +1 -1
  39. package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
  40. package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
  41. package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
  42. package/dist/mdx-plugins/remark-feedback-block.js +1 -1
  43. package/dist/mdx-plugins/remark-gfm.d.ts +1 -1
  44. package/dist/mdx-plugins/remark-heading.d.ts +1 -1
  45. package/dist/mdx-plugins/remark-heading.js +1 -1
  46. package/dist/mdx-plugins/remark-image.d.ts +1 -1
  47. package/dist/mdx-plugins/remark-image.js +2 -2
  48. package/dist/mdx-plugins/remark-llms.d.ts +1 -1
  49. package/dist/mdx-plugins/remark-llms.js +1 -1
  50. package/dist/mdx-plugins/remark-llms.runtime.d.ts +1 -1
  51. package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
  52. package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
  53. package/dist/mdx-plugins/remark-npm.d.ts +1 -1
  54. package/dist/mdx-plugins/remark-npm.js +1 -1
  55. package/dist/mdx-plugins/remark-steps.d.ts +1 -1
  56. package/dist/mdx-plugins/remark-steps.js +1 -1
  57. package/dist/mdx-plugins/remark-structure.d.ts +1 -1
  58. package/dist/mdx-plugins/remark-structure.js +1 -1
  59. package/dist/mdx-plugins/stringifier.d.ts +1 -1
  60. package/dist/mdx-plugins/transformer-icon.d.ts +1 -1
  61. package/dist/negotiation/index.js +1 -1
  62. package/dist/{negotiation-CvOwibYZ.js → negotiation-C6hn0LRz.js} +1 -1
  63. package/dist/page-tree/index.d.ts +2 -2
  64. package/dist/page-tree/index.js +1 -1
  65. package/dist/{path-CPgAF5cw.js → path-DOciLMb0.js} +1 -1
  66. package/dist/{rehype-code-x0ZobImp.d.ts → rehype-code-BNJw67V5.d.ts} +1 -1
  67. package/dist/{rehype-code.core-DejBJh_Q.js → rehype-code.core-BIWwPy31.js} +2 -2
  68. package/dist/{rehype-code.core--x00T7TS.d.ts → rehype-code.core-DPdd_Lza.d.ts} +3 -3
  69. package/dist/{remark-heading-D2b5W0U-.d.ts → remark-heading-Z2FTpR_r.d.ts} +1 -1
  70. package/dist/{remark-llms-Djf4WpEV.d.ts → remark-llms-CDadKewV.d.ts} +1 -1
  71. package/dist/{remark-structure-D5lZwhf5.d.ts → remark-structure-DmVL5OkT.d.ts} +1 -1
  72. package/dist/{remove-markdown-D6zqr8cg.js → remove-markdown-C0IY_Ks_.js} +1 -1
  73. package/dist/search/algolia.d.ts +1 -1
  74. package/dist/search/client/algolia.d.ts +1 -1
  75. package/dist/search/client/fetch.d.ts +1 -1
  76. package/dist/search/client/flexsearch-static.d.ts +1 -1
  77. package/dist/search/client/flexsearch-static.js +1 -1
  78. package/dist/search/client/mixedbread.d.ts +1 -1
  79. package/dist/search/client/mixedbread.js +2 -2
  80. package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
  81. package/dist/search/client/orama-cloud-legacy.js +1 -1
  82. package/dist/search/client/orama-cloud.d.ts +1 -1
  83. package/dist/search/client/orama-cloud.js +1 -1
  84. package/dist/search/client/orama-static.d.ts +1 -1
  85. package/dist/search/client/orama-static.js +1 -1
  86. package/dist/search/client.d.ts +1 -1
  87. package/dist/search/flexsearch.d.ts +4 -4
  88. package/dist/search/flexsearch.js +3 -3
  89. package/dist/search/index.d.ts +1 -1
  90. package/dist/search/mixedbread.d.ts +2 -2
  91. package/dist/search/mixedbread.js +3 -3
  92. package/dist/search/orama-cloud-legacy.d.ts +1 -1
  93. package/dist/search/orama-cloud.d.ts +1 -1
  94. package/dist/search/server.d.ts +1 -1
  95. package/dist/search/server.js +3 -3
  96. package/dist/{server-DkUTyWt-.d.ts → server-CqcelklO.d.ts} +5 -5
  97. package/dist/source/client/index.d.ts +1 -1
  98. package/dist/source/client/index.js +1 -1
  99. package/dist/source/dynamic.d.ts +1 -1
  100. package/dist/source/dynamic.js +15 -12
  101. package/dist/source/index.d.ts +2 -2
  102. package/dist/source/index.js +3 -3
  103. package/dist/source/llms.d.ts +1 -1
  104. package/dist/source/plugins/lucide-icons.d.ts +1 -1
  105. package/dist/source/plugins/lucide-icons.js +1 -1
  106. package/dist/source/plugins/slugs.d.ts +1 -1
  107. package/dist/source/plugins/slugs.js +1 -1
  108. package/dist/source/plugins/status-badges.d.ts +2 -2
  109. package/dist/toc.d.ts +1 -1
  110. package/dist/toc.js +1 -1
  111. package/dist/utils/use-on-change.js +1 -1
  112. package/package.json +7 -7
  113. /package/dist/{chunk-CYJPkc-J.js → chunk-B-1-B7_t.js} +0 -0
  114. /package/dist/{codeblock-utils-Cu2hs3HP.d.ts → codeblock-utils-B5pyK6c4.d.ts} +0 -0
  115. /package/dist/{definitions-DQRPsvc7.d.ts → definitions-DsPo5rZj.d.ts} +0 -0
  116. /package/dist/{dist-Deq67Kq0.js → dist-DrR2d46_.js} +0 -0
  117. /package/dist/{endpoint-CAUHRXte.js → endpoint-MyoBU5IC.js} +0 -0
  118. /package/dist/{fromFile-BO-SGwwS.js → fromFile-DoNs4YiN.js} +0 -0
  119. /package/dist/{icon-BbWo08Fw.js → icon-BILaoXeg.js} +0 -0
  120. /package/dist/{index-Dw5cCt-A.d.ts → index-BVVgDSdq.d.ts} +0 -0
  121. /package/dist/{index-Yi-xJspv.d.ts → index-CS7BaeTa.d.ts} +0 -0
  122. /package/dist/{index-iV26Yxbg.d.ts → index-CyNuiwqp.d.ts} +0 -0
  123. /package/dist/{is-equal-DiHmw70P.js → is-equal-LdLqRs0o.js} +0 -0
  124. /package/dist/{normalize-url-J3kqKlu4.js → normalize-url-BprQXHOP.js} +0 -0
  125. /package/dist/{rehype-toc-S6N-sHdy.d.ts → rehype-toc-Buwh9Bkg.d.ts} +0 -0
  126. /package/dist/{remark-admonition-CgSEZPK6.d.ts → remark-admonition-B6b741tI.d.ts} +0 -0
  127. /package/dist/{remark-code-tab-d-IsnJUp.d.ts → remark-code-tab-C_xwrYzr.d.ts} +0 -0
  128. /package/dist/{remark-directive-admonition-B2K0zXhU.d.ts → remark-directive-admonition-D6bcy8ye.d.ts} +0 -0
  129. /package/dist/{remark-feedback-block-l4uW7jta.d.ts → remark-feedback-block-DlbKlNCS.d.ts} +0 -0
  130. /package/dist/{remark-gfm-Cv2b95uW.d.ts → remark-gfm-DpVfAX1x.d.ts} +0 -0
  131. /package/dist/{remark-image-CLCoFL38.d.ts → remark-image-DGq11tUk.d.ts} +0 -0
  132. /package/dist/{remark-mdx-files-ulgvmf4K.d.ts → remark-mdx-files-D1GnBf_K.d.ts} +0 -0
  133. /package/dist/{remark-mdx-mermaid-CcK-F03B.d.ts → remark-mdx-mermaid-B-Vm8iOc.d.ts} +0 -0
  134. /package/dist/{remark-npm-BWvHn4O3.js → remark-npm-D9zsrUVt.js} +0 -0
  135. /package/dist/{remark-npm-DRJJDIR0.d.ts → remark-npm-DWgfdohc.d.ts} +0 -0
  136. /package/dist/{remark-steps-Q_rsCX_o.d.ts → remark-steps-DVaztRzR.d.ts} +0 -0
  137. /package/dist/{remove-undefined-CTqT55E9.js → remove-undefined-Cxnv4ZZs.js} +0 -0
  138. /package/dist/{stringifier-beK5yGbT.d.ts → stringifier-D5Bi8lxA.d.ts} +0 -0
  139. /package/dist/{toc-De7dlxnI.d.ts → toc-BISwwvZ_.d.ts} +0 -0
  140. /package/dist/{transformer-icon-DxbdvNM7.d.ts → transformer-icon-6kKIDVYa.d.ts} +0 -0
  141. /package/dist/{types-FiLV8L2L.d.ts → types-D89QoQR-.d.ts} +0 -0
  142. /package/dist/{util-Ds0K_QFY.d.ts → util-BiDGK90k.d.ts} +0 -0
  143. /package/dist/{util-DKxlHpW7.js → util-DjBr9b3w.js} +0 -0
  144. /package/dist/{utils-CkDkYuX8.js → utils-Bvy3V-fv.js} +0 -0
  145. /package/dist/{utils-tAukrbtB.js → utils-D2T58c9w.js} +0 -0
  146. /package/dist/{utils-BFW0mEx9.js → utils-Dn9VIXRN.js} +0 -0
  147. /package/dist/{utils-pSG8hSr9.js → utils-Yx0IL9eW.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { i as toMdxExport } from "../utils-pSG8hSr9.js";
1
+ import { i as toMdxExport } from "../utils-Yx0IL9eW.js";
2
2
  import { remarkHeading } from "./remark-heading.js";
3
3
  import { defaultStringifier as defaultStringifier$1 } from "./stringifier.js";
4
4
  import { remark } from "remark";
@@ -1,2 +1,2 @@
1
- import { n as StringifyOptions, r as defaultStringifier, t as Stringifier } from "../stringifier-beK5yGbT.js";
1
+ import { n as StringifyOptions, r as defaultStringifier, t as Stringifier } from "../stringifier-D5Bi8lxA.js";
2
2
  export { Stringifier, StringifyOptions, defaultStringifier };
@@ -1,2 +1,2 @@
1
- import { n as IconOptions, r as transformerIcon, t as CodeBlockIcon } from "../transformer-icon-DxbdvNM7.js";
1
+ import { n as IconOptions, r as transformerIcon, t as CodeBlockIcon } from "../transformer-icon-6kKIDVYa.js";
2
2
  export { CodeBlockIcon, IconOptions, transformerIcon };
@@ -1,2 +1,2 @@
1
- import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-CvOwibYZ.js";
1
+ import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-C6hn0LRz.js";
2
2
  export { getNegotiator, isMarkdownPreferred, rewritePath };
@@ -1,4 +1,4 @@
1
- import { r as __toESM, t as __commonJSMin } from "./chunk-CYJPkc-J.js";
1
+ import { r as __toESM, t as __commonJSMin } from "./chunk-B-1-B7_t.js";
2
2
  //#region ../../node_modules/.pnpm/negotiator@1.0.0/node_modules/negotiator/lib/charset.js
3
3
  /**
4
4
  * negotiator
@@ -1,3 +1,3 @@
1
- import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "../definitions-DQRPsvc7.js";
2
- import { a as flattenTree, c as visit, i as findSiblings, n as findParent, o as getPageTreePeers, r as findPath, s as getPageTreeRoots, t as findNeighbour } from "../index-L7sAY8Os.js";
1
+ import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "../definitions-DsPo5rZj.js";
2
+ import { a as flattenTree, c as visit, i as findSiblings, n as findParent, o as getPageTreePeers, r as findPath, s as getPageTreeRoots, t as findNeighbour } from "../index-aTQav1VD.js";
3
3
  export { Folder, Item, Node, Root, Separator, findNeighbour, findParent, findPath, findSiblings, flattenTree, getPageTreePeers, getPageTreeRoots, visit };
@@ -1,2 +1,2 @@
1
- import { a as flattenTree, c as visit, i as findSiblings, n as findParent, o as getPageTreePeers, r as findPath, s as getPageTreeRoots, t as findNeighbour } from "../utils-BFW0mEx9.js";
1
+ import { a as flattenTree, c as visit, i as findSiblings, n as findParent, o as getPageTreePeers, r as findPath, s as getPageTreeRoots, t as findNeighbour } from "../utils-Dn9VIXRN.js";
2
2
  export { findNeighbour, findParent, findPath, findSiblings, flattenTree, getPageTreePeers, getPageTreeRoots, visit };
@@ -1,4 +1,4 @@
1
- import { n as __exportAll } from "./chunk-CYJPkc-J.js";
1
+ import { n as __exportAll } from "./chunk-B-1-B7_t.js";
2
2
  //#region src/source/path.ts
3
3
  var path_exports = /* @__PURE__ */ __exportAll({
4
4
  basename: () => basename,
@@ -1,4 +1,4 @@
1
- import { t as RehypeCodeOptionsCommon } from "./rehype-code.core--x00T7TS.js";
1
+ import { t as RehypeCodeOptionsCommon } from "./rehype-code.core-DPdd_Lza.js";
2
2
  import * as _$unified from "unified";
3
3
  import * as _$hast from "hast";
4
4
 
@@ -1,5 +1,5 @@
1
- import { n as flattenNodeHast } from "./utils-pSG8hSr9.js";
2
- import { n as defaultThemes, r as getRequiredThemes } from "./utils-tAukrbtB.js";
1
+ import { n as flattenNodeHast } from "./utils-Yx0IL9eW.js";
2
+ import { n as defaultThemes, r as getRequiredThemes } from "./utils-D2T58c9w.js";
3
3
  import { parseCodeBlockAttributes } from "./mdx-plugins/codeblock-utils.js";
4
4
  import { transformerIcon } from "./mdx-plugins/transformer-icon.js";
5
5
  import { visit } from "unist-util-visit";
@@ -1,6 +1,6 @@
1
- import { n as IconOptions } from "./transformer-icon-DxbdvNM7.js";
2
- import { t as Awaitable } from "./types-FiLV8L2L.js";
3
- import { n as ShikiFactory } from "./index-CFaAAU5K.js";
1
+ import { n as IconOptions } from "./transformer-icon-6kKIDVYa.js";
2
+ import { t as Awaitable } from "./types-D89QoQR-.js";
3
+ import { n as ShikiFactory } from "./index-CrF56b4C.js";
4
4
  import { Processor, Transformer } from "unified";
5
5
  import { Element, Root } from "hast";
6
6
  import { BuiltinLanguage, BuiltinTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, HighlighterCore, LanguageInput, ShikiTransformer, TransformerOptions } from "shiki";
@@ -1,4 +1,4 @@
1
- import { c as TOCItemType } from "./toc-De7dlxnI.js";
1
+ import { c as TOCItemType } from "./toc-BISwwvZ_.js";
2
2
  import { Transformer } from "unified";
3
3
  import { Heading, Root } from "mdast";
4
4
 
@@ -1,4 +1,4 @@
1
- import { n as StringifyOptions } from "./stringifier-beK5yGbT.js";
1
+ import { n as StringifyOptions } from "./stringifier-D5Bi8lxA.js";
2
2
  import { MdxJsxFlowElement, MdxJsxTextElement } from "mdast-util-mdx";
3
3
  import { Info, State } from "mdast-util-to-markdown";
4
4
  import { Processor, Transformer } from "unified";
@@ -1,4 +1,4 @@
1
- import { n as StringifyOptions$1, t as Stringifier$1 } from "./stringifier-beK5yGbT.js";
1
+ import { n as StringifyOptions$1, t as Stringifier$1 } from "./stringifier-D5Bi8lxA.js";
2
2
  import { MdxJsxAttribute, MdxJsxExpressionAttribute, MdxJsxFlowElement, MdxJsxTextElement } from "mdast-util-mdx";
3
3
  import { PluggableList, Processor, Transformer } from "unified";
4
4
  import { Nodes, Root } from "mdast";
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./chunk-CYJPkc-J.js";
1
+ import { t as __commonJSMin } from "./chunk-B-1-B7_t.js";
2
2
  //#region ../../node_modules/.pnpm/remove-markdown@0.6.4/node_modules/remove-markdown/index.js
3
3
  var require_remove_markdown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
4
  module.exports = function(md, options) {
@@ -1,2 +1,2 @@
1
- import { a as sync, i as setIndexSettings, n as DocumentRecord, o as updateDocuments, r as SyncOptions, t as BaseIndex } from "../algolia-Dy_nhfqJ.js";
1
+ import { a as sync, i as setIndexSettings, n as DocumentRecord, o as updateDocuments, r as SyncOptions, t as BaseIndex } from "../algolia-CfRm9dj6.js";
2
2
  export { BaseIndex, DocumentRecord, SyncOptions, setIndexSettings, sync, updateDocuments };
@@ -1,2 +1,2 @@
1
- import { m as algoliaClient, p as AlgoliaOptions } from "../../client-CjDMTbRr.js";
1
+ import { m as algoliaClient, p as AlgoliaOptions } from "../../client-CIcYfa2I.js";
2
2
  export { AlgoliaOptions, algoliaClient };
@@ -1,2 +1,2 @@
1
- import { _ as FetchOptions, v as fetchClient } from "../../client-CjDMTbRr.js";
1
+ import { _ as FetchOptions, v as fetchClient } from "../../client-CIcYfa2I.js";
2
2
  export { FetchOptions, fetchClient };
@@ -1,2 +1,2 @@
1
- import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-CjDMTbRr.js";
1
+ import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-CIcYfa2I.js";
2
2
  export { FlexsearchStaticOptions, flexsearchStaticClient };
@@ -1,4 +1,4 @@
1
- import { n as search, t as createDocument } from "../../utils-CkDkYuX8.js";
1
+ import { n as search, t as createDocument } from "../../utils-Bvy3V-fv.js";
2
2
  //#region src/search/client/flexsearch-static.ts
3
3
  function initDocument(data) {
4
4
  const document = createDocument();
@@ -1,2 +1,2 @@
1
- import { c as mixedbreadClient, o as MixedbreadOptions, s as SearchMetadata } from "../../client-CjDMTbRr.js";
1
+ import { c as mixedbreadClient, o as MixedbreadOptions, s as SearchMetadata } from "../../client-CIcYfa2I.js";
2
2
  export { MixedbreadOptions, SearchMetadata, mixedbreadClient };
@@ -1,5 +1,5 @@
1
- import { r as __toESM } from "../../chunk-CYJPkc-J.js";
2
- import { t as require_remove_markdown } from "../../remove-markdown-D6zqr8cg.js";
1
+ import { r as __toESM } from "../../chunk-B-1-B7_t.js";
2
+ import { t as require_remove_markdown } from "../../remove-markdown-C0IY_Ks_.js";
3
3
  import Slugger from "github-slugger";
4
4
  //#region src/search/client/mixedbread.ts
5
5
  var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
@@ -1,2 +1,2 @@
1
- import { l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-CjDMTbRr.js";
1
+ import { l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-CIcYfa2I.js";
2
2
  export { OramaCloudLegacyOptions, oramaCloudLegacyClient };
@@ -1,5 +1,5 @@
1
1
  import { createContentHighlighter } from "../index.js";
2
- import { t as removeUndefined } from "../../remove-undefined-CTqT55E9.js";
2
+ import { t as removeUndefined } from "../../remove-undefined-Cxnv4ZZs.js";
3
3
  //#region src/search/client/orama-cloud-legacy.ts
4
4
  function oramaCloudLegacyClient(options) {
5
5
  const { index = "default", client, params: extraParams = {}, tag } = options;
@@ -1,2 +1,2 @@
1
- import { d as OramaCloudOptions, f as oramaCloudClient } from "../../client-CjDMTbRr.js";
1
+ import { d as OramaCloudOptions, f as oramaCloudClient } from "../../client-CIcYfa2I.js";
2
2
  export { OramaCloudOptions, oramaCloudClient };
@@ -1,5 +1,5 @@
1
1
  import { createContentHighlighter } from "../index.js";
2
- import { t as removeUndefined } from "../../remove-undefined-CTqT55E9.js";
2
+ import { t as removeUndefined } from "../../remove-undefined-Cxnv4ZZs.js";
3
3
  //#region src/search/client/orama-cloud.ts
4
4
  function oramaCloudClient(options) {
5
5
  const { index = "default", client, params: extraParams, tag } = options;
@@ -1,2 +1,2 @@
1
- import { g as oramaStaticClient, h as StaticOptions } from "../../client-CjDMTbRr.js";
1
+ import { g as oramaStaticClient, h as StaticOptions } from "../../client-CIcYfa2I.js";
2
2
  export { StaticOptions, oramaStaticClient };
@@ -1,4 +1,4 @@
1
- import { n as searchSimple, t as searchAdvanced } from "../../advanced-BCAHgGV0.js";
1
+ import { n as searchSimple, t as searchAdvanced } from "../../advanced-BJ-uurHJ.js";
2
2
  import { create, load } from "@orama/orama";
3
3
  //#region src/search/client/orama-static.ts
4
4
  const cache = /* @__PURE__ */ new Map();
@@ -1,2 +1,2 @@
1
- import { _ as FetchOptions, d as OramaCloudOptions, h as StaticOptions, n as SearchClient, p as AlgoliaOptions, r as useDocsSearch, t as ClientPreset } from "../client-CjDMTbRr.js";
1
+ import { _ as FetchOptions, d as OramaCloudOptions, h as StaticOptions, n as SearchClient, p as AlgoliaOptions, r as useDocsSearch, t as ClientPreset } from "../client-CIcYfa2I.js";
2
2
  export { AlgoliaOptions, ClientPreset, FetchOptions, OramaCloudOptions, SearchClient, StaticOptions, useDocsSearch };
@@ -1,7 +1,7 @@
1
- import { t as Awaitable } from "../types-FiLV8L2L.js";
2
- import { n as I18nConfig } from "../index-iV26Yxbg.js";
3
- import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-DkUTyWt-.js";
4
- import { C as LoaderConfig, T as LoaderOutput } from "../index-C7Im4R_D2.js";
1
+ import { t as Awaitable } from "../types-D89QoQR-.js";
2
+ import { n as I18nConfig } from "../index-CyNuiwqp.js";
3
+ import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-CqcelklO.js";
4
+ import { x as LoaderOutput, y as LoaderConfig } from "../index-BPRluZaH2.js";
5
5
  import { DocumentData, DocumentOptions } from "flexsearch";
6
6
 
7
7
  //#region src/search/server/build-doc.d.ts
@@ -1,6 +1,6 @@
1
- import { t as createEndpoint } from "../endpoint-CAUHRXte.js";
2
- import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-CqRdmOMh.js";
3
- import { n as search, t as createDocument } from "../utils-CkDkYuX8.js";
1
+ import { t as createEndpoint } from "../endpoint-MyoBU5IC.js";
2
+ import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-DHR7rjs9.js";
3
+ import { n as search, t as createDocument } from "../utils-Bvy3V-fv.js";
4
4
  import Search from "flexsearch";
5
5
  //#region src/search/flexsearch.ts
6
6
  function server(options) {
@@ -1,2 +1,2 @@
1
- import { i as createContentHighlighter, n as ReactSortedResult, r as SortedResult, t as HighlightedText } from "../index-Yi-xJspv.js";
1
+ import { i as createContentHighlighter, n as ReactSortedResult, r as SortedResult, t as HighlightedText } from "../index-CS7BaeTa.js";
2
2
  export { HighlightedText, ReactSortedResult, SortedResult, createContentHighlighter };
@@ -1,5 +1,5 @@
1
- import { r as SortedResult } from "../index-Yi-xJspv.js";
2
- import { n as SearchAPI } from "../server-DkUTyWt-.js";
1
+ import { r as SortedResult } from "../index-CS7BaeTa.js";
2
+ import { n as SearchAPI } from "../server-CqcelklO.js";
3
3
  import Mixedbread from "@mixedbread/sdk";
4
4
  import { StoreSearchResponse } from "@mixedbread/sdk/resources/stores";
5
5
 
@@ -1,6 +1,6 @@
1
- import { r as __toESM } from "../chunk-CYJPkc-J.js";
2
- import { t as createEndpoint } from "../endpoint-CAUHRXte.js";
3
- import { t as require_remove_markdown } from "../remove-markdown-D6zqr8cg.js";
1
+ import { r as __toESM } from "../chunk-B-1-B7_t.js";
2
+ import { t as createEndpoint } from "../endpoint-MyoBU5IC.js";
3
+ import { t as require_remove_markdown } from "../remove-markdown-C0IY_Ks_.js";
4
4
  import Slugger from "github-slugger";
5
5
  //#region src/search/mixedbread.ts
6
6
  var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
@@ -1,4 +1,4 @@
1
- import { i as StructuredData } from "../remark-structure-D5lZwhf5.js";
1
+ import { i as StructuredData } from "../remark-structure-DmVL5OkT.js";
2
2
  import { CloudManager } from "@oramacloud/client";
3
3
 
4
4
  //#region src/search/orama-cloud-legacy.d.ts
@@ -1,4 +1,4 @@
1
- import { i as StructuredData } from "../remark-structure-D5lZwhf5.js";
1
+ import { i as StructuredData } from "../remark-structure-DmVL5OkT.js";
2
2
  import { OramaCloud } from "@orama/core";
3
3
 
4
4
  //#region src/search/orama-cloud.d.ts
@@ -1,2 +1,2 @@
1
- import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-DkUTyWt-.js";
1
+ import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-CqcelklO.js";
2
2
  export { AdvancedIndex, AdvancedOptions, ExportedData, Index, QueryOptions, SearchAPI, SearchServer, SimpleOptions, createFromSource, createI18nSearchAPI, createSearchAPI, initAdvancedSearch, initSimpleSearch };
@@ -1,6 +1,6 @@
1
- import { n as defaultReadOptions, t as createEndpoint } from "../endpoint-CAUHRXte.js";
2
- import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-CqRdmOMh.js";
3
- import { n as searchSimple, t as searchAdvanced } from "../advanced-BCAHgGV0.js";
1
+ import { n as defaultReadOptions, t as createEndpoint } from "../endpoint-MyoBU5IC.js";
2
+ import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-DHR7rjs9.js";
3
+ import { n as searchSimple, t as searchAdvanced } from "../advanced-BJ-uurHJ.js";
4
4
  import { create, insertMultiple, save } from "@orama/orama";
5
5
  //#region src/search/orama/_stemmers.ts
6
6
  const STEMMERS = {
@@ -1,8 +1,8 @@
1
- import { t as Awaitable } from "./types-FiLV8L2L.js";
2
- import { i as StructuredData } from "./remark-structure-D5lZwhf5.js";
3
- import { n as I18nConfig } from "./index-iV26Yxbg.js";
4
- import { r as SortedResult } from "./index-Yi-xJspv.js";
5
- import { C as LoaderConfig, T as LoaderOutput } from "./index-C7Im4R_D2.js";
1
+ import { t as Awaitable } from "./types-D89QoQR-.js";
2
+ import { i as StructuredData } from "./remark-structure-DmVL5OkT.js";
3
+ import { n as I18nConfig } from "./index-CyNuiwqp.js";
4
+ import { r as SortedResult } from "./index-CS7BaeTa.js";
5
+ import { x as LoaderOutput, y as LoaderConfig } from "./index-BPRluZaH2.js";
6
6
  import { Language, Orama, RawData, SearchParams, TypedDocument, create } from "@orama/orama";
7
7
 
8
8
  //#region src/search/orama/create-db.d.ts
@@ -1,2 +1,2 @@
1
- import { i as useFumadocsLoader, n as SerializedPageTree, r as deserializePageTree, t as Serialized } from "../../index-D36IQyWl.js";
1
+ import { i as useFumadocsLoader, n as SerializedPageTree, r as deserializePageTree, t as Serialized } from "../../index-BLKQLw5Y.js";
2
2
  export { Serialized, SerializedPageTree, deserializePageTree, useFumadocsLoader };
@@ -1,4 +1,4 @@
1
- import { c as visit } from "../../utils-BFW0mEx9.js";
1
+ import { c as visit } from "../../utils-Dn9VIXRN.js";
2
2
  import { useMemo } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/source/client/index.tsx
@@ -1,2 +1,2 @@
1
- import { b as dynamicLoader, v as DynamicLoader, y as DynamicLoaderConfig } from "../index-C7Im4R_D2.js";
1
+ import { g as dynamicLoader, h as DynamicLoaderConfig, m as DynamicLoader } from "../index-BPRluZaH2.js";
2
2
  export { DynamicLoader, DynamicLoaderConfig, dynamicLoader };
@@ -1,4 +1,4 @@
1
- import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-AC1aN-MX.js";
1
+ import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-CfOmE00t.js";
2
2
  import { cache } from "react";
3
3
  //#region src/source/dynamic.ts
4
4
  function dynamicLoader(input, options) {
@@ -13,19 +13,18 @@ function dynamicLoader(input, options) {
13
13
  }
14
14
  for (const v of Object.values(input)) if (isDynamicSource(v)) v.configure?.(dynamicLoader);
15
15
  }
16
- async function resolveSources() {
17
- if (isStaticSource(input)) return input;
18
- if (isDynamicSource(input)) return resolveDynamicSource(input);
19
- const entries = await Promise.all(Object.entries(input).map(async ([k, v]) => {
20
- if (isStaticSource(v)) return [k, v];
21
- return [k, await resolveDynamicSource(v)];
22
- }));
16
+ async function resolveSources(skipCache = false) {
17
+ if (isStaticSource(input) || isDynamicSource(input)) return resolveSource(input, skipCache);
18
+ const entries = await Promise.all(Object.entries(input).map(async ([k, v]) => [k, await resolveSource(v, skipCache)]));
23
19
  return Object.fromEntries(entries);
24
20
  }
25
- function resolveDynamicSource(v) {
26
- let resolved = sourceCache.get(v);
21
+ function resolveSource(v, skipCache = false) {
22
+ if (isStaticSource(v)) return v;
23
+ let resolved = skipCache ? void 0 : sourceCache.get(v);
27
24
  if (resolved) return resolved;
28
- resolved = Promise.resolve(v.files()).then((res) => ({ files: res }));
25
+ const files = v.files();
26
+ if ("then" in files) resolved = files.then((res) => ({ files: res }));
27
+ else resolved = { files };
29
28
  sourceCache.set(v, resolved);
30
29
  return resolved;
31
30
  }
@@ -39,7 +38,11 @@ function dynamicLoader(input, options) {
39
38
  }),
40
39
  $inferPage: void 0,
41
40
  $inferMeta: void 0,
42
- revalidate(name) {
41
+ async revalidate(name) {
42
+ if (name === void 0) await resolveSources(true);
43
+ else if (!isStaticSource(input) && !isDynamicSource(input)) await resolveSource(input[name], true);
44
+ },
45
+ invalidate(name) {
43
46
  if (name === void 0) sourceCache.clear();
44
47
  else if (!isStaticSource(input) && !isDynamicSource(input)) {
45
48
  const s = input[name];
@@ -1,2 +1,2 @@
1
- import { A as ResolvedLoaderConfig, B as PageTreeTransformer, C as LoaderConfig, D as LoaderPluginOption, E as LoaderPlugin, H as ContentStorageMetaFile, L as PageTreeBuilder, M as loader, O as Meta, P as getSlugs, R as PageTreeBuilderContext, S as InferPageType, T as LoaderOutput, U as ContentStoragePageFile, V as ContentStorage, W as FileSystem, _ as update, a as MetaData, c as SourceConfig, d as VirtualFile, f as _SourceUpdate_, g as source, h as multiple, i as DynamicSource, j as createGetUrl, k as Page, l as SourceUnion, m as isStaticSource, n as llms, o as PageData, p as isDynamicSource, r as path_d_exports, s as Source, t as LLMsConfig, u as StaticSource, w as LoaderOptions, x as InferMetaType, z as PageTreeOptions } from "../index-C7Im4R_D2.js";
2
- export { ContentStorage, ContentStorageMetaFile, ContentStoragePageFile, DynamicSource, FileSystem, InferMetaType, InferPageType, LLMsConfig, LoaderConfig, LoaderOptions, LoaderOutput, LoaderPlugin, LoaderPluginOption, Meta, MetaData, Page, PageData, PageTreeBuilder, PageTreeBuilderContext, PageTreeOptions, PageTreeTransformer, path_d_exports as PathUtils, ResolvedLoaderConfig, Source, SourceConfig, SourceUnion, StaticSource, VirtualFile, _SourceUpdate_, createGetUrl, getSlugs, isDynamicSource, isStaticSource, llms, loader, multiple, source, update };
1
+ import { B as ContentStoragePageFile, C as LoaderPluginOption, D as createGetUrl, E as ResolvedLoaderConfig, F as PageTreeBuilderContext, I as PageTreeOptions, L as PageTreeTransformer, O as loader, P as PageTreeBuilder, R as ContentStorage, S as LoaderPlugin, T as Page, V as FileSystem, _ as InferMetaType, a as MetaData, b as LoaderOptions, c as SourceUnion, d as multiple, f as source, i as DynamicSource, j as getSlugs, k as types_d_exports, l as StaticSource, n as llms, o as PageData, p as update, r as path_d_exports, s as Source, t as LLMsConfig, u as VirtualFile, v as InferPageType, w as Meta, x as LoaderOutput, y as LoaderConfig, z as ContentStorageMetaFile } from "../index-BPRluZaH2.js";
2
+ export { ContentStorage, ContentStorageMetaFile, ContentStoragePageFile, DynamicSource, FileSystem, InferMetaType, InferPageType, LLMsConfig, LoaderConfig, LoaderOptions, LoaderOutput, LoaderPlugin, LoaderPluginOption, Meta, MetaData, Page, PageData, PageTreeBuilder, PageTreeBuilderContext, PageTreeOptions, PageTreeTransformer, path_d_exports as PathUtils, ResolvedLoaderConfig, Source, SourceUnion, StaticSource, VirtualFile, types_d_exports as _Internal, createGetUrl, getSlugs, llms, loader, multiple, source, update };
@@ -1,5 +1,5 @@
1
- import { o as path_exports } from "../path-CPgAF5cw.js";
2
- import { a as multiple, c as FileSystem, i as isStaticSource, n as loader, o as source, r as isDynamicSource, s as update, t as createGetUrl } from "../loader-AC1aN-MX.js";
1
+ import { o as path_exports } from "../path-DOciLMb0.js";
2
+ import { a as multiple, c as FileSystem, n as loader, o as source, s as update, t as createGetUrl } from "../loader-CfOmE00t.js";
3
3
  import { getSlugs } from "./plugins/slugs.js";
4
4
  import { llms } from "./llms.js";
5
- export { FileSystem, path_exports as PathUtils, createGetUrl, getSlugs, isDynamicSource, isStaticSource, llms, loader, multiple, source, update };
5
+ export { FileSystem, path_exports as PathUtils, createGetUrl, getSlugs, llms, loader, multiple, source, update };
@@ -1,2 +1,2 @@
1
- import { n as llms, t as LLMsConfig } from "../index-C7Im4R_D2.js";
1
+ import { n as llms, t as LLMsConfig } from "../index-BPRluZaH2.js";
2
2
  export { LLMsConfig, llms };
@@ -1,4 +1,4 @@
1
- import { E as LoaderPlugin } from "../../index-C7Im4R_D2.js";
1
+ import { S as LoaderPlugin } from "../../index-BPRluZaH2.js";
2
2
  import { icons } from "lucide-react";
3
3
 
4
4
  //#region src/source/plugins/lucide-icons.d.ts
@@ -1,4 +1,4 @@
1
- import { t as iconPlugin } from "../../icon-BbWo08Fw.js";
1
+ import { t as iconPlugin } from "../../icon-BILaoXeg.js";
2
2
  import { createElement } from "react";
3
3
  import { icons } from "lucide-react";
4
4
  //#region src/source/plugins/lucide-icons.ts
@@ -1,2 +1,2 @@
1
- import { F as slugsFromData, I as slugsPlugin, N as SlugFn, P as getSlugs } from "../../index-C7Im4R_D2.js";
1
+ import { A as SlugFn, M as slugsFromData, N as slugsPlugin, j as getSlugs } from "../../index-BPRluZaH2.js";
2
2
  export { SlugFn, getSlugs, slugsFromData, slugsPlugin };
@@ -1,4 +1,4 @@
1
- import { n as dirname, r as extname, t as basename } from "../../path-CPgAF5cw.js";
1
+ import { n as dirname, r as extname, t as basename } from "../../path-DOciLMb0.js";
2
2
  //#region src/source/plugins/slugs.ts
3
3
  /**
4
4
  * Generate slugs for pages if missing
@@ -1,5 +1,5 @@
1
- import { a as Separator$1, n as Item$1, t as Folder$1 } from "../../definitions-DQRPsvc7.js";
2
- import { E as LoaderPlugin } from "../../index-C7Im4R_D2.js";
1
+ import { a as Separator$1, n as Item$1, t as Folder$1 } from "../../definitions-DsPo5rZj.js";
2
+ import { S as LoaderPlugin } from "../../index-BPRluZaH2.js";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/source/plugins/status-badges.d.ts
package/dist/toc.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as TOCItem, c as TOCItemType, d as useActiveAnchors, f as useItems, h as useTOCSelector, i as ScrollProviderProps, l as TableOfContents, m as useTOCListener, n as AnchorProviderProps, o as TOCItemInfo, p as useTOC, r as ScrollProvider, s as TOCItemProps, t as AnchorProvider, u as useActiveAnchor } from "./toc-De7dlxnI.js";
1
+ import { a as TOCItem, c as TOCItemType, d as useActiveAnchors, f as useItems, h as useTOCSelector, i as ScrollProviderProps, l as TableOfContents, m as useTOCListener, n as AnchorProviderProps, o as TOCItemInfo, p as useTOC, r as ScrollProvider, s as TOCItemProps, t as AnchorProvider, u as useActiveAnchor } from "./toc-BISwwvZ_.js";
2
2
  export { AnchorProvider, AnchorProviderProps, ScrollProvider, ScrollProviderProps, TOCItem, TOCItemInfo, TOCItemProps, TOCItemType, TableOfContents, useActiveAnchor, useActiveAnchors, useItems, useTOC, useTOCListener, useTOCSelector };
package/dist/toc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as isEqualShallow } from "./is-equal-DiHmw70P.js";
2
+ import { t as isEqualShallow } from "./is-equal-LdLqRs0o.js";
3
3
  import { createContext, use, useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import scrollIntoView from "scroll-into-view-if-needed";
@@ -1,4 +1,4 @@
1
- import { t as isEqualShallow } from "../is-equal-DiHmw70P.js";
1
+ import { t as isEqualShallow } from "../is-equal-LdLqRs0o.js";
2
2
  import { useState } from "react";
3
3
  //#region src/utils/use-on-change.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.9.2",
3
+ "version": "16.9.3",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",
@@ -115,9 +115,9 @@
115
115
  "vfile": "^6.0.3"
116
116
  },
117
117
  "devDependencies": {
118
- "@formatjs/intl-localematcher": "^0.8.8",
118
+ "@formatjs/intl-localematcher": "^0.8.9",
119
119
  "@mdx-js/mdx": "^3.1.1",
120
- "@mixedbread/sdk": "0.71.0",
120
+ "@mixedbread/sdk": "0.72.0",
121
121
  "@orama/core": "^1.2.19",
122
122
  "@oramacloud/client": "^2.1.4",
123
123
  "@shikijs/transformers": "^4.1.0",
@@ -133,7 +133,7 @@
133
133
  "algoliasearch": "5.52.1",
134
134
  "flexsearch": "^0.8.212",
135
135
  "image-size": "^2.0.2",
136
- "lucide-react": "^1.16.0",
136
+ "lucide-react": "^1.17.0",
137
137
  "negotiator": "^1.0.0",
138
138
  "next": "16.2.6",
139
139
  "npm-to-yarn": "^3.0.1",
@@ -144,8 +144,8 @@
144
144
  "remove-markdown": "^0.6.4",
145
145
  "tsdown": "0.22.0",
146
146
  "typescript": "^6.0.3",
147
- "waku": "1.0.0-beta.0",
148
- "zod": "^4.4.3",
147
+ "waku": "1.0.0-beta.1",
148
+ "zod": "4.4.3",
149
149
  "tsconfig": "0.0.0"
150
150
  },
151
151
  "peerDependencies": {
@@ -226,7 +226,7 @@
226
226
  },
227
227
  "inlinedDependencies": {
228
228
  "@formatjs/fast-memoize": "3.1.5",
229
- "@formatjs/intl-localematcher": "0.8.8",
229
+ "@formatjs/intl-localematcher": "0.8.9",
230
230
  "@shikijs/transformers": "4.1.0",
231
231
  "image-size": "2.0.2",
232
232
  "negotiator": "1.0.0",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes