@nlxai/touchpoint-ui 1.1.3 → 1.1.5
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 +2 -2
- package/lib/App.d.ts +2 -3
- package/lib/bidirectional/automaticContext.d.ts +5 -0
- package/lib/bidirectional/commandHandler.d.ts +8 -0
- package/lib/components/FullscreenVoice.d.ts +2 -8
- package/lib/components/VoiceMini.d.ts +2 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +6165 -6120
- package/lib/index.umd.js +50 -43
- package/lib/types.d.ts +82 -1
- package/lib/voice.d.ts +9 -11
- package/package.json +6 -4
- /package/lib/{analyzePageForms.d.ts → bidirectional/analyzePageForms.d.ts} +0 -0
package/index.html
CHANGED
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
const touchpoint = await create({
|
|
137
137
|
config: {
|
|
138
138
|
applicationUrl:
|
|
139
|
-
"https://bots.dev.studio.nlx.ai/c/
|
|
139
|
+
"https://bots.dev.studio.nlx.ai/c/CBuQ3LpsClG5EQoSObVkK/IPzJitiaN8qtJFL3Wz1Jp",
|
|
140
140
|
headers: {
|
|
141
|
-
"nlx-api-key": "
|
|
141
|
+
"nlx-api-key": "m3kVBd9QeCc5bXInhWIPG3ns",
|
|
142
142
|
},
|
|
143
143
|
userId: "1234-5678",
|
|
144
144
|
languageCode: "en-US",
|
package/lib/App.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ConversationHandler } from '@nlxai/chat-core';
|
|
2
|
-
import {
|
|
2
|
+
import { NormalizedTouchpointConfiguration } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Main Touchpoint creation properties object
|
|
5
5
|
*/
|
|
6
|
-
interface Props extends
|
|
6
|
+
interface Props extends NormalizedTouchpointConfiguration {
|
|
7
7
|
embedded: boolean;
|
|
8
8
|
onClose: ((event: Event) => void) | null;
|
|
9
9
|
enableSettings: boolean;
|
|
10
10
|
enabled: boolean;
|
|
11
|
-
initializeConversation: InitializeConversation;
|
|
12
11
|
}
|
|
13
12
|
export interface AppRef {
|
|
14
13
|
setExpanded: (val: boolean) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConversationHandler } from '@nlxai/chat-core';
|
|
2
|
+
import { BidirectionalConfig } from '../types';
|
|
3
|
+
export declare const commandHandler: (handler: ConversationHandler, bidirectional: BidirectionalConfig, pageState: {
|
|
4
|
+
current: {
|
|
5
|
+
formElements: Record<string, Element>;
|
|
6
|
+
links: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
}) => () => void;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { Context, ConversationHandler } from '@nlxai/chat-core';
|
|
3
3
|
import { ColorMode, InitializeConversation, CustomModalityComponent } from '../types';
|
|
4
|
-
import {
|
|
4
|
+
import { ModalitiesWithContext } from '../voice';
|
|
5
5
|
interface Props {
|
|
6
6
|
colorMode: ColorMode;
|
|
7
7
|
handler: ConversationHandler;
|
|
8
8
|
speakersEnabled: boolean;
|
|
9
9
|
brandIcon?: string;
|
|
10
10
|
className?: string;
|
|
11
|
-
active: boolean;
|
|
12
|
-
setActive: Dispatch<SetStateAction<boolean>>;
|
|
13
11
|
context?: Context;
|
|
14
12
|
initializeConversation: InitializeConversation;
|
|
15
13
|
customModalities?: Record<string, CustomModalityComponent<unknown>>;
|
|
16
14
|
}
|
|
17
|
-
export declare const SoundCheckUi: FC<{
|
|
18
|
-
showDevices: boolean;
|
|
19
|
-
soundCheck: SoundCheck | null;
|
|
20
|
-
}>;
|
|
21
15
|
export declare const VoiceModalities: FC<{
|
|
22
16
|
Wrapper?: FC<{
|
|
23
17
|
children: ReactNode;
|
|
@@ -4,6 +4,7 @@ import { CustomModalityComponent } from '../types';
|
|
|
4
4
|
export declare const VoiceMini: FC<{
|
|
5
5
|
customModalities: Record<string, CustomModalityComponent<unknown>>;
|
|
6
6
|
handler: ConversationHandler;
|
|
7
|
-
|
|
7
|
+
renderCollapse: boolean;
|
|
8
|
+
onClose: (event: Event) => void;
|
|
8
9
|
context?: Context;
|
|
9
10
|
}>;
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Carousel } from './components/ui/Carousel';
|
|
|
8
8
|
import { DateInput } from './components/ui/DateInput';
|
|
9
9
|
import { TouchpointConfiguration } from './types';
|
|
10
10
|
import * as Icons from "./components/ui/Icons";
|
|
11
|
-
export { analyzePageForms, type InteractiveElementInfo, type PageForms, type AccessibilityInformation, } from './analyzePageForms';
|
|
11
|
+
export { analyzePageForms, type InteractiveElementInfo, type PageForms, type AccessibilityInformation, } from './bidirectional/analyzePageForms';
|
|
12
12
|
/**
|
|
13
13
|
* If you wish to build custom modalities using JSX, you will want to
|
|
14
14
|
*
|
|
@@ -30,7 +30,7 @@ export { type CustomCardProps, type CustomCardRowProps, } from './components/ui/
|
|
|
30
30
|
export { type DateInputProps } from './components/ui/DateInput';
|
|
31
31
|
export { type IconButtonProps, type IconButtonType, } from './components/ui/IconButton';
|
|
32
32
|
export { type TextButtonProps } from './components/ui/TextButton';
|
|
33
|
-
export { type InitializeConversation, type ColorMode, type Input, type Theme, type WindowSize, type CustomModalityComponent, type TouchpointConfiguration, type CustomLaunchButton, } from './types';
|
|
33
|
+
export { type InitializeConversation, type ColorMode, type Input, type Theme, type WindowSize, type CustomModalityComponent, type TouchpointConfiguration, type CustomLaunchButton, type BidirectionalConfig, } from './types';
|
|
34
34
|
/**
|
|
35
35
|
* Instance of a Touchpoint UI component
|
|
36
36
|
*/
|