@republicroad/seal-appshell 1.6.0 → 1.7.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.
@@ -1,8 +1,11 @@
1
1
  import { DecisionGraphRef, DecisionGraphType } from '@republicroad/seal-editor';
2
2
  import { default as React } from 'react';
3
+ import { SkinHeaderSlots } from '../skin/types';
3
4
  export type ShellHeaderProps = {
4
5
  /** 注入槽位的图文档(SkinnedDecisionGraph 自动传入;独立使用时由宿主提供) */
5
6
  graph?: DecisionGraphType;
7
+ /** ADR-008 L1:宿主头部槽位注入——与 activeSkin 槽位浅合并,宿主优先 */
8
+ slots?: SkinHeaderSlots;
6
9
  disabled?: boolean;
7
10
  /**
8
11
  * 决策图引用:ref 对象(`useRef` 产物,内部自动解包为当前句柄)或句柄本身;
@@ -1,6 +1,7 @@
1
1
  import { DecisionGraphProps, DecisionGraphRef } from '@republicroad/seal-editor';
2
2
  import { default as React } from 'react';
3
3
  import { SimulateHandler } from '../shell/types';
4
+ import { SkinHeaderSlots } from '../skin/types';
4
5
  export type SkinnedDecisionGraphProps = DecisionGraphProps & {
5
6
  /**
6
7
  * 传入后自动注册左侧栏 simulator 面板(kernel GraphSimulator:输入 JSON →
@@ -8,6 +9,8 @@ export type SkinnedDecisionGraphProps = DecisionGraphProps & {
8
9
  * 不传则与直接渲染 `<DecisionGraph>` 行为完全一致。
9
10
  */
10
11
  simulateHandler?: SimulateHandler;
12
+ /** ADR-008 L1:宿主头部槽位注入——与 activeSkin 槽位浅合并(宿主优先) */
13
+ headerSlots?: SkinHeaderSlots;
11
14
  };
12
15
  /**
13
16
  * 皮肤感知的 DecisionGraph(S005 P1):读取 activeSkin.layout 把工具栏槽位