@myun/gimi-chat 0.9.63 → 0.9.64
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/answer-item/index.js +1 -1
- package/dist/components/chat-input/index.module.css +6 -0
- package/dist/components/knowledge-trace/KnowledgeIconComponent.js +6 -1
- package/dist/components/knowledge-trace/tryWatch.js +1 -1
- package/dist/components/message-list/skill-tag/index.module.css +1 -0
- package/dist/i18n/locales/en-US.d.ts +1 -0
- package/dist/i18n/locales/en-US.js +1 -0
- package/dist/i18n/locales/zh-CN.d.ts +1 -0
- package/dist/i18n/locales/zh-CN.js +1 -0
- package/dist/umd/index.min.js +1 -1
- package/package.json +1 -1
|
@@ -380,7 +380,7 @@ var AnswerItem = function AnswerItem(_ref) {
|
|
|
380
380
|
onRegenerateClick: onRegenerateClick
|
|
381
381
|
})), /*#__PURE__*/React.createElement("div", {
|
|
382
382
|
className: styles.totalTokensWrap
|
|
383
|
-
}, item !== null && item !== void 0 && item.durationMs ? formatDurationMs(item.durationMs) : '', " ", platform === 'preview' && item.totalTokens ? " | ".concat(item.totalTokens, " Tokens") : ''))), (item.relatedResourceList || []).length > 0 && (showCommend === null || showCommend === void 0 ? void 0 : showCommend(item.id)) && /*#__PURE__*/React.createElement("div", {
|
|
383
|
+
}, item !== null && item !== void 0 && item.durationMs ? formatDurationMs(item.durationMs) : '', " ", platform === 'preview' && item.totalTokens ? " | ".concat(Number(item.totalTokens).toLocaleString('en-US'), " Tokens") : ''))), (item.relatedResourceList || []).length > 0 && (showCommend === null || showCommend === void 0 ? void 0 : showCommend(item.id)) && /*#__PURE__*/React.createElement("div", {
|
|
384
384
|
className: styles.quickInputList
|
|
385
385
|
}, (item.relatedResourceList || []).map(function (item, index) {
|
|
386
386
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -141,7 +141,13 @@
|
|
|
141
141
|
:global .semi-aiChatInput-footer-action-send-disabled {
|
|
142
142
|
background-color: rgba(46, 50, 56, 0.1294117647);
|
|
143
143
|
}
|
|
144
|
+
:global .semi-aiChatInput-editor-content {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
}
|
|
144
148
|
:global .semi-aiChatInput-editor-content .tiptap {
|
|
149
|
+
flex: 1;
|
|
150
|
+
min-height: 0;
|
|
145
151
|
font-size: 16px;
|
|
146
152
|
color: var(--theme-mediumNeutral, #9AA7B7);
|
|
147
153
|
}
|
|
@@ -92,9 +92,14 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
|
|
|
92
92
|
curPlayer === null || curPlayer === void 0 || curPlayer.pause();
|
|
93
93
|
}
|
|
94
94
|
setShowPanel(false);
|
|
95
|
+
// 资讯溯源:有权益直接跳转资讯详情,无权益则弹试看弹框
|
|
96
|
+
if (type === 'information' && trace.hasEntitlement) {
|
|
97
|
+
window.open("/news-list/new-information/".concat(trace.informationId, "?packageId=").concat(trace.packageId));
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
95
100
|
setCurTrace(trace);
|
|
96
101
|
setTryWatchVisible(true);
|
|
97
|
-
}, [setCurTrace]);
|
|
102
|
+
}, [type, curPlayer, setCurTrace]);
|
|
98
103
|
var hoverPanelContent = useMemo(function () {
|
|
99
104
|
if (isLoading) return /*#__PURE__*/React.createElement("div", {
|
|
100
105
|
style: {
|
|
@@ -337,7 +337,7 @@ var TryWatch = function TryWatch(_ref7) {
|
|
|
337
337
|
className: styles.tryFullBtnContainer
|
|
338
338
|
}, /*#__PURE__*/React.createElement("div", {
|
|
339
339
|
className: styles.tips
|
|
340
|
-
}, t('trace.tryFullTips')), /*#__PURE__*/React.createElement(Button, {
|
|
340
|
+
}, t(type === 'information' ? 'trace.tryFullTipsNoEntitlement' : 'trace.tryFullTips')), type !== 'information' && /*#__PURE__*/React.createElement(Button, {
|
|
341
341
|
className: styles.tryFullBtn,
|
|
342
342
|
onClick: handleFull
|
|
343
343
|
}, t('trace.tryFull')))));
|
|
@@ -59,6 +59,7 @@ declare const enUS: {
|
|
|
59
59
|
'trace.document.trialInvalidDoc': string;
|
|
60
60
|
'trace.document.trialFailed': string;
|
|
61
61
|
'trace.tryFullTips': string;
|
|
62
|
+
'trace.tryFullTipsNoEntitlement': string;
|
|
62
63
|
'trace.tryFull': string;
|
|
63
64
|
'trace.iconAlt': string;
|
|
64
65
|
'trace.countByType': string;
|
|
@@ -59,6 +59,7 @@ var enUS = {
|
|
|
59
59
|
'trace.document.trialInvalidDoc': 'This document does not support trial preview',
|
|
60
60
|
'trace.document.trialFailed': 'Failed to load trial preview',
|
|
61
61
|
'trace.tryFullTips': 'You can preview part of the content. Click the button on the right to view the full content.',
|
|
62
|
+
'trace.tryFullTipsNoEntitlement': 'No access rights to view the full content',
|
|
62
63
|
'trace.tryFull': 'View',
|
|
63
64
|
'trace.iconAlt': 'Knowledge source icon',
|
|
64
65
|
'trace.countByType': '{{count}} {{type}}',
|
|
@@ -59,6 +59,7 @@ declare const zhCN: {
|
|
|
59
59
|
'trace.document.trialInvalidDoc': string;
|
|
60
60
|
'trace.document.trialFailed': string;
|
|
61
61
|
'trace.tryFullTips': string;
|
|
62
|
+
'trace.tryFullTipsNoEntitlement': string;
|
|
62
63
|
'trace.tryFull': string;
|
|
63
64
|
'trace.iconAlt': string;
|
|
64
65
|
'trace.countByType': string;
|
|
@@ -59,6 +59,7 @@ var zhCN = {
|
|
|
59
59
|
'trace.document.trialInvalidDoc': '该文档暂不支持试看',
|
|
60
60
|
'trace.document.trialFailed': '试看加载失败',
|
|
61
61
|
'trace.tryFullTips': '您当前可试看部分内容,点击右侧按钮查看完整内容。',
|
|
62
|
+
'trace.tryFullTipsNoEntitlement': '暂无权益查看智库资讯完整内容',
|
|
62
63
|
'trace.tryFull': '查看',
|
|
63
64
|
'trace.iconAlt': '知识库溯源图标',
|
|
64
65
|
'trace.countByType': '{{count}}{{unit}}{{type}}',
|