fumadocs-core 14.7.1 → 14.7.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/dist/breadcrumb.d.ts +2 -2
- package/dist/breadcrumb.js +1 -0
- package/dist/mdx-plugins/index.js +4 -4
- package/dist/search/server.js +1 -9
- package/package.json +5 -5
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { R as Root, N as Node
|
|
2
|
+
import { R as Root, N as Node } from './page-tree-r8qjoUla.js';
|
|
3
3
|
|
|
4
4
|
interface BreadcrumbItem {
|
|
5
5
|
name: ReactNode;
|
|
@@ -39,6 +39,6 @@ declare function getBreadcrumbItemsFromPath(tree: Root, path: Node[], options: B
|
|
|
39
39
|
* @returns The path to the target node from root
|
|
40
40
|
* @internal
|
|
41
41
|
*/
|
|
42
|
-
declare function searchPath(nodes: Node[], url: string):
|
|
42
|
+
declare function searchPath(nodes: Node[], url: string): Node[] | null;
|
|
43
43
|
|
|
44
44
|
export { type BreadcrumbItem, type BreadcrumbOptions, getBreadcrumbItems, getBreadcrumbItemsFromPath, searchPath, useBreadcrumb };
|
package/dist/breadcrumb.js
CHANGED
|
@@ -52,6 +52,7 @@ function getBreadcrumbItemsFromPath(tree, path, options) {
|
|
|
52
52
|
return items;
|
|
53
53
|
}
|
|
54
54
|
function searchPath(nodes, url) {
|
|
55
|
+
if (url.endsWith("/")) url = url.slice(0, -1);
|
|
55
56
|
let separator;
|
|
56
57
|
for (const node of nodes) {
|
|
57
58
|
if (node.type === "separator") separator = node;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
flattenNode,
|
|
3
|
-
remarkHeading
|
|
4
|
-
} from "../chunk-4MNUWZIW.js";
|
|
5
1
|
import {
|
|
6
2
|
resolvePath,
|
|
7
3
|
slash
|
|
8
4
|
} from "../chunk-SHGL6VBO.js";
|
|
5
|
+
import {
|
|
6
|
+
flattenNode,
|
|
7
|
+
remarkHeading
|
|
8
|
+
} from "../chunk-4MNUWZIW.js";
|
|
9
9
|
import {
|
|
10
10
|
createStyleTransformer,
|
|
11
11
|
defaultThemes
|
package/dist/search/server.js
CHANGED
|
@@ -209,16 +209,8 @@ var STEMMERS = {
|
|
|
209
209
|
|
|
210
210
|
// src/search/orama/create-i18n.ts
|
|
211
211
|
async function getTokenizer(locale) {
|
|
212
|
-
const mandarin = ["cn", "zh"];
|
|
213
|
-
const language = Object.keys(STEMMERS).find((lang) => STEMMERS[lang] === locale) ?? locale;
|
|
214
|
-
if (mandarin.some((code) => locale === code || locale.startsWith(`${code}-`))) {
|
|
215
|
-
const { createTokenizer } = await import("@orama/tokenizers/mandarin");
|
|
216
|
-
return {
|
|
217
|
-
tokenizer: await createTokenizer()
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
212
|
return {
|
|
221
|
-
language
|
|
213
|
+
language: Object.keys(STEMMERS).find((lang) => STEMMERS[lang] === locale) ?? locale
|
|
222
214
|
};
|
|
223
215
|
}
|
|
224
216
|
async function initSimple(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "14.7.
|
|
3
|
+
"version": "14.7.3",
|
|
4
4
|
"description": "The library for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@orama/orama": "^2.1.1",
|
|
82
82
|
"@shikijs/rehype": "^1.26.1",
|
|
83
83
|
"github-slugger": "^2.0.0",
|
|
84
|
-
"hast-util-to-estree": "^3.1.
|
|
84
|
+
"hast-util-to-estree": "^3.1.1",
|
|
85
85
|
"hast-util-to-jsx-runtime": "^2.3.2",
|
|
86
86
|
"image-size": "^1.2.0",
|
|
87
87
|
"negotiator": "^1.0.0",
|
|
@@ -102,16 +102,16 @@
|
|
|
102
102
|
"@types/mdast": "^4.0.3",
|
|
103
103
|
"@types/negotiator": "^0.6.3",
|
|
104
104
|
"@types/node": "22.10.5",
|
|
105
|
-
"@types/react": "^19.0.
|
|
105
|
+
"@types/react": "^19.0.4",
|
|
106
106
|
"@types/react-dom": "^19.0.2",
|
|
107
107
|
"algoliasearch": "4.24.0",
|
|
108
108
|
"mdast-util-mdx-jsx": "^3.1.3",
|
|
109
109
|
"mdast-util-mdxjs-esm": "^2.0.1",
|
|
110
|
-
"next": "^15.1.
|
|
110
|
+
"next": "^15.1.4",
|
|
111
111
|
"remark-mdx": "^3.1.0",
|
|
112
112
|
"remark-rehype": "^11.1.1",
|
|
113
113
|
"shiki-transformers": "^1.0.1",
|
|
114
|
-
"typescript": "^5.7.
|
|
114
|
+
"typescript": "^5.7.3",
|
|
115
115
|
"unified": "^11.0.5",
|
|
116
116
|
"vfile": "^6.0.3",
|
|
117
117
|
"eslint-config-custom": "0.0.0",
|