fumadocs-core 16.7.16 → 16.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{advanced-BCAHgGV0.js → advanced-Tvsn2Nn4.js} +1 -1
- package/dist/{algolia-ZyQLVdey.d.ts → algolia-BvGetcJs.d.ts} +1 -1
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/{build-doc-DBVRblOC.js → build-doc-DH9A5-KD.js} +1 -1
- package/dist/{client-BRJhJ58c.d.ts → client-Dyup8E6r.d.ts} +3 -3
- package/dist/content/md/frontmatter.d.ts +15 -0
- package/dist/content/md/frontmatter.js +24 -0
- package/dist/content/mdx/preset-bundler.d.ts +7 -7
- package/dist/content/mdx/preset-bundler.js +1 -1
- package/dist/content/mdx/preset-runtime.d.ts +7 -7
- package/dist/content/mdx/preset-runtime.js +1 -1
- package/dist/content/toc.d.ts +1 -1
- package/dist/highlight/shiki/full.d.ts +1 -1
- package/dist/highlight/shiki/index.d.ts +1 -1
- package/dist/highlight/shiki/react.d.ts +2 -2
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/middleware.d.ts +1 -1
- package/dist/{index-B-4lKkNh2.d.ts → index-5SWg3Kgu2.d.ts} +1 -1
- package/dist/{index-DxyTmDjY.d.ts → index-DzLmtQFW.d.ts} +1 -1
- package/dist/{index-B518t-3i.d.ts → index-nW94Fpi3.d.ts} +1 -1
- package/dist/{index-gTnj-v3t.d.ts → index-vYFNSGnq.d.ts} +207 -162
- package/dist/loader-EZG5Wob-.js +748 -0
- package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
- package/dist/mdx-plugins/index.d.ts +17 -17
- package/dist/mdx-plugins/index.js +1 -1
- package/dist/mdx-plugins/rehype-code.core.d.ts +1 -1
- package/dist/mdx-plugins/rehype-code.core.js +1 -1
- package/dist/mdx-plugins/rehype-code.d.ts +2 -2
- package/dist/mdx-plugins/rehype-code.js +1 -1
- package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
- package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
- package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
- 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-image.d.ts +1 -1
- package/dist/mdx-plugins/remark-image.js +2 -2
- package/dist/mdx-plugins/remark-llms.d.ts +1 -1
- package/dist/mdx-plugins/remark-llms.runtime.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
- package/dist/mdx-plugins/remark-npm.d.ts +1 -1
- package/dist/mdx-plugins/remark-steps.d.ts +1 -1
- package/dist/mdx-plugins/remark-structure.d.ts +1 -1
- package/dist/mdx-plugins/stringifier.d.ts +1 -1
- package/dist/page-tree/index.d.ts +2 -2
- package/dist/{rehype-code-RQFGrMHT.d.ts → rehype-code-DXCf4vCa.d.ts} +1 -1
- package/dist/{rehype-code.core-AKfLRGV3.d.ts → rehype-code.core-BZyEKRRx.d.ts} +2 -2
- package/dist/{rehype-code.core-n_TXY2L8.js → rehype-code.core-Cz33III3.js} +321 -1
- package/dist/{remark-heading-DJvYcq64.d.ts → remark-heading-BkmtL7mJ.d.ts} +1 -1
- package/dist/{remark-llms-Dwjerpo2.d.ts → remark-llms-CC6AjEDH.d.ts} +1 -1
- package/dist/{remark-structure-BxbC5Buc.d.ts → remark-structure-C2-K9_ko.d.ts} +1 -1
- package/dist/search/algolia.d.ts +1 -1
- package/dist/search/client/algolia.d.ts +1 -1
- package/dist/search/client/fetch.d.ts +1 -1
- package/dist/search/client/flexsearch-static.d.ts +1 -1
- package/dist/search/client/flexsearch-static.js +1 -1
- package/dist/search/client/mixedbread.d.ts +1 -1
- package/dist/search/client/mixedbread.js +1 -1
- package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/client/orama-cloud-legacy.js +1 -1
- package/dist/search/client/orama-cloud.d.ts +1 -1
- package/dist/search/client/orama-cloud.js +1 -1
- package/dist/search/client/orama-static.d.ts +1 -1
- package/dist/search/client/orama-static.js +1 -1
- package/dist/search/client.d.ts +1 -1
- package/dist/search/flexsearch.d.ts +9 -6
- package/dist/search/flexsearch.js +43 -19
- package/dist/search/index.d.ts +1 -1
- package/dist/search/mixedbread.d.ts +2 -2
- package/dist/search/mixedbread.js +2 -2
- package/dist/search/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/orama-cloud.d.ts +1 -1
- package/dist/search/server.d.ts +1 -1
- package/dist/search/server.js +42 -33
- package/dist/{server-DSoALz54.d.ts → server-CYtF8IuH.d.ts} +10 -7
- package/dist/source/client/index.d.ts +1 -1
- package/dist/source/dynamic.d.ts +2 -0
- package/dist/source/dynamic.js +63 -0
- package/dist/source/index.d.ts +2 -2
- package/dist/source/index.js +5 -796
- package/dist/source/llms.d.ts +2 -0
- package/dist/source/llms.js +66 -0
- package/dist/source/plugins/lucide-icons.d.ts +1 -1
- package/dist/source/plugins/lucide-icons.js +1 -1
- package/dist/source/plugins/slugs.d.ts +1 -1
- package/dist/source/plugins/slugs.js +1 -1
- package/dist/source/plugins/status-badges.d.ts +2 -2
- package/dist/toc.d.ts +1 -1
- package/package.json +8 -2
- /package/dist/{codeblock-utils-D1ODmcHy.d.ts → codeblock-utils-BFx9G8T-.d.ts} +0 -0
- /package/dist/{definitions-57FFofI9.d.ts → definitions-Cob-Q8-8.d.ts} +0 -0
- /package/dist/{dist-BvM8AIGy.js → dist-Deq67Kq0.js} +0 -0
- /package/dist/{endpoint-CAUHRXte.js → endpoint-BIAOm-1v.js} +0 -0
- /package/dist/{fromFile-Fn_3e7Ng.js → fromFile-BO-SGwwS.js} +0 -0
- /package/dist/{icon-CboA1P8m.js → icon-Cibw_sJ6.js} +0 -0
- /package/dist/{index-GHkAEvmO.d.ts → index-CnkxgKNd.d.ts} +0 -0
- /package/dist/{index-CRLkAaM0.d.ts → index-DaiDEfiL.d.ts} +0 -0
- /package/dist/{path-v4s3P8pA.js → path-ClKaiDuq.js} +0 -0
- /package/dist/{rehype-toc-wIDEJODt.d.ts → rehype-toc-D5_U8iEU.d.ts} +0 -0
- /package/dist/{remark-admonition-CfMnMJY5.d.ts → remark-admonition-Do12F5_K.d.ts} +0 -0
- /package/dist/{remark-code-tab-BC5W5GqG.d.ts → remark-code-tab-B8g4pbaL.d.ts} +0 -0
- /package/dist/{remark-directive-admonition-CUXTwdDg.d.ts → remark-directive-admonition-WTw742i0.d.ts} +0 -0
- /package/dist/{remark-feedback-block-Bd_7j2CA.d.ts → remark-feedback-block-CF-ABTc-.d.ts} +0 -0
- /package/dist/{remark-gfm-D9aa2ppr.d.ts → remark-gfm-Cv2b95uW.d.ts} +0 -0
- /package/dist/{remark-image-CSTFtaeg.d.ts → remark-image-B8S2Lk0J.d.ts} +0 -0
- /package/dist/{remark-mdx-files-Cv1mLv9_.d.ts → remark-mdx-files-DXcBGoX9.d.ts} +0 -0
- /package/dist/{remark-mdx-mermaid-DKj2NHxp.d.ts → remark-mdx-mermaid-CQU6XhYd.d.ts} +0 -0
- /package/dist/{remark-npm-BQkE8_Hf.d.ts → remark-npm-BZsXR24w.d.ts} +0 -0
- /package/dist/{remark-steps-BmZAJIGA.d.ts → remark-steps-BcG9tJSi.d.ts} +0 -0
- /package/dist/{remove-markdown-D2ifi9PZ.js → remove-markdown-B9biXFjm.js} +0 -0
- /package/dist/{remove-undefined-CTqT55E9.js → remove-undefined-C3ZKZLEo.js} +0 -0
- /package/dist/{stringifier-B2PmymrT.d.ts → stringifier-B_MrdMwd.d.ts} +0 -0
- /package/dist/{toc-CZK90oS5.d.ts → toc-B04VAipv.d.ts} +0 -0
- /package/dist/{types-RCtxugu0.d.ts → types-DpbpliNk.d.ts} +0 -0
- /package/dist/{util-BvKVaD5t.d.ts → util-D7vTp-Ia.d.ts} +0 -0
- /package/dist/{util-DEs3M9dw.js → util-DKxlHpW7.js} +0 -0
- /package/dist/{utils-CkDkYuX8.js → utils-DMOkhB3T.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContentHighlighter } from "./search/index.js";
|
|
2
|
-
import { t as removeUndefined } from "./remove-undefined-
|
|
2
|
+
import { t as removeUndefined } from "./remove-undefined-C3ZKZLEo.js";
|
|
3
3
|
import { getByID, search } from "@orama/orama";
|
|
4
4
|
//#region src/search/orama/search/simple.ts
|
|
5
5
|
async function searchSimple(db, query, params = {}) {
|
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as findPath } from "./utils-BFW0mEx9.js";
|
|
2
|
-
import { r as extname, t as basename } from "./path-
|
|
2
|
+
import { r as extname, t as basename } from "./path-ClKaiDuq.js";
|
|
3
3
|
//#region src/search/server/build-index.ts
|
|
4
4
|
async function buildIndexDefault(page) {
|
|
5
5
|
let structuredData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Awaitable } from "./types-
|
|
2
|
-
import { t as BaseIndex } from "./algolia-
|
|
3
|
-
import { r as SortedResult } from "./index-
|
|
1
|
+
import { t as Awaitable } from "./types-DpbpliNk.js";
|
|
2
|
+
import { t as BaseIndex } from "./algolia-BvGetcJs.js";
|
|
3
|
+
import { r as SortedResult } from "./index-CnkxgKNd.js";
|
|
4
4
|
import { DependencyList } from "react";
|
|
5
5
|
import { AnyOrama, Orama, SearchParams } from "@orama/orama";
|
|
6
6
|
import { LiteClient, SearchResponse } from "algoliasearch/lite";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/content/md/frontmatter.d.ts
|
|
2
|
+
interface Output {
|
|
3
|
+
/**
|
|
4
|
+
* The matter section, including the delimiter.
|
|
5
|
+
*/
|
|
6
|
+
matter: string;
|
|
7
|
+
content: string;
|
|
8
|
+
data: unknown;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* parse frontmatter, it supports only yaml format
|
|
12
|
+
*/
|
|
13
|
+
declare function frontmatter(input: string): Output;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { frontmatter };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { load } from "js-yaml";
|
|
2
|
+
//#region src/content/md/frontmatter.ts
|
|
3
|
+
/**
|
|
4
|
+
* Inspired by https://github.com/jonschlinkert/gray-matter
|
|
5
|
+
*/
|
|
6
|
+
const regex = /^---\r?\n(.+?)\r?\n---\r?\n?/s;
|
|
7
|
+
/**
|
|
8
|
+
* parse frontmatter, it supports only yaml format
|
|
9
|
+
*/
|
|
10
|
+
function frontmatter(input) {
|
|
11
|
+
const output = {
|
|
12
|
+
matter: "",
|
|
13
|
+
data: {},
|
|
14
|
+
content: input
|
|
15
|
+
};
|
|
16
|
+
const match = regex.exec(input);
|
|
17
|
+
if (!match) return output;
|
|
18
|
+
output.matter = match[0];
|
|
19
|
+
output.content = input.slice(match[0].length);
|
|
20
|
+
output.data = load(match[1]) ?? {};
|
|
21
|
+
return output;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { frontmatter };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
2
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
3
|
-
import { r as StructureOptions } from "../../remark-structure-
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
5
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
6
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
7
|
-
import { t as ResolvePlugins } from "../../util-
|
|
1
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-DXCf4vCa.js";
|
|
2
|
+
import { t as RemarkImageOptions } from "../../remark-image-B8S2Lk0J.js";
|
|
3
|
+
import { r as StructureOptions } from "../../remark-structure-C2-K9_ko.js";
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-BkmtL7mJ.js";
|
|
5
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-B8g4pbaL.js";
|
|
6
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-BZsXR24w.js";
|
|
7
|
+
import { t as ResolvePlugins } from "../../util-D7vTp-Ia.js";
|
|
8
8
|
import { Pluggable } from "unified";
|
|
9
9
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
2
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
3
|
-
import { r as StructureOptions } from "../../remark-structure-
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
5
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
6
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
7
|
-
import { t as ResolvePlugins } from "../../util-
|
|
1
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-DXCf4vCa.js";
|
|
2
|
+
import { t as RemarkImageOptions } from "../../remark-image-B8S2Lk0J.js";
|
|
3
|
+
import { r as StructureOptions } from "../../remark-structure-C2-K9_ko.js";
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-BkmtL7mJ.js";
|
|
5
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-B8g4pbaL.js";
|
|
6
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-BZsXR24w.js";
|
|
7
|
+
import { t as ResolvePlugins } from "../../util-D7vTp-Ia.js";
|
|
8
8
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
9
9
|
|
|
10
10
|
//#region src/content/mdx/preset-runtime.d.ts
|
package/dist/content/toc.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-
|
|
1
|
+
import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-DzLmtQFW.js";
|
|
2
2
|
export { HighlightHastOptions, ShikiFactory, createShikiFactory, highlightHast };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Awaitable } from "../../types-
|
|
2
|
-
import { t as HighlightHastOptions } from "../../index-
|
|
1
|
+
import { t as Awaitable } from "../../types-DpbpliNk.js";
|
|
2
|
+
import { t as HighlightHastOptions } from "../../index-DzLmtQFW.js";
|
|
3
3
|
import { DependencyList, ReactNode } from "react";
|
|
4
4
|
import { Components } from "hast-util-to-jsx-runtime";
|
|
5
5
|
import { HighlighterCore } from "shiki";
|
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-DaiDEfiL.js";
|
|
2
2
|
export { I18nConfig, defineI18n };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Awaitable } from "./types-
|
|
1
|
+
import { t as Awaitable } from "./types-DpbpliNk.js";
|
|
2
2
|
import { Root } from "hast";
|
|
3
3
|
import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, HighlighterCore } from "shiki";
|
|
4
4
|
|