@nlxai/touchpoint-ui 1.2.1 → 1.2.2-alpha.1
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/README.md +6 -0
- package/docs/README.md +134 -22
- package/docs/interfaces/BidirectionalContext.md +51 -0
- package/docs/interfaces/BidirectionalCustomCommand.md +79 -0
- package/docs/interfaces/ChoiceMessage.md +39 -0
- package/docs/interfaces/CustomCardProps.md +39 -3
- package/docs/interfaces/CustomCardRowProps.md +3 -3
- package/docs/interfaces/DateInputProps.md +13 -1
- package/docs/interfaces/IconButtonProps.md +5 -5
- package/docs/interfaces/Icons.IconProps.md +2 -2
- package/docs/interfaces/InputField.md +27 -0
- package/docs/interfaces/InteractiveElementInfo.md +21 -0
- package/docs/interfaces/PageForms.md +27 -0
- package/docs/interfaces/PageState.md +39 -0
- package/docs/interfaces/TextButtonProps.md +5 -5
- package/docs/interfaces/Theme.md +25 -25
- package/docs/interfaces/TouchpointConfiguration.md +73 -17
- package/docs/interfaces/TouchpointInstance.md +77 -3
- package/docs/modules/Icons.md +62 -41
- package/index.html +3 -1
- package/lib/components/FullscreenVoice.d.ts +2 -2
- package/lib/components/Messages.d.ts +1 -1
- package/lib/components/VoiceMini.d.ts +1 -1
- package/lib/components/defaultModalities/shared.d.ts +1 -1
- package/lib/index.js +13967 -12047
- package/lib/index.umd.js +78 -75
- package/lib/interface.d.ts +5 -0
- package/package.json +6 -6
- package/vite.config.ts +2 -0
- package/postcss.config.js +0 -6
- package/tailwind.config.js +0 -50
package/lib/interface.d.ts
CHANGED
|
@@ -360,6 +360,11 @@ export interface TouchpointConfiguration {
|
|
|
360
360
|
/**
|
|
361
361
|
* Optional custom modality components to render in Touchpoint
|
|
362
362
|
*/
|
|
363
|
+
modalityComponents?: Record<string, CustomModalityComponent<unknown>>;
|
|
364
|
+
/**
|
|
365
|
+
* Optional custom modality components to render in Touchpoint
|
|
366
|
+
* @deprecated use {@link TouchpointConfiguration.modalityComponents} instead.
|
|
367
|
+
*/
|
|
363
368
|
customModalities?: Record<string, CustomModalityComponent<unknown>>;
|
|
364
369
|
/**
|
|
365
370
|
* Custom conversation init method. Defaults to sending the welcome intent
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.2.1",
|
|
3
|
+
"version": "1.2.2-alpha.1",
|
|
4
4
|
"description": "Web UI for Touchpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,16 +31,18 @@
|
|
|
31
31
|
"@types/json-schema": "^7.0.15",
|
|
32
32
|
"clsx": "^2.1.1",
|
|
33
33
|
"htm": "^3.1.1",
|
|
34
|
-
"livekit-client": "^2.
|
|
34
|
+
"livekit-client": "^2.15.14",
|
|
35
35
|
"marked": "^15.0.4",
|
|
36
36
|
"ramda": "^0.30.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
38
38
|
"react-dom": "^18.3.1",
|
|
39
|
+
"react-error-boundary": "^6.0.0",
|
|
39
40
|
"react-indiana-drag-scroll": "^2.2.0",
|
|
40
41
|
"react-textarea-autosize": "^8.5.6"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@rollup/plugin-replace": "^6.0.2",
|
|
45
|
+
"@tailwindcss/vite": "^4.1.16",
|
|
44
46
|
"@types/node": "^20.12.8",
|
|
45
47
|
"@types/ramda": "^0.30.2",
|
|
46
48
|
"@types/react": "^18.3.1",
|
|
@@ -48,11 +50,9 @@
|
|
|
48
50
|
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
49
51
|
"@typescript-eslint/parser": "^7.8.0",
|
|
50
52
|
"@vitejs/plugin-react": "^4.2.1",
|
|
51
|
-
"autoprefixer": "^10.4.19",
|
|
52
53
|
"dom-accessibility-api": "^0.7.0",
|
|
53
54
|
"eslint-config-nlx": "*",
|
|
54
|
-
"
|
|
55
|
-
"tailwindcss": "^3.4.3",
|
|
55
|
+
"tailwindcss": "^4.1.16",
|
|
56
56
|
"typescript": "^5.4.5",
|
|
57
57
|
"vite": "^6.0",
|
|
58
58
|
"vite-plugin-dts": "^4.5.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "768073c5aa4cfd99f63fd8a9d1b8591e0eb4bcf5"
|
|
65
65
|
}
|
package/vite.config.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { resolve } from "path";
|
|
2
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
2
3
|
import react from "@vitejs/plugin-react";
|
|
3
4
|
import replace from "@rollup/plugin-replace";
|
|
4
5
|
import { defineConfig } from "vite";
|
|
@@ -25,6 +26,7 @@ const adjustJsEntryPoint = ({ mode }: { mode: string }): any => {
|
|
|
25
26
|
export default defineConfig(({ mode, command }) => ({
|
|
26
27
|
plugins: [
|
|
27
28
|
react(),
|
|
29
|
+
tailwindcss(),
|
|
28
30
|
replace(
|
|
29
31
|
command === "serve"
|
|
30
32
|
? {}
|
package/postcss.config.js
DELETED
package/tailwind.config.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: ["./src/**/*.{ts,tsx}"],
|
|
4
|
-
prefix: "",
|
|
5
|
-
theme: {
|
|
6
|
-
fontFamily: {
|
|
7
|
-
sans: ["var(--font-family)"],
|
|
8
|
-
},
|
|
9
|
-
extend: {
|
|
10
|
-
backdropBlur: {
|
|
11
|
-
overlay: "48px",
|
|
12
|
-
},
|
|
13
|
-
maxWidth: {
|
|
14
|
-
content: "640px",
|
|
15
|
-
},
|
|
16
|
-
borderRadius: {
|
|
17
|
-
inner: "var(--inner-border-radius)",
|
|
18
|
-
outer: "var(--outer-border-radius)",
|
|
19
|
-
},
|
|
20
|
-
zIndex: {
|
|
21
|
-
touchpoint: 1000,
|
|
22
|
-
launchButton: 100,
|
|
23
|
-
},
|
|
24
|
-
colors: {
|
|
25
|
-
"primary-80": "var(--primary-80)",
|
|
26
|
-
"primary-60": "var(--primary-60)",
|
|
27
|
-
"primary-40": "var(--primary-40)",
|
|
28
|
-
"primary-20": "var(--primary-20)",
|
|
29
|
-
"primary-10": "var(--primary-10)",
|
|
30
|
-
"primary-5": "var(--primary-5)",
|
|
31
|
-
"primary-1": "var(--primary-1)",
|
|
32
|
-
"secondary-80": "var(--secondary-80)",
|
|
33
|
-
"secondary-60": "var(--secondary-60)",
|
|
34
|
-
"secondary-40": "var(--secondary-40)",
|
|
35
|
-
"secondary-20": "var(--secondary-20)",
|
|
36
|
-
"secondary-10": "var(--secondary-10)",
|
|
37
|
-
"secondary-5": "var(--secondary-5)",
|
|
38
|
-
"secondary-1": "var(--secondary-1)",
|
|
39
|
-
accent: "var(--accent)",
|
|
40
|
-
"accent-20": "var(--accent-20)",
|
|
41
|
-
background: "var(--background)",
|
|
42
|
-
overlay: "var(--overlay)",
|
|
43
|
-
"warning-primary": "var(--warning-primary)",
|
|
44
|
-
"warning-secondary": "var(--warning-secondary)",
|
|
45
|
-
"error-primary": "var(--error-primary)",
|
|
46
|
-
"error-secondary": "var(--error-secondary)",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|