@zero-library/chat-agent 2.3.3 → 2.3.4
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 +21 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +16 -1
- package/dist/index.css.map +1 -1
- package/dist/index.esm.js +21 -13
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
/* src/ui/common/QuickAsk/styles.module.less */
|
|
279
279
|
.styles_module_quickAskPanel {
|
|
280
280
|
width: 600px;
|
|
281
|
-
height:
|
|
281
|
+
height: 350px;
|
|
282
282
|
}
|
|
283
283
|
.styles_module_quickAskPanel .styles_module_tagContainer {
|
|
284
284
|
overflow-y: auto;
|
|
@@ -293,6 +293,15 @@
|
|
|
293
293
|
color: #fff;
|
|
294
294
|
padding: 8px 12px;
|
|
295
295
|
}
|
|
296
|
+
.styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemHeader .styles_module_quickAskItemTitle {
|
|
297
|
+
padding: 2px 0;
|
|
298
|
+
}
|
|
299
|
+
.styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemHeader .styles_module_quickAskItemHeaderActions {
|
|
300
|
+
display: none;
|
|
301
|
+
}
|
|
302
|
+
.styles_module_quickAskPanel .styles_module_quickAskItem:hover .styles_module_quickAskItemHeader .styles_module_quickAskItemHeaderActions {
|
|
303
|
+
display: flex;
|
|
304
|
+
}
|
|
296
305
|
.styles_module_quickAskPanel .styles_module_quickAskItem .styles_module_quickAskItemBody {
|
|
297
306
|
background-color: #f2f2f2;
|
|
298
307
|
color: #555;
|
|
@@ -331,4 +340,10 @@
|
|
|
331
340
|
min-width: 320px;
|
|
332
341
|
width: calc(100% - 24px);
|
|
333
342
|
}
|
|
343
|
+
.styles_module_nsPrompts .ant-prompts-item {
|
|
344
|
+
max-width: 100%;
|
|
345
|
+
}
|
|
346
|
+
.styles_module_nsPrompts .ant-prompts-item .ant-prompts-desc {
|
|
347
|
+
width: 100%;
|
|
348
|
+
}
|
|
334
349
|
/*# sourceMappingURL=index.css.map */
|
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.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content-filled {\n background-color: transparent;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-filled {\n background-color: var(--ant-color-primary-bg);\n}\n.nsChatHeader {\n padding: 8px 16px;\n border-bottom: 1px solid #eee;\n}\n.nsChatHeader .nsChatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsChatHeader .nsChatHeaderPopover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n}\n.nsChatHeader .nsChatHeaderPopover :global .ant-popover-inner-content {\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n.chatWelcomeWrap :global .ant-prompts .ant-prompts-list {\n overflow: auto;\n}\n.chatWelcomeWrap .chatWelcome :global .ant-welcome-icon > img {\n border-radius: 10px;\n max-width: initial;\n}\n.chatWelcomeWrap .chatWelcomePrompts {\n width: 300px;\n}\n.nsSenderListTitle {\n width: 300px;\n}\n.nsSenderList :global .ant-list-items {\n max-height: 350px;\n overflow-y: auto;\n margin-right: -12px;\n padding-right: 12px;\n}\n.nsSenderList.historyList :global .ant-list-items {\n max-height: initial;\n}\n.nsSenderList .nsSenderListItem {\n background-color: #f6f6f6;\n color: #6b6b6b !important;\n border-radius: 5px;\n width: 300px;\n padding: 6px 12px !important;\n margin-top: 12px;\n font-size: 14px;\n cursor: pointer;\n}\n.nsSenderList .nsSenderListFooter {\n font-size: 12px;\n}\n.nsChatUserName {\n font-size: 16px;\n font-weight: bold;\n}\n.nsSenderReferenceHeaderTitle:global > .ant-sender-header-title {\n overflow: hidden;\n}\n.nsSenderReferenceHeaderContent {\n padding: 0 !important;\n}\n.nsAvatarListContainer {\n height: 300px;\n padding: 30px 48px 30px 24px;\n overflow-y: auto;\n margin-right: -24px;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem:hover {\n opacity: 90%;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemIcon.nsAvatarListItemIconActive {\n outline: 2px solid var(--ant-color-primary);\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemName {\n font-size: 12px;\n}\n",".quickAskPanel {\n width: 600px;\n height: 400px;\n}\n.quickAskPanel .tagContainer {\n overflow-y: auto;\n}\n.quickAskPanel .quickAskItem {\n border-radius: 16px;\n overflow: clip;\n cursor: pointer;\n}\n.quickAskPanel .quickAskItem .quickAskItemHeader {\n background-color: var(--ant-color-primary);\n color: #fff;\n padding: 8px 12px;\n}\n.quickAskPanel .quickAskItem .quickAskItemBody {\n background-color: #f2f2f2;\n color: #555;\n padding: 12px;\n}\n",".nsPreviewHeader {\n padding: 16px 24px;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);\n}\n.nsPreviewHeader .nsPreviewHeaderTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsChatSenderHeader {\n margin-bottom: 16px;\n padding: 24px;\n font-size: 24px;\n text-align: center;\n}\n.nsDisclaimerNotice {\n font-size: 12px;\n text-align: center;\n color: #bfbfbf;\n}\n.nsChatLayout {\n background-color: #fff;\n}\n.nsChatLayout .nsChatBody {\n padding: 8px 0;\n}\n.nsBodyWidth {\n margin: 0 auto;\n max-width: 896px;\n min-width: 320px;\n width: calc(100% - 24px);\n}\n"],"mappings":";AAAA,CAACA;AACC,SAAO;AACP,iBAAe;AACf,UAAQ,IAAI,MAAM;AAClB,oBAAkB;AAClB,aAAW;AACX,UAAQ;AACR,UAAQ;AACR,WAAS,KAAK;AAChB;AACA,CAVCA,sBAUQ,EAAE;AACT,aAAW;AACb;AACA,CAbCA,sBAaQ,EAAE;AACT,UAAQ;AACV;AACA,CAACC;AACC,SAAO;AACP,WAAS,IAAI;AACb,UAAQ;AACR,oBAAkB;AAClB,iBAAe;AACjB;AACA,CAACC;AACC,UAAQ,KAAK;AACb,iBAAe;AACf,UAAQ,IAAI,MAAM;AACpB;AACA,CALCA,uBAKS,CAACC;AACT,WAAS,IAAI;AACb,oBAAkB;AACpB;AACA,CATCD,uBASS,CAACE;AACT,WAAS;AACT,oBAAkB;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,CANCA,mBAMY,CArBK,aAqBS,CAjBwB;AAkBjD,SAAO;AACT;AACA,CATCA,mBASY,CAxBK,aAwBS,CApBwB,qBAoBF,CAAC;AAChD,WAAS,EAAE,KAAK,EAAE;AACpB;AACA,CAACC;AACC,WAAS;AACT,aAAW;AACX,aAAW;AACX,cAAY;AACZ,WA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ACf;AACA,CAjBCH,4BAiBc,CAVCE,2BAUa,CAACE;AAC5B,oBAAkB;AAClB,SAAO;AACP,WAAS;AACX;;;ACrBA,CAACC;AACC,WAAS,KAAK;AACd,cAAY,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACtC;AACA,CAJCA,8BAIgB,CAACC;AAChB,aAAW;AACX,eAAa;AACf;AACA,CAACC;AACC,iBAAe;AACf,WAAS;AACT,aAAW;AACX,cAAY;AACd;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,SAAO;AACT;AACA,CAACC;AACC,oBAAkB;AACpB;AACA,CAHCA,2BAGa,CAACC;AACb,WAAS,IAAI;AACf;AACA,CAACC;AACC,UAAQ,EAAE;AACV,aAAW;AACX,aAAW;AACX,SAAO,KAAK,KAAK,EAAE;AACrB;","names":["appCard","fileView","fileEdit","fileEditHeader","fileEditContent","quoteList","mdEdit","think","chart","chartSkeleton","chartSkeletonIcon","loading-line","loadingMessage","spin","chatAttachments","chatSender","chatQuoteMsg","quoteTooltip","quoteTooltipContainer","nsConversationListPanel","nsConversations","nsBubbleList","nsChatHeader","nsChatTitle","nsChatHeaderPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","nsSenderListTitle","nsSenderList","historyList","nsSenderListItem","nsSenderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","nsAvatarListContainer","nsAvatarList","nsAvatarListItem","nsAvatarListItemIcon","nsAvatarListItemIconActive","nsAvatarListItemName","quickAskPanel","tagContainer","quickAskItem","quickAskItemHeader","quickAskItemBody","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice","nsChatLayout","nsChatBody","nsBodyWidth"]}
|
|
1
|
+
{"version":3,"sources":["../src/ui/common/markdownAlert/styles.module.less","../src/components/styles.module.less","../src/ui/common/styles.module.less","../src/ui/common/QuickAsk/styles.module.less","../src/ui/layouts/styles.module.less"],"sourcesContent":[".appCard {\n width: 180px;\n border-radius: 10px;\n border: 1px solid #d7d7d7;\n background-color: #fafafa;\n font-size: 16px;\n cursor: pointer;\n margin: 8px;\n padding: 12px 8px;\n}\n.appCard > div {\n max-width: 100%;\n}\n.appCard > img {\n height: 30px;\n}\n.fileView {\n width: 200px;\n padding: 4px 8px;\n cursor: pointer;\n background-color: #f5f3f3;\n border-radius: 6px;\n}\n.fileEdit {\n margin: 12px 0;\n border-radius: 6px;\n border: 1px solid #f2f2f2;\n}\n.fileEdit .fileEditHeader {\n padding: 2px 8px;\n background-color: #f2f2f2;\n}\n.fileEdit .fileEditContent {\n padding: 8px;\n background-color: #fafafa;\n}\n.quoteList {\n min-width: 300px;\n}\n.quoteList:global.ant-collapse .ant-collapse-item .ant-collapse-header {\n padding: 12px 0;\n color: #8f91a8;\n}\n.quoteList:global.ant-collapse .ant-collapse-item .ant-collapse-content {\n color: #8f91a8;\n background-color: #f2f2f2;\n}\n.mdEdit {\n margin: 10px 0;\n background-color: rgba(242, 242, 242, 0.2);\n border: 1px solid #f2f2f2;\n padding: 10px;\n border-radius: 4px;\n}\n.think:global.ant-collapse {\n margin-bottom: 16px;\n}\n.think:global.ant-collapse .ant-collapse-header {\n color: #8f91a8;\n}\n.think:global.ant-collapse .ant-collapse-content {\n color: #8f91a8;\n}\n.think:global.ant-collapse .ant-collapse-content .ant-collapse-content-box {\n padding: 0 10px 0 24px;\n}\n.chart {\n padding: 10px;\n max-width: 100%;\n min-width: 350px;\n overflow-x: scroll;\n display: inline-block;\n border-radius: 12px;\n border: 1px solid #e5e9f0;\n background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);\n margin: 12px 0;\n}\n.chart .chartSkeleton {\n width: 100% !important;\n}\n.chart .chartSkeleton .chartSkeletonIcon {\n font-size: 40px;\n color: #bfbfbf;\n}\n","@keyframes loading-line {\n from {\n background-position: 200% 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.loadingMessage {\n position: relative;\n padding-bottom: 6px;\n}\n.loadingMessage::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n height: 2px;\n width: 100%;\n background: linear-gradient(90deg, #ff6b23, #af3cb8, #53b6ff);\n background-size: 200% 100%;\n animation: loading-line 1.2s linear infinite;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-text {\n display: none;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-circle {\n animation: spin 2s linear infinite;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content {\n gap: 4px;\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc {\n width: 15px;\n height: 15px;\n border: 2px solid transparent;\n border-color: #1890ff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n box-sizing: border-box;\n position: relative;\n clip-path: inset(0 0 30% 0);\n}\n.chatAttachments:global > .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content .ant-attachment-list-card-desc .ant-attachment-list-card-ellipsis-prefix {\n display: none;\n}\n.chatSender:global.ant-sender:focus-within {\n box-shadow: none;\n}\n.chatQuoteMsg {\n margin-top: 4px;\n}\n.chatQuoteMsg:global.ant-bubble > .ant-bubble-content {\n min-height: auto;\n background-color: var(--ant-color-fill-tertiary) !important;\n color: var(--ant-color-text-tertiary);\n}\n.chatQuoteMsg .quoteTooltip {\n max-width: 100%;\n border: 1px solid #000;\n}\n.chatQuoteMsg .quoteTooltip .quoteTooltipContainer {\n max-height: 200px;\n overflow-y: auto;\n background-color: #fff;\n color: #000;\n}\n",".nsConversationListPanel {\n width: 360px;\n}\n.nsConversations {\n padding: 0 24px;\n}\n.nsConversations :global .ant-conversations-group-title {\n padding: 0;\n}\n.nsConversations :global .ant-conversations-group-title .ant-typography {\n color: #878aab;\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item {\n padding-left: 16px;\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item .ant-conversations-label {\n color: rgba(0, 0, 0, 0.88);\n}\n.nsConversations :global .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {\n color: var(--ant-color-primary);\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content-filled {\n background-color: transparent;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-filled {\n background-color: var(--ant-color-primary-bg);\n}\n.nsChatHeader {\n padding: 8px 16px;\n border-bottom: 1px solid #eee;\n}\n.nsChatHeader .nsChatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsChatHeader .nsChatHeaderPopover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n}\n.nsChatHeader .nsChatHeaderPopover :global .ant-popover-inner-content {\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n.chatWelcomeWrap :global .ant-prompts .ant-prompts-list {\n overflow: auto;\n}\n.chatWelcomeWrap .chatWelcome :global .ant-welcome-icon > img {\n border-radius: 10px;\n max-width: initial;\n}\n.chatWelcomeWrap .chatWelcomePrompts {\n width: 300px;\n}\n.nsSenderListTitle {\n width: 300px;\n}\n.nsSenderList :global .ant-list-items {\n max-height: 350px;\n overflow-y: auto;\n margin-right: -12px;\n padding-right: 12px;\n}\n.nsSenderList.historyList :global .ant-list-items {\n max-height: initial;\n}\n.nsSenderList .nsSenderListItem {\n background-color: #f6f6f6;\n color: #6b6b6b !important;\n border-radius: 5px;\n width: 300px;\n padding: 6px 12px !important;\n margin-top: 12px;\n font-size: 14px;\n cursor: pointer;\n}\n.nsSenderList .nsSenderListFooter {\n font-size: 12px;\n}\n.nsChatUserName {\n font-size: 16px;\n font-weight: bold;\n}\n.nsSenderReferenceHeaderTitle:global > .ant-sender-header-title {\n overflow: hidden;\n}\n.nsSenderReferenceHeaderContent {\n padding: 0 !important;\n}\n.nsAvatarListContainer {\n height: 300px;\n padding: 30px 48px 30px 24px;\n overflow-y: auto;\n margin-right: -24px;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem:hover {\n opacity: 90%;\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemIcon.nsAvatarListItemIconActive {\n outline: 2px solid var(--ant-color-primary);\n}\n.nsAvatarListContainer .nsAvatarList .nsAvatarListItem .nsAvatarListItemName {\n font-size: 12px;\n}\n",".quickAskPanel {\n width: 600px;\n height: 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,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,CANCA,mBAMY,CArBK,aAqBS,CAjBwB;AAkBjD,SAAO;AACT;AACA,CATCA,mBASY,CAxBK,aAwBS,CApBwB,qBAoBF,CAAC;AAChD,WAAS,EAAE,KAAK,EAAE;AACpB;AACA,CAACC;AACC,WAAS;AACT,aAAW;AACX,aAAW;AACX,cAAY;AACZ,WAAS;AACT,iBAAe;AACf,UAAQ,IAA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,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","nsBubbleList","nsChatHeader","nsChatTitle","nsChatHeaderPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","nsSenderListTitle","nsSenderList","historyList","nsSenderListItem","nsSenderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","nsAvatarListContainer","nsAvatarList","nsAvatarListItem","nsAvatarListItemIcon","nsAvatarListItemIconActive","nsAvatarListItemName","quickAskPanel","tagContainer","quickAskItem","quickAskItemHeader","quickAskItemTitle","quickAskItemHeaderActions","quickAskItemBody","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice","nsChatLayout","nsChatBody","nsBodyWidth","nsPrompts"]}
|
package/dist/index.esm.js
CHANGED
|
@@ -2131,6 +2131,8 @@ var styles_module_default4 = {
|
|
|
2131
2131
|
tagContainer: "styles_module_tagContainer",
|
|
2132
2132
|
quickAskItem: "styles_module_quickAskItem",
|
|
2133
2133
|
quickAskItemHeader: "styles_module_quickAskItemHeader",
|
|
2134
|
+
quickAskItemTitle: "styles_module_quickAskItemTitle",
|
|
2135
|
+
quickAskItemHeaderActions: "styles_module_quickAskItemHeaderActions",
|
|
2134
2136
|
quickAskItemBody: "styles_module_quickAskItemBody"
|
|
2135
2137
|
};
|
|
2136
2138
|
var QuickAskPanel_default = () => {
|
|
@@ -2154,8 +2156,10 @@ var QuickAskPanel_default = () => {
|
|
|
2154
2156
|
} catch (err) {
|
|
2155
2157
|
}
|
|
2156
2158
|
};
|
|
2159
|
+
const [loading, setLoading] = useState(false);
|
|
2157
2160
|
const fetchItems = useDebounce(async () => {
|
|
2158
2161
|
try {
|
|
2162
|
+
setLoading(true);
|
|
2159
2163
|
const res = await configState.services.request?.labelItemsQuery?.(receiverState.active?.id, {
|
|
2160
2164
|
labelId: getActiveTab().id,
|
|
2161
2165
|
keyword: getSearchText()
|
|
@@ -2163,7 +2167,8 @@ var QuickAskPanel_default = () => {
|
|
|
2163
2167
|
if (res?.data) {
|
|
2164
2168
|
setItems(res.data);
|
|
2165
2169
|
}
|
|
2166
|
-
}
|
|
2170
|
+
} finally {
|
|
2171
|
+
setLoading(false);
|
|
2167
2172
|
}
|
|
2168
2173
|
});
|
|
2169
2174
|
useEffect(() => {
|
|
@@ -2172,10 +2177,10 @@ var QuickAskPanel_default = () => {
|
|
|
2172
2177
|
fetchItems();
|
|
2173
2178
|
}
|
|
2174
2179
|
}, [receiverState.active?.id]);
|
|
2175
|
-
const [
|
|
2180
|
+
const [updateLoading, setUpdateLoading] = useState(false);
|
|
2176
2181
|
const handleEditConfirm = async (values) => {
|
|
2177
2182
|
try {
|
|
2178
|
-
|
|
2183
|
+
setUpdateLoading(true);
|
|
2179
2184
|
await configState.services.request?.labelItemUpdate?.(receiverState.active?.id, values);
|
|
2180
2185
|
setEditModalOpen(false);
|
|
2181
2186
|
message2.success("\u4FDD\u5B58\u6210\u529F");
|
|
@@ -2184,7 +2189,7 @@ var QuickAskPanel_default = () => {
|
|
|
2184
2189
|
}
|
|
2185
2190
|
fetchCategories();
|
|
2186
2191
|
} finally {
|
|
2187
|
-
|
|
2192
|
+
setUpdateLoading(false);
|
|
2188
2193
|
}
|
|
2189
2194
|
};
|
|
2190
2195
|
const handleDelete = async (id) => {
|
|
@@ -2269,7 +2274,7 @@ var QuickAskPanel_default = () => {
|
|
|
2269
2274
|
c.id
|
|
2270
2275
|
))
|
|
2271
2276
|
] }),
|
|
2272
|
-
/* @__PURE__ */ jsx(Flex, { vertical: true, className: "flex-1", children: /* @__PURE__ */ jsx(Flex, { vertical: true, gap: 8, className: "height-full scroll-fade-in", children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
2277
|
+
/* @__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(
|
|
2273
2278
|
"div",
|
|
2274
2279
|
{
|
|
2275
2280
|
className: styles_module_default4.quickAskItem,
|
|
@@ -2280,9 +2285,9 @@ var QuickAskPanel_default = () => {
|
|
|
2280
2285
|
});
|
|
2281
2286
|
},
|
|
2282
2287
|
children: [
|
|
2283
|
-
/* @__PURE__ */ jsxs(Flex, { gap: 8, justify: "space-between", className: styles_module_default4.quickAskItemHeader, children: [
|
|
2284
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 text-ellipsis", children: item.title }),
|
|
2285
|
-
/* @__PURE__ */ jsxs(Space, { size: 4, children: [
|
|
2288
|
+
/* @__PURE__ */ jsxs(Flex, { gap: 8, justify: "space-between", align: "center", className: styles_module_default4.quickAskItemHeader, children: [
|
|
2289
|
+
/* @__PURE__ */ jsx("div", { className: classNames11("flex-1 text-ellipsis", styles_module_default4.quickAskItemTitle), children: item.title }),
|
|
2290
|
+
/* @__PURE__ */ jsxs(Space, { size: 4, className: styles_module_default4.quickAskItemHeaderActions, children: [
|
|
2286
2291
|
/* @__PURE__ */ jsx(
|
|
2287
2292
|
Button,
|
|
2288
2293
|
{
|
|
@@ -2306,11 +2311,12 @@ var QuickAskPanel_default = () => {
|
|
|
2306
2311
|
title: "\u590D\u5236",
|
|
2307
2312
|
onClick: (e) => {
|
|
2308
2313
|
e.stopPropagation();
|
|
2309
|
-
|
|
2314
|
+
setEditingItem({
|
|
2310
2315
|
title: item.title,
|
|
2311
2316
|
labelName: item.labelName,
|
|
2312
2317
|
content: item.content
|
|
2313
2318
|
});
|
|
2319
|
+
setEditModalOpen(true);
|
|
2314
2320
|
}
|
|
2315
2321
|
},
|
|
2316
2322
|
"copy"
|
|
@@ -2351,14 +2357,14 @@ var QuickAskPanel_default = () => {
|
|
|
2351
2357
|
]
|
|
2352
2358
|
},
|
|
2353
2359
|
item.id
|
|
2354
|
-
)) }) }),
|
|
2360
|
+
)) }) }) }),
|
|
2355
2361
|
editModalOpen && /* @__PURE__ */ jsx(
|
|
2356
2362
|
QuickAskEditModal_default,
|
|
2357
2363
|
{
|
|
2358
2364
|
open: editModalOpen,
|
|
2359
2365
|
onCancel: () => setEditModalOpen(false),
|
|
2360
2366
|
onConfirm: handleEditConfirm,
|
|
2361
|
-
loading,
|
|
2367
|
+
loading: updateLoading,
|
|
2362
2368
|
initialValues: editingItem,
|
|
2363
2369
|
categories
|
|
2364
2370
|
}
|
|
@@ -2575,7 +2581,8 @@ var styles_module_default5 = {
|
|
|
2575
2581
|
nsDisclaimerNotice: "styles_module_nsDisclaimerNotice",
|
|
2576
2582
|
nsChatLayout: "styles_module_nsChatLayout",
|
|
2577
2583
|
nsChatBody: "styles_module_nsChatBody",
|
|
2578
|
-
nsBodyWidth: "styles_module_nsBodyWidth"
|
|
2584
|
+
nsBodyWidth: "styles_module_nsBodyWidth",
|
|
2585
|
+
nsPrompts: "styles_module_nsPrompts"
|
|
2579
2586
|
};
|
|
2580
2587
|
var layouts_default = forwardRef(({ theme, params, userInfo, hooks, layout, config, services }, ref) => {
|
|
2581
2588
|
const chatStore = useMemo(() => createChatStore(), []);
|
|
@@ -2744,13 +2751,14 @@ var layouts_default = forwardRef(({ theme, params, userInfo, hooks, layout, conf
|
|
|
2744
2751
|
DefaultComponent: receiverState?.recommendQuestions?.length > 0 && /* @__PURE__ */ jsx(
|
|
2745
2752
|
Prompts,
|
|
2746
2753
|
{
|
|
2754
|
+
className: styles_module_default5.nsPrompts,
|
|
2747
2755
|
vertical: true,
|
|
2748
2756
|
title: "\u63A8\u8350\u95EE\u9898:",
|
|
2749
2757
|
onItemClick: ({ data }) => chatStore.sendMessage(data.key),
|
|
2750
2758
|
items: receiverState?.recommendQuestions.map((question) => ({
|
|
2751
2759
|
key: question,
|
|
2752
2760
|
icon: /* @__PURE__ */ jsx(FileSearchOutlined, {}),
|
|
2753
|
-
description: question
|
|
2761
|
+
description: /* @__PURE__ */ jsx("div", { className: "text-ellipsis", children: question })
|
|
2754
2762
|
}))
|
|
2755
2763
|
}
|
|
2756
2764
|
)
|