fumadocs-core 16.4.6 → 16.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{advanced-tbtFDsHU.js → advanced-BiZjLx5X.js} +3 -4
- package/dist/{algolia-B9GvomyW.d.ts → algolia-DWUn4vqa.d.ts} +2 -3
- package/dist/{algolia-Dbt0kj8j.js → algolia-IT2aRQE6.js} +2 -3
- package/dist/breadcrumb.d.ts +2 -3
- package/dist/breadcrumb.js +3 -4
- package/dist/{codeblock-utils-CdA7nXLP.d.ts → codeblock-utils-DA5Ql7wp.d.ts} +1 -2
- package/dist/content/github.d.ts +1 -2
- package/dist/content/github.js +1 -2
- package/dist/content/index.d.ts +3 -4
- package/dist/content/index.js +1 -2
- package/dist/content/mdx/preset-bundler.d.ts +9 -10
- package/dist/content/mdx/preset-bundler.js +2 -3
- package/dist/content/mdx/preset-runtime.d.ts +9 -10
- package/dist/content/mdx/preset-runtime.js +2 -3
- package/dist/content/toc.d.ts +1 -2
- package/dist/content/toc.js +2 -3
- package/dist/{definitions-Ca2P2viV.d.ts → definitions-fBNEDML4.d.ts} +1 -2
- package/dist/dynamic-link.d.ts +1 -2
- package/dist/dynamic-link.js +1 -2
- package/dist/{fetch-CiphcAUR.js → fetch-B9AxBORJ.js} +1 -2
- package/dist/framework/index.d.ts +5 -6
- package/dist/framework/index.js +1 -2
- package/dist/framework/next.d.ts +3 -4
- package/dist/framework/next.js +1 -2
- package/dist/framework/react-router.d.ts +3 -4
- package/dist/framework/react-router.js +1 -2
- package/dist/framework/tanstack.d.ts +3 -4
- package/dist/framework/tanstack.js +1 -2
- package/dist/framework/waku.d.ts +3 -4
- package/dist/framework/waku.js +1 -2
- package/dist/highlight/client.d.ts +2 -3
- package/dist/highlight/client.js +2 -3
- package/dist/highlight/index.d.ts +1 -1
- package/dist/highlight/index.js +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +1 -2
- package/dist/i18n/middleware.d.ts +2 -3
- package/dist/i18n/middleware.js +1 -2
- package/dist/{icon-CL3r1pNG.js → icon-D9W4ODUt.js} +1 -2
- package/dist/{index-k5KwKJ_c.d.ts → index-Bn_dIR1t.d.ts} +6 -6
- package/dist/{index-DxhhLscI.d.ts → index-CNd0mkPr.d.ts} +1 -2
- package/dist/index-DbVQNAN8.d.ts +44 -0
- package/dist/index-Skpc1DNd.d.ts +18 -0
- package/dist/link.d.ts +3 -4
- package/dist/link.js +1 -2
- package/dist/{mdast-utils-B8O-41y4.js → mdast-utils-BqE5966y.js} +1 -2
- package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
- package/dist/mdx-plugins/codeblock-utils.js +1 -2
- package/dist/mdx-plugins/index.d.ts +15 -15
- package/dist/mdx-plugins/index.js +4 -4
- package/dist/mdx-plugins/rehype-code.d.ts +1 -1
- package/dist/mdx-plugins/rehype-code.js +2 -2
- package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
- package/dist/mdx-plugins/rehype-toc.js +1 -1
- package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-admonition.js +2 -3
- package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
- package/dist/mdx-plugins/remark-code-tab.js +1 -2
- package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-directive-admonition.js +1 -2
- package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
- package/dist/mdx-plugins/remark-feedback-block.js +2 -3
- package/dist/mdx-plugins/remark-gfm.d.ts +1 -1
- package/dist/mdx-plugins/remark-heading.d.ts +1 -1
- package/dist/mdx-plugins/remark-heading.js +2 -3
- package/dist/mdx-plugins/remark-image.d.ts +1 -1
- package/dist/mdx-plugins/remark-image.js +1 -2
- package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-files.js +1 -2
- package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-mermaid.js +1 -2
- package/dist/mdx-plugins/remark-npm.d.ts +1 -1
- package/dist/mdx-plugins/remark-npm.js +1 -2
- package/dist/mdx-plugins/remark-steps.d.ts +1 -1
- package/dist/mdx-plugins/remark-steps.js +1 -2
- package/dist/mdx-plugins/remark-structure.d.ts +1 -1
- package/dist/mdx-plugins/remark-structure.js +2 -3
- package/dist/{mixedbread-B0TvOHtt.js → mixedbread-B4x0e8AJ.js} +6 -5
- package/dist/negotiation/index.d.ts +1 -2
- package/dist/negotiation/index.js +1 -2
- package/dist/{normalize-url-CEfNKxaE.js → normalize-url-D88zV54r.js} +1 -2
- package/dist/{orama-cloud-yicpgD0c.js → orama-cloud-CiI54EU9.js} +3 -4
- package/dist/{orama-cloud-legacy-NJTbB19B.js → orama-cloud-legacy-DG0asrcn.js} +3 -4
- package/dist/page-tree/index.d.ts +3 -45
- package/dist/page-tree/index.js +1 -1
- package/dist/{path-CECfI3nn.js → path-B48ZWv8k.js} +2 -3
- package/dist/{rehype-code-Ct5Pb6BZ.js → rehype-code-8Te7jiPm.js} +2 -3
- package/dist/{rehype-code-BUrju-yF.d.ts → rehype-code-9wJ_hsjl.d.ts} +1 -2
- package/dist/{rehype-toc-Dcgzd_Vy.d.ts → rehype-toc-Bt9Ng_4w.d.ts} +1 -2
- package/dist/{rehype-toc-CTG0x7La.js → rehype-toc-CRXB92Tc.js} +1 -2
- package/dist/{remark-admonition-BvgS4oU1.d.ts → remark-admonition-DVevS9Wn.d.ts} +1 -2
- package/dist/{remark-code-tab-Ds_BdYXz.d.ts → remark-code-tab-DwGhoHpj.d.ts} +1 -2
- package/dist/{remark-directive-admonition-02cR5K1L.d.ts → remark-directive-admonition-DA7-ewEx.d.ts} +1 -2
- package/dist/{remark-feedback-block-fAyt4LdQ.d.ts → remark-feedback-block-PpERWDdJ.d.ts} +1 -2
- package/dist/{remark-heading-CSButCYt.d.ts → remark-heading-B02bkQ09.d.ts} +1 -2
- package/dist/{remark-image-C3MnP-3r.d.ts → remark-image-k8SDn3Hf.d.ts} +1 -2
- package/dist/{remark-mdx-files-BXUiiX3M.d.ts → remark-mdx-files-DXQKQsPS.d.ts} +1 -2
- package/dist/{remark-mdx-mermaid-C5ZBxx8x.d.ts → remark-mdx-mermaid-CzeZXfYX.d.ts} +1 -2
- package/dist/{remark-npm-DADZg0pf.d.ts → remark-npm-DS3cHDxB.d.ts} +1 -2
- package/dist/{remark-steps-CWEE34cT.d.ts → remark-steps-Bz-6C0tE.d.ts} +1 -2
- package/dist/{remark-structure-ChKxMXnK.d.ts → remark-structure-dZprfvCG.d.ts} +1 -2
- package/dist/{remove-undefined-Buxsprgu.js → remove-undefined-CiwokjLP.js} +1 -2
- package/dist/search/algolia.d.ts +2 -2
- package/dist/search/algolia.js +1 -2
- package/dist/search/client.d.ts +8 -7
- package/dist/search/client.js +7 -8
- package/dist/search/index.d.ts +1 -2
- package/dist/search/index.js +1 -1
- package/dist/search/orama-cloud-legacy.d.ts +6 -7
- package/dist/search/orama-cloud-legacy.js +1 -2
- package/dist/search/orama-cloud.d.ts +6 -7
- package/dist/search/orama-cloud.js +1 -2
- package/dist/search/server.d.ts +6 -4
- package/dist/search/server.js +5 -6
- package/dist/{search-DzqmOjzV.js → search-CBAFoCmV.js} +1 -2
- package/dist/{server-CjGgVKx_.d.ts → server-BqqfVZaS.d.ts} +4 -5
- package/dist/{shiki-B4NO99XD.js → shiki-BMakKE6A.js} +1 -2
- package/dist/{shiki-vKy7H_iw.d.ts → shiki-BjMLCq9L.d.ts} +1 -2
- package/dist/source/client/index.d.ts +4 -18
- package/dist/source/client/index.js +21 -12
- package/dist/source/index.d.ts +4 -2
- package/dist/source/index.js +118 -66
- package/dist/source/plugins/lucide-icons.d.ts +5 -4
- package/dist/source/plugins/lucide-icons.js +2 -3
- package/dist/source/plugins/slugs.d.ts +4 -2
- package/dist/source/plugins/slugs.js +2 -3
- package/dist/source/plugins/status-badges.d.ts +53 -0
- package/dist/source/plugins/status-badges.js +54 -0
- package/dist/source/schema.d.ts +1 -2
- package/dist/source/schema.js +1 -2
- package/dist/{static-C_WBOzek.js → static-Dg4_dKaf.js} +2 -3
- package/dist/toc.d.ts +1 -2
- package/dist/toc.js +1 -2
- package/dist/{util-d5FlPx1Z.d.ts → util-C1pcIt82.d.ts} +1 -2
- package/dist/{util-Dn-wseQ5.js → util-E8U2ttCR.js} +1 -2
- package/dist/utils/use-effect-event.d.ts +1 -2
- package/dist/utils/use-effect-event.js +1 -2
- package/dist/utils/use-media-query.d.ts +1 -2
- package/dist/utils/use-media-query.js +1 -2
- package/dist/utils/use-on-change.d.ts +1 -2
- package/dist/utils/use-on-change.js +1 -2
- package/dist/{utils-D10VxgVc.js → utils-BllAiz19.js} +1 -2
- package/package.json +14 -14
- package/dist/advanced-tbtFDsHU.js.map +0 -1
- package/dist/algolia-B9GvomyW.d.ts.map +0 -1
- package/dist/algolia-Dbt0kj8j.js.map +0 -1
- package/dist/breadcrumb.d.ts.map +0 -1
- package/dist/breadcrumb.js.map +0 -1
- package/dist/codeblock-utils-CdA7nXLP.d.ts.map +0 -1
- package/dist/content/github.d.ts.map +0 -1
- package/dist/content/github.js.map +0 -1
- package/dist/content/index.d.ts.map +0 -1
- package/dist/content/index.js.map +0 -1
- package/dist/content/mdx/preset-bundler.d.ts.map +0 -1
- package/dist/content/mdx/preset-bundler.js.map +0 -1
- package/dist/content/mdx/preset-runtime.d.ts.map +0 -1
- package/dist/content/mdx/preset-runtime.js.map +0 -1
- package/dist/content/toc.d.ts.map +0 -1
- package/dist/content/toc.js.map +0 -1
- package/dist/definitions-Ca2P2viV.d.ts.map +0 -1
- package/dist/dynamic-link.d.ts.map +0 -1
- package/dist/dynamic-link.js.map +0 -1
- package/dist/fetch-CiphcAUR.js.map +0 -1
- package/dist/framework/index.d.ts.map +0 -1
- package/dist/framework/index.js.map +0 -1
- package/dist/framework/next.d.ts.map +0 -1
- package/dist/framework/next.js.map +0 -1
- package/dist/framework/react-router.d.ts.map +0 -1
- package/dist/framework/react-router.js.map +0 -1
- package/dist/framework/tanstack.d.ts.map +0 -1
- package/dist/framework/tanstack.js.map +0 -1
- package/dist/framework/waku.d.ts.map +0 -1
- package/dist/framework/waku.js.map +0 -1
- package/dist/highlight/client.d.ts.map +0 -1
- package/dist/highlight/client.js.map +0 -1
- package/dist/i18n/index.js.map +0 -1
- package/dist/i18n/middleware.d.ts.map +0 -1
- package/dist/i18n/middleware.js.map +0 -1
- package/dist/icon-CL3r1pNG.js.map +0 -1
- package/dist/index-DxhhLscI.d.ts.map +0 -1
- package/dist/index-k5KwKJ_c.d.ts.map +0 -1
- package/dist/link.d.ts.map +0 -1
- package/dist/link.js.map +0 -1
- package/dist/mdast-utils-B8O-41y4.js.map +0 -1
- package/dist/mdx-plugins/codeblock-utils.js.map +0 -1
- package/dist/mdx-plugins/remark-admonition.js.map +0 -1
- package/dist/mdx-plugins/remark-code-tab.js.map +0 -1
- package/dist/mdx-plugins/remark-directive-admonition.js.map +0 -1
- package/dist/mdx-plugins/remark-feedback-block.js.map +0 -1
- package/dist/mdx-plugins/remark-heading.js.map +0 -1
- package/dist/mdx-plugins/remark-image.js.map +0 -1
- package/dist/mdx-plugins/remark-mdx-files.js.map +0 -1
- package/dist/mdx-plugins/remark-mdx-mermaid.js.map +0 -1
- package/dist/mdx-plugins/remark-npm.js.map +0 -1
- package/dist/mdx-plugins/remark-steps.js.map +0 -1
- package/dist/mdx-plugins/remark-structure.js.map +0 -1
- package/dist/mixedbread-B0TvOHtt.js.map +0 -1
- package/dist/negotiation/index.d.ts.map +0 -1
- package/dist/negotiation/index.js.map +0 -1
- package/dist/normalize-url-CEfNKxaE.js.map +0 -1
- package/dist/orama-cloud-legacy-NJTbB19B.js.map +0 -1
- package/dist/orama-cloud-yicpgD0c.js.map +0 -1
- package/dist/page-tree/index.d.ts.map +0 -1
- package/dist/path-CECfI3nn.js.map +0 -1
- package/dist/rehype-code-BUrju-yF.d.ts.map +0 -1
- package/dist/rehype-code-Ct5Pb6BZ.js.map +0 -1
- package/dist/rehype-toc-CTG0x7La.js.map +0 -1
- package/dist/rehype-toc-Dcgzd_Vy.d.ts.map +0 -1
- package/dist/remark-admonition-BvgS4oU1.d.ts.map +0 -1
- package/dist/remark-code-tab-Ds_BdYXz.d.ts.map +0 -1
- package/dist/remark-directive-admonition-02cR5K1L.d.ts.map +0 -1
- package/dist/remark-feedback-block-fAyt4LdQ.d.ts.map +0 -1
- package/dist/remark-heading-CSButCYt.d.ts.map +0 -1
- package/dist/remark-image-C3MnP-3r.d.ts.map +0 -1
- package/dist/remark-mdx-files-BXUiiX3M.d.ts.map +0 -1
- package/dist/remark-mdx-mermaid-C5ZBxx8x.d.ts.map +0 -1
- package/dist/remark-npm-DADZg0pf.d.ts.map +0 -1
- package/dist/remark-steps-CWEE34cT.d.ts.map +0 -1
- package/dist/remark-structure-ChKxMXnK.d.ts.map +0 -1
- package/dist/remove-undefined-Buxsprgu.js.map +0 -1
- package/dist/search/algolia.js.map +0 -1
- package/dist/search/client.d.ts.map +0 -1
- package/dist/search/client.js.map +0 -1
- package/dist/search/index.d.ts.map +0 -1
- package/dist/search/orama-cloud-legacy.d.ts.map +0 -1
- package/dist/search/orama-cloud-legacy.js.map +0 -1
- package/dist/search/orama-cloud.d.ts.map +0 -1
- package/dist/search/orama-cloud.js.map +0 -1
- package/dist/search/server.js.map +0 -1
- package/dist/search-DzqmOjzV.js.map +0 -1
- package/dist/server-CjGgVKx_.d.ts.map +0 -1
- package/dist/shiki-B4NO99XD.js.map +0 -1
- package/dist/shiki-vKy7H_iw.d.ts.map +0 -1
- package/dist/source/client/index.d.ts.map +0 -1
- package/dist/source/client/index.js.map +0 -1
- package/dist/source/index.js.map +0 -1
- package/dist/source/plugins/lucide-icons.d.ts.map +0 -1
- package/dist/source/plugins/lucide-icons.js.map +0 -1
- package/dist/source/plugins/slugs.js.map +0 -1
- package/dist/source/schema.d.ts.map +0 -1
- package/dist/source/schema.js.map +0 -1
- package/dist/static-C_WBOzek.js.map +0 -1
- package/dist/toc.d.ts.map +0 -1
- package/dist/toc.js.map +0 -1
- package/dist/util-Dn-wseQ5.js.map +0 -1
- package/dist/util-d5FlPx1Z.d.ts.map +0 -1
- package/dist/utils/use-effect-event.d.ts.map +0 -1
- package/dist/utils/use-effect-event.js.map +0 -1
- package/dist/utils/use-media-query.d.ts.map +0 -1
- package/dist/utils/use-media-query.js.map +0 -1
- package/dist/utils/use-on-change.d.ts.map +0 -1
- package/dist/utils/use-on-change.js.map +0 -1
- package/dist/utils-D10VxgVc.js.map +0 -1
- /package/dist/{chunk-C9UIFEcR.js → chunk-CQNP8FC4.js} +0 -0
- /package/dist/{remark-gfm-jrvaEZw5.d.ts → remark-gfm-Cvcfjik1.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createContentHighlighter } from "./search-
|
|
2
|
-
import { t as removeUndefined } from "./remove-undefined-
|
|
1
|
+
import { t as createContentHighlighter } from "./search-CBAFoCmV.js";
|
|
2
|
+
import { t as removeUndefined } from "./remove-undefined-CiwokjLP.js";
|
|
3
3
|
import { getByID, search } from "@orama/orama";
|
|
4
4
|
|
|
5
5
|
//#region src/search/orama/search/simple.ts
|
|
@@ -76,5 +76,4 @@ async function searchAdvanced(db, query, tag = [], { mode = "fulltext", ...overr
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
//#endregion
|
|
79
|
-
export { searchSimple as n, searchAdvanced as t };
|
|
80
|
-
//# sourceMappingURL=advanced-tbtFDsHU.js.map
|
|
79
|
+
export { searchSimple as n, searchAdvanced as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as StructuredData } from "./remark-structure-
|
|
1
|
+
import { n as StructuredData } from "./remark-structure-dZprfvCG.js";
|
|
2
2
|
import { Algoliasearch } from "algoliasearch";
|
|
3
3
|
|
|
4
4
|
//#region src/search/algolia.d.ts
|
|
@@ -64,5 +64,4 @@ interface BaseIndex {
|
|
|
64
64
|
content: string;
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
|
-
export { sync as a, setIndexSettings as i, DocumentRecord as n, updateDocuments as o, SyncOptions as r, BaseIndex as t };
|
|
68
|
-
//# sourceMappingURL=algolia-B9GvomyW.d.ts.map
|
|
67
|
+
export { sync as a, setIndexSettings as i, DocumentRecord as n, updateDocuments as o, SyncOptions as r, BaseIndex as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createContentHighlighter } from "./search-
|
|
1
|
+
import { t as createContentHighlighter } from "./search-CBAFoCmV.js";
|
|
2
2
|
|
|
3
3
|
//#region src/search/client/algolia.ts
|
|
4
4
|
function groupResults(hits) {
|
|
@@ -45,5 +45,4 @@ async function searchDocs(query, { indexName, onSearch, client, locale, tag }) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
|
-
export { searchDocs };
|
|
49
|
-
//# sourceMappingURL=algolia-Dbt0kj8j.js.map
|
|
48
|
+
export { searchDocs };
|
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Root, r as Node } from "./definitions-
|
|
1
|
+
import { i as Root, r as Node } from "./definitions-fBNEDML4.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/breadcrumb.d.ts
|
|
@@ -44,5 +44,4 @@ declare function getBreadcrumbItemsFromPath(tree: Root, path: Node[], options: B
|
|
|
44
44
|
*/
|
|
45
45
|
declare function searchPath(nodes: Node[], url: string): Node[] | null;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { BreadcrumbItem, BreadcrumbOptions, getBreadcrumbItems, getBreadcrumbItemsFromPath, searchPath, useBreadcrumb };
|
|
48
|
-
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
47
|
+
export { BreadcrumbItem, BreadcrumbOptions, getBreadcrumbItems, getBreadcrumbItemsFromPath, searchPath, useBreadcrumb };
|
package/dist/breadcrumb.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as normalizeUrl } from "./normalize-url-
|
|
2
|
-
import { r as findPath } from "./utils-
|
|
1
|
+
import { t as normalizeUrl } from "./normalize-url-D88zV54r.js";
|
|
2
|
+
import { r as findPath } from "./utils-BllAiz19.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/breadcrumb.tsx
|
|
@@ -60,5 +60,4 @@ function searchPath(nodes, url) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
//#endregion
|
|
63
|
-
export { getBreadcrumbItems, getBreadcrumbItemsFromPath, searchPath, useBreadcrumb };
|
|
64
|
-
//# sourceMappingURL=breadcrumb.js.map
|
|
63
|
+
export { getBreadcrumbItems, getBreadcrumbItemsFromPath, searchPath, useBreadcrumb };
|
|
@@ -33,5 +33,4 @@ interface CodeBlockAttributes<Name extends string = string> {
|
|
|
33
33
|
*/
|
|
34
34
|
declare function parseCodeBlockAttributes<Name extends string = string>(meta: string, allowedNames?: Name[]): CodeBlockAttributes<Name>;
|
|
35
35
|
//#endregion
|
|
36
|
-
export { parseCodeBlockAttributes as i, CodeBlockTabsOptions as n, generateCodeBlockTabs as r, CodeBlockAttributes as t };
|
|
37
|
-
//# sourceMappingURL=codeblock-utils-CdA7nXLP.d.ts.map
|
|
36
|
+
export { parseCodeBlockAttributes as i, CodeBlockTabsOptions as n, generateCodeBlockTabs as r, CodeBlockAttributes as t };
|
package/dist/content/github.d.ts
CHANGED
|
@@ -47,5 +47,4 @@ declare function getGithubLastEdit({
|
|
|
47
47
|
params: customParams
|
|
48
48
|
}: GetGithubLastCommitOptions): Promise<Date | null>;
|
|
49
49
|
//#endregion
|
|
50
|
-
export { GetGithubLastCommitOptions, getGithubLastEdit };
|
|
51
|
-
//# sourceMappingURL=github.d.ts.map
|
|
50
|
+
export { GetGithubLastCommitOptions, getGithubLastEdit };
|
package/dist/content/github.js
CHANGED
package/dist/content/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react1 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { Components } from "hast-util-to-jsx-runtime";
|
|
4
4
|
import { Compatible } from "vfile";
|
|
@@ -17,7 +17,6 @@ declare function Markdown({
|
|
|
17
17
|
remarkPlugins?: PluggableList;
|
|
18
18
|
rehypePlugins?: PluggableList;
|
|
19
19
|
children: Compatible;
|
|
20
|
-
}): Promise<
|
|
20
|
+
}): Promise<react1.ReactElement<unknown, string | react1.JSXElementConstructor<any>> | Iterable<ReactNode> | (string | number | bigint | boolean | react1.ReactPortal | react1.ReactElement<unknown, string | react1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined)>;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { Markdown, MarkdownProps };
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
22
|
+
export { Markdown, MarkdownProps };
|
package/dist/content/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../remark-gfm-
|
|
2
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
3
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
4
|
-
import { t as StructureOptions } from "../../remark-structure-
|
|
5
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
6
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
7
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
1
|
+
import "../../remark-gfm-Cvcfjik1.js";
|
|
2
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-9wJ_hsjl.js";
|
|
3
|
+
import { t as RemarkImageOptions } from "../../remark-image-k8SDn3Hf.js";
|
|
4
|
+
import { t as StructureOptions } from "../../remark-structure-dZprfvCG.js";
|
|
5
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-B02bkQ09.js";
|
|
6
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-DwGhoHpj.js";
|
|
7
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-DS3cHDxB.js";
|
|
8
8
|
import "../../mdx-plugins/index.js";
|
|
9
|
-
import { t as ResolvePlugins } from "../../util-
|
|
9
|
+
import { t as ResolvePlugins } from "../../util-C1pcIt82.js";
|
|
10
10
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
11
11
|
|
|
12
12
|
//#region src/content/mdx/preset-bundler.d.ts
|
|
@@ -25,5 +25,4 @@ type MDXBundlerPresetOptions = Omit<NonNullable<ProcessorOptions>, 'rehypePlugin
|
|
|
25
25
|
*/
|
|
26
26
|
declare function mdxPreset(options?: MDXBundlerPresetOptions): Promise<ProcessorOptions>;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { MDXBundlerPresetOptions, mdxPreset };
|
|
29
|
-
//# sourceMappingURL=preset-bundler.d.ts.map
|
|
28
|
+
export { MDXBundlerPresetOptions, mdxPreset };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as resolvePlugins } from "../../util-
|
|
1
|
+
import { t as resolvePlugins } from "../../util-E8U2ttCR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/content/mdx/preset-bundler.ts
|
|
4
4
|
/**
|
|
@@ -37,5 +37,4 @@ async function mdxPreset(options = {}) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
|
-
export { mdxPreset };
|
|
41
|
-
//# sourceMappingURL=preset-bundler.js.map
|
|
40
|
+
export { mdxPreset };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../remark-gfm-
|
|
2
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
3
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
4
|
-
import { t as StructureOptions } from "../../remark-structure-
|
|
5
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
6
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
7
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
1
|
+
import "../../remark-gfm-Cvcfjik1.js";
|
|
2
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-9wJ_hsjl.js";
|
|
3
|
+
import { t as RemarkImageOptions } from "../../remark-image-k8SDn3Hf.js";
|
|
4
|
+
import { t as StructureOptions } from "../../remark-structure-dZprfvCG.js";
|
|
5
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-B02bkQ09.js";
|
|
6
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-DwGhoHpj.js";
|
|
7
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-DS3cHDxB.js";
|
|
8
8
|
import "../../mdx-plugins/index.js";
|
|
9
|
-
import { t as ResolvePlugins } from "../../util-
|
|
9
|
+
import { t as ResolvePlugins } from "../../util-C1pcIt82.js";
|
|
10
10
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
11
11
|
|
|
12
12
|
//#region src/content/mdx/preset-runtime.d.ts
|
|
@@ -25,5 +25,4 @@ type MDXRuntimePresetOptions = Omit<NonNullable<ProcessorOptions>, 'rehypePlugin
|
|
|
25
25
|
*/
|
|
26
26
|
declare function mdxPreset(options?: MDXRuntimePresetOptions): Promise<ProcessorOptions>;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { MDXRuntimePresetOptions, mdxPreset };
|
|
29
|
-
//# sourceMappingURL=preset-runtime.d.ts.map
|
|
28
|
+
export { MDXRuntimePresetOptions, mdxPreset };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as resolvePlugins } from "../../util-
|
|
1
|
+
import { t as resolvePlugins } from "../../util-E8U2ttCR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/content/mdx/preset-runtime.ts
|
|
4
4
|
/**
|
|
@@ -35,5 +35,4 @@ async function mdxPreset(options = {}) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
|
-
export { mdxPreset };
|
|
39
|
-
//# sourceMappingURL=preset-runtime.js.map
|
|
38
|
+
export { mdxPreset };
|
package/dist/content/toc.d.ts
CHANGED
|
@@ -18,5 +18,4 @@ declare function getTableOfContents(content: Compatible): TOCItemType[];
|
|
|
18
18
|
*/
|
|
19
19
|
declare function getTableOfContents(content: Compatible, remarkPlugins: PluggableList): Promise<TOCItemType[]>;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { getTableOfContents };
|
|
22
|
-
//# sourceMappingURL=toc.d.ts.map
|
|
21
|
+
export { getTableOfContents };
|
package/dist/content/toc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../mdast-utils-
|
|
1
|
+
import "../mdast-utils-BqE5966y.js";
|
|
2
2
|
import { remarkHeading } from "../mdx-plugins/remark-heading.js";
|
|
3
3
|
import { remark } from "remark";
|
|
4
4
|
|
|
@@ -14,5 +14,4 @@ function getTableOfContents(content, remarkPlugins) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
export { getTableOfContents };
|
|
18
|
-
//# sourceMappingURL=toc.js.map
|
|
17
|
+
export { getTableOfContents };
|
|
@@ -58,5 +58,4 @@ interface Folder extends ID {
|
|
|
58
58
|
children: Node[];
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
export { Separator as a, Root as i, Item as n, Node as r, Folder as t };
|
|
62
|
-
//# sourceMappingURL=definitions-Ca2P2viV.d.ts.map
|
|
61
|
+
export { Separator as a, Root as i, Item as n, Node as r, Folder as t };
|
package/dist/dynamic-link.d.ts
CHANGED
|
@@ -10,5 +10,4 @@ type DynamicLinkProps = LinkProps;
|
|
|
10
10
|
*/
|
|
11
11
|
declare const DynamicLink: react0.ForwardRefExoticComponent<LinkProps & react0.RefAttributes<HTMLAnchorElement>>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { DynamicLink, DynamicLink as default, DynamicLinkProps };
|
|
14
|
-
//# sourceMappingURL=dynamic-link.d.ts.map
|
|
13
|
+
export { DynamicLink, DynamicLink as default, DynamicLinkProps };
|
package/dist/dynamic-link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { StaticImport } from "next/dist/shared/lib/get-img-props";
|
|
4
4
|
|
|
5
5
|
//#region src/framework/index.d.ts
|
|
@@ -39,12 +39,11 @@ declare function FrameworkProvider({
|
|
|
39
39
|
children
|
|
40
40
|
}: Framework & {
|
|
41
41
|
children: ReactNode;
|
|
42
|
-
}):
|
|
42
|
+
}): react_jsx_runtime2.JSX.Element;
|
|
43
43
|
declare function usePathname(): string;
|
|
44
44
|
declare function useRouter(): Router;
|
|
45
45
|
declare function useParams(): Record<string, string | string[]>;
|
|
46
|
-
declare function Image(props: ImageProps):
|
|
47
|
-
declare function Link(props: LinkProps):
|
|
46
|
+
declare function Image(props: ImageProps): react_jsx_runtime2.JSX.Element;
|
|
47
|
+
declare function Link(props: LinkProps): react_jsx_runtime2.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
|
-
export { Framework, FrameworkProvider, Image, ImageProps, Link, Router, useParams, usePathname, useRouter };
|
|
50
|
-
//# sourceMappingURL=index.d.ts.map
|
|
49
|
+
export { Framework, FrameworkProvider, Image, ImageProps, Link, Router, useParams, usePathname, useRouter };
|
package/dist/framework/index.js
CHANGED
package/dist/framework/next.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Framework } from "./index.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/framework/next.d.ts
|
|
6
6
|
declare function NextProvider({
|
|
@@ -11,7 +11,6 @@ declare function NextProvider({
|
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
Link?: Framework['Link'];
|
|
13
13
|
Image?: Framework['Image'];
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime5.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { NextProvider };
|
|
17
|
-
//# sourceMappingURL=next.d.ts.map
|
|
16
|
+
export { NextProvider };
|
package/dist/framework/next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Framework } from "./index.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/framework/react-router.d.ts
|
|
6
6
|
declare function ReactRouterProvider({
|
|
@@ -11,7 +11,6 @@ declare function ReactRouterProvider({
|
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
Link?: Framework['Link'];
|
|
13
13
|
Image?: Framework['Image'];
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime6.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { ReactRouterProvider };
|
|
17
|
-
//# sourceMappingURL=react-router.d.ts.map
|
|
16
|
+
export { ReactRouterProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Framework } from "./index.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/framework/tanstack.d.ts
|
|
6
6
|
/**
|
|
@@ -14,7 +14,6 @@ declare function TanstackProvider({
|
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
Link?: Framework['Link'];
|
|
16
16
|
Image?: Framework['Image'];
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime8.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { TanstackProvider };
|
|
20
|
-
//# sourceMappingURL=tanstack.d.ts.map
|
|
19
|
+
export { TanstackProvider };
|
package/dist/framework/waku.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Framework } from "./index.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/framework/waku.d.ts
|
|
6
6
|
declare function WakuProvider({
|
|
@@ -11,7 +11,6 @@ declare function WakuProvider({
|
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
Link?: Framework['Link'];
|
|
13
13
|
Image?: Framework['Image'];
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime7.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { WakuProvider };
|
|
17
|
-
//# sourceMappingURL=waku.d.ts.map
|
|
16
|
+
export { WakuProvider };
|
package/dist/framework/waku.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as HighlightOptions } from "../shiki-
|
|
1
|
+
import { t as HighlightOptions } from "../shiki-BjMLCq9L.js";
|
|
2
2
|
import { DependencyList, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/highlight/client.d.ts
|
|
@@ -10,5 +10,4 @@ import { DependencyList, ReactNode } from "react";
|
|
|
10
10
|
*/
|
|
11
11
|
declare function useShiki(code: string, options: HighlightOptions, deps?: DependencyList): ReactNode;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { useShiki };
|
|
14
|
-
//# sourceMappingURL=client.d.ts.map
|
|
13
|
+
export { useShiki };
|
package/dist/highlight/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { i as highlight } from "../shiki-
|
|
3
|
+
import { i as highlight } from "../shiki-BMakKE6A.js";
|
|
4
4
|
import { use, useMemo } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/highlight/client.tsx
|
|
@@ -22,5 +22,4 @@ function useShiki(code, options, deps) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
export { useShiki };
|
|
26
|
-
//# sourceMappingURL=client.js.map
|
|
25
|
+
export { useShiki };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as hastToJsx, i as getHighlighter, n as HighlightOptionsCommon, o as highlight, r as HighlightOptionsThemes, s as highlightHast, t as HighlightOptions } from "../shiki-
|
|
1
|
+
import { a as hastToJsx, i as getHighlighter, n as HighlightOptionsCommon, o as highlight, r as HighlightOptionsThemes, s as highlightHast, t as HighlightOptions } from "../shiki-BjMLCq9L.js";
|
|
2
2
|
export { type HighlightOptions, type HighlightOptionsCommon, type HighlightOptionsThemes, getHighlighter, hastToJsx, highlight, highlightHast };
|
package/dist/highlight/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as highlightHast, i as highlight, n as getHighlighter, r as hastToJsx } from "../shiki-
|
|
1
|
+
import { a as highlightHast, i as highlight, n as getHighlighter, r as hastToJsx } from "../shiki-BMakKE6A.js";
|
|
2
2
|
|
|
3
3
|
export { getHighlighter, hastToJsx, highlight, highlightHast };
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as defineI18n, t as I18nConfig } from "../index-
|
|
1
|
+
import { n as defineI18n, t as I18nConfig } from "../index-CNd0mkPr.js";
|
|
2
2
|
export { I18nConfig, defineI18n };
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as I18nConfig } from "../index-
|
|
1
|
+
import { t as I18nConfig } from "../index-CNd0mkPr.js";
|
|
2
2
|
import { NextProxy } from "next/server";
|
|
3
3
|
import { NextURL } from "next/dist/server/web/next-url";
|
|
4
4
|
|
|
@@ -38,5 +38,4 @@ declare function createI18nMiddleware({
|
|
|
38
38
|
hideLocale
|
|
39
39
|
}: MiddlewareOptions): NextProxy;
|
|
40
40
|
//#endregion
|
|
41
|
-
export { DefaultFormatter, URLFormatter, createI18nMiddleware };
|
|
42
|
-
//# sourceMappingURL=middleware.d.ts.map
|
|
41
|
+
export { DefaultFormatter, URLFormatter, createI18nMiddleware };
|
package/dist/i18n/middleware.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as Separator, i as Root, n as Item, t as Folder } from "./definitions-
|
|
2
|
-
import { t as I18nConfig } from "./index-
|
|
1
|
+
import { a as Separator, i as Root, n as Item, t as Folder } from "./definitions-fBNEDML4.js";
|
|
2
|
+
import { t as I18nConfig } from "./index-CNd0mkPr.js";
|
|
3
|
+
import { n as SerializedPageTree } from "./index-Skpc1DNd.js";
|
|
3
4
|
import { ReactNode } from "react";
|
|
4
5
|
|
|
5
6
|
//#region src/source/source.d.ts
|
|
@@ -138,7 +139,7 @@ declare function buildContentStorage(loaderConfig: ResolvedLoaderConfig, default
|
|
|
138
139
|
interface PageTreeBuilderContext<Config$1 extends SourceConfig = SourceConfig> {
|
|
139
140
|
rootId: string;
|
|
140
141
|
generateNodeId: () => string;
|
|
141
|
-
|
|
142
|
+
noRef: boolean;
|
|
142
143
|
transformers: PageTreeTransformer<Config$1>[];
|
|
143
144
|
builder: PageTreeBuilder;
|
|
144
145
|
storage: ContentStorage<Config$1>;
|
|
@@ -307,7 +308,7 @@ interface LoaderOutput<Config$1 extends LoaderConfig> {
|
|
|
307
308
|
/**
|
|
308
309
|
* serialize page tree for non-RSC environments
|
|
309
310
|
*/
|
|
310
|
-
serializePageTree: (tree: Root) => Promise<
|
|
311
|
+
serializePageTree: (tree: Root) => Promise<SerializedPageTree>;
|
|
311
312
|
}
|
|
312
313
|
declare function createGetUrl(baseUrl: string, i18n?: I18nConfig): ResolvedLoaderConfig['url'];
|
|
313
314
|
declare function loader<Config$1 extends SourceConfig, I18n extends I18nConfig | undefined = undefined>(source: Source<Config$1>, options: LoaderOptions<{
|
|
@@ -376,5 +377,4 @@ declare function splitPath(path: string): string[];
|
|
|
376
377
|
declare function joinPath(...paths: string[]): string;
|
|
377
378
|
declare function slash(path: string): string;
|
|
378
379
|
//#endregion
|
|
379
|
-
export { PageData as A, ContentStorage as C, buildContentStorage as D, ContentStoragePageFile as E, _SourceUpdate_ as F, multiple as I, source as L, SourceConfig as M, VirtualFile as N, FileSystem as O, _ConfigUnion_ as P, update as R, createPageTreeBuilder as S, ContentStorageMetaFile as T, slugsPlugin as _, LoaderOptions as a, PageTreeOptions as b, LoaderPluginOption as c, ResolvedLoaderConfig as d, createGetUrl as f, slugsFromData as g, getSlugs as h, LoaderConfig as i, Source as j, MetaData as k, Meta as l, SlugFn as m, InferMetaType as n, LoaderOutput as o, loader as p, InferPageType as r, LoaderPlugin as s, path_d_exports as t, Page as u, PageTreeBuilder as v, ContentStorageFile as w, PageTreeTransformer as x, PageTreeBuilderContext as y };
|
|
380
|
-
//# sourceMappingURL=index-k5KwKJ_c.d.ts.map
|
|
380
|
+
export { PageData as A, ContentStorage as C, buildContentStorage as D, ContentStoragePageFile as E, _SourceUpdate_ as F, multiple as I, source as L, SourceConfig as M, VirtualFile as N, FileSystem as O, _ConfigUnion_ as P, update as R, createPageTreeBuilder as S, ContentStorageMetaFile as T, slugsPlugin as _, LoaderOptions as a, PageTreeOptions as b, LoaderPluginOption as c, ResolvedLoaderConfig as d, createGetUrl as f, slugsFromData as g, getSlugs as h, LoaderConfig as i, Source as j, MetaData as k, Meta as l, SlugFn as m, InferMetaType as n, LoaderOutput as o, loader as p, InferPageType as r, LoaderPlugin as s, path_d_exports as t, Page as u, PageTreeBuilder as v, ContentStorageFile as w, PageTreeTransformer as x, PageTreeBuilderContext as y };
|
|
@@ -37,5 +37,4 @@ interface I18nConfig<Languages extends string = string> {
|
|
|
37
37
|
}
|
|
38
38
|
declare function defineI18n<Languages extends string>(config: I18nConfig<Languages>): I18nConfig<Languages>;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { defineI18n as n, I18nConfig as t };
|
|
41
|
-
//# sourceMappingURL=index-DxhhLscI.d.ts.map
|
|
40
|
+
export { defineI18n as n, I18nConfig as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-fBNEDML4.js";
|
|
2
|
+
|
|
3
|
+
//#region src/page-tree/utils.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Flatten tree to an array of page nodes
|
|
7
|
+
*/
|
|
8
|
+
declare function flattenTree(nodes: Node[]): Item[];
|
|
9
|
+
/**
|
|
10
|
+
* Get neighbours of a page, useful for implementing "previous & next" buttons
|
|
11
|
+
*/
|
|
12
|
+
declare function findNeighbour(tree: Root, url: string, options?: {
|
|
13
|
+
separateRoot?: boolean;
|
|
14
|
+
}): {
|
|
15
|
+
previous?: Item;
|
|
16
|
+
next?: Item;
|
|
17
|
+
};
|
|
18
|
+
declare function getPageTreeRoots(pageTree: Root | Folder): (Root | Folder)[];
|
|
19
|
+
/**
|
|
20
|
+
* Get other item nodes that lives under the same parent.
|
|
21
|
+
*/
|
|
22
|
+
declare function getPageTreePeers(treeOrTrees: Root | Record<string, Root>, url: string): Item[];
|
|
23
|
+
/**
|
|
24
|
+
* Get other tree nodes that lives under the same parent.
|
|
25
|
+
*/
|
|
26
|
+
declare function findSiblings(treeOrTrees: Root | Record<string, Root>, url: string): Node[];
|
|
27
|
+
declare function findParent(from: Root | Folder, url: string): Root | Folder | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Search the path of a node in the tree matched by the matcher.
|
|
30
|
+
*
|
|
31
|
+
* @returns The path to the target node (from starting root), or null if the page doesn't exist
|
|
32
|
+
*/
|
|
33
|
+
declare function findPath(nodes: Node[], matcher: (node: Node) => boolean, options?: {
|
|
34
|
+
includeSeparator?: boolean;
|
|
35
|
+
}): Node[] | null;
|
|
36
|
+
/**
|
|
37
|
+
* Perform a depth-first search on page tree visiting every node.
|
|
38
|
+
*
|
|
39
|
+
* @param root - the root of page tree to visit.
|
|
40
|
+
* @param visitor - function to receive nodes, return `skip` to skip the children of current node, `break` to stop the search entirely.
|
|
41
|
+
*/
|
|
42
|
+
declare function visit<Root$1 extends Node | Root>(root: Root$1, visitor: <T extends Node | Root>(node: T, parent?: Root | Folder) => 'skip' | 'break' | T | void): Root$1;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { flattenTree as a, visit as c, findSiblings as i, findParent as n, getPageTreePeers as o, findPath as r, getPageTreeRoots as s, findNeighbour as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { i as Root } from "./definitions-fBNEDML4.js";
|
|
2
|
+
|
|
3
|
+
//#region src/source/client/index.d.ts
|
|
4
|
+
interface SerializedPageTree {
|
|
5
|
+
$fumadocs_loader: 'page-tree';
|
|
6
|
+
data: object;
|
|
7
|
+
}
|
|
8
|
+
type Serialized<Data> = { [K in keyof Data]: Data[K] extends SerializedPageTree ? Root : Data[K] };
|
|
9
|
+
declare function deserializePageTree(serialized: SerializedPageTree): Root;
|
|
10
|
+
/**
|
|
11
|
+
* Deserialize loader data that is serialized by the server-side Fumadocs `loader()`, supported:
|
|
12
|
+
* - Page Tree
|
|
13
|
+
*
|
|
14
|
+
* other unrelated properties are kept in the output.
|
|
15
|
+
*/
|
|
16
|
+
declare function useFumadocsLoader<V>(serialized: V): Serialized<V>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { useFumadocsLoader as i, SerializedPageTree as n, deserializePageTree as r, Serialized as t };
|
package/dist/link.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react6 from "react";
|
|
2
2
|
import { AnchorHTMLAttributes } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/link.d.ts
|
|
@@ -14,7 +14,6 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
14
14
|
*/
|
|
15
15
|
prefetch?: boolean;
|
|
16
16
|
}
|
|
17
|
-
declare const Link:
|
|
17
|
+
declare const Link: react6.ForwardRefExoticComponent<LinkProps & react6.RefAttributes<HTMLAnchorElement>>;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { LinkProps, Link as default };
|
|
20
|
-
//# sourceMappingURL=link.d.ts.map
|
|
19
|
+
export { LinkProps, Link as default };
|
package/dist/link.js
CHANGED