@zero-library/chat-agent 2.0.1 → 2.0.3
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 +20 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +9 -8
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +20 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -3
package/dist/index.css
CHANGED
|
@@ -29,18 +29,14 @@
|
|
|
29
29
|
.styles_module_nsConversations .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {
|
|
30
30
|
color: var(--ant-color-primary);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
33
|
-
background-color: #f6f7fb;
|
|
34
|
-
}
|
|
35
|
-
.styles_module_nsBody .styles_module_nsBodyWidth {
|
|
36
|
-
padding: 12px 0;
|
|
32
|
+
.styles_module_nsBodyWidth {
|
|
37
33
|
margin: 0 auto;
|
|
38
34
|
max-width: 896px;
|
|
39
35
|
min-width: 320px;
|
|
40
36
|
width: calc(100% - 24px) !important;
|
|
41
37
|
}
|
|
42
38
|
.styles_module_nsBubbleList.ant-bubble-list .ant-bubble .ant-bubble-content-filled {
|
|
43
|
-
background-color:
|
|
39
|
+
background-color: transparent;
|
|
44
40
|
}
|
|
45
41
|
.styles_module_nsBubbleList.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-filled {
|
|
46
42
|
background-color: var(--ant-color-primary-bg);
|
|
@@ -68,7 +64,7 @@
|
|
|
68
64
|
}
|
|
69
65
|
.styles_module_nsAgentHeader {
|
|
70
66
|
padding: 8px 16px;
|
|
71
|
-
|
|
67
|
+
border: 1px solid #eee;
|
|
72
68
|
}
|
|
73
69
|
.styles_module_nsAgentHeader .styles_module_nsChatTitle {
|
|
74
70
|
font-size: 16px;
|
|
@@ -221,9 +217,14 @@
|
|
|
221
217
|
font-size: 16px;
|
|
222
218
|
font-weight: bold;
|
|
223
219
|
}
|
|
224
|
-
.
|
|
220
|
+
.styles_module_nsChatSenderHeader {
|
|
225
221
|
padding: 24px;
|
|
226
222
|
font-size: 24px;
|
|
227
223
|
text-align: center;
|
|
228
224
|
}
|
|
225
|
+
.styles_module_nsDisclaimerNotice {
|
|
226
|
+
font-size: 12px;
|
|
227
|
+
text-align: center;
|
|
228
|
+
color: #bfbfbf;
|
|
229
|
+
}
|
|
229
230
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ui/common/styles.module.less","../src/ui/common/markdownAlert/styles.module.less","../src/components/styles.less","../src/ui/layouts/styles.module.less"],"sourcesContent":[".loadingMessage {\n background-image: linear-gradient(90deg, #ff6b23 0%, #af3cb8 31%, #53b6ff 89%);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: bottom;\n padding-bottom: 2px;\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.nsBody {\n background-color: #f6f7fb;\n}\n.nsBody .nsBodyWidth {\n padding: 12px 0;\n margin: 0 auto;\n max-width: 896px;\n min-width: 320px;\n width: calc(100% - 24px) !important;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content-filled {\n background-color: #fff;\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.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content .ant-typography {\n font-size: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse {\n margin-bottom: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-header {\n color: #8f91a8;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content {\n color: #8f91a8;\n margin-top: -10px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content .ant-collapse-content-box {\n padding: 0 10px 0 24px;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n.nsAgentHeader {\n padding: 8px 16px;\n background-color: #fff;\n}\n.nsAgentHeader .nsChatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsAgentHeader .nsChatHeaderPopover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n}\n.nsAgentHeader .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.senderListTitle {\n width: 300px;\n}\n.senderList :global .ant-list-items {\n max-height: 350px;\n overflow-y: auto;\n margin-right: -12px;\n padding-right: 12px;\n}\n.senderList.historyList :global .ant-list-items {\n max-height: initial;\n}\n.senderList .senderListItem {\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.senderList .senderListFooter {\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",".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",".nsAttachments .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-text {\n display: none;\n}\n.nsAttachments .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-circle {\n animation: spin 2s linear infinite;\n}\n.nsAttachments .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content {\n gap: 4px;\n}\n.nsAttachments .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.nsAttachments .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",".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.nsChatTitle {\n padding: 24px;\n font-size: 24px;\n text-align: center;\n}\n"],"mappings":";AAAA,CAACA;AACC;AAAA,IAAkB;AAAA,MAAgB,KAAhB;AAAA,MAAuB,QAAQ,EAA/B;AAAA,MAAmC,QAAQ,GAA3C;AAAA,MAAgD,QAAQ;AAC1E,mBAAiB,KAAK;AACtB,qBAAmB;AACnB,uBAAqB;AACrB,kBAAgB;AAClB;AACA,CAACC;AACC,WAAS,EAAE;AACb;AACA,CAHCA,8BAGwB,CAAC;AACxB,WAAS;AACX;AACA,CANCA,8BAMwB,CAHC,8BAG8B,CAAC;AACvD,SAAO;AACT;AACA,CATCA,8BASwB,CAAC,uBAAuB,CAAC;AAChD,gBAAc;AAChB;AACA,CAZCA,8BAYwB,CAHC,uBAGuB,CAHC,uBAGuB,CAAC;AACxE,SAAO,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACvB;AACA,CAfCA,8BAewB,CANC,uBAMuB,CANC,sBAMsB,CAAC,8BAA8B,CAH7B;AAIxE,SAAO,IAAI;AACb;AACA,CAACC;AACC,oBAAkB;AACpB;AACA,CAHCA,qBAGO,CAACC;AACP,WAAS,KAAK;AACd,UAAQ,EAAE;AACV,aAAW;AACX,aAAW;AACX,SAAO,KAAK,KAAK,EAAE;AACrB;AACA,CAACC,0BAAmB,CAAC,gBAAgB,CAAC,WAAW,CAAC;AAChD,oBAAkB;AACpB;AACA,CAHCA,0BAGmB,CAHC,gBAGgB,CAHC,UAGU,CAAC,eAAe,CAHd;AAIhD,oBAAkB,IAAI;AACxB;AACA,CANCA,0BAMmB,CANC,gBAMgB,CANC,WAMW,CAAC,mBAAmB,CA5BZ;AA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ACP;AACA,CATC,cASc,CATC,oBASoB,CATC,0CAS0C,CAHC,iCAGiC,CAAC;AAChH,SAAO;AACP,UAAQ;AACR,UAAQ,IAAI,MAAM;AAClB,gBAAc;AACd,iBAAe;AACf,aAAW,KAAK,GAAG,OAAO;AAC1B,cAAY;AACZ,YAAU;AACV,aAAW,MAAM,EAAE,EAAE,IAAI;AAC3B;AACA,CApBC,cAoBc,CApBC,oBAoBoB,CApBC,0CAoB0C,CAdC,iCAciC,CAXC,8BAW8B,CAAC;AAC/I,WAAS;AACX;;;ACtBA,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,WAAS;AACT,aAAW;AACX,cAAY;AACd;","names":["loadingMessage","nsConversations","nsBody","nsBodyWidth","nsBubbleList","spin","nsAgentHeader","nsChatTitle","nsChatHeaderPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","senderListTitle","senderList","historyList","senderListItem","senderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","appCard","fileView","fileEdit","fileEditHeader","fileEditContent","quoteList","mdEdit","nsPreviewHeader","nsPreviewHeaderTitle","nsChatTitle"]}
|
|
1
|
+
{"version":3,"sources":["../src/ui/common/styles.module.less","../src/ui/common/markdownAlert/styles.module.less","../src/components/styles.less","../src/ui/layouts/styles.module.less"],"sourcesContent":[".loadingMessage {\n background-image: linear-gradient(90deg, #ff6b23 0%, #af3cb8 31%, #53b6ff 89%);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: bottom;\n padding-bottom: 2px;\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.nsBodyWidth {\n margin: 0 auto;\n max-width: 896px;\n min-width: 320px;\n width: calc(100% - 24px) !important;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .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.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content .ant-typography {\n font-size: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse {\n margin-bottom: 16px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-header {\n color: #8f91a8;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content {\n color: #8f91a8;\n margin-top: -10px;\n}\n.nsBubbleList:global.ant-bubble-list .ant-bubble .ant-bubble-content > .ant-collapse .ant-collapse-content .ant-collapse-content-box {\n padding: 0 10px 0 24px;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n.nsAgentHeader {\n padding: 8px 16px;\n border: 1px solid #eee;\n}\n.nsAgentHeader .nsChatTitle {\n font-size: 16px;\n font-weight: bold;\n}\n.nsAgentHeader .nsChatHeaderPopover {\n max-height: 500px;\n width: 300px;\n display: flex;\n flex-direction: column;\n}\n.nsAgentHeader .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.senderListTitle {\n width: 300px;\n}\n.senderList :global .ant-list-items {\n max-height: 350px;\n overflow-y: auto;\n margin-right: -12px;\n padding-right: 12px;\n}\n.senderList.historyList :global .ant-list-items {\n max-height: initial;\n}\n.senderList .senderListItem {\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.senderList .senderListFooter {\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",".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",".nsAttachments .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-text {\n display: none;\n}\n.nsAttachments .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-progress .ant-progress-circle {\n animation: spin 2s linear infinite;\n}\n.nsAttachments .ant-attachment-list .ant-attachment-list-card-status-uploading .ant-attachment-list-card-content {\n gap: 4px;\n}\n.nsAttachments .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.nsAttachments .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",".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 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"],"mappings":";AAAA,CAACA;AACC;AAAA,IAAkB;AAAA,MAAgB,KAAhB;AAAA,MAAuB,QAAQ,EAA/B;AAAA,MAAmC,QAAQ,GAA3C;AAAA,MAAgD,QAAQ;AAC1E,mBAAiB,KAAK;AACtB,qBAAmB;AACnB,uBAAqB;AACrB,kBAAgB;AAClB;AACA,CAACC;AACC,WAAS,EAAE;AACb;AACA,CAHCA,8BAGwB,CAAC;AACxB,WAAS;AACX;AACA,CANCA,8BAMwB,CAHC,8BAG8B,CAAC;AACvD,SAAO;AACT;AACA,CATCA,8BASwB,CAAC,uBAAuB,CAAC;AAChD,gBAAc;AAChB;AACA,CAZCA,8BAYwB,CAHC,uBAGuB,CAHC,uBAGuB,CAAC;AACxE,SAAO,KAAK,CAAC,EAAE,CAAC,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a,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;;;ACrDA,CAAC,cAAc,CAAC,oBAAoB,CAAC,0CAA0C,CAAC,aAAa,CAAC;AAC5F,WAAS;AACX;AACA,CAHC,cAGc,CAHC,oBAGoB,CAHC,0CAG0C,CAHC,aAGa,CAAC;AAC5F,aAAW,KAAK,GAAG,OAAO;AAC5B;AACA,CANC,cAMc,CANC,oBAMoB,CANC,0CAM0C,CAAC;AAC9E,OAAK;AACP;AACA,CATC,cASc,CATC,oBASoB,CATC,0CAS0C,CAHC,iCAGiC,CAAC;AAChH,SAAO;AACP,UAAQ;AACR,UAAQ,IAAI,MAAM;AAClB,gBAAc;AACd,iBAAe;AACf,aAAW,KAAK,GAAG,OAAO;AAC1B,cAAY;AACZ,YAAU;AACV,aAAW,MAAM,EAAE,EAAE,IAAI;AAC3B;AACA,CApBC,cAoBc,CApBC,oBAoBoB,CApBC,0CAoB0C,CAdC,iCAciC,CAXC,8BAW8B,CAAC;AAC/I,WAAS;AACX;;;ACtBA,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,WAAS;AACT,aAAW;AACX,cAAY;AACd;AACA,CAACC;AACC,aAAW;AACX,cAAY;AACZ,SAAO;AACT;","names":["loadingMessage","nsConversations","nsBodyWidth","nsBubbleList","spin","nsAgentHeader","nsChatTitle","nsChatHeaderPopover","chatWelcomeWrap","chatWelcome","chatWelcomePrompts","senderListTitle","senderList","historyList","senderListItem","senderListFooter","nsChatUserName","nsSenderReferenceHeaderTitle","nsSenderReferenceHeaderContent","appCard","fileView","fileEdit","fileEditHeader","fileEditContent","quoteList","mdEdit","nsPreviewHeader","nsPreviewHeaderTitle","nsChatSenderHeader","nsDisclaimerNotice"]}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -202,6 +202,7 @@ var init_IndexQuote = __esm({
|
|
|
202
202
|
if (!el) return;
|
|
203
203
|
const previous = el.previousElementSibling;
|
|
204
204
|
if (!previous) return;
|
|
205
|
+
console.log("previous", previous, el);
|
|
205
206
|
previous.appendChild(el);
|
|
206
207
|
}, []);
|
|
207
208
|
return /* @__PURE__ */ jsxs("div", { ref: rootRef, className: "inline-block m-l-8", children: [
|
|
@@ -493,7 +494,8 @@ var defaultLayout = {
|
|
|
493
494
|
headerTitle: true,
|
|
494
495
|
headerConversationListBtn: true,
|
|
495
496
|
headerNewConversationBtn: true,
|
|
496
|
-
headerCloseBtn: false
|
|
497
|
+
headerCloseBtn: false,
|
|
498
|
+
disclaimerNotice: true
|
|
497
499
|
};
|
|
498
500
|
function createChatStore() {
|
|
499
501
|
const config = proxy({
|
|
@@ -626,7 +628,7 @@ function createChatStore() {
|
|
|
626
628
|
});
|
|
627
629
|
const setAgentParams = (params = {}) => {
|
|
628
630
|
agent.params = {
|
|
629
|
-
thinkMode: 2,
|
|
631
|
+
thinkMode: "2",
|
|
630
632
|
...params
|
|
631
633
|
};
|
|
632
634
|
};
|
|
@@ -887,7 +889,6 @@ init_Context();
|
|
|
887
889
|
var styles_module_default = {
|
|
888
890
|
loadingMessage: "styles_module_loadingMessage",
|
|
889
891
|
nsConversations: "styles_module_nsConversations",
|
|
890
|
-
nsBody: "styles_module_nsBody",
|
|
891
892
|
nsBodyWidth: "styles_module_nsBodyWidth",
|
|
892
893
|
nsBubbleList: "styles_module_nsBubbleList",
|
|
893
894
|
nsAgentHeader: "styles_module_nsAgentHeader",
|
|
@@ -957,7 +958,6 @@ var AgentHeader_default = () => {
|
|
|
957
958
|
const chatStore = useChatStore();
|
|
958
959
|
const agentState = useSnapshot(chatStore.agent);
|
|
959
960
|
const configState = useSnapshot(chatStore.config);
|
|
960
|
-
useSnapshot(chatStore.conversations);
|
|
961
961
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "center", className: styles_module_default.nsAgentHeader, children: [
|
|
962
962
|
/* @__PURE__ */ jsxs(Flex, { gap: 4, align: "center", children: [
|
|
963
963
|
/* @__PURE__ */ jsx(
|
|
@@ -1162,7 +1162,7 @@ var BubbleListItems_default = ({ avatar = true }) => {
|
|
|
1162
1162
|
label: "\u{1F914} \u63A8\u8350\u95EE\u9898:",
|
|
1163
1163
|
children: agentState.active.recommendQuestions.map(({ question, id }) => ({
|
|
1164
1164
|
key: id,
|
|
1165
|
-
description: /* @__PURE__ */ jsx("span", { onClick: () => chatStore.
|
|
1165
|
+
description: /* @__PURE__ */ jsx("span", { onClick: () => chatStore.sendMessage(question), className: classNames2(styles_module_default.chatWelcomePrompts, "text-ellipsis"), children: question })
|
|
1166
1166
|
}))
|
|
1167
1167
|
}
|
|
1168
1168
|
]
|
|
@@ -1190,7 +1190,7 @@ var BubbleListItems_default = ({ avatar = true }) => {
|
|
|
1190
1190
|
vertical: true,
|
|
1191
1191
|
items: chatMessage?.questionList.map(({ question, id }) => ({
|
|
1192
1192
|
key: id,
|
|
1193
|
-
description: /* @__PURE__ */ jsx("span", { onClick: () => chatStore.
|
|
1193
|
+
description: /* @__PURE__ */ jsx("span", { onClick: () => chatStore.sendMessage(question), children: question })
|
|
1194
1194
|
}))
|
|
1195
1195
|
}
|
|
1196
1196
|
),
|
|
@@ -1554,9 +1554,9 @@ var ChatSender_default2 = () => {
|
|
|
1554
1554
|
Button,
|
|
1555
1555
|
{
|
|
1556
1556
|
size: "small",
|
|
1557
|
-
color: agentState.params.thinkMode === 1 ? "primary" : "default",
|
|
1557
|
+
color: agentState.params.thinkMode === "1" ? "primary" : "default",
|
|
1558
1558
|
variant: "filled",
|
|
1559
|
-
onClick: () => chatStore.setAgentParams({ thinkMode: agentState.params.thinkMode === 1 ? 2 : 1 }),
|
|
1559
|
+
onClick: () => chatStore.setAgentParams({ thinkMode: agentState.params.thinkMode === "1" ? "2" : "1" }),
|
|
1560
1560
|
children: "\u6DF1\u5EA6\u601D\u8003"
|
|
1561
1561
|
}
|
|
1562
1562
|
),
|
|
@@ -1659,7 +1659,8 @@ var SenderPromptsItems_default = () => {
|
|
|
1659
1659
|
var styles_module_default3 = {
|
|
1660
1660
|
nsPreviewHeader: "styles_module_nsPreviewHeader",
|
|
1661
1661
|
nsPreviewHeaderTitle: "styles_module_nsPreviewHeaderTitle",
|
|
1662
|
-
|
|
1662
|
+
nsChatSenderHeader: "styles_module_nsChatSenderHeader",
|
|
1663
|
+
nsDisclaimerNotice: "styles_module_nsDisclaimerNotice"
|
|
1663
1664
|
};
|
|
1664
1665
|
var layouts_default = forwardRef(({ theme, params, hooks, layout, defaultAgent }, ref) => {
|
|
1665
1666
|
const chatStore = useMemo(() => createChatStore(), []);
|
|
@@ -1766,7 +1767,7 @@ var layouts_default = forwardRef(({ theme, params, hooks, layout, defaultAgent }
|
|
|
1766
1767
|
] }),
|
|
1767
1768
|
/* @__PURE__ */ jsx(Splitter.Panel, { collapsible: false, resizable: false, size: hasPreView ? 400 : void 0, children: /* @__PURE__ */ jsxs(Flex, { vertical: true, className: classNames2("height-full"), children: [
|
|
1768
1769
|
/* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.header, DefaultComponent: AgentHeader_default }),
|
|
1769
|
-
/* @__PURE__ */ jsx(Flex, { vertical: true, className: classNames2("full-scroll"
|
|
1770
|
+
/* @__PURE__ */ jsx(Flex, { vertical: true, className: classNames2("full-scroll"), children: /* @__PURE__ */ jsxs(Flex, { justify: "center", vertical: true, gap: 24, className: classNames2("height-full p-t-8 p-b-8", styles_module_default.nsBodyWidth), children: [
|
|
1770
1771
|
shouldRender(configState.layout.messageList) && /* @__PURE__ */ jsx("div", { className: "full-scroll", children: /* @__PURE__ */ jsx(
|
|
1771
1772
|
RenderWrapper,
|
|
1772
1773
|
{
|
|
@@ -1778,7 +1779,7 @@ var layouts_default = forwardRef(({ theme, params, hooks, layout, defaultAgent }
|
|
|
1778
1779
|
RenderWrapper,
|
|
1779
1780
|
{
|
|
1780
1781
|
control: configState.layout.senderHeader,
|
|
1781
|
-
DefaultComponent: /* @__PURE__ */ jsxs("div", { className: styles_module_default3.
|
|
1782
|
+
DefaultComponent: /* @__PURE__ */ jsxs("div", { className: styles_module_default3.nsChatSenderHeader, children: [
|
|
1782
1783
|
"\u6211\u662F ",
|
|
1783
1784
|
agentState.active.name
|
|
1784
1785
|
] })
|
|
@@ -1792,7 +1793,14 @@ var layouts_default = forwardRef(({ theme, params, hooks, layout, defaultAgent }
|
|
|
1792
1793
|
DefaultComponent: SenderPromptsItems_default
|
|
1793
1794
|
}
|
|
1794
1795
|
),
|
|
1795
|
-
/* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.sender, DefaultComponent: ChatSender_default2 })
|
|
1796
|
+
/* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.sender, DefaultComponent: ChatSender_default2 }),
|
|
1797
|
+
/* @__PURE__ */ jsx(
|
|
1798
|
+
RenderWrapper,
|
|
1799
|
+
{
|
|
1800
|
+
control: configState.layout.disclaimerNotice,
|
|
1801
|
+
DefaultComponent: /* @__PURE__ */ jsx("div", { className: styles_module_default3.nsDisclaimerNotice, children: "\u5185\u5BB9\u7531AI\u751F\u6210\uFF0C\u4EC5\u4F9B\u53C2\u8003\uFF0C\u8BF7\u4ED4\u7EC6\u7504\u522B" })
|
|
1802
|
+
}
|
|
1803
|
+
)
|
|
1796
1804
|
] }),
|
|
1797
1805
|
/* @__PURE__ */ jsx(RenderWrapper, { control: configState.layout.senderFooter, DefaultComponent: /* @__PURE__ */ jsx(Fragment, {}) })
|
|
1798
1806
|
] }) })
|