@nlxai/touchpoint-ui 1.2.6 → 1.2.7-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.
- package/build/App.d.ts +20 -0
- package/build/ProviderStack.d.ts +10 -0
- package/build/assets/index-B9Yzt2if.js +233 -0
- package/build/assets/index-BbXI3y3Q.css +1 -0
- package/build/bidirectional/analyzePageForms.d.ts +35 -0
- package/build/bidirectional/automaticContext.d.ts +12 -0
- package/build/bidirectional/commandHandler.d.ts +5 -0
- package/build/bidirectional/debug.d.ts +1 -0
- package/build/components/ErrorMessage.d.ts +4 -0
- package/build/components/FeedbackComment.d.ts +6 -0
- package/build/components/FullscreenError.d.ts +2 -0
- package/build/components/FullscreenVoice.d.ts +32 -0
- package/build/components/Header.d.ts +20 -0
- package/build/components/Input.d.ts +14 -0
- package/build/components/Layout.d.ts +23 -0
- package/build/components/Messages.d.ts +33 -0
- package/build/components/Notice.d.ts +4 -0
- package/build/components/Ripple.d.ts +9 -0
- package/build/components/RiveAnimation.d.ts +4 -0
- package/build/components/SafeMarkdown.d.ts +4 -0
- package/build/components/Settings.d.ts +10 -0
- package/build/components/Theme.d.ts +4 -0
- package/build/components/VoiceMini.d.ts +13 -0
- package/build/components/VoiceModalities.d.ts +11 -0
- package/build/components/defaultModalities/DefaultCard.d.ts +3 -0
- package/build/components/defaultModalities/DefaultCarousel.d.ts +6 -0
- package/build/components/defaultModalities/DefaultDateInput.d.ts +5 -0
- package/build/components/defaultModalities/shared.d.ts +20 -0
- package/build/components/ui/Carousel.d.ts +26 -0
- package/build/components/ui/CustomCard.d.ts +101 -0
- package/build/components/ui/DateInput.d.ts +30 -0
- package/build/components/ui/IconButton.d.ts +68 -0
- package/build/components/ui/Icons.d.ts +63 -0
- package/build/components/ui/LaunchButton.d.ts +13 -0
- package/build/components/ui/LightDarkToggle.d.ts +47 -0
- package/build/components/ui/Loader.d.ts +7 -0
- package/build/components/ui/MessageButton.d.ts +58 -0
- package/build/components/ui/PicturesContainer.d.ts +9 -0
- package/build/components/ui/Radio.d.ts +14 -0
- package/build/components/ui/TextButton.d.ts +46 -0
- package/build/components/ui/Typography.d.ts +29 -0
- package/build/components/ui/ViewMediaModal.d.ts +8 -0
- package/build/design-system.d.ts +1 -0
- package/build/favicon.ico +0 -0
- package/build/feedback.d.ts +38 -0
- package/build/index.d.ts +63 -0
- package/build/index.html +13 -0
- package/build/interface.d.ts +569 -0
- package/build/mocks/MockText.d.ts +10 -0
- package/build/mocks/MockVoice.d.ts +10 -0
- package/build/mocks/MockVoiceMini.d.ts +8 -0
- package/build/mocks/shared.d.ts +5 -0
- package/build/preview.d.ts +10 -0
- package/build/types.d.ts +5 -0
- package/build/utils/useAppRoot.d.ts +3 -0
- package/build/utils/useCopy.d.ts +4 -0
- package/build/utils/useTailwindMediaQuery.d.ts +1 -0
- package/build/voice.d.ts +70 -0
- package/index.html +43 -47
- package/lib/ProviderStack.d.ts +0 -21
- package/lib/components/FullscreenVoice.d.ts +4 -6
- package/lib/components/Layout.d.ts +23 -0
- package/lib/components/VoiceModalities.d.ts +11 -0
- package/lib/components/defaultModalities/index.d.ts +2 -0
- package/lib/components/ui/Radio.d.ts +14 -0
- package/lib/design-system/LightDarkToggle.d.ts +50 -0
- package/lib/design-system/index.d.ts +1 -0
- package/lib/index.js +11516 -11445
- package/lib/index.umd.js +82 -82
- package/lib/mocks/MockText.d.ts +10 -0
- package/lib/mocks/MockVoice.d.ts +10 -0
- package/lib/mocks/MockVoiceMini.d.ts +8 -0
- package/lib/mocks/shared.d.ts +5 -0
- package/package.json +3 -2
- package/vite.config.ts +61 -32
- package/lib/design-system.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { WindowSize, ColorMode } from '../interface';
|
|
3
|
+
export declare const MockText: FC<{
|
|
4
|
+
embedded: boolean;
|
|
5
|
+
colorMode?: ColorMode;
|
|
6
|
+
isExpanded: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onExpand: () => void;
|
|
9
|
+
windowSize: WindowSize;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { WindowSize, ColorMode } from '../interface';
|
|
3
|
+
export declare const MockVoice: FC<{
|
|
4
|
+
embedded: boolean;
|
|
5
|
+
colorMode?: ColorMode;
|
|
6
|
+
isExpanded: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onExpand: () => void;
|
|
9
|
+
windowSize: WindowSize;
|
|
10
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7-alpha.0",
|
|
4
4
|
"description": "Web UI for Touchpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"dev": "vite",
|
|
14
14
|
"design-system": "vite --mode design-system",
|
|
15
|
+
"build:design-system": "vite build --mode design-system",
|
|
15
16
|
"build": "tsc && vite build",
|
|
16
17
|
"docs": "rm -rf docs/ && typedoc && concat-md --decrease-title-levels --dir-name-as-title docs/ > docs/index.md",
|
|
17
18
|
"lint:check": "eslint src/ --ext .ts,.tsx,.js,.jsx --max-warnings 0",
|
|
@@ -72,5 +73,5 @@
|
|
|
72
73
|
"publishConfig": {
|
|
73
74
|
"access": "public"
|
|
74
75
|
},
|
|
75
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "e7790346d0425fceeb4a35708978251235550d5f"
|
|
76
77
|
}
|
package/vite.config.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { resolve } from "path";
|
|
2
2
|
import tailwindcss from "@tailwindcss/vite";
|
|
3
|
+
import { type PluginOption } from "vite";
|
|
3
4
|
import react from "@vitejs/plugin-react";
|
|
4
5
|
import replace from "@rollup/plugin-replace";
|
|
5
6
|
import { defineConfig } from "vite";
|
|
@@ -8,43 +9,71 @@ import dts from "vite-plugin-dts";
|
|
|
8
9
|
/**
|
|
9
10
|
* Adjust the JS entry point if the app is run in prototype or review modes
|
|
10
11
|
*/
|
|
11
|
-
const
|
|
12
|
+
const designSystemEntryPoint = (): PluginOption => {
|
|
12
13
|
return {
|
|
13
14
|
name: "html-transform",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
transformIndexHtml: {
|
|
16
|
+
order: "pre",
|
|
17
|
+
handler: () => {
|
|
18
|
+
return {
|
|
19
|
+
html: `<!doctype html>
|
|
20
|
+
<html lang="en">
|
|
21
|
+
<head>
|
|
22
|
+
<meta charset="UTF-8" />
|
|
23
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
24
|
+
<title>Design System</title>
|
|
25
|
+
</head>
|
|
26
|
+
<body>
|
|
27
|
+
<main></main>
|
|
28
|
+
<script type="module">
|
|
29
|
+
import { renderDesignSystem } from "./src/design-system/index.tsx";
|
|
30
|
+
|
|
31
|
+
renderDesignSystem(document.querySelector("main"));
|
|
32
|
+
</script>
|
|
33
|
+
</body>
|
|
34
|
+
</html>
|
|
35
|
+
`,
|
|
36
|
+
tags: [],
|
|
37
|
+
};
|
|
38
|
+
},
|
|
21
39
|
},
|
|
22
40
|
};
|
|
23
41
|
};
|
|
24
42
|
|
|
43
|
+
const sharedPlugins = (command: "serve" | "build"): PluginOption[] => [
|
|
44
|
+
react(),
|
|
45
|
+
tailwindcss(),
|
|
46
|
+
replace(
|
|
47
|
+
command === "serve"
|
|
48
|
+
? {}
|
|
49
|
+
: {
|
|
50
|
+
"process.env.NODE_ENV": JSON.stringify("production"),
|
|
51
|
+
},
|
|
52
|
+
),
|
|
53
|
+
dts(),
|
|
54
|
+
];
|
|
55
|
+
|
|
25
56
|
// https://vitejs.dev/config/
|
|
26
|
-
export default defineConfig(({ mode, command }) =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
57
|
+
export default defineConfig(({ mode, command }) =>
|
|
58
|
+
mode === "design-system"
|
|
59
|
+
? {
|
|
60
|
+
plugins: [designSystemEntryPoint(), ...sharedPlugins(command)],
|
|
61
|
+
build: {
|
|
62
|
+
outDir: "build",
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
: {
|
|
66
|
+
plugins: sharedPlugins(command),
|
|
67
|
+
resolve: {},
|
|
68
|
+
build: {
|
|
69
|
+
outDir: "lib",
|
|
70
|
+
lib: {
|
|
71
|
+
entry: resolve(__dirname, "./src/index.tsx"),
|
|
72
|
+
type: ["umd", "es"],
|
|
73
|
+
name: "nlxai.touchpointUi",
|
|
74
|
+
fileName: (format) =>
|
|
75
|
+
format === "umd" ? "index.umd.js" : "index.js",
|
|
35
76
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
],
|
|
40
|
-
resolve: {},
|
|
41
|
-
build: {
|
|
42
|
-
outDir: "lib",
|
|
43
|
-
lib: {
|
|
44
|
-
entry: resolve(__dirname, "./src/index.tsx"),
|
|
45
|
-
type: ["umd", "es"],
|
|
46
|
-
name: "nlxai.touchpointUi",
|
|
47
|
-
fileName: (format) => (format === "umd" ? "index.umd.js" : "index.js"),
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
}));
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
);
|
package/lib/design-system.d.ts
DELETED
|
File without changes
|