bstp-agent-widget 0.2.59 → 0.2.60
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 +1 -1
- package/src/lib/index.d.ts +13 -0
package/package.json
CHANGED
package/src/lib/index.d.ts
CHANGED
|
@@ -40,7 +40,16 @@ 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;
|
|
48
|
+
};
|
|
49
|
+
|
|
43
50
|
export type AgentChatWidgetUiOptions = {
|
|
51
|
+
/** Display mode: 'drawer' (overlay) or 'panel' (inline) - defaults to 'drawer' */
|
|
52
|
+
displayMode?: AgentChatDisplayMode;
|
|
44
53
|
zIndex?: number;
|
|
45
54
|
withinPortal?: boolean;
|
|
46
55
|
withOverlay?: boolean;
|
|
@@ -55,6 +64,10 @@ export type AgentChatWidgetUiOptions = {
|
|
|
55
64
|
drawerHeaderHeight?: number;
|
|
56
65
|
accentColor?: string;
|
|
57
66
|
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;
|
|
58
71
|
};
|
|
59
72
|
|
|
60
73
|
export type AgentChatWidgetProps = {
|