fumadocs-core 15.6.7 → 15.6.9

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.
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare function WakuProvider({ children }: {
5
+ children: ReactNode;
6
+ }): react_jsx_runtime.JSX.Element;
7
+
8
+ export { WakuProvider };
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import {
3
+ FrameworkProvider
4
+ } from "../chunk-BBP7MIO4.js";
5
+ import "../chunk-JSBRDJBE.js";
6
+
7
+ // src/framework/waku.tsx
8
+ import { useMemo } from "react";
9
+ import { Link as WakuLink, useRouter } from "waku";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var framework = {
12
+ usePathname() {
13
+ const { path } = useRouter();
14
+ return path;
15
+ },
16
+ useParams() {
17
+ const { query } = useRouter();
18
+ return useMemo(() => {
19
+ const params = new URLSearchParams(query);
20
+ return Object.fromEntries(
21
+ Array.from(params.entries()).map(([key, value]) => [
22
+ key,
23
+ Array.isArray(value) ? value[0] : value
24
+ ])
25
+ );
26
+ }, [query]);
27
+ },
28
+ useRouter() {
29
+ const router = useRouter();
30
+ return useMemo(
31
+ () => ({
32
+ push(url) {
33
+ void router.push(url);
34
+ },
35
+ refresh() {
36
+ void router.push(router.path);
37
+ }
38
+ }),
39
+ [router]
40
+ );
41
+ },
42
+ Link({ href, prefetch: _prefetch, ...props }) {
43
+ return /* @__PURE__ */ jsx(WakuLink, { to: href, ...props, children: props.children });
44
+ }
45
+ };
46
+ function WakuProvider({ children }) {
47
+ return /* @__PURE__ */ jsx(FrameworkProvider, { ...framework, children });
48
+ }
49
+ export {
50
+ WakuProvider
51
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "15.6.7",
3
+ "version": "15.6.9",
4
4
  "description": "The library for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -87,8 +87,8 @@
87
87
  "dependencies": {
88
88
  "@formatjs/intl-localematcher": "^0.6.1",
89
89
  "@orama/orama": "^3.1.11",
90
- "@shikijs/rehype": "^3.8.1",
91
- "@shikijs/transformers": "^3.8.1",
90
+ "@shikijs/rehype": "^3.9.2",
91
+ "@shikijs/transformers": "^3.9.2",
92
92
  "github-slugger": "^2.0.0",
93
93
  "hast-util-to-estree": "^3.1.3",
94
94
  "hast-util-to-jsx-runtime": "^2.3.6",
@@ -100,31 +100,32 @@
100
100
  "remark-gfm": "^4.0.1",
101
101
  "remark-rehype": "^11.1.2",
102
102
  "scroll-into-view-if-needed": "^3.1.0",
103
- "shiki": "^3.8.1",
103
+ "shiki": "^3.9.2",
104
104
  "unist-util-visit": "^5.0.0"
105
105
  },
106
106
  "devDependencies": {
107
107
  "@mdx-js/mdx": "^3.1.0",
108
108
  "@mixedbread/sdk": "^0.19.0",
109
109
  "@oramacloud/client": "^2.1.4",
110
- "@tanstack/react-router": "^1.129.0",
110
+ "@tanstack/react-router": "^1.130.12",
111
111
  "@types/estree-jsx": "^1.0.5",
112
112
  "@types/hast": "^3.0.4",
113
113
  "@types/mdast": "^4.0.3",
114
114
  "@types/negotiator": "^0.6.4",
115
115
  "@types/node": "24.1.0",
116
- "@types/react": "^19.1.8",
117
- "@types/react-dom": "^19.1.6",
118
- "algoliasearch": "5.34.1",
116
+ "@types/react": "^19.1.9",
117
+ "@types/react-dom": "^19.1.7",
118
+ "algoliasearch": "5.35.0",
119
119
  "mdast-util-mdx-jsx": "^3.2.0",
120
120
  "mdast-util-mdxjs-esm": "^2.0.1",
121
- "next": "^15.4.4",
121
+ "next": "^15.4.5",
122
122
  "react-router": "^7.7.1",
123
123
  "remark-mdx": "^3.1.0",
124
124
  "remove-markdown": "^0.6.2",
125
- "typescript": "^5.8.3",
125
+ "typescript": "^5.9.2",
126
126
  "unified": "^11.0.5",
127
127
  "vfile": "^6.0.3",
128
+ "waku": "^0.23.7",
128
129
  "eslint-config-custom": "0.0.0",
129
130
  "tsconfig": "0.0.0"
130
131
  },
@@ -135,7 +136,8 @@
135
136
  "algoliasearch": "5.x.x",
136
137
  "next": "14.x.x || 15.x.x",
137
138
  "react": "18.x.x || 19.x.x",
138
- "react-dom": "18.x.x || 19.x.x"
139
+ "react-dom": "18.x.x || 19.x.x",
140
+ "react-router": "7.x.x"
139
141
  },
140
142
  "peerDependenciesMeta": {
141
143
  "@mixedbread/sdk": {
@@ -158,6 +160,9 @@
158
160
  },
159
161
  "react-dom": {
160
162
  "optional": true
163
+ },
164
+ "react-router": {
165
+ "optional": true
161
166
  }
162
167
  },
163
168
  "publishConfig": {