@xapp/stentor-chat-widget 1.26.3 → 1.28.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 +23 -0
- package/package.json +9 -9
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
46
46
|
* The avatar URL
|
|
47
47
|
*/
|
|
48
48
|
readonly avatarUrl?: string;
|
|
49
|
+
readonly middlewareUrl?: string;
|
|
49
50
|
readonly autocompleteSuggestionsUrl?: string;
|
|
50
51
|
/**
|
|
51
52
|
* Theme for the widget
|
|
@@ -55,6 +56,28 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
55
56
|
readonly header?: WidgetHeaderConfig;
|
|
56
57
|
readonly menu?: WidgetMenuConfig;
|
|
57
58
|
readonly autoOpenOnWidth?: string;
|
|
59
|
+
readonly urls?: WidgetUrlsConfig;
|
|
60
|
+
}
|
|
61
|
+
export interface WidgetUrlsConfig {
|
|
62
|
+
readonly policies: readonly WidgetUrlPolicy[];
|
|
63
|
+
readonly defaultBehavior: WidgetUrlBehavior;
|
|
64
|
+
}
|
|
65
|
+
export declare type WidgetUrlBehaviorType = "sameWindow" | "newWindow" | "newTab";
|
|
66
|
+
export interface WidgetUrlBehaviorBase<Type extends WidgetUrlBehaviorType> {
|
|
67
|
+
readonly type: Type;
|
|
68
|
+
}
|
|
69
|
+
export interface WidgetUrlSameWindowBehavior extends WidgetUrlBehaviorBase<"sameWindow"> {
|
|
70
|
+
}
|
|
71
|
+
export interface WidgetUrlNewWindowBehavior extends WidgetUrlBehaviorBase<"newWindow"> {
|
|
72
|
+
readonly width?: number;
|
|
73
|
+
readonly height?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface WidgetUrlNewTabBehavior extends WidgetUrlBehaviorBase<"newTab"> {
|
|
76
|
+
}
|
|
77
|
+
export declare type WidgetUrlBehavior = WidgetUrlSameWindowBehavior | WidgetUrlNewWindowBehavior | WidgetUrlNewTabBehavior;
|
|
78
|
+
export interface WidgetUrlPolicy {
|
|
79
|
+
readonly pattern: string;
|
|
80
|
+
readonly behavior: WidgetUrlBehavior;
|
|
58
81
|
}
|
|
59
82
|
export interface WidgetHeaderConfig {
|
|
60
83
|
readonly status?: WidgetHeaderStatusConfig;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.28.0",
|
|
8
8
|
"description": "Chat Widget channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/chai": "4.2.22",
|
|
19
19
|
"@types/dialogflow": "1.0.0",
|
|
20
|
-
"@types/sinon": "10.0.
|
|
20
|
+
"@types/sinon": "10.0.6",
|
|
21
21
|
"@types/sinon-chai": "3.2.5",
|
|
22
22
|
"@xapp/config": "0.2.3",
|
|
23
23
|
"chai": "4.3.4",
|
|
24
|
-
"mocha": "9.
|
|
24
|
+
"mocha": "9.1.3",
|
|
25
25
|
"sinon": "11.1.2",
|
|
26
26
|
"sinon-chai": "3.7.0",
|
|
27
|
-
"stentor-models": "1.
|
|
28
|
-
"ts-node": "10.
|
|
29
|
-
"typescript": "4.4.
|
|
27
|
+
"stentor-models": "1.48.7",
|
|
28
|
+
"ts-node": "10.4.0",
|
|
29
|
+
"typescript": "4.4.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"stentor-constants": "1.
|
|
33
|
-
"stentor-guards": "1.
|
|
32
|
+
"stentor-constants": "1.48.7",
|
|
33
|
+
"stentor-guards": "1.48.9"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"stentor-models": "1.x"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"build": "tsc -d true -p .",
|
|
40
40
|
"clean": "rm -rf ./lib/*"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "bcedfbccfda9ed5d040b017537f7366a1d5a3c70"
|
|
43
43
|
}
|