@zero-library/chat-agent 2.3.3 → 2.3.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.
package/dist/index.css CHANGED
@@ -189,6 +189,33 @@
189
189
  .styles_module_nsConversations .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {
190
190
  color: var(--ant-color-primary);
191
191
  }
192
+ .styles_module_favoriteCard {
193
+ border-radius: 10px;
194
+ padding: 8px 10px 8px 16px;
195
+ transition: all 0.2s;
196
+ cursor: pointer;
197
+ }
198
+ .styles_module_favoriteCard.styles_module_favoriteCardActive {
199
+ background: #f2f2f2;
200
+ }
201
+ .styles_module_favoriteCard.styles_module_favoriteCardActive .styles_module_favoriteCardTitle {
202
+ color: var(--ant-color-primary);
203
+ }
204
+ .styles_module_favoriteCard:hover {
205
+ background: #f2f2f2;
206
+ }
207
+ .styles_module_favoriteCard:hover .styles_module_favoriteCardActions {
208
+ opacity: 1;
209
+ }
210
+ .styles_module_favoriteCard .styles_module_favoriteCardActions {
211
+ opacity: 0;
212
+ transition: all 0.2s;
213
+ }
214
+ .styles_module_favoriteCard .styles_module_favoriteCardDate {
215
+ font-size: 12px;
216
+ color: #999;
217
+ margin-top: 4px;
218
+ }
192
219
  .styles_module_nsBubbleList.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content-filled {
193
220
  background-color: transparent;
194
221
  }
@@ -203,13 +230,13 @@
203
230
  font-size: 16px;
204
231
  font-weight: bold;
205
232
  }
206
- .styles_module_nsChatHeader .styles_module_nsChatHeaderPopover {
233
+ .styles_module_nsPopover {
207
234
  max-height: 500px;
208
235
  width: 300px;
209
236
  display: flex;
210
237
  flex-direction: column;
211
238
  }
212
- .styles_module_nsChatHeader .styles_module_nsChatHeaderPopover .ant-popover-inner-content {
239
+ .styles_module_nsPopover .ant-popover-inner-content {
213
240
  min-height: 0;
214
241
  display: flex;
215
242
  flex-direction: column;
@@ -278,7 +305,7 @@
278
305
  /* src/ui/common/QuickAsk/styles.module.less */
279
306
  .styles_module_quickAskPanel {
280
307
  width: 600px;
281
- height: 400px;
308
+ height: 350px;
282
309
  }
283
310
  .styles_module_quickAskPanel .styles_module_tagContainer {
284
311
  overflow-y: auto;
@@ -293,6 +320,15 @@
293
320
  color: #fff;
294
321
  padding: 8px 12px;
295
322
  }
323
+ .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemHeader .styles_module_quickAskItemTitle {
324
+ padding: 2px 0;
325
+ }
326
+ .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemHeader .styles_module_quickAskItemHeaderActions {
327
+ display: none;
328
+ }
329
+ .styles_module_quickAskPanel .styles_module_quickAskItem:hover .styles_module_quickAskItemHeader .styles_module_quickAskItemHeaderActions {
330
+ display: flex;
331
+ }
296
332
  .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemBody {
297
333
  background-color: #f2f2f2;
298
334
  color: #555;
@@ -331,4 +367,10 @@
331
367
  min-width: 320px;
332
368
  width: calc(100% - 24px);
333
369
  }
370
+ .styles_module_nsPrompts .ant-prompts-item {
371
+ max-width: 100%;
372
+ }
373
+ .styles_module_nsPrompts .ant-prompts-item .ant-prompts-desc {
374
+ width: 100%;
375
+ }
334
376
  /*# sourceMappingURL=index.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ui/common/markdownAlert/styles.module.less","../src/components/styles.module.less","../src/ui/common/styles.module.less","../src/ui/common/QuickAsk/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.think:global.ant-collapse {\n margin-bottom: 16px;\n}\n.think:global.ant-collapse .ant-collapse-header {\n color: #8f91a8;\n}\n.think:global.ant-collapse .ant-collapse-content {\n color: #8f91a8;\n}\n.think:global.ant-collapse .ant-collapse-content .ant-collapse-content-box {\n padding: 0 10px 0 24px;\n}\n.chart {\n padding: 10px;\n max-width: 100%;\n min-width: 350px;\n overflow-x: scroll;\n display: inline-block;\n border-radius: 12px;\n border: 1px solid #e5e9f0;\n background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);\n margin: 12px 0;\n}\n.chart .chartSkeleton {\n width: 100% !important;\n}\n.chart .chartSkeleton .chartSkeletonIcon {\n font-size: 40px;\n color: #bfbfbf;\n}\n","@keyframes loading-line {\n from {\n background-position: 200% 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.loadingMessage {\n position: relative;\n padding-bottom: 6px;\n}\n.loadingMessage::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n height: 2px;\n width: 100%;\n background: linear-gradient(90deg, #ff6b23, #af3cb8, #53b6ff);\n background-size: 200% 100%;\n animation: loading-line 1.2s linear infinite;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\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",".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.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",".quickAskPanel {\n width: 600px;\n height: 400px;\n}\n.quickAskPanel .tagContainer {\n overflow-y: auto;\n}\n.quickAskPanel .quickAskItem {\n border-radius: 16px;\n overflow: clip;\n cursor: pointer;\n}\n.quickAskPanel .quickAskItem .quickAskItemHeader {\n background-color: var(--ant-color-primary);\n color: #fff;\n padding: 8px 12px;\n}\n.quickAskPanel .quickAskItem .quickAskItemBody {\n background-color: #f2f2f2;\n color: #555;\n padding: 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;AAC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W;AACX,eAAa;AACf;AACA,CAACC,2CAAoC,EAAE,CAAC;AACtC,YAAU;AACZ;AACA,CAACC;AACC,WAAS;AACX;AACA,CAACC;AACC,UAAQ;AACR,WAAS,KAAK,KAAK,KAAK;AACxB,cAAY;AACZ,gBAAc;AAChB;AACA,CANCA,oCAMsB,CAACC,2BAAa,CAACC,8BAAgB;AACpD,WAAS;AACX;AACA,CATCF,oCASsB,CAHCC,2BAGa,CAHCC,+BAGiB,CAACC,kCAAoB,CAACC;AAC3E,WAAS,IAAI,MAAM,IAAI;AACzB;AACA,CAZCJ,oCAYsB,CANCC,2BAMa,CANCC,+BAMiB,CAACG;AACtD,aAAW;AACb;;;ACzGA,CAACC;AACC,SAAO;AACP,UAAQ;AACV;AACA,CAJCA,4BAIc,CAACC;AACd,cAAY;AACd;AACA,CAPCD,4BAOc,CAACE;AACd,iBAAe;AACf,YAAU;AACV,UAAQ;AACV;AACA,CAZCF,4BAYc,CALCE,2BAKa,CAACC;AAC5B,oBAAkB,IAAI;AACtB,SAAO;AACP,WAAS,IAAI;AACf;AACA,CAjBCH,4BAiBc,CAVCE,2BAUa,CAACE;AAC5B,oBAAkB;AAClB,SAAO;AACP,WAAS;AACX;;;ACrBA,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","think","chart","chartSkeleton","chartSkeletonIcon","loading-line","loadingMessage","spin","chatAttachments","chatSender","chatQuoteMsg","quoteTooltip","quoteTooltipContainer","nsConversationListPanel","nsConversations","nsBubbleList","nsChatHeader","nsChatTitle","nsChatHeaderPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","nsSenderListTitle","nsSenderList","historyList","nsSenderListItem","nsSenderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","nsAvatarListContainer","nsAvatarList","nsAvatarListItem","nsAvatarListItemIcon","nsAvatarListItemIconActive","nsAvatarListItemName","quickAskPanel","tagContainer","quickAskItem","quickAskItemHeader","quickAskItemBody","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/common/QuickAsk/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.think:global.ant-collapse {\n margin-bottom: 16px;\n}\n.think:global.ant-collapse .ant-collapse-header {\n color: #8f91a8;\n}\n.think:global.ant-collapse .ant-collapse-content {\n color: #8f91a8;\n}\n.think:global.ant-collapse .ant-collapse-content .ant-collapse-content-box {\n padding: 0 10px 0 24px;\n}\n.chart {\n padding: 10px;\n max-width: 100%;\n min-width: 350px;\n overflow-x: scroll;\n display: inline-block;\n border-radius: 12px;\n border: 1px solid #e5e9f0;\n background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);\n margin: 12px 0;\n}\n.chart .chartSkeleton {\n width: 100% !important;\n}\n.chart .chartSkeleton .chartSkeletonIcon {\n font-size: 40px;\n color: #bfbfbf;\n}\n","@keyframes loading-line {\n from {\n background-position: 200% 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.loadingMessage {\n position: relative;\n padding-bottom: 6px;\n}\n.loadingMessage::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n height: 2px;\n width: 100%;\n background: linear-gradient(90deg, #ff6b23, #af3cb8, #53b6ff);\n background-size: 200% 100%;\n animation: loading-line 1.2s linear infinite;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\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",".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.favoriteCard {\n border-radius: 10px;\n padding: 8px 10px 8px 16px;\n transition: all 0.2s;\n cursor: pointer;\n}\n.favoriteCard.favoriteCardActive {\n background: #f2f2f2;\n}\n.favoriteCard.favoriteCardActive .favoriteCardTitle {\n color: var(--ant-color-primary);\n}\n.favoriteCard:hover {\n background: #f2f2f2;\n}\n.favoriteCard:hover .favoriteCardActions {\n opacity: 1;\n}\n.favoriteCard .favoriteCardActions {\n opacity: 0;\n transition: all 0.2s;\n}\n.favoriteCard .favoriteCardDate {\n font-size: 12px;\n color: #999;\n margin-top: 4px;\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.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.nsPopover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n}\n.nsPopover :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",".quickAskPanel {\n width: 600px;\n height: 350px;\n}\n.quickAskPanel .tagContainer {\n overflow-y: auto;\n}\n.quickAskPanel .quickAskItem {\n border-radius: 16px;\n overflow: clip;\n cursor: pointer;\n}\n.quickAskPanel .quickAskItem .quickAskItemHeader {\n background-color: var(--ant-color-primary);\n color: #fff;\n padding: 8px 12px;\n}\n.quickAskPanel .quickAskItem .quickAskItemHeader .quickAskItemTitle {\n padding: 2px 0;\n}\n.quickAskPanel .quickAskItem .quickAskItemHeader .quickAskItemHeaderActions {\n display: none;\n}\n.quickAskPanel .quickAskItem:hover .quickAskItemHeader .quickAskItemHeaderActions {\n display: flex;\n}\n.quickAskPanel .quickAskItem .quickAskItemBody {\n background-color: #f2f2f2;\n color: #555;\n padding: 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.nsPrompts :global .ant-prompts-item {\n max-width: 100%;\n}\n.nsPrompts :global .ant-prompts-item .ant-prompts-desc {\n width: 100%;\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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ACA,CAZCF,4BAYc,CALCE,2BAKa,CAACC;AAC5B,oBAAkB,IAAI;AACtB,SAAO;AACP,WAAS,IAAI;AACf;AACA,CAjBCH,4BAiBc,CAVCE,2BAUa,CALCC,iCAKmB,CAACC;AAChD,WAAS,IAAI;AACf;AACA,CApBCJ,4BAoBc,CAbCE,2BAaa,CARCC,iCAQmB,CAACE;AAChD,WAAS;AACX;AACA,CAvBCL,4BAuBc,CAhBCE,0BAgBY,OAAO,CAXLC,iCAWyB,CAHLE;AAIhD,WAAS;AACX;AACA,CA1BCL,4BA0Bc,CAnBCE,2BAmBa,CAACI;AAC5B,oBAAkB;AAClB,SAAO;AACP,WAAS;AACX;;;AC9BA,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;AACA,CAACC,wBAAkB,CAAC;AAClB,aAAW;AACb;AACA,CAHCA,wBAGkB,CAHC,iBAGiB,CAAC;AACpC,SAAO;AACT;","names":["appCard","fileView","fileEdit","fileEditHeader","fileEditContent","quoteList","mdEdit","think","chart","chartSkeleton","chartSkeletonIcon","loading-line","loadingMessage","spin","chatAttachments","chatSender","chatQuoteMsg","quoteTooltip","quoteTooltipContainer","nsConversationListPanel","nsConversations","favoriteCard","favoriteCardActive","favoriteCardTitle","favoriteCardActions","favoriteCardDate","nsBubbleList","nsChatHeader","nsChatTitle","nsPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","nsSenderListTitle","nsSenderList","historyList","nsSenderListItem","nsSenderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","nsAvatarListContainer","nsAvatarList","nsAvatarListItem","nsAvatarListItemIcon","nsAvatarListItemIconActive","nsAvatarListItemName","quickAskPanel","tagContainer","quickAskItem","quickAskItemHeader","quickAskItemTitle","quickAskItemHeaderActions","quickAskItemBody","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice","nsChatLayout","nsChatBody","nsBodyWidth","nsPrompts"]}
package/dist/index.d.mts CHANGED
@@ -454,6 +454,23 @@ interface LabelItemPrompt {
454
454
  /** 建议的问题内容 */
455
455
  content: string;
456
456
  }
457
+ /**
458
+ * 查询收藏会话需要的参数
459
+ */
460
+ interface FavoriteConversationsQuery extends PageReq {
461
+ /** 目标ID(如智能体ID、专家ID等) */
462
+ targetId: string;
463
+ /** 目标类型:1-用户 2-专家 3-Agent 4-税协 */
464
+ targetType: number;
465
+ }
466
+ /**
467
+ * 收藏列表返回数据结构
468
+ */
469
+ interface FavoriteConversationType {
470
+ id: string;
471
+ title: string;
472
+ favoriteTime: string;
473
+ }
457
474
  /**
458
475
  * 创建聊天服务
459
476
  * @param request - 请求函数实例
@@ -463,6 +480,8 @@ declare const createChatService: (request: ReturnType<typeof createRequest>) =>
463
480
  conversationsQuery: (params: ConversationsQuery) => Promise<R<PageRes<ConversationType>>>;
464
481
  conversationCreate: (params: ConversationCreate) => Promise<R<string>>;
465
482
  conversationDelete: (conversationId: string) => Promise<R<null>>;
483
+ conversationFavoritesQuery: (params: FavoriteConversationsQuery) => Promise<R<PageRes<FavoriteConversationType>>>;
484
+ conversationFavorite: (conversationId: string, isFavorite: boolean) => Promise<R<boolean>>;
466
485
  conversationRecentUpdate: (params: ConversationRecentUpdate) => Promise<R<boolean>>;
467
486
  conversationRecentQuery: (params: ConversationRecentQuery) => Promise<R<string>>;
468
487
  conversationMessagesQuery: (params: conversationMessagesQuery) => Promise<R<PageRes<ConversationMessage>>>;
@@ -1040,7 +1059,7 @@ interface ChatParams {
1040
1059
  businessData?: string;
1041
1060
  /** 业务数据唯一ID 非必填 */
1042
1061
  businessId?: string;
1043
- /** 业务类型 非必填 1-风控;2-弹窗 */
1062
+ /** 业务类型 非必填 1-风控;2-弹窗;3-律师 */
1044
1063
  businessType?: number;
1045
1064
  /** 扩展参数对象 透传大模型 */
1046
1065
  params?: ObjectType<any>;
@@ -1048,7 +1067,7 @@ interface ChatParams {
1048
1067
  /**
1049
1068
  * 聊天布局头部配置接口
1050
1069
  * 控制聊天头部区域的显示和功能
1051
- * ChatHeader组件默认 title = true, avatar = true, closeBtn = false, newConversationBtn = true, conversationListBtn = true
1070
+ * ChatHeader组件默认 title = true, avatar = true, closeBtn = false, newConversationBtn = true, conversationListBtn = true, conversationListFavoriteBtn = true
1052
1071
  * @example
1053
1072
  * // 自定义头部配置
1054
1073
  * const header: ChatLayoutHeader = {
@@ -1058,6 +1077,7 @@ interface ChatParams {
1058
1077
  * newConversationBtn: false, // 隐藏新建会话按钮
1059
1078
  * agentCharacter: true, // 显示智能体性格选择
1060
1079
  * conversationListBtn: true // 显示会话列表按钮
1080
+ * conversationListFavoriteBtn: true // 显示会话收藏列表按钮
1061
1081
  * }
1062
1082
  */
1063
1083
  interface ChatLayoutHeader {
@@ -1073,6 +1093,31 @@ interface ChatLayoutHeader {
1073
1093
  agentCharacter?: boolean;
1074
1094
  /** 是否显示会话列表按钮 */
1075
1095
  conversationListBtn?: boolean;
1096
+ /** 是否显示会话收藏列表按钮 */
1097
+ conversationListFavoriteBtn?: boolean;
1098
+ }
1099
+ /**
1100
+ * 左侧会话列表header渲染控制
1101
+ * 控制会话列表header区域的显示和功能
1102
+ * ChatHeader组件默认 title = true, avatar = true, newConversationBtn = true, conversationListFavoriteBtn = true
1103
+ * @example
1104
+ * // 自定义头部配置
1105
+ * const header: ChatLayoutConversationListHeader = {
1106
+ * title: true, // 显示标题
1107
+ * avatar: true, // 显示头像
1108
+ * newConversationBtn: false, // 隐藏新建会话按钮
1109
+ * conversationListFavoriteBtn: true // 显示会话收藏列表按钮
1110
+ * }
1111
+ */
1112
+ interface ChatLayoutConversationListHeader {
1113
+ /** 标题渲染控制 */
1114
+ title?: RenderControl<void, void>;
1115
+ /** 头像渲染控制 */
1116
+ avatar?: RenderControl<void, void>;
1117
+ /** 新建会话按钮渲染控制 */
1118
+ newConversationBtn?: RenderControl<void, void>;
1119
+ /** 是否显示会话收藏列表按钮 */
1120
+ conversationListFavoriteBtn?: boolean;
1076
1121
  }
1077
1122
  /**
1078
1123
  * 聊天布局会话列表配置接口
@@ -1086,7 +1131,7 @@ interface ChatLayoutHeader {
1086
1131
  */
1087
1132
  interface ChatLayoutConversationList {
1088
1133
  /** 会话列表头部渲染控制 */
1089
- header?: RenderControl<void, void>;
1134
+ header?: RenderControl<void, ChatLayoutConversationListHeader>;
1090
1135
  }
1091
1136
  /**
1092
1137
  * 聊天布局输入框配置接口
package/dist/index.d.ts CHANGED
@@ -454,6 +454,23 @@ interface LabelItemPrompt {
454
454
  /** 建议的问题内容 */
455
455
  content: string;
456
456
  }
457
+ /**
458
+ * 查询收藏会话需要的参数
459
+ */
460
+ interface FavoriteConversationsQuery extends PageReq {
461
+ /** 目标ID(如智能体ID、专家ID等) */
462
+ targetId: string;
463
+ /** 目标类型:1-用户 2-专家 3-Agent 4-税协 */
464
+ targetType: number;
465
+ }
466
+ /**
467
+ * 收藏列表返回数据结构
468
+ */
469
+ interface FavoriteConversationType {
470
+ id: string;
471
+ title: string;
472
+ favoriteTime: string;
473
+ }
457
474
  /**
458
475
  * 创建聊天服务
459
476
  * @param request - 请求函数实例
@@ -463,6 +480,8 @@ declare const createChatService: (request: ReturnType<typeof createRequest>) =>
463
480
  conversationsQuery: (params: ConversationsQuery) => Promise<R<PageRes<ConversationType>>>;
464
481
  conversationCreate: (params: ConversationCreate) => Promise<R<string>>;
465
482
  conversationDelete: (conversationId: string) => Promise<R<null>>;
483
+ conversationFavoritesQuery: (params: FavoriteConversationsQuery) => Promise<R<PageRes<FavoriteConversationType>>>;
484
+ conversationFavorite: (conversationId: string, isFavorite: boolean) => Promise<R<boolean>>;
466
485
  conversationRecentUpdate: (params: ConversationRecentUpdate) => Promise<R<boolean>>;
467
486
  conversationRecentQuery: (params: ConversationRecentQuery) => Promise<R<string>>;
468
487
  conversationMessagesQuery: (params: conversationMessagesQuery) => Promise<R<PageRes<ConversationMessage>>>;
@@ -1040,7 +1059,7 @@ interface ChatParams {
1040
1059
  businessData?: string;
1041
1060
  /** 业务数据唯一ID 非必填 */
1042
1061
  businessId?: string;
1043
- /** 业务类型 非必填 1-风控;2-弹窗 */
1062
+ /** 业务类型 非必填 1-风控;2-弹窗;3-律师 */
1044
1063
  businessType?: number;
1045
1064
  /** 扩展参数对象 透传大模型 */
1046
1065
  params?: ObjectType<any>;
@@ -1048,7 +1067,7 @@ interface ChatParams {
1048
1067
  /**
1049
1068
  * 聊天布局头部配置接口
1050
1069
  * 控制聊天头部区域的显示和功能
1051
- * ChatHeader组件默认 title = true, avatar = true, closeBtn = false, newConversationBtn = true, conversationListBtn = true
1070
+ * ChatHeader组件默认 title = true, avatar = true, closeBtn = false, newConversationBtn = true, conversationListBtn = true, conversationListFavoriteBtn = true
1052
1071
  * @example
1053
1072
  * // 自定义头部配置
1054
1073
  * const header: ChatLayoutHeader = {
@@ -1058,6 +1077,7 @@ interface ChatParams {
1058
1077
  * newConversationBtn: false, // 隐藏新建会话按钮
1059
1078
  * agentCharacter: true, // 显示智能体性格选择
1060
1079
  * conversationListBtn: true // 显示会话列表按钮
1080
+ * conversationListFavoriteBtn: true // 显示会话收藏列表按钮
1061
1081
  * }
1062
1082
  */
1063
1083
  interface ChatLayoutHeader {
@@ -1073,6 +1093,31 @@ interface ChatLayoutHeader {
1073
1093
  agentCharacter?: boolean;
1074
1094
  /** 是否显示会话列表按钮 */
1075
1095
  conversationListBtn?: boolean;
1096
+ /** 是否显示会话收藏列表按钮 */
1097
+ conversationListFavoriteBtn?: boolean;
1098
+ }
1099
+ /**
1100
+ * 左侧会话列表header渲染控制
1101
+ * 控制会话列表header区域的显示和功能
1102
+ * ChatHeader组件默认 title = true, avatar = true, newConversationBtn = true, conversationListFavoriteBtn = true
1103
+ * @example
1104
+ * // 自定义头部配置
1105
+ * const header: ChatLayoutConversationListHeader = {
1106
+ * title: true, // 显示标题
1107
+ * avatar: true, // 显示头像
1108
+ * newConversationBtn: false, // 隐藏新建会话按钮
1109
+ * conversationListFavoriteBtn: true // 显示会话收藏列表按钮
1110
+ * }
1111
+ */
1112
+ interface ChatLayoutConversationListHeader {
1113
+ /** 标题渲染控制 */
1114
+ title?: RenderControl<void, void>;
1115
+ /** 头像渲染控制 */
1116
+ avatar?: RenderControl<void, void>;
1117
+ /** 新建会话按钮渲染控制 */
1118
+ newConversationBtn?: RenderControl<void, void>;
1119
+ /** 是否显示会话收藏列表按钮 */
1120
+ conversationListFavoriteBtn?: boolean;
1076
1121
  }
1077
1122
  /**
1078
1123
  * 聊天布局会话列表配置接口
@@ -1086,7 +1131,7 @@ interface ChatLayoutHeader {
1086
1131
  */
1087
1132
  interface ChatLayoutConversationList {
1088
1133
  /** 会话列表头部渲染控制 */
1089
- header?: RenderControl<void, void>;
1134
+ header?: RenderControl<void, ChatLayoutConversationListHeader>;
1090
1135
  }
1091
1136
  /**
1092
1137
  * 聊天布局输入框配置接口