@xapp/stentor-chat-widget 1.78.1 → 1.80.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 +29 -0
- package/lib/WidgetTheme.d.ts +7 -0
- package/package.json +6 -6
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -82,6 +82,10 @@ export interface ServerConfig {
|
|
|
82
82
|
* Timeout in milliseconds to wait for a response from the serverUrl, defaults to 15,000.
|
|
83
83
|
*/
|
|
84
84
|
readonly timeout?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Optional nonce used to trigger reconnection when the chat is reset
|
|
87
|
+
*/
|
|
88
|
+
readonly nonce?: string;
|
|
85
89
|
}
|
|
86
90
|
/**
|
|
87
91
|
* Environment settings for the Widget
|
|
@@ -194,6 +198,13 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
194
198
|
* Optional set of hooks to register with the widget to receive events.
|
|
195
199
|
*/
|
|
196
200
|
readonly hooks?: WidgetHooks;
|
|
201
|
+
/**
|
|
202
|
+
* Enable error overlay for debugging. Useful for React Native where console access is limited.
|
|
203
|
+
* When enabled, errors will be displayed in a floating overlay within the widget.
|
|
204
|
+
* Can be overridden by localStorage setting 'xaErrorOverlay' = 'enabled'/'disabled'.
|
|
205
|
+
* In React Native, defaults to true in development mode (__DEV__).
|
|
206
|
+
*/
|
|
207
|
+
readonly enableErrorOverlay?: boolean;
|
|
197
208
|
}
|
|
198
209
|
export interface WidgetAutoOpenOnPattern {
|
|
199
210
|
readonly patterns?: string[];
|
|
@@ -335,7 +346,25 @@ export interface WidgetTypingStatusConfig {
|
|
|
335
346
|
readonly textTypingStatusEnabled?: boolean;
|
|
336
347
|
}
|
|
337
348
|
export interface WidgetSendButtonConfig {
|
|
349
|
+
/**
|
|
350
|
+
* URL to the send button icon (normal/default state).
|
|
351
|
+
* This icon is shown when the button is enabled and not being hovered.
|
|
352
|
+
*/
|
|
338
353
|
readonly icon?: string;
|
|
354
|
+
/**
|
|
355
|
+
* URL to the send button icon shown on hover.
|
|
356
|
+
* If not provided, falls back to the default icon.
|
|
357
|
+
*/
|
|
358
|
+
readonly iconHover?: string;
|
|
359
|
+
/**
|
|
360
|
+
* URL to the send button icon shown when the button is disabled.
|
|
361
|
+
* The button is disabled when the input field is empty.
|
|
362
|
+
* If not provided, falls back to the default icon with reduced opacity.
|
|
363
|
+
*/
|
|
364
|
+
readonly iconDisabled?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Tab index for keyboard navigation accessibility.
|
|
367
|
+
*/
|
|
339
368
|
readonly tabIndex?: string;
|
|
340
369
|
}
|
|
341
370
|
export interface WidgetChatButtonConfig {
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ export interface WidgetMessagesTheme {
|
|
|
103
103
|
readonly others?: WidgetMessageTheme;
|
|
104
104
|
readonly padding?: WidgetMarginsTheme;
|
|
105
105
|
readonly maxWidth?: string;
|
|
106
|
+
readonly avatarPosition?: string;
|
|
106
107
|
}
|
|
107
108
|
export interface WidgetHeaderTheme {
|
|
108
109
|
readonly background?: WidgetBackgroundTheme;
|
|
@@ -121,10 +122,16 @@ export interface WidgetFooterTheme {
|
|
|
121
122
|
readonly branding?: WidgetBrandingTheme;
|
|
122
123
|
}
|
|
123
124
|
export interface WidgetButtonTheme {
|
|
125
|
+
/** Button text color */
|
|
124
126
|
readonly color?: string;
|
|
127
|
+
/** Button width */
|
|
125
128
|
readonly width?: string;
|
|
129
|
+
/** Button background color in normal state */
|
|
126
130
|
readonly background?: string;
|
|
131
|
+
/** Button background color on hover */
|
|
127
132
|
readonly hoverBackground?: string;
|
|
133
|
+
/** Button background color when disabled */
|
|
134
|
+
readonly disabledBackground?: string;
|
|
128
135
|
}
|
|
129
136
|
export interface WidgetTextTheme {
|
|
130
137
|
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.80.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.25",
|
|
27
27
|
"ts-node": "10.9.2",
|
|
28
|
-
"typescript": "5.
|
|
28
|
+
"typescript": "5.9.3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.
|
|
32
|
-
"stentor-guards": "1.
|
|
31
|
+
"stentor-constants": "1.66.25",
|
|
32
|
+
"stentor-guards": "1.66.25"
|
|
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": "6f4f6ac37ee15ed4d1a0d4636ce45883ec956160"
|
|
42
42
|
}
|