@pactor-app/router 1.50.0 → 1.51.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/README.md +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @pactor-app/router
|
|
2
2
|
|
|
3
|
-
[Pactor](https://github.com/
|
|
3
|
+
[Pactor](https://github.com/innospots/pactor) 的路由模块:菜单模型与 MenuRegistry、极简路径匹配(PathMatcher)、导航桥接(NavigationBridge / MemoryNavigation)、@pactor-app/runtime RouterAdapter 桥接,以及 React Router 动态路由绑定(`<DynamicDslRoute>`)。
|
|
4
4
|
|
|
5
5
|
菜单声明 `path` + `pageId`(不绑定 React 组件),Dynamic Router 把 URL 解析为 pageId 与路由上下文;页面资源加载(pageId → loadPage)由应用组合层串联,不在本包。
|
|
6
6
|
|
|
@@ -87,7 +87,7 @@ import { Route, Routes } from 'react-router-dom';
|
|
|
87
87
|
|
|
88
88
|
## 文档
|
|
89
89
|
|
|
90
|
-
完整文档见 <https://github.com/
|
|
90
|
+
完整文档见 <https://github.com/innospots/pactor/tree/main/docs>(`pnpm docs:dev` 本地启动文档站)。
|
|
91
91
|
|
|
92
92
|
## License
|
|
93
93
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/router",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.0",
|
|
4
4
|
"description": "Pactor router: menu registry, path matcher, navigation bridge and React Router dynamic route bindings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pactor",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/
|
|
15
|
+
"url": "git+https://github.com/innospots/pactor.git",
|
|
16
16
|
"directory": "packages/router"
|
|
17
17
|
},
|
|
18
|
-
"homepage": "https://github.com/
|
|
19
|
-
"bugs": "https://github.com/
|
|
18
|
+
"homepage": "https://github.com/innospots/pactor/tree/main/packages/router",
|
|
19
|
+
"bugs": "https://github.com/innospots/pactor/issues",
|
|
20
20
|
"type": "module",
|
|
21
21
|
"main": "./dist/index.cjs",
|
|
22
22
|
"module": "./dist/index.js",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@pactor-app/
|
|
58
|
-
"@pactor-app/
|
|
57
|
+
"@pactor-app/permission": "1.51.0",
|
|
58
|
+
"@pactor-app/core": "1.51.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react": ">=18",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react": "^19.2.8",
|
|
71
71
|
"react-dom": "^19.2.8",
|
|
72
72
|
"react-router-dom": "^7.18.2",
|
|
73
|
-
"@pactor-app/runtime": "1.
|
|
73
|
+
"@pactor-app/runtime": "1.51.0"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "tsup",
|