fumadocs-core 16.10.5 → 16.10.7
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 -1
- package/dist/{loader-DE3diFne.js → loader-CoSFINvo.js} +1 -1
- package/dist/mdx-plugins/rehype-toc.js +1 -1
- package/dist/search/client/fetch.js +2 -1
- package/dist/search/client/flexsearch-static.js +2 -1
- package/dist/search/client/orama-static.js +2 -2
- package/dist/source/dynamic.js +1 -1
- package/dist/source/index.js +1 -1
- package/dist/{normalize-url-BprQXHOP.js → url-CWbf4MFh.js} +7 -2
- package/package.json +9 -10
package/dist/breadcrumb.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as normalizeUrl } from "./url-CWbf4MFh.js";
|
|
2
2
|
import { c as visit } from "./utils-Dn9VIXRN.js";
|
|
3
3
|
import { a as normalize, i as joinPath, n as dirname, r as extname, t as basename } from "./path-B9zu5SjE.js";
|
|
4
4
|
import { slugsPlugin } from "./source/plugins/slugs.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { t as BASE_PATH } from "../../url-CWbf4MFh.js";
|
|
1
2
|
//#region src/search/client/fetch.ts
|
|
2
3
|
const globalCache = /* @__PURE__ */ new Map();
|
|
3
|
-
function fetchClient({ api =
|
|
4
|
+
function fetchClient({ api = `${BASE_PATH}api/search`, locale, tag, cache = globalCache } = {}) {
|
|
4
5
|
return {
|
|
5
6
|
deps: [
|
|
6
7
|
api,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as BASE_PATH } from "../../url-CWbf4MFh.js";
|
|
1
2
|
import { n as search, t as createDocument } from "../../utils-Bvy3V-fv.js";
|
|
2
3
|
//#region src/search/client/flexsearch-static.ts
|
|
3
4
|
function initDocument(data) {
|
|
@@ -7,7 +8,7 @@ function initDocument(data) {
|
|
|
7
8
|
}
|
|
8
9
|
const cacheMap = /* @__PURE__ */ new Map();
|
|
9
10
|
function flexsearchStaticClient(options = {}) {
|
|
10
|
-
const { from =
|
|
11
|
+
const { from = `${BASE_PATH}api/search`, locale = "", tag } = options;
|
|
11
12
|
let dbs = cacheMap.get(from);
|
|
12
13
|
if (!dbs && typeof window !== "undefined") {
|
|
13
14
|
dbs = init(from);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as BASE_PATH } from "../../url-CWbf4MFh.js";
|
|
1
2
|
import { n as searchSimple, t as searchAdvanced } from "../../advanced-BnqbPavQ.js";
|
|
2
3
|
import { create, load } from "@orama/orama";
|
|
3
4
|
//#region src/search/client/orama-static.ts
|
|
@@ -28,8 +29,7 @@ async function loadDB(from, initOrama = (locale) => create({
|
|
|
28
29
|
}
|
|
29
30
|
return dbs;
|
|
30
31
|
}
|
|
31
|
-
function getDBCached(
|
|
32
|
-
const { from = "/api/search", initOrama } = options;
|
|
32
|
+
function getDBCached({ from = `${BASE_PATH}api/search`, initOrama }) {
|
|
33
33
|
const cacheKey = from;
|
|
34
34
|
const cached = cache.get(cacheKey);
|
|
35
35
|
if (cached) return cached;
|
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-CoSFINvo.js";
|
|
2
2
|
import { cache } from "react";
|
|
3
3
|
//#region src/source/dynamic.ts
|
|
4
4
|
function dynamicLoader(input, options) {
|
package/dist/source/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as path_exports } from "../path-B9zu5SjE.js";
|
|
2
|
-
import { a as multiple, c as FileSystem, n as loader, o as source, s as update, t as createGetUrl } from "../loader-
|
|
2
|
+
import { a as multiple, c as FileSystem, n as loader, o as source, s as update, t as createGetUrl } from "../loader-CoSFINvo.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 };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
//#region src/utils/
|
|
1
|
+
//#region src/utils/url.tsx
|
|
2
|
+
/**
|
|
3
|
+
* The base path (Vite), always ends with `/`.
|
|
4
|
+
*/
|
|
5
|
+
let BASE_PATH = typeof import.meta.env !== "undefined" && typeof import.meta.env.BASE_URL === "string" ? import.meta.env.BASE_URL : "/";
|
|
6
|
+
if (!BASE_PATH.endsWith("/")) BASE_PATH += "/";
|
|
2
7
|
/**
|
|
3
8
|
* normalize URL into the Fumadocs standard form (`/slug-1/slug-2`).
|
|
4
9
|
*
|
|
@@ -11,4 +16,4 @@ function normalizeUrl(url) {
|
|
|
11
16
|
return url;
|
|
12
17
|
}
|
|
13
18
|
//#endregion
|
|
14
|
-
export { normalizeUrl as t };
|
|
19
|
+
export { normalizeUrl as n, BASE_PATH as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "16.10.
|
|
3
|
+
"version": "16.10.7",
|
|
4
4
|
"description": "The React.js library for building a documentation website",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"github-slugger": "^2.0.0",
|
|
108
108
|
"hast-util-to-estree": "^3.1.3",
|
|
109
109
|
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
110
|
-
"js-yaml": "^
|
|
110
|
+
"js-yaml": "^5.1.0",
|
|
111
111
|
"mdast-util-mdx": "^3.0.0",
|
|
112
112
|
"mdast-util-to-markdown": "^2.1.2",
|
|
113
113
|
"remark": "^15.0.1",
|
|
@@ -123,34 +123,33 @@
|
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"@formatjs/intl-localematcher": "^0.8.10",
|
|
125
125
|
"@mdx-js/mdx": "^3.1.1",
|
|
126
|
-
"@mixedbread/sdk": "0.
|
|
126
|
+
"@mixedbread/sdk": "0.76.0",
|
|
127
127
|
"@orama/core": "^1.2.19",
|
|
128
128
|
"@oramacloud/client": "^2.1.4",
|
|
129
129
|
"@shikijs/transformers": "^4.2.0",
|
|
130
|
-
"@tanstack/react-router": "1.170.
|
|
130
|
+
"@tanstack/react-router": "1.170.16",
|
|
131
131
|
"@types/estree-jsx": "^1.0.5",
|
|
132
132
|
"@types/hast": "^3.0.4",
|
|
133
|
-
"@types/js-yaml": "^4.0.9",
|
|
134
133
|
"@types/mdast": "^4.0.4",
|
|
135
134
|
"@types/negotiator": "^0.6.4",
|
|
136
|
-
"@types/node": "
|
|
135
|
+
"@types/node": "26.0.0",
|
|
137
136
|
"@types/react": "^19.2.17",
|
|
138
137
|
"@types/react-dom": "^19.2.3",
|
|
139
|
-
"algoliasearch": "5.55.
|
|
138
|
+
"algoliasearch": "5.55.1",
|
|
140
139
|
"flexsearch": "^0.8.212",
|
|
141
140
|
"image-size": "^2.0.2",
|
|
142
|
-
"lucide-react": "^1.
|
|
141
|
+
"lucide-react": "^1.21.0",
|
|
143
142
|
"negotiator": "^1.0.0",
|
|
144
143
|
"next": "16.2.9",
|
|
145
144
|
"npm-to-yarn": "^3.0.1",
|
|
146
145
|
"path-to-regexp": "^8.4.2",
|
|
147
|
-
"react-router": "8.0.
|
|
146
|
+
"react-router": "^8.0.1",
|
|
148
147
|
"remark-directive": "^4.0.0",
|
|
149
148
|
"remark-mdx": "^3.1.1",
|
|
150
149
|
"remove-markdown": "^0.6.4",
|
|
151
150
|
"tsdown": "0.22.3",
|
|
152
151
|
"typescript": "^6.0.3",
|
|
153
|
-
"waku": "1.0.0-beta.
|
|
152
|
+
"waku": "1.0.0-beta.4",
|
|
154
153
|
"zod": "4.4.3",
|
|
155
154
|
"tsconfig": "0.0.0"
|
|
156
155
|
},
|