@nlxai/touchpoint-ui 1.0.4-alpha.2 → 1.0.4
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 +14 -5
- package/lib/components/FullscreenError.d.ts +2 -0
- package/lib/components/{ChatHeader.d.ts → Header.d.ts} +4 -4
- package/lib/components/{ChatInput.d.ts → Input.d.ts} +3 -3
- package/lib/components/{ChatMessages.d.ts → Messages.d.ts} +2 -2
- package/lib/components/Settings.d.ts +9 -0
- package/lib/components/ui/Carousel.d.ts +4 -0
- package/lib/components/ui/CustomCard.d.ts +0 -3
- package/lib/components/ui/LaunchButton.d.ts +1 -0
- package/lib/index.d.ts +8 -7
- package/lib/index.js +3854 -3332
- package/lib/index.umd.js +44 -43
- package/lib/preview.d.ts +10 -0
- package/lib/types.d.ts +13 -5
- package/package.json +4 -4
- package/tailwind.config.js +2 -2
- package/lib/components/ChatSettings.d.ts +0 -12
- package/lib/context.d.ts +0 -6
package/lib/preview.d.ts
ADDED
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BotMessage } from '@nlxai/chat-core';
|
|
1
|
+
import { BotMessage, ConversationHandler } from '@nlxai/chat-core';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Window size configuration
|
|
@@ -8,10 +8,6 @@ export type WindowSize = "half" | "full";
|
|
|
8
8
|
* Color mode configuration (light/dark modes)
|
|
9
9
|
*/
|
|
10
10
|
export type ColorMode = "light" | "dark";
|
|
11
|
-
/**
|
|
12
|
-
* Logo URL if applicable. May be specified as a single image URL or as an object by color mode (light/dark)
|
|
13
|
-
*/
|
|
14
|
-
export type LogoUrl = string | Record<ColorMode, string>;
|
|
15
11
|
/**
|
|
16
12
|
* Choice message with metadata
|
|
17
13
|
*/
|
|
@@ -38,6 +34,10 @@ export type CustomModalityComponent<Data> = FC<{
|
|
|
38
34
|
* The payload of the Custom Modality. The schema is defined in Dialog Studio settings.
|
|
39
35
|
*/
|
|
40
36
|
data: Data;
|
|
37
|
+
/**
|
|
38
|
+
* Conversation handler instance
|
|
39
|
+
*/
|
|
40
|
+
conversationHandler: ConversationHandler;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* The full theme expressed as CSS custom properties
|
|
@@ -135,4 +135,12 @@ export interface Theme {
|
|
|
135
135
|
* Secondary error color
|
|
136
136
|
*/
|
|
137
137
|
errorSecondary: string;
|
|
138
|
+
/**
|
|
139
|
+
* Inner border radius: used for most buttons
|
|
140
|
+
*/
|
|
141
|
+
innerBorderRadius: string;
|
|
142
|
+
/**
|
|
143
|
+
* Outer border radius: generally used for elements that contain buttons that have inner border radius. Also used by the launch button.
|
|
144
|
+
*/
|
|
145
|
+
outerBorderRadius: string;
|
|
138
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.0.4
|
|
3
|
+
"version": "1.0.4",
|
|
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/chat-core": "^1.0.4
|
|
27
|
+
"@nlxai/chat-core": "^1.0.4",
|
|
28
28
|
"@react-hookz/web": "^25.0.1",
|
|
29
29
|
"@react-input/mask": "^2.0.4",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"postcss": "^8.4.38",
|
|
51
51
|
"tailwindcss": "^3.4.3",
|
|
52
52
|
"typescript": "^5.4.5",
|
|
53
|
-
"vite": "^5.
|
|
53
|
+
"vite": "^4.5.6",
|
|
54
54
|
"vite-plugin-dts": "^4.5.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "27ff05880575d5e4656c5d22dd85d29e9490d9d2"
|
|
60
60
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { ConversationHandler } from '@nlxai/chat-core';
|
|
3
|
-
import { WindowSize } from '../types';
|
|
4
|
-
interface ChatSettingsProps {
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
handler: ConversationHandler;
|
|
7
|
-
windowSize: WindowSize;
|
|
8
|
-
setWindowSizeOverride: Dispatch<SetStateAction<WindowSize | null>>;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const ChatSettings: FC<ChatSettingsProps>;
|
|
12
|
-
export {};
|
package/lib/context.d.ts
DELETED