@xapp/stentor-chat-widget 1.77.0 → 1.78.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.
@@ -20,7 +20,7 @@ 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
24
  /**
25
25
  * How long to keep the animation going, in milliseconds. If an animation exists
26
26
  */
@@ -275,7 +275,7 @@ export interface WidgetMenuConfig {
275
275
  *
276
276
  * If set to "HEADER_LEFT" then the menu button will display in the header left position with a three bar icon.
277
277
  */
278
- readonly menuButtonLocation?: "HEADER_LEFT" | "FOOTER";
278
+ readonly menuButtonLocation?: "HEADER_LEFT" | "HEADER_RIGHT" | "FOOTER";
279
279
  /**
280
280
  * Menu items to be displayed.
281
281
  */
@@ -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.77.0",
7
+ "version": "1.78.0",
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.60.48",
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.60.48",
32
- "stentor-guards": "1.60.48"
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": "d78c2c34090fafcd921853ef7028c3111aca5f36"
41
+ "gitHead": "27f3f3725452f551a64e731fe1a90963cc4f7a90"
42
42
  }