@nlxai/touchpoint-ui 1.0.4-alpha.1 → 1.0.4-alpha.3
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/lib/App.d.ts +9 -2
- package/lib/components/ChatHeader.d.ts +2 -2
- package/lib/components/ChatSettings.d.ts +1 -4
- package/lib/components/ui/LaunchButton.d.ts +1 -0
- package/lib/index.js +1860 -1888
- package/lib/index.umd.js +161 -0
- package/lib/types.d.ts +8 -4
- package/package.json +2 -2
- package/tailwind.config.js +2 -2
- package/vite.config.ts +2 -1
- package/lib/index.umd.cjs +0 -161
package/lib/App.d.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { ConversationHandler, Config } from '@nlxai/chat-core';
|
|
2
|
-
import { ColorMode, WindowSize,
|
|
2
|
+
import { ColorMode, WindowSize, Theme, CustomModalityComponent } from './types';
|
|
3
3
|
export interface Props {
|
|
4
4
|
config: Config;
|
|
5
5
|
windowSize?: WindowSize;
|
|
6
6
|
colorMode?: ColorMode;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* URL of icon used to display the brand in the chat header
|
|
9
|
+
*/
|
|
10
|
+
brandIcon?: string;
|
|
11
|
+
/**
|
|
12
|
+
* URL of icon used on the launch icon in the bottom right when the experience is collapsed
|
|
13
|
+
*/
|
|
14
|
+
launchIcon?: string;
|
|
8
15
|
theme?: Partial<Theme>;
|
|
9
16
|
customModalities?: Record<string, CustomModalityComponent<any>>;
|
|
10
17
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { WindowSize,
|
|
2
|
+
import { WindowSize, ColorMode } from '../types';
|
|
3
3
|
interface ChatHeaderProps {
|
|
4
4
|
windowSize: WindowSize;
|
|
5
5
|
colorMode: ColorMode;
|
|
6
|
-
|
|
6
|
+
brandIcon?: string;
|
|
7
7
|
collapse: () => void;
|
|
8
8
|
reset: () => void;
|
|
9
9
|
toggleSettings?: () => void;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { FC
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { ConversationHandler } from '@nlxai/chat-core';
|
|
3
|
-
import { WindowSize } from '../types';
|
|
4
3
|
interface ChatSettingsProps {
|
|
5
4
|
onClose: () => void;
|
|
6
5
|
handler: ConversationHandler;
|
|
7
|
-
windowSize: WindowSize;
|
|
8
|
-
setWindowSizeOverride: Dispatch<SetStateAction<WindowSize | null>>;
|
|
9
6
|
className?: string;
|
|
10
7
|
}
|
|
11
8
|
export declare const ChatSettings: FC<ChatSettingsProps>;
|