@xapp/stentor-chat-widget 1.63.0 → 1.65.6
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/Types.d.ts +1 -1
- package/lib/WidgetEnv.d.ts +4 -4
- package/lib/WidgetTheme.d.ts +1 -1
- package/package.json +7 -7
package/lib/Types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! Copyright (c) 2021, XAPPmedia */
|
|
2
|
-
export
|
|
2
|
+
export type ChatWidgetChannel = "chat-widget";
|
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface Cta extends CtaConfig {
|
|
|
38
38
|
*/
|
|
39
39
|
mobile?: MobileCtaConfig;
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type ServerType = "direct" | "websocket" | "local" | "websocketraw";
|
|
42
42
|
/**
|
|
43
43
|
* @deprecated Use connection property
|
|
44
44
|
*/
|
|
@@ -201,7 +201,7 @@ export interface WidgetUrlsConfig {
|
|
|
201
201
|
readonly policies: readonly WidgetUrlPolicy[];
|
|
202
202
|
readonly defaultBehavior: WidgetUrlBehavior;
|
|
203
203
|
}
|
|
204
|
-
export
|
|
204
|
+
export type WidgetUrlBehaviorType = "sameWindow" | "newWindow" | "newTab";
|
|
205
205
|
export interface WidgetUrlBehaviorBase<Type extends WidgetUrlBehaviorType> {
|
|
206
206
|
readonly type: Type;
|
|
207
207
|
}
|
|
@@ -213,7 +213,7 @@ export interface WidgetUrlNewWindowBehavior extends WidgetUrlBehaviorBase<"newWi
|
|
|
213
213
|
}
|
|
214
214
|
export interface WidgetUrlNewTabBehavior extends WidgetUrlBehaviorBase<"newTab"> {
|
|
215
215
|
}
|
|
216
|
-
export
|
|
216
|
+
export type WidgetUrlBehavior = WidgetUrlSameWindowBehavior | WidgetUrlNewWindowBehavior | WidgetUrlNewTabBehavior;
|
|
217
217
|
export interface WidgetUrlPolicy {
|
|
218
218
|
readonly pattern: string;
|
|
219
219
|
readonly behavior: WidgetUrlBehavior;
|
|
@@ -266,7 +266,7 @@ export interface WidgetBrandingConfig {
|
|
|
266
266
|
*/
|
|
267
267
|
readonly text?: string;
|
|
268
268
|
}
|
|
269
|
-
export
|
|
269
|
+
export type WidgetMenuItems = WidgetMenuItemConfig | WidgetMenuItemStaticImage | WidgetMenuItemStaticText | WidgetMenuItemOpenURL;
|
|
270
270
|
export interface WidgetMenuConfig {
|
|
271
271
|
/**
|
|
272
272
|
* Set the location for the menu button.
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export interface WidgetInputTheme {
|
|
|
123
123
|
readonly background?: WidgetBackgroundTheme;
|
|
124
124
|
readonly border?: WidgetBorderTheme;
|
|
125
125
|
}
|
|
126
|
-
export
|
|
126
|
+
export type WidgetBackgroundTheme = string;
|
|
127
127
|
export interface WidgetBorderTheme {
|
|
128
128
|
readonly color?: string;
|
|
129
129
|
readonly width?: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.65.6",
|
|
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.
|
|
27
|
-
"ts-node": "10.9.
|
|
28
|
-
"typescript": "
|
|
26
|
+
"stentor-models": "1.58.87",
|
|
27
|
+
"ts-node": "10.9.2",
|
|
28
|
+
"typescript": "5.3.3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.
|
|
32
|
-
"stentor-guards": "1.
|
|
31
|
+
"stentor-constants": "1.58.87",
|
|
32
|
+
"stentor-guards": "1.58.87"
|
|
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": "41b2d847126c060ba3bb44072528d0d07b0c935a"
|
|
42
42
|
}
|