@nlxai/touchpoint-ui 1.0.5-alpha.7 → 1.0.5-alpha.8

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
@@ -209,5 +209,5 @@ export interface TouchpointConfiguration {
209
209
  /**
210
210
  * Controls the ways in which the user can communicate with the application. Defaults to `"text"`
211
211
  */
212
- input?: "text" | "voice";
212
+ input?: "text" | "voice" | "voiceMini";
213
213
  }
package/lib/voice.d.ts CHANGED
@@ -1,12 +1,21 @@
1
1
  import { ConversationHandler } from '@nlxai/chat-core';
2
2
  type VoiceRoomState = "inactive" | "pending" | "active" | "error";
3
+ export interface SoundCheck {
4
+ micAllowed: boolean;
5
+ micNames: string[];
6
+ speakerNames: string[];
7
+ }
3
8
  interface VoiceHookReturn {
4
9
  roomState: VoiceRoomState;
5
10
  isUserSpeaking: boolean;
6
11
  isApplicationSpeaking: boolean;
12
+ soundCheck: null | SoundCheck;
7
13
  }
8
- export declare const useVoice: ({ active, handler, }: {
14
+ interface UseVoiceParams {
9
15
  active: boolean;
16
+ micEnabled: boolean;
17
+ speakersEnabled: boolean;
10
18
  handler: ConversationHandler;
11
- }) => VoiceHookReturn;
19
+ }
20
+ export declare const useVoice: ({ active, micEnabled, speakersEnabled, handler, }: UseVoiceParams) => VoiceHookReturn;
12
21
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nlxai/touchpoint-ui",
3
- "version": "1.0.5-alpha.7",
3
+ "version": "1.0.5-alpha.8",
4
4
  "description": "Web UI for Touchpoint",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -24,7 +24,7 @@
24
24
  "tsc": "tsc"
25
25
  },
26
26
  "dependencies": {
27
- "@nlxai/chat-core": "^1.0.5-alpha.4",
27
+ "@nlxai/chat-core": "^1.0.5-alpha.8",
28
28
  "@react-hookz/web": "^25.0.1",
29
29
  "@react-input/mask": "^2.0.4",
30
30
  "clsx": "^2.1.1",
@@ -51,11 +51,11 @@
51
51
  "postcss": "^8.4.38",
52
52
  "tailwindcss": "^3.4.3",
53
53
  "typescript": "^5.4.5",
54
- "vite": "^4.5.6",
54
+ "vite": "^5.4.19",
55
55
  "vite-plugin-dts": "^4.5.0"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "58311dbd2b53f693d7676d9e218a7602111378c0"
60
+ "gitHead": "18cbbadac7360430f812049e5833853223c679f6"
61
61
  }