@xapp/stentor-chat-widget 1.43.1 → 1.46.1
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 +18 -0
- package/lib/WidgetTheme.d.ts +9 -0
- package/package.json +8 -8
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -78,6 +78,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
78
78
|
* The session will restart if the specified time has elapsed since the last message. Default value is 24h.
|
|
79
79
|
*/
|
|
80
80
|
readonly sessionExpiration?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Optional, for configuration typing status.
|
|
83
|
+
*/
|
|
84
|
+
readonly typingStatus?: WidgetTypingStatusConfig;
|
|
81
85
|
/**
|
|
82
86
|
* Theme for the widget
|
|
83
87
|
*/
|
|
@@ -125,6 +129,8 @@ export interface WidgetUrlPolicy {
|
|
|
125
129
|
}
|
|
126
130
|
export interface WidgetHeaderConfig {
|
|
127
131
|
readonly status?: WidgetHeaderStatusConfig;
|
|
132
|
+
readonly subtitle?: WidgetHeaderSubtitleConfig;
|
|
133
|
+
readonly alignTextCenter?: boolean;
|
|
128
134
|
readonly actions?: WidgetHeaderActionsConfig;
|
|
129
135
|
}
|
|
130
136
|
export interface WidgetHeaderStatusConfig {
|
|
@@ -134,11 +140,13 @@ export interface WidgetHeaderStatusConfig {
|
|
|
134
140
|
readonly connecting?: string;
|
|
135
141
|
}
|
|
136
142
|
export interface WidgetHeaderActionsConfig {
|
|
143
|
+
readonly refresh?: boolean;
|
|
137
144
|
readonly minimize?: boolean;
|
|
138
145
|
readonly cancel?: boolean;
|
|
139
146
|
}
|
|
140
147
|
export interface WidgetFooterConfig {
|
|
141
148
|
readonly branding?: WidgetBrandingConfig;
|
|
149
|
+
readonly sendButton?: WidgetSendButtonConfig;
|
|
142
150
|
}
|
|
143
151
|
export interface WidgetBrandingConfig {
|
|
144
152
|
readonly enabled?: boolean;
|
|
@@ -153,3 +161,13 @@ export interface WidgetInputConfig {
|
|
|
153
161
|
export interface WidgetMenuItemConfig {
|
|
154
162
|
readonly label: string;
|
|
155
163
|
}
|
|
164
|
+
export interface WidgetHeaderSubtitleConfig {
|
|
165
|
+
readonly enabled?: boolean;
|
|
166
|
+
readonly text?: string;
|
|
167
|
+
}
|
|
168
|
+
export interface WidgetTypingStatusConfig {
|
|
169
|
+
readonly textTypingStatusEnabled?: boolean;
|
|
170
|
+
}
|
|
171
|
+
export interface WidgetSendButtonConfig {
|
|
172
|
+
readonly icon?: string;
|
|
173
|
+
}
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -18,12 +18,16 @@ export interface WidgetTheme {
|
|
|
18
18
|
readonly footer?: WidgetFooterTheme;
|
|
19
19
|
/** Widget messages styling */
|
|
20
20
|
readonly messages?: WidgetMessagesTheme;
|
|
21
|
+
/** Widget textTypingStatus styling */
|
|
22
|
+
readonly textTypingStatus?: WidgetTextTypingStatusTheme;
|
|
21
23
|
/** Widget sendButton styling */
|
|
22
24
|
readonly sendButton?: WidgetButtonTheme;
|
|
23
25
|
/** Widget menu styling */
|
|
24
26
|
readonly menu?: WidgetMenuTheme;
|
|
25
27
|
/** Widget menuButton styling */
|
|
26
28
|
readonly menuButton?: WidgetButtonTheme;
|
|
29
|
+
/** Widget refreshButton styling */
|
|
30
|
+
readonly refreshButton?: WidgetButtonTheme;
|
|
27
31
|
/** Widget minimizeButton styling */
|
|
28
32
|
readonly minimizeButton?: WidgetButtonTheme;
|
|
29
33
|
/** Widget cancelButton styling */
|
|
@@ -86,6 +90,7 @@ export interface WidgetMessagesTheme {
|
|
|
86
90
|
export interface WidgetHeaderTheme {
|
|
87
91
|
readonly background?: WidgetBackgroundTheme;
|
|
88
92
|
readonly text?: WidgetTextTheme;
|
|
93
|
+
readonly subtitle?: WidgetTextTheme;
|
|
89
94
|
readonly border?: WidgetBorderTheme;
|
|
90
95
|
}
|
|
91
96
|
export interface WidgetContentTheme {
|
|
@@ -98,6 +103,7 @@ export interface WidgetFooterTheme {
|
|
|
98
103
|
}
|
|
99
104
|
export interface WidgetButtonTheme {
|
|
100
105
|
readonly color?: string;
|
|
106
|
+
readonly width?: string;
|
|
101
107
|
}
|
|
102
108
|
export interface WidgetTextTheme {
|
|
103
109
|
readonly color?: string;
|
|
@@ -126,3 +132,6 @@ export interface WidgetCarouselTheme {
|
|
|
126
132
|
export interface WidgetBrandingTheme {
|
|
127
133
|
readonly text?: WidgetTextTheme;
|
|
128
134
|
}
|
|
135
|
+
export interface WidgetTextTypingStatusTheme {
|
|
136
|
+
readonly text?: WidgetTextTheme;
|
|
137
|
+
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.46.1",
|
|
8
8
|
"description": "Chat Widget channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/chai": "4.3.1",
|
|
19
|
-
"@types/sinon": "10.0.
|
|
19
|
+
"@types/sinon": "10.0.12",
|
|
20
20
|
"@types/sinon-chai": "3.2.8",
|
|
21
21
|
"@xapp/config": "0.2.3",
|
|
22
22
|
"chai": "4.3.6",
|
|
23
23
|
"mocha": "9.2.2",
|
|
24
24
|
"sinon": "13.0.2",
|
|
25
25
|
"sinon-chai": "3.7.0",
|
|
26
|
-
"stentor-models": "1.56.
|
|
27
|
-
"ts-node": "10.8.
|
|
28
|
-
"typescript": "4.
|
|
26
|
+
"stentor-models": "1.56.22",
|
|
27
|
+
"ts-node": "10.8.2",
|
|
28
|
+
"typescript": "4.7.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.56.
|
|
32
|
-
"stentor-guards": "1.56.
|
|
31
|
+
"stentor-constants": "1.56.22",
|
|
32
|
+
"stentor-guards": "1.56.23"
|
|
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": "2c1d3c34969d99e21fc44389997bab28eb812e42"
|
|
42
42
|
}
|