@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/docs/README.md +17 -17
- package/docs/interfaces/CustomCardProps.md +3 -3
- package/docs/interfaces/CustomCardRowProps.md +3 -3
- package/docs/interfaces/DateInputProps.md +1 -1
- package/docs/interfaces/IconButtonProps.md +5 -5
- package/docs/interfaces/Icons.IconProps.md +2 -2
- package/docs/interfaces/TextButtonProps.md +5 -5
- package/docs/interfaces/Theme.md +25 -25
- package/docs/interfaces/TouchpointConfiguration.md +24 -12
- package/docs/interfaces/TouchpointInstance.md +3 -3
- package/docs/modules/Icons.md +41 -41
- package/lib/components/ErrorMessage.d.ts +4 -0
- package/lib/components/FullscreenVoice.d.ts +12 -2
- package/lib/components/VoiceMini.d.ts +5 -0
- package/lib/components/ui/Loader.d.ts +1 -1
- package/lib/index.js +6064 -5861
- package/lib/index.umd.js +46 -46
- package/lib/types.d.ts +1 -1
- package/lib/voice.d.ts +11 -2
- package/package.json +4 -4
package/lib/types.d.ts
CHANGED
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
|
-
|
|
14
|
+
interface UseVoiceParams {
|
|
9
15
|
active: boolean;
|
|
16
|
+
micEnabled: boolean;
|
|
17
|
+
speakersEnabled: boolean;
|
|
10
18
|
handler: ConversationHandler;
|
|
11
|
-
}
|
|
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.
|
|
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.
|
|
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.
|
|
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": "
|
|
60
|
+
"gitHead": "18cbbadac7360430f812049e5833853223c679f6"
|
|
61
61
|
}
|