@linyjs/plugin-docs 0.0.15 → 0.0.17

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 CHANGED
@@ -74,6 +74,9 @@ docs/
74
74
  │ ├── dependency-injection.md # 依赖注入机制
75
75
  │ ├── shared-module-interface.md # shared-module-interface 类型包
76
76
  │ ├── client-module.md # 客户端模块
77
+ │ ├── client-routes.md # 前端页面路由
78
+ │ ├── client-hooks.md # 公共 Hooks 使用
79
+ │ ├── state-management.md # 前端状态管理
77
80
  │ ├── ui-slots.md # UI扩展插槽
78
81
  │ ├── permissions.md # 权限管理
79
82
  │ ├── data-persistence.md # 数据持久化
@@ -130,6 +133,7 @@ linyjs 提供了以下核心模块,插件可以通过依赖注入方式调用
130
133
 
131
134
  - 📖 [依赖注入机制](./docs/guides/dependency-injection.md) — linyjs DI 机制完整说明
132
135
  - 📦 [shared-module-interface](./docs/guides/shared-module-interface.md) — 类型定义包使用说明
136
+ - 📊 [前端状态管理](./docs/guides/state-management.md) — Jotai 全局状态管理
133
137
  - 💾 [数据持久化](./docs/guides/data-persistence.md) - 使用 @linyjs/mdb
134
138
  - 🔐 [用户认证](./docs/guides/authentication.md) - 使用 @linyjs/auth
135
139
  - 🛡️ [权限管理](./docs/guides/permissions.md) - 使用 @linyjs/permission
@@ -436,6 +436,9 @@ interface IPermissionService {
436
436
  - 📦 [shared-module-interface 指南](../guides/shared-module-interface.md) — 类型定义包
437
437
  - 📖 [服务端模块开发](../guides/server-module.md)
438
438
  - 💻 [客户端模块开发](../guides/client-module.md)
439
+ - 🛤️ [前端页面路由](../guides/client-routes.md)
440
+ - 🪝 [公共 Hooks 使用](../guides/client-hooks.md)
441
+ - 📊 [前端状态管理](../guides/state-management.md)
439
442
  - 🎨 [UI 扩展插槽](../guides/ui-slots.md)
440
443
  - 💾 [基础模块使用指南](../README.md#-核心模块)
441
444
 
package/docs/faq.md CHANGED
@@ -161,13 +161,16 @@ npx tsx src/demo/dev-server-with-pkg.tsx
161
161
  2. 宿主应用提供了 React(通过 Import Map)
162
162
  3. 所有插件使用同一个 React 版本
163
163
 
164
+ 同理,Jotai 也必须由宿主提供,否则不同插件的 atom 无法共享:
165
+
164
166
  ```html
165
167
  <!-- 宿主应用的 HTML -->
166
168
  <script type="importmap">
167
169
  {
168
170
  "imports": {
169
171
  "react": "/vendor/react.production.min.js",
170
- "react-dom": "/vendor/react-dom.production.min.js"
172
+ "react-dom": "/vendor/react-dom.production.min.js",
173
+ "jotai": "/vendor/jotai.js"
171
174
  }
172
175
  }
173
176
  </script>