@xapp/stentor-chat-widget 1.34.0 → 1.36.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.
Files changed (2) hide show
  1. package/lib/WidgetEnv.d.ts +25 -0
  2. package/package.json +7 -7
@@ -37,17 +37,38 @@ export interface ServerConfig {
37
37
  * Environment settings for the Widget
38
38
  */
39
39
  export interface WidgetEnv extends WidgetEnvDeprecated {
40
+ /**
41
+ * Describes how to connect to the backend.
42
+ */
40
43
  readonly connection: ServerConfig;
41
44
  /**
42
45
  * Widget is disabled
43
46
  */
44
47
  readonly disabled?: boolean;
48
+ /**
49
+ * Name of the bot, displayed when they enter the chat.
50
+ */
45
51
  readonly botName?: string;
46
52
  /**
47
53
  * The avatar URL
48
54
  */
49
55
  readonly avatarUrl?: string;
56
+ /**
57
+ * Optional ID that will be used for the user. If not prevent
58
+ */
59
+ readonly userId?: string;
60
+ /**
61
+ * Optional access token that is passed to the backend and used for authenticated API calls. This is for logged in users and is passed
62
+ * through on all requests to the assistant backend.
63
+ */
64
+ readonly accessToken?: string;
65
+ /**
66
+ * Optional, URL that will be loaded which contains custom middleware components.
67
+ */
50
68
  readonly middlewareUrl?: string;
69
+ /**
70
+ * Optional, used for autocomplete suggestions.
71
+ */
51
72
  readonly autocompleteSuggestionsUrl?: string;
52
73
  /**
53
74
  * Theme for the widget
@@ -56,6 +77,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
56
77
  readonly cta?: CtaConfig;
57
78
  readonly header?: WidgetHeaderConfig;
58
79
  readonly menu?: WidgetMenuConfig;
80
+ /**
81
+ * 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
82
+ * on desktop widths automatically but not on mobile.
83
+ */
59
84
  readonly autoOpenOnWidth?: string;
60
85
  readonly urls?: WidgetUrlsConfig;
61
86
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.34.0",
7
+ "version": "1.36.2",
8
8
  "description": "Chat Widget channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -17,20 +17,20 @@
17
17
  "devDependencies": {
18
18
  "@types/chai": "4.3.0",
19
19
  "@types/dialogflow": "1.0.0",
20
- "@types/sinon": "10.0.6",
21
- "@types/sinon-chai": "3.2.6",
20
+ "@types/sinon": "10.0.11",
21
+ "@types/sinon-chai": "3.2.8",
22
22
  "@xapp/config": "0.2.3",
23
23
  "chai": "4.3.4",
24
24
  "mocha": "9.1.3",
25
25
  "sinon": "12.0.1",
26
26
  "sinon-chai": "3.7.0",
27
- "stentor-models": "1.48.44",
27
+ "stentor-models": "1.52.19",
28
28
  "ts-node": "10.4.0",
29
29
  "typescript": "4.5.4"
30
30
  },
31
31
  "dependencies": {
32
- "stentor-constants": "1.48.44",
33
- "stentor-guards": "1.48.44"
32
+ "stentor-constants": "1.52.19",
33
+ "stentor-guards": "1.52.21"
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": "05cfb809dd06504c42b4f3ce8cb58ab3d7ee1572"
42
+ "gitHead": "968e3ade2fdf92a8e1e91b762ee3942010041cab"
43
43
  }