bstp-agent-widget 0.2.121 → 0.2.122

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.
@@ -30,7 +30,9 @@ export interface AgentPanelProps {
30
30
  handlePointerDown: (e: React.PointerEvent<HTMLElement>) => void;
31
31
  style: React.CSSProperties;
32
32
  };
33
+ panelBorder?: string;
34
+ panelBorderRadius?: number | string;
33
35
  zIndex?: number;
34
36
  panelTopOffset?: number;
35
37
  }
36
- export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, zIndex, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
38
+ export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, panelBorder, panelBorderRadius, zIndex, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
@@ -30,7 +30,9 @@ export interface AgentPanelProps {
30
30
  handlePointerDown: (e: React.PointerEvent<HTMLElement>) => void;
31
31
  style: React.CSSProperties;
32
32
  };
33
+ panelBorder?: string;
34
+ panelBorderRadius?: number | string;
33
35
  zIndex?: number;
34
36
  panelTopOffset?: number;
35
37
  }
36
- export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, zIndex, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
38
+ export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, panelBorder, panelBorderRadius, zIndex, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
@@ -4,6 +4,9 @@ export declare function useAgentUiOptions(ui?: WidgetUiOptions): {
4
4
  panelHeight: string | number;
5
5
  panelHeaderHeight: number;
6
6
  panelTopOffset: number | undefined;
7
+ panelGap: string | number | undefined;
8
+ panelBorder: string | undefined;
9
+ panelBorderRadius: string | number | undefined;
7
10
  zIndex: number;
8
11
  fabPosition: {
9
12
  left: number;
@@ -4,6 +4,9 @@ export declare function useAgentUiOptions(ui?: WidgetUiOptions): {
4
4
  panelHeight: string | number;
5
5
  panelHeaderHeight: number;
6
6
  panelTopOffset: number | undefined;
7
+ panelGap: string | number | undefined;
8
+ panelBorder: string | undefined;
9
+ panelBorderRadius: string | number | undefined;
7
10
  zIndex: number;
8
11
  fabPosition: {
9
12
  left: number;
@@ -20,6 +20,14 @@ export interface WidgetUiOptions {
20
20
  zIndex?: number;
21
21
  /** Panel top offset in px (e.g. host app header height) */
22
22
  panelTopOffset?: number;
23
+ /** Gap between panel and viewport edge (px or css value) */
24
+ panelGap?: number | string;
25
+ /** Custom CSS border value for panel surface */
26
+ panelBorder?: string;
27
+ /** Custom border radius for panel surface (px or css value) */
28
+ panelBorderRadius?: number | string;
29
+ /** Whether host layout should reserve width while panel is open */
30
+ reserveLayoutSpace?: boolean;
23
31
  /** CSS selector for the host layout node that should reserve space for the widget */
24
32
  hostContainerSelector?: string;
25
33
  }
@@ -20,6 +20,14 @@ export interface WidgetUiOptions {
20
20
  zIndex?: number;
21
21
  /** Panel top offset in px (e.g. host app header height) */
22
22
  panelTopOffset?: number;
23
+ /** Gap between panel and viewport edge (px or css value) */
24
+ panelGap?: number | string;
25
+ /** Custom CSS border value for panel surface */
26
+ panelBorder?: string;
27
+ /** Custom border radius for panel surface (px or css value) */
28
+ panelBorderRadius?: number | string;
29
+ /** Whether host layout should reserve width while panel is open */
30
+ reserveLayoutSpace?: boolean;
23
31
  /** CSS selector for the host layout node that should reserve space for the widget */
24
32
  hostContainerSelector?: string;
25
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bstp-agent-widget",
3
- "version": "0.2.121",
3
+ "version": "0.2.122",
4
4
  "description": "Agent chat widget library built on the bstp widget starter infrastructure",
5
5
  "packageManager": "bun@1.3.13",
6
6
  "license": "MIT",