@oscloudlab/vgen-agent-assistant 0.0.19 → 0.0.21

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.
Binary file
Binary file
@@ -25,6 +25,8 @@ export interface VgenAgentProps {
25
25
  * - inline:左侧固定面板,参与宿主布局流、在宿主布局左侧占据固定宽度的一列并与卡片同高(内容区相应缩窄)
26
26
  */
27
27
  dockLayout?: 'float' | 'inline';
28
+ /** dock 形态切换回调(由 AI 学伴内右上角切换按钮触发,宿主据此更新 dockLayout) */
29
+ onDockLayoutChange?: (layout: 'float' | 'inline') => void;
28
30
  /** inline 固定面板展开态列宽(number 时按 px),缺省 320 */
29
31
  dockPanelWidth?: number | string;
30
32
  /** 外部 ref 转调(setQuotedText/sendMsg)的默认目标形态,弹窗保持旧行为不受影响 */
@@ -340,6 +342,8 @@ export interface DockMessage {
340
342
  export interface BottomChatDockProps {
341
343
  /** 卡片状态 → 收起态把手提示词(dockHint 三态文案),缺省 'fresh' */
342
344
  state?: 'fresh' | 'adjusted' | 'expanded';
345
+ /** 形态切换回调(面板/浮窗内 Segmented 触发,参数为目标形态,VgenAgent 直绑 onDockLayoutChange) */
346
+ onSwitchLayout?: (layout: 'float' | 'inline') => void;
343
347
  /**
344
348
  * dock 消息列表(MessageProps[] 头插序,宿主用 toDockChatMessages 从 controller.messages
345
349
  * 纯过滤派生);渲染与主聊天统一,全部由 MessageContent 组件承载