@myun/gimi-chat 0.9.40 → 0.9.42

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.
@@ -159,7 +159,14 @@ var DocumentPlayer = function DocumentPlayer(_ref5) {
159
159
  // Office 文档与 Web 可预览类型(pdf/svg/图片)支持试看
160
160
  // const canPreview = SUPPORT_PREVIEW_FILE_TYPE.includes(item.suffix) || SUPPORT_WEB_PREVIEW.includes(item.suffix);
161
161
  var canPreview = SUPPORT_WEB_PREVIEW.includes(item.suffix);
162
-
162
+ if (!item.url) {
163
+ return /*#__PURE__*/React.createElement(UnsupportedView, {
164
+ tipKey: "trace.document.unDownloadTips",
165
+ downloadUrl: item.url,
166
+ showDownload: false,
167
+ onViewFull: onViewFull
168
+ });
169
+ }
163
170
  // 不支持预览的类型:直接提示并下载
164
171
  if (!canPreview) {
165
172
  return /*#__PURE__*/React.createElement(UnsupportedView, {
@@ -44,6 +44,7 @@ declare const enUS: {
44
44
  'trace.document.total': string;
45
45
  'trace.document.unsupported': string;
46
46
  'trace.document.unsupportedTips': string;
47
+ 'trace.document.unDownloadTips': string;
47
48
  'trace.video.unsupportedTips': string;
48
49
  'trace.information.unsupportedTips': string;
49
50
  'trace.notPermission': string;
@@ -9,7 +9,7 @@ var enUS = {
9
9
  'knowledgeTrace.type.document': 'Document',
10
10
  'knowledgeTrace.type.video': 'Video',
11
11
  'knowledgeTrace.type.course': 'Courses',
12
- 'knowledgeTrace.type.information': 'Information',
12
+ 'knowledgeTrace.type.information': 'Article Source',
13
13
  'reasoningSearch.summary': 'Search Results',
14
14
  'chatInput.maxLength': 'Maximum 10000 characters',
15
15
  'chatInput.uploadLimitOne': 'Upload limit is one file',
@@ -33,17 +33,18 @@ var enUS = {
33
33
  'trace.video.coverAlt': 'Video cover',
34
34
  'trace.video.playAlt': 'Play button',
35
35
  'trace.video.segment': 'Video segment: {{start}} - {{end}}',
36
- 'trace.video.invalid': 'Video invalid',
36
+ 'trace.video.invalid': 'Invalid',
37
37
  'trace.video.total': '{{count}} videos in this conversation',
38
38
  'trace.course.coverAlt': 'Course cover',
39
- 'trace.course.invalid': 'Course invalid',
39
+ 'trace.course.invalid': 'Invalid',
40
40
  'trace.course.total': '{{count}} courses in this conversation',
41
41
  'trace.document.coverAlt': 'Document image',
42
- 'trace.document.invalid': 'Document invalid',
43
- 'trace.information.invalid': 'Information invalid',
42
+ 'trace.document.invalid': 'Invalid',
43
+ 'trace.information.invalid': 'Invalid',
44
44
  'trace.document.total': '{{count}} documents in this conversation',
45
45
  'trace.document.unsupported': 'This file type cannot be previewed',
46
46
  '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.',
47
+ 'trace.document.unDownloadTips': 'This file format does not support trial preview. \nTo view the full document, click the "View" button.',
47
48
  'trace.video.unsupportedTips': 'This video does not support trial preview.\nTo view the full video, click the "View" button.',
48
49
  'trace.information.unsupportedTips': 'The following content is not available for trial preview',
49
50
  'trace.notPermission': 'No access rights',
@@ -44,6 +44,7 @@ declare const zhCN: {
44
44
  'trace.document.total': string;
45
45
  'trace.document.unsupported': string;
46
46
  'trace.document.unsupportedTips': string;
47
+ 'trace.document.unDownloadTips': string;
47
48
  'trace.video.unsupportedTips': string;
48
49
  'trace.information.unsupportedTips': string;
49
50
  'trace.notPermission': string;
@@ -9,7 +9,7 @@ var zhCN = {
9
9
  'knowledgeTrace.type.document': '文档',
10
10
  'knowledgeTrace.type.video': '视频',
11
11
  'knowledgeTrace.type.course': '课程',
12
- 'knowledgeTrace.type.information': '资讯',
12
+ 'knowledgeTrace.type.information': '篇溯源内容',
13
13
  'reasoningSearch.summary': '搜索结果',
14
14
  'chatInput.maxLength': '最多输入10000个字符',
15
15
  'chatInput.uploadLimitOne': '最多上传一个文件哦',
@@ -33,17 +33,18 @@ var zhCN = {
33
33
  'trace.video.coverAlt': '视频封面图片',
34
34
  'trace.video.playAlt': '播放按钮图片',
35
35
  'trace.video.segment': '视频片段: {{start}} - {{end}}',
36
- 'trace.video.invalid': '视频失效',
36
+ 'trace.video.invalid': '已失效',
37
37
  'trace.video.total': '本对话共{{count}}个视频',
38
38
  'trace.course.coverAlt': '课程封面',
39
- 'trace.course.invalid': '课程失效',
39
+ 'trace.course.invalid': '已失效',
40
40
  'trace.course.total': '本对话共{{count}}个课程',
41
41
  'trace.document.coverAlt': '文档图片',
42
- 'trace.document.invalid': '文档失效',
43
- 'trace.information.invalid': '资讯失效',
42
+ 'trace.document.invalid': '已失效',
43
+ 'trace.information.invalid': '已失效',
44
44
  'trace.document.total': '本对话共{{count}}个文档',
45
45
  'trace.document.unsupported': '当前文件不支持预览',
46
46
  'trace.document.unsupportedTips': '文件格式不支持在线试看,您可以下载后用其他软件查看。\n如需查看完整文档,请点击“去查看”按钮。',
47
+ 'trace.document.unDownloadTips': '文件格式不支持试看。\n如需查看完整文档,请点击“去查看”按钮。',
47
48
  'trace.video.unsupportedTips': '该视频暂不支持试看,\n如需查看完整视频,请点击“去查看”按钮。',
48
49
  'trace.information.unsupportedTips': '以下内容暂不可试看',
49
50
  'trace.notPermission': '暂无权益',