@clikvn/agent-widget-embedded 1.0.22-dev → 1.0.24-dev
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/dist/components/Chat/Simplified/MultimodalInputSimplified.d.ts.map +1 -1
- package/dist/index-old.html +108 -0
- package/dist/index.html +16 -45
- package/dist/web.js +1 -1
- package/package.json +1 -1
- package/rollup.config.js +11 -0
- package/.idea/clik-ai-chatbot-embedded.iml +0 -9
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -36
- package/.idea/jsLinters/eslint.xml +0 -7
- package/.idea/misc.xml +0 -9
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/dist/components/Chat/AudioPlayerSimple.d.ts +0 -9
- package/dist/components/Chat/AudioPlayerSimple.d.ts.map +0 -1
- package/dist/components/Chat/MultimodalInputSimple.d.ts +0 -22
- package/dist/components/Chat/MultimodalInputSimple.d.ts.map +0 -1
- package/dist/components/Chat/Sidebar.d.ts +0 -8
- package/dist/components/Chat/Sidebar.d.ts.map +0 -1
- package/dist/serve.json +0 -11
- package/dist/web.css +0 -3680
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -15,6 +15,17 @@ const extensions = ['.ts', '.tsx', '.js'];
|
|
|
15
15
|
|
|
16
16
|
const indexConfig = {
|
|
17
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
|
+
},
|
|
18
29
|
plugins: [
|
|
19
30
|
resolve({ extensions, browser: true }),
|
|
20
31
|
commonjs(),
|
|
@@ -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,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>
|
package/.idea/misc.xml
DELETED
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>
|
package/.idea/prettier.xml
DELETED
|
@@ -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,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 +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"}
|