fumadocs-core 16.9.2 → 16.10.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 (159) hide show
  1. package/dist/{advanced-BCAHgGV0.js → advanced-BnqbPavQ.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/md.d.ts +1 -2
  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/dynamic-link.d.ts +1 -2
  14. package/dist/framework/index.d.ts +3 -4
  15. package/dist/framework/next.d.ts +1 -2
  16. package/dist/framework/react-router.d.ts +1 -2
  17. package/dist/framework/tanstack.d.ts +1 -2
  18. package/dist/framework/waku.d.ts +1 -2
  19. package/dist/framework/waku.js +3 -6
  20. package/dist/highlight/client.js +1 -1
  21. package/dist/highlight/index.d.ts +1 -2
  22. package/dist/highlight/index.js +1 -1
  23. package/dist/highlight/shiki/full.d.ts +1 -1
  24. package/dist/highlight/shiki/index.d.ts +1 -1
  25. package/dist/highlight/shiki/index.js +1 -1
  26. package/dist/highlight/shiki/react.d.ts +2 -2
  27. package/dist/i18n/index.d.ts +2 -2
  28. package/dist/i18n/index.js +27 -47
  29. package/dist/i18n/middleware.d.ts +1 -1
  30. package/dist/i18n/middleware.js +2 -2
  31. package/dist/index-B799MJOL.d.ts +88 -0
  32. package/dist/{index-D36IQyWl.d.ts → index-BLKQLw5Y.d.ts} +1 -1
  33. package/dist/{index-CFaAAU5K.d.ts → index-CrF56b4C.d.ts} +1 -1
  34. package/dist/{index-L7sAY8Os.d.ts → index-aTQav1VD.d.ts} +1 -1
  35. package/dist/{index-C7Im4R_D2.d.ts → index-nPog1Bvz2.d.ts} +20 -18
  36. package/dist/link.d.ts +2 -3
  37. package/dist/{loader-AC1aN-MX.js → loader-DrgsG18J.js} +5 -6
  38. package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
  39. package/dist/mdx-plugins/index.d.ts +19 -19
  40. package/dist/mdx-plugins/index.js +2 -2
  41. package/dist/mdx-plugins/rehype-code.core.d.ts +3 -3
  42. package/dist/mdx-plugins/rehype-code.core.js +1 -1
  43. package/dist/mdx-plugins/rehype-code.d.ts +4 -4
  44. package/dist/mdx-plugins/rehype-code.js +1 -1
  45. package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
  46. package/dist/mdx-plugins/rehype-toc.js +1 -1
  47. package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
  48. package/dist/mdx-plugins/remark-admonition.js +1 -1
  49. package/dist/mdx-plugins/remark-block-id.js +1 -1
  50. package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
  51. package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
  52. package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
  53. package/dist/mdx-plugins/remark-feedback-block.js +1 -1
  54. package/dist/mdx-plugins/remark-gfm.d.ts +2 -2
  55. package/dist/mdx-plugins/remark-heading.d.ts +1 -1
  56. package/dist/mdx-plugins/remark-heading.js +1 -1
  57. package/dist/mdx-plugins/remark-image.d.ts +1 -1
  58. package/dist/mdx-plugins/remark-image.js +2 -2
  59. package/dist/mdx-plugins/remark-llms.d.ts +1 -1
  60. package/dist/mdx-plugins/remark-llms.js +1 -1
  61. package/dist/mdx-plugins/remark-llms.runtime.d.ts +1 -1
  62. package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
  63. package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
  64. package/dist/mdx-plugins/remark-npm.d.ts +1 -1
  65. package/dist/mdx-plugins/remark-npm.js +1 -1
  66. package/dist/mdx-plugins/remark-steps.d.ts +1 -1
  67. package/dist/mdx-plugins/remark-steps.js +1 -1
  68. package/dist/mdx-plugins/remark-structure.d.ts +1 -1
  69. package/dist/mdx-plugins/remark-structure.js +1 -1
  70. package/dist/mdx-plugins/stringifier.d.ts +1 -1
  71. package/dist/mdx-plugins/transformer-icon.d.ts +1 -1
  72. package/dist/negotiation/index.js +1 -1
  73. package/dist/{negotiation-CvOwibYZ.js → negotiation-C6hn0LRz.js} +1 -1
  74. package/dist/page-tree/index.d.ts +2 -2
  75. package/dist/page-tree/index.js +1 -1
  76. package/dist/{path-CPgAF5cw.js → path-DOciLMb0.js} +1 -1
  77. package/dist/{rehype-code-x0ZobImp.d.ts → rehype-code-D3QFMPaV.d.ts} +2 -4
  78. package/dist/{rehype-code.core-DejBJh_Q.js → rehype-code.core-Bayfuz65.js} +15 -3
  79. package/dist/{rehype-code.core--x00T7TS.d.ts → rehype-code.core-DPdd_Lza.d.ts} +3 -3
  80. package/dist/{remark-heading-D2b5W0U-.d.ts → remark-heading-DkG12uAs.d.ts} +1 -1
  81. package/dist/{remark-llms-Djf4WpEV.d.ts → remark-llms-CDadKewV.d.ts} +1 -1
  82. package/dist/{remark-structure-D5lZwhf5.d.ts → remark-structure-DmVL5OkT.d.ts} +1 -1
  83. package/dist/{remove-markdown-D6zqr8cg.js → remove-markdown-C0IY_Ks_.js} +1 -1
  84. package/dist/remove-undefined-CzMSKybq.js +24 -0
  85. package/dist/search/algolia.d.ts +1 -1
  86. package/dist/search/client/algolia.d.ts +1 -1
  87. package/dist/search/client/fetch.d.ts +1 -1
  88. package/dist/search/client/flexsearch-static.d.ts +1 -1
  89. package/dist/search/client/flexsearch-static.js +1 -1
  90. package/dist/search/client/mixedbread.d.ts +1 -1
  91. package/dist/search/client/mixedbread.js +2 -2
  92. package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
  93. package/dist/search/client/orama-cloud-legacy.js +1 -1
  94. package/dist/search/client/orama-cloud.d.ts +1 -1
  95. package/dist/search/client/orama-cloud.js +1 -1
  96. package/dist/search/client/orama-static.d.ts +1 -1
  97. package/dist/search/client/orama-static.js +1 -1
  98. package/dist/search/client.d.ts +2 -2
  99. package/dist/search/flexsearch.d.ts +4 -4
  100. package/dist/search/flexsearch.js +3 -3
  101. package/dist/search/index.d.ts +1 -1
  102. package/dist/search/mixedbread.d.ts +2 -2
  103. package/dist/search/mixedbread.js +3 -3
  104. package/dist/search/orama-cloud-legacy.d.ts +1 -1
  105. package/dist/search/orama-cloud.d.ts +1 -1
  106. package/dist/search/server.d.ts +1 -1
  107. package/dist/search/server.js +3 -3
  108. package/dist/{server-DkUTyWt-.d.ts → server-ClZ6JLxh.d.ts} +5 -5
  109. package/dist/source/client/index.d.ts +1 -1
  110. package/dist/source/client/index.js +1 -1
  111. package/dist/source/dynamic.d.ts +1 -1
  112. package/dist/source/dynamic.js +15 -12
  113. package/dist/source/index.d.ts +2 -2
  114. package/dist/source/index.js +3 -3
  115. package/dist/source/llms.d.ts +1 -1
  116. package/dist/source/plugins/lucide-icons.d.ts +1 -1
  117. package/dist/source/plugins/lucide-icons.js +1 -1
  118. package/dist/source/plugins/slugs.d.ts +1 -1
  119. package/dist/source/plugins/slugs.js +1 -1
  120. package/dist/source/plugins/status-badges.d.ts +2 -2
  121. package/dist/{toc-De7dlxnI.d.ts → toc-HGr2QC6x.d.ts} +3 -4
  122. package/dist/toc.d.ts +1 -1
  123. package/dist/toc.js +1 -1
  124. package/dist/utils/use-on-change.js +1 -1
  125. package/package.json +22 -18
  126. package/dist/index-iV26Yxbg.d.ts +0 -87
  127. package/dist/remove-undefined-CTqT55E9.js +0 -17
  128. /package/dist/{chunk-CYJPkc-J.js → chunk-B-1-B7_t.js} +0 -0
  129. /package/dist/{codeblock-utils-Cu2hs3HP.d.ts → codeblock-utils-B5pyK6c4.d.ts} +0 -0
  130. /package/dist/{definitions-DQRPsvc7.d.ts → definitions-DsPo5rZj.d.ts} +0 -0
  131. /package/dist/{dist-Deq67Kq0.js → dist-DrR2d46_.js} +0 -0
  132. /package/dist/{endpoint-CAUHRXte.js → endpoint-MyoBU5IC.js} +0 -0
  133. /package/dist/{fromFile-BO-SGwwS.js → fromFile-DoNs4YiN.js} +0 -0
  134. /package/dist/{icon-BbWo08Fw.js → icon-BILaoXeg.js} +0 -0
  135. /package/dist/{index-Dw5cCt-A.d.ts → index-BVVgDSdq.d.ts} +0 -0
  136. /package/dist/{index-Yi-xJspv.d.ts → index-CS7BaeTa.d.ts} +0 -0
  137. /package/dist/{is-equal-DiHmw70P.js → is-equal-LdLqRs0o.js} +0 -0
  138. /package/dist/{normalize-url-J3kqKlu4.js → normalize-url-BprQXHOP.js} +0 -0
  139. /package/dist/{rehype-toc-S6N-sHdy.d.ts → rehype-toc-Buwh9Bkg.d.ts} +0 -0
  140. /package/dist/{remark-admonition-CgSEZPK6.d.ts → remark-admonition-B6b741tI.d.ts} +0 -0
  141. /package/dist/{remark-code-tab-d-IsnJUp.d.ts → remark-code-tab-C_xwrYzr.d.ts} +0 -0
  142. /package/dist/{remark-directive-admonition-B2K0zXhU.d.ts → remark-directive-admonition-D6bcy8ye.d.ts} +0 -0
  143. /package/dist/{remark-feedback-block-l4uW7jta.d.ts → remark-feedback-block-DlbKlNCS.d.ts} +0 -0
  144. /package/dist/{remark-gfm-Cv2b95uW.d.ts → remark-gfm-DpVfAX1x.d.ts} +0 -0
  145. /package/dist/{remark-image-CLCoFL38.d.ts → remark-image-DGq11tUk.d.ts} +0 -0
  146. /package/dist/{remark-mdx-files-ulgvmf4K.d.ts → remark-mdx-files-D1GnBf_K.d.ts} +0 -0
  147. /package/dist/{remark-mdx-mermaid-CcK-F03B.d.ts → remark-mdx-mermaid-B-Vm8iOc.d.ts} +0 -0
  148. /package/dist/{remark-npm-BWvHn4O3.js → remark-npm-D9zsrUVt.js} +0 -0
  149. /package/dist/{remark-npm-DRJJDIR0.d.ts → remark-npm-DWgfdohc.d.ts} +0 -0
  150. /package/dist/{remark-steps-Q_rsCX_o.d.ts → remark-steps-DVaztRzR.d.ts} +0 -0
  151. /package/dist/{stringifier-beK5yGbT.d.ts → stringifier-D5Bi8lxA.d.ts} +0 -0
  152. /package/dist/{transformer-icon-DxbdvNM7.d.ts → transformer-icon-6kKIDVYa.d.ts} +0 -0
  153. /package/dist/{types-FiLV8L2L.d.ts → types-D89QoQR-.d.ts} +0 -0
  154. /package/dist/{util-Ds0K_QFY.d.ts → util-BiDGK90k.d.ts} +0 -0
  155. /package/dist/{util-DKxlHpW7.js → util-DjBr9b3w.js} +0 -0
  156. /package/dist/{utils-CkDkYuX8.js → utils-Bvy3V-fv.js} +0 -0
  157. /package/dist/{utils-tAukrbtB.js → utils-D2T58c9w.js} +0 -0
  158. /package/dist/{utils-BFW0mEx9.js → utils-Dn9VIXRN.js} +0 -0
  159. /package/dist/{utils-pSG8hSr9.js → utils-Yx0IL9eW.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-CzMSKybq.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-D5lZwhf5.js";
1
+ import { i as StructuredData } from "./remark-structure-DmVL5OkT.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-DQRPsvc7.js";
1
+ import { i as Root, r as Node, t as Folder } from "./definitions-DsPo5rZj.js";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/breadcrumb.d.ts
@@ -1,5 +1,5 @@
1
- import { t as normalizeUrl } from "./normalize-url-J3kqKlu4.js";
2
- import { r as findPath } from "./utils-BFW0mEx9.js";
1
+ import { t as normalizeUrl } from "./normalize-url-BprQXHOP.js";
2
+ import { r as findPath } from "./utils-Dn9VIXRN.js";
3
3
  import { useMemo } from "react";
4
4
  //#region src/breadcrumb.tsx
5
5
  function useBreadcrumb(url, tree, options) {
@@ -1,5 +1,5 @@
1
- import { r as findPath } from "./utils-BFW0mEx9.js";
2
- import { r as extname, t as basename } from "./path-CPgAF5cw.js";
1
+ import { r as findPath } from "./utils-Dn9VIXRN.js";
2
+ import { r as extname, t as basename } from "./path-DOciLMb0.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-FiLV8L2L.js";
2
- import { t as BaseIndex } from "./algolia-Dy_nhfqJ.js";
3
- import { r as SortedResult } from "./index-Yi-xJspv.js";
1
+ import { t as Awaitable } from "./types-D89QoQR-.js";
2
+ import { t as BaseIndex } from "./algolia-CfRm9dj6.js";
3
+ import { r as SortedResult } from "./index-CS7BaeTa.js";
4
4
  import { DependencyList } from "react";
5
5
  import { AnyOrama, Orama, SearchParams } from "@orama/orama";
6
6
  import { LiteClient, SearchResponse } from "algoliasearch/lite";
@@ -1,4 +1,3 @@
1
- import * as _$react from "react";
2
1
  import { FC } from "react";
3
2
  import { Options } from "remark-rehype";
4
3
  import { Compatible } from "vfile";
@@ -25,6 +24,6 @@ declare function createMarkdownRenderer({
25
24
  remarkPlugins,
26
25
  remarkRehypeOptions
27
26
  }?: MarkdownRendererOptions): MarkdownRenderer;
28
- declare function Markdown(props: MarkdownProps & MarkdownRendererOptions): _$react.ReactNode | Promise<_$react.ReactNode>;
27
+ declare function Markdown(props: MarkdownProps & MarkdownRendererOptions): import("react").ReactNode | Promise<import("react").ReactNode>;
29
28
  //#endregion
30
29
  export { Markdown, MarkdownProps, MarkdownRenderer, MarkdownRendererOptions, createMarkdownRenderer };
@@ -1,10 +1,10 @@
1
- import { t as RehypeCodeOptions } from "../../rehype-code-x0ZobImp.js";
2
- import { t as RemarkImageOptions } from "../../remark-image-CLCoFL38.js";
3
- import { r as StructureOptions } from "../../remark-structure-D5lZwhf5.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-D2b5W0U-.js";
5
- import { t as RemarkCodeTabOptions } from "../../remark-code-tab-d-IsnJUp.js";
6
- import { t as RemarkNpmOptions } from "../../remark-npm-DRJJDIR0.js";
7
- import { t as ResolvePlugins } from "../../util-Ds0K_QFY.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-D3QFMPaV.js";
2
+ import { t as RemarkImageOptions } from "../../remark-image-DGq11tUk.js";
3
+ import { r as StructureOptions } from "../../remark-structure-DmVL5OkT.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-DkG12uAs.js";
5
+ import { t as RemarkCodeTabOptions } from "../../remark-code-tab-C_xwrYzr.js";
6
+ import { t as RemarkNpmOptions } from "../../remark-npm-DWgfdohc.js";
7
+ import { t as ResolvePlugins } from "../../util-BiDGK90k.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-DKxlHpW7.js";
1
+ import { t as resolvePlugins } from "../../util-DjBr9b3w.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-x0ZobImp.js";
2
- import { t as RemarkImageOptions } from "../../remark-image-CLCoFL38.js";
3
- import { r as StructureOptions } from "../../remark-structure-D5lZwhf5.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-D2b5W0U-.js";
5
- import { t as RemarkCodeTabOptions } from "../../remark-code-tab-d-IsnJUp.js";
6
- import { t as RemarkNpmOptions } from "../../remark-npm-DRJJDIR0.js";
7
- import { t as ResolvePlugins } from "../../util-Ds0K_QFY.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-D3QFMPaV.js";
2
+ import { t as RemarkImageOptions } from "../../remark-image-DGq11tUk.js";
3
+ import { r as StructureOptions } from "../../remark-structure-DmVL5OkT.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-DkG12uAs.js";
5
+ import { t as RemarkCodeTabOptions } from "../../remark-code-tab-C_xwrYzr.js";
6
+ import { t as RemarkNpmOptions } from "../../remark-npm-DWgfdohc.js";
7
+ import { t as ResolvePlugins } from "../../util-BiDGK90k.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-DKxlHpW7.js";
1
+ import { t as resolvePlugins } from "../../util-DjBr9b3w.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-De7dlxnI.js";
1
+ import { c as TOCItemType } from "../toc-HGr2QC6x.js";
2
2
  import { Compatible } from "vfile";
3
3
  import { PluggableList } from "unified";
4
4
 
@@ -1,5 +1,4 @@
1
1
  import { LinkProps } from "./link.js";
2
- import * as _$react from "react";
3
2
 
4
3
  //#region src/dynamic-link.d.ts
5
4
  type DynamicLinkProps = LinkProps;
@@ -8,7 +7,7 @@ type DynamicLinkProps = LinkProps;
8
7
  *
9
8
  * It supports dynamic hrefs, which means you can use `/[lang]/my-page` with `dynamicHrefs` enabled
10
9
  */
11
- declare const DynamicLink: _$react.ForwardRefExoticComponent<LinkProps & _$react.RefAttributes<HTMLAnchorElement>>;
10
+ declare const DynamicLink: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
12
11
  declare function updateHref(href: string, params: Record<string, string | string[]>): string;
13
12
  //#endregion
14
13
  export { DynamicLink, DynamicLink as default, DynamicLinkProps, updateHref };
@@ -1,5 +1,4 @@
1
1
  import { ComponentProps, FC, ReactNode } from "react";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { StaticImport } from "next/dist/shared/lib/get-img-props.js";
4
3
 
5
4
  //#region src/framework/index.d.ts
@@ -39,11 +38,11 @@ declare function FrameworkProvider({
39
38
  children
40
39
  }: Framework & {
41
40
  children: ReactNode;
42
- }): _$react_jsx_runtime0.JSX.Element;
41
+ }): import("react").JSX.Element;
43
42
  declare function usePathname(): string;
44
43
  declare function useRouter(): Router;
45
44
  declare function useParams(): Record<string, string | string[]>;
46
- declare function Image(props: ImageProps): _$react_jsx_runtime0.JSX.Element;
47
- declare function Link(props: LinkProps): _$react_jsx_runtime0.JSX.Element;
45
+ declare function Image(props: ImageProps): import("react").JSX.Element;
46
+ declare function Link(props: LinkProps): import("react").JSX.Element;
48
47
  //#endregion
49
48
  export { Framework, FrameworkProvider, Image, ImageProps, Link, Router, useParams, usePathname, useRouter };
@@ -1,6 +1,5 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
3
 
5
4
  //#region src/framework/next.d.ts
6
5
  declare function NextProvider({
@@ -11,6 +10,6 @@ declare function NextProvider({
11
10
  children: ReactNode;
12
11
  Link?: Framework['Link'];
13
12
  Image?: Framework['Image'];
14
- }): _$react_jsx_runtime0.JSX.Element;
13
+ }): import("react").JSX.Element;
15
14
  //#endregion
16
15
  export { NextProvider };
@@ -1,6 +1,5 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
3
 
5
4
  //#region src/framework/react-router.d.ts
6
5
  declare function ReactRouterProvider({
@@ -11,6 +10,6 @@ declare function ReactRouterProvider({
11
10
  children: ReactNode;
12
11
  Link?: Framework['Link'];
13
12
  Image?: Framework['Image'];
14
- }): _$react_jsx_runtime0.JSX.Element;
13
+ }): import("react").JSX.Element;
15
14
  //#endregion
16
15
  export { ReactRouterProvider };
@@ -1,6 +1,5 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
3
 
5
4
  //#region src/framework/tanstack.d.ts
6
5
  /**
@@ -14,6 +13,6 @@ declare function TanstackProvider({
14
13
  children: ReactNode;
15
14
  Link?: Framework['Link'];
16
15
  Image?: Framework['Image'];
17
- }): _$react_jsx_runtime0.JSX.Element;
16
+ }): import("react").JSX.Element;
18
17
  //#endregion
19
18
  export { TanstackProvider };
@@ -1,6 +1,5 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
3
 
5
4
  //#region src/framework/waku.d.ts
6
5
  declare function WakuProvider({
@@ -11,6 +10,6 @@ declare function WakuProvider({
11
10
  children: ReactNode;
12
11
  Link?: Framework['Link'];
13
12
  Image?: Framework['Image'];
14
- }): _$react_jsx_runtime0.JSX.Element;
13
+ }): import("react").JSX.Element;
15
14
  //#endregion
16
15
  export { WakuProvider };
@@ -2,18 +2,15 @@
2
2
  import { FrameworkProvider } from "./index.js";
3
3
  import { useMemo, useRef } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import { Link, useRouter } from "waku";
5
+ import { Link, useRouter } from "waku/router/client";
6
6
  //#region src/framework/waku.tsx
7
7
  const framework = {
8
8
  usePathname() {
9
9
  return useRouter().path;
10
10
  },
11
11
  useParams() {
12
- const { query } = useRouter();
13
- return useMemo(() => {
14
- const params = new URLSearchParams(query);
15
- return Object.fromEntries(Array.from(params.entries()).map(([key, value]) => [key, Array.isArray(value) ? value[0] : value]));
16
- }, [query]);
12
+ console.warn("[Fumadocs] useParams() is not supported on Waku");
13
+ return useMemo(() => ({}), []);
17
14
  },
18
15
  useRouter() {
19
16
  const router = useRouter();
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as applyDefaultThemes } from "../utils-tAukrbtB.js";
2
+ import { t as applyDefaultThemes } from "../utils-D2T58c9w.js";
3
3
  import { useShiki as useShiki$1 } from "./shiki/react.js";
4
4
  import { defaultShikiFactory } from "./shiki/full.js";
5
5
  //#region src/highlight/client.ts
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  import { Components } from "hast-util-to-jsx-runtime";
3
3
  import { Root } from "hast";
4
- import * as _$shiki from "shiki";
5
4
  import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, LanguageRegistration, ThemeRegistrationAny } from "shiki";
6
5
 
7
6
  //#region src/highlight/index.d.ts
@@ -27,7 +26,7 @@ declare function highlightHast(code: string, options: HighlightHastOptions): Pro
27
26
  declare function getHighlighter(engineType: 'js' | 'oniguruma', options?: {
28
27
  langs?: (BundledLanguage | LanguageRegistration)[];
29
28
  themes?: (BundledTheme | ThemeRegistrationAny)[];
30
- }): Promise<_$shiki.HighlighterCore>;
29
+ }): Promise<import("shiki").HighlighterCore>;
31
30
  declare function highlight(code: string, options: HighlightOptions): Promise<ReactNode>;
32
31
  //#endregion
33
32
  export { HighlightHastOptions, HighlightOptions, getHighlighter, highlight, highlightHast };
@@ -1,4 +1,4 @@
1
- import { a as loadMissingTheme, i as loadMissingLanguage, t as applyDefaultThemes } from "../utils-tAukrbtB.js";
1
+ import { a as loadMissingTheme, i as loadMissingLanguage, t as applyDefaultThemes } from "../utils-D2T58c9w.js";
2
2
  import { highlightHast as highlightHast$1 } from "./shiki/index.js";
3
3
  import { defaultShikiFactory, wasmShikiFactory } from "./shiki/full.js";
4
4
  import * as JsxRuntime from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { n as ShikiFactory } from "../../index-CFaAAU5K.js";
1
+ import { n as ShikiFactory } from "../../index-CrF56b4C.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-CFaAAU5K.js";
1
+ import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-CrF56b4C.js";
2
2
  export { HighlightHastOptions, ShikiFactory, createShikiFactory, highlightHast };
@@ -1,4 +1,4 @@
1
- import { a as loadMissingTheme, r as getRequiredThemes } from "../../utils-tAukrbtB.js";
1
+ import { a as loadMissingTheme, r as getRequiredThemes } from "../../utils-D2T58c9w.js";
2
2
  //#region src/highlight/shiki/index.ts
3
3
  function createShikiFactory(config) {
4
4
  let instance;
@@ -1,5 +1,5 @@
1
- import { t as Awaitable } from "../../types-FiLV8L2L.js";
2
- import { t as HighlightHastOptions } from "../../index-CFaAAU5K.js";
1
+ import { t as Awaitable } from "../../types-D89QoQR-.js";
2
+ import { t as HighlightHastOptions } from "../../index-CrF56b4C.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 { a as TranslationPreset, c as TranslationsAPIExtension, d as renderTranslation, i as TranslationObject, l as defineI18n, n as I18nConfig, o as TranslationValue, r as SingularTranslationsAPI, s as TranslationsAPI, t as I18nAPI, u as defineTranslations } from "../index-iV26Yxbg.js";
2
- export { I18nAPI, I18nConfig, SingularTranslationsAPI, TranslationObject, TranslationPreset, TranslationValue, TranslationsAPI, TranslationsAPIExtension, defineI18n, defineTranslations, renderTranslation };
1
+ import { a as TranslationPreset, c as defineTranslations, i as TranslationExtension, n as I18nConfig, o as TranslationsAPI, r as SingularTranslationsAPI, s as defineI18n, t as I18nAPI } from "../index-B799MJOL.js";
2
+ export { I18nAPI, I18nConfig, SingularTranslationsAPI, TranslationExtension, TranslationPreset, TranslationsAPI, defineI18n, defineTranslations };
@@ -1,42 +1,35 @@
1
1
  //#region src/i18n/index.ts
2
+ function pickTranslations(full, keys) {
3
+ const result = {};
4
+ for (const k in full) if (keys.has(k)) result[k] = full[k];
5
+ return result;
6
+ }
2
7
  function defineI18n(config) {
3
8
  return {
4
9
  ...config,
5
10
  translations() {
6
11
  const translations = {};
7
- const stagedTranslations = {};
8
- for (const lang of config.languages) {
9
- translations[lang] = {};
10
- stagedTranslations[lang] = {};
11
- }
12
+ const registeredKeys = /* @__PURE__ */ new Set();
13
+ for (const lang of config.languages) translations[lang] = {};
12
14
  return {
13
15
  config,
14
16
  $inferLanguages: void 0,
15
- $inferNamespaces: void 0,
17
+ $inferKeys: void 0,
16
18
  get(lang) {
17
- return translations[lang];
19
+ if (!translations[lang]) return void 0;
20
+ return pickTranslations(translations[lang], registeredKeys);
18
21
  },
19
- preset(lang, preset) {
20
- const t = translations[lang];
21
- const staged = stagedTranslations[lang];
22
- for (const [namespace, obj] of Object.entries(preset.value)) Object.assign(t[namespace] ?? (staged[namespace] ??= {}), obj);
22
+ extend(extension) {
23
+ for (const key of extension.keys) registeredKeys.add(key);
23
24
  return this;
24
25
  },
25
- add(namespace, overrides) {
26
- for (const [lang, values] of Object.entries(overrides)) Object.assign(translations[lang][namespace], values);
26
+ add(...args) {
27
+ const overrides = args.length === 2 ? args[1] : args[0];
28
+ for (const [lang, values] of Object.entries(overrides)) Object.assign(translations[lang] ??= {}, values);
27
29
  return this;
28
30
  },
29
- extend({ namespace, defaultValue }) {
30
- for (const lang of config.languages) {
31
- const t = translations[lang];
32
- const staged = stagedTranslations[lang];
33
- if (t[namespace]) continue;
34
- t[namespace] = {
35
- ...defaultValue,
36
- ...staged[namespace]
37
- };
38
- delete staged[namespace];
39
- }
31
+ preset(lang, preset) {
32
+ Object.assign(translations[lang], preset.value);
40
33
  return this;
41
34
  }
42
35
  };
@@ -46,38 +39,25 @@ function defineI18n(config) {
46
39
  /** create translations API without i18n */
47
40
  function defineTranslations() {
48
41
  const translations = {};
49
- const stagedTranslations = {};
42
+ const registeredKeys = /* @__PURE__ */ new Set();
50
43
  return {
51
- $inferNamespaces: void 0,
44
+ $inferKeys: void 0,
52
45
  get() {
53
- return translations;
46
+ return pickTranslations(translations, registeredKeys);
54
47
  },
55
- preset(preset) {
56
- for (const [namespace, obj] of Object.entries(preset.value)) {
57
- const t = translations[namespace] ?? (stagedTranslations[namespace] ??= {});
58
- Object.assign(t, obj);
59
- }
48
+ extend(extension) {
49
+ for (const key of extension.keys) registeredKeys.add(key);
60
50
  return this;
61
51
  },
62
- add(namespace, overrides) {
63
- Object.assign(translations[namespace], overrides);
52
+ add(...args) {
53
+ Object.assign(translations, args.length === 2 ? args[1] : args[0]);
64
54
  return this;
65
55
  },
66
- extend({ namespace, defaultValue }) {
67
- if (!translations[namespace]) {
68
- translations[namespace] = {
69
- ...defaultValue,
70
- ...stagedTranslations[namespace]
71
- };
72
- delete stagedTranslations[namespace];
73
- }
56
+ preset(preset) {
57
+ Object.assign(translations, preset.value);
74
58
  return this;
75
59
  }
76
60
  };
77
61
  }
78
- function renderTranslation(label, params) {
79
- if (params) for (const k in params) label = label.replaceAll(`{${k}}`, params[k]);
80
- return label;
81
- }
82
62
  //#endregion
83
- export { defineI18n, defineTranslations, renderTranslation };
63
+ export { defineI18n, defineTranslations };
@@ -1,4 +1,4 @@
1
- import { n as I18nConfig } from "../index-iV26Yxbg.js";
1
+ import { n as I18nConfig } from "../index-B799MJOL.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 { t as getNegotiator } from "../negotiation-CvOwibYZ.js";
1
+ import { t as getNegotiator } from "../negotiation-C6hn0LRz.js";
2
2
  import { NextResponse } from "next/server.js";
3
3
  //#region ../../node_modules/.pnpm/@formatjs+fast-memoize@3.1.5/node_modules/@formatjs/fast-memoize/index.js
4
4
  function memoize(fn, options) {
@@ -56,7 +56,7 @@ const cacheDefault = { create: function create() {
56
56
  return new ObjectWithoutPrototypeCache();
57
57
  } };
58
58
  //#endregion
59
- //#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.8/node_modules/@formatjs/intl-localematcher/index.js
59
+ //#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.9/node_modules/@formatjs/intl-localematcher/index.js
60
60
  /**
61
61
  * http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
62
62
  * @param locales
@@ -0,0 +1,88 @@
1
+ //#region src/i18n/index.d.ts
2
+ interface I18nConfig<Languages extends string = string> {
3
+ /**
4
+ * Supported locale codes.
5
+ *
6
+ * A page tree will be built for each language.
7
+ */
8
+ languages: Languages[];
9
+ /**
10
+ * Default locale if not specified
11
+ */
12
+ defaultLanguage: NoInfer<Languages>;
13
+ /**
14
+ * Don't show the locale prefix on URL.
15
+ *
16
+ * - `always`: Always hide the prefix
17
+ * - `default-locale`: Only hide the default locale
18
+ * - `never`: Never hide the prefix
19
+ *
20
+ * This API uses `NextResponse.rewrite`.
21
+ *
22
+ * @defaultValue 'never'
23
+ */
24
+ hideLocale?: 'always' | 'default-locale' | 'never';
25
+ /**
26
+ * Used by `loader()`, specify the way to parse i18n file structure.
27
+ *
28
+ * @defaultValue 'dot'
29
+ */
30
+ parser?: 'dot' | 'dir' | 'none';
31
+ /**
32
+ * the fallback language when the page has no translations available for a given locale.
33
+ *
34
+ * Default to `defaultLanguage`, no fallback when set to `null`.
35
+ */
36
+ fallbackLanguage?: NoInfer<Languages> | null;
37
+ }
38
+ interface TranslationExtension<Keys extends string = string> {
39
+ keys: readonly Keys[];
40
+ }
41
+ interface TranslationPreset<Keys extends string = string> {
42
+ name: string;
43
+ value: Partial<Record<Keys, string>>;
44
+ }
45
+ interface TranslationsAPI<Languages extends string = string, Keys extends string = string> {
46
+ /** for type inference only, always `undefined` in runtime */
47
+ $inferLanguages: Languages;
48
+ /** for type inference only, always `undefined` in runtime */
49
+ $inferKeys: Keys;
50
+ config: I18nConfig<Languages>;
51
+ get: {
52
+ (lang: Languages): Partial<Record<Keys, string>>;
53
+ (lang: string): Partial<Record<Keys, string>> | undefined;
54
+ };
55
+ /** register allowed translation keys */
56
+ extend<const NewKeys extends string>(extension: TranslationExtension<NewKeys>): TranslationsAPI<Languages, Keys | NewKeys>;
57
+ /** add translations */
58
+ add(overrides: { [Lang in Languages]?: Partial<Record<Keys, string>> }): TranslationsAPI<Languages, Keys>;
59
+ /** @deprecated the namespace parameter is now unnecessary */
60
+ add(unused: string, overrides: { [Lang in Languages]?: Partial<Record<Keys, string>> & {
61
+ /** @deprecated the label is no longer used */[key: string]: string;
62
+ } }): TranslationsAPI<Languages, Keys>;
63
+ /** add language pack */
64
+ preset: (lang: Languages, preset: TranslationPreset<Keys>) => TranslationsAPI<Languages, Keys>;
65
+ }
66
+ interface I18nAPI<Languages extends string = string> extends I18nConfig<Languages> {
67
+ translations: () => TranslationsAPI<Languages, never>;
68
+ }
69
+ interface SingularTranslationsAPI<Keys extends string = string> {
70
+ /** for type inference only, always `undefined` in runtime */
71
+ $inferKeys: Keys;
72
+ get: () => Partial<Record<Keys, string>>;
73
+ /** register allowed translation keys */
74
+ extend<const NewKeys extends string>(extension: TranslationExtension<NewKeys>): SingularTranslationsAPI<Keys | NewKeys>;
75
+ /** add translations */
76
+ add(overrides: Partial<Record<Keys, string>>): SingularTranslationsAPI<Keys>;
77
+ /** @deprecated the namespace parameter is now unnecessary */
78
+ add(unused: string, overrides: Partial<Record<Keys, string>> & {
79
+ /** @deprecated the label is no longer used */[key: string]: string;
80
+ }): SingularTranslationsAPI<Keys>;
81
+ /** add language pack */
82
+ preset: (preset: TranslationPreset<Keys>) => SingularTranslationsAPI<Keys>;
83
+ }
84
+ declare function defineI18n<const Languages extends string>(config: I18nConfig<Languages>): I18nAPI<Languages>;
85
+ /** create translations API without i18n */
86
+ declare function defineTranslations(): SingularTranslationsAPI<never>;
87
+ //#endregion
88
+ export { TranslationPreset as a, defineTranslations as c, TranslationExtension as i, I18nConfig as n, TranslationsAPI as o, SingularTranslationsAPI as r, defineI18n as s, I18nAPI as t };
@@ -1,4 +1,4 @@
1
- import { i as Root } from "./definitions-DQRPsvc7.js";
1
+ import { i as Root } from "./definitions-DsPo5rZj.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-FiLV8L2L.js";
1
+ import { t as Awaitable } from "./types-D89QoQR-.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-DQRPsvc7.js";
1
+ import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-DsPo5rZj.js";
2
2
 
3
3
  //#region src/page-tree/utils.d.ts
4
4
  /**