@xapp/stentor-chat-widget 1.78.1 → 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 +25 -0
- package/lib/WidgetTheme.d.ts +6 -0
- package/package.json +5 -5
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -194,6 +194,13 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
194
194
|
* Optional set of hooks to register with the widget to receive events.
|
|
195
195
|
*/
|
|
196
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;
|
|
197
204
|
}
|
|
198
205
|
export interface WidgetAutoOpenOnPattern {
|
|
199
206
|
readonly patterns?: string[];
|
|
@@ -335,7 +342,25 @@ export interface WidgetTypingStatusConfig {
|
|
|
335
342
|
readonly textTypingStatusEnabled?: boolean;
|
|
336
343
|
}
|
|
337
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
|
+
*/
|
|
338
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
|
+
*/
|
|
339
364
|
readonly tabIndex?: string;
|
|
340
365
|
}
|
|
341
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
|
}
|