@clikvn/agent-widget-embedded 0.0.48-dev → 0.0.49-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/package.json +1 -1
- package/dist/components/Chat/AudioRecording.d.ts +0 -9
- package/dist/components/Chat/AudioRecording.d.ts.map +0 -1
- package/dist/components/Chat/Modal.d.ts +0 -8
- package/dist/components/Chat/Modal.d.ts.map +0 -1
- package/dist/hooks/useConnection.d.ts +0 -15
- package/dist/hooks/useConnection.d.ts.map +0 -1
- package/dist/index.html +0 -48
- package/dist/services/user.service.d.ts +0 -3
- package/dist/services/user.service.d.ts.map +0 -1
- package/dist/types/agentType.d.ts +0 -11
- package/dist/types/agentType.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
addRecordingToPreviews: (blob: Blob) => void;
|
|
4
|
-
isRecording: boolean;
|
|
5
|
-
setIsRecording: (value: boolean) => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const AudioRecording: FC<Props>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=AudioRecording.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AudioRecording.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/AudioRecording.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAShD,KAAK,KAAK,GAAG;IACX,sBAAsB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC7C,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAiEpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAc/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type TokenGeneratorData = {
|
|
3
|
-
shouldConnect: boolean;
|
|
4
|
-
wsUrl: string;
|
|
5
|
-
token: string;
|
|
6
|
-
disconnect: () => Promise<void>;
|
|
7
|
-
connect: () => Promise<void>;
|
|
8
|
-
};
|
|
9
|
-
export declare const ConnectionProvider: ({ children, livekitURL, }: {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
livekitURL: string;
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const useConnection: () => TokenGeneratorData;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=useConnection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useConnection.d.ts","sourceRoot":"","sources":["../../src/hooks/useConnection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,KAAK,kBAAkB,GAAG;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAMF,eAAO,MAAM,kBAAkB,8BAG5B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,4CA6CA,CAAC;AAEF,eAAO,MAAM,aAAa,0BAMzB,CAAC"}
|
package/dist/index.html
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title></title>
|
|
7
|
-
<script type="module">
|
|
8
|
-
import Agent from './web.js'; // Change to from './web.js' to 'https://localhost:5678/web.js'
|
|
9
|
-
Agent.initWidget({
|
|
10
|
-
apiHost: 'https://7370-2402-800-6314-a324-b1e3-545c-d-db92.ngrok-free.app/chatbot',
|
|
11
|
-
agentId: 'cd49f913-b0e4-4395-8beb-0d74f34d58cc',
|
|
12
|
-
voice: {
|
|
13
|
-
livekitUrl: 'wss://clik-dev-t95ky4ge.livekit.cloud'
|
|
14
|
-
},
|
|
15
|
-
theme: {
|
|
16
|
-
input: {
|
|
17
|
-
placeholder: 'Tin nhắn...'
|
|
18
|
-
},
|
|
19
|
-
overview: {
|
|
20
|
-
title: 'Van Mieu, Quoc Tu Giam',
|
|
21
|
-
description: 'Your personal AI tutor by Khan Academy! Im Khanmigo Lite - here to help you with math, science, and humanities and questions.'
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
overrideConfig: {
|
|
25
|
-
chatId: '14342fe3-8991-4a67-afea-b1c4266da128',
|
|
26
|
-
overrideConfig: {
|
|
27
|
-
vars: {
|
|
28
|
-
POI_CODE: 'MLI_VKLVVAJEFHLH',
|
|
29
|
-
LANGUAGE: 'VN'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
</script>
|
|
36
|
-
<style>
|
|
37
|
-
.chatbox {
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 100vh;
|
|
40
|
-
}
|
|
41
|
-
</style>
|
|
42
|
-
</head>
|
|
43
|
-
<body>
|
|
44
|
-
<div class="chatbox">
|
|
45
|
-
<clik-agent-widget></clik-agent-widget>
|
|
46
|
-
</div>
|
|
47
|
-
</body>
|
|
48
|
-
</html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.d.ts","sourceRoot":"","sources":["../../src/services/user.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAI9C,eAAO,MAAM,WAAW,gBAAuB,MAAM,KAAG,OAAO,CAAC,QAAQ,CAUvE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentType.d.ts","sourceRoot":"","sources":["../../src/types/agentType.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|