@xapp/stentor-chat-widget 1.36.6 → 1.37.2
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 +8 -0
- package/lib/WidgetTheme.d.ts +2 -0
- package/package.json +5 -5
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -62,6 +62,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
62
62
|
* through on all requests to the assistant backend.
|
|
63
63
|
*/
|
|
64
64
|
readonly accessToken?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Optional, open ended, attributes to append to each request.
|
|
67
|
+
*/
|
|
68
|
+
readonly attributes?: Record<string, string>;
|
|
65
69
|
/**
|
|
66
70
|
* Optional, URL that will be loaded which contains custom middleware components.
|
|
67
71
|
*/
|
|
@@ -107,6 +111,10 @@ export interface WidgetUrlPolicy {
|
|
|
107
111
|
}
|
|
108
112
|
export interface WidgetHeaderConfig {
|
|
109
113
|
readonly status?: WidgetHeaderStatusConfig;
|
|
114
|
+
readonly actions?: {
|
|
115
|
+
minimize: boolean;
|
|
116
|
+
cancel: boolean;
|
|
117
|
+
};
|
|
110
118
|
}
|
|
111
119
|
export interface WidgetHeaderStatusConfig {
|
|
112
120
|
readonly online?: string;
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export interface WidgetTheme {
|
|
|
24
24
|
readonly menuButton?: WidgetButtonTheme;
|
|
25
25
|
/** Widget minimizeButton styling */
|
|
26
26
|
readonly minimizeButton?: WidgetButtonTheme;
|
|
27
|
+
/** Widget cancelButton styling */
|
|
28
|
+
readonly cancelButton?: WidgetButtonTheme;
|
|
27
29
|
/** Widget input styling */
|
|
28
30
|
readonly input?: WidgetInputTheme;
|
|
29
31
|
/** Widget carousel styling */
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.37.2",
|
|
8
8
|
"description": "Chat Widget channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"mocha": "9.1.3",
|
|
25
25
|
"sinon": "12.0.1",
|
|
26
26
|
"sinon-chai": "3.7.0",
|
|
27
|
-
"stentor-models": "1.
|
|
27
|
+
"stentor-models": "1.54.3",
|
|
28
28
|
"ts-node": "10.4.0",
|
|
29
29
|
"typescript": "4.5.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"stentor-constants": "1.
|
|
33
|
-
"stentor-guards": "1.
|
|
32
|
+
"stentor-constants": "1.54.3",
|
|
33
|
+
"stentor-guards": "1.54.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"stentor-models": "1.x"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"build": "tsc -d true -p .",
|
|
40
40
|
"clean": "rm -rf ./lib/*"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4b1a7f9e86e0490e7a0bd32de020d85d8613968c"
|
|
43
43
|
}
|