@zero-library/chat-agent 2.1.11 → 2.1.13

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
@@ -54,6 +54,42 @@
54
54
  border-radius: 4px;
55
55
  }
56
56
 
57
+ /* src/components/styles.module.less */
58
+ .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-text {
59
+ display: none;
60
+ }
61
+ .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-circle {
62
+ animation: spin 2s linear infinite;
63
+ }
64
+ .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content {
65
+ gap: 4px;
66
+ }
67
+ .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc {
68
+ width: 15px;
69
+ height: 15px;
70
+ border: 2px solid transparent;
71
+ border-color: #1890ff;
72
+ border-radius: 50%;
73
+ animation: spin 1s linear infinite;
74
+ box-sizing: border-box;
75
+ position: relative;
76
+ clip-path: inset(0 0 30% 0);
77
+ }
78
+ .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 {
79
+ display: none;
80
+ }
81
+ .styles_module_chatSender.ant-sender:focus-within {
82
+ box-shadow: none;
83
+ }
84
+ .styles_module_chatQuoteMsg {
85
+ margin-top: 4px;
86
+ }
87
+ .styles_module_chatQuoteMsg.ant-bubble > .ant-bubble-content {
88
+ min-height: auto;
89
+ background-color: var(--ant-color-fill-tertiary) !important;
90
+ color: var(--ant-color-text-tertiary);
91
+ }
92
+
57
93
  /* src/ui/common/styles.module.less */
58
94
  .styles_module_loadingMessage {
59
95
  background-image:
@@ -195,34 +231,6 @@
195
231
  font-size: 12px;
196
232
  }
197
233
 
198
- /* src/components/styles.module.less */
199
- .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-text {
200
- display: none;
201
- }
202
- .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-circle {
203
- animation: spin 2s linear infinite;
204
- }
205
- .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content {
206
- gap: 4px;
207
- }
208
- .styles_module_chatAttachments > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc {
209
- width: 15px;
210
- height: 15px;
211
- border: 2px solid transparent;
212
- border-color: #1890ff;
213
- border-radius: 50%;
214
- animation: spin 1s linear infinite;
215
- box-sizing: border-box;
216
- position: relative;
217
- clip-path: inset(0 0 30% 0);
218
- }
219
- .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 {
220
- display: none;
221
- }
222
- .styles_module_chatSender.ant-sender:focus-within {
223
- box-shadow: none;
224
- }
225
-
226
234
  /* src/ui/layouts/styles.module.less */
227
235
  .styles_module_nsPreviewHeader {
228
236
  padding: 16px 24px;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ui/common/markdownAlert/styles.module.less","../src/ui/common/styles.module.less","../src/components/styles.module.less","../src/ui/layouts/styles.module.less"],"sourcesContent":[".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.quoteList {\n min-width: 300px;\n}\n.quoteList:global.ant-collapse .ant-collapse-item .ant-collapse-header {\n padding: 12px 0;\n color: #8f91a8;\n}\n.quoteList:global.ant-collapse .ant-collapse-item .ant-collapse-content {\n color: #8f91a8;\n background-color: #f2f2f2;\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",".loadingMessage {\n background-image: linear-gradient(90deg, #ff6b23 0%, #af3cb8 31%, #53b6ff 89%);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: bottom;\n padding-bottom: 2px;\n}\n.nsConversationListPanel {\n width: 360px;\n}\n.nsConversations {\n padding: 0 24px;\n}\n.nsConversations :global .ant-conversations-group-title {\n padding: 0;\n}\n.nsConversations :global .ant-conversations-group-title .ant-typography {\n color: #878aab;\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item {\n padding-left: 16px;\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item .ant-conversations-label {\n color: rgba(0, 0, 0, 0.88);\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {\n color: var(--ant-color-primary);\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content-filled {\n background-color: transparent;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-filled {\n background-color: var(--ant-color-primary-bg);\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content .ant-typography {\n font-size: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse {\n margin-bottom: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-header {\n color: #8f91a8;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content {\n color: #8f91a8;\n margin-top: -10px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content .ant-collapse-content-box {\n padding: 0 10px 0 24px;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n.nsChatHeader {\n padding: 8px 16px;\n border-bottom: 1px solid #eee;\n}\n.nsChatHeader .nsChatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsChatHeader .nsChatHeaderPopover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n}\n.nsChatHeader .nsChatHeaderPopover :global .ant-popover-inner-content {\n min-height: 0;\n display: flex;\n flex-direction: column;\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.chatWelcomeWrap .chatWelcomePrompts {\n width: 300px;\n}\n.nsSenderListTitle {\n width: 300px;\n}\n.nsSenderList :global .ant-list-items {\n max-height: 350px;\n overflow-y: auto;\n margin-right: -12px;\n padding-right: 12px;\n}\n.nsSenderList.historyList :global .ant-list-items {\n max-height: initial;\n}\n.nsSenderList .nsSenderListItem {\n background-color: #f6f6f6;\n color: #6b6b6b !important;\n border-radius: 5px;\n width: 300px;\n padding: 6px 12px !important;\n margin-top: 12px;\n font-size: 14px;\n cursor: pointer;\n}\n.nsSenderList .nsSenderListFooter {\n font-size: 12px;\n}\n.nsChatUserName {\n font-size: 16px;\n font-weight: bold;\n}\n.nsSenderReferenceHeaderTitle:global > .ant-sender-header-title {\n overflow: hidden;\n}\n.nsSenderReferenceHeaderContent {\n padding: 0 !important;\n}\n.nsAvatarListContainer {\n height: 300px;\n padding: 30px 48px 30px 24px;\n overflow-y: auto;\n margin-right: -24px;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem:hover {\n opacity: 90%;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemIcon.nsAvatarListItemIconActive {\n outline: 2px solid var(--ant-color-primary);\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemName {\n font-size: 12px;\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",".nsPreviewHeader {\n padding: 16px 24px;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);\n}\n.nsPreviewHeader .nsPreviewHeaderTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsChatSenderHeader {\n margin-bottom: 16px;\n padding: 24px;\n font-size: 24px;\n text-align: center;\n}\n.nsDisclaimerNotice {\n font-size: 12px;\n text-align: center;\n color: #bfbfbf;\n}\n.nsChatLayout {\n background-color: #fff;\n}\n.nsChatLayout .nsChatBody {\n padding: 8px 0;\n}\n.nsBodyWidth {\n margin: 0 auto;\n max-width: 896px;\n min-width: 320px;\n width: calc(100% - 24px);\n}\n"],"mappings":";AAAA,CAACA;AACC,SAAO;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,CATC,oBASoB,CATC,0CAS0C,CAHC,iCAGiC,CAAC;AAC3H,SAAO;AACP,UAAQ;AACR,UAAQ,IAAI,MAAM;AAClB,gBAAc;AACd,iBAAe;AACf,aAAW,KAAK,GAAG,OAAO;AAC1B,cAAY;AACZ,YAAU;AACV,aAAW,MAAM,EAAE,EAAE,IAAI;AAC3B;AACA,CApBCA,8BAoBuB,EAAE,CApBC,oBAoBoB,CApBC,0CAoB0C,CAdC,iCAciC,CAXC,8BAW8B,CAAC;AAC1J,WAAS;AACX;AACA,CAACC,wBAAiB,CAAC,UAAU;AAC3B,cAAY;AACd;;;ACzBA,CAACC;AACC,WAAS,KAAK;AACd,cAAY,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACtC;AACA,CAJCA,8BAIgB,CAACC;AAChB,aAAW;AACX,eAAa;AACf;AACA,CAACC;AACC,iBAAe;AACf,WAAS;AACT,aAAW;AACX,cAAY;AACd;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,SAAO;AACT;AACA,CAACC;AACC,oBAAkB;AACpB;AACA,CAHCA,2BAGa,CAACC;AACb,WAAS,IAAI;AACf;AACA,CAACC;AACC,UAAQ,EAAE;AACV,aAAW;AACX,aAAW;AACX,SAAO,KAAK,KAAK,EAAE;AACrB;","names":["appCard","fileView","fileEdit","fileEditHeader","fileEditContent","quoteList","mdEdit","loadingMessage","nsConversationListPanel","nsConversations","nsBubbleList","spin","nsChatHeader","nsChatTitle","nsChatHeaderPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","nsSenderListTitle","nsSenderList","historyList","nsSenderListItem","nsSenderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","nsAvatarListContainer","nsAvatarList","nsAvatarListItem","nsAvatarListItemIcon","nsAvatarListItemIconActive","nsAvatarListItemName","chatAttachments","chatSender","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice","nsChatLayout","nsChatBody","nsBodyWidth"]}
1
+ {"version":3,"sources":["../src/ui/common/markdownAlert/styles.module.less","../src/components/styles.module.less","../src/ui/common/styles.module.less","../src/ui/layouts/styles.module.less"],"sourcesContent":[".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.quoteList {\n min-width: 300px;\n}\n.quoteList:global.ant-collapse .ant-collapse-item .ant-collapse-header {\n padding: 12px 0;\n color: #8f91a8;\n}\n.quoteList:global.ant-collapse .ant-collapse-item .ant-collapse-content {\n color: #8f91a8;\n background-color: #f2f2f2;\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",".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",".loadingMessage {\n background-image: linear-gradient(90deg, #ff6b23 0%, #af3cb8 31%, #53b6ff 89%);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: bottom;\n padding-bottom: 2px;\n}\n.nsConversationListPanel {\n width: 360px;\n}\n.nsConversations {\n padding: 0 24px;\n}\n.nsConversations :global .ant-conversations-group-title {\n padding: 0;\n}\n.nsConversations :global .ant-conversations-group-title .ant-typography {\n color: #878aab;\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item {\n padding-left: 16px;\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item .ant-conversations-label {\n color: rgba(0, 0, 0, 0.88);\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {\n color: var(--ant-color-primary);\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content-filled {\n background-color: transparent;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-filled {\n background-color: var(--ant-color-primary-bg);\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content .ant-typography {\n font-size: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse {\n margin-bottom: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-header {\n color: #8f91a8;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content {\n color: #8f91a8;\n margin-top: -10px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content .ant-collapse-content-box {\n padding: 0 10px 0 24px;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n.nsChatHeader {\n padding: 8px 16px;\n border-bottom: 1px solid #eee;\n}\n.nsChatHeader .nsChatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsChatHeader .nsChatHeaderPopover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n}\n.nsChatHeader .nsChatHeaderPopover :global .ant-popover-inner-content {\n min-height: 0;\n display: flex;\n flex-direction: column;\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.chatWelcomeWrap .chatWelcomePrompts {\n width: 300px;\n}\n.nsSenderListTitle {\n width: 300px;\n}\n.nsSenderList :global .ant-list-items {\n max-height: 350px;\n overflow-y: auto;\n margin-right: -12px;\n padding-right: 12px;\n}\n.nsSenderList.historyList :global .ant-list-items {\n max-height: initial;\n}\n.nsSenderList .nsSenderListItem {\n background-color: #f6f6f6;\n color: #6b6b6b !important;\n border-radius: 5px;\n width: 300px;\n padding: 6px 12px !important;\n margin-top: 12px;\n font-size: 14px;\n cursor: pointer;\n}\n.nsSenderList .nsSenderListFooter {\n font-size: 12px;\n}\n.nsChatUserName {\n font-size: 16px;\n font-weight: bold;\n}\n.nsSenderReferenceHeaderTitle:global > .ant-sender-header-title {\n overflow: hidden;\n}\n.nsSenderReferenceHeaderContent {\n padding: 0 !important;\n}\n.nsAvatarListContainer {\n height: 300px;\n padding: 30px 48px 30px 24px;\n overflow-y: auto;\n margin-right: -24px;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem:hover {\n opacity: 90%;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemIcon.nsAvatarListItemIconActive {\n outline: 2px solid var(--ant-color-primary);\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemName {\n font-size: 12px;\n}\n",".nsPreviewHeader {\n padding: 16px 24px;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);\n}\n.nsPreviewHeader .nsPreviewHeaderTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsChatSenderHeader {\n margin-bottom: 16px;\n padding: 24px;\n font-size: 24px;\n text-align: center;\n}\n.nsDisclaimerNotice {\n font-size: 12px;\n text-align: center;\n color: #bfbfbf;\n}\n.nsChatLayout {\n background-color: #fff;\n}\n.nsChatLayout .nsChatBody {\n padding: 8px 0;\n}\n.nsBodyWidth {\n margin: 0 auto;\n max-width: 896px;\n min-width: 320px;\n width: calc(100% - 24px);\n}\n"],"mappings":";AAAA,CAACA;AACC,SAAO;AACP,iBAAe;AACf,UAAQ,IAAI,MAAM;AAClB,oBAAkB;AAClB,aAAW;AACX,UAAQ;AACR,UAAQ;AACR,WAAS,KAAK;AAChB;AACA,CAVCA,sBAUQ,EAAE;AACT,aAAW;AACb;AACA,CAbCA,sBAaQ,EAAE;AACT,UAAQ;AACV;AACA,CAACC;AACC,SAAO;AACP,WAAS,IAAI;AACb,UAAQ;AACR,oBAAkB;AAClB,iBAAe;AACjB;AACA,CAACC;AACC,UAAQ,KAAK;AACb,iBAAe;AACf,UAAQ,IAAI,MAAM;AACpB;AACA,CALCA,uBAKS,CAACC;AACT,WAAS,IAAI;AACb,oBAAkB;AACpB;AACA,CATCD,uBASS,CAACE;AACT,WAAS;AACT,oBAAkB;AACpB;AACA,CAACC;AACC,aAAW;AACb;AACA,CAHCA,uBAGgB,CAAC,aAAa,CAAC,kBAAkB,CAAC;AACjD,WAAS,KAAK;AACd,SAAO;AACT;AACA,CAPCA,uBAOgB,CAJC,aAIa,CAJC,kBAIkB,CAAC;AAC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gB,CAACC;AAChB,aAAW;AACX,eAAa;AACf;AACA,CAACC;AACC,iBAAe;AACf,WAAS;AACT,aAAW;AACX,cAAY;AACd;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,SAAO;AACT;AACA,CAACC;AACC,oBAAkB;AACpB;AACA,CAHCA,2BAGa,CAACC;AACb,WAAS,IAAI;AACf;AACA,CAACC;AACC,UAAQ,EAAE;AACV,aAAW;AACX,aAAW;AACX,SAAO,KAAK,KAAK,EAAE;AACrB;","names":["appCard","fileView","fileEdit","fileEditHeader","fileEditContent","quoteList","mdEdit","chatAttachments","chatSender","chatQuoteMsg","loadingMessage","nsConversationListPanel","nsConversations","nsBubbleList","spin","nsChatHeader","nsChatTitle","nsChatHeaderPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","nsSenderListTitle","nsSenderList","historyList","nsSenderListItem","nsSenderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","nsAvatarListContainer","nsAvatarList","nsAvatarListItem","nsAvatarListItemIcon","nsAvatarListItemIconActive","nsAvatarListItemName","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice","nsChatLayout","nsChatBody","nsBodyWidth"]}
package/dist/index.d.mts CHANGED
@@ -185,7 +185,7 @@ interface MessageQuoteMsg {
185
185
  /**
186
186
  * Msgfiles,附件文件列表
187
187
  */
188
- msgFiles?: InputFile;
188
+ msgFiles?: InputFile[];
189
189
  }
190
190
  interface MessageSender {
191
191
  /**
@@ -628,6 +628,7 @@ interface ChatHandle {
628
628
  setMessage: (message?: string) => void;
629
629
  setFiles: (files?: InputFile[]) => void;
630
630
  setParams: (params?: ChatParams) => void;
631
+ setServices: (services?: ChatServices) => void;
631
632
  senderFocus: ChatSenderHandle['focus'];
632
633
  }
633
634
  interface ChatProps {
package/dist/index.d.ts CHANGED
@@ -185,7 +185,7 @@ interface MessageQuoteMsg {
185
185
  /**
186
186
  * Msgfiles,附件文件列表
187
187
  */
188
- msgFiles?: InputFile;
188
+ msgFiles?: InputFile[];
189
189
  }
190
190
  interface MessageSender {
191
191
  /**
@@ -628,6 +628,7 @@ interface ChatHandle {
628
628
  setMessage: (message?: string) => void;
629
629
  setFiles: (files?: InputFile[]) => void;
630
630
  setParams: (params?: ChatParams) => void;
631
+ setServices: (services?: ChatServices) => void;
631
632
  senderFocus: ChatSenderHandle['focus'];
632
633
  }
633
634
  interface ChatProps {
package/dist/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import { useSnapshot, proxy } from 'valtio';
7
7
  import { CloudUploadOutlined, PaperClipOutlined, EnterOutlined, UserSwitchOutlined, CloseOutlined, PlusOutlined, CommentOutlined, OpenAIOutlined, CopyOutlined, LikeOutlined, DislikeOutlined, DeleteOutlined, RedoOutlined, PlayCircleOutlined, CaretRightOutlined } from '@ant-design/icons';
8
8
  import { Attachments, Sender, Suggestion, XProvider, Welcome, Prompts, Bubble, Conversations } from '@ant-design/x';
9
9
  export * from '@ant-design/x';
10
- import classNames8 from 'classnames';
10
+ import classNames9 from 'classnames';
11
11
  import InfiniteScroll from 'react-infinite-scroll-component';
12
12
 
13
13
  var __defProp = Object.defineProperty;
@@ -553,8 +553,8 @@ function createChatStore() {
553
553
  character.loading = true;
554
554
  const { data } = await config.services.request.agentCharacterQuery(agentId);
555
555
  if (receiver.active.id !== agentId) return;
556
- character.list = data;
557
- const active = data.find((item) => item.selected);
556
+ character.list = data || [];
557
+ const active = character.list.find((item) => item.selected);
558
558
  if (active) {
559
559
  character.active = active;
560
560
  }
@@ -967,6 +967,13 @@ var customComponents = {
967
967
  fileEdit: () => Promise.resolve().then(() => (init_FileEdit(), FileEdit_exports)),
968
968
  quoteList: () => Promise.resolve().then(() => (init_QuoteList(), QuoteList_exports))
969
969
  };
970
+
971
+ // src/components/styles.module.less
972
+ var styles_module_default2 = {
973
+ chatAttachments: "styles_module_chatAttachments",
974
+ chatSender: "styles_module_chatSender",
975
+ chatQuoteMsg: "styles_module_chatQuoteMsg"
976
+ };
970
977
  var MessageRender_default = ({ message: message3, placement }) => {
971
978
  return /* @__PURE__ */ jsxs(Flex, { vertical: true, children: [
972
979
  message3.msgContent && /* @__PURE__ */ jsx(Bubble, { placement, content: /* @__PURE__ */ jsx(RenderMarkdown, { content: message3.msgContent, customComponents }) }),
@@ -989,7 +996,34 @@ var MessageRender_default = ({ message: message3, placement }) => {
989
996
  )
990
997
  },
991
998
  file.content
992
- ))
999
+ )),
1000
+ message3.quoteMsg?.id && /* @__PURE__ */ jsx(
1001
+ Bubble,
1002
+ {
1003
+ className: classNames9(styles_module_default2.chatQuoteMsg),
1004
+ placement,
1005
+ content: /* @__PURE__ */ jsxs(Flex, { vertical: true, gap: 8, children: [
1006
+ message3.quoteMsg.msgContent && /* @__PURE__ */ jsxs(Flex, { children: [
1007
+ /* @__PURE__ */ jsx("span", { children: "\u3010\u5F15\u7528\u6D88\u606F\u3011\uFF1A" }),
1008
+ /* @__PURE__ */ jsx(Flex, { flex: 1, className: "text-ellipsis", children: message3.quoteMsg.msgContent })
1009
+ ] }),
1010
+ message3.quoteMsg?.msgFiles && message3.quoteMsg.msgFiles.length > 0 && /* @__PURE__ */ jsxs(Flex, { children: [
1011
+ /* @__PURE__ */ jsx("span", { children: "\u3010\u5F15\u7528\u6587\u4EF6\u3011\uFF1A" }),
1012
+ /* @__PURE__ */ jsx(Flex, { gap: 8, wrap: true, flex: 1, children: message3.quoteMsg.msgFiles.map((file) => /* @__PURE__ */ jsx(
1013
+ Attachments.FileCard,
1014
+ {
1015
+ item: {
1016
+ uid: file.content,
1017
+ name: file.name,
1018
+ url: file.content
1019
+ }
1020
+ },
1021
+ file.content
1022
+ )) })
1023
+ ] })
1024
+ ] })
1025
+ }
1026
+ )
993
1027
  ] });
994
1028
  };
995
1029
 
@@ -1005,7 +1039,7 @@ init_utils();
1005
1039
  init_Context();
1006
1040
 
1007
1041
  // src/ui/common/styles.module.less
1008
- var styles_module_default2 = {
1042
+ var styles_module_default3 = {
1009
1043
  loadingMessage: "styles_module_loadingMessage",
1010
1044
  nsConversationListPanel: "styles_module_nsConversationListPanel",
1011
1045
  nsConversations: "styles_module_nsConversations",
@@ -1067,7 +1101,7 @@ var MessageAIRender_default = ({ message: message3, placement }) => {
1067
1101
  Bubble,
1068
1102
  {
1069
1103
  placement,
1070
- className: classNames8({ [styles_module_default2.loadingMessage]: message3.type && message3.type !== "TEXT_MESSAGE_END" }),
1104
+ className: classNames9({ [styles_module_default3.loadingMessage]: message3.type && message3.type !== "TEXT_MESSAGE_END" }),
1071
1105
  content: /* @__PURE__ */ jsxs(Fragment, { children: [
1072
1106
  thinkContents.length > 0 && /* @__PURE__ */ jsx(
1073
1107
  Collapse,
@@ -1136,11 +1170,11 @@ var BubbleListItems_default = ({ firstMessage = false, avatar = { user: false, a
1136
1170
  () => [
1137
1171
  {
1138
1172
  key: "placeholder",
1139
- content: /* @__PURE__ */ jsxs(Space, { direction: "vertical", size: 16, className: styles_module_default2.chatWelcomeWrap, children: [
1173
+ content: /* @__PURE__ */ jsxs(Space, { direction: "vertical", size: 16, className: styles_module_default3.chatWelcomeWrap, children: [
1140
1174
  /* @__PURE__ */ jsx(
1141
1175
  Welcome,
1142
1176
  {
1143
- className: classNames8(styles_module_default2.chatWelcome, "p-t-32"),
1177
+ className: classNames9(styles_module_default3.chatWelcome, "p-t-32"),
1144
1178
  variant: "borderless",
1145
1179
  icon: /* @__PURE__ */ jsx(Avatar, { shape: "square", size: 58, src: receiverState.active.logo }),
1146
1180
  title: `\u4F60\u597D\uFF0C\u6211\u662F${receiverState.active.name || ""}`,
@@ -1158,7 +1192,7 @@ var BubbleListItems_default = ({ firstMessage = false, avatar = { user: false, a
1158
1192
  label: "\u{1F914} \u63A8\u8350\u95EE\u9898:",
1159
1193
  children: receiverState.active.config.recommendQuestions.map(({ question }) => ({
1160
1194
  key: question,
1161
- description: /* @__PURE__ */ jsx("span", { onClick: () => chatStore.sendMessage(question), className: classNames8(styles_module_default2.chatWelcomePrompts, "text-ellipsis"), children: question })
1195
+ description: /* @__PURE__ */ jsx("span", { onClick: () => chatStore.sendMessage(question), className: classNames9(styles_module_default3.chatWelcomePrompts, "text-ellipsis"), children: question })
1162
1196
  }))
1163
1197
  }
1164
1198
  ]
@@ -1291,7 +1325,7 @@ var BubbleListItems_default = ({ firstMessage = false, avatar = { user: false, a
1291
1325
  autoScroll: false,
1292
1326
  ref: listRef,
1293
1327
  items: bubbleListItems,
1294
- className: classNames8(styles_module_default2.nsBubbleList, "height-full", "scroll-fade-in", "zero-chat-bubbles"),
1328
+ className: classNames9(styles_module_default3.nsBubbleList, "height-full", "scroll-fade-in", "zero-chat-bubbles"),
1295
1329
  onScroll: handleScroll
1296
1330
  },
1297
1331
  conversationState.active.id
@@ -1322,18 +1356,18 @@ var CharacterList_default = () => {
1322
1356
  okText: "\u5207\u6362\u6027\u683C",
1323
1357
  onOk: () => chatStore.switchCharacter(activeCharacter),
1324
1358
  confirmLoading: characterState.switchLoading,
1325
- children: /* @__PURE__ */ jsx("div", { className: styles_module_default2.nsAvatarListContainer, children: /* @__PURE__ */ jsx(Row, { wrap: true, gutter: [16, 32], className: styles_module_default2.nsAvatarList, children: characterState.list.map((item) => /* @__PURE__ */ jsx(Col, { span: 6, children: /* @__PURE__ */ jsxs(Flex, { vertical: true, align: "center", className: styles_module_default2.nsAvatarListItem, onClick: () => setActiveCharacter(item), children: [
1359
+ children: /* @__PURE__ */ jsx("div", { className: styles_module_default3.nsAvatarListContainer, children: /* @__PURE__ */ jsx(Row, { wrap: true, gutter: [16, 32], className: styles_module_default3.nsAvatarList, children: characterState.list.map((item) => /* @__PURE__ */ jsx(Col, { span: 6, children: /* @__PURE__ */ jsxs(Flex, { vertical: true, align: "center", className: styles_module_default3.nsAvatarListItem, onClick: () => setActiveCharacter(item), children: [
1326
1360
  /* @__PURE__ */ jsx(
1327
1361
  Avatar,
1328
1362
  {
1329
- className: classNames8(styles_module_default2.nsAvatarListItemIcon, "cursor-pointer", {
1330
- [styles_module_default2.nsAvatarListItemIconActive]: activeCharacter.id === item.id
1363
+ className: classNames9(styles_module_default3.nsAvatarListItemIcon, "cursor-pointer", {
1364
+ [styles_module_default3.nsAvatarListItemIconActive]: activeCharacter.id === item.id
1331
1365
  }),
1332
1366
  size: 50,
1333
1367
  src: /* @__PURE__ */ jsx("img", { src: item.logo, alt: "\u5934\u50CF" })
1334
1368
  }
1335
1369
  ),
1336
- /* @__PURE__ */ jsx("div", { className: styles_module_default2.nsAvatarListItemName, children: item.characterName })
1370
+ /* @__PURE__ */ jsx("div", { className: styles_module_default3.nsAvatarListItemName, children: item.characterName })
1337
1371
  ] }) }, item.id)) }) })
1338
1372
  }
1339
1373
  );
@@ -1347,7 +1381,7 @@ var AgentCharacter_default = () => {
1347
1381
  chatStore.getCharacters(receiverState.active.id);
1348
1382
  }
1349
1383
  }, [receiverState.active.id]);
1350
- return characterState.active.id && /* @__PURE__ */ jsxs(Fragment, { children: [
1384
+ return characterState.active?.id && /* @__PURE__ */ jsxs(Fragment, { children: [
1351
1385
  /* @__PURE__ */ jsx("div", { title: "\u6027\u683C", children: /* @__PURE__ */ jsx(Avatar, { onClick: chatStore.openCharacterList, className: "cursor-pointer", src: characterState.active.logo }) }),
1352
1386
  characterState.open && /* @__PURE__ */ jsx(CharacterList_default, {})
1353
1387
  ] });
@@ -1385,7 +1419,7 @@ var ConversationList_default = () => {
1385
1419
  children: /* @__PURE__ */ jsx(
1386
1420
  Conversations,
1387
1421
  {
1388
- className: styles_module_default2.nsConversations,
1422
+ className: styles_module_default3.nsConversations,
1389
1423
  items: conversationList,
1390
1424
  activeKey: conversationState.active.id,
1391
1425
  onActiveChange: async (id) => chatStore.switchConversation(id),
@@ -1421,7 +1455,7 @@ var ChatHeader_default = ({
1421
1455
  const chatStore = useChatStore();
1422
1456
  const receiverState = useSnapshot(chatStore.receiver);
1423
1457
  const configState = useSnapshot(chatStore.config);
1424
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "center", className: classNames8(styles_module_default2.nsChatHeader, "zero-chat-header"), children: [
1458
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "center", className: classNames9(styles_module_default3.nsChatHeader, "zero-chat-header"), children: [
1425
1459
  /* @__PURE__ */ jsxs(Flex, { gap: 4, align: "center", children: [
1426
1460
  /* @__PURE__ */ jsx(
1427
1461
  RenderWrapper,
@@ -1429,7 +1463,7 @@ var ChatHeader_default = ({
1429
1463
  control: title,
1430
1464
  DefaultComponent: /* @__PURE__ */ jsxs(Fragment, { children: [
1431
1465
  /* @__PURE__ */ jsx(Avatar, { size: 22, src: receiverState.active.logo, alt: receiverState.active.name }),
1432
- /* @__PURE__ */ jsx("div", { className: styles_module_default2.nsChatTitle, children: receiverState.active.name })
1466
+ /* @__PURE__ */ jsx("div", { className: styles_module_default3.nsChatTitle, children: receiverState.active.name })
1433
1467
  ] })
1434
1468
  }
1435
1469
  ),
@@ -1453,7 +1487,7 @@ var ChatHeader_default = ({
1453
1487
  {
1454
1488
  getPopupContainer: (e) => e,
1455
1489
  placement: "bottom",
1456
- classNames: { body: styles_module_default2.nsChatHeaderPopover },
1490
+ classNames: { body: styles_module_default3.nsChatHeaderPopover },
1457
1491
  content: /* @__PURE__ */ jsx(ConversationList_default, {}),
1458
1492
  trigger: ["click"],
1459
1493
  children: /* @__PURE__ */ jsx(Button, { title: "\u5386\u53F2\u4F1A\u8BDD", type: "text", size: "large", icon: /* @__PURE__ */ jsx(CommentOutlined, {}) })
@@ -1471,12 +1505,6 @@ var ChatHeader_default = ({
1471
1505
  ] })
1472
1506
  ] }) });
1473
1507
  };
1474
-
1475
- // src/components/styles.module.less
1476
- var styles_module_default3 = {
1477
- chatAttachments: "styles_module_chatAttachments",
1478
- chatSender: "styles_module_chatSender"
1479
- };
1480
1508
  var Attachments_default = forwardRef(({ fileUpload, fileUploadConfig = [], fileList = [], onChange, extraParams }, ref) => {
1481
1509
  const { message: message3 } = App.useApp();
1482
1510
  const fileListRef = useRef([]);
@@ -1610,7 +1638,7 @@ var Attachments_default = forwardRef(({ fileUpload, fileUploadConfig = [], fileL
1610
1638
  return /* @__PURE__ */ jsx(
1611
1639
  Attachments,
1612
1640
  {
1613
- className: styles_module_default3.chatAttachments,
1641
+ className: styles_module_default2.chatAttachments,
1614
1642
  accept: acceptStr,
1615
1643
  multiple: true,
1616
1644
  customRequest: onCustomRequest,
@@ -1679,7 +1707,7 @@ var ChatSender_default = forwardRef(
1679
1707
  return /* @__PURE__ */ jsx(Suggestion, { items: [], onSelect: (itemVal) => setInputValue(`[${itemVal}]:`), children: ({}) => /* @__PURE__ */ jsx(
1680
1708
  Sender,
1681
1709
  {
1682
- className: styles_module_default3.chatSender,
1710
+ className: styles_module_default2.chatSender,
1683
1711
  ref: senderRef,
1684
1712
  value: inputValue,
1685
1713
  header: senderHeader,
@@ -1718,9 +1746,9 @@ var SenderPromptsItems_default = () => {
1718
1746
  const chatStore = useChatStore();
1719
1747
  const receiverState = useSnapshot(chatStore.receiver);
1720
1748
  const component = useMemo(
1721
- () => receiverState.active.config?.labels?.length > 0 && /* @__PURE__ */ jsxs(Flex, { gap: 4, className: "overflow-hidden", children: [
1749
+ () => receiverState.active.config?.labels?.length > 0 && /* @__PURE__ */ jsxs(Flex, { gap: 4, wrap: true, children: [
1722
1750
  /* @__PURE__ */ jsx(Button, { disabled: true, color: "default", variant: "text", children: "\u968F\u4FBF\u804A\u804A" }),
1723
- receiverState.active.config.labels.map((question) => /* @__PURE__ */ jsx(
1751
+ receiverState.active.config.labels.slice(0, 6).map((question) => /* @__PURE__ */ jsx(
1724
1752
  Popover,
1725
1753
  {
1726
1754
  content: /* @__PURE__ */ jsx(
@@ -1728,16 +1756,16 @@ var SenderPromptsItems_default = () => {
1728
1756
  {
1729
1757
  itemLayout: "horizontal",
1730
1758
  split: false,
1731
- className: styles_module_default2.nsSenderList,
1759
+ className: styles_module_default3.nsSenderList,
1732
1760
  dataSource: question.items,
1733
- renderItem: (item) => /* @__PURE__ */ jsx(List.Item, { onClick: () => chatStore.sendMessage(item.question), className: styles_module_default2.nsSenderListItem, children: item.question }),
1734
- footer: /* @__PURE__ */ jsx(Flex, { justify: "end", className: styles_module_default2.nsSenderListFooter, children: "(\u60A8\u53EF\u70B9\u51FB\u4EE5\u4E0A\u95EE\u9898\u5F00\u542FAI\u4F53\u9A8C)" })
1761
+ renderItem: (item) => /* @__PURE__ */ jsx(List.Item, { onClick: () => chatStore.sendMessage(item.question), className: styles_module_default3.nsSenderListItem, children: item.question }),
1762
+ footer: /* @__PURE__ */ jsx(Flex, { justify: "end", className: styles_module_default3.nsSenderListFooter, children: "(\u60A8\u53EF\u70B9\u51FB\u4EE5\u4E0A\u95EE\u9898\u5F00\u542FAI\u4F53\u9A8C)" })
1735
1763
  }
1736
1764
  ),
1737
1765
  title: /* @__PURE__ */ jsx(
1738
1766
  "div",
1739
1767
  {
1740
- className: classNames8(styles_module_default2.nsSenderListTitle, "text-ellipsis"),
1768
+ className: classNames9(styles_module_default3.nsSenderListTitle, "text-ellipsis"),
1741
1769
  children: `${receiverState.active.name}\u5F00\u59CB\u5173\u6CE8${question.name}\u5185\u5BB9\uFF01`
1742
1770
  }
1743
1771
  ),
@@ -1828,8 +1856,8 @@ var ChatSender_default2 = forwardRef(
1828
1856
  open: !!chatMessage?.references?.content?.name,
1829
1857
  onOpenChange: () => chatStore.setReferences(),
1830
1858
  classNames: {
1831
- header: styles_module_default2.nsSenderReferenceHeaderTitle,
1832
- content: shouldRender(referencesBtn) ? "" : styles_module_default2.nsSenderReferenceHeaderContent
1859
+ header: styles_module_default3.nsSenderReferenceHeaderTitle,
1860
+ content: shouldRender(referencesBtn) ? "" : styles_module_default3.nsSenderReferenceHeaderContent
1833
1861
  },
1834
1862
  children: /* @__PURE__ */ jsx(
1835
1863
  RenderWrapper,
@@ -1857,7 +1885,7 @@ var ConversationListHeader_default = () => {
1857
1885
  return /* @__PURE__ */ jsxs("div", { className: "p-24", children: [
1858
1886
  /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
1859
1887
  /* @__PURE__ */ jsx(Avatar, { size: 36, src: receiverState.active.logo }),
1860
- /* @__PURE__ */ jsx("span", { className: styles_module_default2.nsChatUserName, children: receiverState.active.name })
1888
+ /* @__PURE__ */ jsx("span", { className: styles_module_default3.nsChatUserName, children: receiverState.active.name })
1861
1889
  ] }),
1862
1890
  /* @__PURE__ */ jsx(
1863
1891
  Button,
@@ -1866,7 +1894,7 @@ var ConversationListHeader_default = () => {
1866
1894
  type: "primary",
1867
1895
  shape: "round",
1868
1896
  onClick: () => chatStore.createConversation(),
1869
- className: classNames8("m-t-16"),
1897
+ className: classNames9("m-t-16"),
1870
1898
  icon: /* @__PURE__ */ jsx(PlusOutlined, {}),
1871
1899
  children: "\u65B0\u5EFA\u4F1A\u8BDD"
1872
1900
  }
@@ -1874,7 +1902,7 @@ var ConversationListHeader_default = () => {
1874
1902
  ] });
1875
1903
  };
1876
1904
  var ConversationListPanel_default = ({ header }) => {
1877
- return /* @__PURE__ */ jsxs(Flex, { vertical: true, className: classNames8("height-full", "zero-chat-conversations", styles_module_default2.nsConversationListPanel), children: [
1905
+ return /* @__PURE__ */ jsxs(Flex, { vertical: true, className: classNames9("height-full", "zero-chat-conversations", styles_module_default3.nsConversationListPanel), children: [
1878
1906
  /* @__PURE__ */ jsx(RenderWrapper, { control: header, DefaultComponent: ConversationListHeader_default }),
1879
1907
  /* @__PURE__ */ jsx("div", { className: "full-scroll", children: /* @__PURE__ */ jsx(ConversationList_default, {}) })
1880
1908
  ] });
@@ -1972,7 +2000,7 @@ var layouts_default = forwardRef(({ theme, params, userInfo, hooks, layout, conf
1972
2000
  useEffect(() => {
1973
2001
  configState.hooks?.onBeforeInit?.();
1974
2002
  }, []);
1975
- return /* @__PURE__ */ jsx(XProvider, { theme: { cssVar: true, ...theme }, children: /* @__PURE__ */ jsx(ChatProvider, { store: chatStore, children: /* @__PURE__ */ jsx(Spin, { spinning: receiverState.loading, wrapperClassName: "full-spin", children: /* @__PURE__ */ jsxs(Flex, { vertical: true, className: classNames8(styles_module_default4.nsChatLayout, "zero-chat-layout", "height-full"), children: [
2003
+ return /* @__PURE__ */ jsx(XProvider, { theme: { cssVar: true, ...theme }, children: /* @__PURE__ */ jsx(ChatProvider, { store: chatStore, children: /* @__PURE__ */ jsx(Spin, { spinning: receiverState.loading, wrapperClassName: "full-spin", children: /* @__PURE__ */ jsxs(Flex, { vertical: true, className: classNames9(styles_module_default4.nsChatLayout, "zero-chat-layout", "height-full"), children: [
1976
2004
  /* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.globalHeader, DefaultComponent: ChatHeader_default }),
1977
2005
  /* @__PURE__ */ jsxs(Flex, { className: "full-scroll", children: [
1978
2006
  /* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.leftPanel }),
@@ -2026,15 +2054,15 @@ var layouts_default = forwardRef(({ theme, params, userInfo, hooks, layout, conf
2026
2054
  }
2027
2055
  )
2028
2056
  ] }) }),
2029
- /* @__PURE__ */ jsx(Splitter.Panel, { collapsible: false, max: 800, min: 400, size: sizes[1], children: /* @__PURE__ */ jsxs(Flex, { vertical: true, className: classNames8("height-full"), children: [
2057
+ /* @__PURE__ */ jsx(Splitter.Panel, { collapsible: false, max: 800, min: 400, size: sizes[1], children: /* @__PURE__ */ jsxs(Flex, { vertical: true, className: classNames9("height-full"), children: [
2030
2058
  /* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.chatHeader, DefaultComponent: ChatHeader_default }),
2031
- /* @__PURE__ */ jsx(Flex, { vertical: true, className: classNames8("full-scroll"), children: /* @__PURE__ */ jsxs(
2059
+ /* @__PURE__ */ jsx(Flex, { vertical: true, className: classNames9("full-scroll"), children: /* @__PURE__ */ jsxs(
2032
2060
  Flex,
2033
2061
  {
2034
2062
  justify: "center",
2035
2063
  vertical: true,
2036
2064
  gap: 24,
2037
- className: classNames8("height-full", styles_module_default4.nsChatBody, "zero-chat-body", styles_module_default4.nsBodyWidth),
2065
+ className: classNames9("height-full", styles_module_default4.nsChatBody, "zero-chat-body", styles_module_default4.nsBodyWidth),
2038
2066
  children: [
2039
2067
  shouldRender(configState.layout.messageList) && /* @__PURE__ */ jsx("div", { className: "full-scroll", children: /* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.messageList, DefaultComponent: BubbleListItems_default }) }),
2040
2068
  /* @__PURE__ */ jsxs(Flex, { vertical: true, gap: 8, children: [