@myun/gimi-chat 0.9.28 → 0.9.29

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.
Files changed (46) hide show
  1. package/dist/client/components/history-list/index.module.css +6 -6
  2. package/dist/client/components/new-main/index.css +1 -1
  3. package/dist/client/components/slider/index.css +7 -7
  4. package/dist/components/ai-chat-dialogue/index.module copy.css +7 -7
  5. package/dist/components/ai-chat-dialogue/index.module.css +9 -9
  6. package/dist/components/ai-loading/index.module.css +1 -1
  7. package/dist/components/answer-item/index.module.css +9 -9
  8. package/dist/components/ask-card/index.js +6 -4
  9. package/dist/components/ask-card/index.module.css +10 -10
  10. package/dist/components/chat-input/extension/title-slot/index.less +3 -2
  11. package/dist/components/chat-input/index.js +13 -9
  12. package/dist/components/chat-input/index.module.css +11 -7
  13. package/dist/components/chat-voice/VoiceCommunication.js +5 -8
  14. package/dist/components/chat-voice/VoiceRecord.js +5 -8
  15. package/dist/components/dots-loading/index.module.css +1 -1
  16. package/dist/components/empty/index.module.css +1 -1
  17. package/dist/components/excel-components/index.module.css +15 -15
  18. package/dist/components/excel-components/styles.module.css +2 -2
  19. package/dist/components/file-card/index.js +5 -4
  20. package/dist/components/file-card/index.module.css +7 -7
  21. package/dist/components/file-preview/index.module.css +6 -6
  22. package/dist/components/iconfont-com/index.js +1 -1
  23. package/dist/components/knowledge-trace/index.module.css +12 -12
  24. package/dist/components/message-actions/CopyButton.js +5 -9
  25. package/dist/components/message-actions/LikeButton.js +7 -11
  26. package/dist/components/message-actions/RegenerateButton.js +2 -1
  27. package/dist/components/message-actions/UnLikeButton.js +7 -11
  28. package/dist/components/message-actions/VoicePlay.js +5 -10
  29. package/dist/components/message-list/index.module.css +9 -9
  30. package/dist/components/product-tag/index.module.css +3 -3
  31. package/dist/components/quoted-content/index.js +5 -6
  32. package/dist/components/quoted-content/index.module.css +33 -8
  33. package/dist/components/reasoning-content/index.module.css +5 -5
  34. package/dist/components/reference-content/index.module.css +5 -5
  35. package/dist/components/search-course-list/index.module.css +4 -4
  36. package/dist/components/search-result/index.module.css +12 -12
  37. package/dist/components/templates/index.module.css +1 -1
  38. package/dist/components/upload-list/CustomFile.js +7 -10
  39. package/dist/components/upload-list/ImageFile.js +1 -1
  40. package/dist/components/upload-list/customFile.module.css +6 -6
  41. package/dist/components/upload-list/imageFile.module.css +3 -3
  42. package/dist/components/upload-list/index.module.css +1 -1
  43. package/dist/components/voice-bars/index.js +1 -1
  44. package/dist/components/work-flow-content/index.module.css +1 -1
  45. package/dist/umd/index.min.js +1 -1
  46. package/package.json +1 -1
@@ -15,9 +15,19 @@
15
15
  border-radius: 8px;
16
16
  margin-left: 5px;
17
17
  width: calc(100% - 10px);
18
+ border: 1px solid var(--theme-lightNeutral, #E9EBF2);
19
+ background-color: #fff;
18
20
  }
19
21
  .searchInput input::placeholder {
20
- color: #7d91b3;
22
+ color: var(--theme-mediumNeutral, #9AA7B7);
23
+ }
24
+
25
+ :global .semi-input-wrapper:hover, :global .semi-input-wrapper:active {
26
+ border-color: var(--theme-primary, #4086FF);
27
+ background-color: #fff;
28
+ }
29
+ :global .semi-input-clearbtn:hover {
30
+ border-color: var(--theme-primary, #4086FF);
21
31
  }
22
32
 
23
33
  .content {
@@ -41,14 +51,15 @@
41
51
  border-radius: 8px;
42
52
  cursor: pointer;
43
53
  flex-shrink: 0;
54
+ color: var(--theme-neutral, #4C5A70);
44
55
  }
45
56
  .newtab .tabItem:hover {
46
- background-color: #f7f7fc;
47
- color: var(--theme-primary, #4086ff);
57
+ background-color: var(--theme-primary-pale, #F0F8FF);
58
+ color: var(--theme-deepNeutral, #2E394C);
48
59
  }
49
60
  .newtab .active {
50
- background-color: #f7f7fc;
51
- color: var(--theme-primary, #4086ff);
61
+ background-color: var(--theme-primary-pale, #F0F8FF);
62
+ color: var(--theme-deepNeutral, #2E394C);
52
63
  font-weight: 600;
53
64
  }
54
65
 
@@ -122,11 +133,17 @@
122
133
  width: 32px;
123
134
  height: 32px;
124
135
  cursor: pointer;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: center;
125
139
  }
126
140
  .quotationIcon:hover {
127
- background-color: #f2f3f7;
141
+ background-color: var(--theme-paleNeutral, #F2F3F7);
128
142
  border-radius: 8px;
129
143
  }
144
+ .quotationIcon:hover .quoteIcon, .quotationIcon.isActive .quoteIcon {
145
+ color: var(--theme-primary, #4086FF);
146
+ }
130
147
  .quotationIcon img {
131
148
  width: 100%;
132
149
  height: 100%;
@@ -134,10 +151,17 @@
134
151
  }
135
152
 
136
153
  .isActive {
137
- background-color: #f2f3f7;
154
+ background-color: var(--theme-paleNeutral, #F2F3F7);
138
155
  border-radius: 8px;
139
156
  }
140
157
 
158
+ .quoteIcon {
159
+ color: var(--theme-deepNeutral, #2E394C);
160
+ display: flex;
161
+ align-items: center;
162
+ justify-content: center;
163
+ }
164
+
141
165
  .current_video {
142
166
  display: flex;
143
167
  flex-direction: column;
@@ -162,9 +186,10 @@
162
186
  min-width: 0;
163
187
  font-size: 12px;
164
188
  padding: 8px;
189
+ color: var(--theme-deepNeutral, #2E394C);
165
190
  }
166
191
  .current_video .currentItem:hover {
167
- background-color: #f7f7fc;
192
+ background-color: var(--theme-paleNeutral, #F2F3F7);
168
193
  color: var(--theme-primary, #4086ff);
169
194
  }
170
195
  .current_video .currentItem .img {
@@ -2,7 +2,7 @@
2
2
  .container {
3
3
  max-width: clamp(360px, 90%, 800px);
4
4
  padding: 0 20px;
5
- border-left: 2px solid #d9dce5;
5
+ border-left: 2px solid var(--theme-softNeutral, #D9DCE5);
6
6
  margin-bottom: 16px;
7
7
  user-select: none;
8
8
  }
@@ -18,7 +18,7 @@
18
18
  font-family: PingFangSC, PingFang SC;
19
19
  font-weight: 600;
20
20
  font-size: 16px;
21
- color: #2e394c;
21
+ color: var(--theme-deepNeutral, #2E394C);
22
22
  line-height: 16px;
23
23
  text-align: left;
24
24
  font-style: normal;
@@ -34,7 +34,7 @@
34
34
  font-family: PingFangSC, PingFang SC;
35
35
  font-weight: 400;
36
36
  font-size: 14px;
37
- color: #7d91b3;
37
+ color: var(--theme-neutral, #4C5A70);
38
38
  line-height: 26px;
39
39
  text-align: left;
40
40
  font-style: normal;
@@ -121,7 +121,7 @@
121
121
  font-family: PingFangSC, PingFang SC;
122
122
  font-weight: 400;
123
123
  font-size: 14px;
124
- color: #2e394c;
124
+ color: var(--theme-deepNeutral, #2E394C);
125
125
  line-height: 26px;
126
126
  text-align: left;
127
127
  font-style: normal;
@@ -156,7 +156,7 @@
156
156
  .dot {
157
157
  width: 8px; /* 减小大小 */
158
158
  height: 8px; /* 减小大小 */
159
- background-color: #4086ff; /* 换成antd主题浅蓝色 */
159
+ background-color: var(--theme-primary, #4086FF); /* 换成antd主题浅蓝色 */
160
160
  border-radius: 50%;
161
161
  will-change: transform; /* 告诉浏览器提前优化动画 */
162
162
  animation: bounce 0.8s infinite ease-in-out both; /* 减小动画变化幅度 */
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .main {
10
- background-color: #f7f8fa;
10
+ background-color: var(--theme-subtleNeutral, #F5F7FA);
11
11
  border-radius: 12px;
12
12
  display: flex;
13
13
  align-items: center;
@@ -41,7 +41,7 @@
41
41
  font-size: 14px;
42
42
  line-height: 150%;
43
43
  letter-spacing: 0px;
44
- color: #2e394c;
44
+ color: var(--theme-deepNeutral, #2E394C);
45
45
  }
46
46
  .main .description .text_twoline {
47
47
  text-overflow: ellipsis;
@@ -55,7 +55,7 @@
55
55
  font-size: 14px;
56
56
  line-height: 150%;
57
57
  letter-spacing: 0px;
58
- color: #2e394c;
58
+ color: var(--theme-deepNeutral, #2E394C);
59
59
  }
60
60
  .main .description .product_text {
61
61
  text-overflow: ellipsis;
@@ -69,10 +69,10 @@
69
69
  font-size: 14px;
70
70
  line-height: 150%;
71
71
  letter-spacing: 0px;
72
- color: #2e394c;
72
+ color: var(--theme-deepNeutral, #2E394C);
73
73
  }
74
74
  .main .description .duration {
75
- color: #717f94;
75
+ color: var(--theme-dustyNeutral, #717F94);
76
76
  font-family: "PingFang SC";
77
77
  font-weight: 400;
78
78
  font-style: Regular;
@@ -33,7 +33,7 @@
33
33
  }
34
34
 
35
35
  .knowledge {
36
- background-color: #f7f8fa;
36
+ background-color: var(--theme-subtleNeutral, #F5F7FA);
37
37
  border-radius: 12px;
38
38
  display: flex;
39
39
  align-items: center;
@@ -113,7 +113,7 @@
113
113
  border-radius: 4px;
114
114
  float: left;
115
115
  margin-right: 5px;
116
- background-color: #7d91b3;
116
+ background-color: var(--theme-neutral, #4C5A70);
117
117
  color: #ffffff;
118
118
  }
119
119
  .knowledge .class_description .text {
@@ -129,7 +129,7 @@
129
129
  font-size: 14px;
130
130
  line-height: 150%;
131
131
  letter-spacing: 0px;
132
- color: #2e394c;
132
+ color: var(--theme-deepNeutral, #2E394C);
133
133
  }
134
134
 
135
135
  .list {
@@ -143,5 +143,5 @@
143
143
  font-size: 14px;
144
144
  line-height: 150%;
145
145
  letter-spacing: 0px;
146
- color: #4c5a70;
146
+ color: var(--theme-neutral, #4C5A70);
147
147
  }
@@ -9,7 +9,7 @@
9
9
  width: 305px;
10
10
  display: flex;
11
11
  align-items: center;
12
- background: #f7f8fa;
12
+ background: var(--theme-subtleNeutral, #F5F7FA);
13
13
  padding: 16px;
14
14
  border-radius: 8px;
15
15
  margin-right: 10px;
@@ -33,7 +33,7 @@
33
33
  font-family: PingFangSC, PingFang SC;
34
34
  font-weight: 500;
35
35
  font-size: 12px;
36
- color: #2e394c;
36
+ color: var(--theme-deepNeutral, #2E394C);
37
37
  text-align: left;
38
38
  font-style: normal;
39
39
  display: -webkit-box;
@@ -64,14 +64,14 @@
64
64
  }
65
65
  .search .search_cards .courseItem .courseTitle .newEquityLabel-3 {
66
66
  color: #fff;
67
- background: #7d91b3;
67
+ background: var(--theme-neutral, #4C5A70);
68
68
  }
69
69
  .search .search_cards .courseItem .infoTitle {
70
70
  width: 100%;
71
71
  font-family: PingFangSC, PingFang SC;
72
72
  font-weight: 400;
73
73
  font-size: 12px;
74
- color: #7d91b3;
74
+ color: var(--theme-neutral, #4C5A70);
75
75
  line-height: 12px;
76
76
  text-align: left;
77
77
  font-style: normal;
@@ -81,7 +81,7 @@
81
81
  line-height: 17px;
82
82
  }
83
83
  .search .search_cards .newsItem {
84
- background: #f7f8fa;
84
+ background: var(--theme-subtleNeutral, #F5F7FA);
85
85
  padding: 16px;
86
86
  border-radius: 8px;
87
87
  margin-right: 10px;
@@ -111,7 +111,7 @@
111
111
  font-family: PingFangSC, PingFang SC;
112
112
  font-weight: 500;
113
113
  font-size: 12px;
114
- color: #2e394c;
114
+ color: var(--theme-deepNeutral, #2E394C);
115
115
  text-align: left;
116
116
  font-style: normal;
117
117
  display: -webkit-box;
@@ -141,14 +141,14 @@
141
141
  }
142
142
  .search .search_cards .newsItem .courseTitle .newEquityLabel-3 {
143
143
  color: #fff;
144
- background: #7d91b3;
144
+ background: var(--theme-neutral, #4C5A70);
145
145
  }
146
146
  .search .search_cards .newsItem .infoTitle {
147
147
  width: 100%;
148
148
  font-family: PingFangSC, PingFang SC;
149
149
  font-weight: 400;
150
150
  font-size: 12px;
151
- color: #7d91b3;
151
+ color: var(--theme-neutral, #4C5A70);
152
152
  line-height: 12px;
153
153
  text-align: left;
154
154
  font-style: normal;
@@ -184,7 +184,7 @@
184
184
  font-family: PingFangSC, PingFang SC;
185
185
  font-weight: 400;
186
186
  font-size: 14px;
187
- color: #2e394c;
187
+ color: var(--theme-deepNeutral, #2E394C);
188
188
  line-height: 20px;
189
189
  text-align: left;
190
190
  font-style: normal;
@@ -194,7 +194,7 @@
194
194
  .search .searchAll {
195
195
  width: 78px;
196
196
  height: 83px;
197
- background: #f7f8fa;
197
+ background: var(--theme-subtleNeutral, #F5F7FA);
198
198
  border-radius: 8px;
199
199
  display: flex;
200
200
  align-items: center;
@@ -202,7 +202,7 @@
202
202
  font-family: PingFangSC, PingFang SC;
203
203
  font-weight: 400;
204
204
  font-size: 14px;
205
- color: #2e394c;
205
+ color: var(--theme-deepNeutral, #2E394C);
206
206
  line-height: 14px;
207
207
  text-align: left;
208
208
  font-style: normal;
@@ -214,7 +214,7 @@
214
214
  font-family: PingFangSC, PingFang SC;
215
215
  font-weight: 400;
216
216
  font-size: 14px;
217
- color: #2e394c;
217
+ color: var(--theme-deepNeutral, #2E394C);
218
218
  line-height: 26px;
219
219
  text-align: left;
220
220
  font-style: normal;
@@ -81,7 +81,7 @@
81
81
  font-family: PingFangSC, PingFang SC;
82
82
  font-weight: 500;
83
83
  font-size: 16px;
84
- color: #2e394c;
84
+ color: var(--theme-deepNeutral, #2E394C);
85
85
  line-height: 22px;
86
86
  text-align: center;
87
87
  font-style: normal;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import styles from "./customFile.module.css";
4
- import reTry from "../../assets/image/retry.png";
5
4
  import { FileStatus } from "../../interfaces/fileInterface";
6
5
  import { formatSizeToKB } from "../../utils/tools";
6
+ import IconFontCom from "../iconfont-com";
7
7
  var CustomFile = function CustomFile(_ref) {
8
8
  var file = _ref.file,
9
9
  handleDelFile = _ref.handleDelFile,
@@ -61,7 +61,7 @@ var CustomFile = function CustomFile(_ref) {
61
61
  width: '24px',
62
62
  height: '22px',
63
63
  borderRadius: 4,
64
- background: '#D9DCE5',
64
+ background: "var(--theme-softNeutral, #D9DCE5)",
65
65
  flexShrink: 0
66
66
  }
67
67
  }) : isImage ? /*#__PURE__*/React.createElement("img", {
@@ -72,7 +72,7 @@ var CustomFile = function CustomFile(_ref) {
72
72
  height: '36px',
73
73
  objectFit: 'cover',
74
74
  borderRadius: 8,
75
- background: '#D9DCE5'
75
+ background: "var(--theme-softNeutral, #D9DCE5)"
76
76
  },
77
77
  onError: function onError(e) {
78
78
  e.currentTarget.style.visibility = 'hidden';
@@ -100,13 +100,10 @@ var CustomFile = function CustomFile(_ref) {
100
100
  })), isError && /*#__PURE__*/React.createElement("div", {
101
101
  className: styles.uploadError,
102
102
  onClick: handleRetryClick
103
- }, t('common.retry'), /*#__PURE__*/React.createElement("img", {
104
- src: reTry,
105
- alt: "",
106
- style: {
107
- width: 16,
108
- height: 16
109
- }
103
+ }, t('common.retry'), /*#__PURE__*/React.createElement(IconFontCom, {
104
+ type: "icon-shuaxin1",
105
+ size: 16,
106
+ color: "var(--theme-primary, #4086FF)"
110
107
  })), showDel && /*#__PURE__*/React.createElement("div", {
111
108
  className: styles.delIcon,
112
109
  onClick: handleDeleteClick
@@ -37,7 +37,7 @@ var ImageFile = function ImageFile(_ref) {
37
37
  }, isUploading ? /*#__PURE__*/React.createElement("div", {
38
38
  className: classNames(styles.uploadImg),
39
39
  style: {
40
- background: '#D9DCE5'
40
+ background: "var(--theme-softNeutral, #D9DCE5)"
41
41
  }
42
42
  }) : /*#__PURE__*/React.createElement("img", {
43
43
  src: file.fileUrl,
@@ -7,7 +7,7 @@
7
7
  width: fit-content; /* 自动适应内容宽度 */
8
8
  flex-shrink: 0;
9
9
  border-radius: 12px;
10
- background: var(---, #f2f3f7);
10
+ background: var(--theme-subtleNeutral, #F5F7FA);
11
11
  padding: 14px 16px 14px 12px;
12
12
  margin-bottom: 12px;
13
13
  position: relative;
@@ -29,7 +29,7 @@
29
29
 
30
30
  .uploadName {
31
31
  flex: 1; /* 让文件名占满剩余空间 */
32
- color: #2e394c;
32
+ color: var(--theme-deepNeutral, #2E394C);
33
33
  font-family: "PingFang SC";
34
34
  font-size: 14px;
35
35
  font-style: normal;
@@ -53,12 +53,12 @@
53
53
  }
54
54
  .uploadName .uploadfileName .fileExtension {
55
55
  white-space: nowrap; /* 确保扩展名不换行 */
56
- color: #717F94; /* 可以给扩展名一个不同的颜色区分 */
56
+ color: var(--theme-neutral, #4C5A70); /* 可以给扩展名一个不同的颜色区分 */
57
57
  }
58
58
  .uploadName .sizeText .size {
59
59
  margin-right: 4px;
60
60
  font-size: 12px; /* 修复之前的语法错误,添加单位px */
61
- color: #717F94;
61
+ color: var(--theme-neutral, #4C5A70);
62
62
  }
63
63
  .uploadName .sizeText .errorText {
64
64
  color: #f33;
@@ -76,7 +76,7 @@
76
76
  margin-left: 8px;
77
77
  font-size: 14px;
78
78
  flex-shrink: 0;
79
- color: #717F94;
79
+ color: var(--theme-deepNeutral, #2E394C);
80
80
  }
81
81
  .uploadStatus img,
82
82
  .uploadLoading img {
@@ -109,7 +109,7 @@
109
109
 
110
110
  .uploadError {
111
111
  cursor: pointer;
112
- color: #4086ff;
112
+ color: var(--theme-primary, #4086ff);
113
113
  text-align: right;
114
114
  font-family: "PingFang SC";
115
115
  font-size: 14px;
@@ -4,7 +4,7 @@
4
4
  width: 54px;
5
5
  height: 54px;
6
6
  border-radius: 8px;
7
- border: 0.5px solid #D9DCE5;
7
+ border: 0.5px solid var(--theme-softNeutral, #D9DCE5);
8
8
  position: relative;
9
9
  overflow: visible;
10
10
  margin-bottom: 12px;
@@ -31,7 +31,7 @@
31
31
  width: 54px;
32
32
  height: 54px;
33
33
  border-radius: 8px;
34
- border: 0.5px solid #D9DCE5;
34
+ border: 0.5px solid var(--theme-softNeutral, #D9DCE5);
35
35
  }
36
36
  .uploadBox:hover .delIcon {
37
37
  display: flex;
@@ -52,7 +52,7 @@
52
52
  bottom: 0;
53
53
  right: 0;
54
54
  border-radius: 8px;
55
- border: 0.5px solid #D9DCE5;
55
+ border: 0.5px solid var(--theme-softNeutral, #D9DCE5);
56
56
  background: rgba(0, 0, 0, 0.4);
57
57
  }
58
58
  .uploadStatus img,
@@ -73,7 +73,7 @@
73
73
  width: 24px;
74
74
  height: 24px;
75
75
  border-radius: 50%;
76
- background: #F2F3F7;
76
+ background: var(--theme-paleNeutral, #F2F3F7);
77
77
  display: flex;
78
78
  align-items: center;
79
79
  justify-content: center;
@@ -166,7 +166,7 @@ export default function VoiceBars(_ref) {
166
166
  style: {
167
167
  width: 3,
168
168
  height: h,
169
- background: '#2E394C',
169
+ background: "var(--theme-deepNeutral, #2E394C)",
170
170
  borderRadius: 4,
171
171
  transition: 'height 0.1s ease-out'
172
172
  }
@@ -11,7 +11,7 @@
11
11
  gap: 10px;
12
12
  padding: 5px 10px;
13
13
  margin-bottom: 5px;
14
- border: 1px solid #d9dce5;
14
+ border: 1px solid var(--theme-softNeutral, #D9DCE5);
15
15
  border-radius: 8px;
16
16
  font-family: "PingFang SC";
17
17
  font-weight: 400;