@xapp/stentor-chat-widget 1.40.2 → 1.41.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.
@@ -74,6 +74,10 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
74
74
  * Optional, used for autocomplete suggestions.
75
75
  */
76
76
  readonly autocompleteSuggestionsUrl?: string;
77
+ /**
78
+ * The session will restart if the specified time has elapsed since the last message. Default value is 24h.
79
+ */
80
+ readonly sessionExpiration?: string;
77
81
  /**
78
82
  * Theme for the widget
79
83
  */
@@ -94,8 +98,8 @@ export interface WidgetConfigurableMessagesConfig {
94
98
  readonly items?: WidgetConfigurableMessageConfig[];
95
99
  }
96
100
  export interface WidgetConfigurableMessageConfig {
97
- readonly delay: number;
98
- readonly text: string;
101
+ readonly delay?: number;
102
+ readonly text?: string;
99
103
  }
100
104
  export interface WidgetUrlsConfig {
101
105
  readonly policies: readonly WidgetUrlPolicy[];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.40.2",
7
+ "version": "1.41.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.55.10",
26
+ "stentor-models": "1.55.22",
27
27
  "ts-node": "10.7.0",
28
- "typescript": "4.6.3"
28
+ "typescript": "4.6.4"
29
29
  },
30
30
  "dependencies": {
31
- "stentor-constants": "1.55.10",
32
- "stentor-guards": "1.55.10"
31
+ "stentor-constants": "1.55.22",
32
+ "stentor-guards": "1.55.22"
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": "c2add5f5b25f69959d08e5b6ffa7547d79c992e7"
41
+ "gitHead": "4ba8d969d8ac2a92695216ade0e70f97935782f1"
42
42
  }