@glodon-aiot/agent-cli-ui 3.3.2-beta.1 → 3.3.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/es/AgentClientUI.mjs +34 -32
  2. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +161 -147
  3. package/dist/es/Dialog/AgentChat/index.mjs +41 -39
  4. package/dist/es/index.mjs +101 -95
  5. package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +27 -25
  6. package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +29 -27
  7. package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +58 -48
  8. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  9. package/dist/es/src/style10.css +1 -1
  10. package/dist/es/src/style11.css +1 -1
  11. package/dist/es/src/style12.css +1 -1
  12. package/dist/es/src/style13.css +1 -1
  13. package/dist/es/src/style14.css +1 -1
  14. package/dist/es/src/style15.css +1 -1
  15. package/dist/es/src/style17.css +1 -1
  16. package/dist/es/src/style18.css +1 -1
  17. package/dist/es/src/style21.css +1 -1
  18. package/dist/es/src/style22.css +1 -1
  19. package/dist/es/src/style23.css +1 -1
  20. package/dist/es/src/style25.css +1 -1
  21. package/dist/es/src/style26.css +1 -1
  22. package/dist/es/src/style27.css +1 -1
  23. package/dist/es/src/style28.css +1 -1
  24. package/dist/es/src/style29.css +1 -1
  25. package/dist/es/src/style5.css +1 -1
  26. package/dist/es/src/style6.css +1 -1
  27. package/dist/es/src/style7.css +1 -1
  28. package/dist/es/src/style8.css +1 -1
  29. package/dist/es/src/style9.css +1 -1
  30. package/dist/lib/index.js +51 -51
  31. package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +2 -0
  32. package/dist/src/index.d.ts +1 -0
  33. package/dist/src/types.d.ts +3 -0
  34. package/package.json +3 -3
@@ -1 +1 @@
1
- .prompt-list-wrap{width:100%;height:250px}.prompt-list-wrap .prompt-list{height:204px;overflow:auto;width:100%}.prompt-list-wrap .prompt-list-footer{height:46px;display:flex;align-items:center;border-top:1px solid #f0f0f0;padding:0 16px;margin:0 -16px}.prompt-list-wrap .prompt-list-item{height:51px;padding:4px;display:flex;justify-content:space-between;overflow:hidden}.prompt-list-wrap .prompt-list-item-body{flex-grow:1;overflow:hidden}.prompt-list-wrap .prompt-list-item-title{font-size:14px}.prompt-list-wrap .prompt-list-item-title .hightlight{color:#9c24f2}.prompt-list-wrap .prompt-list-item-context{line-height:21px;font-size:12px;width:100%}.prompt-list-wrap .prompt-list-item-actions{display:none;align-items:center}.prompt-list-wrap .prompt-list-item-actions .ant-btn{color:#9c24f2}.prompt-list-wrap .prompt-list-item:hover{background-color:#f9f2ff;cursor:pointer}.prompt-list-wrap .prompt-list-item:hover .prompt-list-item-actions{display:flex}.prompt-list-wrap .prompt-list-empty{max-width:500px;margin:0 auto;overflow:hidden}.prompt-list-wrap .prompt-list-empty-tips{height:124px;overflow:hidden;width:100%;display:flex;flex-direction:row;justify-content:space-around;align-items:flex-end}.prompt-list-wrap .prompt-list-empty-tips-item{width:200px;font-size:12px;display:flex;flex-direction:column}.prompt-list-wrap .prompt-list-empty-tips-item img{max-width:100%;margin-bottom:16px}.prompt-list-wrap .add-prompt-btn{padding-left:0}
1
+ .clear-modal .title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;text-align:left;color:#161616}.clear-modal .content{font-size:14px;font-weight:400;line-height:22px;text-align:justified;color:#393939}
@@ -1 +1 @@
1
- .agent-chat{width:100%;height:100%;display:flex;flex-direction:column;max-width:824px;margin:0 auto;overflow:hidden}.agent-chat .chat-main{flex:1;padding:16px;overflow:hidden;width:100%;transition:all 1s;position:relative}.agent-chat .chat-main .chat-main-wrapper{width:100%;height:100%;overflow-y:auto;overflow-x:hidden}.agent-chat .chat-main .session-stop{display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;bottom:4px}.agent-chat .chat-main .back-bottom{transition:all 3.3s;position:absolute;background:white;box-shadow:0 0 5px #ddd;font-size:0;border-radius:50%;width:26px;height:26px;right:4px;bottom:0;display:flex;justify-content:center;align-content:center}.agent-chat .chat-main .main-pannel{width:100%;transition:all 1s}.agent-chat .chat-main .main-empty{width:100%;height:100%;overflow-y:auto}.agent-chat .chat-footer{position:relative;flex:0;padding:0 16px 8px;display:flex}.agent-chat .chat-footer .camera-out-btn:hover,.agent-chat .chat-footer .camera-out-btn:active,.agent-chat .chat-footer .camera-out-btn.active{color:#9c24f2}.agent-chat .chat-footer .chat-footer-input{flex:1;position:relative;width:100%}.agent-chat .chat-footer .chat-footer-input .ant-upload.ant-upload-select-picture-card{width:20px;height:20px;border:none;margin:0}.agent-chat .chat-footer .chat-footer-input .upload-wrapper{height:20px;width:20px;font-size:16px;border:1px solid #9c24f2;color:#9c24f2;border-radius:2px;display:flex;justify-content:center;align-items:center;cursor:pointer}.agent-chat .chat-footer .chat-footer-input .upload-wrapper.upload-wrapper__disabled{border:1px solid #b8babf;color:#b8babf;cursor:not-allowed}.agent-chat .chat-footer .chat-footer-input .input-files{margin-bottom:8px}.agent-chat .chat-footer .footer-upload-action{width:100%;height:28px;display:flex;justify-content:space-between;align-items:center}.agent-chat .chat-footer .footer-upload-action .footer-upload-picture{display:inline-block;width:20px}.agent-chat .chat-footer .footer-upload-action .add-btn{width:70px;height:24px;padding:0;font-size:12px;border-radius:10px 10px 10px 2px}.agent-chat .chat-footer .footer-upload-action .add-btn:disabled,.agent-chat .chat-footer .footer-upload-action .add-btn:disabled:hover{background:#b8babf;color:#fff}.agent-chat .chat-footer .chat-footer-send{position:absolute;right:34px;bottom:16px}
1
+ .knowledge-select{width:204px;height:28px;border-radius:10px;border:1px solid}.knowledge-select .select-popover{cursor:pointer;width:100%;height:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:400}.knowledge-select .select-popover .select-icon{color:#84868c}.knowledge-select .select-popover .title{line-height:22px;color:#84868c}.knowledge-select .select-popover .content{padding:2px 8px;border-radius:4px;background:#f7f7f9;line-height:18px;color:#84868c}.knowledge-select .ant-popover-placement-bottomRight{padding-top:5px!important}.knowledge-select .ant-popover-placement-bottomRight .ant-popover-arrow{display:none}.knowledge-select .ant-popover-placement-bottomRight .ant-popover-inner .ant-popover-inner-content{height:200px;overflow-y:auto;font-size:14px;font-weight:400;line-height:21px;color:#84868c}
@@ -1 +1 @@
1
- .knowledge-select{width:204px;height:28px;border-radius:10px;border:1px solid}.knowledge-select .select-popover{cursor:pointer;width:100%;height:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:400}.knowledge-select .select-popover .select-icon{color:#84868c}.knowledge-select .select-popover .title{line-height:22px;color:#84868c}.knowledge-select .select-popover .content{padding:2px 8px;border-radius:4px;background:#f7f7f9;line-height:18px;color:#84868c}.knowledge-select .ant-popover-placement-bottomRight{padding-top:5px!important}.knowledge-select .ant-popover-placement-bottomRight .ant-popover-arrow{display:none}.knowledge-select .ant-popover-placement-bottomRight .ant-popover-inner .ant-popover-inner-content{height:200px;overflow-y:auto;font-size:14px;font-weight:400;line-height:21px;color:#84868c}
1
+ .agent-chat{width:100%;height:100%;display:flex;flex-direction:column;max-width:824px;margin:0 auto;overflow:hidden}.agent-chat .chat-main{flex:1;padding:16px;overflow:hidden;width:100%;transition:all 1s;position:relative}.agent-chat .chat-main .chat-main-wrapper{width:100%;height:100%;overflow-y:auto;overflow-x:hidden}.agent-chat .chat-main .session-stop{display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;bottom:4px}.agent-chat .chat-main .back-bottom{transition:all 3.3s;position:absolute;background:white;box-shadow:0 0 5px #ddd;font-size:0;border-radius:50%;width:26px;height:26px;right:4px;bottom:0;display:flex;justify-content:center;align-content:center}.agent-chat .chat-main .main-pannel{width:100%;transition:all 1s}.agent-chat .chat-main .main-empty{width:100%;height:100%;overflow-y:auto}.agent-chat .chat-footer{position:relative;flex:0;padding:0 16px 8px;display:flex}.agent-chat .chat-footer .camera-out-btn:hover,.agent-chat .chat-footer .camera-out-btn:active,.agent-chat .chat-footer .camera-out-btn.active{color:#9c24f2}.agent-chat .chat-footer .chat-footer-input{flex:1;position:relative;width:100%}.agent-chat .chat-footer .chat-footer-input .ant-upload.ant-upload-select-picture-card{width:20px;height:20px;border:none;margin:0}.agent-chat .chat-footer .chat-footer-input .upload-wrapper{height:20px;width:20px;font-size:16px;border:1px solid #9c24f2;color:#9c24f2;border-radius:2px;display:flex;justify-content:center;align-items:center;cursor:pointer}.agent-chat .chat-footer .chat-footer-input .upload-wrapper.upload-wrapper__disabled{border:1px solid #b8babf;color:#b8babf;cursor:not-allowed}.agent-chat .chat-footer .chat-footer-input .input-files{margin-bottom:8px}.agent-chat .chat-footer .footer-upload-action{width:100%;height:28px;display:flex;justify-content:space-between;align-items:center}.agent-chat .chat-footer .footer-upload-action .footer-upload-picture{display:inline-block;width:20px}.agent-chat .chat-footer .footer-upload-action .add-btn{width:70px;height:24px;padding:0;font-size:12px;border-radius:10px 10px 10px 2px}.agent-chat .chat-footer .footer-upload-action .add-btn:disabled,.agent-chat .chat-footer .footer-upload-action .add-btn:disabled:hover{background:#b8babf;color:#fff}.agent-chat .chat-footer .chat-footer-send{position:absolute;right:34px;bottom:16px}
@@ -1 +1 @@
1
- .home-footer{background:#f5f5f5;width:100%;max-width:824px;margin:0 auto}.home-footer .footer-textarea{position:relative;background:white}.home-footer .footer-textarea .input-textview{min-height:134px;max-height:344px;resize:none;font-size:14px;border:1px solid transparent}.home-footer .footer-textarea .input-textview:focus,.home-footer .footer-textarea .input-textview:active,.home-footer .footer-textarea .input-textview.ant-input-focused{border:1px solid #b452ff;outline:0;box-shadow:none}.home-footer .footer-textarea .input-textview:hover{border:1px solid #b452ff;outline:0;box-shadow:0 0 0 2px #9c24f233}.home-footer .footer-textarea .footer-send{position:absolute;right:0;bottom:0;width:40px;height:130px}.home-footer .footer-textarea .footer-send .send-wrapper{height:16px;width:16px;font-size:16px;border-radius:6px;display:flex;justify-content:center;align-items:center;position:absolute;bottom:8px;right:12px;cursor:pointer;color:#b452ff}.home-footer .footer-textarea .footer-send .send-wrapper__disabled{height:16px;width:16px;font-size:16px;color:#b8babf;background:transparent}.home-footer .footer-warning{display:flex;justify-content:center;align-items:center;font-size:12px;font-weight:400;line-height:18px;text-align:left;color:#999}.inlay .home-footer .footer-textarea .input-textview{min-height:134px;max-height:344px}.float .home-footer .footer-textarea .input-textview{min-height:134px;max-height:200px}
1
+ .file-preview{width:auto;border-radius:6px;border:1px solid #e8e9eb;background:#ffffff;position:relative;display:inline-block;max-height:80px}.file-preview .file-icon{height:100%;width:48px}.file-preview.small{height:30px;width:150px;padding:3px 6px 3px 3px}.file-preview.small .file-icon{width:24px}.file-preview .file-desc{flex:1;overflow:hidden}.file-preview .file-desc .file-desc-name{color:#5c5f66;font-size:12px;font-style:normal;font-weight:700;line-height:150%;margin-bottom:4px}.file-preview .file-desc .file-desc-size{color:#84868c;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.file-preview .file-action{position:absolute;right:-8px;top:-8px}.file-preview .file-process{background-color:#f7f7f9;border-radius:8px;width:16px;height:16px;line-height:16px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.file-preview .file-remove{display:inline-block;border-radius:10px;width:20px;height:20px;line-height:20px;text-align:center;color:#84868c;border:1px solid #e8e9eb;display:inline-flex;align-items:center;justify-content:center;background-color:#f7f7f9}.file-preview .file-remove:hover{background-color:#fff;color:#b452ff}.file-remove-tooltip .ant-tooltip-content .ant-tooltip-inner{padding:12px}
@@ -1 +1 @@
1
- .file-preview{width:auto;border-radius:6px;border:1px solid #e8e9eb;background:#ffffff;position:relative;display:inline-block;max-height:80px}.file-preview .file-icon{height:100%;width:48px}.file-preview.small{height:30px;width:150px;padding:3px 6px 3px 3px}.file-preview.small .file-icon{width:24px}.file-preview .file-desc{flex:1;overflow:hidden}.file-preview .file-desc .file-desc-name{color:#5c5f66;font-size:12px;font-style:normal;font-weight:700;line-height:150%;margin-bottom:4px}.file-preview .file-desc .file-desc-size{color:#84868c;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.file-preview .file-action{position:absolute;right:-8px;top:-8px}.file-preview .file-process{background-color:#f7f7f9;border-radius:8px;width:16px;height:16px;line-height:16px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.file-preview .file-remove{display:inline-block;border-radius:10px;width:20px;height:20px;line-height:20px;text-align:center;color:#84868c;border:1px solid #e8e9eb;display:inline-flex;align-items:center;justify-content:center;background-color:#f7f7f9}.file-preview .file-remove:hover{background-color:#fff;color:#b452ff}.file-remove-tooltip .ant-tooltip-content .ant-tooltip-inner{padding:12px}
1
+ .greeting{display:flex;flex-direction:column;align-items:center;flex:1;margin:0 auto;max-width:824px;width:100%;padding:16px 0}.greeting-icon{width:74px;height:74px;border-radius:50%;box-shadow:0 6px 16px 2px #070c1414;padding:5px;margin-bottom:24px}.greeting-icon img{width:64px;height:64px}.greeting-word{font-weight:700;font-size:24px;line-height:30px;margin-bottom:24px}.greeting-questions{width:100%;padding:0 12px}.inlay .greeting{margin-top:40px}.float .greeting{overflow-y:auto;flex:none}
@@ -1 +1 @@
1
- .inlay .questions,.float .questions{width:100%}.questions .question-tip{display:flex;align-items:center;margin-bottom:10px;height:24px;color:#84868c}.questions .question-tip img{width:24px;height:24px}.questions .question-row{max-height:260px;overflow-y:auto}.questions .question-pannel{background:white;padding:12px;border-radius:8px;width:100%;cursor:pointer;border:1px solid transparent}.questions .question-pannel .question-top{font-size:16px;height:32px;color:#070c14;font-weight:700;display:flex;width:100%}.questions .question-pannel .question-top .question-top-tip{flex:0 0 24px;margin-right:8px}.questions .question-pannel .question-top .question-top-title{flex:0 0 1;overflow:hidden;display:flex;align-items:center}.questions .question-pannel .question-top .question-top-type{margin-left:8px;flex:0 0 24px}.questions .question-pannel .question-top .question-only-plus-file{margin-left:0}.questions .question-pannel .question-top img{width:24px}.questions .question-pannel .not-have-top{display:none}.questions .question-pannel .question-bottom{font-size:14px;color:#070c14;line-height:21px}.questions .question-pannel .multiline-question{height:56px;margin-top:-7px}.questions .question-pannel__active{border:1px solid #b452ff;transition:all .25s}.questions .multiline-question-pannel{padding:16px 12px}.recommend-tooltip-overlay .ant-tooltip-inner{max-width:400px;max-height:300px;overflow-y:auto}
1
+ .history-item{margin-bottom:16px}.history-item .history-item-user{width:100%}.history-item .history-item-user .item-user-panel{display:flex;justify-content:flex-end}.history-item .history-item-user .item-user-panel .user-panel-main{max-width:100%}.history-item .history-item-user .item-user-panel .user-panel-main .item-user-content{background:#f9f2ff;padding:12px;border-radius:12px 2px 12px 12px;border:1px solid #9c24f2;display:inline-block;width:auto;max-width:100%;color:#070c14;word-wrap:break-word}.history-item .history-item-user .item-user-file{display:flex-end;margin-top:10px}.history-item .history-item-user ::selection{background-color:#b1d7ffb3;color:#fff}.history-item .history-item-bot{width:100%;border-radius:2px 12px 12px;background:white;padding:0 12px}.history-item .history-item-bot .item-bot-plugin{padding-top:12px}.history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-success{display:inline-block;width:14px;height:14px;color:#fff;background:#47d1cb;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-error{display:inline-block;width:14px;height:14px;color:#fff;background:#f95b81;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-loading{display:inline-block;width:14px;height:14px;color:#477bff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.history-item .history-item-bot .item-bot-plugin .bot-plugin-title{font-weight:700;color:#000000a6}.history-item .history-item-bot .item-bot-plugin .bot-plugin-action{border:1px solid #00000026;border-radius:4px;color:#000000e0;padding:1px 8px}.history-item .history-item-bot .item-bot-plugin .ant-collapse-header{padding:0;height:38px;display:flex;align-items:center}.history-item .history-item-bot .item-bot-plugin .ant-collapse-content-box{padding:0}.history-item .history-item-bot .item-bot-plugin .bot-plugin-content{height:32px;line-height:32px;font-weight:700}.history-item .history-item-bot .item-bot-plugin .bot-plugin-json{background:white}.history-item .history-item-bot .item-bot-net{padding-top:12px}.history-item .history-item-bot .item-bot-content{width:100%;border-radius:2px 12px 12px;background:white;padding:12px 0;word-wrap:break-word}.history-item .history-item-bot .item-bot-content .content-think{margin-bottom:12px}.history-item .history-item-bot .item-bot-content .content-think .think-top{font-size:14px;line-height:24px;color:#070c14;display:flex;align-items:center;margin-bottom:12px;cursor:pointer}.history-item .history-item-bot .item-bot-content .content-think .think-top img{width:24px;margin-right:4px}.history-item .history-item-bot .item-bot-content .content-think .think-top .think-action{margin-left:8px}.history-item .history-item-bot .item-bot-content .content-think .think-bottom{font-size:14px;line-height:150%;color:#999;position:relative}.history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left{background:#d9d9d9;width:1px;position:absolute;left:10px;top:4px;bottom:4px}.history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left .thinking{position:absolute;left:-5px;top:0;width:12px;height:12px;background:#b752ea;border-radius:50%}.history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left .thinked{position:absolute;z-index:100;left:-5px;top:0;width:12px;height:12px;background:#04d68d;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:8px}.history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-right{padding-left:22px}.history-item .ant-collapse-item{border-radius:4px;background-color:#f5f5f5;margin-bottom:8px;padding:0 0 0 8px}.history-item .ant-collapse-item .ant-collapse-content{padding-bottom:8px}.history-item .ant-collapse-item:last-child{margin-bottom:0}.history-item .ant-collapse-header-text{width:100%}.inlay .history-item__user{display:flex;justify-content:flex-end}.inlay .history-item-user,.inlay .history-item-bot{max-width:calc(100% - 64px)}.session-item-overlay-popover .ant-popover-inner-content{padding:6px}.session-item-overlay-popover .ant-popover-arrow{display:none}