@xapp/stentor-chat-widget 1.54.2 → 1.57.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 +19 -0
- package/package.json +2 -2
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -33,12 +33,23 @@ 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;
|
|
40
|
+
/**
|
|
41
|
+
* Timeout in milliseconds to wait for a response from the serverUrl, defaults to 15,000.
|
|
42
|
+
*/
|
|
43
|
+
readonly timeout?: number;
|
|
37
44
|
}
|
|
38
45
|
/**
|
|
39
46
|
* Environment settings for the Widget
|
|
40
47
|
*/
|
|
41
48
|
export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
49
|
+
/**
|
|
50
|
+
* Referencable unique identifier for the specific chat channel
|
|
51
|
+
*/
|
|
52
|
+
readonly channelId?: string;
|
|
42
53
|
/**
|
|
43
54
|
* Describes how to connect to the backend.
|
|
44
55
|
*/
|
|
@@ -126,6 +137,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
126
137
|
* on desktop widths automatically but not on mobile.
|
|
127
138
|
*/
|
|
128
139
|
readonly autoOpenOnWidth?: string;
|
|
140
|
+
/**
|
|
141
|
+
* When set, the widget will look for certain URL patterns to choose when it will automatically open or not.
|
|
142
|
+
*/
|
|
143
|
+
readonly autoOpenOnPattern?: WidgetAutoOpenOnPattern;
|
|
129
144
|
/**
|
|
130
145
|
* Configure how the URLs within suggestion chips, markdown and list items are opened. You can choose same window, new window or new tab.
|
|
131
146
|
*/
|
|
@@ -139,6 +154,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
139
154
|
*/
|
|
140
155
|
readonly hooks?: WidgetHooks;
|
|
141
156
|
}
|
|
157
|
+
export interface WidgetAutoOpenOnPattern {
|
|
158
|
+
readonly patterns?: string[];
|
|
159
|
+
readonly minimumWidth?: string;
|
|
160
|
+
}
|
|
142
161
|
export interface WidgetConfigurableMessagesConfig {
|
|
143
162
|
readonly items?: WidgetConfigurableMessageConfig[];
|
|
144
163
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.57.1",
|
|
8
8
|
"description": "Chat Widget channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"build": "tsc -d true -p .",
|
|
39
39
|
"clean": "rm -rf ./lib/*"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "8713645d5b3b53f70d622259576b4ccdebd5175c"
|
|
42
42
|
}
|