@republicroad/seal-appshell 1.6.0 → 1.8.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/dist/components/shell-header.d.ts +3 -0
- package/dist/components/skinned-decision-graph.d.ts +3 -0
- package/dist/index.js +4937 -4923
- package/dist/lib/custom-node-plans.d.ts +2 -0
- package/dist/lib/custom-node-schema-source.d.ts +11 -1
- package/dist/skin/types.d.ts +8 -6
- package/package.json +2 -2
|
@@ -11,6 +11,8 @@ export type CustomNodePlan = {
|
|
|
11
11
|
shortDescription?: string;
|
|
12
12
|
/** 命名空间工具集:存在时节点挂 schema 感知编辑面板(函数下拉 + 位置参数) */
|
|
13
13
|
tools?: CustomFunctionTool[];
|
|
14
|
+
/** L6(ADR-008):面板搜索附加关键词——容器内部工具的 name/title/描述首行,命中时高亮词条 */
|
|
15
|
+
searchKeywords?: string[];
|
|
14
16
|
seed: (params: {
|
|
15
17
|
index: number;
|
|
16
18
|
}) => {
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { CustomNodeNamespace } from './custom-node-types';
|
|
2
2
|
export type CustomNodeSchemaSource = string | (() => Promise<CustomNodeNamespace[]> | CustomNodeNamespace[]);
|
|
3
3
|
export declare const DEFAULT_SCHEMA_URL = "/api/custom-nodes/schema";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* 带版本目录信封(文件协议,见 docs/adr/008 补充):静态 host-functions.json 的
|
|
6
|
+
* 推荐形态——version/generatedAt 供消费方提示目录过期;namespaces 为条目本体。
|
|
7
|
+
* 裸数组(CustomNodeNamespace[])保持兼容。
|
|
8
|
+
*/
|
|
9
|
+
export interface CustomNodeSchemaEnvelope {
|
|
10
|
+
version: number | string;
|
|
11
|
+
generatedAt?: string;
|
|
12
|
+
namespaces: CustomNodeNamespace[];
|
|
13
|
+
}
|
|
14
|
+
/** 校验并收窄 schema 载荷;支持信封(优先)与裸数组两种形态,非法结构抛错由调用方决定回退策略 */
|
|
5
15
|
export declare function parseCustomNodeSchemaPayload(payload: unknown): CustomNodeNamespace[];
|
|
6
16
|
export declare function fetchCustomNodeSchema(source?: CustomNodeSchemaSource): Promise<CustomNodeNamespace[]>;
|
package/dist/skin/types.d.ts
CHANGED
|
@@ -41,12 +41,14 @@ export type SkinPanelsLayout = {
|
|
|
41
41
|
};
|
|
42
42
|
/** P3 · 头部槽位(ShellHeader 壳层实现;每侧一个渲染函数,宿主裁决 §10-3) */
|
|
43
43
|
export type SkinHeaderLayout = {
|
|
44
|
-
slots?:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
slots?: SkinHeaderSlots;
|
|
45
|
+
};
|
|
46
|
+
/** 头部槽位(每侧一个渲染函数) */
|
|
47
|
+
export type SkinHeaderSlots = {
|
|
48
|
+
/** 标题区左侧(标题/环境标识) */
|
|
49
|
+
left?: SkinSlotRender;
|
|
50
|
+
/** 标题区右侧(状态徽标/操作) */
|
|
51
|
+
right?: SkinSlotRender;
|
|
50
52
|
};
|
|
51
53
|
/** 布局槽位(S005 三期:toolbar P1 / panels P2 / header P3) */
|
|
52
54
|
export type SkinLayout = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@republicroad/seal-appshell",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Application shell for @republicroad/seal-editor — custom node hosting, UI slot overrides and skinning",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@base-ui/react": "^1.8.0",
|
|
36
|
-
"@republicroad/seal-editor": "^1.
|
|
36
|
+
"@republicroad/seal-editor": "^1.8.0",
|
|
37
37
|
"@tanstack/react-virtual": "^3.14.10",
|
|
38
38
|
"axios": "^1.13.5",
|
|
39
39
|
"better-auth": "^1.6.25",
|