@xapp/stentor-chat-widget 1.43.0 → 1.45.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 +14 -0
- package/lib/WidgetTheme.d.ts +10 -0
- package/package.json +6 -6
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,6 +140,7 @@ 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
|
}
|
|
@@ -153,3 +160,10 @@ export interface WidgetInputConfig {
|
|
|
153
160
|
export interface WidgetMenuItemConfig {
|
|
154
161
|
readonly label: string;
|
|
155
162
|
}
|
|
163
|
+
export interface WidgetHeaderSubtitleConfig {
|
|
164
|
+
readonly enabled?: boolean;
|
|
165
|
+
readonly text?: string;
|
|
166
|
+
}
|
|
167
|
+
export interface WidgetTypingStatusConfig {
|
|
168
|
+
readonly textTypingStatusEnabled?: boolean;
|
|
169
|
+
}
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export interface WidgetTheme {
|
|
|
4
4
|
readonly size?: WidgetSizeTheme;
|
|
5
5
|
/** Widget margin */
|
|
6
6
|
readonly margin?: WidgetMarginsTheme;
|
|
7
|
+
/** Widget z-index */
|
|
8
|
+
readonly zIndex?: string;
|
|
7
9
|
/** Widget chat button style */
|
|
8
10
|
readonly chatButton?: WidgetChatButtonTheme;
|
|
9
11
|
/** Primary color of widget */
|
|
@@ -16,12 +18,16 @@ export interface WidgetTheme {
|
|
|
16
18
|
readonly footer?: WidgetFooterTheme;
|
|
17
19
|
/** Widget messages styling */
|
|
18
20
|
readonly messages?: WidgetMessagesTheme;
|
|
21
|
+
/** Widget textTypingStatus styling */
|
|
22
|
+
readonly textTypingStatus?: WidgetTextTypingStatusTheme;
|
|
19
23
|
/** Widget sendButton styling */
|
|
20
24
|
readonly sendButton?: WidgetButtonTheme;
|
|
21
25
|
/** Widget menu styling */
|
|
22
26
|
readonly menu?: WidgetMenuTheme;
|
|
23
27
|
/** Widget menuButton styling */
|
|
24
28
|
readonly menuButton?: WidgetButtonTheme;
|
|
29
|
+
/** Widget refreshButton styling */
|
|
30
|
+
readonly refreshButton?: WidgetButtonTheme;
|
|
25
31
|
/** Widget minimizeButton styling */
|
|
26
32
|
readonly minimizeButton?: WidgetButtonTheme;
|
|
27
33
|
/** Widget cancelButton styling */
|
|
@@ -84,6 +90,7 @@ export interface WidgetMessagesTheme {
|
|
|
84
90
|
export interface WidgetHeaderTheme {
|
|
85
91
|
readonly background?: WidgetBackgroundTheme;
|
|
86
92
|
readonly text?: WidgetTextTheme;
|
|
93
|
+
readonly subtitle?: WidgetTextTheme;
|
|
87
94
|
readonly border?: WidgetBorderTheme;
|
|
88
95
|
}
|
|
89
96
|
export interface WidgetContentTheme {
|
|
@@ -124,3 +131,6 @@ export interface WidgetCarouselTheme {
|
|
|
124
131
|
export interface WidgetBrandingTheme {
|
|
125
132
|
readonly text?: WidgetTextTheme;
|
|
126
133
|
}
|
|
134
|
+
export interface WidgetTextTypingStatusTheme {
|
|
135
|
+
readonly text?: WidgetTextTheme;
|
|
136
|
+
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.45.0",
|
|
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.
|
|
26
|
+
"stentor-models": "1.56.18",
|
|
27
27
|
"ts-node": "10.8.1",
|
|
28
28
|
"typescript": "4.6.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.56.
|
|
32
|
-
"stentor-guards": "1.56.
|
|
31
|
+
"stentor-constants": "1.56.18",
|
|
32
|
+
"stentor-guards": "1.56.18"
|
|
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": "04276d7a6ca585cff4c5d97fdd4ced00699dec6d"
|
|
42
42
|
}
|