@myun/gimi-chat 0.0.4 → 0.0.5

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 (80) hide show
  1. package/dist/components/ai-chat-dialogue/index.js +1 -1
  2. package/dist/components/ai-chat-dialogue/index.module.css +230 -0
  3. package/dist/components/ai-loading/index.js +1 -1
  4. package/dist/components/ai-loading/index.module.css +11 -0
  5. package/dist/components/answer-item/index.js +1 -1
  6. package/dist/components/answer-item/index.module.css +266 -0
  7. package/dist/components/ask-card/index.js +1 -1
  8. package/dist/components/ask-card/index.module.css +122 -0
  9. package/dist/components/chat-input/index.js +1 -1
  10. package/dist/components/chat-input/index.module.css +42 -0
  11. package/dist/components/dots-loading/index.js +1 -1
  12. package/dist/components/dots-loading/index.module.css +41 -0
  13. package/dist/components/empty/index.js +1 -1
  14. package/dist/components/empty/index.module.css +24 -0
  15. package/dist/components/excel-components/ExcelExcuting.js +1 -1
  16. package/dist/components/excel-components/ExcelFailCard.js +1 -1
  17. package/dist/components/excel-components/index.module.css +212 -0
  18. package/dist/components/excel-components/styles.module.css +178 -0
  19. package/dist/components/file-card/fileCardSidebar.js +1 -1
  20. package/dist/components/file-card/index.js +1 -1
  21. package/dist/components/file-card/index.module.css +139 -0
  22. package/dist/components/file-preview/index.js +6 -8
  23. package/dist/components/file-preview/index.module.css +83 -0
  24. package/dist/components/gimi-sidebar/index.js +1 -1
  25. package/dist/components/gimi-sidebar/index.module.css +118 -0
  26. package/dist/components/header/index.js +1 -1
  27. package/dist/components/header/index.module.css +19 -0
  28. package/dist/components/knowledge-trace/KnowledgeIconComponent.js +1 -1
  29. package/dist/components/knowledge-trace/classList.js +1 -1
  30. package/dist/components/knowledge-trace/documentList.js +1 -1
  31. package/dist/components/knowledge-trace/index.js +1 -1
  32. package/dist/components/knowledge-trace/index.module.css +254 -0
  33. package/dist/components/knowledge-trace/videoList.js +1 -1
  34. package/dist/components/message-list/index.js +3 -6
  35. package/dist/components/message-list/index.module.css +261 -0
  36. package/dist/components/no-microphone-root/index.js +1 -1
  37. package/dist/components/no-microphone-root/index.module.css +48 -0
  38. package/dist/components/preset-agent-content/index.js +1 -1
  39. package/dist/components/preset-agent-content/index.module.css +46 -0
  40. package/dist/components/quoted-content/index.module.css +80 -0
  41. package/dist/components/reasoning-content/index.js +1 -1
  42. package/dist/components/reasoning-content/index.module.css +169 -0
  43. package/dist/components/reference-content/index.js +1 -1
  44. package/dist/components/reference-content/index.module.css +84 -0
  45. package/dist/components/templates/CommonChat.js +1 -1
  46. package/dist/components/templates/demo/demo.js +2 -3
  47. package/dist/components/templates/index.module.css +109 -0
  48. package/dist/components/upload-list/index.js +1 -1
  49. package/dist/components/upload-list/index.module.css +119 -0
  50. package/dist/components/voice-check-dialog/index.js +1 -1
  51. package/dist/components/voice-check-dialog/{index.module.scss → index.module.css} +2 -2
  52. package/dist/components/voice-recording/index.js +1 -1
  53. package/dist/components/voice-recording/index.module.css +41 -0
  54. package/dist/components/work-flow-content/index.js +1 -1
  55. package/dist/components/work-flow-content/index.module.css +24 -0
  56. package/package.json +4 -4
  57. package/dist/components/ai-chat-dialogue/index.module.scss +0 -272
  58. package/dist/components/ai-loading/index.module.scss +0 -11
  59. package/dist/components/answer-item/index.module.scss +0 -295
  60. package/dist/components/ask-card/index.module.scss +0 -125
  61. package/dist/components/chat-input/index.module.scss +0 -44
  62. package/dist/components/dots-loading/index.module.scss +0 -45
  63. package/dist/components/empty/index.module.scss +0 -27
  64. package/dist/components/excel-components/index.module.scss +0 -210
  65. package/dist/components/excel-components/styles.module.scss +0 -186
  66. package/dist/components/file-card/index.module.scss +0 -139
  67. package/dist/components/file-preview/index.module.scss +0 -120
  68. package/dist/components/gimi-sidebar/index.module.scss +0 -136
  69. package/dist/components/header/index.module.scss +0 -26
  70. package/dist/components/knowledge-trace/index.module.scss +0 -262
  71. package/dist/components/message-list/index.module.scss +0 -304
  72. package/dist/components/no-microphone-root/index.module.scss +0 -42
  73. package/dist/components/preset-agent-content/index.module.scss +0 -48
  74. package/dist/components/quoted-content/index.module.scss +0 -76
  75. package/dist/components/reasoning-content/index.module.scss +0 -164
  76. package/dist/components/reference-content/index.module.scss +0 -73
  77. package/dist/components/templates/index.module.scss +0 -119
  78. package/dist/components/upload-list/index.module.scss +0 -119
  79. package/dist/components/voice-recording/index.module.scss +0 -41
  80. package/dist/components/work-flow-content/index.module.scss +0 -23
@@ -1,295 +0,0 @@
1
- .title {
2
- width: 100%;
3
- display: flex;
4
- align-items: center;
5
- position: relative;
6
- font-size: 16px;
7
- color: #000000;
8
- line-height: 24px;
9
- width: fit-content;
10
- text-align: left;
11
- word-break: break-all;
12
- /* 强制换行 */
13
- overflow-wrap: break-word;
14
-
15
- /* 在适当位置换行 */
16
- .qusetionOpera {
17
- position: absolute;
18
- top: 50%;
19
- left: -30px;
20
- transform: translateY(-50%);
21
- }
22
-
23
- .answer {
24
- width: 100%;
25
- display: flex;
26
- flex-direction: column;
27
- justify-content: center;
28
- margin: 10px 0px;
29
-
30
- .completed {
31
- display: flex;
32
- gap: 10px;
33
- align-items: center;
34
-
35
- .checkIcon {
36
- font-size: 16px;
37
- color: rgba(62, 179, 86, 1);
38
- }
39
-
40
- .checkText {
41
- font-family: PingFang SC;
42
- font-weight: 600;
43
- font-style: Semibold;
44
- font-size: 15px;
45
- line-height: 180%;
46
- letter-spacing: 0px;
47
- color: rgba(46, 57, 76, 1);
48
- }
49
- }
50
-
51
- // margin-bottom: 32px;
52
- .relevance {
53
- width: fit-content;
54
- height: 40px;
55
- background: #ffffff;
56
- border-radius: 16px;
57
- border: 1px solid #cfd7e6;
58
- display: flex;
59
- justify-content: center;
60
- align-items: center;
61
- margin-bottom: 14px;
62
-
63
- .icon {
64
- display: flex;
65
- align-items: center;
66
- justify-self: center;
67
- margin-right: 12px;
68
- }
69
-
70
- .search_icon {
71
- display: flex;
72
- align-items: center;
73
- justify-self: center;
74
- margin-left: 16px;
75
- }
76
-
77
- span {
78
- height: 20px;
79
- font-family: PingFangSC, PingFang SC;
80
- font-weight: 400;
81
- font-size: 14px;
82
- color: #2e394c;
83
- line-height: 20px;
84
- text-align: left;
85
- font-style: normal;
86
- margin: 0 2px;
87
- }
88
- }
89
-
90
- .stop {
91
- width: 100%;
92
- height: 28px;
93
- font-family: PingFangSC, PingFang SC;
94
- font-weight: 400;
95
- font-size: 15px;
96
- color: #7d91b3;
97
- line-height: 28px;
98
- text-align: left;
99
- font-style: normal;
100
- margin-top: 6px;
101
- }
102
- }
103
- }
104
-
105
- .opera {
106
- height: 18px;
107
- margin-top: 12px;
108
- display: flex;
109
-
110
- // align-items: center;
111
- .opera_item {
112
- display: flex;
113
- align-items: center;
114
- gap: 18px;
115
- .unlove {
116
- display: flex;
117
- align-items: center;
118
- cursor: pointer;
119
- user-select: none;
120
- }
121
- }
122
- }
123
-
124
- .operaicon {
125
- height: 20px;
126
- margin-top: 12px;
127
- text-align: end;
128
- }
129
-
130
- .chatline {
131
- width: 100%;
132
- margin: 40px 0;
133
- height: 1px;
134
- background: #dfe8f7;
135
- }
136
-
137
- .course_recommend {
138
- width: 100%;
139
- margin-top: 20px;
140
-
141
- .course_recommend_header {
142
- width: 100%;
143
- height: 28px;
144
- display: flex;
145
- align-items: center;
146
- justify-content: space-between;
147
-
148
- .course_recommend_header_title {
149
- font-family: PingFangSC, PingFang SC;
150
- font-weight: 600;
151
- font-size: 18px;
152
- color: #2e394c;
153
- line-height: 28px;
154
- text-align: left;
155
- font-style: normal;
156
- }
157
-
158
- .course_recommend_header_more {
159
- display: flex;
160
- align-items: center;
161
-
162
- .all {
163
- width: 56px;
164
- height: 20px;
165
- font-family: PingFangSC, PingFang SC;
166
- font-weight: 500;
167
- font-size: 14px;
168
- color: #2e394c;
169
- line-height: 20px;
170
- text-align: left;
171
- font-style: normal;
172
- }
173
- }
174
- }
175
-
176
- .course_recommend_list {
177
- margin-top: 12px;
178
- // margin-bottom: 30px;
179
- display: flex;
180
- flex-wrap: wrap;
181
- gap: 20px 0;
182
-
183
- .courseItem {
184
- flex: 1 1 clamp(180px, 48%, 360px);
185
- max-width: clamp(180px, 48%, 360px);
186
- height: 68px;
187
- display: flex;
188
- align-items: center;
189
- justify-content: space-between;
190
-
191
- .cover {
192
- border-radius: 4px;
193
- overflow: hidden;
194
- width: 120px;
195
- height: 68px;
196
- border-radius: 4px;
197
-
198
- img {
199
- width: 100%;
200
- height: 100%;
201
- object-fit: cover;
202
- }
203
- }
204
-
205
- .courseTitle {
206
- flex: 1 1 auto;
207
- height: 68px;
208
- font-family: PingFangSC, PingFang SC;
209
- font-weight: 400;
210
- font-size: 14px;
211
- color: #2e394c;
212
- text-align: left;
213
- font-style: normal;
214
- display: -webkit-box;
215
- -webkit-line-clamp: 3;
216
- /* 限制行数 */
217
- -webkit-box-orient: vertical;
218
- overflow: hidden;
219
- text-overflow: ellipsis;
220
- margin-left: 20px;
221
-
222
- .newEquityLabel {
223
- display: inline-block !important;
224
- margin-right: 8px;
225
- padding: 0 4px;
226
- color: #e68845;
227
- font-size: 10px;
228
- font-weight: 600;
229
- line-height: 18px;
230
- border-radius: 4px;
231
- background: #ffecd9;
232
- position: relative;
233
- bottom: 2px;
234
-
235
- &-1 {
236
- color: #3d996b;
237
- background: #ccffe6;
238
- }
239
-
240
- &-2 {}
241
-
242
- &-3 {
243
- color: #fff;
244
- background: #7d91b3;
245
- }
246
- }
247
- }
248
- }
249
-
250
- .courseItem:nth-child(2n) {
251
- margin-left: 40px;
252
- }
253
- }
254
- }
255
-
256
- .quickInputList {
257
- max-width: min(800px, 90vw);
258
- display: flex;
259
- gap: 12px;
260
- flex-wrap: wrap;
261
- flex-direction: column;
262
- align-items: flex-start; // 关键:让子项不拉伸
263
- margin-top: 20px;
264
-
265
- .quickInputItem {
266
- padding: 5px 10px;
267
- font-family: PingFangSC, PingFang SC;
268
- font-weight: 400;
269
- font-size: 14px;
270
- color: rgba(46, 57, 76, 1);
271
- line-height: 18px;
272
- text-align: left;
273
- font-style: normal;
274
- border-radius: 8px;
275
- border: 1px solid rgba(217, 220, 229, 1);
276
- cursor: pointer;
277
- display: inline;
278
- white-space: nowrap;
279
- /* 禁止换行 */
280
- overflow: hidden;
281
- /* 隐藏溢出内容 */
282
- text-overflow: ellipsis;
283
- /* 显示省略号 */
284
- /* 如果需要可以添加最大宽度 */
285
- white-space: normal;
286
- }
287
- }
288
-
289
- .fileBox {
290
- border-radius: 16px;
291
- border: 1px solid var(---, #e9ebf2);
292
- background: linear-gradient(180deg, #f7fff9 0%, #f1fcfe 30%, #fff 100%);
293
- box-shadow: 0 2px 2px 0 #fff inset;
294
- padding: 20px;
295
- }
@@ -1,125 +0,0 @@
1
- .askList {
2
- width: clamp(380px, 100%, 600px);
3
- flex-shrink: 0;
4
- padding: 20px;
5
- border-radius: 16px;
6
- border: 1px solid var(---, #e9ebf2);
7
- background: linear-gradient(180deg, #f9fefe 0%, #fff 100%);
8
- box-shadow: 0 2px 2px 0 #fff inset;
9
- margin-top: 12px;
10
- .askItem {
11
- width: fit-content;
12
- flex-shrink: 0;
13
- padding: 12px 20px;
14
- border-radius: 22px;
15
- border: 1px solid var(---, #d9dce5);
16
- background: #fff;
17
- color: #000;
18
- font-family: 'PingFang SC';
19
- font-size: 14px;
20
- font-style: normal;
21
- font-weight: 600;
22
- line-height: normal;
23
- margin-bottom: 16px;
24
- cursor: pointer;
25
- min-width: clamp(88px, 25%, 100px);
26
- max-width: 100%;
27
- display: flex;
28
- justify-content: center;
29
- align-items: center;
30
- line-height: 20px;
31
- }
32
- .disablebox {
33
- border-radius: 22px;
34
- border: 1px solid var(---, #d9dce5);
35
- background: #fff;
36
- color: #ced3d9;
37
- font-family: 'PingFang SC';
38
- font-size: 14px;
39
- font-style: normal;
40
- font-weight: 600;
41
- line-height: normal;
42
- cursor: not-allowed;
43
- pointer-events: none;
44
- }
45
- .selectbox {
46
- border-radius: 22px;
47
- background: var(---, #2e394c);
48
- color: #fff;
49
- font-family: 'PingFang SC';
50
- font-size: 14px;
51
- font-style: normal;
52
- font-weight: 600;
53
- line-height: normal;
54
- cursor: not-allowed;
55
- pointer-events: none;
56
- }
57
- .askQuestion {
58
- max-width: 100%;
59
- // white-space: pre-line;
60
- color: #2e394c;
61
- font-family: 'PingFang SC';
62
- font-size: 16px;
63
- font-style: normal;
64
- font-weight: 400;
65
- line-height: 28px; /* 175% */
66
- margin-bottom: 12px;
67
- :global(.markdown_container) {
68
- p {
69
- margin: 0;
70
- white-space: pre-wrap;
71
- }
72
- li {
73
- white-space: pre-line;
74
- }
75
- }
76
- }
77
- .askItem:nth-last-child(1) {
78
- margin-bottom: 0;
79
- }
80
- }
81
- .showUpload {
82
- width: 128px;
83
- height: 44px;
84
- flex-shrink: 0;
85
- border-radius: 22px;
86
- border: 1px solid var(---, #d9dce5);
87
- background: #fff;
88
- display: flex;
89
- align-items: center;
90
- justify-content: center;
91
- cursor: pointer;
92
- display: flex;
93
- align-items: center;
94
- color: #000;
95
- font-family: 'PingFang SC';
96
- font-size: 14px;
97
- font-style: normal;
98
- font-weight: 600;
99
- line-height: normal;
100
-
101
- :global(.ant-upload) {
102
- height: 100%;
103
- }
104
- .uploadIcon {
105
- height: 100%;
106
- display: flex;
107
- align-items: center;
108
- }
109
- .disableFile {
110
- border-radius: 22px;
111
- border: 1px solid var(---, #d9dce5);
112
- background: #fff;
113
- color: #ced3d9;
114
- font-family: 'PingFang SC';
115
- font-size: 14px;
116
- font-style: normal;
117
- font-weight: 600;
118
- line-height: normal;
119
- }
120
- img {
121
- width: 32px;
122
- height: 32px;
123
- flex-shrink: 0;
124
- }
125
- }
@@ -1,44 +0,0 @@
1
- .inputWrap {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- }
6
-
7
- .deepthink {
8
- padding: 0 8px;
9
- height: 32px;
10
- border-radius: 18px;
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- cursor: pointer;
15
- color: #4086ff;
16
- background-color: #f1f7ff;
17
-
18
- span {
19
- margin-left: 4px;
20
- font-family: PingFangSC, PingFang SC;
21
- font-weight: 400;
22
- font-size: 14px;
23
- line-height: 14px;
24
- text-align: right;
25
- font-style: normal;
26
- }
27
-
28
- .imgs {
29
- display: flex;
30
- align-items: center;
31
- justify-content: center;
32
- }
33
- }
34
-
35
- .uploadIcon {
36
- width: 32px;
37
- height: 32px;
38
- cursor: pointer;
39
- img {
40
- width: 100%;
41
- height: 100%;
42
- object-fit: cover;
43
- }
44
- }
@@ -1,45 +0,0 @@
1
- .loading_dots {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- gap: 8px;
6
-
7
- .loading_dots__dot {
8
- width: 8px;
9
- height: 8px;
10
- background-color: #000;
11
- border-radius: 50%;
12
- /* Changed animation to swap positions left-right */
13
- animation: swap 1.2s infinite ease-in-out;
14
- &:first-child {
15
- /* First dot starts from left, moves to right */
16
- animation-name: swapLeftToRight;
17
- }
18
- &:last-child {
19
- /* Second dot starts from right, moves to left */
20
- animation-name: swapRightToLeft;
21
- }
22
- }
23
- }
24
-
25
- /* Animation for first dot: move from left to right */
26
- @keyframes swapLeftToRight {
27
- 0%,
28
- 100% {
29
- transform: translateX(0);
30
- }
31
- 50% {
32
- transform: translateX(16px);
33
- }
34
- }
35
-
36
- /* Animation for second dot: move from right to left */
37
- @keyframes swapRightToLeft {
38
- 0%,
39
- 100% {
40
- transform: translateX(0);
41
- }
42
- 50% {
43
- transform: translateX(-16px);
44
- }
45
- }
@@ -1,27 +0,0 @@
1
- .emptyShow {
2
- display: flex;
3
- align-items: center;
4
- flex-direction: column;
5
- justify-content: center;
6
- height: 100%;
7
- // margin-top: 60px;
8
- img {
9
- width: 165px;
10
- // height: 110px;
11
- }
12
- p {
13
- color: #7d91b3;
14
- margin-top: 10px;
15
- }
16
- }
17
- .dark {
18
- img {
19
- width: 119px;
20
- height: 98px;
21
- }
22
- p {
23
- color: white;
24
- margin-top: 12px;
25
- font-size: 20px;
26
- }
27
- }