@zero-library/chat-agent 2.3.8 → 2.3.10

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
@@ -310,28 +310,24 @@
310
310
  margin-bottom: 0;
311
311
  }
312
312
  .styles_module_quickAskPanel .styles_module_quickAskItem {
313
- border-radius: 16px;
314
- overflow: clip;
313
+ background-color: #f5f5f5;
314
+ border-radius: 4px;
315
+ padding: 6px 12px;
315
316
  cursor: pointer;
316
317
  }
317
- .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemHeader {
318
- background-color: var(--ant-color-primary);
319
- color: #fff;
320
- padding: 8px 12px;
321
- }
322
- .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemHeader .styles_module_quickAskItemTitle {
323
- padding: 2px 0;
318
+ .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemIcon {
319
+ margin-top: 3px;
320
+ color: var(--ant-color-primary);
324
321
  }
325
- .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemHeader .styles_module_quickAskItemHeaderActions {
326
- display: none;
322
+ .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemTitle {
323
+ min-height: 40px;
327
324
  }
328
- .styles_module_quickAskPanel .styles_module_quickAskItem:hover .styles_module_quickAskItemHeader .styles_module_quickAskItemHeaderActions {
329
- display: flex;
325
+ .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemActions {
326
+ opacity: 0;
327
+ transition: opacity 0.2s ease-in-out;
330
328
  }
331
- .styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemBody {
332
- background-color: #f2f2f2;
333
- color: #555;
334
- padding: 12px;
329
+ .styles_module_quickAskPanel .styles_module_quickAskItem:hover .styles_module_quickAskItemActions {
330
+ opacity: 1;
335
331
  }
336
332
 
337
333
  /* src/ui/layouts/styles.module.less */
@@ -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.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 height: 100%;\n}\n.quickAskPanel .tagContainer :global .ant-tabs-nav {\n margin-bottom: 0;\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,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;AACjD,SAAO;AACP,oBAAkB;AACpB;AACA,CAACC;AACC,UAAQ,KAAK;AACb,o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AAE;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"]}
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 height: 100%;\n}\n.quickAskPanel .tagContainer :global .ant-tabs-nav {\n margin-bottom: 0;\n}\n.quickAskPanel .quickAskItem {\n background-color: #f5f5f5;\n border-radius: 4px;\n padding: 6px 12px;\n cursor: pointer;\n}\n.quickAskPanel .quickAskItem .quickAskItemIcon {\n margin-top: 3px;\n color: var(--ant-color-primary);\n}\n.quickAskPanel .quickAskItem .quickAskItemTitle {\n min-height: 40px;\n}\n.quickAskPanel .quickAskItem .quickAskItemActions {\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n}\n.quickAskPanel .quickAskItem:hover .quickAskItemActions {\n opacity: 1;\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,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;AACjD,SAAO;AACP,oBAAkB;AACpB;AACA,CAACC;AACC,UAAQ,KAAK;AACb,oBAAkB,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AACtC,UAAQ,IAAI,MAAM;AAClB,WAAS;AACT,iBAAe;AACjB;AACA,CAACC,mBAAY,CAfK;AAgBhB,iBAAe;AACjB;AACA,CAHCA,mBAGY,CAlBK,aAkBS,CAlBwB;AAmBjD,SAAO;AACT;AACA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,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","quickAskItemIcon","quickAskItemTitle","quickAskItemActions","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice","nsChatLayout","nsChatBody","nsBodyWidth","nsPrompts"]}
package/dist/index.d.mts CHANGED
@@ -1047,6 +1047,25 @@ interface ChatHooks {
1047
1047
  * }
1048
1048
  */
1049
1049
  onAfterSetReferences?: (references?: ReferencesType) => void;
1050
+ /**
1051
+ * 选择能力模板前回调
1052
+ * 在用户选择能力模板之前调用,可用于阻止选择该模板默认操作,书写新操作
1053
+ *
1054
+ * @param capacity - 被选择的能力模板信息
1055
+ * @returns boolean | Promise<boolean> | void - 返回false阻止设置
1056
+ *
1057
+ * @example
1058
+ * onBeforeSelectCapacity: (capacity) => {
1059
+ * console.log('即将选择能力模板:', capacity)
1060
+ * // 可以在此处书写新操作
1061
+ * chatStore.setContent(item.content)
1062
+ * chatStore.setContentParams({
1063
+ * use_template: 1
1064
+ * })
1065
+ * return false
1066
+ * }
1067
+ */
1068
+ onBeforeSelectCapacity?: (capacity: LabelItem) => boolean | Promise<boolean> | void;
1050
1069
  }
1051
1070
  /**
1052
1071
  * 聊天参数接口
package/dist/index.d.ts CHANGED
@@ -1047,6 +1047,25 @@ interface ChatHooks {
1047
1047
  * }
1048
1048
  */
1049
1049
  onAfterSetReferences?: (references?: ReferencesType) => void;
1050
+ /**
1051
+ * 选择能力模板前回调
1052
+ * 在用户选择能力模板之前调用,可用于阻止选择该模板默认操作,书写新操作
1053
+ *
1054
+ * @param capacity - 被选择的能力模板信息
1055
+ * @returns boolean | Promise<boolean> | void - 返回false阻止设置
1056
+ *
1057
+ * @example
1058
+ * onBeforeSelectCapacity: (capacity) => {
1059
+ * console.log('即将选择能力模板:', capacity)
1060
+ * // 可以在此处书写新操作
1061
+ * chatStore.setContent(item.content)
1062
+ * chatStore.setContentParams({
1063
+ * use_template: 1
1064
+ * })
1065
+ * return false
1066
+ * }
1067
+ */
1068
+ onBeforeSelectCapacity?: (capacity: LabelItem) => boolean | Promise<boolean> | void;
1050
1069
  }
1051
1070
  /**
1052
1071
  * 聊天参数接口
package/dist/index.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { createSecureManager, createTokenManager, useRefState, useDebounce, useSyncInput, markdownToText, RenderWrapper, shouldRender, isFunction, useDeepEffect, useWebSocket, downloadFile, FilePreview, MarkdownEditor, isObject, isNullOrUnDef, isNumber, getFileSuffixName, isBoolean, UserAvatar, htmlToMarkdown, copyText, deepCopy, transforms, deepMerge, createRequest, HttpStatus, isArray, isString, isEmptyObj, RenderMarkdown, transform, emit, buildUrlParams, getWebSocketUrl, useCreateValtioContext, FileIcon, isExternal, LazyComponent } from '@zero-library/common';
2
- import { App, Badge, Button, Flex, Typography, Spin, Splitter, Tag, Avatar, Space, Popover, Drawer, Input, Tabs, Popconfirm, message, Empty, Tooltip, Form, Modal, AutoComplete, Row, Col, Collapse, Skeleton, Alert } from 'antd';
2
+ import { App, Badge, Button, Flex, Typography, Spin, Splitter, Tag, Avatar, Space, Popover, Drawer, Input, Tabs, Popconfirm, Empty, message, Tooltip, Form, Modal, AutoComplete, Row, Col, Collapse, Skeleton, Alert } from 'antd';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import { forwardRef, useRef, useEffect, useImperativeHandle, useMemo, useState } from 'react';
5
5
  import { useSnapshot, proxy } from 'valtio';
6
- import { CloudUploadOutlined, PaperClipOutlined, EnterOutlined, CloseOutlined, FileSearchOutlined, UserSwitchOutlined, PlusOutlined, CommentOutlined, OpenAIOutlined, CopyOutlined, LikeOutlined, DislikeOutlined, SearchOutlined, PushpinOutlined, EditOutlined, DeleteOutlined, StarFilled, StarOutlined, RedoOutlined, SignatureOutlined, PlayCircleOutlined, DotChartOutlined } from '@ant-design/icons';
6
+ import { CloudUploadOutlined, PaperClipOutlined, EnterOutlined, CloseOutlined, FileSearchOutlined, UserSwitchOutlined, PlusOutlined, CommentOutlined, OpenAIOutlined, CopyOutlined, LikeOutlined, DislikeOutlined, SearchOutlined, FileTextOutlined, PushpinOutlined, EditOutlined, DeleteOutlined, StarFilled, StarOutlined, RedoOutlined, SignatureOutlined, PlayCircleOutlined, DotChartOutlined } from '@ant-design/icons';
7
7
  import classNames11 from 'classnames';
8
8
  import { Attachments, Sender, Suggestion, XProvider, Prompts, Bubble, Conversations, Welcome } from '@ant-design/x';
9
9
  import dayjs from 'dayjs';
@@ -2205,7 +2205,7 @@ var QuickAskEditModal_default = ({ open, onCancel, loading, onConfirm, initialVa
2205
2205
  return /* @__PURE__ */ jsxs(
2206
2206
  Modal,
2207
2207
  {
2208
- title: initialValues?.id ? "\u7F16\u8F91\u5FEB\u901F\u63D0\u95EE" : "\u65B0\u589E\u5FEB\u901F\u63D0\u95EE",
2208
+ title: initialValues?.id ? "\u7F16\u8F91\u80FD\u529B\u6A21\u677F" : "\u65B0\u589E\u80FD\u529B\u6A21\u677F",
2209
2209
  open,
2210
2210
  onCancel,
2211
2211
  onOk: handleOk,
@@ -2263,10 +2263,9 @@ var styles_module_default4 = {
2263
2263
  quickAskPanel: "styles_module_quickAskPanel",
2264
2264
  tagContainer: "styles_module_tagContainer",
2265
2265
  quickAskItem: "styles_module_quickAskItem",
2266
- quickAskItemHeader: "styles_module_quickAskItemHeader",
2266
+ quickAskItemIcon: "styles_module_quickAskItemIcon",
2267
2267
  quickAskItemTitle: "styles_module_quickAskItemTitle",
2268
- quickAskItemHeaderActions: "styles_module_quickAskItemHeaderActions",
2269
- quickAskItemBody: "styles_module_quickAskItemBody"
2268
+ quickAskItemActions: "styles_module_quickAskItemActions"
2270
2269
  };
2271
2270
  var ALL = "all";
2272
2271
  var QuickAskPanelDrawer_default = ({ open, onClose }) => {
@@ -2358,14 +2357,25 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
2358
2357
  } catch (err) {
2359
2358
  }
2360
2359
  };
2360
+ const onSelectItem = async (item) => {
2361
+ const canProceed = await configState.hooks?.onBeforeSelectCapacity?.(item);
2362
+ onClose();
2363
+ if (canProceed === false) {
2364
+ return;
2365
+ }
2366
+ chatStore.setContent(item.content);
2367
+ chatStore.setContentParams({
2368
+ use_template: 1
2369
+ });
2370
+ };
2361
2371
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2362
2372
  /* @__PURE__ */ jsx(
2363
2373
  Drawer,
2364
2374
  {
2365
2375
  className: classNames11("no-padding-drawer"),
2366
- width: 360,
2376
+ width: 540,
2367
2377
  open,
2368
- title: "\u5FEB\u901F\u63D0\u95EE",
2378
+ title: "\u80FD\u529B\u9009\u62E9",
2369
2379
  closable: { placement: "end" },
2370
2380
  onClose,
2371
2381
  placement: "right",
@@ -2384,7 +2394,7 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
2384
2394
  setEditingItem(null);
2385
2395
  setEditModalOpen(true);
2386
2396
  },
2387
- children: "\u65B0\u589E\u5FEB\u901F\u63D0\u95EE"
2397
+ children: "\u65B0\u589E\u80FD\u529B\u6A21\u677F"
2388
2398
  }
2389
2399
  ),
2390
2400
  searchExpanded ? /* @__PURE__ */ jsx(
@@ -2419,94 +2429,91 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
2419
2429
  }
2420
2430
  )
2421
2431
  ] }),
2422
- /* @__PURE__ */ jsx(Flex, { vertical: true, className: "flex-1", children: /* @__PURE__ */ jsx(Spin, { spinning: loading, wrapperClassName: "full-spin", tip: "\u52A0\u8F7D\u4E2D...", children: /* @__PURE__ */ jsx(Flex, { vertical: true, gap: 8, className: "height-full scroll-fade-in p-16 p-t-8", children: items.map((item) => /* @__PURE__ */ jsxs(
2423
- "div",
2424
- {
2425
- className: styles_module_default4.quickAskItem,
2426
- onClick: () => {
2427
- chatStore.setContent(item.content);
2428
- chatStore.setContentParams({
2429
- use_template: 1
2430
- });
2431
- onClose();
2432
- },
2433
- children: [
2434
- /* @__PURE__ */ jsxs(Flex, { gap: 8, justify: "space-between", align: "center", className: styles_module_default4.quickAskItemHeader, children: [
2435
- /* @__PURE__ */ jsx("div", { className: classNames11("flex-1 text-ellipsis", styles_module_default4.quickAskItemTitle), children: item.title }),
2436
- /* @__PURE__ */ jsxs(Space, { size: 4, className: styles_module_default4.quickAskItemHeaderActions, children: [
2437
- /* @__PURE__ */ jsx(
2438
- Button,
2439
- {
2440
- type: "primary",
2441
- size: "small",
2442
- icon: /* @__PURE__ */ jsx(PushpinOutlined, { rotate: item.isTop ? -45 : 0 }),
2443
- title: item.isTop ? "\u53D6\u6D88\u7F6E\u9876" : "\u7F6E\u9876",
2444
- onClick: (e) => {
2445
- e.stopPropagation();
2446
- handleTop(item);
2447
- }
2448
- },
2449
- "top"
2450
- ),
2451
- /* @__PURE__ */ jsx(
2452
- Button,
2453
- {
2454
- type: "primary",
2455
- size: "small",
2456
- icon: /* @__PURE__ */ jsx(CopyOutlined, {}),
2457
- title: "\u590D\u5236",
2458
- onClick: (e) => {
2459
- e.stopPropagation();
2460
- setEditingItem({
2461
- title: item.title,
2462
- labelName: item.labelName,
2463
- content: item.content
2464
- });
2465
- setEditModalOpen(true);
2466
- }
2467
- },
2468
- "copy"
2469
- ),
2470
- /* @__PURE__ */ jsx(
2471
- Button,
2472
- {
2473
- type: "primary",
2474
- size: "small",
2475
- icon: /* @__PURE__ */ jsx(EditOutlined, {}),
2476
- title: "\u7F16\u8F91",
2477
- onClick: (e) => {
2478
- e.stopPropagation();
2479
- setEditingItem(item);
2480
- setEditModalOpen(true);
2481
- }
2482
- },
2483
- "edit"
2484
- ),
2485
- item.canDelete && /* @__PURE__ */ jsx(
2486
- Popconfirm,
2487
- {
2488
- title: "\u63D0\u793A",
2489
- okText: "\u786E\u5B9A",
2490
- cancelText: "\u53D6\u6D88",
2491
- description: "\u786E\u8BA4\u5220\u9664\u95EE\u9898\u5417?",
2492
- onConfirm: (e) => {
2493
- e.stopPropagation();
2494
- handleDelete(item.id);
2495
- },
2496
- onCancel: (e) => {
2497
- e.stopPropagation();
2498
- },
2499
- children: /* @__PURE__ */ jsx(Button, { type: "primary", size: "small", icon: /* @__PURE__ */ jsx(DeleteOutlined, {}), title: "\u5220\u9664", onClick: (e) => e.stopPropagation() })
2500
- },
2501
- "delete"
2502
- )
2503
- ] })
2504
- ] }),
2505
- /* @__PURE__ */ jsx("div", { className: classNames11(styles_module_default4.quickAskItemBody), children: /* @__PURE__ */ jsx("div", { className: "text-ellipsis-3", children: item.content }) })
2506
- ]
2507
- },
2508
- item.id
2509
- )) }) }) })
2432
+ /* @__PURE__ */ jsx(Flex, { vertical: true, className: "flex-1", children: /* @__PURE__ */ jsx(Spin, { spinning: loading, wrapperClassName: "full-spin", tip: "\u52A0\u8F7D\u4E2D...", children: /* @__PURE__ */ jsx(Flex, { vertical: true, gap: 8, className: "height-full scroll-fade-in p-16 p-t-0", children: items.length ? items.map((item) => /* @__PURE__ */ jsxs(Flex, { gap: 4, align: "start", className: styles_module_default4.quickAskItem, onClick: () => onSelectItem(item), children: [
2433
+ /* @__PURE__ */ jsx(FileTextOutlined, { className: styles_module_default4.quickAskItemIcon }),
2434
+ /* @__PURE__ */ jsx("div", { className: classNames11("flex-1 text-ellipsis-2", styles_module_default4.quickAskItemTitle), children: item.title }),
2435
+ /* @__PURE__ */ jsxs(Space, { size: 0, className: styles_module_default4.quickAskItemActions, children: [
2436
+ /* @__PURE__ */ jsx(
2437
+ Button,
2438
+ {
2439
+ variant: "text",
2440
+ color: "primary",
2441
+ size: "small",
2442
+ icon: /* @__PURE__ */ jsx(PushpinOutlined, { rotate: item.isTop ? -45 : 0 }),
2443
+ title: item.isTop ? "\u53D6\u6D88\u7F6E\u9876" : "\u7F6E\u9876",
2444
+ onClick: (e) => {
2445
+ e.stopPropagation();
2446
+ handleTop(item);
2447
+ }
2448
+ },
2449
+ "top"
2450
+ ),
2451
+ /* @__PURE__ */ jsx(
2452
+ Button,
2453
+ {
2454
+ variant: "text",
2455
+ color: "primary",
2456
+ size: "small",
2457
+ icon: /* @__PURE__ */ jsx(CopyOutlined, {}),
2458
+ title: "\u590D\u5236",
2459
+ onClick: (e) => {
2460
+ e.stopPropagation();
2461
+ setEditingItem({
2462
+ title: item.title,
2463
+ labelName: item.labelName,
2464
+ content: item.content
2465
+ });
2466
+ setEditModalOpen(true);
2467
+ }
2468
+ },
2469
+ "copy"
2470
+ ),
2471
+ /* @__PURE__ */ jsx(
2472
+ Button,
2473
+ {
2474
+ variant: "text",
2475
+ color: "primary",
2476
+ size: "small",
2477
+ icon: /* @__PURE__ */ jsx(EditOutlined, {}),
2478
+ title: "\u7F16\u8F91",
2479
+ onClick: (e) => {
2480
+ e.stopPropagation();
2481
+ setEditingItem(item);
2482
+ setEditModalOpen(true);
2483
+ }
2484
+ },
2485
+ "edit"
2486
+ ),
2487
+ item.canDelete && /* @__PURE__ */ jsx(
2488
+ Popconfirm,
2489
+ {
2490
+ title: "\u63D0\u793A",
2491
+ okText: "\u786E\u5B9A",
2492
+ cancelText: "\u53D6\u6D88",
2493
+ description: "\u786E\u8BA4\u5220\u9664\u95EE\u9898\u5417?",
2494
+ onConfirm: (e) => {
2495
+ e.stopPropagation();
2496
+ handleDelete(item.id);
2497
+ },
2498
+ onCancel: (e) => {
2499
+ e.stopPropagation();
2500
+ },
2501
+ children: /* @__PURE__ */ jsx(
2502
+ Button,
2503
+ {
2504
+ variant: "text",
2505
+ color: "primary",
2506
+ size: "small",
2507
+ icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
2508
+ title: "\u5220\u9664",
2509
+ onClick: (e) => e.stopPropagation()
2510
+ }
2511
+ )
2512
+ },
2513
+ "delete"
2514
+ )
2515
+ ] })
2516
+ ] }, item.id)) : /* @__PURE__ */ jsx(Empty, { description: "\u6682\u65E0\u6570\u636E", className: "m-t-24" }) }) }) })
2510
2517
  ] })
2511
2518
  }
2512
2519
  ),
@@ -2559,7 +2566,7 @@ var FeaturesRenderer_default = () => {
2559
2566
  }
2560
2567
  ),
2561
2568
  receiverState.active.feature?.quickAsk && /* @__PURE__ */ jsxs(Fragment, { children: [
2562
- /* @__PURE__ */ jsx(Button, { size: "small", color: "primary", variant: "filled", onClick: () => setQuickAskOpen(true), children: "\u5FEB\u901F\u63D0\u95EE" }),
2569
+ /* @__PURE__ */ jsx(Button, { size: "small", color: "primary", variant: "filled", onClick: () => setQuickAskOpen(true), children: "\u80FD\u529B\u9009\u62E9" }),
2563
2570
  quickAskOpen && /* @__PURE__ */ jsx(QuickAskPanelDrawer_default, { open: quickAskOpen, onClose: () => setQuickAskOpen(false) })
2564
2571
  ] })
2565
2572
  ] });