@xapp/stentor-chat-widget 1.77.0 → 1.78.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 +12 -3
- package/lib/WidgetTheme.d.ts +16 -0
- package/package.json +5 -5
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -20,11 +20,20 @@ export interface CtaConfig {
|
|
|
20
20
|
/**
|
|
21
21
|
* Animation to perform on the button after the delay
|
|
22
22
|
*/
|
|
23
|
-
readonly animation?: "wiggle" | "bounce";
|
|
23
|
+
readonly animation?: "wiggle" | "bounce" | "pulse";
|
|
24
|
+
/**
|
|
25
|
+
* The delay, in milliseconds, to wait until the animation starts.
|
|
26
|
+
* If not provided, falls back to the delay property for backwards compatibility.
|
|
27
|
+
*/
|
|
28
|
+
readonly animationDelay?: number;
|
|
24
29
|
/**
|
|
25
30
|
* How long to keep the animation going, in milliseconds. If an animation exists
|
|
26
31
|
*/
|
|
27
32
|
readonly animationTimeout?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the CTA bubble can be dismissed with an X button
|
|
35
|
+
*/
|
|
36
|
+
readonly dismissible?: boolean;
|
|
28
37
|
}
|
|
29
38
|
export interface MobileCtaConfig extends CtaConfig {
|
|
30
39
|
/**
|
|
@@ -79,7 +88,7 @@ export interface ServerConfig {
|
|
|
79
88
|
*/
|
|
80
89
|
export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
81
90
|
/**
|
|
82
|
-
*
|
|
91
|
+
* Reference to a unique identifier for the specific chat channel
|
|
83
92
|
*/
|
|
84
93
|
readonly channelId?: string;
|
|
85
94
|
/**
|
|
@@ -275,7 +284,7 @@ export interface WidgetMenuConfig {
|
|
|
275
284
|
*
|
|
276
285
|
* If set to "HEADER_LEFT" then the menu button will display in the header left position with a three bar icon.
|
|
277
286
|
*/
|
|
278
|
-
readonly menuButtonLocation?: "HEADER_LEFT" | "FOOTER";
|
|
287
|
+
readonly menuButtonLocation?: "HEADER_LEFT" | "HEADER_RIGHT" | "FOOTER";
|
|
279
288
|
/**
|
|
280
289
|
* Menu items to be displayed.
|
|
281
290
|
*/
|
package/lib/WidgetTheme.d.ts
CHANGED
|
@@ -58,6 +58,18 @@ export interface WidgetChatButtonTheme {
|
|
|
58
58
|
readonly background?: WidgetBackgroundTheme;
|
|
59
59
|
/**Widget chat button border */
|
|
60
60
|
readonly border?: WidgetBorderTheme;
|
|
61
|
+
/** Widget chat button image size */
|
|
62
|
+
readonly imageSize?: WidgetSizeTheme;
|
|
63
|
+
/** Widget chat button animation styling */
|
|
64
|
+
readonly animation?: WidgetChatButtonAnimationTheme;
|
|
65
|
+
}
|
|
66
|
+
export interface WidgetChatButtonAnimationTheme {
|
|
67
|
+
/** Primary color for animations (RGB values like "255, 0, 0") */
|
|
68
|
+
readonly primaryColor?: string;
|
|
69
|
+
/** Secondary color for animations (RGB values like "255, 165, 0") */
|
|
70
|
+
readonly secondaryColor?: string;
|
|
71
|
+
/** Opacity of animation effects (0-1, defaults to 0.75) */
|
|
72
|
+
readonly opacity?: number;
|
|
61
73
|
}
|
|
62
74
|
export interface WidgetMarginsTheme {
|
|
63
75
|
readonly top?: string;
|
|
@@ -97,6 +109,8 @@ export interface WidgetHeaderTheme {
|
|
|
97
109
|
readonly text?: WidgetTextTheme;
|
|
98
110
|
readonly subtitle?: WidgetTextTheme;
|
|
99
111
|
readonly border?: WidgetBorderTheme;
|
|
112
|
+
readonly padding?: WidgetPaddingsTheme;
|
|
113
|
+
readonly avatarBackground?: string;
|
|
100
114
|
}
|
|
101
115
|
export interface WidgetContentTheme {
|
|
102
116
|
readonly background?: WidgetBackgroundTheme;
|
|
@@ -109,6 +123,8 @@ export interface WidgetFooterTheme {
|
|
|
109
123
|
export interface WidgetButtonTheme {
|
|
110
124
|
readonly color?: string;
|
|
111
125
|
readonly width?: string;
|
|
126
|
+
readonly background?: string;
|
|
127
|
+
readonly hoverBackground?: string;
|
|
112
128
|
}
|
|
113
129
|
export interface WidgetTextTheme {
|
|
114
130
|
readonly color?: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.78.1",
|
|
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.
|
|
26
|
+
"stentor-models": "1.61.9",
|
|
27
27
|
"ts-node": "10.9.2",
|
|
28
28
|
"typescript": "5.8.3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.
|
|
32
|
-
"stentor-guards": "1.
|
|
31
|
+
"stentor-constants": "1.61.9",
|
|
32
|
+
"stentor-guards": "1.61.9"
|
|
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": "b2b240b81c78b9eff8765e391e0b7ce2f2033d03"
|
|
42
42
|
}
|