@zero-library/chat-agent 2.3.11 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +47 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +28 -4
- package/dist/index.d.ts +28 -4
- package/dist/index.esm.js +47 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.css
CHANGED
package/dist/index.css.map
CHANGED
|
@@ -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 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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T,cAAY,QAAQ,KAAK;AAC3B;AACA,CAvBCL,4BAuBc,CAjBCE,0BAiBY,OAAO,CAJLG;AAK5B,WAAS;AACX;;;ACzBA,CAACC;AACC,WAAS,KAAK;AACd,cAAY,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACtC;AACA,CAJCA,8BAIgB,CAACC;AAChB,aAAW;AACX,eAAa;AACf;AACA,CAACC;AACC,iBAAe;AACf,WAAS;AACT,aAAW;AACX,cAAY;AACd;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,SAAO;AACT;AACA,CAACC;AACC,oBAAkB;AACpB;AACA,CAHCA,2BAGa,CAACC;AACb,WAAS,IAAI;AACf;AACA,CAACC;AACC,UAAQ,EAAE;AACV,aAAW;AACX,aAAW;AACX,SAAO,KAAK,KAAK,EAAE;AACrB;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"]}
|
|
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 border-right: 2px solid #eee;\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,K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f,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","quickAskItemIcon","quickAskItemTitle","quickAskItemActions","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice","nsChatLayout","nsChatBody","nsBodyWidth","nsPrompts"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -403,6 +403,8 @@ interface LabelItemUpdate extends LabelItemPrompt {
|
|
|
403
403
|
* 快速提问列表查询参数接口
|
|
404
404
|
*/
|
|
405
405
|
interface LabelItemListQuery {
|
|
406
|
+
/** 智能体ID */
|
|
407
|
+
agentId: AgentInfo['id'];
|
|
406
408
|
/** 分类ID */
|
|
407
409
|
labelId?: string;
|
|
408
410
|
/** 搜索关键字 */
|
|
@@ -414,24 +416,43 @@ interface LabelItemListQuery {
|
|
|
414
416
|
interface LabelItem extends LabelItemUpdate {
|
|
415
417
|
/** 问题ID */
|
|
416
418
|
id: string;
|
|
417
|
-
|
|
419
|
+
/** 智能体ID */
|
|
420
|
+
agentId: AgentInfo['id'];
|
|
421
|
+
/** 排序序号 */
|
|
418
422
|
seq: number;
|
|
419
423
|
/** 是否置顶 */
|
|
420
424
|
isTop?: 1 | 0;
|
|
425
|
+
/** 创建时间戳 */
|
|
421
426
|
createTime: number;
|
|
427
|
+
/** 更新时间戳 */
|
|
422
428
|
updateTime: number;
|
|
429
|
+
/** 是否允许删除 */
|
|
423
430
|
canDelete?: boolean;
|
|
424
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* 快速提问分类查询参数接口
|
|
434
|
+
*/
|
|
425
435
|
interface LabelQuery extends PageReq {
|
|
436
|
+
/** 智能体ID */
|
|
437
|
+
agentId: AgentInfo['id'];
|
|
438
|
+
/** 业务扩展数据,非必填 JSON字符串格式 */
|
|
439
|
+
businessData?: string;
|
|
440
|
+
/** 分类名称 */
|
|
426
441
|
labelName?: string;
|
|
427
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* 快速提问分类接口
|
|
445
|
+
*/
|
|
428
446
|
interface LabelType {
|
|
429
447
|
/** 分类ID */
|
|
430
448
|
id: string;
|
|
431
449
|
/** 分类名称 */
|
|
432
450
|
labelName: string;
|
|
451
|
+
/** 创建时间戳 */
|
|
433
452
|
createTime: number;
|
|
453
|
+
/** 更新时间戳 */
|
|
434
454
|
updateTime: number;
|
|
455
|
+
/** 是否允许删除 */
|
|
435
456
|
canDelete?: boolean;
|
|
436
457
|
}
|
|
437
458
|
/**
|
|
@@ -467,8 +488,11 @@ interface FavoriteConversationsQuery extends PageReq {
|
|
|
467
488
|
* 收藏列表返回数据结构
|
|
468
489
|
*/
|
|
469
490
|
interface FavoriteConversationType {
|
|
491
|
+
/** 收藏ID */
|
|
470
492
|
id: string;
|
|
493
|
+
/** 收藏标题 */
|
|
471
494
|
title: string;
|
|
495
|
+
/** 收藏时间 */
|
|
472
496
|
favoriteTime: string;
|
|
473
497
|
}
|
|
474
498
|
/**
|
|
@@ -498,8 +522,8 @@ declare const createChatService: (request: ReturnType<typeof createRequest>) =>
|
|
|
498
522
|
fileUpload: (formData: FormData) => Promise<R<InputFile>>;
|
|
499
523
|
labelItemUpdate: (agentId: AgentInfo["id"], params: LabelItemUpdate) => Promise<R<LabelItem["id"]>>;
|
|
500
524
|
labelItemDelete: (id: LabelItem["id"]) => Promise<R<null>>;
|
|
501
|
-
labelsQuery: (
|
|
502
|
-
labelItemsQuery: (
|
|
525
|
+
labelsQuery: (params?: LabelQuery) => Promise<R<PageRes<LabelType>>>;
|
|
526
|
+
labelItemsQuery: (params: LabelItemListQuery) => Promise<R<LabelItem[]>>;
|
|
503
527
|
labelItemTop: (params: LabelItemTop) => Promise<R<null>>;
|
|
504
528
|
labelItemPromptAssistant: (prompt: string) => Promise<R<LabelItemPrompt>>;
|
|
505
529
|
recommendQuestionsQuery: (agentId: AgentInfo["id"], conversationId: ConversationType["id"]) => Promise<R<string[]>>;
|
|
@@ -1695,7 +1719,7 @@ interface ChatHandle {
|
|
|
1695
1719
|
*/
|
|
1696
1720
|
setServices: (services?: ChatServices) => void;
|
|
1697
1721
|
/**
|
|
1698
|
-
*
|
|
1722
|
+
* 输入框聚焦(如果前一步是设置message,最好加个延时)
|
|
1699
1723
|
* 使聊天输入框获得焦点
|
|
1700
1724
|
*
|
|
1701
1725
|
* @example
|
package/dist/index.d.ts
CHANGED
|
@@ -403,6 +403,8 @@ interface LabelItemUpdate extends LabelItemPrompt {
|
|
|
403
403
|
* 快速提问列表查询参数接口
|
|
404
404
|
*/
|
|
405
405
|
interface LabelItemListQuery {
|
|
406
|
+
/** 智能体ID */
|
|
407
|
+
agentId: AgentInfo['id'];
|
|
406
408
|
/** 分类ID */
|
|
407
409
|
labelId?: string;
|
|
408
410
|
/** 搜索关键字 */
|
|
@@ -414,24 +416,43 @@ interface LabelItemListQuery {
|
|
|
414
416
|
interface LabelItem extends LabelItemUpdate {
|
|
415
417
|
/** 问题ID */
|
|
416
418
|
id: string;
|
|
417
|
-
|
|
419
|
+
/** 智能体ID */
|
|
420
|
+
agentId: AgentInfo['id'];
|
|
421
|
+
/** 排序序号 */
|
|
418
422
|
seq: number;
|
|
419
423
|
/** 是否置顶 */
|
|
420
424
|
isTop?: 1 | 0;
|
|
425
|
+
/** 创建时间戳 */
|
|
421
426
|
createTime: number;
|
|
427
|
+
/** 更新时间戳 */
|
|
422
428
|
updateTime: number;
|
|
429
|
+
/** 是否允许删除 */
|
|
423
430
|
canDelete?: boolean;
|
|
424
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* 快速提问分类查询参数接口
|
|
434
|
+
*/
|
|
425
435
|
interface LabelQuery extends PageReq {
|
|
436
|
+
/** 智能体ID */
|
|
437
|
+
agentId: AgentInfo['id'];
|
|
438
|
+
/** 业务扩展数据,非必填 JSON字符串格式 */
|
|
439
|
+
businessData?: string;
|
|
440
|
+
/** 分类名称 */
|
|
426
441
|
labelName?: string;
|
|
427
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* 快速提问分类接口
|
|
445
|
+
*/
|
|
428
446
|
interface LabelType {
|
|
429
447
|
/** 分类ID */
|
|
430
448
|
id: string;
|
|
431
449
|
/** 分类名称 */
|
|
432
450
|
labelName: string;
|
|
451
|
+
/** 创建时间戳 */
|
|
433
452
|
createTime: number;
|
|
453
|
+
/** 更新时间戳 */
|
|
434
454
|
updateTime: number;
|
|
455
|
+
/** 是否允许删除 */
|
|
435
456
|
canDelete?: boolean;
|
|
436
457
|
}
|
|
437
458
|
/**
|
|
@@ -467,8 +488,11 @@ interface FavoriteConversationsQuery extends PageReq {
|
|
|
467
488
|
* 收藏列表返回数据结构
|
|
468
489
|
*/
|
|
469
490
|
interface FavoriteConversationType {
|
|
491
|
+
/** 收藏ID */
|
|
470
492
|
id: string;
|
|
493
|
+
/** 收藏标题 */
|
|
471
494
|
title: string;
|
|
495
|
+
/** 收藏时间 */
|
|
472
496
|
favoriteTime: string;
|
|
473
497
|
}
|
|
474
498
|
/**
|
|
@@ -498,8 +522,8 @@ declare const createChatService: (request: ReturnType<typeof createRequest>) =>
|
|
|
498
522
|
fileUpload: (formData: FormData) => Promise<R<InputFile>>;
|
|
499
523
|
labelItemUpdate: (agentId: AgentInfo["id"], params: LabelItemUpdate) => Promise<R<LabelItem["id"]>>;
|
|
500
524
|
labelItemDelete: (id: LabelItem["id"]) => Promise<R<null>>;
|
|
501
|
-
labelsQuery: (
|
|
502
|
-
labelItemsQuery: (
|
|
525
|
+
labelsQuery: (params?: LabelQuery) => Promise<R<PageRes<LabelType>>>;
|
|
526
|
+
labelItemsQuery: (params: LabelItemListQuery) => Promise<R<LabelItem[]>>;
|
|
503
527
|
labelItemTop: (params: LabelItemTop) => Promise<R<null>>;
|
|
504
528
|
labelItemPromptAssistant: (prompt: string) => Promise<R<LabelItemPrompt>>;
|
|
505
529
|
recommendQuestionsQuery: (agentId: AgentInfo["id"], conversationId: ConversationType["id"]) => Promise<R<string[]>>;
|
|
@@ -1695,7 +1719,7 @@ interface ChatHandle {
|
|
|
1695
1719
|
*/
|
|
1696
1720
|
setServices: (services?: ChatServices) => void;
|
|
1697
1721
|
/**
|
|
1698
|
-
*
|
|
1722
|
+
* 输入框聚焦(如果前一步是设置message,最好加个延时)
|
|
1699
1723
|
* 使聊天输入框获得焦点
|
|
1700
1724
|
*
|
|
1701
1725
|
* @example
|
package/dist/index.esm.js
CHANGED
|
@@ -179,7 +179,7 @@ var init_MdEdit = __esm({
|
|
|
179
179
|
setValue(data.content);
|
|
180
180
|
}, [data.content]);
|
|
181
181
|
return /* @__PURE__ */ jsxs("div", { className: styles_module_default.mdEdit, children: [
|
|
182
|
-
/* @__PURE__ */ jsx(MarkdownEditor, { disabled: loading, value, onChange: setValue,
|
|
182
|
+
/* @__PURE__ */ jsx(MarkdownEditor, { disabled: loading, value, onChange: setValue, fixedToolbar: false, floatToolbar: false }),
|
|
183
183
|
!loading && /* @__PURE__ */ jsx(Flex, { justify: "end", className: "m-t-16", children: /* @__PURE__ */ jsx(Button, { color: "primary", variant: "outlined", onClick: onOk, children: btnText }) })
|
|
184
184
|
] });
|
|
185
185
|
};
|
|
@@ -419,11 +419,11 @@ var createChatService = (request) => {
|
|
|
419
419
|
const labelItemDelete = (id) => {
|
|
420
420
|
return request.delete("/lolr/label/item", { id });
|
|
421
421
|
};
|
|
422
|
-
const labelsQuery = (
|
|
423
|
-
return request.get("/lolr/label",
|
|
422
|
+
const labelsQuery = (params) => {
|
|
423
|
+
return request.get("/lolr/label", params);
|
|
424
424
|
};
|
|
425
|
-
const labelItemsQuery = (
|
|
426
|
-
return request.get("/lolr/label/item",
|
|
425
|
+
const labelItemsQuery = (params) => {
|
|
426
|
+
return request.get("/lolr/label/item", params);
|
|
427
427
|
};
|
|
428
428
|
const labelItemTop = (params) => {
|
|
429
429
|
return request.put("/lolr/label/item/top", params);
|
|
@@ -2117,6 +2117,13 @@ var ChatSender_default = forwardRef(
|
|
|
2117
2117
|
onSend();
|
|
2118
2118
|
}
|
|
2119
2119
|
};
|
|
2120
|
+
const isFocusedRef = useRef(false);
|
|
2121
|
+
useEffect(() => {
|
|
2122
|
+
if (!content) return;
|
|
2123
|
+
if (!isFocusedRef.current) {
|
|
2124
|
+
senderRef.current?.focus({ cursor: "end" });
|
|
2125
|
+
}
|
|
2126
|
+
}, [content]);
|
|
2120
2127
|
useImperativeHandle(
|
|
2121
2128
|
ref,
|
|
2122
2129
|
() => ({
|
|
@@ -2135,7 +2142,13 @@ var ChatSender_default = forwardRef(
|
|
|
2135
2142
|
header: senderHeader,
|
|
2136
2143
|
onSubmit,
|
|
2137
2144
|
onChange: setInputValue,
|
|
2138
|
-
onFocus
|
|
2145
|
+
onFocus: () => {
|
|
2146
|
+
isFocusedRef.current = true;
|
|
2147
|
+
onFocus?.();
|
|
2148
|
+
},
|
|
2149
|
+
onBlur: () => {
|
|
2150
|
+
isFocusedRef.current = false;
|
|
2151
|
+
},
|
|
2139
2152
|
autoSize: { minRows: 2, maxRows: 6 },
|
|
2140
2153
|
onCancel,
|
|
2141
2154
|
footer: ({ components }) => {
|
|
@@ -2281,7 +2294,12 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
|
|
|
2281
2294
|
const [editingItem, setEditingItem] = useState();
|
|
2282
2295
|
const fetchCategories = async () => {
|
|
2283
2296
|
try {
|
|
2284
|
-
const res = await configState.services.request?.labelsQuery?.(
|
|
2297
|
+
const res = await configState.services.request?.labelsQuery?.({
|
|
2298
|
+
agentId: receiverState.active?.id,
|
|
2299
|
+
businessData: configState.params.businessData,
|
|
2300
|
+
pageNo: 1,
|
|
2301
|
+
pageSize: 1e3
|
|
2302
|
+
});
|
|
2285
2303
|
if (res?.data) {
|
|
2286
2304
|
setCategories(res.data?.items);
|
|
2287
2305
|
if (!activeTab && res.data?.items?.length) {
|
|
@@ -2303,7 +2321,8 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
|
|
|
2303
2321
|
if (!getActiveTab()) return;
|
|
2304
2322
|
try {
|
|
2305
2323
|
setLoading(true);
|
|
2306
|
-
const res = await configState.services.request?.labelItemsQuery?.(
|
|
2324
|
+
const res = await configState.services.request?.labelItemsQuery?.({
|
|
2325
|
+
agentId: receiverState.active?.id,
|
|
2307
2326
|
labelId: getActiveTab(),
|
|
2308
2327
|
keyword: getSearchText()
|
|
2309
2328
|
});
|
|
@@ -2360,9 +2379,10 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
|
|
|
2360
2379
|
if (canProceed === false) {
|
|
2361
2380
|
return;
|
|
2362
2381
|
}
|
|
2363
|
-
chatStore.setContent(item.
|
|
2382
|
+
chatStore.setContent(`#${item.title}# `);
|
|
2364
2383
|
chatStore.setContentParams({
|
|
2365
|
-
|
|
2384
|
+
capacityId: item.id,
|
|
2385
|
+
capacityTitle: item.title
|
|
2366
2386
|
});
|
|
2367
2387
|
};
|
|
2368
2388
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2380,11 +2400,10 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
|
|
|
2380
2400
|
children: /* @__PURE__ */ jsxs(Flex, { vertical: true, className: styles_module_default4.quickAskPanel, children: [
|
|
2381
2401
|
/* @__PURE__ */ jsxs(Flex, { gap: 12, className: "p-16", vertical: true, children: [
|
|
2382
2402
|
/* @__PURE__ */ jsxs(Flex, { gap: 8, children: [
|
|
2383
|
-
!searchExpanded
|
|
2403
|
+
!searchExpanded ? /* @__PURE__ */ jsx(
|
|
2384
2404
|
Button,
|
|
2385
2405
|
{
|
|
2386
2406
|
type: "dashed",
|
|
2387
|
-
block: true,
|
|
2388
2407
|
icon: /* @__PURE__ */ jsx(PlusOutlined, {}),
|
|
2389
2408
|
className: "flex-1",
|
|
2390
2409
|
onClick: () => {
|
|
@@ -2393,6 +2412,20 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
|
|
|
2393
2412
|
},
|
|
2394
2413
|
children: "\u65B0\u589E\u80FD\u529B\u6A21\u677F"
|
|
2395
2414
|
}
|
|
2415
|
+
) : /* @__PURE__ */ jsx(
|
|
2416
|
+
Button,
|
|
2417
|
+
{
|
|
2418
|
+
icon: /* @__PURE__ */ jsx(PlusOutlined, {}),
|
|
2419
|
+
onClick: () => {
|
|
2420
|
+
if (getSearchText()) {
|
|
2421
|
+
setSearchText("");
|
|
2422
|
+
fetchItems();
|
|
2423
|
+
}
|
|
2424
|
+
setSearchExpanded(false);
|
|
2425
|
+
setEditingItem(null);
|
|
2426
|
+
setEditModalOpen(true);
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2396
2429
|
),
|
|
2397
2430
|
searchExpanded ? /* @__PURE__ */ jsx(
|
|
2398
2431
|
Input,
|
|
@@ -2406,8 +2439,7 @@ var QuickAskPanelDrawer_default = ({ open, onClose }) => {
|
|
|
2406
2439
|
fetchItems();
|
|
2407
2440
|
},
|
|
2408
2441
|
className: "flex-1",
|
|
2409
|
-
allowClear: true
|
|
2410
|
-
onBlur: () => setSearchExpanded(false)
|
|
2442
|
+
allowClear: true
|
|
2411
2443
|
}
|
|
2412
2444
|
) : /* @__PURE__ */ jsx(Button, { icon: /* @__PURE__ */ jsx(SearchOutlined, {}), onClick: () => setSearchExpanded(true) })
|
|
2413
2445
|
] }),
|
|
@@ -2769,7 +2801,7 @@ var layouts_default = forwardRef(({ theme, params, userInfo, hooks, layout, conf
|
|
|
2769
2801
|
/* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.leftPanel }),
|
|
2770
2802
|
/* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.conversationList, DefaultComponent: ConversationListPanel_default }),
|
|
2771
2803
|
/* @__PURE__ */ jsxs(Splitter, { className: "flex-1", onResize: setSplitterSizes, children: [
|
|
2772
|
-
/* @__PURE__ */ jsx(Splitter.Panel, { collapsible: false, min: 600, size: sizes[0], children:
|
|
2804
|
+
hasPreView && /* @__PURE__ */ jsx(Splitter.Panel, { collapsible: false, min: 600, size: sizes[0], children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2773
2805
|
configState.preview.file.fileUrl && /* @__PURE__ */ jsxs(Flex, { vertical: true, className: "height-full", children: [
|
|
2774
2806
|
/* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "center", gap: 16, className: styles_module_default5.nsPreviewHeader, children: [
|
|
2775
2807
|
/* @__PURE__ */ jsx("div", { className: classNames11(styles_module_default5.nsPreviewHeaderTitle, "text-ellipsis"), title: configState.preview.file.fileName, children: configState.preview.file.fileName }),
|