@nlxai/touchpoint-ui 1.0.5-alpha.1 → 1.0.5-alpha.2

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 CHANGED
@@ -100,6 +100,7 @@
100
100
  userId: "1234-5678",
101
101
  languageCode: "en-US",
102
102
  },
103
+ input: "textAndVoice",
103
104
  });
104
105
  touchpoint.expanded = true;
105
106
  </script>
package/lib/App.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ConversationHandler } from '@nlxai/chat-core';
2
- import { TouchpointConfiguration } from './types';
2
+ import { TouchpointConfiguration, InitializeConversation } from './types';
3
3
  /**
4
4
  * Main Touchpoint creation properties object
5
5
  */
@@ -8,6 +8,7 @@ interface Props extends TouchpointConfiguration {
8
8
  onClose: ((event: Event) => void) | null;
9
9
  enableSettings: boolean;
10
10
  enabled: boolean;
11
+ initializeConversation: InitializeConversation;
11
12
  }
12
13
  export interface AppRef {
13
14
  setExpanded: (val: boolean) => void;
@@ -10,6 +10,7 @@ interface InputProps {
10
10
  file: File;
11
11
  }) => void;
12
12
  choiceMessage?: ChoiceMessage;
13
+ voiceEnabled: boolean;
13
14
  enabled: boolean;
14
15
  }
15
16
  export declare const Input: FC<InputProps>;
@@ -9,7 +9,7 @@ import { IconProps } from './Icons';
9
9
  * - `coverup`: An icon button used to cover up or mask something.
10
10
  * - `overlay`: An icon button that appears over other content.
11
11
  */
12
- export type IconButtonType = "main" | "ghost" | "activated" | "coverup" | "overlay";
12
+ export type IconButtonType = "main" | "ghost" | "activated" | "coverup" | "error" | "overlay";
13
13
  /**
14
14
  * Props for the IconButton component
15
15
  */
package/lib/index.d.ts CHANGED
@@ -14,7 +14,7 @@ export { type CustomCardProps, type CustomCardRowProps, } from './components/ui/
14
14
  export { type DateInputProps } from './components/ui/DateInput';
15
15
  export { type IconButtonProps, type IconButtonType, } from './components/ui/IconButton';
16
16
  export { type TextButtonProps } from './components/ui/TextButton';
17
- export { type ColorMode, type Theme, type WindowSize, type CustomModalityComponent, type TouchpointConfiguration, } from './types';
17
+ export { type InitializeConversation, type ColorMode, type Theme, type WindowSize, type CustomModalityComponent, type TouchpointConfiguration, } from './types';
18
18
  /**
19
19
  * Instance of a Touchpoint UI component
20
20
  */