@xapp/stentor-chat-widget 1.44.0 → 1.46.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.
@@ -78,6 +78,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
78
78
  * The session will restart if the specified time has elapsed since the last message. Default value is 24h.
79
79
  */
80
80
  readonly sessionExpiration?: string;
81
+ /**
82
+ * Optional, for configuration typing status.
83
+ */
84
+ readonly typingStatus?: WidgetTypingStatusConfig;
81
85
  /**
82
86
  * Theme for the widget
83
87
  */
@@ -125,6 +129,8 @@ export interface WidgetUrlPolicy {
125
129
  }
126
130
  export interface WidgetHeaderConfig {
127
131
  readonly status?: WidgetHeaderStatusConfig;
132
+ readonly subtitle?: WidgetHeaderSubtitleConfig;
133
+ readonly alignTextCenter?: boolean;
128
134
  readonly actions?: WidgetHeaderActionsConfig;
129
135
  }
130
136
  export interface WidgetHeaderStatusConfig {
@@ -140,6 +146,7 @@ export interface WidgetHeaderActionsConfig {
140
146
  }
141
147
  export interface WidgetFooterConfig {
142
148
  readonly branding?: WidgetBrandingConfig;
149
+ readonly sendButton?: WidgetSendButtonConfig;
143
150
  }
144
151
  export interface WidgetBrandingConfig {
145
152
  readonly enabled?: boolean;
@@ -154,3 +161,13 @@ export interface WidgetInputConfig {
154
161
  export interface WidgetMenuItemConfig {
155
162
  readonly label: string;
156
163
  }
164
+ export interface WidgetHeaderSubtitleConfig {
165
+ readonly enabled?: boolean;
166
+ readonly text?: string;
167
+ }
168
+ export interface WidgetTypingStatusConfig {
169
+ readonly textTypingStatusEnabled?: boolean;
170
+ }
171
+ export interface WidgetSendButtonConfig {
172
+ readonly icon?: string;
173
+ }
@@ -18,6 +18,8 @@ export interface WidgetTheme {
18
18
  readonly footer?: WidgetFooterTheme;
19
19
  /** Widget messages styling */
20
20
  readonly messages?: WidgetMessagesTheme;
21
+ /** Widget textTypingStatus styling */
22
+ readonly textTypingStatus?: WidgetTextTypingStatusTheme;
21
23
  /** Widget sendButton styling */
22
24
  readonly sendButton?: WidgetButtonTheme;
23
25
  /** Widget menu styling */
@@ -88,6 +90,7 @@ export interface WidgetMessagesTheme {
88
90
  export interface WidgetHeaderTheme {
89
91
  readonly background?: WidgetBackgroundTheme;
90
92
  readonly text?: WidgetTextTheme;
93
+ readonly subtitle?: WidgetTextTheme;
91
94
  readonly border?: WidgetBorderTheme;
92
95
  }
93
96
  export interface WidgetContentTheme {
@@ -100,6 +103,7 @@ export interface WidgetFooterTheme {
100
103
  }
101
104
  export interface WidgetButtonTheme {
102
105
  readonly color?: string;
106
+ readonly width?: string;
103
107
  }
104
108
  export interface WidgetTextTheme {
105
109
  readonly color?: string;
@@ -128,3 +132,6 @@ export interface WidgetCarouselTheme {
128
132
  export interface WidgetBrandingTheme {
129
133
  readonly text?: WidgetTextTheme;
130
134
  }
135
+ export interface WidgetTextTypingStatusTheme {
136
+ readonly text?: WidgetTextTheme;
137
+ }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.44.0",
7
+ "version": "1.46.2",
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.56.18",
27
- "ts-node": "10.8.1",
28
- "typescript": "4.6.4"
26
+ "stentor-models": "1.56.28",
27
+ "ts-node": "10.8.2",
28
+ "typescript": "4.7.4"
29
29
  },
30
30
  "dependencies": {
31
- "stentor-constants": "1.56.18",
32
- "stentor-guards": "1.56.18"
31
+ "stentor-constants": "1.56.28",
32
+ "stentor-guards": "1.56.28"
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": "802d8780b6e367028965aed0376cd770613a0bb2"
41
+ "gitHead": "1e52ade460b37e3a4786e3bcba0ca20b9b81fffc"
42
42
  }