@clikvn/agent-widget-embedded 1.1.11 → 1.1.12-dev-02

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.
Files changed (41) hide show
  1. package/CLAUDE.md +169 -169
  2. package/base.json +21 -21
  3. package/dist/commons/constants/variables.d.ts +1 -0
  4. package/dist/commons/constants/variables.d.ts.map +1 -1
  5. package/dist/components/Chat/Icons.d.ts +2 -1
  6. package/dist/components/Chat/Icons.d.ts.map +1 -1
  7. package/dist/components/Chat/Message.d.ts.map +1 -1
  8. package/dist/components/Chat/ProductDetail.d.ts +1 -0
  9. package/dist/components/Chat/ProductDetail.d.ts.map +1 -1
  10. package/dist/components/Chat/ProductList.d.ts +3 -3
  11. package/dist/components/Chat/ProductList.d.ts.map +1 -1
  12. package/dist/index.html +68 -65
  13. package/dist/models.d.ts +1 -1
  14. package/dist/models.d.ts.map +1 -1
  15. package/dist/services/vt360.service.d.ts.map +1 -1
  16. package/dist/web.d.ts.map +1 -1
  17. package/dist/web.js +1 -1
  18. package/docs/agent-response-trace/agentflow.txt +62 -62
  19. package/docs/agent-response-trace/chatflow.txt +26 -26
  20. package/docs/brand-ui-command-actions-tools.md +269 -269
  21. package/package.json +2 -2
  22. package/rollup.config.js +67 -67
  23. package/tailwind.config.cjs +145 -145
  24. package/.idea/clik-ai-chatbot-embedded.iml +0 -9
  25. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  26. package/.idea/inspectionProfiles/Project_Default.xml +0 -36
  27. package/.idea/jsLinters/eslint.xml +0 -7
  28. package/.idea/misc.xml +0 -9
  29. package/.idea/modules.xml +0 -8
  30. package/.idea/prettier.xml +0 -8
  31. package/.idea/vcs.xml +0 -6
  32. package/dist/components/Chat/AudioPlayerSimple.d.ts +0 -9
  33. package/dist/components/Chat/AudioPlayerSimple.d.ts.map +0 -1
  34. package/dist/components/Chat/MultimodalInputSimple.d.ts +0 -22
  35. package/dist/components/Chat/MultimodalInputSimple.d.ts.map +0 -1
  36. package/dist/components/Chat/Sidebar.d.ts +0 -8
  37. package/dist/components/Chat/Sidebar.d.ts.map +0 -1
  38. package/dist/serve.json +0 -11
  39. package/dist/simplifiedRegister.d.ts +0 -53
  40. package/dist/simplifiedRegister.d.ts.map +0 -1
  41. package/dist/web.css +0 -3680
package/rollup.config.js CHANGED
@@ -1,67 +1,67 @@
1
- import resolve from '@rollup/plugin-node-resolve';
2
- import commonjs from '@rollup/plugin-commonjs';
3
- import typescript from '@rollup/plugin-typescript';
4
- import { terser } from 'rollup-plugin-terser';
5
- import postcss from 'rollup-plugin-postcss';
6
- import { babel } from '@rollup/plugin-babel';
7
- import autoprefixer from 'autoprefixer';
8
- import { typescriptPaths } from 'rollup-plugin-typescript-paths';
9
- import json from '@rollup/plugin-json';
10
- import { uglify } from 'rollup-plugin-uglify';
11
- import replace from 'rollup-plugin-replace';
12
- import tailwindcss from 'tailwindcss';
13
-
14
- const extensions = ['.ts', '.tsx', '.js'];
15
-
16
- const indexConfig = {
17
- context: 'this',
18
- onwarn(warning, warn) {
19
- // Bỏ qua warning về "use client" directive
20
- if (
21
- warning.code === 'MODULE_LEVEL_DIRECTIVE' &&
22
- warning.message.includes('"use client"')
23
- ) {
24
- return;
25
- }
26
- // Hiển thị các warning khác
27
- warn(warning);
28
- },
29
- plugins: [
30
- resolve({ extensions, browser: true }),
31
- commonjs(),
32
- uglify(),
33
- json(),
34
- babel({
35
- babelHelpers: 'bundled',
36
- exclude: 'node_modules/**',
37
- extensions,
38
- }),
39
- replace({
40
- 'process.env.NODE_ENV': JSON.stringify('production'),
41
- }),
42
- postcss({
43
- plugins: [autoprefixer(), tailwindcss()],
44
- extract: false,
45
- modules: false,
46
- autoModules: false,
47
- minimize: true,
48
- inject: false,
49
- }),
50
- typescript(),
51
- typescriptPaths({ preserveExtensions: true }),
52
- terser({ output: { comments: false } }),
53
- ],
54
- };
55
-
56
- const configs = [
57
- {
58
- ...indexConfig,
59
- input: './src/web.ts',
60
- output: {
61
- file: 'dist/web.js',
62
- format: 'esm',
63
- },
64
- },
65
- ];
66
-
67
- export default configs;
1
+ import resolve from '@rollup/plugin-node-resolve';
2
+ import commonjs from '@rollup/plugin-commonjs';
3
+ import typescript from '@rollup/plugin-typescript';
4
+ import { terser } from 'rollup-plugin-terser';
5
+ import postcss from 'rollup-plugin-postcss';
6
+ import { babel } from '@rollup/plugin-babel';
7
+ import autoprefixer from 'autoprefixer';
8
+ import { typescriptPaths } from 'rollup-plugin-typescript-paths';
9
+ import json from '@rollup/plugin-json';
10
+ import { uglify } from 'rollup-plugin-uglify';
11
+ import replace from 'rollup-plugin-replace';
12
+ import tailwindcss from 'tailwindcss';
13
+
14
+ const extensions = ['.ts', '.tsx', '.js'];
15
+
16
+ const indexConfig = {
17
+ context: 'this',
18
+ onwarn(warning, warn) {
19
+ // Bỏ qua warning về "use client" directive
20
+ if (
21
+ warning.code === 'MODULE_LEVEL_DIRECTIVE' &&
22
+ warning.message.includes('"use client"')
23
+ ) {
24
+ return;
25
+ }
26
+ // Hiển thị các warning khác
27
+ warn(warning);
28
+ },
29
+ plugins: [
30
+ resolve({ extensions, browser: true }),
31
+ commonjs(),
32
+ uglify(),
33
+ json(),
34
+ babel({
35
+ babelHelpers: 'bundled',
36
+ exclude: 'node_modules/**',
37
+ extensions,
38
+ }),
39
+ replace({
40
+ 'process.env.NODE_ENV': JSON.stringify('production'),
41
+ }),
42
+ postcss({
43
+ plugins: [autoprefixer(), tailwindcss()],
44
+ extract: false,
45
+ modules: false,
46
+ autoModules: false,
47
+ minimize: true,
48
+ inject: false,
49
+ }),
50
+ typescript(),
51
+ typescriptPaths({ preserveExtensions: true }),
52
+ terser({ output: { comments: false } }),
53
+ ],
54
+ };
55
+
56
+ const configs = [
57
+ {
58
+ ...indexConfig,
59
+ input: './src/web.ts',
60
+ output: {
61
+ file: 'dist/web.js',
62
+ format: 'esm',
63
+ },
64
+ },
65
+ ];
66
+
67
+ export default configs;
@@ -1,145 +1,145 @@
1
- // eslint-disable-next-line @typescript-eslint/no-var-requires
2
- const defaultTheme = require('tailwindcss/defaultTheme');
3
- const plugin = require('tailwindcss/plugin');
4
-
5
- function rem2px(input, fontSize = 16) {
6
- if (input == null) {
7
- return input;
8
- }
9
- switch (typeof input) {
10
- case 'object':
11
- if (Array.isArray(input)) {
12
- return input.map((val) => rem2px(val, fontSize));
13
- }
14
- // eslint-disable-next-line no-case-declarations
15
- const ret = {};
16
- for (const key in input) {
17
- ret[key] = rem2px(input[key], fontSize);
18
- }
19
- return ret;
20
- case 'string':
21
- return input.replace(
22
- /(\d*\.?\d+)rem$/,
23
- (_, val) => `${parseFloat(val) * fontSize}px`
24
- );
25
- case 'function':
26
- return eval(
27
- input
28
- .toString()
29
- .replace(
30
- /(\d*\.?\d+)rem/g,
31
- (_, val) => `${parseFloat(val) * fontSize}px`
32
- )
33
- );
34
- default:
35
- return input;
36
- }
37
- }
38
-
39
- /** @type {import('tailwindcss').Config} */
40
- module.exports = {
41
- darkMode: ['class'],
42
- content: ['./src/**/*.{js,jsx,ts,tsx}'],
43
- theme: {
44
- ...rem2px(defaultTheme),
45
- fontFamily: {
46
- sans: ['Be Vietnam Pro', 'sans-serif'],
47
- mono: ['Be Vietnam Pro', 'sans-serif'],
48
- },
49
- extend: {
50
- keyframes: {
51
- 'fade-in': {
52
- '0%': {
53
- opacity: '0',
54
- },
55
- '100%': {
56
- opacity: '1',
57
- },
58
- },
59
- },
60
- animation: {
61
- 'fade-in': 'fade-in 0.3s ease-out',
62
- },
63
- borderRadius: {
64
- lg: 'var(--radius)',
65
- md: 'calc(var(--radius) - 2px)',
66
- sm: 'calc(var(--radius) - 4px)',
67
- },
68
- colors: {
69
- background: 'hsl(var(--background))',
70
- foreground: 'hsl(var(--foreground))',
71
- card: {
72
- DEFAULT: 'hsl(var(--card))',
73
- foreground: 'hsl(var(--card-foreground))',
74
- },
75
- popover: {
76
- DEFAULT: 'hsl(var(--popover))',
77
- foreground: 'hsl(var(--popover-foreground))',
78
- },
79
- primary: {
80
- DEFAULT: 'hsl(var(--primary))',
81
- foreground: 'hsl(var(--primary-foreground))',
82
- },
83
- secondary: {
84
- DEFAULT: 'hsl(var(--secondary))',
85
- foreground: 'hsl(var(--secondary-foreground))',
86
- },
87
- muted: {
88
- DEFAULT: 'hsl(var(--muted))',
89
- foreground: 'hsl(var(--muted-foreground))',
90
- },
91
- accent: {
92
- DEFAULT: 'hsl(var(--accent))',
93
- foreground: 'hsl(var(--accent-foreground))',
94
- },
95
- destructive: {
96
- DEFAULT: 'hsl(var(--destructive))',
97
- foreground: 'hsl(var(--destructive-foreground))',
98
- },
99
- border: 'hsl(var(--border))',
100
- input: 'hsl(var(--input))',
101
- ring: 'hsl(var(--ring))',
102
- chart: {
103
- 1: 'hsl(var(--chart-1))',
104
- 2: 'hsl(var(--chart-2))',
105
- 3: 'hsl(var(--chart-3))',
106
- 4: 'hsl(var(--chart-4))',
107
- 5: 'hsl(var(--chart-5))',
108
- },
109
- sidebar: {
110
- DEFAULT: 'hsl(var(--sidebar-background))',
111
- foreground: 'hsl(var(--sidebar-foreground))',
112
- primary: 'hsl(var(--sidebar-primary))',
113
- 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
114
- accent: 'hsl(var(--sidebar-accent))',
115
- 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
116
- border: 'hsl(var(--sidebar-border))',
117
- ring: 'hsl(var(--sidebar-ring))',
118
- },
119
- },
120
- },
121
- },
122
- plugins: [
123
- require('tailwindcss-animate'),
124
- require('@tailwindcss/typography'),
125
- plugin(function ({ addVariant }) {
126
- addVariant('wrapped', ({ container }) => {
127
- container.walkRules((rule) => {
128
- rule.selector = `.clik-chatbot-wrapper ${rule.selector}`;
129
- });
130
- });
131
- }),
132
- function ({ addUtilities }) {
133
- const newUtilities = {
134
- '.no-scrollbar': {
135
- '-ms-overflow-style': 'none' /* IE and Edge */,
136
- 'scrollbar-width': 'none' /* Firefox */,
137
- },
138
- '.no-scrollbar::-webkit-scrollbar': {
139
- display: 'none' /* Chrome, Safari, Opera */,
140
- },
141
- };
142
- addUtilities(newUtilities, ['responsive']);
143
- },
144
- ],
145
- };
1
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
2
+ const defaultTheme = require('tailwindcss/defaultTheme');
3
+ const plugin = require('tailwindcss/plugin');
4
+
5
+ function rem2px(input, fontSize = 16) {
6
+ if (input == null) {
7
+ return input;
8
+ }
9
+ switch (typeof input) {
10
+ case 'object':
11
+ if (Array.isArray(input)) {
12
+ return input.map((val) => rem2px(val, fontSize));
13
+ }
14
+ // eslint-disable-next-line no-case-declarations
15
+ const ret = {};
16
+ for (const key in input) {
17
+ ret[key] = rem2px(input[key], fontSize);
18
+ }
19
+ return ret;
20
+ case 'string':
21
+ return input.replace(
22
+ /(\d*\.?\d+)rem$/,
23
+ (_, val) => `${parseFloat(val) * fontSize}px`
24
+ );
25
+ case 'function':
26
+ return eval(
27
+ input
28
+ .toString()
29
+ .replace(
30
+ /(\d*\.?\d+)rem/g,
31
+ (_, val) => `${parseFloat(val) * fontSize}px`
32
+ )
33
+ );
34
+ default:
35
+ return input;
36
+ }
37
+ }
38
+
39
+ /** @type {import('tailwindcss').Config} */
40
+ module.exports = {
41
+ darkMode: ['class'],
42
+ content: ['./src/**/*.{js,jsx,ts,tsx}'],
43
+ theme: {
44
+ ...rem2px(defaultTheme),
45
+ fontFamily: {
46
+ sans: ['Be Vietnam Pro', 'sans-serif'],
47
+ mono: ['Be Vietnam Pro', 'sans-serif'],
48
+ },
49
+ extend: {
50
+ keyframes: {
51
+ 'fade-in': {
52
+ '0%': {
53
+ opacity: '0',
54
+ },
55
+ '100%': {
56
+ opacity: '1',
57
+ },
58
+ },
59
+ },
60
+ animation: {
61
+ 'fade-in': 'fade-in 0.3s ease-out',
62
+ },
63
+ borderRadius: {
64
+ lg: 'var(--radius)',
65
+ md: 'calc(var(--radius) - 2px)',
66
+ sm: 'calc(var(--radius) - 4px)',
67
+ },
68
+ colors: {
69
+ background: 'hsl(var(--background))',
70
+ foreground: 'hsl(var(--foreground))',
71
+ card: {
72
+ DEFAULT: 'hsl(var(--card))',
73
+ foreground: 'hsl(var(--card-foreground))',
74
+ },
75
+ popover: {
76
+ DEFAULT: 'hsl(var(--popover))',
77
+ foreground: 'hsl(var(--popover-foreground))',
78
+ },
79
+ primary: {
80
+ DEFAULT: 'hsl(var(--primary))',
81
+ foreground: 'hsl(var(--primary-foreground))',
82
+ },
83
+ secondary: {
84
+ DEFAULT: 'hsl(var(--secondary))',
85
+ foreground: 'hsl(var(--secondary-foreground))',
86
+ },
87
+ muted: {
88
+ DEFAULT: 'hsl(var(--muted))',
89
+ foreground: 'hsl(var(--muted-foreground))',
90
+ },
91
+ accent: {
92
+ DEFAULT: 'hsl(var(--accent))',
93
+ foreground: 'hsl(var(--accent-foreground))',
94
+ },
95
+ destructive: {
96
+ DEFAULT: 'hsl(var(--destructive))',
97
+ foreground: 'hsl(var(--destructive-foreground))',
98
+ },
99
+ border: 'hsl(var(--border))',
100
+ input: 'hsl(var(--input))',
101
+ ring: 'hsl(var(--ring))',
102
+ chart: {
103
+ 1: 'hsl(var(--chart-1))',
104
+ 2: 'hsl(var(--chart-2))',
105
+ 3: 'hsl(var(--chart-3))',
106
+ 4: 'hsl(var(--chart-4))',
107
+ 5: 'hsl(var(--chart-5))',
108
+ },
109
+ sidebar: {
110
+ DEFAULT: 'hsl(var(--sidebar-background))',
111
+ foreground: 'hsl(var(--sidebar-foreground))',
112
+ primary: 'hsl(var(--sidebar-primary))',
113
+ 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
114
+ accent: 'hsl(var(--sidebar-accent))',
115
+ 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
116
+ border: 'hsl(var(--sidebar-border))',
117
+ ring: 'hsl(var(--sidebar-ring))',
118
+ },
119
+ },
120
+ },
121
+ },
122
+ plugins: [
123
+ require('tailwindcss-animate'),
124
+ require('@tailwindcss/typography'),
125
+ plugin(function ({ addVariant }) {
126
+ addVariant('wrapped', ({ container }) => {
127
+ container.walkRules((rule) => {
128
+ rule.selector = `.clik-chatbot-wrapper ${rule.selector}`;
129
+ });
130
+ });
131
+ }),
132
+ function ({ addUtilities }) {
133
+ const newUtilities = {
134
+ '.no-scrollbar': {
135
+ '-ms-overflow-style': 'none' /* IE and Edge */,
136
+ 'scrollbar-width': 'none' /* Firefox */,
137
+ },
138
+ '.no-scrollbar::-webkit-scrollbar': {
139
+ display: 'none' /* Chrome, Safari, Opera */,
140
+ },
141
+ };
142
+ addUtilities(newUtilities, ['responsive']);
143
+ },
144
+ ],
145
+ };
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default copy" />
4
- </state>
5
- </component>
@@ -1,36 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="AngularAmbiguousComponentTag" enabled="false" level="ERROR" enabled_by_default="false" />
5
- <inspection_tool class="AngularCliAddDependency" enabled="false" level="WARNING" enabled_by_default="false" />
6
- <inspection_tool class="AngularInaccessibleComponentMemberInAotMode" enabled="false" level="WARNING" enabled_by_default="false" />
7
- <inspection_tool class="AngularIncorrectTemplateDefinition" enabled="false" level="ERROR" enabled_by_default="false" />
8
- <inspection_tool class="AngularInsecureBindingToEvent" enabled="false" level="WARNING" enabled_by_default="false" />
9
- <inspection_tool class="AngularInvalidAnimationTriggerAssignment" enabled="false" level="ERROR" enabled_by_default="false" />
10
- <inspection_tool class="AngularInvalidEntryComponent" enabled="false" level="ERROR" enabled_by_default="false" />
11
- <inspection_tool class="AngularInvalidI18nAttribute" enabled="false" level="WARNING" enabled_by_default="false" />
12
- <inspection_tool class="AngularInvalidImportedOrDeclaredSymbol" enabled="false" level="ERROR" enabled_by_default="false" />
13
- <inspection_tool class="AngularInvalidSelector" enabled="false" level="ERROR" enabled_by_default="false" />
14
- <inspection_tool class="AngularInvalidTemplateReferenceVariable" enabled="false" level="ERROR" enabled_by_default="false" />
15
- <inspection_tool class="AngularMissingEventHandler" enabled="false" level="ERROR" enabled_by_default="false" />
16
- <inspection_tool class="AngularMissingOrInvalidDeclarationInModule" enabled="false" level="ERROR" enabled_by_default="false" />
17
- <inspection_tool class="AngularMissingRequiredDirectiveInputBinding" enabled="false" level="ERROR" enabled_by_default="false" />
18
- <inspection_tool class="AngularMultipleStructuralDirectives" enabled="false" level="ERROR" enabled_by_default="false" />
19
- <inspection_tool class="AngularNgOptimizedImage" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
20
- <inspection_tool class="AngularNonEmptyNgContent" enabled="false" level="ERROR" enabled_by_default="false" />
21
- <inspection_tool class="AngularRecursiveModuleImportExport" enabled="false" level="ERROR" enabled_by_default="false" />
22
- <inspection_tool class="AngularUndefinedBinding" enabled="false" level="ERROR" enabled_by_default="false" />
23
- <inspection_tool class="AngularUndefinedModuleExport" enabled="false" level="ERROR" enabled_by_default="false" />
24
- <inspection_tool class="AngularUndefinedTag" enabled="false" level="ERROR" enabled_by_default="false" />
25
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
26
- <inspection_tool class="MicronautDataMethodInconsistency" enabled="false" level="ERROR" enabled_by_default="false" />
27
- <inspection_tool class="MicronautDataRepositoryMethodParameters" enabled="false" level="WARNING" enabled_by_default="false" />
28
- <inspection_tool class="MicronautDataRepositoryMethodReturnType" enabled="false" level="WARNING" enabled_by_default="false" />
29
- <inspection_tool class="MnCacheAnnotationParameters" enabled="false" level="ERROR" enabled_by_default="false" />
30
- <inspection_tool class="MnInjectionPoints" enabled="false" level="WARNING" enabled_by_default="false" />
31
- <inspection_tool class="MnPropertiesConfig" enabled="false" level="WARNING" enabled_by_default="false" />
32
- <inspection_tool class="MnUnresolvedPathVariable" enabled="false" level="WARNING" enabled_by_default="false" />
33
- <inspection_tool class="MnYamlConfig" enabled="false" level="WARNING" enabled_by_default="false" />
34
- <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
35
- </profile>
36
- </component>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="EslintConfiguration">
4
- <custom-configuration-file used="true" path="$PROJECT_DIR$/.eslintrc" />
5
- <option name="fix-on-save" value="true" />
6
- </component>
7
- </project>
package/.idea/misc.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ComposerSettings">
4
- <execution />
5
- </component>
6
- <component name="ProjectRootManager">
7
- <output url="file://$PROJECT_DIR$/out" />
8
- </component>
9
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/clik-ai-chatbot-embedded.iml" filepath="$PROJECT_DIR$/.idea/clik-ai-chatbot-embedded.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PrettierConfiguration">
4
- <option name="myConfigurationMode" value="MANUAL" />
5
- <option name="myRunOnSave" value="true" />
6
- <option name="myRunOnReformat" value="true" />
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,9 +0,0 @@
1
- import { ChatMessageType } from '../../types/flowise.type';
2
- declare const AudioPlayerSimple: ({ message, chatId, autoplay, onClose, }: {
3
- message: ChatMessageType;
4
- chatId?: string;
5
- autoplay?: boolean;
6
- onClose: () => void;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
- export default AudioPlayerSimple;
9
- //# sourceMappingURL=AudioPlayerSimple.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AudioPlayerSimple.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/AudioPlayerSimple.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAI3D,QAAA,MAAM,iBAAiB,4CAKpB;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,4CAoRA,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,22 +0,0 @@
1
- import { FC } from 'react';
2
- import { BotType } from '../../types/bot.type';
3
- import { ChatMessageType, IFileUpload } from '../../types/flowise.type';
4
- type PropsType = {
5
- input: string;
6
- setInput: (value: string) => void;
7
- isLoading: boolean;
8
- stop: () => void;
9
- message?: ChatMessageType;
10
- chatId: string;
11
- handleSubmit: (event?: {
12
- preventDefault?: () => void;
13
- }, files?: IFileUpload[]) => void;
14
- className?: string;
15
- bot: BotType | null;
16
- apiHost: string;
17
- setEnableTTS: (value: boolean) => void;
18
- enableTTS: boolean;
19
- };
20
- export declare const MultimodalInputSimple: FC<PropsType>;
21
- export {};
22
- //# sourceMappingURL=MultimodalInputSimple.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultimodalInputSimple.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/MultimodalInputSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EAKH,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAgBxE,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CACZ,KAAK,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,EACvC,KAAK,CAAC,EAAE,WAAW,EAAE,KAClB,IAAI,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,SAAS,CA2V/C,CAAC"}
@@ -1,8 +0,0 @@
1
- import { FC } from 'react';
2
- interface SidebarProps {
3
- isOpen: boolean;
4
- onToggle: () => void;
5
- }
6
- export declare const Sidebar: FC<SidebarProps>;
7
- export default Sidebar;
8
- //# sourceMappingURL=Sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Sidebar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAGrC,UAAU,YAAY;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AASD,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAsJpC,CAAC;AAEF,eAAe,OAAO,CAAC"}
package/dist/serve.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "headers": [
3
- {
4
- "source" : "**/*.@(jpg|jpeg|gif|png|js)",
5
- "headers" : [{
6
- "key" : "Access-Control-Allow-Origin",
7
- "value" : "*"
8
- }]
9
- }
10
- ]
11
- }
@@ -1,53 +0,0 @@
1
- import { EVENT_TYPE } from './models';
2
- import { AgentWidgetType } from './register';
3
- import { SuggestionType } from './types/common.type';
4
- type ToolType = {
5
- setInput: (text?: string) => void;
6
- };
7
- export declare class AgentWidgetComponent extends HTMLElement {
8
- apiHost?: string;
9
- agentId?: string;
10
- voice?: {
11
- enable?: boolean;
12
- livekitUrl: string;
13
- };
14
- overrideConfig?: {
15
- chatId?: string | undefined;
16
- overrideConfig?: Record<string, unknown>;
17
- suggestedActions?: SuggestionType[];
18
- skipSuggestion?: boolean;
19
- } & Record<string, unknown>;
20
- theme?: {
21
- simplified?: boolean;
22
- welcomeMessage?: string;
23
- autoCloseAudioPlayer?: boolean;
24
- hideAudioMetadata?: boolean;
25
- avatar?: string;
26
- input?: {
27
- placeholder?: string;
28
- recordingPlaceholder?: string;
29
- transcribingPlaceholder?: string;
30
- };
31
- overview?: {
32
- title: string;
33
- description?: string;
34
- };
35
- buttons?: {
36
- textBtnSpeak?: string;
37
- textBtnTalk?: string;
38
- textBtnSubmit?: string;
39
- };
40
- dropdown?: {
41
- zIndex?: number;
42
- };
43
- } & Record<string, unknown>;
44
- listeners?: Record<EVENT_TYPE, (props: any) => void>;
45
- onLoaded?: (tool: ToolType) => void;
46
- constructor();
47
- updateAttributes(attributes: AgentWidgetType): void;
48
- connectedCallback(): void;
49
- render(): void;
50
- }
51
- export declare const registerWebComponents: (name?: string) => void;
52
- export {};
53
- //# sourceMappingURL=simplifiedRegister.d.ts.map