@xapp/stentor-chat-widget 1.38.0 → 1.40.2
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 +12 -0
- package/lib/WidgetTheme.d.ts +1 -0
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/package.json +11 -12
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -81,12 +81,21 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
81
81
|
readonly cta?: CtaConfig;
|
|
82
82
|
readonly header?: WidgetHeaderConfig;
|
|
83
83
|
readonly menu?: WidgetMenuConfig;
|
|
84
|
+
readonly input?: WidgetInputConfig;
|
|
84
85
|
/**
|
|
85
86
|
* When set, the widget will automatically open when the screen width is wider than what is provided. This is useful if you want to open
|
|
86
87
|
* on desktop widths automatically but not on mobile.
|
|
87
88
|
*/
|
|
88
89
|
readonly autoOpenOnWidth?: string;
|
|
89
90
|
readonly urls?: WidgetUrlsConfig;
|
|
91
|
+
readonly configurableMessages?: WidgetConfigurableMessagesConfig;
|
|
92
|
+
}
|
|
93
|
+
export interface WidgetConfigurableMessagesConfig {
|
|
94
|
+
readonly items?: WidgetConfigurableMessageConfig[];
|
|
95
|
+
}
|
|
96
|
+
export interface WidgetConfigurableMessageConfig {
|
|
97
|
+
readonly delay: number;
|
|
98
|
+
readonly text: string;
|
|
90
99
|
}
|
|
91
100
|
export interface WidgetUrlsConfig {
|
|
92
101
|
readonly policies: readonly WidgetUrlPolicy[];
|
|
@@ -126,6 +135,9 @@ export interface WidgetHeaderActionsConfig {
|
|
|
126
135
|
export interface WidgetMenuConfig {
|
|
127
136
|
readonly items: readonly WidgetMenuItemConfig[];
|
|
128
137
|
}
|
|
138
|
+
export interface WidgetInputConfig {
|
|
139
|
+
readonly placeholder?: string;
|
|
140
|
+
}
|
|
129
141
|
export interface WidgetMenuItemConfig {
|
|
130
142
|
readonly label: string;
|
|
131
143
|
}
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export interface WidgetTextTheme {
|
|
|
105
105
|
}
|
|
106
106
|
export interface WidgetInputTheme {
|
|
107
107
|
readonly text?: WidgetTextTheme;
|
|
108
|
+
readonly placeholder?: WidgetTextTheme;
|
|
108
109
|
readonly background?: WidgetBackgroundTheme;
|
|
109
110
|
readonly border?: WidgetBorderTheme;
|
|
110
111
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,gDAA8B;AAC9B,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.40.2",
|
|
8
8
|
"description": "Chat Widget channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -15,22 +15,21 @@
|
|
|
15
15
|
"node": ">=10.x"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@types/chai": "4.3.
|
|
19
|
-
"@types/dialogflow": "1.0.0",
|
|
18
|
+
"@types/chai": "4.3.1",
|
|
20
19
|
"@types/sinon": "10.0.11",
|
|
21
20
|
"@types/sinon-chai": "3.2.8",
|
|
22
21
|
"@xapp/config": "0.2.3",
|
|
23
|
-
"chai": "4.3.
|
|
24
|
-
"mocha": "9.
|
|
25
|
-
"sinon": "
|
|
22
|
+
"chai": "4.3.6",
|
|
23
|
+
"mocha": "9.2.2",
|
|
24
|
+
"sinon": "13.0.2",
|
|
26
25
|
"sinon-chai": "3.7.0",
|
|
27
|
-
"stentor-models": "1.
|
|
28
|
-
"ts-node": "10.
|
|
29
|
-
"typescript": "4.
|
|
26
|
+
"stentor-models": "1.55.10",
|
|
27
|
+
"ts-node": "10.7.0",
|
|
28
|
+
"typescript": "4.6.3"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
|
-
"stentor-constants": "1.
|
|
33
|
-
"stentor-guards": "1.
|
|
31
|
+
"stentor-constants": "1.55.10",
|
|
32
|
+
"stentor-guards": "1.55.10"
|
|
34
33
|
},
|
|
35
34
|
"peerDependencies": {
|
|
36
35
|
"stentor-models": "1.x"
|
|
@@ -39,5 +38,5 @@
|
|
|
39
38
|
"build": "tsc -d true -p .",
|
|
40
39
|
"clean": "rm -rf ./lib/*"
|
|
41
40
|
},
|
|
42
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c2add5f5b25f69959d08e5b6ffa7547d79c992e7"
|
|
43
42
|
}
|