@zero-library/chat-agent 2.3.6 → 2.3.7

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
@@ -304,11 +304,10 @@
304
304
 
305
305
  /* src/ui/common/QuickAsk/styles.module.less */
306
306
  .styles_module_quickAskPanel {
307
- width: 600px;
308
- height: 350px;
307
+ height: 100%;
309
308
  }
310
- .styles_module_quickAskPanel .styles_module_tagContainer {
311
- overflow-y: auto;
309
+ .styles_module_quickAskPanel .styles_module_tagContainer .ant-tabs-nav {
310
+ margin-bottom: 0;
312
311
  }
313
312
  .styles_module_quickAskPanel .styles_module_quickAskItem {
314
313
  border-radius: 16px;
@@ -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 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,EAAE;AACT,UAAQ;AACV;AACA,CAACC;AACC,SAAO;AACP,WAA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AI;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"]}
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,uBAK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AmBc,CAbCE,2BAaa,CARCC,iCAQmB,CAACE;AAChD,WAAS;AACX;AACA,CAtBCL,4BAsBc,CAhBCE,0BAgBY,OAAO,CAXLC,iCAWyB,CAHLE;AAIhD,WAAS;AACX;AACA,CAzBCL,4BAyBc,CAnBCE,2BAmBa,CAACI;AAC5B,oBAAkB;AAClB,SAAO;AACP,WAAS;AACX;;;AC7BA,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.esm.js CHANGED
@@ -1,5 +1,5 @@
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, Popover, Avatar, Space, Input, Popconfirm, message, Empty, Tooltip, Form, Modal, AutoComplete, Row, Col, Collapse, Skeleton, Alert, Drawer } from 'antd';
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';
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';
@@ -1300,9 +1300,7 @@ var MessageRender_default = ({ message: message2, placement, onFilePreview, cust
1300
1300
  onFilePreview?.(file);
1301
1301
  }
1302
1302
  };
1303
- const mergedCustomComponents = useMemo(() => {
1304
- return { ...customComponents, ...propsCustomComponents };
1305
- }, [propsCustomComponents]);
1303
+ const mergedCustomComponents = { ...customComponents, ...propsCustomComponents };
1306
1304
  return /* @__PURE__ */ jsx(Flex, { vertical: true, children: !(msgContent || message2.msgFiles.length) ? /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(Spin, { size: "small" }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1307
1305
  msgContent && /* @__PURE__ */ jsx(
1308
1306
  Bubble,
@@ -1769,6 +1767,7 @@ var ConversationFavoritesList_default = () => {
1769
1767
  e.stopPropagation();
1770
1768
  chatStore.collectConversation(item.id, false);
1771
1769
  },
1770
+ onCancel: (e) => e.stopPropagation(),
1772
1771
  children: /* @__PURE__ */ jsx(
1773
1772
  Button,
1774
1773
  {
@@ -2166,7 +2165,7 @@ init_Context();
2166
2165
  // src/ui/common/FeaturesRenderer.tsx
2167
2166
  init_Context();
2168
2167
 
2169
- // src/ui/common/QuickAsk/QuickAskPanel.tsx
2168
+ // src/ui/common/QuickAsk/QuickAskPanelDrawer.tsx
2170
2169
  init_Context();
2171
2170
 
2172
2171
  // src/ui/common/QuickAsk/QuickAskEditModal.tsx
@@ -2269,7 +2268,8 @@ var styles_module_default4 = {
2269
2268
  quickAskItemHeaderActions: "styles_module_quickAskItemHeaderActions",
2270
2269
  quickAskItemBody: "styles_module_quickAskItemBody"
2271
2270
  };
2272
- var QuickAskPanel_default = () => {
2271
+ var ALL = "all";
2272
+ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
2273
2273
  const { message: message2 } = App.useApp();
2274
2274
  const chatStore = useChatStore();
2275
2275
  const configState = useSnapshot(chatStore.config);
@@ -2290,6 +2290,19 @@ var QuickAskPanel_default = () => {
2290
2290
  } catch (err) {
2291
2291
  }
2292
2292
  };
2293
+ const tabsItems = useMemo(
2294
+ () => [
2295
+ {
2296
+ key: ALL,
2297
+ label: "\u5168\u90E8"
2298
+ },
2299
+ ...categories.map((item) => ({
2300
+ key: item.id,
2301
+ label: item.labelName
2302
+ }))
2303
+ ],
2304
+ [categories]
2305
+ );
2293
2306
  const [loading, setLoading] = useState(false);
2294
2307
  const fetchItems = useDebounce(async () => {
2295
2308
  try {
@@ -2345,153 +2358,158 @@ var QuickAskPanel_default = () => {
2345
2358
  } catch (err) {
2346
2359
  }
2347
2360
  };
2348
- return /* @__PURE__ */ jsxs(Flex, { vertical: true, className: styles_module_default4.quickAskPanel, children: [
2349
- /* @__PURE__ */ jsx(Flex, { justify: "space-between", align: "center", children: /* @__PURE__ */ jsx(Typography.Title, { level: 5, children: "\u5FEB\u901F\u63D0\u95EE" }) }),
2350
- /* @__PURE__ */ jsxs(Flex, { gap: 8, className: "m-b-16 m-t-16", children: [
2351
- !searchExpanded && /* @__PURE__ */ jsx(
2352
- Button,
2353
- {
2354
- type: "dashed",
2355
- block: true,
2356
- icon: /* @__PURE__ */ jsx(PlusOutlined, {}),
2357
- className: "flex-1",
2358
- onClick: () => {
2359
- setEditingItem(null);
2360
- setEditModalOpen(true);
2361
- },
2362
- children: "\u65B0\u589E\u5FEB\u901F\u63D0\u95EE"
2363
- }
2364
- ),
2365
- searchExpanded ? /* @__PURE__ */ jsx(
2366
- Input,
2367
- {
2368
- autoFocus: true,
2369
- placeholder: "\u8F93\u5165\u95EE\u9898\u540D\u79F0\u6216\u5185\u5BB9\u68C0\u7D22",
2370
- prefix: /* @__PURE__ */ jsx(SearchOutlined, {}),
2371
- value: searchText,
2372
- onChange: (e) => {
2373
- setSearchText(e.target.value);
2374
- fetchItems();
2375
- },
2376
- className: "flex-1",
2377
- allowClear: true,
2378
- onBlur: () => setSearchExpanded(false)
2379
- }
2380
- ) : /* @__PURE__ */ jsx(Button, { icon: /* @__PURE__ */ jsx(SearchOutlined, {}), onClick: () => setSearchExpanded(true) })
2381
- ] }),
2382
- /* @__PURE__ */ jsxs(Flex, { align: "center", className: classNames11("scroll-fade-in", "m-b-16", styles_module_default4.tagContainer), children: [
2383
- /* @__PURE__ */ jsx(
2384
- Tag,
2385
- {
2386
- color: !activeTab.id ? "processing" : "default",
2387
- className: "cursor-pointer",
2388
- bordered: false,
2389
- onClick: () => {
2390
- setActiveTab({});
2391
- fetchItems();
2392
- },
2393
- children: "\u5168\u90E8"
2394
- }
2395
- ),
2396
- categories.map((c) => /* @__PURE__ */ jsx(
2397
- Tag,
2398
- {
2399
- color: activeTab.id === c.id ? "processing" : "default",
2400
- className: "cursor-pointer",
2401
- bordered: false,
2402
- onClick: () => {
2403
- setActiveTab(c);
2404
- fetchItems();
2405
- },
2406
- children: c.labelName
2407
- },
2408
- c.id
2409
- ))
2410
- ] }),
2411
- /* @__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", children: items.map((item) => /* @__PURE__ */ jsxs(
2412
- "div",
2361
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
2362
+ /* @__PURE__ */ jsx(
2363
+ Drawer,
2413
2364
  {
2414
- className: styles_module_default4.quickAskItem,
2415
- onClick: () => {
2416
- chatStore.setContent(item.content);
2417
- chatStore.setContentParams({
2418
- use_template: 1
2419
- });
2420
- },
2421
- children: [
2422
- /* @__PURE__ */ jsxs(Flex, { gap: 8, justify: "space-between", align: "center", className: styles_module_default4.quickAskItemHeader, children: [
2423
- /* @__PURE__ */ jsx("div", { className: classNames11("flex-1 text-ellipsis", styles_module_default4.quickAskItemTitle), children: item.title }),
2424
- /* @__PURE__ */ jsxs(Space, { size: 4, className: styles_module_default4.quickAskItemHeaderActions, children: [
2425
- /* @__PURE__ */ jsx(
2426
- Button,
2427
- {
2428
- type: "primary",
2429
- size: "small",
2430
- icon: /* @__PURE__ */ jsx(PushpinOutlined, { rotate: item.isTop ? -45 : 0 }),
2431
- title: item.isTop ? "\u53D6\u6D88\u7F6E\u9876" : "\u7F6E\u9876",
2432
- onClick: (e) => {
2433
- e.stopPropagation();
2434
- handleTop(item);
2435
- }
2436
- },
2437
- "top"
2438
- ),
2439
- /* @__PURE__ */ jsx(
2440
- Button,
2441
- {
2442
- type: "primary",
2443
- size: "small",
2444
- icon: /* @__PURE__ */ jsx(CopyOutlined, {}),
2445
- title: "\u590D\u5236",
2446
- onClick: (e) => {
2447
- e.stopPropagation();
2448
- setEditingItem({
2449
- title: item.title,
2450
- labelName: item.labelName,
2451
- content: item.content
2452
- });
2453
- setEditModalOpen(true);
2454
- }
2455
- },
2456
- "copy"
2457
- ),
2458
- /* @__PURE__ */ jsx(
2365
+ className: classNames11("no-padding-drawer"),
2366
+ width: 360,
2367
+ open,
2368
+ title: "\u5FEB\u901F\u63D0\u95EE",
2369
+ closable: { placement: "end" },
2370
+ onClose,
2371
+ placement: "right",
2372
+ mask: false,
2373
+ children: /* @__PURE__ */ jsxs(Flex, { vertical: true, className: styles_module_default4.quickAskPanel, children: [
2374
+ /* @__PURE__ */ jsxs(Flex, { gap: 12, className: "p-16", vertical: true, children: [
2375
+ /* @__PURE__ */ jsxs(Flex, { gap: 8, children: [
2376
+ !searchExpanded && /* @__PURE__ */ jsx(
2459
2377
  Button,
2460
2378
  {
2461
- type: "primary",
2462
- size: "small",
2463
- icon: /* @__PURE__ */ jsx(EditOutlined, {}),
2464
- title: "\u7F16\u8F91",
2465
- onClick: (e) => {
2466
- e.stopPropagation();
2467
- setEditingItem(item);
2379
+ type: "dashed",
2380
+ block: true,
2381
+ icon: /* @__PURE__ */ jsx(PlusOutlined, {}),
2382
+ className: "flex-1",
2383
+ onClick: () => {
2384
+ setEditingItem(null);
2468
2385
  setEditModalOpen(true);
2469
- }
2470
- },
2471
- "edit"
2386
+ },
2387
+ children: "\u65B0\u589E\u5FEB\u901F\u63D0\u95EE"
2388
+ }
2472
2389
  ),
2473
- item.canDelete && /* @__PURE__ */ jsx(
2474
- Popconfirm,
2390
+ searchExpanded ? /* @__PURE__ */ jsx(
2391
+ Input,
2475
2392
  {
2476
- title: "\u63D0\u793A",
2477
- okText: "\u786E\u5B9A",
2478
- cancelText: "\u53D6\u6D88",
2479
- description: "\u786E\u8BA4\u5220\u9664\u95EE\u9898\u5417?",
2480
- onConfirm: (e) => {
2481
- e.stopPropagation();
2482
- handleDelete(item.id);
2393
+ autoFocus: true,
2394
+ placeholder: "\u8F93\u5165\u95EE\u9898\u540D\u79F0\u6216\u5185\u5BB9\u68C0\u7D22",
2395
+ prefix: /* @__PURE__ */ jsx(SearchOutlined, {}),
2396
+ value: searchText,
2397
+ onChange: (e) => {
2398
+ setSearchText(e.target.value);
2399
+ fetchItems();
2483
2400
  },
2484
- children: /* @__PURE__ */ jsx(Button, { type: "primary", size: "small", icon: /* @__PURE__ */ jsx(DeleteOutlined, {}), title: "\u5220\u9664", onClick: (e) => e.stopPropagation() })
2401
+ className: "flex-1",
2402
+ allowClear: true,
2403
+ onBlur: () => setSearchExpanded(false)
2404
+ }
2405
+ ) : /* @__PURE__ */ jsx(Button, { icon: /* @__PURE__ */ jsx(SearchOutlined, {}), onClick: () => setSearchExpanded(true) })
2406
+ ] }),
2407
+ /* @__PURE__ */ jsx(
2408
+ Tabs,
2409
+ {
2410
+ className: styles_module_default4.tagContainer,
2411
+ activeKey: activeTab.id ? activeTab.id : ALL,
2412
+ onChange: (key) => {
2413
+ setActiveTab(key === ALL ? {} : categories.find((c) => c.id === key));
2414
+ fetchItems();
2485
2415
  },
2486
- "delete"
2487
- )
2488
- ] })
2416
+ tabPosition: "top",
2417
+ items: tabsItems,
2418
+ size: "small"
2419
+ }
2420
+ )
2489
2421
  ] }),
2490
- /* @__PURE__ */ jsx("div", { className: classNames11(styles_module_default4.quickAskItemBody), children: /* @__PURE__ */ jsx("div", { className: "text-ellipsis-3", children: item.content }) })
2491
- ]
2492
- },
2493
- item.id
2494
- )) }) }) }),
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
+ )) }) }) })
2510
+ ] })
2511
+ }
2512
+ ),
2495
2513
  editModalOpen && /* @__PURE__ */ jsx(
2496
2514
  QuickAskEditModal_default,
2497
2515
  {
@@ -2509,6 +2527,7 @@ var FeaturesRenderer_default = () => {
2509
2527
  const chatStore = useChatStore();
2510
2528
  const receiverState = useSnapshot(chatStore.receiver);
2511
2529
  const conversationState = useSnapshot(chatStore.conversation);
2530
+ const [quickAskOpen, setQuickAskOpen] = useState(false);
2512
2531
  const chatMessage = useMemo(
2513
2532
  () => conversationState.messages[conversationState.active.id] || {},
2514
2533
  [conversationState.messages[conversationState.active.id]]
@@ -2539,23 +2558,10 @@ var FeaturesRenderer_default = () => {
2539
2558
  children: "\u5411\u4E13\u5BB6\u54A8\u8BE2"
2540
2559
  }
2541
2560
  ),
2542
- receiverState.active.feature?.quickAsk && /* @__PURE__ */ jsx(
2543
- Popover,
2544
- {
2545
- trigger: "click",
2546
- placement: "topLeft",
2547
- content: /* @__PURE__ */ jsx(QuickAskPanel_default, {}),
2548
- children: /* @__PURE__ */ jsx(
2549
- Button,
2550
- {
2551
- size: "small",
2552
- color: "primary",
2553
- variant: "filled",
2554
- children: "\u5FEB\u901F\u63D0\u95EE"
2555
- }
2556
- )
2557
- }
2558
- )
2561
+ 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" }),
2563
+ quickAskOpen && /* @__PURE__ */ jsx(QuickAskPanelDrawer_default, { open: quickAskOpen, onClose: () => setQuickAskOpen(false) })
2564
+ ] })
2559
2565
  ] });
2560
2566
  };
2561
2567
  var ChatSender_default2 = forwardRef(