@xapp/stentor-chat-widget 1.78.0 → 1.79.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.
- package/lib/WidgetEnv.d.ts +35 -1
- package/lib/WidgetTheme.d.ts +6 -0
- package/package.json +5 -5
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -21,10 +21,19 @@ export interface CtaConfig {
|
|
|
21
21
|
* Animation to perform on the button after the delay
|
|
22
22
|
*/
|
|
23
23
|
readonly animation?: "wiggle" | "bounce" | "pulse";
|
|
24
|
+
/**
|
|
25
|
+
* The delay, in milliseconds, to wait until the animation starts.
|
|
26
|
+
* If not provided, falls back to the delay property for backwards compatibility.
|
|
27
|
+
*/
|
|
28
|
+
readonly animationDelay?: number;
|
|
24
29
|
/**
|
|
25
30
|
* How long to keep the animation going, in milliseconds. If an animation exists
|
|
26
31
|
*/
|
|
27
32
|
readonly animationTimeout?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the CTA bubble can be dismissed with an X button
|
|
35
|
+
*/
|
|
36
|
+
readonly dismissible?: boolean;
|
|
28
37
|
}
|
|
29
38
|
export interface MobileCtaConfig extends CtaConfig {
|
|
30
39
|
/**
|
|
@@ -79,7 +88,7 @@ export interface ServerConfig {
|
|
|
79
88
|
*/
|
|
80
89
|
export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
81
90
|
/**
|
|
82
|
-
*
|
|
91
|
+
* Reference to a unique identifier for the specific chat channel
|
|
83
92
|
*/
|
|
84
93
|
readonly channelId?: string;
|
|
85
94
|
/**
|
|
@@ -185,6 +194,13 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
185
194
|
* Optional set of hooks to register with the widget to receive events.
|
|
186
195
|
*/
|
|
187
196
|
readonly hooks?: WidgetHooks;
|
|
197
|
+
/**
|
|
198
|
+
* Enable error overlay for debugging. Useful for React Native where console access is limited.
|
|
199
|
+
* When enabled, errors will be displayed in a floating overlay within the widget.
|
|
200
|
+
* Can be overridden by localStorage setting 'xaErrorOverlay' = 'enabled'/'disabled'.
|
|
201
|
+
* In React Native, defaults to true in development mode (__DEV__).
|
|
202
|
+
*/
|
|
203
|
+
readonly enableErrorOverlay?: boolean;
|
|
188
204
|
}
|
|
189
205
|
export interface WidgetAutoOpenOnPattern {
|
|
190
206
|
readonly patterns?: string[];
|
|
@@ -326,7 +342,25 @@ export interface WidgetTypingStatusConfig {
|
|
|
326
342
|
readonly textTypingStatusEnabled?: boolean;
|
|
327
343
|
}
|
|
328
344
|
export interface WidgetSendButtonConfig {
|
|
345
|
+
/**
|
|
346
|
+
* URL to the send button icon (normal/default state).
|
|
347
|
+
* This icon is shown when the button is enabled and not being hovered.
|
|
348
|
+
*/
|
|
329
349
|
readonly icon?: string;
|
|
350
|
+
/**
|
|
351
|
+
* URL to the send button icon shown on hover.
|
|
352
|
+
* If not provided, falls back to the default icon.
|
|
353
|
+
*/
|
|
354
|
+
readonly iconHover?: string;
|
|
355
|
+
/**
|
|
356
|
+
* URL to the send button icon shown when the button is disabled.
|
|
357
|
+
* The button is disabled when the input field is empty.
|
|
358
|
+
* If not provided, falls back to the default icon with reduced opacity.
|
|
359
|
+
*/
|
|
360
|
+
readonly iconDisabled?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Tab index for keyboard navigation accessibility.
|
|
363
|
+
*/
|
|
330
364
|
readonly tabIndex?: string;
|
|
331
365
|
}
|
|
332
366
|
export interface WidgetChatButtonConfig {
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -121,10 +121,16 @@ export interface WidgetFooterTheme {
|
|
|
121
121
|
readonly branding?: WidgetBrandingTheme;
|
|
122
122
|
}
|
|
123
123
|
export interface WidgetButtonTheme {
|
|
124
|
+
/** Button text color */
|
|
124
125
|
readonly color?: string;
|
|
126
|
+
/** Button width */
|
|
125
127
|
readonly width?: string;
|
|
128
|
+
/** Button background color in normal state */
|
|
126
129
|
readonly background?: string;
|
|
130
|
+
/** Button background color on hover */
|
|
127
131
|
readonly hoverBackground?: string;
|
|
132
|
+
/** Button background color when disabled */
|
|
133
|
+
readonly disabledBackground?: string;
|
|
128
134
|
}
|
|
129
135
|
export interface WidgetTextTheme {
|
|
130
136
|
readonly color?: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.79.0",
|
|
8
8
|
"description": "Chat Widget channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"mocha": "9.2.2",
|
|
24
24
|
"sinon": "13.0.2",
|
|
25
25
|
"sinon-chai": "3.7.0",
|
|
26
|
-
"stentor-models": "1.
|
|
26
|
+
"stentor-models": "1.66.0",
|
|
27
27
|
"ts-node": "10.9.2",
|
|
28
28
|
"typescript": "5.8.3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.
|
|
32
|
-
"stentor-guards": "1.
|
|
31
|
+
"stentor-constants": "1.66.0",
|
|
32
|
+
"stentor-guards": "1.66.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"stentor-models": "1.x"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"build": "tsc -d true -p .",
|
|
39
39
|
"clean": "rm -rf ./lib/*"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "daa7d64fcc7df54b9dfc3a9f763e790b144428d1"
|
|
42
42
|
}
|