fumadocs-core 16.15.5 → 16.15.6
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/content/md.d.ts +1 -1
- package/dist/{remove-markdown-DfKNMl9w.js → index.node-DkfYQyHM.js} +4 -5
- package/dist/search/client/mixedbread.js +2 -4
- package/dist/search/flexsearch.d.ts +1 -1
- package/dist/search/mixedbread.d.ts +1 -1
- package/dist/search/mixedbread.js +2 -4
- package/dist/search/server.d.ts +1 -1
- package/dist/{server-k_q58LOn.d.ts → server-Bd954Rsp.d.ts} +15 -15
- package/package.json +9 -9
package/dist/content/md.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ interface MarkdownProps {
|
|
|
19
19
|
children: Compatible;
|
|
20
20
|
}
|
|
21
21
|
declare function createMarkdownRenderer({ rehypePlugins, remarkPlugins, remarkRehypeOptions }?: MarkdownRendererOptions): MarkdownRenderer;
|
|
22
|
-
declare function Markdown(props: MarkdownProps & MarkdownRendererOptions): import("react").ReactNode |
|
|
22
|
+
declare function Markdown(props: MarkdownProps & MarkdownRendererOptions): Promise<import("react").ReactNode> | import("react").ReactNode;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { Markdown, MarkdownProps, MarkdownRenderer, MarkdownRendererOptions, createMarkdownRenderer };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
|
|
2
|
-
|
|
3
|
-
var require_remove_markdown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
|
|
2
|
+
var index_node_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
3
|
module.exports = function(md, options) {
|
|
5
4
|
options = options || {};
|
|
6
5
|
options.listUnicodeChar = options.hasOwnProperty("listUnicodeChar") ? options.listUnicodeChar : false;
|
|
@@ -35,6 +34,6 @@ var require_remove_markdown = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
35
34
|
}
|
|
36
35
|
return output;
|
|
37
36
|
};
|
|
38
|
-
}));
|
|
37
|
+
})))(), 1)).default;
|
|
39
38
|
//#endregion
|
|
40
|
-
export {
|
|
39
|
+
export { index_node_default as t };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as require_remove_markdown } from "../../remove-markdown-DfKNMl9w.js";
|
|
1
|
+
import { t as index_node_default } from "../../index.node-DkfYQyHM.js";
|
|
3
2
|
import Slugger from "github-slugger";
|
|
4
3
|
//#region src/search/client/mixedbread.ts
|
|
5
|
-
var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
|
|
6
4
|
const slugger = new Slugger();
|
|
7
5
|
function extractHeadingTitle(text) {
|
|
8
6
|
const trimmedText = text.trim();
|
|
9
7
|
if (!trimmedText.startsWith("#")) return "";
|
|
10
8
|
const firstLine = trimmedText.split("\n")[0]?.trim();
|
|
11
|
-
if (firstLine) return (
|
|
9
|
+
if (firstLine) return index_node_default(firstLine, { useImgAltText: false });
|
|
12
10
|
return "";
|
|
13
11
|
}
|
|
14
12
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-Bd954Rsp.js";
|
|
5
5
|
import { b as LoaderOutput, v as LoaderConfig } from "../index-BL0I0wLZ.js";
|
|
6
6
|
import { DocumentData, DocumentOptions } from "flexsearch";
|
|
7
7
|
//#region src/search/server/build-doc.d.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-Bd954Rsp.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,15 +1,13 @@
|
|
|
1
|
-
import { r as __toESM } from "../rolldown-runtime-DC62tzP2.js";
|
|
2
1
|
import { t as createEndpoint } from "../endpoint-MyoBU5IC.js";
|
|
3
|
-
import { t as
|
|
2
|
+
import { t as index_node_default } from "../index.node-DkfYQyHM.js";
|
|
4
3
|
import Slugger from "github-slugger";
|
|
5
4
|
//#region src/search/mixedbread.ts
|
|
6
|
-
var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
|
|
7
5
|
const slugger = new Slugger();
|
|
8
6
|
function extractHeadingTitle(text) {
|
|
9
7
|
const trimmedText = text.trim();
|
|
10
8
|
if (!trimmedText.startsWith("#")) return "";
|
|
11
9
|
const firstLine = trimmedText.split("\n")[0]?.trim();
|
|
12
|
-
if (firstLine) return (
|
|
10
|
+
if (firstLine) return index_node_default(firstLine, { useImgAltText: false });
|
|
13
11
|
return "";
|
|
14
12
|
}
|
|
15
13
|
function defaultTransform(results) {
|
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-Bd954Rsp.js";
|
|
2
2
|
export { AdvancedIndex, AdvancedOptions, ExportedData, Index, QueryOptions, SearchAPI, SearchServer, SimpleOptions, createFromSource, createI18nSearchAPI, createSearchAPI, initAdvancedSearch, initSimpleSearch };
|
|
@@ -7,24 +7,24 @@ import { Language, RawData, SearchParams, TypedDocument, ZBSearch, create } from
|
|
|
7
7
|
//#region src/search/zbsearch/create-db.d.ts
|
|
8
8
|
type SimpleDocument = TypedDocument<ZBSearch<typeof simpleSchema>>;
|
|
9
9
|
declare const simpleSchema: {
|
|
10
|
-
readonly url:
|
|
11
|
-
readonly title:
|
|
12
|
-
readonly breadcrumbs:
|
|
13
|
-
readonly description:
|
|
14
|
-
readonly content:
|
|
15
|
-
readonly keywords:
|
|
16
|
-
readonly locale:
|
|
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
|
+
readonly locale: 'enum';
|
|
17
17
|
};
|
|
18
18
|
type AdvancedDocument = TypedDocument<ZBSearch<typeof advancedSchema>>;
|
|
19
19
|
declare const advancedSchema: {
|
|
20
|
-
readonly content:
|
|
21
|
-
readonly page_id:
|
|
22
|
-
readonly type:
|
|
23
|
-
readonly breadcrumbs:
|
|
24
|
-
readonly tags:
|
|
25
|
-
readonly url:
|
|
26
|
-
readonly locale:
|
|
27
|
-
readonly embeddings:
|
|
20
|
+
readonly content: 'string';
|
|
21
|
+
readonly page_id: 'string';
|
|
22
|
+
readonly type: 'string';
|
|
23
|
+
readonly breadcrumbs: 'string[]';
|
|
24
|
+
readonly tags: 'enum[]';
|
|
25
|
+
readonly url: 'string';
|
|
26
|
+
readonly locale: 'enum';
|
|
27
|
+
readonly embeddings: 'vector[512]';
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/search/server/build-index.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "16.15.
|
|
3
|
+
"version": "16.15.6",
|
|
4
4
|
"description": "The React.js library for building a documentation website",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -139,22 +139,22 @@
|
|
|
139
139
|
"@types/estree-jsx": "^1.0.5",
|
|
140
140
|
"@types/hast": "^3.0.5",
|
|
141
141
|
"@types/mdast": "^4.0.4",
|
|
142
|
-
"@types/node": "26.
|
|
142
|
+
"@types/node": "26.4.1",
|
|
143
143
|
"@types/react": "^19.2.18",
|
|
144
144
|
"@types/react-dom": "^19.2.5",
|
|
145
145
|
"algoliasearch": "5.57.0",
|
|
146
146
|
"flexsearch": "^0.8.212",
|
|
147
|
-
"lucide-react": "^1.
|
|
148
|
-
"next": "16.3.
|
|
147
|
+
"lucide-react": "^1.39.0",
|
|
148
|
+
"next": "16.3.4",
|
|
149
149
|
"path-to-regexp": "^8.4.2",
|
|
150
|
-
"react-router": "^8.3.
|
|
150
|
+
"react-router": "^8.3.1",
|
|
151
151
|
"remark-directive": "^4.0.0",
|
|
152
152
|
"remark-mdx": "^3.1.1",
|
|
153
|
-
"remove-markdown": "^0.
|
|
153
|
+
"remove-markdown": "^0.7.0",
|
|
154
154
|
"tsdown": "0.22.14",
|
|
155
|
-
"typescript": "^
|
|
155
|
+
"typescript": "^7.0.2",
|
|
156
156
|
"waku": "1.0.0-rc.0",
|
|
157
|
-
"zod": "4.4
|
|
157
|
+
"zod": "4.5.4",
|
|
158
158
|
"tsconfig": "0.0.0"
|
|
159
159
|
},
|
|
160
160
|
"peerDependencies": {
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"@formatjs/intl-localematcher": "0.8.13",
|
|
239
239
|
"@shikijs/transformers": "4.4.3",
|
|
240
240
|
"path-to-regexp": "8.4.2",
|
|
241
|
-
"remove-markdown": "0.
|
|
241
|
+
"remove-markdown": "0.7.0"
|
|
242
242
|
},
|
|
243
243
|
"scripts": {
|
|
244
244
|
"build": "tsdown",
|