@xapp/stentor-chat-widget 1.54.1 → 1.56.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 +15 -0
- package/lib/WidgetTheme.d.ts +2 -0
- package/package.json +5 -5
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -33,12 +33,19 @@ export interface ServerConfig {
|
|
|
33
33
|
* Optional key used for basic authentication
|
|
34
34
|
*/
|
|
35
35
|
readonly accountKey?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The type of connection, "direct" for POST based backends and "websocketraw" for chat router based backends.
|
|
38
|
+
*/
|
|
36
39
|
readonly type?: ServerType;
|
|
37
40
|
}
|
|
38
41
|
/**
|
|
39
42
|
* Environment settings for the Widget
|
|
40
43
|
*/
|
|
41
44
|
export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
45
|
+
/**
|
|
46
|
+
* Referencable unique identifier for the specific chat channel
|
|
47
|
+
*/
|
|
48
|
+
readonly channelId?: string;
|
|
42
49
|
/**
|
|
43
50
|
* Describes how to connect to the backend.
|
|
44
51
|
*/
|
|
@@ -126,6 +133,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
126
133
|
* on desktop widths automatically but not on mobile.
|
|
127
134
|
*/
|
|
128
135
|
readonly autoOpenOnWidth?: string;
|
|
136
|
+
/**
|
|
137
|
+
* When set, the widget will look for certain URL patterns to choose when it will automatically open or not.
|
|
138
|
+
*/
|
|
139
|
+
readonly autoOpenOnPattern?: WidgetAutoOpenOnPattern;
|
|
129
140
|
/**
|
|
130
141
|
* Configure how the URLs within suggestion chips, markdown and list items are opened. You can choose same window, new window or new tab.
|
|
131
142
|
*/
|
|
@@ -139,6 +150,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
139
150
|
*/
|
|
140
151
|
readonly hooks?: WidgetHooks;
|
|
141
152
|
}
|
|
153
|
+
export interface WidgetAutoOpenOnPattern {
|
|
154
|
+
readonly patterns?: string[];
|
|
155
|
+
readonly minimumWidth?: string;
|
|
156
|
+
}
|
|
142
157
|
export interface WidgetConfigurableMessagesConfig {
|
|
143
158
|
readonly items?: WidgetConfigurableMessageConfig[];
|
|
144
159
|
}
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export interface WidgetChatButtonTheme {
|
|
|
56
56
|
readonly margin?: WidgetMarginsTheme;
|
|
57
57
|
/** Widget chat button color */
|
|
58
58
|
readonly background?: WidgetBackgroundTheme;
|
|
59
|
+
/**Widget chat button border */
|
|
60
|
+
readonly border?: WidgetBorderTheme;
|
|
59
61
|
}
|
|
60
62
|
export interface WidgetMarginsTheme {
|
|
61
63
|
readonly top?: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.56.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.57.
|
|
26
|
+
"stentor-models": "1.57.84",
|
|
27
27
|
"ts-node": "10.9.1",
|
|
28
28
|
"typescript": "4.7.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.57.
|
|
32
|
-
"stentor-guards": "1.57.
|
|
31
|
+
"stentor-constants": "1.57.84",
|
|
32
|
+
"stentor-guards": "1.57.84"
|
|
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": "edb238dba34fe1fd6382926309aa7a3d51e95764"
|
|
42
42
|
}
|