@clikvn/agent-widget-embedded 1.1.10-dev-05 → 1.1.10-dev-07
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/SceneList.d.ts +2 -3
- package/dist/components/Chat/SceneList.d.ts.map +1 -1
- package/dist/index.html +2 -2
- package/dist/simplifiedRegister.d.ts +53 -0
- package/dist/simplifiedRegister.d.ts.map +1 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/dist/window.d.ts.map +1 -1
- package/package.json +1 -1
- package/public/index.html +54 -54
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
type Props = {
|
|
3
2
|
tourCodeOrAlias?: string;
|
|
4
3
|
codes?: string[];
|
|
5
4
|
languageCode?: string;
|
|
6
5
|
apiUrl?: string;
|
|
7
6
|
};
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
7
|
+
declare const _default: import("react").NamedExoticComponent<Props>;
|
|
8
|
+
export default _default;
|
|
10
9
|
//# sourceMappingURL=SceneList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SceneList.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/SceneList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SceneList.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/SceneList.tsx"],"names":[],"mappings":"AAgBA,KAAK,KAAK,GAAG;IACX,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;;AAoJF,wBAAyC"}
|
package/dist/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>Title</title>
|
|
7
7
|
<script type="module">
|
|
8
|
-
import Agent from 'http://localhost:
|
|
9
|
-
Agent.
|
|
8
|
+
import Agent from 'http://localhost:49651/web.js'; // Change to from './web.js' to 'https://localhost:5678/web.js'
|
|
9
|
+
Agent.initWidget({
|
|
10
10
|
elementName: 'clik-agent-simplified-widget',
|
|
11
11
|
apiHost: 'https://ci-api.clik.vn/chatbot',
|
|
12
12
|
agentId: 'fe4cf6a9-fa43-4986-bc6f-df67092568c6',
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simplifiedRegister.d.ts","sourceRoot":"","sources":["../src/simplifiedRegister.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,KAAK,QAAQ,GAAG;IACd,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,WAAW;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,cAAc,CAAC,EAAE;QACf,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzC,gBAAgB,CAAC,EAAE,cAAc,EAAE,CAAC;QACpC,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,GAAG,MAAM,CAAC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ceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;UAI4C,CAAC;mBAAqB,CAAC;;;UAA0mB,CAAC;mBAAqB,CAAC;;;CAJ9qB,CAAC;AAGzC,eAAe,YAAY,CAAC"}
|