@myun/gimi-chat 0.9.35 → 0.9.36
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/ai-loading/index.d.ts +4 -1
- package/dist/components/ai-loading/index.js +7 -3
- package/dist/components/knowledge-trace/KnowledgeIconComponent.js +2 -2
- package/dist/components/knowledge-trace/index.module.css +3 -4
- package/dist/components/upload-list/ImageFile.js +4 -3
- package/dist/components/upload-list/imageFile.module.css +7 -0
- package/dist/i18n/locales/en-US.js +1 -1
- package/dist/i18n/locales/zh-CN.js +1 -1
- package/dist/umd/index.min.js +1 -1
- package/package.json +1 -1
|
@@ -2,15 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
4
|
import LottieImg from "../lottie-img";
|
|
5
|
-
var AiLoading = function AiLoading() {
|
|
5
|
+
var AiLoading = function AiLoading(_ref) {
|
|
6
|
+
var _ref$size = _ref.size,
|
|
7
|
+
size = _ref$size === void 0 ? [30, 50] : _ref$size,
|
|
8
|
+
_ref$hiddenTitle = _ref.hiddenTitle,
|
|
9
|
+
hiddenTitle = _ref$hiddenTitle === void 0 ? false : _ref$hiddenTitle;
|
|
6
10
|
var _useTranslation = useTranslation(),
|
|
7
11
|
t = _useTranslation.t;
|
|
8
12
|
return /*#__PURE__*/React.createElement("div", {
|
|
9
13
|
className: styles.aiLoading
|
|
10
14
|
}, /*#__PURE__*/React.createElement(LottieImg, {
|
|
11
15
|
name: "aiLoading",
|
|
12
|
-
size:
|
|
13
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
size: size
|
|
17
|
+
}), !hiddenTitle && /*#__PURE__*/React.createElement("div", {
|
|
14
18
|
className: styles.text
|
|
15
19
|
}, t('common.dataLoading')));
|
|
16
20
|
};
|
|
@@ -145,8 +145,8 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
|
|
|
145
145
|
visible: showPanel,
|
|
146
146
|
onVisibleChange: onVisibleChange,
|
|
147
147
|
className: "knowledgeHoverPanel",
|
|
148
|
-
position: "bottomLeft"
|
|
149
|
-
trigger
|
|
148
|
+
position: "bottomLeft"
|
|
149
|
+
// trigger='click'
|
|
150
150
|
}, /*#__PURE__*/React.createElement("div", {
|
|
151
151
|
className: styles.icon_btn,
|
|
152
152
|
onClick: handleIconClick
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
margin: 0;
|
|
90
90
|
border: none;
|
|
91
91
|
border-radius: 20px;
|
|
92
|
-
background: var(--theme-
|
|
92
|
+
background: var(--theme-primary-pale, #F0F8FF);
|
|
93
93
|
font-family: "PingFang SC";
|
|
94
94
|
font-size: 16px;
|
|
95
95
|
font-weight: 500;
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
margin: 0;
|
|
184
184
|
border: none;
|
|
185
185
|
border-radius: 20px;
|
|
186
|
-
background: var(--theme-
|
|
186
|
+
background: var(--theme-primary-pale, #F0F8FF);
|
|
187
187
|
font-size: 16px;
|
|
188
188
|
font-weight: 500;
|
|
189
189
|
line-height: 16px;
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
}
|
|
193
193
|
.unsupportedBtn:hover {
|
|
194
194
|
color: var(--theme-primary, #4086FF);
|
|
195
|
-
background: var(--theme-
|
|
195
|
+
background: var(--theme-primary-pale, #F0F8FF) !important;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.newsContent {
|
|
@@ -240,7 +240,6 @@
|
|
|
240
240
|
padding-top: 40px;
|
|
241
241
|
background: rgba(255, 255, 255, 0.5);
|
|
242
242
|
backdrop-filter: blur(10px);
|
|
243
|
-
-webkit-backdrop-filter: blur(10px);
|
|
244
243
|
pointer-events: none;
|
|
245
244
|
}
|
|
246
245
|
.newsContent .newsMaskText {
|
|
@@ -4,6 +4,7 @@ import styles from "./imageFile.module.css";
|
|
|
4
4
|
import { FileStatus } from "../../interfaces/fileInterface";
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import IconFontCom from "../iconfont-com";
|
|
7
|
+
import AiLoading from "../ai-loading";
|
|
7
8
|
var ImageFile = function ImageFile(_ref) {
|
|
8
9
|
var file = _ref.file,
|
|
9
10
|
handleDelFile = _ref.handleDelFile,
|
|
@@ -48,9 +49,9 @@ var ImageFile = function ImageFile(_ref) {
|
|
|
48
49
|
}
|
|
49
50
|
}), isLoading && /*#__PURE__*/React.createElement("div", {
|
|
50
51
|
className: styles.uploadLoading
|
|
51
|
-
}, /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
}, /*#__PURE__*/React.createElement(AiLoading, {
|
|
53
|
+
size: [20, 30],
|
|
54
|
+
hiddenTitle: true
|
|
54
55
|
})), isError && /*#__PURE__*/React.createElement("div", {
|
|
55
56
|
className: styles.uploadError,
|
|
56
57
|
onClick: handleRetryClick
|
|
@@ -43,7 +43,7 @@ var enUS = {
|
|
|
43
43
|
'trace.document.total': '{{count}} documents in this conversation',
|
|
44
44
|
'trace.document.unsupported': 'This file type cannot be previewed',
|
|
45
45
|
'trace.document.unsupportedTips': 'This file format does not support trial preview. You can download it and view it with other software.\nTo view the full document, click the "View" button.',
|
|
46
|
-
'trace.video.unsupportedTips': 'This video does not support trial preview
|
|
46
|
+
'trace.video.unsupportedTips': 'This video does not support trial preview.\nTo view the full video, click the "View" button.',
|
|
47
47
|
'trace.information.unsupportedTips': 'The following content is not available for trial preview',
|
|
48
48
|
'trace.notPermission': 'No access rights',
|
|
49
49
|
'trace.tryWatchVideo': 'Video',
|
|
@@ -43,7 +43,7 @@ var zhCN = {
|
|
|
43
43
|
'trace.document.total': '本对话共{{count}}个文档',
|
|
44
44
|
'trace.document.unsupported': '当前文件不支持预览',
|
|
45
45
|
'trace.document.unsupportedTips': '文件格式不支持试看,您可以下载后用其他软件查看。\n如需查看完整文档,请点击“去查看”按钮。',
|
|
46
|
-
'trace.video.unsupportedTips': '
|
|
46
|
+
'trace.video.unsupportedTips': '该视频暂不支持试看,\n如需查看完整视频,请点击“去查看”按钮。',
|
|
47
47
|
'trace.information.unsupportedTips': '以下内容暂不可试看',
|
|
48
48
|
'trace.notPermission': '暂无权益',
|
|
49
49
|
'trace.tryWatchVideo': '视频',
|