@nlxai/touchpoint-ui 1.1.0 → 1.1.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.
package/lib/types.d.ts CHANGED
@@ -156,6 +156,19 @@ export interface Theme {
156
156
  * @param context - context set via TouchpointConfiguration.initialContext
157
157
  */
158
158
  export type InitializeConversation = (handler: ConversationHandler, context?: Context) => void;
159
+ /**
160
+ * Fully custom launch icon
161
+ */
162
+ export type CustomLaunchButton = ComponentType<{
163
+ /**
164
+ * Class name injected into the component mainly to take care of positioning and z-index. Can be combined with more presentational and sizing-related class names.
165
+ */
166
+ className?: string;
167
+ /**
168
+ * Click handler that expands Touchpoint, without the caller having to implement this based on Touchpoint instance methods.
169
+ */
170
+ onClick?: () => void;
171
+ }>;
159
172
  /**
160
173
  * Input type for the experience
161
174
  */
@@ -185,7 +198,7 @@ export interface TouchpointConfiguration {
185
198
  *
186
199
  * When set to `false`, no launch button is shown at all. When not set or set to `true`, the default launch icon is rendered.
187
200
  */
188
- launchIcon?: string | boolean;
201
+ launchIcon?: string | boolean | CustomLaunchButton;
189
202
  /**
190
203
  * Specifies whether the user message has bubbles or not
191
204
  */
package/lib/voice.d.ts CHANGED
@@ -11,6 +11,7 @@ interface VoiceHookReturn {
11
11
  isApplicationSpeaking: boolean;
12
12
  soundCheck: null | SoundCheck;
13
13
  roomData: null | ModalitiesWithContext;
14
+ retrySoundCheck: () => void;
14
15
  }
15
16
  interface UseVoiceParams {
16
17
  active: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nlxai/touchpoint-ui",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Web UI for Touchpoint",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "adab97fb26a1baa44bb0fddd84f5ef6029709e24"
61
+ "gitHead": "17c1d6c70de4fc15cf4a0bb5cbab42a16a47dc5f"
62
62
  }