@nlxai/touchpoint-ui 1.2.0 → 1.2.2-alpha.0

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.
@@ -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.0",
3
+ "version": "1.2.2-alpha.0",
4
4
  "description": "Web UI for Touchpoint",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -41,6 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@rollup/plugin-replace": "^6.0.2",
44
+ "@tailwindcss/vite": "^4.1.16",
44
45
  "@types/node": "^20.12.8",
45
46
  "@types/ramda": "^0.30.2",
46
47
  "@types/react": "^18.3.1",
@@ -48,11 +49,9 @@
48
49
  "@typescript-eslint/eslint-plugin": "^7.8.0",
49
50
  "@typescript-eslint/parser": "^7.8.0",
50
51
  "@vitejs/plugin-react": "^4.2.1",
51
- "autoprefixer": "^10.4.19",
52
52
  "dom-accessibility-api": "^0.7.0",
53
53
  "eslint-config-nlx": "*",
54
- "postcss": "^8.4.38",
55
- "tailwindcss": "^3.4.3",
54
+ "tailwindcss": "^4.1.16",
56
55
  "typescript": "^5.4.5",
57
56
  "vite": "^6.0",
58
57
  "vite-plugin-dts": "^4.5.0",
@@ -61,5 +60,5 @@
61
60
  "publishConfig": {
62
61
  "access": "public"
63
62
  },
64
- "gitHead": "15a993eac42b79df23aaa3a09761ccd768960cb8"
63
+ "gitHead": "a46c26f00875ef1c12472c5872e6233409d171c9"
65
64
  }
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
@@ -1,6 +0,0 @@
1
- export default {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -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
- };