@nlxai/touchpoint-ui 1.0.5-alpha.10 → 1.0.5-alpha.11

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.
@@ -5,6 +5,7 @@ import { SoundCheck } from '../voice';
5
5
  interface Props {
6
6
  colorMode: ColorMode;
7
7
  handler: ConversationHandler;
8
+ speakersEnabled: boolean;
8
9
  className?: string;
9
10
  active: boolean;
10
11
  setActive: Dispatch<SetStateAction<boolean>>;
@@ -1,8 +1,13 @@
1
- import { FC } from 'react';
1
+ import { SetStateAction, Dispatch, FC } from 'react';
2
2
  import { WindowSize, ColorMode } from '../types';
3
3
  interface HeaderProps {
4
4
  windowSize: WindowSize | "embedded";
5
5
  colorMode: ColorMode;
6
+ errorThemedCloseButton?: boolean;
7
+ speakerControls?: {
8
+ enabled: boolean;
9
+ setEnabled: Dispatch<SetStateAction<boolean>>;
10
+ };
6
11
  brandIcon?: string;
7
12
  renderCollapse: boolean;
8
13
  collapse: (event: Event) => void;
package/lib/index.d.ts CHANGED
@@ -7,6 +7,16 @@ import { Carousel } from './components/ui/Carousel';
7
7
  import { DateInput } from './components/ui/DateInput';
8
8
  import { TouchpointConfiguration } from './types';
9
9
  import * as Icons from "./components/ui/Icons";
10
+ /**
11
+ * If you wish to build custom modalities using JSX, you will want to
12
+ *
13
+ * ```javascript
14
+ * import { React } from "@nlx/touchpoint-ui";
15
+ * ```
16
+ *
17
+ * instead of importing from "react" directly. This ensures that the custom modalities will
18
+ * be running in the same React context as the Touchpoint UI using the correct version of React.
19
+ */
10
20
  export { default as React } from 'react';
11
21
  export declare const html: (strings: TemplateStringsArray, ...values: any[]) => unknown;
12
22
  export { TextButton, IconButton, BaseText, SmallText, DateInput, Carousel, CustomCard, CustomCardRow, CustomCardImageRow, Icons, };
@@ -14,7 +24,7 @@ export { type CustomCardProps, type CustomCardRowProps, } from './components/ui/
14
24
  export { type DateInputProps } from './components/ui/DateInput';
15
25
  export { type IconButtonProps, type IconButtonType, } from './components/ui/IconButton';
16
26
  export { type TextButtonProps } from './components/ui/TextButton';
17
- export { type InitializeConversation, type ColorMode, type Theme, type WindowSize, type CustomModalityComponent, type TouchpointConfiguration, } from './types';
27
+ export { type InitializeConversation, type ColorMode, type Input, type Theme, type WindowSize, type CustomModalityComponent, type TouchpointConfiguration, } from './types';
18
28
  /**
19
29
  * Instance of a Touchpoint UI component
20
30
  */