@xapp/stentor-chat-widget 1.36.8 → 1.37.3

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.
@@ -62,6 +62,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
62
62
  * through on all requests to the assistant backend.
63
63
  */
64
64
  readonly accessToken?: string;
65
+ /**
66
+ * Optional, open ended, attributes to append to each request.
67
+ */
68
+ readonly attributes?: Record<string, string>;
65
69
  /**
66
70
  * Optional, URL that will be loaded which contains custom middleware components.
67
71
  */
@@ -107,6 +111,7 @@ export interface WidgetUrlPolicy {
107
111
  }
108
112
  export interface WidgetHeaderConfig {
109
113
  readonly status?: WidgetHeaderStatusConfig;
114
+ readonly actions?: WidgetHeaderActionsConfig;
110
115
  }
111
116
  export interface WidgetHeaderStatusConfig {
112
117
  readonly online?: string;
@@ -114,6 +119,10 @@ export interface WidgetHeaderStatusConfig {
114
119
  readonly away?: string;
115
120
  readonly connecting?: string;
116
121
  }
122
+ export interface WidgetHeaderActionsConfig {
123
+ readonly minimize?: boolean;
124
+ readonly cancel?: boolean;
125
+ }
117
126
  export interface WidgetMenuConfig {
118
127
  readonly items: readonly WidgetMenuItemConfig[];
119
128
  }
@@ -24,6 +24,8 @@ export interface WidgetTheme {
24
24
  readonly menuButton?: WidgetButtonTheme;
25
25
  /** Widget minimizeButton styling */
26
26
  readonly minimizeButton?: WidgetButtonTheme;
27
+ /** Widget cancelButton styling */
28
+ readonly cancelButton?: WidgetButtonTheme;
27
29
  /** Widget input styling */
28
30
  readonly input?: WidgetInputTheme;
29
31
  /** Widget carousel styling */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.36.8",
7
+ "version": "1.37.3",
8
8
  "description": "Chat Widget channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -24,13 +24,13 @@
24
24
  "mocha": "9.1.3",
25
25
  "sinon": "12.0.1",
26
26
  "sinon-chai": "3.7.0",
27
- "stentor-models": "1.52.27",
27
+ "stentor-models": "1.54.3",
28
28
  "ts-node": "10.4.0",
29
29
  "typescript": "4.5.4"
30
30
  },
31
31
  "dependencies": {
32
- "stentor-constants": "1.52.27",
33
- "stentor-guards": "1.52.27"
32
+ "stentor-constants": "1.54.3",
33
+ "stentor-guards": "1.54.3"
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": "70572aef716e9261f51e05f80a2efa50d155293c"
42
+ "gitHead": "489161169908b35323f9743c0969bd29d950a33e"
43
43
  }