react-toolkits 2.30.3 → 2.31.0
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/CHANGELOG.md +11 -0
- package/README.md +3 -3
- package/lib/index.css +1 -1025
- package/lib/index.d.ts +206 -190
- package/lib/index.js +3 -12799
- package/lib/index.js.map +1 -1
- package/locale/context.js +2 -1473
- package/locale/hooks.js +13 -54852
- package/locale/index.js +13 -54852
- package/package.json +6 -5
- package/lib/index.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# react-toolkits
|
|
2
2
|
|
|
3
|
+
## 2.31.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 21eb0d4: refactor: update routing to use react-router and enhance package dependencies
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 4e2191f: refactor: update routing and game interface definitions
|
|
12
|
+
- 94c57cb: feat: integrate useKyClient hook for improved API client management
|
|
13
|
+
|
|
3
14
|
## 2.30.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ pnpm add react-toolkits
|
|
|
21
21
|
|
|
22
22
|
- react、react-dom:^19
|
|
23
23
|
- antd:^6
|
|
24
|
-
- react-router
|
|
24
|
+
- react-router:^7
|
|
25
25
|
- @tanstack/react-query:^5
|
|
26
26
|
|
|
27
27
|
样式:
|
|
@@ -36,7 +36,7 @@ import 'react-toolkits/style.css'
|
|
|
36
36
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
37
37
|
import 'react-toolkits/style.css'
|
|
38
38
|
import { createRoot } from 'react-dom/client'
|
|
39
|
-
import { RouterProvider } from 'react-router
|
|
39
|
+
import { RouterProvider } from 'react-router'
|
|
40
40
|
import { ToolkitsProvider } from 'react-toolkits/components'
|
|
41
41
|
import { PermissionMode } from 'react-toolkits/constants'
|
|
42
42
|
|
|
@@ -110,7 +110,7 @@ import type { NavMenuItem } from 'react-toolkits/types'
|
|
|
110
110
|
### 权限与菜单集成示例
|
|
111
111
|
|
|
112
112
|
```tsx
|
|
113
|
-
import { createBrowserRouter } from 'react-router
|
|
113
|
+
import { createBrowserRouter } from 'react-router'
|
|
114
114
|
import { Layout } from 'react-toolkits/components'
|
|
115
115
|
import { permissionRoutes, menuRoutes, SignIn } from 'react-toolkits/pages'
|
|
116
116
|
|