@republicroad/seal-appshell 1.1.0 → 1.3.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 CHANGED
@@ -1,14 +1,14 @@
1
- # @republicroad/jdm-appshell
1
+ # @republicroad/seal-appshell
2
2
 
3
- `@republicroad/jdm-editor`(内核)的参考消费者层:自定义节点托管、UI 槽位
3
+ `@republicroad/seal-editor`(内核)的参考消费者层:自定义节点托管、UI 槽位
4
4
  出现与换肤、持久化契约与认证适配。
5
5
 
6
6
  ## 定位
7
7
 
8
8
  ```
9
9
  宿主应用 (apps/*)
10
- ├── @republicroad/jdm-appshell → 观点性 shell Provider / 自定义节点 / UI kit / 持久化
11
- └── @republicroad/jdm-editor → 编辑器内核(peer)
10
+ ├── @republicroad/seal-appshell → 观点性 shell Provider / 自定义节点 / UI kit / 持久化
11
+ └── @republicroad/seal-editor → 编辑器内核(peer)
12
12
  └── react >= 18 (peer)
13
13
  ```
14
14
 
@@ -26,7 +26,7 @@
26
26
  | **Skin 皮肤系统** | `skin/`、`context/theme.provider` | `applyNodeOverrides` 按 kind 覆盖 renderTab/renderNode |
27
27
  | **持久化契约** | `shell/persistence.ts`、`shell/graphs-http-adapter.ts` | `GraphPersistenceAdapter`:宿主实现,乐观锁 + 404 语义 + 版本历史 |
28
28
 
29
- 在线文档:https://republicroad.github.io/jdm-editor/docs/
29
+ 在线文档:https://republicroad.github.io/seal-editor/docs/
30
30
 
31
31
  完整说明见仓库文档 [`docs/appshell.md`](../../docs/appshell.md)(在线站点
32
32
  Docs 区同文)。
@@ -34,8 +34,8 @@ Docs 区同文)。
34
34
  ## 宿主接线
35
35
 
36
36
  ```tsx
37
- import { DecisionGraph } from '@republicroad/jdm-editor';
38
- import { useCustomNodes } from '@republicroad/jdm-appshell';
37
+ import { DecisionGraph } from '@republicroad/seal-editor';
38
+ import { useCustomNodes } from '@republicroad/seal-appshell';
39
39
 
40
40
  // 六个自定义节点开箱即用;schema 拉取失败时自动回退内置定义
41
41
  const { customNodes, ready } = useCustomNodes();
@@ -48,22 +48,22 @@ const { customNodes, ready } = useCustomNodes();
48
48
 
49
49
  - **monorepo 内部**:源码直连——`main`/`types` 直指 `src/index.ts`,
50
50
  vite/bun 直接吃源码;路径别名见根 `tsconfig.json`
51
- (`@republicroad/jdm-appshell` / `@republicroad/jdm-appshell/*`)。
51
+ (`@republicroad/seal-appshell` / `@republicroad/seal-appshell/*`)。
52
52
  - **外部(npm)**:`publishConfig` 于发布时切换到 `dist/`
53
53
  (`bun run build` 产出 `index.js` + `index.d.ts` + `style.css`)。
54
54
 
55
55
  ## 开发
56
56
 
57
57
  ```bash
58
- pnpm --filter @republicroad/jdm-appshell typecheck # tsc --noEmit
59
- pnpm --filter @republicroad/jdm-appshell test # vitest(8 套件 / 67 用例)
60
- pnpm --filter @republicroad/jdm-appshell build # dist + style.css
61
- pnpm --filter @republicroad/jdm-appshell test:npm-smoke
58
+ pnpm --filter @republicroad/seal-appshell typecheck # tsc --noEmit
59
+ pnpm --filter @republicroad/seal-appshell test # vitest(8 套件 / 67 用例)
60
+ pnpm --filter @republicroad/seal-appshell build # dist + style.css
61
+ pnpm --filter @republicroad/seal-appshell test:npm-smoke
62
62
  ```
63
63
 
64
64
  ## 运行要求
65
65
 
66
- - React >= 18;`@republicroad/jdm-editor` >= 0.3;monaco-editor 需显式安装
66
+ - React >= 18;`@republicroad/seal-editor` >= 0.3;monaco-editor 需显式安装
67
67
  - Tailwind v4 + shadcn 语义 token(`--background`/`--foreground`/... 参考
68
68
  `src/main.css`);内核侧 `--grl-*` 变量由 `JdmConfigProvider` 自动注入
69
69