yt-chat-components 1.2.2 → 1.2.3
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/asset-manifest.json +20 -0
- package/build/index.html +1 -0
- package/build/static/css/main.e41b943a.css +2 -0
- package/build/static/css/main.e41b943a.css.map +1 -0
- package/build/static/js/main.371ede49.js +3 -0
- package/build/static/js/main.371ede49.js.LICENSE.txt +181 -0
- package/build/static/js/main.371ede49.js.map +1 -0
- package/build/static/media/ai_call_working.a63afffab31dc8264d05.gif +0 -0
- package/build/static/media/aiavatar.74bafa995cce4c01b804.png +0 -0
- package/build/static/media/history-list-empty.1eb65b1550aef4e8c8a4.png +0 -0
- package/build/static/media/icon_history_headerbg.50747e81d01257f55346.png +0 -0
- package/build/static/media/moreAi.285e66289f838072060c.png +0 -0
- package/build/static/media/moreBg.9fc998472925cecd89f2.png +0 -0
- package/build/static/media/phone.19bc6f0d2e9eae4863ae.png +0 -0
- package/package.json +3 -2
- package/src/index.tsx +1 -117
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yt-chat-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"main": "build/static/js/bundle.min.js",
|
|
5
5
|
"module": "build/static/js/bundle.min.js",
|
|
6
6
|
"types": "build/static/js/index.d.ts",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"remark-gfm": "3.0.1",
|
|
34
34
|
"typescript": "^4.9.5",
|
|
35
35
|
"uuid": "^10.0.0",
|
|
36
|
-
"web-vitals": "^2.1.4"
|
|
36
|
+
"web-vitals": "^2.1.4",
|
|
37
|
+
"recorder-core": "^1.3.25011100"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
40
|
"start": "react-scripts start",
|
package/src/index.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
|
-
import r2wc from '@r2wc/react-to-web-component';
|
|
4
3
|
import LogoBtn from './YtChatView/logoBtn/index';
|
|
5
4
|
import ToolDialog from "./YtChatView/previewDialog/index";
|
|
6
5
|
import LogoSplitBtn from "./YtChatView/logoSplitBtn/index";
|
|
@@ -9,119 +8,4 @@ import MobileChatPage from "./YtChatView/mobileChat";
|
|
|
9
8
|
// 手动注入 React 和 ReactDOM 到全局
|
|
10
9
|
window.React = React;
|
|
11
10
|
window.ReactDOM = ReactDOM;
|
|
12
|
-
|
|
13
|
-
customElements.define('yt-chat', r2wc(LogoBtn, {
|
|
14
|
-
shadow: "closed",
|
|
15
|
-
props: {
|
|
16
|
-
left: "number",
|
|
17
|
-
right: "number",
|
|
18
|
-
top: "number",
|
|
19
|
-
bottom: "number",
|
|
20
|
-
width: "number",
|
|
21
|
-
height: "number",
|
|
22
|
-
iconUrl: "string",
|
|
23
|
-
title: "string",
|
|
24
|
-
appId: "string",
|
|
25
|
-
hostUrl: "string",
|
|
26
|
-
userInfo: "json",
|
|
27
|
-
tags: "json",
|
|
28
|
-
isShowSideRight:"boolean",
|
|
29
|
-
isShowSideLeft:"boolean",
|
|
30
|
-
modalIndex:"number",
|
|
31
|
-
dialogIndex:"number",
|
|
32
|
-
agentUrl:"string",
|
|
33
|
-
agentName:"string",
|
|
34
|
-
modalWidth:"number",
|
|
35
|
-
logoWidth:"string",
|
|
36
|
-
logoFontSize:"string",
|
|
37
|
-
logoPosition:"string",
|
|
38
|
-
isTitleSideIcon:"boolean",
|
|
39
|
-
isShowUploadButton:"boolean",
|
|
40
|
-
dropManUrl:"string",
|
|
41
|
-
},
|
|
42
|
-
}));
|
|
43
|
-
|
|
44
|
-
customElements.define('yt-page-chat', r2wc(ToolDialog, {
|
|
45
|
-
shadow: "closed",
|
|
46
|
-
props: {
|
|
47
|
-
title: "string",
|
|
48
|
-
appId: "string",
|
|
49
|
-
hostUrl: "string",
|
|
50
|
-
setDialogVisible: "function",
|
|
51
|
-
userInfo: "json",
|
|
52
|
-
tags: "json",
|
|
53
|
-
boxStyle: "json",
|
|
54
|
-
sceneId: "string",
|
|
55
|
-
isShowSideRight:"boolean",
|
|
56
|
-
isShowSideLeft:"boolean",
|
|
57
|
-
dialogIndex:"number",
|
|
58
|
-
agentUrl:"string",
|
|
59
|
-
agentName:"string",
|
|
60
|
-
logoWidth:"string",
|
|
61
|
-
logoFontSize:"string",
|
|
62
|
-
isTitleSideIcon:"boolean",
|
|
63
|
-
isShowUploadButton:"boolean",
|
|
64
|
-
dropManUrl:"string",
|
|
65
|
-
},
|
|
66
|
-
}));
|
|
67
|
-
|
|
68
|
-
customElements.define('yt-split-modal-chat', r2wc(LogoSplitBtn, {
|
|
69
|
-
shadow: "closed",
|
|
70
|
-
props: {
|
|
71
|
-
left: "number",
|
|
72
|
-
right: "number",
|
|
73
|
-
top: "number",
|
|
74
|
-
bottom: "number",
|
|
75
|
-
width: "number",
|
|
76
|
-
height: "number",
|
|
77
|
-
iconUrl: "string",
|
|
78
|
-
title: "string",
|
|
79
|
-
appId: "string",
|
|
80
|
-
hostUrl: "string",
|
|
81
|
-
userInfo: "json",
|
|
82
|
-
tags: "json",
|
|
83
|
-
sceneId: "string",
|
|
84
|
-
boxStyle: "string",
|
|
85
|
-
isShowSideRight:"boolean",
|
|
86
|
-
isShowSideLeft:"boolean",
|
|
87
|
-
modalIndex:"number",
|
|
88
|
-
dialogIndex:"number",
|
|
89
|
-
agentUrl:"string",
|
|
90
|
-
agentName:"string",
|
|
91
|
-
modalWidth:"number",
|
|
92
|
-
logoWidth:"string",
|
|
93
|
-
logoFontSize:"string",
|
|
94
|
-
logoPosition:"string",
|
|
95
|
-
isTitleSideIcon:"boolean",
|
|
96
|
-
isShowUploadButton:"boolean",
|
|
97
|
-
dropManUrl:"string",
|
|
98
|
-
},
|
|
99
|
-
}));
|
|
100
|
-
|
|
101
|
-
customElements.define('yt-page-chat-mobile', r2wc(MobileChatPage, {
|
|
102
|
-
shadow: "closed",
|
|
103
|
-
props: {
|
|
104
|
-
title: "string",
|
|
105
|
-
appId: "string",
|
|
106
|
-
hostUrl: "string",
|
|
107
|
-
setDialogVisible: "function",
|
|
108
|
-
userInfo: "json",
|
|
109
|
-
tags: "json",
|
|
110
|
-
boxStyle: "json",
|
|
111
|
-
sceneId: "string",
|
|
112
|
-
isShowSideRight:"boolean",
|
|
113
|
-
isShowSideLeft:"boolean",
|
|
114
|
-
isLogin:"boolean",
|
|
115
|
-
isShowLogin:"boolean",
|
|
116
|
-
loginBtnClick: "function",
|
|
117
|
-
dialogIndex:"number",
|
|
118
|
-
agentUrl:"string",
|
|
119
|
-
agentName:"string",
|
|
120
|
-
logoWidth:"string",
|
|
121
|
-
logoFontSize:"string",
|
|
122
|
-
isTitleSideIcon:"boolean",
|
|
123
|
-
isShowUploadButton:"boolean",
|
|
124
|
-
isShowVoiceButton:"boolean",
|
|
125
|
-
dropManUrl:"string",
|
|
126
|
-
},
|
|
127
|
-
}));
|
|
11
|
+
export {ToolDialog, LogoSplitBtn, LogoBtn, MobileChatPage}
|