@nlxai/touchpoint-ui 1.1.7 → 1.1.8-alpha.1
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/README.md +23 -5
- package/lib/App.d.ts +1 -1
- package/lib/bidirectional/automaticContext.d.ts +1 -1
- package/lib/bidirectional/commandHandler.d.ts +1 -1
- package/lib/components/FullscreenVoice.d.ts +4 -6
- package/lib/components/Input.d.ts +1 -1
- package/lib/components/Messages.d.ts +3 -3
- package/lib/components/Settings.d.ts +1 -1
- package/lib/components/VoiceMini.d.ts +1 -1
- package/lib/components/defaultModalities/DefaultCard.d.ts +3 -0
- package/lib/components/defaultModalities/DefaultCarousel.d.ts +6 -0
- package/lib/components/defaultModalities/DefaultDateInput.d.ts +5 -0
- package/lib/components/defaultModalities/shared.d.ts +18 -0
- package/lib/components/ui/Carousel.d.ts +1 -0
- package/lib/components/ui/CustomCard.d.ts +4 -0
- package/lib/components/ui/DateInput.d.ts +4 -0
- package/lib/components/ui/Typography.d.ts +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4764 -4648
- package/lib/index.umd.js +38 -38
- package/lib/types.d.ts +7 -3
- package/lib/voice.d.ts +2 -2
- package/package.json +3 -3
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config,
|
|
1
|
+
import { Config, ApplicationMessage, ConversationHandler, Context } from '@nlxai/core';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Window size configuration
|
|
@@ -15,7 +15,7 @@ export interface ChoiceMessage {
|
|
|
15
15
|
/**
|
|
16
16
|
* Message contents
|
|
17
17
|
*/
|
|
18
|
-
message:
|
|
18
|
+
message: ApplicationMessage;
|
|
19
19
|
/**
|
|
20
20
|
* Index in the response transcript history
|
|
21
21
|
*/
|
|
@@ -44,6 +44,10 @@ export type CustomModalityComponent<Data> = ComponentType<{
|
|
|
44
44
|
* @internal
|
|
45
45
|
*/
|
|
46
46
|
enabled: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Class name to propagate to the container
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
47
51
|
}>;
|
|
48
52
|
/**
|
|
49
53
|
* The full theme expressed as CSS custom properties
|
|
@@ -250,7 +254,7 @@ export type BidirectionalConfig = {
|
|
|
250
254
|
*/
|
|
251
255
|
export interface TouchpointConfiguration {
|
|
252
256
|
/**
|
|
253
|
-
* Connection information for the \@nlxai/
|
|
257
|
+
* Connection information for the \@nlxai/core conversation handler
|
|
254
258
|
*/
|
|
255
259
|
config: Config;
|
|
256
260
|
/**
|
package/lib/voice.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context, ConversationHandler, ModalityPayloads } from '@nlxai/
|
|
1
|
+
import { Context, ConversationHandler, ModalityPayloads } from '@nlxai/core';
|
|
2
2
|
export interface SoundCheck {
|
|
3
3
|
micAllowed: boolean;
|
|
4
4
|
micNames: string[];
|
|
@@ -14,7 +14,7 @@ interface VoiceHookReturn {
|
|
|
14
14
|
roomState: VoiceRoomState;
|
|
15
15
|
isUserSpeaking: boolean;
|
|
16
16
|
isApplicationSpeaking: boolean;
|
|
17
|
-
|
|
17
|
+
modalities: ModalitiesWithContext[];
|
|
18
18
|
retry: () => Promise<void>;
|
|
19
19
|
}
|
|
20
20
|
interface VoiceHookParams {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8-alpha.1",
|
|
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/
|
|
27
|
+
"@nlxai/core": "^1.1.8-alpha.0",
|
|
28
28
|
"@react-hookz/web": "^25.0.1",
|
|
29
29
|
"@react-input/mask": "^2.0.4",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a3195cf5d9e18b40fe19d7055beb2555aa414a37"
|
|
64
64
|
}
|