@hanzo/docs-core 16.4.3 → 16.5.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.
- package/README.md +3 -3
- package/dist/{advanced-BRT5Ij43.js → advanced-BH0syJ-M.js} +3 -4
- package/dist/{algolia-CQPXCnjV.js → algolia-C7Crg8-5.js} +2 -3
- package/dist/breadcrumb.d.ts +2 -3
- package/dist/breadcrumb.js +3 -4
- package/dist/{chunk-B-ezknvj.js → chunk-CaR5F9JI.js} +3 -3
- 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 -3
- package/dist/content/toc.js +4 -5
- package/dist/create-i18n-Cv3Cocbs.d.ts +51 -0
- package/dist/{definitions-DuxDer_c.d.ts → definitions-DSNTbAwC.d.ts} +1 -2
- package/dist/dynamic-link.d.ts +3 -4
- package/dist/dynamic-link.js +1 -3
- package/dist/{fetch-B5e9CFfN.js → fetch-HotVeLLF.js} +1 -2
- package/dist/framework/index.d.ts +5 -6
- package/dist/framework/index.js +18 -19
- package/dist/framework/next.d.ts +3 -4
- package/dist/framework/next.js +1 -2
- package/dist/framework/react-router.d.ts +1 -2
- package/dist/framework/react-router.js +1 -2
- package/dist/framework/tanstack.d.ts +4 -5
- package/dist/framework/tanstack.js +2 -3
- package/dist/framework/waku.d.ts +1 -2
- package/dist/framework/waku.js +1 -2
- package/dist/hast-utils-BmGqqmvo.js +15 -0
- package/dist/highlight/client.d.ts +2 -4
- package/dist/highlight/client.js +7 -13
- package/dist/highlight/config.d.ts +15 -0
- package/dist/highlight/config.js +18 -0
- package/dist/highlight/core/client.d.ts +31 -0
- package/dist/highlight/core/client.js +68 -0
- package/dist/highlight/core/index.d.ts +27 -0
- package/dist/highlight/core/index.js +69 -0
- package/dist/highlight/index.d.ts +34 -2
- package/dist/highlight/index.js +57 -2
- package/dist/i18n/index.d.ts +39 -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-BWwSDabM.js → icon-OtPFhyk1.js} +1 -2
- package/dist/link.d.ts +3 -4
- package/dist/link.js +1 -2
- package/dist/{mdast-utils-mc9-X-PK.js → mdast-utils-gJMY143g.js} +1 -2
- package/dist/mdx-plugins/codeblock-utils.d.ts +35 -1
- package/dist/mdx-plugins/codeblock-utils.js +2 -3
- package/dist/mdx-plugins/index.d.ts +18 -15
- package/dist/mdx-plugins/index.js +7 -5
- package/dist/mdx-plugins/rehype-code.core.d.ts +38 -0
- package/dist/mdx-plugins/rehype-code.core.js +104 -0
- package/dist/mdx-plugins/rehype-code.d.ts +18 -2
- package/dist/mdx-plugins/rehype-code.js +24 -3
- package/dist/mdx-plugins/rehype-toc.d.ts +16 -1
- package/dist/mdx-plugins/rehype-toc.js +127 -1
- package/dist/mdx-plugins/remark-admonition.d.ts +20 -1
- package/dist/mdx-plugins/remark-admonition.js +2 -3
- package/dist/mdx-plugins/remark-code-tab.d.ts +30 -1
- package/dist/mdx-plugins/remark-code-tab.js +4 -5
- package/dist/mdx-plugins/remark-directive-admonition.d.ts +34 -1
- package/dist/mdx-plugins/remark-directive-admonition.js +1 -2
- package/dist/mdx-plugins/remark-feedback-block.d.ts +51 -0
- package/dist/mdx-plugins/remark-feedback-block.js +47 -0
- package/dist/mdx-plugins/remark-gfm.d.ts +2 -2
- package/dist/mdx-plugins/remark-heading.d.ts +35 -1
- package/dist/mdx-plugins/remark-heading.js +2 -3
- package/dist/mdx-plugins/remark-image.d.ts +63 -1
- package/dist/mdx-plugins/remark-image.js +1 -2
- package/dist/mdx-plugins/remark-mdx-files.d.ts +55 -2
- package/dist/mdx-plugins/remark-mdx-files.js +103 -13
- package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +15 -1
- package/dist/mdx-plugins/remark-mdx-mermaid.js +1 -2
- package/dist/mdx-plugins/remark-npm.d.ts +34 -1
- package/dist/mdx-plugins/remark-npm.js +1 -2
- package/dist/mdx-plugins/remark-steps.d.ts +26 -1
- package/dist/mdx-plugins/remark-steps.js +1 -2
- package/dist/mdx-plugins/remark-structure.d.ts +75 -1
- package/dist/mdx-plugins/remark-structure.js +7 -8
- package/dist/{mixedbread-DlByNYSd.js → mixedbread-Bx9drx9S.js} +6 -5
- package/dist/negotiation/index.d.ts +1 -2
- package/dist/negotiation/index.js +1 -2
- package/dist/{normalize-url-DP9-1I-S.js → normalize-url-DUHbcuVM.js} +2 -3
- package/dist/{orama-cloud-DH3g37zc.js → orama-cloud-ByznDyOk.js} +6 -7
- package/dist/orama-cloud-legacy-BbgJnf5f.js +81 -0
- package/dist/page-tree/index.d.ts +3 -45
- package/dist/page-tree/index.js +1 -1
- package/dist/{index-2U6Tl4--.d.ts → path-B77y3W0_.d.ts} +111 -98
- package/dist/{path-DHIjrDBP.js → path-D0Bwm6Fs.js} +2 -3
- package/dist/{remove-undefined-Cfs4o_mM.js → remove-undefined-CJm9cyrC.js} +1 -2
- package/dist/search/algolia.d.ts +66 -2
- package/dist/search/algolia.js +1 -2
- package/dist/search/client.d.ts +31 -8
- package/dist/search/client.js +27 -22
- package/dist/search/index.d.ts +1 -2
- package/dist/search/index.js +41 -1
- package/dist/search/orama-cloud-legacy.d.ts +77 -0
- package/dist/search/orama-cloud-legacy.js +49 -0
- package/dist/search/orama-cloud.d.ts +5 -9
- package/dist/search/orama-cloud.js +1 -2
- package/dist/search/server.d.ts +87 -4
- package/dist/search/server.js +7 -8
- package/dist/source/client/index.d.ts +13 -11
- package/dist/source/client/index.js +22 -13
- package/dist/source/index.d.ts +5 -3
- package/dist/source/index.js +428 -333
- 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 +24 -2
- package/dist/source/plugins/slugs.js +2 -3
- package/dist/source/plugins/status-badges.d.ts +52 -0
- package/dist/source/plugins/status-badges.js +54 -0
- package/dist/source/schema.d.ts +1 -3
- package/dist/source/schema.js +1 -2
- package/dist/{static-Dq8pA8Ay.js → static-DTxK4eHk.js} +5 -6
- package/dist/toc.d.ts +5 -6
- package/dist/toc.js +1 -2
- package/dist/{rehype-code-CdiZ1Y6P.js → transformer-icon-BYedaeE8.js} +1 -96
- package/dist/transformer-icon-D7-6aFzt.d.ts +18 -0
- package/dist/types-BSnJn7kF.d.ts +6 -0
- package/dist/{util-CK2ykiif.d.ts → util-C60LmklF.d.ts} +1 -2
- package/dist/{util-s9piKHsk.js → util-De0ALHOx.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-DUvi2WkD.js → utils-Bc53B3CJ.js} +8 -7
- package/dist/utils-IgHyYnrz.d.ts +45 -0
- package/package.json +58 -28
- package/dist/advanced-BRT5Ij43.js.map +0 -1
- package/dist/algolia-CBBN8R6-.d.ts +0 -68
- package/dist/algolia-CBBN8R6-.d.ts.map +0 -1
- package/dist/algolia-CQPXCnjV.js.map +0 -1
- package/dist/breadcrumb.d.ts.map +0 -1
- package/dist/breadcrumb.js.map +0 -1
- package/dist/codeblock-utils-lld8UiQo.d.ts +0 -37
- package/dist/codeblock-utils-lld8UiQo.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-DuxDer_c.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-B5e9CFfN.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-BWwSDabM.js.map +0 -1
- package/dist/index-2U6Tl4--.d.ts.map +0 -1
- package/dist/index-Bw-DCOra.d.ts +0 -41
- package/dist/index-Bw-DCOra.d.ts.map +0 -1
- package/dist/link.d.ts.map +0 -1
- package/dist/link.js.map +0 -1
- package/dist/mdast-utils-mc9-X-PK.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-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-DlByNYSd.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-DP9-1I-S.js.map +0 -1
- package/dist/orama-cloud-DH3g37zc.js.map +0 -1
- package/dist/page-tree/index.d.ts.map +0 -1
- package/dist/path-DHIjrDBP.js.map +0 -1
- package/dist/rehype-code-CdiZ1Y6P.js.map +0 -1
- package/dist/rehype-code-vVWG4-ej.d.ts +0 -58
- package/dist/rehype-code-vVWG4-ej.d.ts.map +0 -1
- package/dist/rehype-toc-DJvSyE0o.d.ts +0 -18
- package/dist/rehype-toc-DJvSyE0o.d.ts.map +0 -1
- package/dist/rehype-toc-DVwJcwvA.js +0 -143
- package/dist/rehype-toc-DVwJcwvA.js.map +0 -1
- package/dist/remark-admonition-DOwBWzsH.d.ts +0 -22
- package/dist/remark-admonition-DOwBWzsH.d.ts.map +0 -1
- package/dist/remark-code-tab-CXsYlims.d.ts +0 -32
- package/dist/remark-code-tab-CXsYlims.d.ts.map +0 -1
- package/dist/remark-directive-admonition-BCm_yiU9.d.ts +0 -36
- package/dist/remark-directive-admonition-BCm_yiU9.d.ts.map +0 -1
- package/dist/remark-gfm-CeWpMwyk.d.ts +0 -2
- package/dist/remark-heading-CXvCY0go.d.ts +0 -37
- package/dist/remark-heading-CXvCY0go.d.ts.map +0 -1
- package/dist/remark-image-CvUis4R1.d.ts +0 -65
- package/dist/remark-image-CvUis4R1.d.ts.map +0 -1
- package/dist/remark-mdx-files-DOYafA4x.d.ts +0 -42
- package/dist/remark-mdx-files-DOYafA4x.d.ts.map +0 -1
- package/dist/remark-mdx-mermaid-BdSUUiCG.d.ts +0 -17
- package/dist/remark-mdx-mermaid-BdSUUiCG.d.ts.map +0 -1
- package/dist/remark-npm-BIvIEKT2.d.ts +0 -36
- package/dist/remark-npm-BIvIEKT2.d.ts.map +0 -1
- package/dist/remark-steps-CHJN-rtm.d.ts +0 -28
- package/dist/remark-steps-CHJN-rtm.d.ts.map +0 -1
- package/dist/remark-structure-RZD2gGKp.d.ts +0 -77
- package/dist/remark-structure-RZD2gGKp.d.ts.map +0 -1
- package/dist/remove-undefined-Cfs4o_mM.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.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-D6ChCLhY.js +0 -44
- package/dist/search-D6ChCLhY.js.map +0 -1
- package/dist/server-CPR_fgkH.d.ts +0 -133
- package/dist/server-CPR_fgkH.d.ts.map +0 -1
- package/dist/shiki-4oMYwHED.js +0 -80
- package/dist/shiki-4oMYwHED.js.map +0 -1
- package/dist/shiki-CIBQys54.d.ts +0 -33
- package/dist/shiki-CIBQys54.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-Dq8pA8Ay.js.map +0 -1
- package/dist/toc.d.ts.map +0 -1
- package/dist/toc.js.map +0 -1
- package/dist/util-CK2ykiif.d.ts.map +0 -1
- package/dist/util-s9piKHsk.js.map +0 -1
- package/dist/utils/use-effect-event.d.ts +0 -11
- package/dist/utils/use-effect-event.d.ts.map +0 -1
- package/dist/utils/use-effect-event.js +0 -19
- 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-DUvi2WkD.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as removeUndefined } from "./remove-undefined-
|
|
1
|
+
import { createContentHighlighter } from "./search/index.js";
|
|
2
|
+
import { t as removeUndefined } from "./remove-undefined-CJm9cyrC.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-BRT5Ij43.js.map
|
|
79
|
+
export { searchSimple as n, searchAdvanced as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createContentHighlighter } from "./search/index.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-CQPXCnjV.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-DSNTbAwC.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-DUHbcuVM.js";
|
|
2
|
+
import { r as findPath } from "./utils-Bc53B3CJ.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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -6,7 +6,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
-
var __exportAll = (all,
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
10
|
let target = {};
|
|
11
11
|
for (var name in all) {
|
|
12
12
|
__defProp(target, name, {
|
|
@@ -14,7 +14,7 @@ var __exportAll = (all, symbols) => {
|
|
|
14
14
|
enumerable: true
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
if (
|
|
17
|
+
if (!no_symbols) {
|
|
18
18
|
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
19
|
}
|
|
20
20
|
return target;
|
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 react 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<react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | (string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.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 "../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import "../../transformer-icon-D7-6aFzt.js";
|
|
2
|
+
import { RehypeCodeOptions } from "../../mdx-plugins/rehype-code.js";
|
|
3
|
+
import { RemarkImageOptions } from "../../mdx-plugins/remark-image.js";
|
|
4
|
+
import { StructureOptions } from "../../mdx-plugins/remark-structure.js";
|
|
5
|
+
import { RemarkHeadingOptions } from "../../mdx-plugins/remark-heading.js";
|
|
6
|
+
import { RemarkCodeTabOptions } from "../../mdx-plugins/remark-code-tab.js";
|
|
7
|
+
import { RemarkNpmOptions } from "../../mdx-plugins/remark-npm.js";
|
|
8
8
|
import "../../mdx-plugins/index.js";
|
|
9
|
-
import { t as ResolvePlugins } from "../../util-
|
|
9
|
+
import { t as ResolvePlugins } from "../../util-C60LmklF.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-De0ALHOx.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 "../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import "../../transformer-icon-D7-6aFzt.js";
|
|
2
|
+
import { RehypeCodeOptions } from "../../mdx-plugins/rehype-code.js";
|
|
3
|
+
import { RemarkImageOptions } from "../../mdx-plugins/remark-image.js";
|
|
4
|
+
import { StructureOptions } from "../../mdx-plugins/remark-structure.js";
|
|
5
|
+
import { RemarkHeadingOptions } from "../../mdx-plugins/remark-heading.js";
|
|
6
|
+
import { RemarkCodeTabOptions } from "../../mdx-plugins/remark-code-tab.js";
|
|
7
|
+
import { RemarkNpmOptions } from "../../mdx-plugins/remark-npm.js";
|
|
8
8
|
import "../../mdx-plugins/index.js";
|
|
9
|
-
import { t as ResolvePlugins } from "../../util-
|
|
9
|
+
import { t as ResolvePlugins } from "../../util-C60LmklF.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-De0ALHOx.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
|
@@ -3,7 +3,6 @@ import { Compatible } from "vfile";
|
|
|
3
3
|
import { PluggableList } from "unified";
|
|
4
4
|
|
|
5
5
|
//#region src/content/toc.d.ts
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* Get Table of Contents from markdown/mdx document (using remark)
|
|
9
8
|
*
|
|
@@ -18,5 +17,4 @@ declare function getTableOfContents(content: Compatible): TOCItemType[];
|
|
|
18
17
|
*/
|
|
19
18
|
declare function getTableOfContents(content: Compatible, remarkPlugins: PluggableList): Promise<TOCItemType[]>;
|
|
20
19
|
//#endregion
|
|
21
|
-
export { getTableOfContents };
|
|
22
|
-
//# sourceMappingURL=toc.d.ts.map
|
|
20
|
+
export { getTableOfContents };
|
package/dist/content/toc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../mdast-utils-
|
|
1
|
+
import "../mdast-utils-gJMY143g.js";
|
|
2
2
|
import { remarkHeading } from "../mdx-plugins/remark-heading.js";
|
|
3
3
|
import { remark } from "remark";
|
|
4
4
|
|
|
5
5
|
//#region src/content/toc.ts
|
|
6
6
|
function getTableOfContents(content, remarkPlugins) {
|
|
7
|
-
if (remarkPlugins) return remark().use(remarkPlugins).use(remarkHeading).process(content).then((result
|
|
8
|
-
if ("toc" in result
|
|
7
|
+
if (remarkPlugins) return remark().use(remarkPlugins).use(remarkHeading).process(content).then((result) => {
|
|
8
|
+
if ("toc" in result.data) return result.data.toc;
|
|
9
9
|
return [];
|
|
10
10
|
});
|
|
11
11
|
const result = remark().use(remarkHeading).processSync(content);
|
|
@@ -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 };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { t as Awaitable } from "./types-BSnJn7kF.js";
|
|
2
|
+
import { I18nConfig } from "./i18n/index.js";
|
|
3
|
+
import { i as LoaderConfig, o as LoaderOutput, u as Page } from "./path-B77y3W0_.js";
|
|
4
|
+
import { AdvancedIndex, AdvancedOptions, Dynamic, Index, SearchAPI, SimpleOptions } from "./search/server.js";
|
|
5
|
+
import { Language, Orama, TypedDocument } from "@orama/orama";
|
|
6
|
+
|
|
7
|
+
//#region src/search/orama/create-db.d.ts
|
|
8
|
+
type SimpleDocument = TypedDocument<Orama<typeof simpleSchema>>;
|
|
9
|
+
declare const simpleSchema: {
|
|
10
|
+
readonly url: "string";
|
|
11
|
+
readonly title: "string";
|
|
12
|
+
readonly breadcrumbs: "string[]";
|
|
13
|
+
readonly description: "string";
|
|
14
|
+
readonly content: "string";
|
|
15
|
+
readonly keywords: "string";
|
|
16
|
+
};
|
|
17
|
+
type AdvancedDocument = TypedDocument<Orama<typeof advancedSchema>>;
|
|
18
|
+
declare const advancedSchema: {
|
|
19
|
+
readonly content: "string";
|
|
20
|
+
readonly page_id: "string";
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly breadcrumbs: "string[]";
|
|
23
|
+
readonly tags: "enum[]";
|
|
24
|
+
readonly url: "string";
|
|
25
|
+
readonly embeddings: "vector[512]";
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/search/orama/create-from-source.d.ts
|
|
29
|
+
interface Options<C extends LoaderConfig> extends Omit<AdvancedOptions, 'indexes'> {
|
|
30
|
+
localeMap?: { [K in C['i18n'] extends I18nConfig<infer Languages> ? Languages : string]?: Partial<AdvancedOptions> | Language };
|
|
31
|
+
buildIndex?: (page: Page<C['source']['pageData']>) => Awaitable<AdvancedIndex>;
|
|
32
|
+
}
|
|
33
|
+
declare function createFromSource<C extends LoaderConfig>(source: LoaderOutput<C>, options?: Options<C>): SearchAPI;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/search/orama/create-i18n.d.ts
|
|
36
|
+
type I18nOptions<O extends SimpleOptions | AdvancedOptions, Idx> = Omit<O, 'language' | 'indexes'> & {
|
|
37
|
+
i18n: I18nConfig;
|
|
38
|
+
/**
|
|
39
|
+
* Map locale name from i18n config to Orama compatible `language` or options
|
|
40
|
+
*/
|
|
41
|
+
localeMap?: Record<string, Language | Partial<O> | undefined>;
|
|
42
|
+
indexes: WithLocale<Idx>[] | Dynamic<WithLocale<Idx>>;
|
|
43
|
+
};
|
|
44
|
+
type I18nSimpleOptions = I18nOptions<SimpleOptions, Index>;
|
|
45
|
+
type I18nAdvancedOptions = I18nOptions<AdvancedOptions, AdvancedIndex>;
|
|
46
|
+
type WithLocale<T> = T & {
|
|
47
|
+
locale: string;
|
|
48
|
+
};
|
|
49
|
+
declare function createI18nSearchAPI<T extends 'simple' | 'advanced'>(type: T, options: T extends 'simple' ? I18nSimpleOptions : I18nAdvancedOptions): SearchAPI;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { advancedSchema as a, SimpleDocument as i, createFromSource as n, simpleSchema as o, AdvancedDocument as r, createI18nSearchAPI as t };
|
|
@@ -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-DuxDer_c.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LinkProps } from "./link.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/dynamic-link.d.ts
|
|
5
5
|
type DynamicLinkProps = LinkProps;
|
|
@@ -8,7 +8,6 @@ type DynamicLinkProps = LinkProps;
|
|
|
8
8
|
*
|
|
9
9
|
* It supports dynamic hrefs, which means you can use `/[lang]/my-page` with `dynamicHrefs` enabled
|
|
10
10
|
*/
|
|
11
|
-
declare const DynamicLink:
|
|
11
|
+
declare const DynamicLink: react.ForwardRefExoticComponent<LinkProps & react.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
|
@@ -27,8 +27,6 @@ const DynamicLink = forwardRef(({ href, ...props }, ref) => {
|
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
DynamicLink.displayName = "DynamicLink";
|
|
30
|
-
var dynamic_link_default = DynamicLink;
|
|
31
30
|
|
|
32
31
|
//#endregion
|
|
33
|
-
export { DynamicLink,
|
|
34
|
-
//# sourceMappingURL=dynamic-link.js.map
|
|
32
|
+
export { DynamicLink, DynamicLink as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 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_runtime0.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_runtime0.JSX.Element;
|
|
47
|
+
declare function Link(props: LinkProps): react_jsx_runtime0.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
|
@@ -12,20 +12,20 @@ const FrameworkContext = createContext({
|
|
|
12
12
|
useRouter: notImplemented,
|
|
13
13
|
usePathname: notImplemented
|
|
14
14
|
});
|
|
15
|
-
function FrameworkProvider({ Link
|
|
15
|
+
function FrameworkProvider({ Link, useRouter, useParams, usePathname, Image, children }) {
|
|
16
16
|
return /* @__PURE__ */ jsx(FrameworkContext, {
|
|
17
17
|
value: useMemo(() => ({
|
|
18
|
-
usePathname
|
|
19
|
-
useRouter
|
|
20
|
-
Link
|
|
21
|
-
Image
|
|
22
|
-
useParams
|
|
18
|
+
usePathname,
|
|
19
|
+
useRouter,
|
|
20
|
+
Link,
|
|
21
|
+
Image,
|
|
22
|
+
useParams
|
|
23
23
|
}), [
|
|
24
|
-
Link
|
|
25
|
-
usePathname
|
|
26
|
-
useRouter
|
|
27
|
-
useParams
|
|
28
|
-
Image
|
|
24
|
+
Link,
|
|
25
|
+
usePathname,
|
|
26
|
+
useRouter,
|
|
27
|
+
useParams,
|
|
28
|
+
Image
|
|
29
29
|
]),
|
|
30
30
|
children
|
|
31
31
|
});
|
|
@@ -40,8 +40,8 @@ function useParams() {
|
|
|
40
40
|
return use(FrameworkContext).useParams();
|
|
41
41
|
}
|
|
42
42
|
function Image(props) {
|
|
43
|
-
const { Image
|
|
44
|
-
if (!Image
|
|
43
|
+
const { Image } = use(FrameworkContext);
|
|
44
|
+
if (!Image) {
|
|
45
45
|
const { src, alt, priority, ...rest } = props;
|
|
46
46
|
return /* @__PURE__ */ jsx("img", {
|
|
47
47
|
alt,
|
|
@@ -50,20 +50,19 @@ function Image(props) {
|
|
|
50
50
|
...rest
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
return /* @__PURE__ */ jsx(Image
|
|
53
|
+
return /* @__PURE__ */ jsx(Image, { ...props });
|
|
54
54
|
}
|
|
55
55
|
function Link(props) {
|
|
56
|
-
const { Link
|
|
57
|
-
if (!Link
|
|
56
|
+
const { Link } = use(FrameworkContext);
|
|
57
|
+
if (!Link) {
|
|
58
58
|
const { href, prefetch: _, ...rest } = props;
|
|
59
59
|
return /* @__PURE__ */ jsx("a", {
|
|
60
60
|
href,
|
|
61
61
|
...rest
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
return /* @__PURE__ */ jsx(Link
|
|
64
|
+
return /* @__PURE__ */ jsx(Link, { ...props });
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
//#endregion
|
|
68
|
-
export { FrameworkProvider, Image, Link, useParams, usePathname, useRouter };
|
|
69
|
-
//# sourceMappingURL=index.js.map
|
|
68
|
+
export { FrameworkProvider, Image, Link, useParams, usePathname, useRouter };
|
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_runtime0 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_runtime0.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { NextProvider };
|
|
17
|
-
//# sourceMappingURL=next.d.ts.map
|
|
16
|
+
export { NextProvider };
|
package/dist/framework/next.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Framework } from "./index.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/framework/tanstack.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Hanzo Docs adapter for Tanstack Router/Start
|
|
8
8
|
*/
|
|
9
9
|
declare function TanstackProvider({
|
|
10
10
|
children,
|
|
@@ -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_runtime0.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { TanstackProvider };
|
|
20
|
-
//# sourceMappingURL=tanstack.d.ts.map
|
|
19
|
+
export { TanstackProvider };
|
|
@@ -41,7 +41,7 @@ const framework = {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Hanzo Docs adapter for Tanstack Router/Start
|
|
45
45
|
*/
|
|
46
46
|
function TanstackProvider({ children, Link: CustomLink, Image: CustomImage }) {
|
|
47
47
|
return /* @__PURE__ */ jsx(FrameworkProvider, {
|
|
@@ -53,5 +53,4 @@ function TanstackProvider({ children, Link: CustomLink, Image: CustomImage }) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
//#endregion
|
|
56
|
-
export { TanstackProvider };
|
|
57
|
-
//# sourceMappingURL=tanstack.js.map
|
|
56
|
+
export { TanstackProvider };
|
package/dist/framework/waku.d.ts
CHANGED
package/dist/framework/waku.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/mdx-plugins/hast-utils.ts
|
|
2
|
+
/**
|
|
3
|
+
* Visit a node with filtered tag names
|
|
4
|
+
*/
|
|
5
|
+
function visit(node, tagNames, handler) {
|
|
6
|
+
if (node.type === "element" && tagNames.includes(node.tagName)) {
|
|
7
|
+
if (handler(node) === "skip") return;
|
|
8
|
+
}
|
|
9
|
+
if ("children" in node) node.children.forEach((n) => {
|
|
10
|
+
visit(n, tagNames, handler);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { visit as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HighlightOptions } from "./index.js";
|
|
2
2
|
import { DependencyList, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/highlight/client.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* get highlighted results, should be used with React Suspense API.
|
|
8
7
|
*
|
|
@@ -10,5 +9,4 @@ import { DependencyList, ReactNode } from "react";
|
|
|
10
9
|
*/
|
|
11
10
|
declare function useShiki(code: string, options: HighlightOptions, deps?: DependencyList): ReactNode;
|
|
12
11
|
//#endregion
|
|
13
|
-
export { useShiki };
|
|
14
|
-
//# sourceMappingURL=client.d.ts.map
|
|
12
|
+
export { useShiki };
|
package/dist/highlight/client.js
CHANGED
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { configDefault } from "./index.js";
|
|
4
|
+
import { useShiki as useShiki$1 } from "./core/client.js";
|
|
5
5
|
|
|
6
6
|
//#region src/highlight/client.tsx
|
|
7
|
-
const promises = {};
|
|
8
7
|
/**
|
|
9
8
|
* get highlighted results, should be used with React Suspense API.
|
|
10
9
|
*
|
|
11
10
|
* note: results are cached with (lang, code) as keys, if this is not the desired behaviour, pass a `deps` instead.
|
|
12
11
|
*/
|
|
13
12
|
function useShiki(code, options, deps) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
deps,
|
|
19
|
-
options.lang
|
|
20
|
-
]);
|
|
21
|
-
return use(promises[key] ??= highlight(code, options));
|
|
13
|
+
return useShiki$1(code, {
|
|
14
|
+
config: configDefault,
|
|
15
|
+
...options
|
|
16
|
+
}, deps);
|
|
22
17
|
}
|
|
23
18
|
|
|
24
19
|
//#endregion
|
|
25
|
-
export { useShiki };
|
|
26
|
-
//# sourceMappingURL=client.js.map
|
|
20
|
+
export { useShiki };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as Awaitable } from "../types-BSnJn7kF.js";
|
|
2
|
+
import { BundledTheme, CodeOptionsThemes, HighlighterCore } from "shiki";
|
|
3
|
+
|
|
4
|
+
//#region src/highlight/config.d.ts
|
|
5
|
+
interface ShikiConfig {
|
|
6
|
+
createHighlighter: () => Awaitable<HighlighterCore>;
|
|
7
|
+
defaultThemes: CodeOptionsThemes<BundledTheme>;
|
|
8
|
+
}
|
|
9
|
+
interface ResolvedShikiConfig extends ShikiConfig {
|
|
10
|
+
id: symbol;
|
|
11
|
+
}
|
|
12
|
+
/** define shared configurations for Shiki */
|
|
13
|
+
declare function defineShikiConfig(config: ShikiConfig): ResolvedShikiConfig;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ResolvedShikiConfig, ShikiConfig, defineShikiConfig };
|