@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,136 +0,0 @@
1
- .overflow_layout {
2
- position: absolute;
3
- right: 0;
4
- z-index: 10;
5
- height: 100%;
6
- box-shadow: -1px 0 10px 0 rgba(233, 235, 242, 1);
7
- width: 300px;
8
- display: flex;
9
- background-color: #ffff;
10
- flex-direction: column;
11
- padding: 0px 10px;
12
- border-left: 1px solid #EEEEEE;
13
- box-shadow: -1px 0 10px 0 rgba(233, 235, 242, 1);
14
- overflow: auto;
15
-
16
- .header {
17
- display: flex;
18
- height: 40px;
19
- justify-content: space-between;
20
- align-items: center;
21
- width: 100%;
22
- box-sizing: border-box;
23
- font-family: 'PingFang SC';
24
- font-weight: 600;
25
- font-size: 14px;
26
- line-height: 100%;
27
- letter-spacing: 0px;
28
- }
29
-
30
- .content {
31
- // height: calc(100% - 100px);
32
- height: 100%;
33
- overflow-y: auto;
34
- padding-right: 10px;
35
-
36
- &::-webkit-scrollbar {
37
- width: 6px;
38
- }
39
-
40
- &::-webkit-scrollbar-track {
41
- background: transparent;
42
- }
43
-
44
- &::-webkit-scrollbar-thumb {
45
- background-color: #d9d9d9;
46
- border-radius: 5px;
47
- }
48
-
49
- &::-webkit-scrollbar-thumb:hover {
50
- background-color: #bfbfbf;
51
- }
52
- }
53
- }
54
-
55
- .main {
56
- display: flex;
57
- min-width: 300px;
58
- background-color: #ffff;
59
- flex-direction: column;
60
- padding: 10px;
61
- border-left: 1px solid #EEEEEE;
62
- height: 100%;
63
- box-shadow: -1px 0 10px 0 rgba(233, 235, 242, 1);
64
- overflow: auto;
65
- z-index: 3;
66
- // 添加进场动画
67
- animation: slideInRight 0.3s ease-out forwards;
68
- transform: translateX(0);
69
- opacity: 1;
70
-
71
- .header {
72
- display: flex;
73
- height: 40px;
74
- justify-content: space-between;
75
- align-items: center;
76
- width: 100%;
77
- box-sizing: border-box;
78
- font-family: 'PingFang SC';
79
- font-weight: 600;
80
- font-size: 14px;
81
- line-height: 100%;
82
- letter-spacing: 0px;
83
- }
84
-
85
- .content {
86
- // height: calc(100% - 100px);
87
- height: 100%;
88
- overflow-y: auto;
89
- padding-right: 10px;
90
-
91
- &::-webkit-scrollbar {
92
- width: 6px;
93
- }
94
-
95
- &::-webkit-scrollbar-track {
96
- background: transparent;
97
- }
98
-
99
- &::-webkit-scrollbar-thumb {
100
- background-color: #d9d9d9;
101
- border-radius: 5px;
102
- }
103
-
104
- &::-webkit-scrollbar-thumb:hover {
105
- background-color: #bfbfbf;
106
- }
107
- }
108
- }
109
-
110
- .closed {
111
- display: none;
112
- }
113
-
114
- // 定义从右到左的进场动画关键帧
115
- @keyframes slideInRight {
116
- 0% {
117
- transform: translateX(100%);
118
- opacity: 0;
119
- }
120
- 100% {
121
- transform: translateX(0);
122
- opacity: 1;
123
- }
124
- }
125
-
126
- // 定义从左到右的退场动画关键帧
127
- @keyframes slideOutLeft {
128
- 0% {
129
- transform: translateX(0);
130
- opacity: 1;
131
- }
132
- 100% {
133
- transform: translateX(100%);
134
- opacity: 0;
135
- }
136
- }
@@ -1,26 +0,0 @@
1
- .header {
2
- // transition: all 0.3s ease;
3
- // &.transform {
4
- // transform: translateX(calc(-50% - 220px));
5
- // }
6
- .container {
7
- padding: 30px 30px 23px;
8
-
9
- width: 800px;
10
- display: flex;
11
- justify-content: center;
12
- height: 86px;
13
- margin: 0 auto;
14
- }
15
- .logo {
16
- width: 18px;
17
- height: 18px;
18
- margin-right: 8px;
19
- flex-shrink: 0;
20
- margin-top: 5px;
21
- }
22
- .title {
23
- font-size: 18px;
24
- text-align: center;
25
- }
26
- }
@@ -1,262 +0,0 @@
1
- // Variables
2
- $font-family: 'PingFang SC';
3
-
4
- // Mixins
5
- @mixin text-ellipsis($lines: 2) {
6
- text-overflow: ellipsis;
7
- display: -webkit-box;
8
- -webkit-line-clamp: $lines;
9
- -webkit-box-orient: vertical;
10
- overflow: hidden;
11
- }
12
-
13
- @mixin tag-badge-base {
14
- font-family: $font-family;
15
- font-weight: 600;
16
- font-size: 10px;
17
- line-height: 18px;
18
- letter-spacing: 0px;
19
- text-align: center;
20
- width: 48px;
21
- height: 18px;
22
- border-radius: 4px;
23
- float: left;
24
- margin-right: 5px;
25
- }
26
-
27
- .wisdom_layout {
28
- position: absolute;
29
- right: 0;
30
- z-index: 3;
31
- height: calc(100vh - 70px) !important;
32
- box-shadow: -1px 0 10px 0 rgba(233, 235, 242, 1);
33
- }
34
-
35
- .tabs {
36
- .tab_content {
37
-
38
- /**重写tab样式 start*/
39
- :global(.ant-tabs-nav::before) {
40
- border-bottom: none !important;
41
- }
42
-
43
- :global(.ant-tabs-ink-bar) {
44
- display: none !important;
45
- }
46
-
47
- :global(.ant-tabs-tab) {
48
- margin: 0;
49
- padding: 5px 10px;
50
- border-radius: 8px;
51
- }
52
-
53
- :global(.ant-tabs-tab-active) {
54
- background-color: #F1F7FF;
55
- text-decoration: none;
56
- }
57
-
58
- :global(.ant-tabs-nav) {
59
- margin: 0;
60
- }
61
-
62
- :global(.ant-tabs-content-holder) {
63
- flex: 1;
64
- display: flex;
65
- }
66
-
67
- :global(.ant-tabs-content) {
68
- flex: 1;
69
- display: flex;
70
- }
71
-
72
- :global(.ant-tabs-tabpane) {
73
- margin-top: 10px;
74
- flex: 1;
75
- width: 100%;
76
- overflow-y: auto;
77
- overflow-x: hidden;
78
- }
79
-
80
- /**重写tab样式 end*/
81
- }
82
- }
83
-
84
- .closed {
85
- display: none;
86
- }
87
-
88
- .knowledgeList {
89
- display: flex;
90
- flex-direction: column;
91
- gap: 10px;
92
- padding-bottom: 10px;
93
-
94
- .total {
95
- font-family: $font-family;
96
- font-weight: 400;
97
- font-size: 14px;
98
- line-height: 150%;
99
- letter-spacing: 0px;
100
- color: #4c5a70;
101
- }
102
-
103
- .resource_deactive {
104
- cursor: not-allowed !important;
105
-
106
- &::after {
107
- content: "";
108
- position: absolute;
109
- inset: 0;
110
- background: rgba(255, 255, 255, 0.5);
111
- border-radius: 12px;
112
- pointer-events: none;
113
- z-index: 2;
114
- }
115
- }
116
-
117
- .knowledge {
118
- background-color: #f7f8fa;
119
- border-radius: 12px;
120
- display: flex;
121
- align-items: center;
122
- gap: 10px;
123
- padding: 10px;
124
- position: relative;
125
-
126
- &:hover {
127
- cursor: pointer;
128
- }
129
-
130
- .img {
131
- height: 36px;
132
- width: 36px;
133
- }
134
-
135
- .class_img {
136
- width: 90px;
137
- height: 50px;
138
- border-radius: 8px;
139
- }
140
-
141
- .class_img_play {
142
- position: absolute;
143
- left: 24px;
144
- top: 3px;
145
- width: 45px;
146
- height: 45px;
147
- }
148
-
149
- .knowledge_trace_deactive {
150
- position: relative;
151
- font-family: $font-family;
152
- font-weight: 500;
153
- font-size: 12px;
154
- color: rgba(76, 90, 112, 1);
155
- z-index: 3;
156
- }
157
-
158
- .description {
159
- display: flex;
160
- flex-direction: column;
161
- gap: 5px;
162
-
163
- .text {
164
- @include text-ellipsis(2);
165
- width: 200px;
166
- font-family: $font-family;
167
- font-weight: 500;
168
- font-size: 14px;
169
- line-height: 150%;
170
- letter-spacing: 0px;
171
- color: #2e394c;
172
- }
173
-
174
- .timeTrace {
175
- @include text-ellipsis(2);
176
- color: #717f94;
177
- width: 200px;
178
- font-family: $font-family;
179
- font-weight: 400;
180
- font-style: Regular;
181
- font-size: 12px;
182
- line-height: 150%;
183
- letter-spacing: 0px;
184
- }
185
- }
186
-
187
- .class_description {
188
- position: relative;
189
-
190
- .tag_badge_green {
191
- @include tag-badge-base;
192
- background-color: #ccffe5;
193
- color: #3d996b;
194
- }
195
-
196
- .tag_badge_warning {
197
- @include tag-badge-base;
198
- background-color: #ffecd9;
199
- color: #e58845;
200
- }
201
-
202
- .tag_badge_default {
203
- @include tag-badge-base;
204
- background-color: #7d91b3;
205
- color: #ffffff;
206
- }
207
-
208
- .text {
209
- @include text-ellipsis(2);
210
- width: 150px;
211
- max-height: 63px;
212
- overflow: hidden;
213
- font-family: $font-family;
214
- font-weight: 500;
215
- font-size: 14px;
216
- line-height: 150%;
217
- letter-spacing: 0px;
218
- color: #2e394c;
219
- }
220
-
221
- .timeTrace {
222
- @include text-ellipsis(2);
223
- color: #717f94;
224
- width: 150px;
225
- font-family: $font-family;
226
- font-weight: 400;
227
- font-size: 12px;
228
- line-height: 150%;
229
- letter-spacing: 0px;
230
- }
231
- }
232
- }
233
-
234
- .active {
235
- border: 1px solid #0073e6;
236
- }
237
- }
238
-
239
- .icon_btn {
240
- width: fit-content;
241
- height: 22px;
242
- font-size: 12px;
243
- padding: 0px 5px;
244
- display: flex;
245
- align-items: center;
246
- justify-content: center;
247
- border-radius: 4px;
248
- gap: 5px;
249
- border: 0;
250
- background-color: #f1f7ff;
251
-
252
- &:hover {
253
- cursor: pointer;
254
- background-color: #FFFFFF;
255
- color: #4086FF;
256
- }
257
- }
258
-
259
- .icon_btn_active {
260
- background-color: #4086ff;
261
- color: #ffffff;
262
- }
@@ -1,304 +0,0 @@
1
- .main {
2
- position: relative;
3
- // min-height: 100%;
4
- width: 100%;
5
- transition: all 0.3s ease;
6
- flex: 1;
7
- padding: 20px 0 0;
8
-
9
- &.translate {
10
- transform: translateX(-320px);
11
- }
12
-
13
- .container {
14
- width: 100%;
15
- max-width: var(--container-max);
16
- margin: 0 auto;
17
- box-sizing: border-box;
18
- padding: 0 10px;
19
- // height: fit-content;
20
- }
21
-
22
- .small_container {
23
- width: min(100%, var(--container-max));
24
- max-width: var(--container-max);
25
- margin: 0 auto;
26
- box-sizing: border-box;
27
- padding: 0 16px;
28
- }
29
-
30
- // }
31
-
32
- .textWrap {
33
- padding-bottom: 40px;
34
-
35
- .textItem {
36
- width: 100%;
37
- // padding-bottom: 24px;
38
- // margin-bottom: 16px;
39
- position: relative;
40
-
41
- &.question {
42
- width: 100%;
43
- display: flex;
44
- flex-direction: column;
45
- margin-top: 22px;
46
-
47
- .title {
48
- font-size: 15px;
49
- line-height: 1.8;
50
- display: inline-block;
51
- max-width: 680px;
52
- padding: 12px 16px;
53
- background: #ebf2ff;
54
- border-radius: 16px;
55
- white-space: pre-wrap;
56
- word-break: break-word;
57
- align-self: flex-end;
58
- overflow-x: auto;
59
- }
60
-
61
- .listBox {
62
- display: flex;
63
- flex-direction: row-reverse;
64
- margin-top: 16px;
65
- }
66
-
67
- .opera {
68
- left: unset;
69
- right: 0;
70
- }
71
- }
72
-
73
- &.question:first-child {
74
- margin-top: 0;
75
- }
76
-
77
- &:last-child {
78
- margin-bottom: 0;
79
- }
80
-
81
- .title {
82
- width: 100%;
83
- display: flex;
84
- align-items: center;
85
- position: relative;
86
- font-size: 16px;
87
- color: #000000;
88
- line-height: 24px;
89
- width: fit-content;
90
- text-align: left;
91
- word-break: break-all;
92
- /* 强制换行 */
93
- overflow-wrap: break-word;
94
-
95
- /* 在适当位置换行 */
96
- .qusetionOpera {
97
- position: absolute;
98
- top: 50%;
99
- left: -30px;
100
- transform: translateY(-50%);
101
- }
102
-
103
- .answer {
104
- width: 100%;
105
- display: flex;
106
- flex-direction: column;
107
- justify-content: center;
108
- margin-bottom: 20px;
109
-
110
- .relevance {
111
- width: fit-content;
112
- height: 40px;
113
- background: #ffffff;
114
- border-radius: 16px;
115
- border: 1px solid #cfd7e6;
116
- display: flex;
117
- justify-content: center;
118
- align-items: center;
119
- margin-bottom: 14px;
120
-
121
- .icon {
122
- display: flex;
123
- align-items: center;
124
- justify-self: center;
125
- margin-right: 12px;
126
- }
127
-
128
- .search_icon {
129
- display: flex;
130
- align-items: center;
131
- justify-self: center;
132
- margin-left: 16px;
133
- }
134
-
135
- span {
136
- height: 20px;
137
- font-family: PingFangSC, PingFang SC;
138
- font-weight: 400;
139
- font-size: 14px;
140
- color: #2e394c;
141
- line-height: 20px;
142
- text-align: left;
143
- font-style: normal;
144
- margin: 0 2px;
145
- }
146
- }
147
- }
148
- }
149
-
150
- .opera {
151
- width: 100%;
152
- height: 20px;
153
- margin-top: 12px;
154
- display: flex;
155
- align-items: center;
156
-
157
- .opera_item {
158
- display: flex;
159
- align-items: center;
160
-
161
- .unlove {
162
- margin-left: 18px;
163
- display: flex;
164
- align-items: center;
165
- cursor: pointer;
166
- }
167
- }
168
- }
169
-
170
- .operaicon {
171
- height: 20px;
172
- margin-top: 12px;
173
- text-align: end;
174
- }
175
-
176
- .chatline {
177
- margin: 40px 0;
178
- width: 100%;
179
- height: 1px;
180
- background: #dfe8f7;
181
- }
182
-
183
- .course_recommend {
184
- .course_recommend_header {
185
- width: 100%;
186
- height: 28px;
187
- display: flex;
188
- align-items: center;
189
- justify-content: space-between;
190
-
191
- .course_recommend_header_title {
192
- font-family: PingFangSC, PingFang SC;
193
- font-weight: 600;
194
- font-size: 18px;
195
- color: #2e394c;
196
- line-height: 28px;
197
- text-align: left;
198
- font-style: normal;
199
- }
200
-
201
- .course_recommend_header_more {
202
- display: flex;
203
- align-items: center;
204
-
205
- .all {
206
- width: 56px;
207
- height: 20px;
208
- font-family: PingFangSC, PingFang SC;
209
- font-weight: 500;
210
- font-size: 14px;
211
- color: #2e394c;
212
- line-height: 20px;
213
- text-align: left;
214
- font-style: normal;
215
- }
216
- }
217
- }
218
-
219
- .course_recommend_list {
220
- margin-top: 12px;
221
- margin-bottom: 30px;
222
- display: flex;
223
- flex-wrap: wrap;
224
- gap: 20px;
225
-
226
- .courseItem {
227
- width: 360px;
228
- height: 68px;
229
- display: flex;
230
- align-items: center;
231
- justify-content: space-between;
232
- gap: 20;
233
-
234
- .cover {
235
- border-radius: 4px;
236
- overflow: hidden;
237
- width: 120px;
238
- height: 68px;
239
- border-radius: 4px;
240
-
241
- img {
242
- width: 100%;
243
- height: 100%;
244
- object-fit: cover;
245
- }
246
- }
247
-
248
- .courseTitle {
249
- width: 228px;
250
- height: 68px;
251
- font-family: PingFangSC, PingFang SC;
252
- font-weight: 400;
253
- font-size: 14px;
254
- color: #2e394c;
255
- line-height: 20px;
256
- text-align: left;
257
- font-style: normal;
258
- display: -webkit-box;
259
- -webkit-line-clamp: 3;
260
- /* 限制行数 */
261
- -webkit-box-orient: vertical;
262
- overflow: hidden;
263
- text-overflow: ellipsis;
264
- }
265
- }
266
- }
267
- }
268
- }
269
-
270
- .answerLoading {
271
- width: 40px;
272
- margin-top: 20px;
273
- }
274
- }
275
-
276
- .emptyWrap {
277
- text-align: center;
278
- height: 100%;
279
- display: flex;
280
- flex-direction: column;
281
- justify-content: center;
282
-
283
- .title {
284
- font-weight: 600;
285
- font-size: 20px;
286
- color: #2e394c;
287
- line-height: 28px;
288
- margin-bottom: 12px;
289
- }
290
-
291
- .tips {
292
- font-size: 16px;
293
- color: #54698c;
294
- }
295
- }
296
- }
297
-
298
- .copyBtn {
299
- width: fit-content;
300
- display: flex;
301
- gap: 10px;
302
- margin-left: auto;
303
- margin-top: 10px;
304
- }