fumadocs-core 16.14.0 → 16.14.2
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/breadcrumb.js +1 -3
- package/dist/{build-doc-C3YHxNoA.js → build-doc-SC7P37WG.js} +1 -1
- package/dist/content/mdx/preset-bundler.d.ts +2 -2
- package/dist/content/mdx/preset-runtime.d.ts +2 -2
- package/dist/dynamic-link.js +2 -1
- package/dist/framework/astro.js +28 -27
- package/dist/{fromFile-DoNs4YiN.js → fromFile-DQPra6_l.js} +1 -1
- package/dist/highlight/index.js +2 -1
- package/dist/highlight/shiki/react.js +4 -2
- package/dist/i18n/middleware.js +1 -1
- package/dist/{index-sdv2T3z92.d.ts → index-ByMgvmTr2.d.ts} +1 -1
- package/dist/{index-CdGTOQQq.d.ts → index-C-fnVAhi.d.ts} +1 -1
- package/dist/{loader-BxANMvuQ.js → loader-5zwcKTZH.js} +1 -1
- package/dist/mdx-plugins/index.d.ts +2 -2
- package/dist/mdx-plugins/index.js +1 -1
- package/dist/mdx-plugins/rehype-code.core.js +1 -1
- package/dist/mdx-plugins/rehype-code.js +1 -1
- package/dist/mdx-plugins/remark-heading.d.ts +1 -1
- package/dist/mdx-plugins/remark-image.js +1 -1
- package/dist/mdx-plugins/remark-mdx-files.js +1 -3
- package/dist/negotiation/index.js +1 -1
- package/dist/{negotiation-Bdf_-s58.js → negotiation-BmZGHDR5.js} +1 -1
- package/dist/{path-B9zu5SjE.js → path-1H5VzYiT.js} +1 -1
- package/dist/{rehype-code.core-CzMM-w8f.js → rehype-code.core-DwDF3yaw.js} +1 -1
- package/dist/{remark-heading-Dy-3rXdY.d.ts → remark-heading-DEIzTkU5.d.ts} +0 -7
- package/dist/{remove-markdown-BoY2F4bc.js → remove-markdown-Do94q-my.js} +1 -1
- package/dist/{rolldown-runtime-B-1-B7_t.js → rolldown-runtime-DC62tzP2.js} +1 -1
- package/dist/search/client/mixedbread.js +2 -2
- package/dist/search/flexsearch.d.ts +2 -2
- package/dist/search/flexsearch.js +1 -1
- package/dist/search/mixedbread.d.ts +1 -1
- 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 +12 -10
- package/dist/{server-Bu44vTPO.d.ts → server-DYMsTHMa.d.ts} +1 -1
- package/dist/source/dynamic.d.ts +1 -1
- package/dist/source/dynamic.js +1 -1
- package/dist/source/index.d.ts +1 -1
- package/dist/source/index.js +2 -2
- package/dist/source/llms.d.ts +1 -1
- package/dist/source/plugins/lucide-icons.d.ts +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 +1 -1
- package/package.json +8 -8
package/dist/breadcrumb.js
CHANGED
|
@@ -38,9 +38,7 @@ function getBreadcrumbItemsFromPath(tree, path, options) {
|
|
|
38
38
|
url: item.index?.url
|
|
39
39
|
});
|
|
40
40
|
break;
|
|
41
|
-
case "separator":
|
|
42
|
-
if (item.name && includeSeparator) items.push({ name: item.name });
|
|
43
|
-
break;
|
|
41
|
+
case "separator": if (item.name && includeSeparator) items.push({ name: item.name });
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
return items;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as findPath } from "./utils-Dn9VIXRN.js";
|
|
2
|
-
import { r as extname, t as basename } from "./path-
|
|
2
|
+
import { r as extname, t as basename } from "./path-1H5VzYiT.js";
|
|
3
3
|
//#region src/search/server/build-index.ts
|
|
4
4
|
async function buildIndexDefault(page) {
|
|
5
5
|
let structuredData;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as RehypeCodeOptions } from "../../rehype-code-D-RFJb9W.js";
|
|
2
2
|
import { t as RemarkImageOptions } from "../../remark-image-BI2S9LOb.js";
|
|
3
3
|
import { r as StructureOptions } from "../../remark-structure-CnHwvNZr.js";
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-DEIzTkU5.js";
|
|
5
5
|
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-DE_4bdnu.js";
|
|
6
6
|
import { t as RemarkNpmOptions } from "../../remark-npm-BbpvkJaT.js";
|
|
7
|
-
import "../../index-
|
|
7
|
+
import "../../index-C-fnVAhi.js";
|
|
8
8
|
import { t as ResolvePlugins } from "../../util-BDsqOxh3.js";
|
|
9
9
|
import { Pluggable } from "unified";
|
|
10
10
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as RehypeCodeOptions } from "../../rehype-code-D-RFJb9W.js";
|
|
2
2
|
import { t as RemarkImageOptions } from "../../remark-image-BI2S9LOb.js";
|
|
3
3
|
import { r as StructureOptions } from "../../remark-structure-CnHwvNZr.js";
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-DEIzTkU5.js";
|
|
5
5
|
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-DE_4bdnu.js";
|
|
6
6
|
import { t as RemarkNpmOptions } from "../../remark-npm-BbpvkJaT.js";
|
|
7
|
-
import "../../index-
|
|
7
|
+
import "../../index-C-fnVAhi.js";
|
|
8
8
|
import { t as ResolvePlugins } from "../../util-BDsqOxh3.js";
|
|
9
9
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
10
10
|
//#region src/content/mdx/preset-runtime.d.ts
|
package/dist/dynamic-link.js
CHANGED
|
@@ -11,9 +11,10 @@ import { jsx } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
function DynamicLink({ href, ref, ...props }) {
|
|
13
13
|
const params = useParams();
|
|
14
|
+
const url = useMemo(() => href ? updateHref(href, params) : href, [params, href]);
|
|
14
15
|
return /* @__PURE__ */ jsx(Link, {
|
|
15
16
|
ref,
|
|
16
|
-
href:
|
|
17
|
+
href: url,
|
|
17
18
|
...props
|
|
18
19
|
});
|
|
19
20
|
}
|
package/dist/framework/astro.js
CHANGED
|
@@ -16,34 +16,35 @@ function normalizeParams(params = {}) {
|
|
|
16
16
|
*/
|
|
17
17
|
function AstroProvider({ children, pathname, params, navigate, Link, Image }) {
|
|
18
18
|
const resolvedParams = useMemo(() => normalizeParams(params), [params]);
|
|
19
|
+
const framework = useMemo(() => ({
|
|
20
|
+
usePathname() {
|
|
21
|
+
return pathname;
|
|
22
|
+
},
|
|
23
|
+
useParams() {
|
|
24
|
+
return resolvedParams;
|
|
25
|
+
},
|
|
26
|
+
useRouter() {
|
|
27
|
+
return {
|
|
28
|
+
push(url) {
|
|
29
|
+
if (navigate) return navigate(url);
|
|
30
|
+
window.location.assign(url);
|
|
31
|
+
},
|
|
32
|
+
refresh() {
|
|
33
|
+
window.location.reload();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
Link,
|
|
38
|
+
Image
|
|
39
|
+
}), [
|
|
40
|
+
Image,
|
|
41
|
+
Link,
|
|
42
|
+
navigate,
|
|
43
|
+
pathname,
|
|
44
|
+
resolvedParams
|
|
45
|
+
]);
|
|
19
46
|
return /* @__PURE__ */ jsx(FrameworkProvider, {
|
|
20
|
-
...
|
|
21
|
-
usePathname() {
|
|
22
|
-
return pathname;
|
|
23
|
-
},
|
|
24
|
-
useParams() {
|
|
25
|
-
return resolvedParams;
|
|
26
|
-
},
|
|
27
|
-
useRouter() {
|
|
28
|
-
return {
|
|
29
|
-
push(url) {
|
|
30
|
-
if (navigate) return navigate(url);
|
|
31
|
-
window.location.assign(url);
|
|
32
|
-
},
|
|
33
|
-
refresh() {
|
|
34
|
-
window.location.reload();
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
Link,
|
|
39
|
-
Image
|
|
40
|
-
}), [
|
|
41
|
-
Image,
|
|
42
|
-
Link,
|
|
43
|
-
navigate,
|
|
44
|
-
pathname,
|
|
45
|
-
resolvedParams
|
|
46
|
-
]),
|
|
47
|
+
...framework,
|
|
47
48
|
children
|
|
48
49
|
});
|
|
49
50
|
}
|
package/dist/highlight/index.js
CHANGED
|
@@ -5,7 +5,8 @@ import * as JsxRuntime from "react/jsx-runtime";
|
|
|
5
5
|
import { toJsxRuntime } from "hast-util-to-jsx-runtime";
|
|
6
6
|
//#region src/highlight/index.ts
|
|
7
7
|
async function highlightHast(code, options) {
|
|
8
|
-
|
|
8
|
+
const instance = await ((options.engine ?? "js") === "js" ? defaultShikiFactory : wasmShikiFactory).getOrInit();
|
|
9
|
+
return highlightHast$1(instance, code, applyDefaultThemes(options));
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* Get Shiki highlighter instance of Fumadocs (mostly for internal use, you should use Shiki directly over this).
|
|
@@ -13,7 +13,8 @@ function useShikiDynamic(highlighter, code, options, deps) {
|
|
|
13
13
|
const lastTask = useRef(null);
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
async function task() {
|
|
16
|
-
|
|
16
|
+
const instance = typeof highlighter === "function" ? await highlighter() : highlighter;
|
|
17
|
+
return toJsxRuntime(await highlightHast(instance, code, options), {
|
|
17
18
|
...JsxRuntime,
|
|
18
19
|
components: options.components
|
|
19
20
|
});
|
|
@@ -37,7 +38,8 @@ function useShikiDynamic(highlighter, code, options, deps) {
|
|
|
37
38
|
function useShiki(highlighter, code, options, deps = [options.lang, code]) {
|
|
38
39
|
const key = useMemo(() => JSON.stringify(deps), [deps]);
|
|
39
40
|
async function run() {
|
|
40
|
-
|
|
41
|
+
const instance = typeof highlighter === "function" ? await highlighter() : highlighter;
|
|
42
|
+
return toJsxRuntime(await highlightHast(instance, code, options), {
|
|
41
43
|
...JsxRuntime,
|
|
42
44
|
components: options.components
|
|
43
45
|
});
|
package/dist/i18n/middleware.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getNegotiator } from "../negotiation-
|
|
1
|
+
import { t as getNegotiator } from "../negotiation-BmZGHDR5.js";
|
|
2
2
|
import { NextResponse } from "next/server.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@formatjs+fast-memoize@3.1.7/node_modules/@formatjs/fast-memoize/index.js
|
|
4
4
|
function memoize(fn, options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-D8-KI7Uy.js";
|
|
2
2
|
import { t as Awaitable } from "./types-D89QoQR-.js";
|
|
3
3
|
import { i as StructuredData } from "./remark-structure-CnHwvNZr.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-C-fnVAhi.js";
|
|
5
5
|
import { n as I18nConfig } from "./index-DydiXvgS.js";
|
|
6
6
|
import "./index-DZN5OrTa.js";
|
|
7
7
|
import { n as SerializedPageTree } from "./index-CdZGMKDG.js";
|
|
@@ -2,7 +2,7 @@ import "./remark-gfm-DpVfAX1x.js";
|
|
|
2
2
|
import "./rehype-code-D-RFJb9W.js";
|
|
3
3
|
import "./remark-image-BI2S9LOb.js";
|
|
4
4
|
import "./remark-structure-CnHwvNZr.js";
|
|
5
|
-
import "./remark-heading-
|
|
5
|
+
import "./remark-heading-DEIzTkU5.js";
|
|
6
6
|
import "./remark-admonition-BwTcmI_S.js";
|
|
7
7
|
import "./remark-directive-admonition-BLiJ5l43.js";
|
|
8
8
|
import "./rehype-toc-K51AGb5U.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as normalizeUrl } from "./url-BVHvi3_K.js";
|
|
2
2
|
import { c as visit } from "./utils-Dn9VIXRN.js";
|
|
3
|
-
import { a as normalize, i as joinPath, n as dirname, r as extname, t as basename } from "./path-
|
|
3
|
+
import { a as normalize, i as joinPath, n as dirname, r as extname, t as basename } from "./path-1H5VzYiT.js";
|
|
4
4
|
import { slugsPlugin } from "./source/plugins/slugs.js";
|
|
5
5
|
import { t as iconPlugin } from "./icon-BILaoXeg.js";
|
|
6
6
|
//#region src/source/storage/file-system.ts
|
|
@@ -4,7 +4,7 @@ import { r as transformerIcon, t as CodeBlockIcon } from "../transformer-icon-Dl
|
|
|
4
4
|
import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-D-RFJb9W.js";
|
|
5
5
|
import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-BI2S9LOb.js";
|
|
6
6
|
import { a as defaultStringifier, c as structure, i as StructuredData, n as StringifyOptions, o as remarkStructure, r as StructureOptions, s as remarkStructureDefaultOptions, t as Stringifier } from "../remark-structure-CnHwvNZr.js";
|
|
7
|
-
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-
|
|
7
|
+
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DEIzTkU5.js";
|
|
8
8
|
import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-BwTcmI_S.js";
|
|
9
9
|
import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-BLiJ5l43.js";
|
|
10
10
|
import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-K51AGb5U.js";
|
|
@@ -16,5 +16,5 @@ import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-f
|
|
|
16
16
|
import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-C1bCHHc6.js";
|
|
17
17
|
import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-BxtINXN-.js";
|
|
18
18
|
import { t as LLMsOptions } from "../remark-llms-BF5SHW_O.js";
|
|
19
|
-
import "../index-
|
|
19
|
+
import "../index-C-fnVAhi.js";
|
|
20
20
|
export { CodeBlockAttributes, type CodeBlockIcon, CodeBlockTabsOptions, FeedbackBlockProps, type LLMsOptions, RehypeCodeOptions, RehypeTOCItemType, RehypeTocOptions, RemarkAdmonitionOptions, RemarkCodeTabOptions, RemarkDirectiveAdmonitionOptions, RemarkFeedbackBlockOptions, type RemarkGfmOptions, RemarkHeadingOptions, RemarkImageOptions, type RemarkMdxFilesOptions, RemarkMdxMermaidOptions, RemarkNpmOptions, RemarkStepsOptions, Stringifier, StringifyOptions, StructureOptions, StructuredData, defaultStringifier, generateCodeBlockTabs, parseCodeBlockAttributes, rehypeCode, rehypeCodeDefaultOptions, rehypeToc, remarkAdmonition, remarkCodeTab, remarkDirectiveAdmonition, remarkFeedbackBlock, remarkGfm, remarkHeading, remarkImage, remarkMdxFiles, remarkMdxMermaid, remarkNpm, remarkSteps, remarkStructure, remarkStructureDefaultOptions, structure, transformerIcon, transformerTab };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { remarkHeading } from "./remark-heading.js";
|
|
2
2
|
import { generateCodeBlockTabs, parseCodeBlockAttributes } from "./codeblock-utils.js";
|
|
3
3
|
import { remarkGfm } from "./remark-gfm.js";
|
|
4
|
-
import { r as transformerTab } from "../rehype-code.core-
|
|
4
|
+
import { r as transformerTab } from "../rehype-code.core-DwDF3yaw.js";
|
|
5
5
|
import { transformerIcon } from "./transformer-icon.js";
|
|
6
6
|
import { rehypeCode, rehypeCodeDefaultOptions } from "./rehype-code.js";
|
|
7
7
|
import { remarkImage } from "./remark-image.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-
|
|
1
|
+
import { n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-DwDF3yaw.js";
|
|
2
2
|
import { transformerIcon } from "./transformer-icon.js";
|
|
3
3
|
export { createRehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultShikiFactory, wasmShikiFactory } from "../highlight/shiki/full.js";
|
|
2
|
-
import { n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-
|
|
2
|
+
import { n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-DwDF3yaw.js";
|
|
3
3
|
import { transformerIcon } from "./transformer-icon.js";
|
|
4
4
|
//#region src/mdx-plugins/rehype-code.ts
|
|
5
5
|
const rehypeCodeDefaultOptions = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-
|
|
1
|
+
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DEIzTkU5.js";
|
|
2
2
|
export { RemarkHeadingOptions, remarkHeading };
|
|
@@ -158,7 +158,7 @@ function parseSrc(src, publicDir, dir) {
|
|
|
158
158
|
}
|
|
159
159
|
async function getImageSize(src, onExternal) {
|
|
160
160
|
if (src.type === "file") {
|
|
161
|
-
const { imageSizeFromFile } = await import("../fromFile-
|
|
161
|
+
const { imageSizeFromFile } = await import("../fromFile-DQPra6_l.js");
|
|
162
162
|
return imageSizeFromFile(src.file);
|
|
163
163
|
}
|
|
164
164
|
if (onExternal === false) return;
|
|
@@ -126,9 +126,7 @@ function remarkMdxFiles(options = {}) {
|
|
|
126
126
|
parsed.patterns.push(value);
|
|
127
127
|
}
|
|
128
128
|
break;
|
|
129
|
-
case "defaultOpenAll":
|
|
130
|
-
parsed.defaultOpenAll = true;
|
|
131
|
-
break;
|
|
129
|
+
case "defaultOpenAll": parsed.defaultOpenAll = true;
|
|
132
130
|
}
|
|
133
131
|
}
|
|
134
132
|
queue.push(autoFiles(file, node, parsed));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-
|
|
1
|
+
import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-BmZGHDR5.js";
|
|
2
2
|
export { getNegotiator, isMarkdownPreferred, rewritePath };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/negotiator@1.0.0/node_modules/negotiator/lib/charset.js
|
|
3
3
|
/**
|
|
4
4
|
* negotiator
|
|
@@ -115,7 +115,7 @@ function transformerAddLanguage(lang) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
|
-
//#region ../../node_modules/.pnpm/@shikijs+transformers@4.
|
|
118
|
+
//#region ../../node_modules/.pnpm/@shikijs+transformers@4.4.1/node_modules/@shikijs/transformers/dist/index.mjs
|
|
119
119
|
const RE_SPLIT_COMMENT = /(\s+\/\/)/;
|
|
120
120
|
const RE_V1_END_COMMENT_PREFIX = /(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/;
|
|
121
121
|
const RE_V3_END_COMMENT_PREFIX = /(?:\/\/|#|;{1,2}|%{1,2}|--)(\s*)$/;
|
|
@@ -2,13 +2,6 @@ import { c as TOCItemType } from "./toc-CtW5lwA1.js";
|
|
|
2
2
|
import { Transformer } from "unified";
|
|
3
3
|
import { Heading, Root } from "mdast";
|
|
4
4
|
//#region src/mdx-plugins/remark-heading.d.ts
|
|
5
|
-
declare module 'mdast' {
|
|
6
|
-
interface HeadingData extends Data {
|
|
7
|
-
hProperties?: {
|
|
8
|
-
id?: string;
|
|
9
|
-
} & Record<string, unknown>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
5
|
interface RemarkHeadingOptions {
|
|
13
6
|
slug?: (root: Root, heading: Heading, text: string) => string;
|
|
14
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/remove-markdown@0.6.4/node_modules/remove-markdown/index.js
|
|
3
3
|
var require_remove_markdown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
module.exports = function(md, options) {
|
|
@@ -25,7 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
25
25
|
}
|
|
26
26
|
return to;
|
|
27
27
|
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
29
|
value: mod,
|
|
30
30
|
enumerable: true
|
|
31
31
|
}) : target, mod));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as __toESM } from "../../rolldown-runtime-
|
|
2
|
-
import { t as require_remove_markdown } from "../../remove-markdown-
|
|
1
|
+
import { r as __toESM } from "../../rolldown-runtime-DC62tzP2.js";
|
|
2
|
+
import { t as require_remove_markdown } from "../../remove-markdown-Do94q-my.js";
|
|
3
3
|
import Slugger from "github-slugger";
|
|
4
4
|
//#region src/search/client/mixedbread.ts
|
|
5
5
|
var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as Awaitable } from "../types-D89QoQR-.js";
|
|
2
2
|
import { n as I18nConfig } from "../index-DydiXvgS.js";
|
|
3
3
|
import "../index-BM36H-xw.js";
|
|
4
|
-
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-
|
|
5
|
-
import { x as LoaderOutput, y as LoaderConfig } from "../index-
|
|
4
|
+
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-DYMsTHMa.js";
|
|
5
|
+
import { x as LoaderOutput, y as LoaderConfig } from "../index-ByMgvmTr2.js";
|
|
6
6
|
import { DocumentData, DocumentOptions } from "flexsearch";
|
|
7
7
|
//#region src/search/server/build-doc.d.ts
|
|
8
8
|
interface SharedDocument {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createEndpoint } from "../endpoint-MyoBU5IC.js";
|
|
2
|
-
import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-
|
|
2
|
+
import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-SC7P37WG.js";
|
|
3
3
|
import { n as search, t as createDocument } from "../utils-Bvy3V-fv.js";
|
|
4
4
|
import Search from "flexsearch";
|
|
5
5
|
//#region src/search/flexsearch.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as SortedResult } from "../index-BM36H-xw.js";
|
|
2
|
-
import { n as SearchAPI } from "../server-
|
|
2
|
+
import { n as SearchAPI } from "../server-DYMsTHMa.js";
|
|
3
3
|
import Mixedbread from "@mixedbread/sdk";
|
|
4
4
|
import { StoreSearchResponse } from "@mixedbread/sdk/resources/stores";
|
|
5
5
|
//#region src/search/mixedbread.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as __toESM } from "../rolldown-runtime-
|
|
1
|
+
import { r as __toESM } from "../rolldown-runtime-DC62tzP2.js";
|
|
2
2
|
import { t as createEndpoint } from "../endpoint-MyoBU5IC.js";
|
|
3
|
-
import { t as require_remove_markdown } from "../remove-markdown-
|
|
3
|
+
import { t as require_remove_markdown } from "../remove-markdown-Do94q-my.js";
|
|
4
4
|
import Slugger from "github-slugger";
|
|
5
5
|
//#region src/search/mixedbread.ts
|
|
6
6
|
var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
|
package/dist/search/server.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-
|
|
1
|
+
import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-DYMsTHMa.js";
|
|
2
2
|
export { AdvancedIndex, AdvancedOptions, ExportedData, Index, QueryOptions, SearchAPI, SearchServer, SimpleOptions, createFromSource, createI18nSearchAPI, createSearchAPI, initAdvancedSearch, initSimpleSearch };
|
package/dist/search/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as defaultReadOptions, t as createEndpoint } from "../endpoint-MyoBU5IC.js";
|
|
2
|
-
import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-
|
|
2
|
+
import { n as buildBreadcrumbs, r as buildIndexDefault, t as buildDocuments } from "../build-doc-SC7P37WG.js";
|
|
3
3
|
import { n as searchSimple, t as searchAdvanced } from "../advanced-B0__lVW5.js";
|
|
4
4
|
import { create, insertMultiple, save } from "zbsearch";
|
|
5
5
|
//#region src/search/zbsearch/create-db.ts
|
|
@@ -22,29 +22,33 @@ const advancedSchema = {
|
|
|
22
22
|
locale: "enum",
|
|
23
23
|
embeddings: "vector[512]"
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
const DefaultLanguage = "multilingual";
|
|
26
|
+
async function createDB({ indexes, tokenizer, language = DefaultLanguage, search: _, localeFilter: __, ...rest }) {
|
|
26
27
|
const items = typeof indexes === "function" ? await indexes() : indexes;
|
|
28
|
+
const resolvedTokenizer = tokenizer ?? rest.components?.tokenizer;
|
|
27
29
|
const db = create({
|
|
28
30
|
schema: advancedSchema,
|
|
29
|
-
language,
|
|
31
|
+
language: resolvedTokenizer ? void 0 : language,
|
|
30
32
|
...rest,
|
|
31
33
|
components: {
|
|
32
34
|
...rest.components,
|
|
33
|
-
tokenizer:
|
|
35
|
+
tokenizer: resolvedTokenizer
|
|
34
36
|
}
|
|
35
37
|
});
|
|
36
|
-
|
|
38
|
+
const mapTo = buildDocuments(items);
|
|
39
|
+
await insertMultiple(db, mapTo);
|
|
37
40
|
return db;
|
|
38
41
|
}
|
|
39
|
-
async function createDBSimple({ indexes, tokenizer, language =
|
|
42
|
+
async function createDBSimple({ indexes, tokenizer, language = DefaultLanguage, search: _, localeFilter: __, ...rest }) {
|
|
40
43
|
const items = typeof indexes === "function" ? await indexes() : indexes;
|
|
44
|
+
const resolvedTokenizer = tokenizer ?? rest.components?.tokenizer;
|
|
41
45
|
const db = create({
|
|
42
46
|
schema: simpleSchema,
|
|
43
|
-
language,
|
|
47
|
+
language: resolvedTokenizer ? void 0 : language,
|
|
44
48
|
...rest,
|
|
45
49
|
components: {
|
|
46
50
|
...rest.components,
|
|
47
|
-
tokenizer:
|
|
51
|
+
tokenizer: resolvedTokenizer
|
|
48
52
|
}
|
|
49
53
|
});
|
|
50
54
|
await insertMultiple(db, items.map((page) => ({
|
|
@@ -111,11 +115,9 @@ function createI18nSearchAPI(...[type, options]) {
|
|
|
111
115
|
if (options.localeMap) return createI18nSearchAPILegacy(type, options);
|
|
112
116
|
const server = type === "simple" ? initSimpleSearch({
|
|
113
117
|
...options,
|
|
114
|
-
language: "multilingual",
|
|
115
118
|
localeFilter: true
|
|
116
119
|
}) : initAdvancedSearch({
|
|
117
120
|
...options,
|
|
118
|
-
language: "multilingual",
|
|
119
121
|
localeFilter: true
|
|
120
122
|
});
|
|
121
123
|
return toAPI({
|
|
@@ -2,7 +2,7 @@ import { t as Awaitable } from "./types-D89QoQR-.js";
|
|
|
2
2
|
import { i as StructuredData } from "./remark-structure-CnHwvNZr.js";
|
|
3
3
|
import { n as I18nConfig } from "./index-DydiXvgS.js";
|
|
4
4
|
import { r as SortedResult } from "./index-BM36H-xw.js";
|
|
5
|
-
import { x as LoaderOutput, y as LoaderConfig } from "./index-
|
|
5
|
+
import { x as LoaderOutput, y as LoaderConfig } from "./index-ByMgvmTr2.js";
|
|
6
6
|
import { Language, RawData, SearchParams, TypedDocument, ZBSearch, create } from "zbsearch";
|
|
7
7
|
//#region src/search/zbsearch/create-db.d.ts
|
|
8
8
|
type SimpleDocument = TypedDocument<ZBSearch<typeof simpleSchema>>;
|
package/dist/source/dynamic.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { g as dynamicLoader, h as DynamicLoaderConfig, m as DynamicLoader } from "../index-
|
|
1
|
+
import { g as dynamicLoader, h as DynamicLoaderConfig, m as DynamicLoader } from "../index-ByMgvmTr2.js";
|
|
2
2
|
export { DynamicLoader, DynamicLoaderConfig, dynamicLoader };
|
package/dist/source/dynamic.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-
|
|
1
|
+
import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-5zwcKTZH.js";
|
|
2
2
|
import { cache } from "react";
|
|
3
3
|
//#region src/source/dynamic.ts
|
|
4
4
|
function dynamicLoader(input, options) {
|
package/dist/source/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as ContentStoragePageFile, C as LoaderPluginOption, D as createGetUrl, E as ResolvedLoaderConfig, F as PageTreeBuilderContext, I as PageTreeOptions, L as PageTreeTransformer, O as loader, P as PageTreeBuilder, R as ContentStorage, S as LoaderPlugin, T as Page, V as FileSystem, _ as InferMetaType, a as MetaData, b as LoaderOptions, c as SourceUnion, d as multiple, f as source, i as DynamicSource, j as getSlugs, k as types_d_exports, l as StaticSource, n as llms, o as PageData, p as update, r as path_d_exports, s as Source, t as LLMsConfig, u as VirtualFile, v as InferPageType, w as Meta, x as LoaderOutput, y as LoaderConfig, z as ContentStorageMetaFile } from "../index-
|
|
1
|
+
import { B as ContentStoragePageFile, C as LoaderPluginOption, D as createGetUrl, E as ResolvedLoaderConfig, F as PageTreeBuilderContext, I as PageTreeOptions, L as PageTreeTransformer, O as loader, P as PageTreeBuilder, R as ContentStorage, S as LoaderPlugin, T as Page, V as FileSystem, _ as InferMetaType, a as MetaData, b as LoaderOptions, c as SourceUnion, d as multiple, f as source, i as DynamicSource, j as getSlugs, k as types_d_exports, l as StaticSource, n as llms, o as PageData, p as update, r as path_d_exports, s as Source, t as LLMsConfig, u as VirtualFile, v as InferPageType, w as Meta, x as LoaderOutput, y as LoaderConfig, z as ContentStorageMetaFile } from "../index-ByMgvmTr2.js";
|
|
2
2
|
export { type ContentStorage, type ContentStorageMetaFile, type ContentStoragePageFile, type DynamicSource, FileSystem, InferMetaType, InferPageType, LLMsConfig, LoaderConfig, LoaderOptions, LoaderOutput, LoaderPlugin, LoaderPluginOption, Meta, type MetaData, Page, type PageData, type PageTreeBuilder, type PageTreeBuilderContext, type PageTreeOptions, type PageTreeTransformer, path_d_exports as PathUtils, ResolvedLoaderConfig, type Source, type SourceUnion, type StaticSource, type VirtualFile, type types_d_exports as _Internal, createGetUrl, getSlugs, llms, loader, multiple, source, update };
|
package/dist/source/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as path_exports } from "../path-
|
|
2
|
-
import { a as multiple, c as FileSystem, n as loader, o as source, s as update, t as createGetUrl } from "../loader-
|
|
1
|
+
import { o as path_exports } from "../path-1H5VzYiT.js";
|
|
2
|
+
import { a as multiple, c as FileSystem, n as loader, o as source, s as update, t as createGetUrl } from "../loader-5zwcKTZH.js";
|
|
3
3
|
import { getSlugs } from "./plugins/slugs.js";
|
|
4
4
|
import { llms } from "./llms.js";
|
|
5
5
|
export { FileSystem, path_exports as PathUtils, createGetUrl, getSlugs, llms, loader, multiple, source, update };
|
package/dist/source/llms.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as llms, t as LLMsConfig } from "../index-
|
|
1
|
+
import { n as llms, t as LLMsConfig } from "../index-ByMgvmTr2.js";
|
|
2
2
|
export { LLMsConfig, llms };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SlugFn, M as slugsFromData, N as slugsPlugin, j as getSlugs } from "../../index-
|
|
1
|
+
import { A as SlugFn, M as slugsFromData, N as slugsPlugin, j as getSlugs } from "../../index-ByMgvmTr2.js";
|
|
2
2
|
export { SlugFn, getSlugs, slugsFromData, slugsPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as Separator$1, n as Item$1, t as Folder$1 } from "../../definitions-D8-KI7Uy.js";
|
|
2
|
-
import { S as LoaderPlugin } from "../../index-
|
|
2
|
+
import { S as LoaderPlugin } from "../../index-ByMgvmTr2.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/source/plugins/status-badges.d.ts
|
|
5
5
|
interface Item extends Item$1 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "16.14.
|
|
3
|
+
"version": "16.14.2",
|
|
4
4
|
"description": "The React.js library for building a documentation website",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"remark-gfm": "^4.0.1",
|
|
115
115
|
"remark-rehype": "^11.1.2",
|
|
116
116
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
117
|
-
"shiki": "^4.
|
|
117
|
+
"shiki": "^4.4.1",
|
|
118
118
|
"tinyglobby": "^0.2.17",
|
|
119
119
|
"unified": "^11.0.5",
|
|
120
120
|
"unist-util-visit": "^5.1.0",
|
|
@@ -128,21 +128,21 @@
|
|
|
128
128
|
"@mixedbread/sdk": "0.77.0",
|
|
129
129
|
"@orama/core": "^1.2.19",
|
|
130
130
|
"@oramacloud/client": "^2.1.4",
|
|
131
|
-
"@shikijs/transformers": "^4.
|
|
131
|
+
"@shikijs/transformers": "^4.4.1",
|
|
132
132
|
"@tanstack/react-router": "1.170.18",
|
|
133
133
|
"@types/estree-jsx": "^1.0.5",
|
|
134
134
|
"@types/hast": "^3.0.5",
|
|
135
135
|
"@types/mdast": "^4.0.4",
|
|
136
136
|
"@types/negotiator": "^0.6.4",
|
|
137
137
|
"@types/node": "26.1.2",
|
|
138
|
-
"@types/react": "^19.2.
|
|
139
|
-
"@types/react-dom": "^19.2.
|
|
138
|
+
"@types/react": "^19.2.18",
|
|
139
|
+
"@types/react-dom": "^19.2.4",
|
|
140
140
|
"algoliasearch": "5.56.0",
|
|
141
141
|
"flexsearch": "^0.8.212",
|
|
142
142
|
"image-size": "^2.0.2",
|
|
143
|
-
"lucide-react": "^1.
|
|
143
|
+
"lucide-react": "^1.28.0",
|
|
144
144
|
"negotiator": "^1.0.0",
|
|
145
|
-
"next": "16.
|
|
145
|
+
"next": "16.3.0",
|
|
146
146
|
"path-to-regexp": "^8.4.2",
|
|
147
147
|
"react-router": "^8.3.0",
|
|
148
148
|
"remark-directive": "^4.0.0",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"inlinedDependencies": {
|
|
234
234
|
"@formatjs/fast-memoize": "3.1.7",
|
|
235
235
|
"@formatjs/intl-localematcher": "0.8.13",
|
|
236
|
-
"@shikijs/transformers": "4.
|
|
236
|
+
"@shikijs/transformers": "4.4.1",
|
|
237
237
|
"image-size": "2.0.2",
|
|
238
238
|
"negotiator": "1.0.0",
|
|
239
239
|
"path-to-regexp": "8.4.2",
|