@nlxai/touchpoint-ui 1.1.4 → 1.1.6
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/index.html +4 -114
- package/lib/components/FullscreenVoice.d.ts +2 -8
- package/lib/components/VoiceMini.d.ts +1 -1
- package/lib/index.js +5389 -5384
- package/lib/index.umd.js +43 -43
- package/lib/voice.d.ts +9 -11
- package/package.json +5 -3
package/lib/voice.d.ts
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import { Context, ConversationHandler, ModalityPayloads } from '@nlxai/chat-core';
|
|
2
|
-
type VoiceRoomState = "inactive" | "pending" | "active" | "error" | "terminated";
|
|
3
2
|
export interface SoundCheck {
|
|
4
3
|
micAllowed: boolean;
|
|
5
4
|
micNames: string[];
|
|
6
5
|
speakerNames: string[];
|
|
7
6
|
}
|
|
7
|
+
export interface ModalitiesWithContext {
|
|
8
|
+
modalities: ModalityPayloads;
|
|
9
|
+
from?: string;
|
|
10
|
+
timestamp: number;
|
|
11
|
+
}
|
|
12
|
+
type VoiceRoomState = "noAudioPermissions" | "pending" | "active" | "error" | "terminated";
|
|
8
13
|
interface VoiceHookReturn {
|
|
9
14
|
roomState: VoiceRoomState;
|
|
10
15
|
isUserSpeaking: boolean;
|
|
11
16
|
isApplicationSpeaking: boolean;
|
|
12
|
-
soundCheck: null | SoundCheck;
|
|
13
17
|
roomData: null | ModalitiesWithContext;
|
|
14
|
-
|
|
18
|
+
retry: () => Promise<void>;
|
|
15
19
|
}
|
|
16
|
-
interface
|
|
17
|
-
active: boolean;
|
|
20
|
+
interface VoiceHookParams {
|
|
18
21
|
micEnabled: boolean;
|
|
19
22
|
speakersEnabled: boolean;
|
|
20
23
|
handler: ConversationHandler;
|
|
21
24
|
context?: Context;
|
|
22
25
|
}
|
|
23
|
-
export
|
|
24
|
-
modalities: ModalityPayloads;
|
|
25
|
-
from?: string;
|
|
26
|
-
timestamp: number;
|
|
27
|
-
}
|
|
28
|
-
export declare const useVoice: ({ active, micEnabled, speakersEnabled, handler, context, }: UseVoiceParams) => VoiceHookReturn;
|
|
26
|
+
export declare const useVoice: ({ handler, context, speakersEnabled, micEnabled, }: VoiceHookParams) => VoiceHookReturn;
|
|
29
27
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Web UI for Touchpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@react-hookz/web": "^25.0.1",
|
|
29
29
|
"@react-input/mask": "^2.0.4",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
31
|
+
"hast": "^0.0.2",
|
|
31
32
|
"htm": "^3.1.1",
|
|
32
33
|
"livekit-client": "^2.9.9",
|
|
33
34
|
"marked": "^15.0.4",
|
|
@@ -35,7 +36,8 @@
|
|
|
35
36
|
"react": "^18.3.1",
|
|
36
37
|
"react-dom": "^18.3.1",
|
|
37
38
|
"react-indiana-drag-scroll": "^2.2.0",
|
|
38
|
-
"react-textarea-autosize": "^8.5.6"
|
|
39
|
+
"react-textarea-autosize": "^8.5.6",
|
|
40
|
+
"unist": "^0.0.1"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"@rollup/plugin-replace": "^6.0.2",
|
|
@@ -58,5 +60,5 @@
|
|
|
58
60
|
"publishConfig": {
|
|
59
61
|
"access": "public"
|
|
60
62
|
},
|
|
61
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "37834eaca71f85c26deee2b8609d129944673033"
|
|
62
64
|
}
|