bstp-agent-widget 0.2.61 → 0.2.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bstp-agent-widget",
3
- "version": "0.2.61",
3
+ "version": "0.2.63",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/agent-widget.js",
@@ -40,34 +40,33 @@ export type AgentChatRuntimeGetter = {
40
40
 
41
41
  export type AgentChatRuntime = AgentChatRuntimeValue | AgentChatRuntimeGetter;
42
42
 
43
- export type AgentChatDisplayMode = 'drawer' | 'panel';
44
-
45
- export type AgentChatWidgetFabPosition = {
46
- bottom?: number;
47
- right?: number;
43
+ /** Display mode enum */
44
+ export const AgentChatDisplayMode: {
45
+ readonly Panel: 'panel';
46
+ readonly Fab: 'fab';
48
47
  };
49
48
 
49
+ export type AgentChatDisplayMode = (typeof AgentChatDisplayMode)[keyof typeof AgentChatDisplayMode];
50
+
50
51
  export type AgentChatWidgetUiOptions = {
51
- /** Display mode: 'drawer' (overlay) or 'panel' (inline) - defaults to 'drawer' */
52
+ /** Display mode: 'panel' (always visible) or 'fab' (toggle with FAB button) - defaults to 'fab' */
52
53
  displayMode?: AgentChatDisplayMode;
53
- zIndex?: number;
54
- withinPortal?: boolean;
55
- withOverlay?: boolean;
54
+ /** Panel width in px */
55
+ panelWidth?: number;
56
+ /** Panel height in px or CSS value */
57
+ panelHeight?: number | string;
58
+ /** Panel header height in px */
59
+ panelHeaderHeight?: number;
60
+ /** Text shown in panel header title */
61
+ panelTitle?: string;
62
+ /** Accent color used by widget surfaces */
63
+ accentColor?: string;
64
+ /** FAB button bottom offset in px */
56
65
  fabBottomOffset?: number;
66
+ /** FAB button right offset in px */
57
67
  fabRightOffset?: number;
58
- drawerWidth?: number;
59
- topOffset?: number;
60
- drawerRightOffset?: number;
61
- drawerBorderRadius?: number;
62
- drawerShadow?: boolean;
63
- drawerTitle?: string;
64
- drawerHeaderHeight?: number;
65
- accentColor?: string;
68
+ /** FAB button label text */
66
69
  fabButtonLabel?: string;
67
- /** Panel width in px (only for panel mode) */
68
- panelWidth?: number;
69
- /** Panel height in px or CSS value (only for panel mode) */
70
- panelHeight?: number | string;
71
70
  };
72
71
 
73
72
  export type AgentChatWidgetProps = {