@zero-library/chat-copilot 1.0.2 → 1.0.4

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/index.css CHANGED
@@ -38,26 +38,31 @@
38
38
  .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc .ant-attachment-list-card-ellipsis-prefix {
39
39
  display: none;
40
40
  }
41
- .styles_module_chatSender.ant-sender:focus-within {
42
- box-shadow: none;
41
+ .styles_module_chatSender.ant-sender .ant-sender-input {
42
+ scrollbar-width: thin;
43
+ scrollbar-color: transparent transparent;
43
44
  }
44
- .styles_module_chatQuoteMsg {
45
- margin-top: 4px;
45
+ .styles_module_chatSender.ant-sender .ant-sender-input::-webkit-scrollbar {
46
+ width: 8px;
47
+ height: 8px;
46
48
  }
47
- .styles_module_chatQuoteMsg.ant-bubble > .ant-bubble-content {
48
- min-height: auto;
49
- background-color: var(--ant-color-fill-tertiary) !important;
50
- color: var(--ant-color-text-tertiary);
49
+ .styles_module_chatSender.ant-sender .ant-sender-input::-webkit-scrollbar-thumb {
50
+ background-color: rgba(0, 0, 0, 0);
51
+ border-radius: 4px;
52
+ transition: background-color 0.3s ease 0.3s;
51
53
  }
52
- .styles_module_chatQuoteMsg .styles_module_quoteTooltip {
53
- max-width: 100%;
54
- border: 1px solid #000;
54
+ .styles_module_chatSender.ant-sender .ant-sender-input::-webkit-scrollbar-track {
55
+ background: transparent;
55
56
  }
56
- .styles_module_chatQuoteMsg .styles_module_quoteTooltip .styles_module_quoteTooltipContainer {
57
- max-height: 200px;
58
- overflow-y: auto;
59
- background-color: #fff;
60
- color: #000;
57
+ .styles_module_chatSender.ant-sender .ant-sender-input:hover {
58
+ scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
59
+ }
60
+ .styles_module_chatSender.ant-sender .ant-sender-input:hover::-webkit-scrollbar-thumb {
61
+ background-color: rgba(0, 0, 0, 0.1);
62
+ transition-delay: 0s;
63
+ }
64
+ .styles_module_chatSender.ant-sender:focus-within {
65
+ box-shadow: none;
61
66
  }
62
67
  .styles_module_runStartedNode {
63
68
  padding: 2px 12px;
@@ -95,84 +100,24 @@
95
100
  background-position: -200% 0;
96
101
  }
97
102
  }
98
-
99
- /* src/components/custom-components/tool-renders/index.module.less */
100
- .index_module_iconContainer {
101
- width: 20px;
102
- height: 20px;
103
- display: flex;
104
- align-items: center;
105
- justify-content: center;
106
- border-radius: var(--ant-border-radius-sm);
107
- overflow: hidden;
108
- flex-shrink: 0;
109
- gap: 20;
110
- }
111
- .index_module_toolName {
112
- font-size: 12px;
113
- color: var(--ant-color-text-secondary);
114
- flex: 1;
115
- line-height: 22px;
116
- }
117
- .index_module_duration {
118
- font-size: 12px;
119
- color: var(--ant-color-text-tertiary);
120
- flex-shrink: 0;
121
- }
122
- .index_module_statusIcon {
123
- font-size: 12px;
124
- display: flex;
125
- align-items: center;
126
- margin-left: 20px;
103
+ .styles_module_chatQuoteMsg {
104
+ margin-top: 0;
105
+ padding-top: 0 !important;
127
106
  }
128
- .index_module_sectionLabel {
129
- font-size: 12px;
107
+ .styles_module_chatQuoteMsg.ant-bubble > .ant-bubble-body > .ant-bubble-content {
108
+ min-height: auto;
109
+ background-color: var(--ant-color-fill-tertiary) !important;
130
110
  color: var(--ant-color-text-tertiary);
131
- margin-bottom: 4px;
132
- display: block;
133
111
  }
134
- .index_module_markdownContainer {
112
+ .styles_module_chatQuoteMsg .styles_module_quoteTooltip {
135
113
  max-width: 100%;
136
- overflow-x: auto;
137
- font-size: 12px;
138
- opacity: 0.85;
139
- }
140
- .index_module_sectionBlock {
141
- display: block;
142
- }
143
- .index_module_todoList {
144
- background-color: var(--ant-color-fill-alter);
145
- border-radius: var(--ant-border-radius);
146
- border: 1px solid var(--ant-color-border-secondary);
147
- margin-top: 4px;
148
- }
149
- .index_module_todoItem {
150
- padding: 8px 12px;
151
- border-bottom: 1px solid var(--ant-color-border-secondary);
152
- display: flex;
153
- align-items: flex-start;
154
- gap: 8px;
155
- }
156
- .index_module_todoItem:last-child {
157
- border-bottom: none;
158
- }
159
- .index_module_statusIconWrapper {
160
- margin-top: 2px;
161
- }
162
- .index_module_todoContent {
163
- flex: 1;
164
- min-width: 0;
165
- }
166
- .index_module_todoText {
167
- font-size: 13px;
168
- color: var(--ant-color-text);
169
- }
170
- .index_module_todoText.index_module_completed {
171
- color: var(--ant-color-text-tertiary);
172
- text-decoration: line-through;
114
+ border: 1px solid #000;
173
115
  }
174
- .index_module_emptyText {
175
- font-size: 12px;
116
+ .styles_module_chatQuoteMsg .styles_module_quoteTooltip .styles_module_quoteTooltipContainer {
117
+ max-height: 200px;
118
+ overflow-y: auto;
119
+ background-color: #fff;
120
+ color: #000;
176
121
  }
177
122
 
178
123
  /* src/ui/common/styles.module.less */
@@ -412,6 +357,139 @@
412
357
  padding: 0 !important;
413
358
  }
414
359
 
360
+ /* src/components/CustomComponents/XMarkdown/styles.module.less */
361
+ .styles_module_appCard {
362
+ width: 180px;
363
+ border-radius: 10px;
364
+ border: 1px solid #d7d7d7;
365
+ background-color: #fafafa;
366
+ font-size: 16px;
367
+ cursor: pointer;
368
+ margin: 8px;
369
+ padding: 12px 8px;
370
+ }
371
+ .styles_module_appCard > div {
372
+ max-width: 100%;
373
+ }
374
+ .styles_module_appCard > img {
375
+ height: 30px;
376
+ }
377
+ .styles_module_fileView {
378
+ width: 200px;
379
+ padding: 4px 8px;
380
+ cursor: pointer;
381
+ background-color: #f5f3f3;
382
+ border-radius: 6px;
383
+ }
384
+ .styles_module_fileEdit {
385
+ margin: 12px 0;
386
+ border-radius: 6px;
387
+ border: 1px solid #f2f2f2;
388
+ }
389
+ .styles_module_fileEdit .styles_module_fileEditHeader {
390
+ padding: 2px 8px;
391
+ background-color: #f2f2f2;
392
+ }
393
+ .styles_module_fileEdit .styles_module_fileEditContent {
394
+ padding: 8px;
395
+ background-color: #fafafa;
396
+ }
397
+ .styles_module_mdEdit {
398
+ margin: 10px 0;
399
+ background-color: rgba(242, 242, 242, 0.2);
400
+ border: 1px solid #f2f2f2;
401
+ padding: 10px;
402
+ border-radius: 4px;
403
+ }
404
+
405
+ /* src/components/XMarkdown/styles.module.less */
406
+ .styles_module_xMarkdownStyle {
407
+ }
408
+ .styles_module_xMarkdownStyle .ant-codeHighlighter-code code,
409
+ .xMarkdownStyle .ant-codeHighlighter-code pre,
410
+ .xMarkdownStyle .ant-codeHighlighter-code [class*=language-] {
411
+ background-color: transparent !important;
412
+ }
413
+
414
+ /* src/components/CustomComponents/tool-renders/index.module.less */
415
+ .index_module_iconContainer {
416
+ width: 20px;
417
+ height: 20px;
418
+ display: flex;
419
+ align-items: center;
420
+ justify-content: center;
421
+ border-radius: var(--ant-border-radius-sm);
422
+ overflow: hidden;
423
+ flex-shrink: 0;
424
+ gap: 20;
425
+ }
426
+ .index_module_toolName {
427
+ font-size: 12px;
428
+ color: var(--ant-color-text-secondary);
429
+ flex: 1;
430
+ line-height: 22px;
431
+ }
432
+ .index_module_duration {
433
+ font-size: 12px;
434
+ color: var(--ant-color-text-tertiary);
435
+ flex-shrink: 0;
436
+ }
437
+ .index_module_statusIcon {
438
+ font-size: 12px;
439
+ display: flex;
440
+ align-items: center;
441
+ margin-left: 20px;
442
+ }
443
+ .index_module_sectionLabel {
444
+ font-size: 12px;
445
+ color: var(--ant-color-text-tertiary);
446
+ margin-bottom: 4px;
447
+ display: block;
448
+ }
449
+ .index_module_markdownContainer {
450
+ max-width: 100%;
451
+ overflow-x: auto;
452
+ font-size: 12px;
453
+ opacity: 0.85;
454
+ }
455
+ .index_module_sectionBlock {
456
+ display: block;
457
+ }
458
+ .index_module_todoList {
459
+ background-color: var(--ant-color-fill-alter);
460
+ border-radius: var(--ant-border-radius);
461
+ border: 1px solid var(--ant-color-border-secondary);
462
+ margin-top: 4px;
463
+ }
464
+ .index_module_todoItem {
465
+ padding: 8px 12px;
466
+ border-bottom: 1px solid var(--ant-color-border-secondary);
467
+ display: flex;
468
+ align-items: flex-start;
469
+ gap: 8px;
470
+ }
471
+ .index_module_todoItem:last-child {
472
+ border-bottom: none;
473
+ }
474
+ .index_module_statusIconWrapper {
475
+ margin-top: 2px;
476
+ }
477
+ .index_module_todoContent {
478
+ flex: 1;
479
+ min-width: 0;
480
+ }
481
+ .index_module_todoText {
482
+ font-size: 13px;
483
+ color: var(--ant-color-text);
484
+ }
485
+ .index_module_todoText.index_module_completed {
486
+ color: var(--ant-color-text-tertiary);
487
+ text-decoration: line-through;
488
+ }
489
+ .index_module_emptyText {
490
+ font-size: 12px;
491
+ }
492
+
415
493
  /* src/ui/layouts/components/styles.module.less */
416
494
  .styles_module_bodyWidth {
417
495
  width: 100%;
@@ -428,25 +506,22 @@
428
506
  color: #bfbfbf;
429
507
  }
430
508
  .styles_module_previewHeader {
431
- padding-bottom: 4px;
432
- border-bottom: 1px solid #e2e8f0;
433
- }
434
- .styles_module_previewCloseBtn {
435
- cursor: pointer;
436
- display: flex;
509
+ padding: 8px;
510
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
437
511
  align-items: center;
438
- color: var(--ant-color-text-tertiary);
439
- transition: color 0.3s;
440
- font-size: 16px;
441
512
  }
442
- .styles_module_previewCloseBtn:hover {
443
- color: var(--ant-color-text);
513
+ .styles_module_previewHeader .styles_module_previewHeaderTitle {
514
+ font-size: 16px;
515
+ font-weight: bold;
444
516
  }
445
- .styles_module_previewCloseBtn .styles_module_closeIcon {
517
+ .styles_module_previewHeader .styles_module_actionIcon {
518
+ font-size: 16px;
519
+ cursor: pointer;
520
+ color: var(--ant-color-text-tertiary);
446
521
  transition: transform 0.3s ease;
447
522
  }
448
- .styles_module_previewCloseBtn.styles_module_rotateIcon:hover .styles_module_closeIcon {
449
- transform: rotate(90deg);
523
+ .styles_module_previewHeader .styles_module_actionIcon:hover {
524
+ color: var(--ant-color-text);
450
525
  }
451
526
 
452
527
  /* src/ui/layouts/index.module.less */
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/styles.module.less","../src/components/custom-components/tool-renders/index.module.less","../src/ui/common/styles.module.less","../src/ui/layouts/components/styles.module.less","../src/ui/layouts/index.module.less"],"sourcesContent":["@keyframes loading-line {\n from {\n background-position: 200% 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-content {\n padding: 0 !important;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-text {\n display: none;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-circle {\n animation: spin 2s linear infinite;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content {\n gap: 4px;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc {\n width: 15px;\n height: 15px;\n border: 2px solid transparent;\n border-color: #1890ff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n box-sizing: border-box;\n position: relative;\n clip-path: inset(0 0 30% 0);\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc .ant-attachment-list-card-ellipsis-prefix {\n display: none;\n}\n.chatSender:global.ant-sender:focus-within {\n box-shadow: none;\n}\n.chatQuoteMsg {\n margin-top: 4px;\n}\n.chatQuoteMsg:global.ant-bubble > .ant-bubble-content {\n min-height: auto;\n background-color: var(--ant-color-fill-tertiary) !important;\n color: var(--ant-color-text-tertiary);\n}\n.chatQuoteMsg .quoteTooltip {\n max-width: 100%;\n border: 1px solid #000;\n}\n.chatQuoteMsg .quoteTooltip .quoteTooltipContainer {\n max-height: 200px;\n overflow-y: auto;\n background-color: #fff;\n color: #000;\n}\n.runStartedNode {\n padding: 2px 12px;\n border-radius: 4px;\n background: linear-gradient(90deg, transparent 25%, #e6f4ff 50%, transparent 75%);\n background-size: 200% 100%;\n animation: shimmer-bg 2s infinite linear;\n display: flex;\n width: 100px;\n min-height: 28px;\n box-sizing: border-box;\n overflow: hidden;\n}\n.runStartedNode :global .anticon-loading {\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.runStartedNode :global .anticon-loading svg {\n width: 14px;\n height: 14px;\n}\n@keyframes shimmer-bg {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n",".iconContainer {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--ant-border-radius-sm);\n overflow: hidden;\n flex-shrink: 0;\n gap: 20;\n}\n.toolName {\n font-size: 12px;\n color: var(--ant-color-text-secondary);\n flex: 1;\n line-height: 22px;\n}\n.duration {\n font-size: 12px;\n color: var(--ant-color-text-tertiary);\n flex-shrink: 0;\n}\n.statusIcon {\n font-size: 12px;\n display: flex;\n align-items: center;\n margin-left: 20px;\n}\n.sectionLabel {\n font-size: 12px;\n color: var(--ant-color-text-tertiary);\n margin-bottom: 4px;\n display: block;\n}\n.markdownContainer {\n max-width: 100%;\n overflow-x: auto;\n font-size: 12px;\n opacity: 0.85;\n}\n.sectionBlock {\n display: block;\n}\n.todoList {\n background-color: var(--ant-color-fill-alter);\n border-radius: var(--ant-border-radius);\n border: 1px solid var(--ant-color-border-secondary);\n margin-top: 4px;\n}\n.todoItem {\n padding: 8px 12px;\n border-bottom: 1px solid var(--ant-color-border-secondary);\n display: flex;\n align-items: flex-start;\n gap: 8px;\n}\n.todoItem:last-child {\n border-bottom: none;\n}\n.statusIconWrapper {\n margin-top: 2px;\n}\n.todoContent {\n flex: 1;\n min-width: 0;\n}\n.todoText {\n font-size: 13px;\n color: var(--ant-color-text);\n}\n.todoText.completed {\n color: var(--ant-color-text-tertiary);\n text-decoration: line-through;\n}\n.emptyText {\n font-size: 12px;\n}\n",".chatHeader {\n padding: 8px 16px;\n border-bottom: 1px solid #eee;\n}\n.chatHeader .chatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.chatHeader .popover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n padding: 0;\n}\n.chatHeader .popover :global .ant-popover-inner-content {\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n.conversationListPanel {\n width: 300px;\n max-width: 100%;\n border-right: 1px dashed #eee;\n}\n.conversationListPanel .createConversationButton {\n height: 38px;\n background-color: var(--ant-color-primary-bg);\n border-radius: var(--ant-border-radius-lg);\n color: var(--ant-color-primary);\n font-weight: bold;\n}\n.conversationListPanel .conversations {\n padding: 0 16px;\n}\n.conversationListPanel .conversations :global .ant-conversations-group-title {\n padding: 0;\n}\n.conversationListPanel .conversations :global .ant-conversations-group-title .ant-typography {\n color: #878aab;\n}\n.conversationListPanel .conversations :global .ant-conversations-list .ant-conversations-item {\n padding-left: 16px;\n touch-action: manipulation !important;\n}\n.conversationListPanel .conversations :global .ant-conversations-list .ant-conversations-item .ant-conversations-label {\n color: rgba(0, 0, 0, 0.88);\n}\n.conversationListPanel .conversations :global .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {\n color: var(--ant-color-primary);\n}\n.chatWelcomeWrap {\n height: 100%;\n max-width: 1000px;\n min-width: 320px;\n width: calc(100% - 24px);\n margin: 0 auto;\n}\n.chatWelcomeWrap :global .ant-prompts .ant-prompts-list {\n overflow: auto;\n}\n.chatWelcomeWrap .chatWelcome :global .ant-welcome-icon > img {\n border-radius: 10px;\n max-width: initial;\n}\n.promptItem {\n width: 100%;\n max-width: 100%;\n}\n.promptItem :global .ant-prompts-item {\n max-width: 100%;\n white-space: normal;\n height: auto;\n}\n.bubbleList {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content {\n max-width: 1000px;\n min-width: 320px;\n width: calc(100% - 12px);\n margin: 0 auto;\n padding-right: 0;\n padding-left: 10px;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content > .ant-bubble > .ant-bubble-body {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble {\n padding-top: 8px;\n padding-bottom: 0;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble:hover .message-actions {\n opacity: 1;\n pointer-events: auto;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start {\n padding-inline-end: 0%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-body {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content {\n background-color: transparent;\n padding: 0;\n padding-bottom: 0;\n min-height: 0;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content {\n background-color: var(--ant-color-primary-bg, #e6f4ff);\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless {\n background-color: transparent;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless .ant-file-card-list-content {\n padding: 0;\n}\n.messageActions {\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s ease;\n}\n.resourceBtn {\n align-items: center;\n gap: 6px;\n padding: 4px 8px;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n /* text-slate-600 */\n background-color: #f1f5f9;\n /* bg-slate-100/60 */\n border: 1px solid #e2e8f0;\n /* border-slate-200/50 */\n border-radius: 12px;\n /* rounded-xl */\n transition: all 0.3s;\n cursor: pointer;\n}\n.resourceBtnActive {\n background-color: var(--ant-color-primary);\n color: #fff;\n}\n.userInputCollapse {\n width: calc(100% - 24px);\n max-width: 1000px;\n min-width: 320px;\n margin: 0 auto;\n}\n.logoArea {\n margin-bottom: 1.5rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n margin-top: 40px;\n}\n.logoArea .logoContainer {\n position: relative;\n margin-bottom: 1.5rem;\n cursor: pointer;\n}\n.logoArea .logoContainer .staticHalo {\n position: absolute;\n inset: 0;\n background-color: var(--ant-color-primary);\n filter: blur(24px);\n opacity: 0.2;\n transition: opacity 700ms;\n border-radius: 9999px;\n}\n.logoArea .logoContainer .logoHoverWrapper {\n position: relative;\n z-index: 10;\n padding: 0.5rem;\n transition: all 500ms ease-out;\n transform: scale(1) translateY(0);\n}\n.logoArea .logoContainer .logoHoverWrapper .logoImage {\n width: 6rem;\n height: 6rem;\n object-fit: contain;\n filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));\n transition: all 500ms;\n}\n.logoArea .logoContainer:hover .staticHalo {\n opacity: 0.5;\n}\n.logoArea .logoContainer:hover .logoHoverWrapper {\n transform: scale(1.1) translateY(-0.5rem);\n}\n.logoArea .logoContainer:hover .logoImage {\n filter: drop-shadow(0 10px 20px rgba(18, 124, 183, 0.4));\n}\n.logoArea .greetingTitle {\n margin-bottom: 0.75rem;\n font-size: 2.25rem;\n line-height: 2.5rem;\n font-weight: 700;\n letter-spacing: -0.025em;\n color: #1e293b;\n}\n@media (width >= 768px) {\n .logoArea .greetingTitle {\n font-size: 3rem;\n line-height: 1;\n }\n}\n.logoArea .greetingTitle .gradientText {\n color: transparent;\n background-clip: text;\n background-image: linear-gradient(to right, var(--ant-color-primary), #3b82f6);\n}\n.logoArea .greetingSubtitle {\n font-size: 1.125rem;\n line-height: 1.75rem;\n font-weight: 500;\n color: #64748b;\n}\n@media (width >= 768px) {\n .logoArea .greetingSubtitle {\n font-size: 1.25rem;\n line-height: 1.75rem;\n }\n}\n.senderReferenceHeaderTitle:global > .ant-sender-header-title {\n overflow: hidden;\n}\n.senderReferenceHeaderContent {\n padding: 0 !important;\n}\n",".bodyWidth {\n width: 100%;\n height: 100%;\n}\n.inputContainer {\n max-width: 1000px;\n min-width: 320px;\n width: calc(100% - 24px);\n}\n.disclaimerNotice {\n font-size: 12px;\n text-align: center;\n color: #bfbfbf;\n}\n.previewHeader {\n padding-bottom: 4px;\n border-bottom: 1px solid #e2e8f0;\n}\n.previewCloseBtn {\n cursor: pointer;\n display: flex;\n align-items: center;\n color: var(--ant-color-text-tertiary);\n transition: color 0.3s;\n font-size: 16px;\n}\n.previewCloseBtn:hover {\n color: var(--ant-color-text);\n}\n.previewCloseBtn .closeIcon {\n transition: transform 0.3s ease;\n}\n.previewCloseBtn.rotateIcon:hover .closeIcon {\n transform: rotate(90deg);\n}\n",".chatLayout {\n background-color: transparent;\n height: 100%;\n width: 100%;\n}\n.spinWrapper {\n height: 100%;\n}\n.spinWrapper :global .ant-spin-container {\n height: 100%;\n}\n.fullScroll {\n overflow: auto;\n flex: 1;\n height: 100%;\n}\n.animatedSplitter :global(.ant-splitter-panel) {\n transition: all 0.3s cubic-bezier(0.2, 0, 0, 1) !important;\n}\n.animatedSplitter :global(.ant-splitter-bar) {\n transition: all 0.3s cubic-bezier(0.2, 0, 0, 1) !important;\n}\n.hideSplitterBar :global(.ant-splitter-bar) {\n display: none !important;\n}\n"],"mappings":";AAAA,WAAWA;AACT;AACE,yBAAqB,KAAK;AAC5B;AACA;AACE,yBAAqB,EAAE;AACzB;AACF;AACA,WAAWC;AACT;AACE,eAAW,OAAO;AACpB;AACF;AACA,CAACC,8BAAuB,EAAE,CAAC,oBAAoB,CAAC;AAC9C,WAAS;AACX;AACA,CAHCA,8BAGuB,EAAE,CAHC,oBAGoB,CAAC,0CAA0C,CAAC,aAAa,CAAC;AACvG,WAAS;AACX;AACA,CANCA,8BAMuB,EAAE,CANC,oBAMoB,CAHC,0CAG0C,CAHC,aAGa,CAAC;AACvG,aAAW,KAAK,GAAG,OAAO;AAC5B;AACA,CATCA,8BASuB,EAAE,CATC,oBASoB,CANC,0CAM0C,CAAC;AACzF,OAAK;AACP;AACA,CAZCA,8BAYuB,EAAE,CAZC,oBAYoB,CATC,0CAS0C,CAHC,iCAGiC,CAAC;AAC3H,SAAO;AACP,UAAQ;AACR,UAAQ,I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AW;AACX,SAAO,IAAI;AACX,QAAM;AACN,eAAa;AACf;AACA,CAACC;AACC,aAAW;AACX,SAAO,IAAI;AACX,eAAa;AACf;AACA,CAACC;AACC,aAAW;AACX,WAAS;AACT,eAAa;AACb,eAAa;AACf;AACA,CAACC;AACC,aAAW;AACX,SAAO,IAAI;AACX,iBAAe;AACf,WAAS;AACX;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,aAAW;AACX,WAAS;AACX;AACA,CAACC;AACC,WAAS;AACX;AACA,CAACC;AACC,oBAAkB,IAAI;AACtB,iBAAe,IAAI;AACnB,UAAQ,IAAI,MAAM,IAAI;AACtB,cAAY;AACd;AACA,CAACC;AACC,WAAS,IAAI;AACb,iBAAe,IAAI,MAAM,IAAI;AAC7B,WAAS;AACT,eAAa;AACb,OAAK;AACP;AACA,CAPCA,qBAOQ;AACP,iBAAe;AACjB;AACA,CAACC;AACC,cAAY;AACd;AACA,CAACC;AACC,QAAM;AACN,aAAW;AACb;AACA,CAACC;AACC,aAAW;AACX,SAAO,IAAI;AACb;AACA,CAJCA,qBAIQ,CAACC;AACR,SAAO,IAAI;AACX,mBAAiB;AACnB;AACA,CAACC;AACC,aAAW;AACb;;;AC5EA,CAACC;AACC,WAAS,IAAI;AACb,iBAAe,IAAI,MAAM;AAC3B;AACA,CAJCA,yBAIW,CAACC;AACX,aAAW;AACX,eAAa;AACf;AACA,CARCD,yBAQW,CAACE;AACX,cAAY;AACZ,SAAO;AACP,WAAS;AACT,kBAAgB;AAChB,WAAS;AACX;AACA,CAfCF,yBAeW,CAPCE,sBAOgB,CAAC;AAC5B,cAAY;AACZ,WAAS;AACT,kBAAgB;AAClB;AACA,CAACC;AACC,SAAO;AACP,aAAW;AACX,gBAAc,IAAI,OAAO;AAC3B;AACA,CALCA,oCAKsB,CAACC;AACtB,UAAQ;AACR,oBAAkB,IAAI;AACtB,iBAAe,IAAI;AACnB,SAAO,IAAI;AACX,eAAa;AACf;AACA,CAZCD,oCAYsB,CAACE;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AO;AACT;AACA,QAAQ,SAAS;AACf,GAxEDP,uBAwEW,CAPDO;AAQP,eAAW;AACX,iBAAa;AACf;AACF;AACA,CAACC,yCAAkC,EAAE,CAAC;AACpC,YAAU;AACZ;AACA,CAACC;AACC,WAAS;AACX;;;AC1OA,CAACC;AACC,SAAO;AACP,UAAQ;AACV;AACA,CAACC;AACC,aAAW;AACX,aAAW;AACX,SAAO,KAAK,KAAK,EAAE;AACrB;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,SAAO;AACT;AACA,CAACC;AACC,kBAAgB;AAChB,iBAAe,IAAI,MAAM;AAC3B;AACA,CAACC;AACC,UAAQ;AACR,WAAS;AACT,eAAa;AACb,SAAO,IAAI;AACX,cAAY,MAAM;AAClB,aAAW;AACb;AACA,CARCA,6BAQe;AACd,SAAO,IAAI;AACb;AACA,CAXCA,8BAWgB,CAACC;AAChB,cAAY,UAAU,KAAK;AAC7B;AACA,CAdCD,6BAce,CAACE,wBAAU,OAAO,CAHhBD;AAIhB,aAAW,OAAO;AACpB;;;AClCA,CAACE;AACC,oBAAkB;AAClB,UAAQ;AACR,SAAO;AACT;AACA,CAACC;AACC,UAAQ;AACV;AACA,CAHCA,yBAGoB,CAAC;AACpB,UAAQ;AACV;AACA,CAACC;AACC,YAAU;AACV,QAAM;AACN,UAAQ;AACV;AACA,CAACC,8BAAyB,CAAC;AACzB,cAAY,IAAI,KAAK,aAAa,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;AAC/C;AACA,CAHCA,8BAGyB,CAAC;AACzB,cAAY,IAAI,KAAK,aAAa,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;AAC/C;AACA,CAACC,6BAAwB,CAHE;AAIzB,WAAS;AACX;","names":["loading-line","spin","chatAttachments","chatSender","chatQuoteMsg","quoteTooltip","quoteTooltipContainer","runStartedNode","shimmer-bg","iconContainer","toolName","duration","statusIcon","sectionLabel","markdownContainer","sectionBlock","todoList","todoItem","statusIconWrapper","todoContent","todoText","completed","emptyText","chatHeader","chatTitle","popover","conversationListPanel","createConversationButton","conversations","chatWelcomeWrap","chatWelcome","promptItem","bubbleList","messageActions","resourceBtn","resourceBtnActive","userInputCollapse","logoArea","logoContainer","staticHalo","logoHoverWrapper","logoImage","greetingTitle","gradientText","greetingSubtitle","senderReferenceHeaderTitle","senderReferenceHeaderContent","bodyWidth","inputContainer","disclaimerNotice","previewHeader","previewCloseBtn","closeIcon","rotateIcon","chatLayout","spinWrapper","fullScroll","animatedSplitter","hideSplitterBar"]}
1
+ {"version":3,"sources":["../src/components/styles.module.less","../src/ui/common/styles.module.less","../src/components/CustomComponents/XMarkdown/styles.module.less","../src/components/XMarkdown/styles.module.less","../src/components/CustomComponents/tool-renders/index.module.less","../src/ui/layouts/components/styles.module.less","../src/ui/layouts/index.module.less"],"sourcesContent":["@keyframes loading-line {\n from {\n background-position: 200% 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-content {\n padding: 0 !important;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-text {\n display: none;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-circle {\n animation: spin 2s linear infinite;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content {\n gap: 4px;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc {\n width: 15px;\n height: 15px;\n border: 2px solid transparent;\n border-color: #1890ff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n box-sizing: border-box;\n position: relative;\n clip-path: inset(0 0 30% 0);\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc .ant-attachment-list-card-ellipsis-prefix {\n display: none;\n}\n.chatSender:global.ant-sender .ant-sender-input {\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n}\n.chatSender:global.ant-sender .ant-sender-input::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.chatSender:global.ant-sender .ant-sender-input::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0);\n border-radius: 4px;\n transition: background-color 0.3s ease 0.3s;\n}\n.chatSender:global.ant-sender .ant-sender-input::-webkit-scrollbar-track {\n background: transparent;\n}\n.chatSender:global.ant-sender .ant-sender-input:hover {\n scrollbar-color: rgba(0, 0, 0, 0.1) transparent;\n}\n.chatSender:global.ant-sender .ant-sender-input:hover::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.1);\n transition-delay: 0s;\n}\n.chatSender:global.ant-sender:focus-within {\n box-shadow: none;\n}\n.runStartedNode {\n padding: 2px 12px;\n border-radius: 4px;\n background: linear-gradient(90deg, transparent 25%, #e6f4ff 50%, transparent 75%);\n background-size: 200% 100%;\n animation: shimmer-bg 2s infinite linear;\n display: flex;\n width: 100px;\n min-height: 28px;\n box-sizing: border-box;\n overflow: hidden;\n}\n.runStartedNode :global .anticon-loading {\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.runStartedNode :global .anticon-loading svg {\n width: 14px;\n height: 14px;\n}\n@keyframes shimmer-bg {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n.chatQuoteMsg {\n margin-top: 0;\n padding-top: 0 !important;\n}\n.chatQuoteMsg:global.ant-bubble > .ant-bubble-body > .ant-bubble-content {\n min-height: auto;\n background-color: var(--ant-color-fill-tertiary) !important;\n color: var(--ant-color-text-tertiary);\n}\n.chatQuoteMsg .quoteTooltip {\n max-width: 100%;\n border: 1px solid #000;\n}\n.chatQuoteMsg .quoteTooltip .quoteTooltipContainer {\n max-height: 200px;\n overflow-y: auto;\n background-color: #fff;\n color: #000;\n}\n",".chatHeader {\n padding: 8px 16px;\n border-bottom: 1px solid #eee;\n}\n.chatHeader .chatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.chatHeader .popover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n padding: 0;\n}\n.chatHeader .popover :global .ant-popover-inner-content {\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n.conversationListPanel {\n width: 300px;\n max-width: 100%;\n border-right: 1px dashed #eee;\n}\n.conversationListPanel .createConversationButton {\n height: 38px;\n background-color: var(--ant-color-primary-bg);\n border-radius: var(--ant-border-radius-lg);\n color: var(--ant-color-primary);\n font-weight: bold;\n}\n.conversationListPanel .conversations {\n padding: 0 16px;\n}\n.conversationListPanel .conversations :global .ant-conversations-group-title {\n padding: 0;\n}\n.conversationListPanel .conversations :global .ant-conversations-group-title .ant-typography {\n color: #878aab;\n}\n.conversationListPanel .conversations :global .ant-conversations-list .ant-conversations-item {\n padding-left: 16px;\n touch-action: manipulation !important;\n}\n.conversationListPanel .conversations :global .ant-conversations-list .ant-conversations-item .ant-conversations-label {\n color: rgba(0, 0, 0, 0.88);\n}\n.conversationListPanel .conversations :global .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {\n color: var(--ant-color-primary);\n}\n.chatWelcomeWrap {\n height: 100%;\n max-width: 1000px;\n min-width: 320px;\n width: calc(100% - 24px);\n margin: 0 auto;\n}\n.chatWelcomeWrap :global .ant-prompts .ant-prompts-list {\n overflow: auto;\n}\n.chatWelcomeWrap .chatWelcome :global .ant-welcome-icon > img {\n border-radius: 10px;\n max-width: initial;\n}\n.promptItem {\n width: 100%;\n max-width: 100%;\n}\n.promptItem :global .ant-prompts-item {\n max-width: 100%;\n white-space: normal;\n height: auto;\n}\n.bubbleList {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content {\n max-width: 1000px;\n min-width: 320px;\n width: calc(100% - 12px);\n margin: 0 auto;\n padding-right: 0;\n padding-left: 10px;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content > .ant-bubble > .ant-bubble-body {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble {\n padding-top: 8px;\n padding-bottom: 0;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble:hover .message-actions {\n opacity: 1;\n pointer-events: auto;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start {\n padding-inline-end: 0%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-body {\n width: 100%;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content {\n background-color: transparent;\n padding: 0;\n padding-bottom: 0;\n min-height: 0;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content {\n background-color: var(--ant-color-primary-bg, #e6f4ff);\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless {\n background-color: transparent;\n}\n.bubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless .ant-file-card-list-content {\n padding: 0;\n}\n.messageActions {\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s ease;\n}\n.resourceBtn {\n align-items: center;\n gap: 6px;\n padding: 4px 8px;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n /* text-slate-600 */\n background-color: #f1f5f9;\n /* bg-slate-100/60 */\n border: 1px solid #e2e8f0;\n /* border-slate-200/50 */\n border-radius: 12px;\n /* rounded-xl */\n transition: all 0.3s;\n cursor: pointer;\n}\n.resourceBtnActive {\n background-color: var(--ant-color-primary);\n color: #fff;\n}\n.userInputCollapse {\n width: calc(100% - 24px);\n max-width: 1000px;\n min-width: 320px;\n margin: 0 auto;\n}\n.logoArea {\n margin-bottom: 1.5rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n margin-top: 40px;\n}\n.logoArea .logoContainer {\n position: relative;\n margin-bottom: 1.5rem;\n cursor: pointer;\n}\n.logoArea .logoContainer .staticHalo {\n position: absolute;\n inset: 0;\n background-color: var(--ant-color-primary);\n filter: blur(24px);\n opacity: 0.2;\n transition: opacity 700ms;\n border-radius: 9999px;\n}\n.logoArea .logoContainer .logoHoverWrapper {\n position: relative;\n z-index: 10;\n padding: 0.5rem;\n transition: all 500ms ease-out;\n transform: scale(1) translateY(0);\n}\n.logoArea .logoContainer .logoHoverWrapper .logoImage {\n width: 6rem;\n height: 6rem;\n object-fit: contain;\n filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));\n transition: all 500ms;\n}\n.logoArea .logoContainer:hover .staticHalo {\n opacity: 0.5;\n}\n.logoArea .logoContainer:hover .logoHoverWrapper {\n transform: scale(1.1) translateY(-0.5rem);\n}\n.logoArea .logoContainer:hover .logoImage {\n filter: drop-shadow(0 10px 20px rgba(18, 124, 183, 0.4));\n}\n.logoArea .greetingTitle {\n margin-bottom: 0.75rem;\n font-size: 2.25rem;\n line-height: 2.5rem;\n font-weight: 700;\n letter-spacing: -0.025em;\n color: #1e293b;\n}\n@media (width >= 768px) {\n .logoArea .greetingTitle {\n font-size: 3rem;\n line-height: 1;\n }\n}\n.logoArea .greetingTitle .gradientText {\n color: transparent;\n background-clip: text;\n background-image: linear-gradient(to right, var(--ant-color-primary), #3b82f6);\n}\n.logoArea .greetingSubtitle {\n font-size: 1.125rem;\n line-height: 1.75rem;\n font-weight: 500;\n color: #64748b;\n}\n@media (width >= 768px) {\n .logoArea .greetingSubtitle {\n font-size: 1.25rem;\n line-height: 1.75rem;\n }\n}\n.senderReferenceHeaderTitle:global > .ant-sender-header-title {\n overflow: hidden;\n}\n.senderReferenceHeaderContent {\n padding: 0 !important;\n}\n",".appCard {\n width: 180px;\n border-radius: 10px;\n border: 1px solid #d7d7d7;\n background-color: #fafafa;\n font-size: 16px;\n cursor: pointer;\n margin: 8px;\n padding: 12px 8px;\n}\n.appCard > div {\n max-width: 100%;\n}\n.appCard > img {\n height: 30px;\n}\n.fileView {\n width: 200px;\n padding: 4px 8px;\n cursor: pointer;\n background-color: #f5f3f3;\n border-radius: 6px;\n}\n.fileEdit {\n margin: 12px 0;\n border-radius: 6px;\n border: 1px solid #f2f2f2;\n}\n.fileEdit .fileEditHeader {\n padding: 2px 8px;\n background-color: #f2f2f2;\n}\n.fileEdit .fileEditContent {\n padding: 8px;\n background-color: #fafafa;\n}\n.mdEdit {\n margin: 10px 0;\n background-color: rgba(242, 242, 242, 0.2);\n border: 1px solid #f2f2f2;\n padding: 10px;\n border-radius: 4px;\n}\n",".xMarkdownStyle :global {\n /* stylelint-disable-next-line selector-class-pattern */\n}\n.xMarkdownStyle :global .ant-codeHighlighter-code code,\n.xMarkdownStyle :global .ant-codeHighlighter-code pre,\n.xMarkdownStyle :global .ant-codeHighlighter-code [class*='language-'] {\n background-color: transparent !important;\n}\n",".iconContainer {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--ant-border-radius-sm);\n overflow: hidden;\n flex-shrink: 0;\n gap: 20;\n}\n.toolName {\n font-size: 12px;\n color: var(--ant-color-text-secondary);\n flex: 1;\n line-height: 22px;\n}\n.duration {\n font-size: 12px;\n color: var(--ant-color-text-tertiary);\n flex-shrink: 0;\n}\n.statusIcon {\n font-size: 12px;\n display: flex;\n align-items: center;\n margin-left: 20px;\n}\n.sectionLabel {\n font-size: 12px;\n color: var(--ant-color-text-tertiary);\n margin-bottom: 4px;\n display: block;\n}\n.markdownContainer {\n max-width: 100%;\n overflow-x: auto;\n font-size: 12px;\n opacity: 0.85;\n}\n.sectionBlock {\n display: block;\n}\n.todoList {\n background-color: var(--ant-color-fill-alter);\n border-radius: var(--ant-border-radius);\n border: 1px solid var(--ant-color-border-secondary);\n margin-top: 4px;\n}\n.todoItem {\n padding: 8px 12px;\n border-bottom: 1px solid var(--ant-color-border-secondary);\n display: flex;\n align-items: flex-start;\n gap: 8px;\n}\n.todoItem:last-child {\n border-bottom: none;\n}\n.statusIconWrapper {\n margin-top: 2px;\n}\n.todoContent {\n flex: 1;\n min-width: 0;\n}\n.todoText {\n font-size: 13px;\n color: var(--ant-color-text);\n}\n.todoText.completed {\n color: var(--ant-color-text-tertiary);\n text-decoration: line-through;\n}\n.emptyText {\n font-size: 12px;\n}\n",".bodyWidth {\n width: 100%;\n height: 100%;\n}\n.inputContainer {\n max-width: 1000px;\n min-width: 320px;\n width: calc(100% - 24px);\n}\n.disclaimerNotice {\n font-size: 12px;\n text-align: center;\n color: #bfbfbf;\n}\n.previewHeader {\n padding: 8px;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);\n align-items: center;\n}\n.previewHeader .previewHeaderTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.previewHeader .actionIcon {\n font-size: 16px;\n cursor: pointer;\n color: var(--ant-color-text-tertiary);\n transition: transform 0.3s ease;\n}\n.previewHeader .actionIcon:hover {\n color: var(--ant-color-text);\n}\n",".chatLayout {\n background-color: transparent;\n height: 100%;\n width: 100%;\n}\n.spinWrapper {\n height: 100%;\n}\n.spinWrapper :global .ant-spin-container {\n height: 100%;\n}\n.fullScroll {\n overflow: auto;\n flex: 1;\n height: 100%;\n}\n.animatedSplitter :global(.ant-splitter-panel) {\n transition: all 0.3s cubic-bezier(0.2, 0, 0, 1) !important;\n}\n.animatedSplitter :global(.ant-splitter-bar) {\n transition: all 0.3s cubic-bezier(0.2, 0, 0, 1) !important;\n}\n.hideSplitterBar :global(.ant-splitter-bar) {\n display: none !important;\n}\n"],"mappings":";AAAA,WAAWA;AACT;AACE,yBAAqB,KAAK;AAC5B;AACA;AACE,yBAAqB,EAAE;AACzB;AACF;AACA,WAAWC;AACT;AACE,eAAW,OAAO;AACpB;AACF;AACA,CAACC,8BAAuB,EAAE,CAAC,oBAAoB,CAAC;AAC9C,WAAS;AACX;AACA,CAHCA,8BAGuB,EAAE,CAHC,oBAGoB,CAAC,0CA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eAAa;AACf;AACA,CAACC;AACC,aAAW;AACX,SAAO,IAAI;AACX,eAAa;AACf;AACA,CAACC;AACC,aAAW;AACX,WAAS;AACT,eAAa;AACb,eAAa;AACf;AACA,CAACC;AACC,aAAW;AACX,SAAO,IAAI;AACX,iBAAe;AACf,WAAS;AACX;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,aAAW;AACX,WAAS;AACX;AACA,CAACC;AACC,WAAS;AACX;AACA,CAACC;AACC,oBAAkB,IAAI;AACtB,iBAAe,IAAI;AACnB,UAAQ,IAAI,MAAM,IAAI;AACtB,cAAY;AACd;AACA,CAACC;AACC,WAAS,IAAI;AACb,iBAAe,IAAI,MAAM,IAAI;AAC7B,WAAS;AACT,eAAa;AACb,OAAK;AACP;AACA,CAPCA,qBAOQ;AACP,iBAAe;AACjB;AACA,CAACC;AACC,cAAY;AACd;AACA,CAACC;AACC,QAAM;AACN,aAAW;AACb;AACA,CAACC;AACC,aAAW;AACX,SAAO,IAAI;AACb;AACA,CAJCA,qBAIQ,CAACC;AACR,SAAO,IAAI;AACX,mBAAiB;AACnB;AACA,CAACC;AACC,aAAW;AACb;;;AC5EA,CAACC;AACC,SAAO;AACP,UAAQ;AACV;AACA,CAACC;AACC,aAAW;AACX,aAAW;AACX,SAAO,KAAK,KAAK,EAAE;AACrB;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,SAAO;AACT;AACA,CAACC;AACC,WAAS;AACT,cAAY,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACpC,eAAa;AACf;AACA,CALCA,4BAKc,CAACC;AACd,aAAW;AACX,eAAa;AACf;AACA,CATCD,4BASc,CAACE;AACd,aAAW;AACX,UAAQ;AACR,SAAO,IAAI;AACX,cAAY,UAAU,KAAK;AAC7B;AACA,CAfCF,4BAec,CANCE,wBAMU;AACxB,SAAO,IAAI;AACb;;;AC/BA,CAACC;AACC,oBAAkB;AAClB,UAAQ;AACR,SAAO;AACT;AACA,CAACC;AACC,UAAQ;AACV;AACA,CAHCA,yBAGoB,CAAC;AACpB,UAAQ;AACV;AACA,CAACC;AACC,YAAU;AACV,QAAM;AACN,UAAQ;AACV;AACA,CAACC,8BAAyB,CAAC;AACzB,cAAY,IAAI,KAAK,aAAa,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;AAC/C;AACA,CAHCA,8BAGyB,CAAC;AACzB,cAAY,IAAI,KAAK,aAAa,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;AAC/C;AACA,CAACC,6BAAwB,CAHE;AAIzB,WAAS;AACX;","names":["loading-line","spin","chatAttachments","chatSender","runStartedNode","shimmer-bg","chatQuoteMsg","quoteTooltip","quoteTooltipContainer","chatHeader","chatTitle","popover","conversationListPanel","createConversationButton","conversations","chatWelcomeWrap","chatWelcome","promptItem","bubbleList","messageActions","resourceBtn","resourceBtnActive","userInputCollapse","logoArea","logoContainer","staticHalo","logoHoverWrapper","logoImage","greetingTitle","gradientText","greetingSubtitle","senderReferenceHeaderTitle","senderReferenceHeaderContent","appCard","fileView","fileEdit","fileEditHeader","fileEditContent","mdEdit","xMarkdownStyle","iconContainer","toolName","duration","statusIcon","sectionLabel","markdownContainer","sectionBlock","todoList","todoItem","statusIconWrapper","todoContent","todoText","completed","emptyText","bodyWidth","inputContainer","disclaimerNotice","previewHeader","previewHeaderTitle","actionIcon","chatLayout","spinWrapper","fullScroll","animatedSplitter","hideSplitterBar"]}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,8 @@
1
1
  import * as react from 'react';
2
- import react__default from 'react';
2
+ import react__default, { ReactNode } from 'react';
3
+ import { BubbleProps } from '@ant-design/x-v2';
3
4
  import { ButtonProps, ThemeConfig } from 'antd';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { createRequest, RequestConfig, RenderControl } from '@zero-library/common';
6
- import { BubbleProps } from '@ant-design/x-v2';
7
6
 
8
7
  type ConversationMemberEnum = 'user' | 'agent';
9
8
  declare enum AgentTypeEnum {
@@ -135,7 +134,7 @@ interface SenderProps {
135
134
  /** 文件上传配置 */
136
135
  fileUpload?: FileUpload;
137
136
  }
138
- declare const _default$3: react.ForwardRefExoticComponent<SenderProps & react.RefAttributes<ChatSenderHandle>>;
137
+ declare const _default$2: react.ForwardRefExoticComponent<SenderProps & react.RefAttributes<ChatSenderHandle>>;
139
138
 
140
139
  interface UserInputType {
141
140
  inputs: Variable[];
@@ -349,11 +348,48 @@ interface InputFile {
349
348
  * 定义通过URL访问的文件信息
350
349
  */
351
350
  interface FileUrlType {
351
+ /** 文件后缀名 */
352
+ suffix: string;
353
+ /** 文件访问URL */
354
+ fileUrl: string;
355
+ /** 文件名 */
356
+ fileName: string;
357
+ }
358
+ interface FirstMessageRenderCtx {
359
+ index: number;
360
+ member: 1 | 2;
361
+ }
362
+ interface FirstMessage extends Omit<BubbleProps, 'content' | 'contentRender' | 'role' | 'placement'> {
363
+ /** 会话成员类型 */
364
+ member?: 1 | 2;
365
+ /** 直接传入要展示的节点 */
366
+ content?: ReactNode;
367
+ /** 动态生成要展示的节点 */
368
+ contentRender?: (ctx: FirstMessageRenderCtx) => ReactNode;
369
+ }
370
+ /**
371
+ * 文件文本类型接口
372
+ * 定义包含文本内容的文件信息
373
+ */
374
+ interface FileTextType {
375
+ /** 文件内容 */
376
+ content: string;
377
+ /** 文件后缀名 */
378
+ suffix: string;
379
+ /** 文件名 */
380
+ fileName: string;
381
+ }
382
+ /**
383
+ * 文件文本类型接口
384
+ * 定义包含文本内容的文件信息
385
+ */
386
+ interface FileTextType {
387
+ /** 文件内容 */
388
+ content: string;
389
+ /** 文件后缀名 */
390
+ suffix: string;
352
391
  /** 文件名 */
353
392
  fileName: string;
354
- path: string;
355
- fileUrl?: string;
356
- ext?: string;
357
393
  }
358
394
  /**
359
395
  * 消息引用类型
@@ -364,8 +400,6 @@ interface MessageQuoteMsg {
364
400
  id?: string;
365
401
  /** 被引用的消息内容 */
366
402
  msgContent?: string;
367
- /** 被引用消息的附件文件列表 */
368
- msgFiles?: InputFile[];
369
403
  }
370
404
  /**
371
405
  * 引用内容接口
@@ -634,6 +668,21 @@ interface ChatHandle {
634
668
  * chatRef.current?.switchConversation(item)
635
669
  */
636
670
  switchConversation: (id: ConversationType['id']) => Promise<void>;
671
+ /**
672
+ * 切换智能体会话
673
+ * 切换到指定的智能体并创建或获取会话
674
+ *
675
+ * @param agentId - 目标智能体ID
676
+ * @param strategy - 会话策略,1-使用最近会话,2-创建新会话
677
+ *
678
+ * @example
679
+ * // 切换到指定智能体并创建新会话
680
+ * chatRef.current?.switchAgentConversation('agent-001')
681
+ *
682
+ * @example
683
+ * // 切换到指定智能体并使用最近会话
684
+ * chatRef.current?.switchAgentConversation('agent-001', 1)
685
+ */
637
686
  /**
638
687
  * 基于当前接收者创建新的会话
639
688
  *
@@ -665,6 +714,7 @@ interface ChatHandle {
665
714
  * // 清除引用
666
715
  * chatRef.current?.setReferences()
667
716
  */
717
+ setReferences: (references?: ReferencesType) => void;
668
718
  /**
669
719
  * 直接设置输入框中的文本内容
670
720
  *
@@ -1155,14 +1205,14 @@ interface ChatHooks {
1155
1205
  * @param file - 被预览的文件对象, 如果不存在则表示正在关闭预览
1156
1206
  * @param isBuiltIn - 是否为内嵌布局
1157
1207
  */
1158
- onBeforeFilePreview?: (file?: FileUrlType, isBuiltIn?: boolean) => boolean | Promise<boolean> | void;
1208
+ onBeforeFilePreview?: (file?: FileUrlType | FileTextType, isBuiltIn?: boolean) => boolean | Promise<boolean> | void;
1159
1209
  /**
1160
1210
  * 文件预览后的回调函数
1161
1211
  * 在文件预览打开或关闭之后执行,可以用于控制布局等
1162
1212
  * @param file - 预览的文件对象, 如果不存在则表示已经关闭预览
1163
1213
  * @param isBuiltIn - 是否为内嵌布局
1164
1214
  */
1165
- onAfterFilePreview?: (file?: FileUrlType, isBuiltIn?: boolean) => void;
1215
+ onAfterFilePreview?: (file?: FileUrlType | FileTextType, isBuiltIn?: boolean) => void;
1166
1216
  /**
1167
1217
  * 设置引用消息前回调
1168
1218
  * 在设置引用消息前调用,返回false可阻止设置
@@ -1326,7 +1376,7 @@ interface ChatLayoutWelcomeMessage {
1326
1376
  */
1327
1377
  interface ChatLayoutMessageList {
1328
1378
  /** 首条消息配置 */
1329
- firstMessages?: ConversationMessage[];
1379
+ firstMessages?: FirstMessage[];
1330
1380
  /** 头像显示控制:可以是全局布尔值或按成员类型分别控制 */
1331
1381
  avatar?: boolean | Partial<Record<ConversationMemberEnum, boolean>>;
1332
1382
  /** 智能体消息操作区渲染控制 */
@@ -1438,7 +1488,7 @@ interface AttachmentsProps {
1438
1488
  * 附件上传组件
1439
1489
  * 支持多文件上传、文件类型验证、文件大小限制等功能
1440
1490
  */
1441
- declare const _default$2: react.ForwardRefExoticComponent<AttachmentsProps & react.RefAttributes<unknown>>;
1491
+ declare const _default$1: react.ForwardRefExoticComponent<AttachmentsProps & react.RefAttributes<unknown>>;
1442
1492
 
1443
1493
  interface RoleContent {
1444
1494
  role: number;
@@ -1457,8 +1507,7 @@ interface MessageRenderProps {
1457
1507
  /** message自定义标记渲染组件 */
1458
1508
  customComponents?: ChatLayoutMessageList['customComponents'];
1459
1509
  }
1460
- declare const _default$1: react__default.MemoExoticComponent<({ role, message, messageIndex, loading, containerRef, customComponents }: MessageRenderProps) => react_jsx_runtime.JSX.Element>;
1461
1510
 
1462
1511
  declare const _default: react.ForwardRefExoticComponent<ChatProps & react.RefAttributes<ChatHandle>>;
1463
1512
 
1464
- export { type AgentConfig, type AgentInfo, type AgentSpec, _default$2 as Attachments, type AttachmentsProps, type ChatConfig, _default as ChatCopilot, type ChatHandle, type ChatHooks, type ChatLayout, type ChatParams, type ChatProps, _default$3 as ChatSender, type ChatServices, type ConversationMessage, type ConversationStrategy, type FileUploadConfig, type InputFile, _default$1 as MessageRender, type MessageRenderProps, type ReferencesType, type RequestInstance, type SenderProps };
1513
+ export { type AgentConfig, type AgentInfo, type AgentSpec, _default$1 as Attachments, type AttachmentsProps, type ChatConfig, _default as ChatCopilot, type ChatHandle, type ChatHooks, type ChatLayout, type ChatParams, type ChatProps, _default$2 as ChatSender, type ChatServices, type ConversationMessage, type ConversationStrategy, type FileUploadConfig, type InputFile, type MessageRenderProps, type ReferencesType, type RequestInstance, type SenderProps };