soar-chatbot 0.1.1 → 0.1.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/style.css +1 -1
- package/package.json +4 -2
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.chatbot-fab{position:fixed;width:60px;height:60px;border:none;border-radius:50%;background:linear-gradient(135deg,#4096ff,#1677ff 55%,#0958d9);color:#fff;font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:grab;box-shadow:0 8px 24px #1677ff73;z-index:9999;-webkit-user-select:none;user-select:none;touch-action:none;transition:transform .2s ease,box-shadow .2s ease;animation:chatbot-fab-in .3s cubic-bezier(.16,1,.3,1) backwards}.chatbot-fab:active{cursor:grabbing}.chatbot-fab:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 12px 28px #1677ff8c}.chatbot-fab:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:2px solid rgba(22,119,255,.55);animation:chatbot-fab-pulse 2.2s ease-out infinite;pointer-events:none}.chatbot-fab--dragging{cursor:grabbing;transition:none}.chatbot-fab--dragging:before{animation:none;opacity:0}.chatbot-fab__status{position:absolute;right:6px;bottom:6px;width:12px;height:12px;border-radius:50%;background:#52c41a;border:2px solid #fff}.chatbot-panel{position:fixed;width:min(380px,100vw - 32px);height:min(600px,100vh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 24px 64px -12px #0f172a47,0 6px 24px -4px #0f172a29;overflow:hidden;z-index:9999;animation:chatbot-panel-in .26s cubic-bezier(.16,1,.3,1) both}.chatbot-panel--right{transform-origin:bottom right}.chatbot-panel--left{transform-origin:bottom left}.chatbot-panel--closing{animation:chatbot-panel-out .22s ease-in both}.chatbot-panel__header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;color:#fff;background:linear-gradient(135deg,#4096ff,#1677ff 60%,#0958d9);-webkit-user-select:none;user-select:none;cursor:grab;touch-action:none}.chatbot-panel__header:active{cursor:grabbing}.chatbot-panel__brand{display:flex;align-items:center;gap:8px}.chatbot-panel__brand-mark{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:16px;background:#ffffff38;box-shadow:inset 0 0 0 1px #ffffff40}.chatbot-panel__brand-copy{display:flex;flex-direction:column;gap:1px}.chatbot-panel__brand-copy strong{font-size:14px;font-weight:600;line-height:1.2}.chatbot-panel__online{display:flex;align-items:center;gap:5px;font-size:11px;opacity:.92}.chatbot-panel__online i{width:7px;height:7px;border-radius:50%;background:#52c41a;box-shadow:0 0 0 2px #52c41a40}.chatbot-panel__header-actions{display:flex;align-items:center;gap:2px}.chatbot-panel__header-actions .ant-btn-text{color:#ffffffeb}.chatbot-panel__header-actions .ant-btn-text:hover{color:#fff;background:#ffffff29}.chatbot-panel__agent{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid #edf1f6;background:#fff}.chatbot-panel__agent .ant-select{flex:1}.chatbot-panel__agent .ant-select-selector{border:none!important;background:transparent!important;box-shadow:none!important;padding:4px 10px!important;border-radius:8px;transition:background .2s ease}.chatbot-panel__agent .ant-select-selector:hover{background:#f5f7fa}.chatbot-panel__agent .ant-select-selection-item{font-size:13px;font-weight:500;color:#1f2733}.chatbot-panel__agent .ant-select-arrow{color:#909aab}.chatbot-panel__agent-label{flex-shrink:0;font-size:12px;color:#909aab;-webkit-user-select:none;user-select:none}.chatbot-panel__body{flex:1;min-height:0;padding:14px;overflow-y:auto;background:#fff;display:flex;flex-direction:column;gap:10px}.chatbot-panel__composer{padding:10px 12px 12px;border-top:1px solid #edf1f6;background:#fff}.chatbot-agent-option{display:inline-flex;align-items:center;gap:8px}.chatbot-agent-option__dot{width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#4096ff,#1677ff);flex-shrink:0}.chatbot-agent-popup.ant-select-dropdown{padding:6px;border-radius:14px;box-shadow:0 10px 30px #0f172a24,0 0 0 1px #0f172a0a}.chatbot-agent-popup.ant-select-dropdown .ant-select-item{border-radius:9px;padding:9px 11px;font-size:13px;transition:background .15s ease}.chatbot-agent-popup.ant-select-dropdown .ant-select-item-option-active{background:#f4f6f9}.chatbot-agent-popup.ant-select-dropdown .ant-select-item-option-selected{background:#eaf1ff;font-weight:500}.chatbot-composer{border:1px solid #e6ebf2;border-radius:16px;padding:8px 10px;background:#fff;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.chatbot-composer:focus-within{border-color:#d0d7e2;box-shadow:0 2px 12px #0f172a12}.chatbot-composer__input.ant-input{border:none;box-shadow:none;background:transparent;padding:2px 2px 10px;font-size:14px;line-height:1.6;color:#1f2733;resize:none}.chatbot-composer__input.ant-input::placeholder{color:#a7b0bf}.chatbot-composer__footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.chatbot-composer__tools{display:flex;align-items:center;gap:4px}.chatbot-composer__tool-btn.ant-btn{width:32px;height:32px;min-width:32px;border-radius:9px;color:#909aab;font-size:16px}.chatbot-composer__tool-btn.ant-btn:hover,.chatbot-composer__tool-btn.ant-btn.is-active{color:#1677ff;background:#1677ff14}.chatbot-composer__actions{display:flex;align-items:center;gap:8px}.chatbot-composer__model{display:flex;align-items:center;gap:2px;padding:2px 4px 2px 10px;border:none;border-radius:999px;background:transparent;transition:background .2s ease}.chatbot-composer__model:hover{background:#f5f7fa}.chatbot-composer__model-label{font-size:12px;color:#909aab;-webkit-user-select:none;user-select:none}.chatbot-composer__model-selected{display:inline-flex;align-items:center;gap:5px;max-width:100%;overflow:hidden}.chatbot-composer__model-selected-icon{width:16px;height:16px;border-radius:50%;background:#eaf1ff;color:#1677ff;display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}.chatbot-composer__model-selected-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1f2733;font-size:12px}.chatbot-composer__model .ant-select .ant-select-selector{border:none!important;background:transparent!important;box-shadow:none!important;padding:0 4px!important;font-size:12px;color:#1f2733}.chatbot-composer__model .ant-select .ant-select-arrow{color:#909aab}.chatbot-composer__send.ant-btn{width:34px;height:34px;min-width:34px;border:none;background:linear-gradient(135deg,#4096ff,#1677ff);box-shadow:0 6px 14px #1677ff61;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.chatbot-composer__send.ant-btn:hover{background:linear-gradient(135deg,#69b1ff,#2f7bff);box-shadow:0 8px 18px #1677ff80;transform:translateY(-1px)}.chatbot-composer__send.ant-btn:disabled{background:#e6ebf2;box-shadow:none}.chatbot-attachments{display:flex;flex-wrap:wrap;gap:6px;padding:0 2px 8px}.chatbot-attachment{display:inline-flex;align-items:center;gap:6px;max-width:210px;padding:4px 6px 4px 8px;background:#f6f8fa;border:1px solid #e8ecf0;border-radius:8px;font-size:12px;color:#555f6e;transition:border-color .2s ease}.chatbot-attachment:hover{border-color:#1677ff}.chatbot-attachment.is-uploading{opacity:.75}.chatbot-attachment__thumb{width:26px;height:26px;border-radius:5px;object-fit:cover;flex-shrink:0}.chatbot-attachment__icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:5px;background:#e8ecf0;font-size:14px;flex-shrink:0}.chatbot-attachment__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-attachment__spin{color:#1677ff;font-size:12px;flex-shrink:0}.chatbot-attachment__remove{color:#9aa3b2;font-size:13px;cursor:pointer;flex-shrink:0;transition:color .2s ease}.chatbot-attachment__remove:hover{color:#ff4d4f}.chatbot-voice{display:flex;flex-direction:column;gap:10px;margin:0 0 8px;padding:12px 14px;background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #e6ebf2;border-radius:14px;box-shadow:0 4px 16px #1f23290d;transition:border-color .2s ease,box-shadow .2s ease}.chatbot-voice.is-recording{border-color:#1677ff;box-shadow:0 0 0 3px #1677ff14}.chatbot-voice__top{display:flex;align-items:center;justify-content:space-between}.chatbot-voice__label{display:inline-flex;align-items:center;gap:6px;color:#4b5563;font-size:12px;font-weight:500}.chatbot-voice__close{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;border-radius:6px;background:transparent;color:#9ca3af;cursor:pointer;transition:color .2s ease,background .2s ease}.chatbot-voice__close:hover{color:#4b5563;background:#0000000a}.chatbot-voice__main{display:flex;align-items:center;gap:14px}.chatbot-voice__mic{flex-shrink:0;width:42px;height:42px;border-radius:50%;border:1px solid #dbeafe;background:linear-gradient(135deg,#fff,#eef5ff);color:#1677ff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:all .2s ease;outline:none;-webkit-user-select:none;user-select:none;touch-action:none}.chatbot-voice__mic:hover{border-color:#1677ff;box-shadow:0 4px 12px #1677ff24}.chatbot-voice__mic:active{transform:scale(.95)}.chatbot-voice__mic:disabled{cursor:default;opacity:.7}.chatbot-voice__mic.is-active{border-color:transparent;background:linear-gradient(135deg,#ff4d4f,#ff7875);color:#fff;box-shadow:0 0 0 7px #ff4d4f26;animation:chatbot-voice-pulse 1.8s ease-in-out infinite}.chatbot-voice__content{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.chatbot-voice__hint{display:flex;align-items:center;gap:8px;min-height:36px;color:#9ca3af;font-size:13px;line-height:1.5}.chatbot-voice__hint .anticon{color:#1677ff;opacity:.7}.chatbot-voice__error{display:flex;align-items:center;gap:8px;min-height:34px;padding:8px 12px;border:1px solid #ffe0e0;border-radius:10px;background:#fff5f5;color:#d4380d;font-size:13px;line-height:1.5}.chatbot-voice__error-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:#ff4d4f}.chatbot-voice__status{display:flex;align-items:center;gap:8px;min-height:20px;color:#6b7280;font-size:13px}.chatbot-voice__status .anticon{color:#1677ff}.chatbot-voice__dot{width:8px;height:8px;border-radius:50%;background:#ff4d4f;animation:chatbot-voice-blink 1s ease-in-out infinite}.chatbot-voice__wave{display:flex;align-items:center;gap:3px;height:16px}.chatbot-voice__wave span{width:3px;height:6px;border-radius:2px;background:#1677ff;animation:chatbot-voice-bar .9s ease-in-out infinite}.chatbot-voice__result{display:-webkit-box;overflow:hidden;color:#374151;font-size:13px;line-height:1.5;max-height:42px;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;word-break:break-all}.chatbot-msg-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chatbot-msg-file{display:inline-flex;align-items:center;gap:6px;max-width:200px;padding:4px 8px;border-radius:8px;background:#ffffffb8;border:1px solid rgba(31,39,51,.08);font-size:12px;color:#555f6e;cursor:pointer;transition:border-color .2s ease}.chatbot-msg-file:hover{border-color:#1677ff}.chatbot-msg-file__thumb{width:24px;height:24px;border-radius:5px;object-fit:cover;flex-shrink:0}.chatbot-msg-file__icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:5px;background:#eef1f5;font-size:13px;flex-shrink:0}.chatbot-msg-file__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes chatbot-voice-bar{0%,to{height:5px;opacity:.6}50%{height:16px;opacity:1}}@keyframes chatbot-voice-blink{0%,to{opacity:1}50%{opacity:.35}}@keyframes chatbot-voice-pulse{0%,to{box-shadow:0 0 0 7px #ff4d4f26}50%{box-shadow:0 0 0 13px #ff4d4f0d}}.chatbot-welcome{padding:14px;border-radius:10px;background:#eaf1ff;color:#172033}.chatbot-welcome h2{font-size:15px;font-weight:600;margin:0 0 6px}.chatbot-welcome p{font-size:13px;color:#657089;margin:0;line-height:1.6}.chatbot-welcome__intro{position:relative;overflow:hidden;word-break:break-word;transition:max-height .35s cubic-bezier(.16,1,.3,1)}.chatbot-welcome__intro:after{content:"";position:absolute;left:0;right:0;bottom:0;height:34px;background:linear-gradient(to bottom,#eaf1ff00,#eaf1ff);pointer-events:none;opacity:0;transition:opacity .25s ease}.chatbot-welcome__intro.is-clamped:after{opacity:1}.chatbot-welcome__intro.is-clickable{cursor:pointer}.chatbot-welcome__more{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;margin-top:8px;padding:0;border:0;background:transparent;color:#1677ff;font-size:12px;cursor:pointer;transition:color .2s ease}.chatbot-welcome__more:hover{color:#0958d9}.chatbot-welcome__more-icon{font-size:10px;transition:transform .3s cubic-bezier(.16,1,.3,1)}.chatbot-welcome__more-icon.is-open{transform:rotate(180deg)}.chatbot-agent-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:36px 20px;text-align:center}.chatbot-agent-empty__icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;background:#eef3fb;color:#9aa7bd;font-size:24px}.chatbot-agent-empty strong{color:#1f2733;font-size:15px;font-weight:600}.chatbot-agent-empty p{margin:0;color:#909aab;font-size:13px;line-height:1.6}.chatbot-agent-empty .ant-btn{margin-top:6px}.chatbot-agent-empty-tip{color:#909aab;font-size:12px}.chatbot-section-label{font-size:12px;color:#657089;padding:6px 2px 0}.chatbot-section-label--loading{display:flex;align-items:center;gap:6px}.chatbot-suggestions{display:flex;flex-direction:column;gap:8px}.chatbot-suggestion{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid #dce2ec;border-radius:8px;background:#fff;color:#172033;font-size:13px;text-align:left;cursor:pointer}.chatbot-suggestion:hover{border-color:#1677ff;color:#1677ff}.chatbot-suggestion__dot{width:6px;height:6px;border-radius:50%;background:#1677ff;flex-shrink:0}.chatbot-model-option{display:flex;align-items:center;gap:10px;width:100%;min-width:220px}.chatbot-model-option__icon{width:28px;height:28px;border-radius:50%;background:transparent;color:#999;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;transition:background .15s ease,color .15s ease}.chatbot-model-option__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.chatbot-model-option__name{color:#333;font-size:13px;font-weight:500;line-height:1.3}.chatbot-model-option__code{color:#999;font-size:11px;line-height:1.3}.chatbot-model-option__tag{flex-shrink:0;font-size:10px;padding:1px 6px;border-radius:4px;background:#1677ff1a;color:#1677ff;line-height:16px;font-weight:500}.chatbot-model-popup{padding:6px!important;border-radius:14px!important;box-shadow:0 10px 30px #0f172a24,0 0 0 1px #0f172a0a!important;min-width:240px!important;z-index:10000!important}.chatbot-model-popup .ant-select-item{padding:9px 11px!important;border-radius:9px!important;margin-bottom:1px!important;min-height:auto!important;transition:background .15s ease!important;align-items:center!important}.chatbot-model-popup .ant-select-item-option-selected{background:#eaf1ff!important}.chatbot-model-popup .ant-select-item-option-selected .chatbot-model-option__name{color:#1677ff!important}.chatbot-model-popup .ant-select-item-option-selected .chatbot-model-option__icon{background:#1677ff1a!important;color:#1677ff!important}.chatbot-model-popup .ant-select-item-option-active:not(.ant-select-item-option-selected){background:#f4f6f9!important}.chatbot-model-popup .ant-select-item-group{font-size:10.5px!important;font-weight:600;color:#9aa3b2;padding:8px 11px 4px!important;letter-spacing:.2px}.chatbot-msg{display:flex;align-items:flex-start;gap:8px;animation:chatbot-msg-in .28s cubic-bezier(.16,1,.3,1) both}.chatbot-msg--user{justify-content:flex-end}.chatbot-msg--assistant{justify-content:flex-start}.chatbot-msg__wrap{display:flex;max-width:100%;flex-direction:column;align-items:flex-start;gap:3px}.chatbot-msg--user .chatbot-msg__wrap{align-items:flex-end}.chatbot-msg__time{padding:0 4px;color:#9aa3b2;font-size:10px;line-height:1;-webkit-user-select:none;user-select:none}.chatbot-msg__bubble{max-width:100%;padding:0;border-radius:0;font-size:13px;line-height:19px;word-break:break-word;white-space:pre-wrap}.chatbot-msg--assistant .chatbot-msg__bubble{background:transparent;color:#1f1f1f;border:0;box-shadow:none;padding:0;min-height:0}.chatbot-msg--user .chatbot-msg__bubble{background:#edf3ff;color:#1f1f1f;border:0;border-radius:16px 16px 0;padding:8px 12px;min-height:0;width:fit-content;max-width:min(100%,720px);box-shadow:none}.chatbot-typing{display:flex;align-items:center;gap:5px;min-width:36px;min-height:18px}.chatbot-typing span{width:7px;height:7px;border-radius:50%;background:#a6a6a6;animation:chatbot-typing-bounce 1.2s ease-in-out infinite}.chatbot-typing span:nth-child(2){animation-delay:.15s}.chatbot-typing span:nth-child(3){animation-delay:.3s}.chatbot-blocks{display:flex;flex-direction:column;gap:8px}.chatbot-text{color:#172033}.chatbot-markdown{font-size:14px;line-height:1.7;color:inherit;white-space:normal;word-break:break-word;overflow-wrap:anywhere}.chatbot-markdown>:first-child{margin-top:0}.chatbot-markdown>:last-child{margin-bottom:0}.chatbot-markdown h1,.chatbot-markdown h2,.chatbot-markdown h3,.chatbot-markdown h4,.chatbot-markdown h5,.chatbot-markdown h6{margin:14px 0 8px;font-weight:600;line-height:1.4;color:inherit}.chatbot-markdown h1{font-size:19px}.chatbot-markdown h2{font-size:17px}.chatbot-markdown h3{font-size:15px}.chatbot-markdown h4,.chatbot-markdown h5,.chatbot-markdown h6{font-size:14px}.chatbot-markdown p{margin:6px 0}.chatbot-markdown ul,.chatbot-markdown ol{padding-left:22px;margin:6px 0}.chatbot-markdown li{margin:3px 0}.chatbot-markdown li>p{margin:3px 0}.chatbot-markdown blockquote{border-left:3px solid #1677ff;padding:4px 12px;margin:10px 0;background:#f0f5ff;border-radius:0 4px 4px 0;color:#333}.chatbot-markdown blockquote p{margin:4px 0}.chatbot-markdown hr{border:none;border-top:1px solid #ebebeb;margin:14px 0}.chatbot-markdown code{background:#f0f0f0;padding:1px 5px;border-radius:3px;font-family:SF Mono,Monaco,Menlo,monospace;font-size:.9em;color:#d4380d}.chatbot-markdown table{width:100%;border-collapse:collapse;margin:10px 0;font-size:13px}.chatbot-markdown th,.chatbot-markdown td{border:1px solid #e5e6eb;padding:7px 10px;text-align:left}.chatbot-markdown th{background:#fafbfc;font-weight:600;color:#333}.chatbot-markdown img{max-width:100%;border-radius:6px}.chatbot-markdown strong{font-weight:600}.chatbot-markdown a{color:#1677ff;text-decoration:underline;word-break:break-all}.chatbot-code-block{position:relative;margin:4px 0;border-radius:6px;overflow:hidden;border:1px solid #e8ecf0}.chatbot-code-block__header{padding:4px 10px;background:#fafbfc;border-bottom:1px solid #e8ecf0;font-size:11px;color:#8c8c8c;display:flex;justify-content:space-between;align-items:center}.chatbot-code-block__copy{background:none;border:none;color:#8c8c8c;cursor:pointer;font-size:11px;padding:2px 6px;border-radius:4px;transition:all .15s}.chatbot-code-block__copy:hover{color:#1677ff;background:#1677ff0f}.chatbot-code-block__body{margin:0;padding:10px 12px;font-size:12.5px;line-height:1.6;overflow:auto;max-height:400px;background:#fafbfc;font-family:SF Mono,Monaco,Menlo,monospace;white-space:pre-wrap;word-break:break-all;color:#333}.chatbot-thinking{border-left:2px solid #e3e8f0;padding-left:8px;color:#657089;font-size:12px}.chatbot-thinking--loading{display:flex;align-items:center;gap:6px}.chatbot-thinking__head{display:flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:#657089;font-size:12px;cursor:pointer}.chatbot-thinking__arrow{font-size:10px;transition:transform .15s ease}.chatbot-thinking__arrow.is-closed{transform:rotate(-90deg)}.chatbot-thinking__body{margin-top:6px;white-space:pre-wrap;word-break:break-word}.chatbot-tool{border:1px solid #edf1f6;border-radius:8px;background:#f8fafc;overflow:hidden}.chatbot-tool__head{display:flex;align-items:center;gap:6px;width:100%;padding:7px 9px;border:0;background:transparent;cursor:pointer;text-align:left}.chatbot-tool__icon{color:#1677ff;font-size:12px;flex-shrink:0}.chatbot-tool__icon--ok{color:#16a34a}.chatbot-tool__icon--error{color:#f87171}.chatbot-tool__name{font-size:12px;font-weight:600;color:#172033;flex-shrink:0}.chatbot-tool__status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8c95a8;font-size:12px}.chatbot-tool__arrow{font-size:10px;color:#8c95a8;transition:transform .15s ease;flex-shrink:0}.chatbot-tool__arrow.is-open{transform:rotate(180deg)}.chatbot-tool__body{padding:0 9px 9px;border-top:1px dashed #e7ebf2}.chatbot-tool__label{margin:7px 0 4px;color:#8c95a8;font-size:11px}.chatbot-tool__pre{margin:0;padding:7px 8px;border-radius:6px;background:#fff;border:1px solid #edf1f6;color:#33405a;font-size:11px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word;max-height:120px;overflow:auto}.chatbot-tool__pre.is-error-text{color:#d92d20}.chatbot-file{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid #edf1f6;border-radius:8px;background:#f8fafc}.chatbot-file__icon{font-size:20px;flex-shrink:0}.chatbot-file__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.chatbot-file__name{color:#172033;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-file__size{color:#8c95a8;font-size:11px}.chatbot-file__desc{color:#657089;font-size:11px}.chatbot-file__btn{color:#1677ff;font-size:15px;flex-shrink:0;display:flex;align-items:center}.chatbot-error{display:flex;align-items:flex-start;gap:6px;color:#d92d20;font-size:12px}.chatbot-error .anticon{margin-top:2px;flex-shrink:0}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.chatbot-settings-panel{flex:1;min-height:0;overflow-y:auto;padding:16px;background:#f8fafd}.chatbot-settings-panel__title{margin-bottom:4px;color:#253044;font-size:14px;font-weight:600}.chatbot-settings-panel__sub{margin:0 0 16px;color:#667085;font-size:11px;line-height:1.6}.chatbot-settings-panel__field{margin-bottom:14px}.chatbot-settings-panel__field label{display:block;margin-bottom:6px;color:#667085;font-size:11px}.chatbot-settings-panel .ant-select{width:100%;height:34px}.chatbot-settings-panel .ant-select-selector{border:1px solid #e4e9f0!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;padding:0 12px!important;font-size:12px;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.chatbot-settings-panel .ant-select-selector:hover{border-color:#c4cfdd!important;background:#fbfcfe!important}.chatbot-settings-panel .ant-select-focused .ant-select-selector,.chatbot-settings-panel .ant-select-open .ant-select-selector{border-color:#4096ff!important;box-shadow:0 0 0 3px #4096ff1a!important;background:#fff!important}.chatbot-settings-panel .ant-select-selection-item{color:#1f2733;font-size:12px}.chatbot-settings-panel .ant-select-selection-placeholder{color:#9aa3b2;font-size:12px}.chatbot-settings-panel .ant-select-arrow{color:#98a2b3;font-size:10px;transition:transform .2s ease,color .2s ease}.chatbot-settings-panel .ant-select-open .ant-select-arrow{color:#4096ff;transform:rotate(180deg)}.chatbot-settings-panel__model-selected{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-settings-panel__key-row{display:flex;gap:8px}.chatbot-settings-panel__key-value{flex:1;min-width:0;padding:8px 9px;border:1px solid #d7e0eb;border-radius:6px;color:#344054;background:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-settings-panel__replace{flex:0 0 auto;padding:0 11px;border:1px solid #d7e0eb;border-radius:6px;color:#475467;background:#fff;cursor:pointer;font-size:11px;font-weight:600;transition:border-color .15s ease,color .15s ease}.chatbot-settings-panel__replace:hover{border-color:#175ab9;color:#175ab9}.chatbot-settings-panel__key-editor{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #cfe0f7;border-radius:8px;background:#f5f9ff;animation:chatbot-settings-in .18s ease-out both}.chatbot-settings-panel__key-editor .ant-input-affix-wrapper{border-radius:6px;box-shadow:none!important}.chatbot-settings-panel__key-actions{display:flex;justify-content:flex-end;gap:8px}.chatbot-settings-panel__help{margin:7px 0 0;color:#98a2b3;font-size:10px;line-height:1.5}.chatbot-settings-panel__actions{display:flex;gap:8px;margin-top:4px}.chatbot-history-panel{flex:1;min-height:0;display:flex;flex-direction:column;padding:12px 14px 10px;background:#f8fafd}.chatbot-history-panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #eef2f7}.chatbot-history-panel__heading{display:flex;min-width:0;align-items:center;gap:8px}.chatbot-history-panel__back{display:inline-flex;height:29px;flex:0 0 auto;align-items:center;gap:4px;padding:0 8px;border:1px solid #d7e0eb;border-radius:6px;color:#475467;background:#fff;cursor:pointer;font-size:10px;font-weight:600}.chatbot-history-panel__back .anticon{font-size:11px}.chatbot-history-panel__title{display:flex;align-items:baseline;gap:7px}.chatbot-history-panel__title strong{color:#253044;font-size:12px}.chatbot-history-panel__title span{color:#98a2b3;font-size:10px}.chatbot-history-panel__new{display:inline-flex;height:29px;flex:0 0 auto;align-items:center;gap:4px;padding:0 9px;border:1px solid #bcd3f4;border-radius:6px;color:#175ab9;background:#fff;cursor:pointer;font-size:10px;font-weight:600}.chatbot-history-panel__new .anticon{font-size:11px}.chatbot-history-panel__list{display:grid;min-height:0;flex:1;gap:7px;margin-top:10px;overflow-y:auto;align-content:start}.chatbot-history-panel__empty{display:flex;min-height:120px;align-items:center;justify-content:center;gap:8px;color:#98a2b3;font-size:11px}.chatbot-history-panel__empty .anticon{font-size:14px}.chatbot-history-item{display:block;width:100%;padding:9px 10px;border:1px solid #e1e7ef;border-radius:7px;color:#344054;background:#fff;cursor:pointer;text-align:left;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.chatbot-history-item:hover:not(:disabled){border-color:#bcd3f4;box-shadow:0 2px 8px #0f172a0f}.chatbot-history-item:disabled{cursor:default;opacity:.6}.chatbot-history-item strong{display:block;overflow:hidden;color:#253044;font-size:11px;font-weight:600;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.chatbot-history-item__meta{display:flex;align-items:center;gap:8px;margin-top:5px;color:#98a2b3;font-size:9px}.chatbot-history-item__tag{padding:1px 5px;border-radius:3px;color:#315c94;background:#edf5ff}.chatbot-history-item__time{margin-left:auto;flex-shrink:0}@keyframes chatbot-fab-in{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes chatbot-fab-pulse{0%{transform:scale(1);opacity:.7}70%,to{transform:scale(1.45);opacity:0}}@keyframes chatbot-panel-in{0%{opacity:0;transform:translateY(16px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes chatbot-panel-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(16px) scale(.9)}}@keyframes chatbot-msg-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes chatbot-settings-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes chatbot-typing-bounce{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
|
|
1
|
+
.chatbot-fab{position:fixed;width:60px;height:60px;border:none;border-radius:50%;background:linear-gradient(135deg,#4096ff,#1677ff 55%,#0958d9);color:#fff;font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:grab;box-shadow:0 8px 24px #1677ff73;z-index:9999;-webkit-user-select:none;user-select:none;touch-action:none;transition:transform .2s ease,box-shadow .2s ease;animation:chatbot-fab-in .3s cubic-bezier(.16,1,.3,1) backwards}.chatbot-fab:active{cursor:grabbing}.chatbot-fab:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 12px 28px #1677ff8c}.chatbot-fab:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:2px solid rgba(22,119,255,.55);animation:chatbot-fab-pulse 2.2s ease-out infinite;pointer-events:none}.chatbot-fab--dragging{cursor:grabbing;transition:none}.chatbot-fab--dragging:before{animation:none;opacity:0}.chatbot-fab__status{position:absolute;right:6px;bottom:6px;width:12px;height:12px;border-radius:50%;background:#52c41a;border:2px solid #fff}.chatbot-panel{position:fixed;width:min(380px,100vw - 32px);height:min(600px,100vh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 24px 64px -12px #0f172a47,0 6px 24px -4px #0f172a29;overflow:hidden;z-index:9999;animation:chatbot-panel-in .26s cubic-bezier(.16,1,.3,1) both}.chatbot-panel--right{transform-origin:bottom right}.chatbot-panel--left{transform-origin:bottom left}.chatbot-panel--closing{animation:chatbot-panel-out .22s ease-in both}.chatbot-panel__header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;color:#fff;background:linear-gradient(135deg,#4096ff,#1677ff 60%,#0958d9);-webkit-user-select:none;user-select:none;cursor:grab;touch-action:none}.chatbot-panel__header:active{cursor:grabbing}.chatbot-panel__brand{display:flex;align-items:center;gap:8px}.chatbot-panel__brand-mark{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:16px;background:#ffffff38;box-shadow:inset 0 0 0 1px #ffffff40}.chatbot-panel__brand-copy{display:flex;flex-direction:column;gap:1px}.chatbot-panel__brand-copy strong{font-size:14px;font-weight:600;line-height:1.2}.chatbot-panel__online{display:flex;align-items:center;gap:5px;font-size:11px;opacity:.92}.chatbot-panel__online i{width:7px;height:7px;border-radius:50%;background:#52c41a;box-shadow:0 0 0 2px #52c41a40}.chatbot-panel__header-actions{display:flex;align-items:center;gap:2px}.chatbot-panel__header-actions .ant-btn-text{color:#ffffffeb}.chatbot-panel__header-actions .ant-btn-text:hover{color:#fff;background:#ffffff29}.chatbot-panel__agent{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid #edf1f6;background:#fff}.chatbot-panel__agent .ant-select{flex:1}.chatbot-panel__agent .ant-select-selector{border:none!important;background:transparent!important;box-shadow:none!important;padding:4px 10px!important;border-radius:8px;transition:background .2s ease}.chatbot-panel__agent .ant-select-selector:hover{background:#f5f7fa}.chatbot-panel__agent .ant-select-selection-item{font-size:13px;font-weight:500;color:#1f2733}.chatbot-panel__agent .ant-select-arrow{color:#909aab}.chatbot-panel__agent-label{flex-shrink:0;font-size:12px;color:#909aab;-webkit-user-select:none;user-select:none}.chatbot-panel__body{flex:1;min-height:0;padding:14px;overflow-y:auto;background:#fff;display:flex;flex-direction:column;gap:10px}.chatbot-panel__composer{padding:10px 12px 12px;border-top:1px solid #edf1f6;background:#fff}.chatbot-agent-option{display:inline-flex;align-items:center;gap:8px}.chatbot-agent-option__dot{width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#4096ff,#1677ff);flex-shrink:0}.chatbot-agent-popup.ant-select-dropdown{padding:6px;border-radius:14px;box-shadow:0 10px 30px #0f172a24,0 0 0 1px #0f172a0a}.chatbot-agent-popup.ant-select-dropdown .ant-select-item{border-radius:9px;padding:9px 11px;font-size:13px;transition:background .15s ease}.chatbot-agent-popup.ant-select-dropdown .ant-select-item-option-active{background:#f4f6f9}.chatbot-agent-popup.ant-select-dropdown .ant-select-item-option-selected{background:#eaf1ff;font-weight:500}.chatbot-composer{border:1px solid #e6ebf2;border-radius:16px;padding:8px 10px;background:#fff;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.chatbot-composer:focus-within{border-color:#d0d7e2;box-shadow:0 2px 12px #0f172a12}.chatbot-composer__input.ant-input{border:none;box-shadow:none;background:transparent;padding:2px 2px 10px;font-size:14px;line-height:1.6;color:#1f2733;resize:none}.chatbot-composer__input.ant-input::placeholder{color:#a7b0bf}.chatbot-composer__footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.chatbot-composer__tools{display:flex;align-items:center;gap:4px}.chatbot-composer__tool-btn.ant-btn{width:32px;height:32px;min-width:32px;border-radius:9px;color:#909aab;font-size:16px}.chatbot-composer__tool-btn.ant-btn:hover,.chatbot-composer__tool-btn.ant-btn.is-active{color:#1677ff;background:#1677ff14}.chatbot-composer__actions{display:flex;align-items:center;gap:8px}.chatbot-composer__model{display:flex;align-items:center;gap:2px;padding:2px 4px 2px 10px;border:none;border-radius:999px;background:transparent;transition:background .2s ease}.chatbot-composer__model:hover{background:#f5f7fa}.chatbot-composer__model-label{font-size:12px;color:#909aab;-webkit-user-select:none;user-select:none}.chatbot-composer__model-selected{display:inline-flex;align-items:center;gap:5px;max-width:100%;overflow:hidden}.chatbot-composer__model-selected-icon{width:16px;height:16px;border-radius:50%;background:#eaf1ff;color:#1677ff;display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}.chatbot-composer__model-selected-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1f2733;font-size:12px}.chatbot-composer__model .ant-select .ant-select-selector{border:none!important;background:transparent!important;box-shadow:none!important;padding:0 4px!important;font-size:12px;color:#1f2733}.chatbot-composer__model .ant-select .ant-select-arrow{color:#909aab}.chatbot-composer__send.ant-btn{width:34px;height:34px;min-width:34px;border:none;background:linear-gradient(135deg,#4096ff,#1677ff);box-shadow:0 6px 14px #1677ff61;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.chatbot-composer__send.ant-btn:hover{background:linear-gradient(135deg,#69b1ff,#2f7bff);box-shadow:0 8px 18px #1677ff80;transform:translateY(-1px)}.chatbot-composer__send.ant-btn:disabled{background:#e6ebf2;box-shadow:none}.chatbot-attachments{display:flex;flex-wrap:wrap;gap:6px;padding:0 2px 8px}.chatbot-attachment{display:inline-flex;align-items:center;gap:6px;max-width:210px;padding:4px 6px 4px 8px;background:#f6f8fa;border:1px solid #e8ecf0;border-radius:8px;font-size:12px;color:#555f6e;transition:border-color .2s ease}.chatbot-attachment:hover{border-color:#1677ff}.chatbot-attachment.is-uploading{opacity:.75}.chatbot-attachment__thumb{width:26px;height:26px;border-radius:5px;object-fit:cover;flex-shrink:0}.chatbot-attachment__icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:5px;background:#e8ecf0;font-size:14px;flex-shrink:0}.chatbot-attachment__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-attachment__spin{color:#1677ff;font-size:12px;flex-shrink:0}.chatbot-attachment__remove{color:#9aa3b2;font-size:13px;cursor:pointer;flex-shrink:0;transition:color .2s ease}.chatbot-attachment__remove:hover{color:#ff4d4f}.chatbot-voice{display:flex;flex-direction:column;gap:10px;margin:0 0 8px;padding:12px 14px;background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #e6ebf2;border-radius:14px;box-shadow:0 4px 16px #1f23290d;transition:border-color .2s ease,box-shadow .2s ease}.chatbot-voice.is-recording{border-color:#1677ff;box-shadow:0 0 0 3px #1677ff14}.chatbot-voice__top{display:flex;align-items:center;justify-content:space-between}.chatbot-voice__label{display:inline-flex;align-items:center;gap:6px;color:#4b5563;font-size:12px;font-weight:500}.chatbot-voice__close{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;border-radius:6px;background:transparent;color:#9ca3af;cursor:pointer;transition:color .2s ease,background .2s ease}.chatbot-voice__close:hover{color:#4b5563;background:#0000000a}.chatbot-voice__main{display:flex;align-items:center;gap:14px}.chatbot-voice__mic{flex-shrink:0;width:42px;height:42px;border-radius:50%;border:1px solid #dbeafe;background:linear-gradient(135deg,#fff,#eef5ff);color:#1677ff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:all .2s ease;outline:none;-webkit-user-select:none;user-select:none;touch-action:none}.chatbot-voice__mic:hover{border-color:#1677ff;box-shadow:0 4px 12px #1677ff24}.chatbot-voice__mic:active{transform:scale(.95)}.chatbot-voice__mic:disabled{cursor:default;opacity:.7}.chatbot-voice__mic.is-active{border-color:transparent;background:linear-gradient(135deg,#ff4d4f,#ff7875);color:#fff;box-shadow:0 0 0 7px #ff4d4f26;animation:chatbot-voice-pulse 1.8s ease-in-out infinite}.chatbot-voice__content{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.chatbot-voice__hint{display:flex;align-items:center;gap:8px;min-height:36px;color:#9ca3af;font-size:13px;line-height:1.5}.chatbot-voice__hint .anticon{color:#1677ff;opacity:.7}.chatbot-voice__error{display:flex;align-items:center;gap:8px;min-height:34px;padding:8px 12px;border:1px solid #ffe0e0;border-radius:10px;background:#fff5f5;color:#d4380d;font-size:13px;line-height:1.5}.chatbot-voice__error-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:#ff4d4f}.chatbot-voice__status{display:flex;align-items:center;gap:8px;min-height:20px;color:#6b7280;font-size:13px}.chatbot-voice__status .anticon{color:#1677ff}.chatbot-voice__dot{width:8px;height:8px;border-radius:50%;background:#ff4d4f;animation:chatbot-voice-blink 1s ease-in-out infinite}.chatbot-voice__wave{display:flex;align-items:center;gap:3px;height:16px}.chatbot-voice__wave span{width:3px;height:6px;border-radius:2px;background:#1677ff;animation:chatbot-voice-bar .9s ease-in-out infinite}.chatbot-voice__result{display:-webkit-box;overflow:hidden;color:#374151;font-size:13px;line-height:1.5;max-height:42px;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;word-break:break-all}.chatbot-msg-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chatbot-msg-file{display:inline-flex;align-items:center;gap:6px;max-width:200px;padding:4px 8px;border-radius:8px;background:#ffffffb8;border:1px solid rgba(31,39,51,.08);font-size:12px;color:#555f6e;cursor:pointer;transition:border-color .2s ease}.chatbot-msg-file:hover{border-color:#1677ff}.chatbot-msg-file__thumb{width:24px;height:24px;border-radius:5px;object-fit:cover;flex-shrink:0}.chatbot-msg-file__icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:5px;background:#eef1f5;font-size:13px;flex-shrink:0}.chatbot-msg-file__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes chatbot-voice-bar{0%,to{height:5px;opacity:.6}50%{height:16px;opacity:1}}@keyframes chatbot-voice-blink{0%,to{opacity:1}50%{opacity:.35}}@keyframes chatbot-voice-pulse{0%,to{box-shadow:0 0 0 7px #ff4d4f26}50%{box-shadow:0 0 0 13px #ff4d4f0d}}.chatbot-welcome{padding:14px;border-radius:10px;background:#eaf1ff;color:#172033}.chatbot-welcome h2{font-size:15px;font-weight:600;margin:0 0 6px}.chatbot-welcome p{font-size:13px;color:#657089;margin:0;line-height:1.6}.chatbot-welcome__intro{position:relative;overflow:hidden;word-break:break-word;transition:max-height .35s cubic-bezier(.16,1,.3,1)}.chatbot-welcome__intro:after{content:"";position:absolute;left:0;right:0;bottom:0;height:34px;background:linear-gradient(to bottom,#eaf1ff00,#eaf1ff);pointer-events:none;opacity:0;transition:opacity .25s ease}.chatbot-welcome__intro.is-clamped:after{opacity:1}.chatbot-welcome__intro.is-clickable{cursor:pointer}.chatbot-welcome__more{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;margin-top:8px;padding:0;border:0;background:transparent;color:#1677ff;font-size:12px;cursor:pointer;transition:color .2s ease}.chatbot-welcome__more:hover{color:#0958d9}.chatbot-welcome__more-icon{font-size:10px;transition:transform .3s cubic-bezier(.16,1,.3,1)}.chatbot-welcome__more-icon.is-open{transform:rotate(180deg)}.chatbot-agent-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:36px 20px;text-align:center}.chatbot-agent-empty__icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;background:#eef3fb;color:#9aa7bd;font-size:24px}.chatbot-agent-empty strong{color:#1f2733;font-size:15px;font-weight:600}.chatbot-agent-empty p{margin:0;color:#909aab;font-size:13px;line-height:1.6}.chatbot-agent-empty .ant-btn{margin-top:6px}.chatbot-agent-empty-tip{color:#909aab;font-size:12px}.chatbot-section-label{font-size:12px;color:#657089;padding:6px 2px 0}.chatbot-section-label--loading{display:flex;align-items:center;gap:6px}.chatbot-suggestions{display:flex;flex-direction:column;gap:8px}.chatbot-suggestion{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid #dce2ec;border-radius:8px;background:#fff;color:#172033;font-size:13px;text-align:left;cursor:pointer}.chatbot-suggestion:hover{border-color:#1677ff;color:#1677ff}.chatbot-suggestion__dot{width:6px;height:6px;border-radius:50%;background:#1677ff;flex-shrink:0}.chatbot-model-option{display:flex;align-items:center;gap:10px;width:100%;min-width:220px}.chatbot-model-option__icon{width:28px;height:28px;border-radius:50%;background:transparent;color:#999;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;transition:background .15s ease,color .15s ease}.chatbot-model-option__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.chatbot-model-option__name{color:#333;font-size:13px;font-weight:500;line-height:1.3}.chatbot-model-option__code{color:#999;font-size:11px;line-height:1.3}.chatbot-model-option__tag{flex-shrink:0;font-size:10px;padding:1px 6px;border-radius:4px;background:#1677ff1a;color:#1677ff;line-height:16px;font-weight:500}.chatbot-model-popup{padding:6px!important;border-radius:14px!important;box-shadow:0 10px 30px #0f172a24,0 0 0 1px #0f172a0a!important;min-width:240px!important;z-index:10000!important}.chatbot-model-popup .ant-select-item{padding:9px 11px!important;border-radius:9px!important;margin-bottom:1px!important;min-height:auto!important;transition:background .15s ease!important;align-items:center!important}.chatbot-model-popup .ant-select-item-option-selected{background:#eaf1ff!important}.chatbot-model-popup .ant-select-item-option-selected .chatbot-model-option__name{color:#1677ff!important}.chatbot-model-popup .ant-select-item-option-selected .chatbot-model-option__icon{background:#1677ff1a!important;color:#1677ff!important}.chatbot-model-popup .ant-select-item-option-active:not(.ant-select-item-option-selected){background:#f4f6f9!important}.chatbot-model-popup .ant-select-item-group{font-size:10.5px!important;font-weight:600;color:#9aa3b2;padding:8px 11px 4px!important;letter-spacing:.2px}.chatbot-msg{display:flex;align-items:flex-start;gap:8px;animation:chatbot-msg-in .28s cubic-bezier(.16,1,.3,1) both}.chatbot-msg--user{justify-content:flex-end}.chatbot-msg--assistant{justify-content:flex-start}.chatbot-msg__wrap{display:flex;max-width:100%;flex-direction:column;align-items:flex-start;gap:3px}.chatbot-msg--user .chatbot-msg__wrap{align-items:flex-end}.chatbot-msg__time{padding:0 4px;color:#9aa3b2;font-size:10px;line-height:1;-webkit-user-select:none;user-select:none}.chatbot-msg__bubble{max-width:100%;padding:0;border-radius:0;font-size:13px;line-height:19px;word-break:break-word;white-space:pre-wrap}.chatbot-msg--assistant .chatbot-msg__bubble{background:transparent;color:#1f1f1f;border:0;box-shadow:none;padding:0;min-height:0}.chatbot-msg--user .chatbot-msg__bubble{background:#edf3ff;color:#1f1f1f;border:0;border-radius:16px 16px 0;padding:8px 12px;min-height:0;width:fit-content;max-width:min(100%,720px);box-shadow:none}.chatbot-typing{display:flex;align-items:center;gap:5px;min-width:36px;min-height:18px}.chatbot-typing span{width:7px;height:7px;border-radius:50%;background:#a6a6a6;animation:chatbot-typing-bounce 1.2s ease-in-out infinite}.chatbot-typing span:nth-child(2){animation-delay:.15s}.chatbot-typing span:nth-child(3){animation-delay:.3s}.chatbot-blocks{display:flex;flex-direction:column;gap:8px}.chatbot-text{color:#172033}.chatbot-markdown{font-size:14px;line-height:1.7;color:inherit;white-space:normal;word-break:break-word;overflow-wrap:anywhere}.chatbot-markdown>:first-child{margin-top:0}.chatbot-markdown>:last-child{margin-bottom:0}.chatbot-markdown h1,.chatbot-markdown h2,.chatbot-markdown h3,.chatbot-markdown h4,.chatbot-markdown h5,.chatbot-markdown h6{margin:14px 0 8px;font-weight:600;line-height:1.4;color:inherit}.chatbot-markdown h1{font-size:19px}.chatbot-markdown h2{font-size:17px}.chatbot-markdown h3{font-size:15px}.chatbot-markdown h4,.chatbot-markdown h5,.chatbot-markdown h6{font-size:14px}.chatbot-markdown p{margin:6px 0}.chatbot-markdown ul,.chatbot-markdown ol{padding-left:22px;margin:6px 0}.chatbot-markdown li{margin:3px 0}.chatbot-markdown li>p{margin:3px 0}.chatbot-markdown blockquote{border-left:3px solid #1677ff;padding:4px 12px;margin:10px 0;background:#f0f5ff;border-radius:0 4px 4px 0;color:#333}.chatbot-markdown blockquote p{margin:4px 0}.chatbot-markdown hr{border:none;border-top:1px solid #ebebeb;margin:14px 0}.chatbot-markdown code{background:#f0f0f0;padding:1px 5px;border-radius:3px;font-family:SF Mono,Monaco,Menlo,monospace;font-size:.9em;color:#d4380d}.chatbot-markdown table{width:100%;border-collapse:collapse;margin:10px 0;font-size:13px}.chatbot-markdown th,.chatbot-markdown td{border:1px solid #e5e6eb;padding:7px 10px;text-align:left}.chatbot-markdown th{background:#fafbfc;font-weight:600;color:#333}.chatbot-markdown img{max-width:100%;border-radius:6px}.chatbot-markdown strong{font-weight:600}.chatbot-markdown a{color:#1677ff;text-decoration:underline;word-break:break-all}.chatbot-code-block{position:relative;margin:4px 0;border-radius:6px;overflow:hidden;border:1px solid #e8ecf0}.chatbot-code-block__header{padding:4px 10px;background:#fafbfc;border-bottom:1px solid #e8ecf0;font-size:11px;color:#8c8c8c;display:flex;justify-content:space-between;align-items:center}.chatbot-code-block__copy{background:none;border:none;color:#8c8c8c;cursor:pointer;font-size:11px;padding:2px 6px;border-radius:4px;transition:all .15s}.chatbot-code-block__copy:hover{color:#1677ff;background:#1677ff0f}.chatbot-code-block__body{margin:0;padding:10px 12px;font-size:12.5px;line-height:1.6;overflow:auto;max-height:400px;background:#fafbfc;font-family:SF Mono,Monaco,Menlo,monospace;white-space:pre-wrap;word-break:break-all;color:#333}.chatbot-thinking{border-left:2px solid #e3e8f0;padding-left:8px;color:#657089;font-size:12px}.chatbot-thinking--loading{display:flex;align-items:center;gap:6px}.chatbot-thinking__head{display:flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:#657089;font-size:12px;cursor:pointer}.chatbot-thinking__arrow{font-size:10px;transition:transform .15s ease}.chatbot-thinking__arrow.is-closed{transform:rotate(-90deg)}.chatbot-thinking__body{margin-top:6px;white-space:pre-wrap;word-break:break-word}.chatbot-tool{border:1px solid #edf1f6;border-radius:8px;background:#f8fafc;overflow:hidden}.chatbot-tool__head{display:flex;align-items:center;gap:6px;width:100%;padding:7px 9px;border:0;background:transparent;cursor:pointer;text-align:left}.chatbot-tool__icon{color:#1677ff;font-size:12px;flex-shrink:0}.chatbot-tool__icon--ok{color:#16a34a}.chatbot-tool__icon--error{color:#f87171}.chatbot-tool__name{font-size:12px;font-weight:600;color:#172033;flex-shrink:0}.chatbot-tool__status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8c95a8;font-size:12px}.chatbot-tool__arrow{font-size:10px;color:#8c95a8;transition:transform .15s ease;flex-shrink:0}.chatbot-tool__arrow.is-open{transform:rotate(180deg)}.chatbot-tool__body{padding:0 9px 9px;border-top:1px dashed #e7ebf2}.chatbot-tool__label{margin:7px 0 4px;color:#8c95a8;font-size:11px}.chatbot-tool__pre{margin:0;padding:7px 8px;border-radius:6px;background:#fff;border:1px solid #edf1f6;color:#33405a;font-size:11px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word;max-height:120px;overflow:auto}.chatbot-tool__pre.is-error-text{color:#d92d20}.chatbot-file{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid #edf1f6;border-radius:8px;background:#f8fafc}.chatbot-file__icon{font-size:20px;flex-shrink:0}.chatbot-file__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.chatbot-file__name{color:#172033;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-file__size{color:#8c95a8;font-size:11px}.chatbot-file__desc{color:#657089;font-size:11px}.chatbot-file__btn{color:#1677ff;font-size:15px;flex-shrink:0;display:flex;align-items:center}.chatbot-error{display:flex;align-items:flex-start;gap:6px;color:#d92d20;font-size:12px}.chatbot-error .anticon{margin-top:2px;flex-shrink:0}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.chatbot-settings-panel{flex:1;min-height:0;overflow-y:auto;padding:16px;background:#f8fafd}.chatbot-settings-panel__title{margin-bottom:4px;color:#253044;font-size:14px;font-weight:600}.chatbot-settings-panel__sub{margin:0 0 16px;color:#667085;font-size:11px;line-height:1.6}.chatbot-settings-panel__field{margin-bottom:14px}.chatbot-settings-panel__field label{display:block;margin-bottom:6px;color:#667085;font-size:11px}.chatbot-settings-panel .ant-select{width:100%;height:34px}.chatbot-settings-panel .ant-select-selector{border:1px solid #e4e9f0!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;padding:0 12px!important;font-size:12px;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.chatbot-settings-panel .ant-select-selector:hover{border-color:#c4cfdd!important;background:#fbfcfe!important}.chatbot-settings-panel .ant-select-focused .ant-select-selector,.chatbot-settings-panel .ant-select-open .ant-select-selector{border-color:#4096ff!important;box-shadow:0 0 0 3px #4096ff1a!important;background:#fff!important}.chatbot-settings-panel .ant-select-selection-item{color:#1f2733;font-size:12px}.chatbot-settings-panel .ant-select-selection-placeholder{color:#9aa3b2;font-size:12px}.chatbot-settings-panel .ant-select-arrow{color:#98a2b3;font-size:10px;transition:transform .2s ease,color .2s ease}.chatbot-settings-panel .ant-select-open .ant-select-arrow{color:#4096ff;transform:rotate(180deg)}.chatbot-settings-panel__model-selected{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-settings-panel__key-row{display:flex;gap:8px}.chatbot-settings-panel__key-value{flex:1;min-width:0;padding:8px 9px;border:1px solid #d7e0eb;border-radius:6px;color:#344054;background:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatbot-settings-panel__replace{flex:0 0 auto;padding:0 11px;border:1px solid #d7e0eb;border-radius:6px;color:#475467;background:#fff;cursor:pointer;font-size:11px;font-weight:600;transition:border-color .15s ease,color .15s ease}.chatbot-settings-panel__replace:hover{border-color:#175ab9;color:#175ab9}.chatbot-settings-panel__key-editor{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #cfe0f7;border-radius:8px;background:#f5f9ff;animation:chatbot-settings-in .18s ease-out both}.chatbot-settings-panel__key-editor .ant-input-affix-wrapper{border-radius:6px;box-shadow:none!important}.chatbot-settings-panel__key-actions{display:flex;justify-content:flex-end;gap:8px}.chatbot-settings-panel__help{margin:7px 0 0;color:#98a2b3;font-size:10px;line-height:1.5}.chatbot-settings-panel__actions{display:flex;gap:8px;margin-top:4px}.chatbot-history-panel{flex:1;width:100%;min-height:0;display:flex;flex-direction:column;padding:12px 14px 10px;background:#f8fafd}.chatbot-history-panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #eef2f7}.chatbot-history-panel__heading{display:flex;min-width:0;align-items:center;gap:8px}.chatbot-history-panel__back{display:inline-flex;height:29px;flex:0 0 auto;align-items:center;gap:4px;padding:0 8px;border:1px solid #d7e0eb;border-radius:6px;color:#475467;background:#fff;cursor:pointer;font-size:10px;font-weight:600}.chatbot-history-panel__back .anticon{font-size:11px}.chatbot-history-panel__title{display:flex;align-items:baseline;gap:7px}.chatbot-history-panel__title strong{color:#253044;font-size:12px}.chatbot-history-panel__title span{color:#98a2b3;font-size:10px}.chatbot-history-panel__new{display:inline-flex;height:29px;flex:0 0 auto;align-items:center;gap:4px;padding:0 9px;border:1px solid #bcd3f4;border-radius:6px;color:#175ab9;background:#fff;cursor:pointer;font-size:10px;font-weight:600}.chatbot-history-panel__new .anticon{font-size:11px}.chatbot-history-panel__list{display:grid;width:100%;min-height:0;flex:1;gap:7px;margin-top:10px;overflow-y:auto;align-content:start;scrollbar-width:none}.chatbot-history-panel__list::-webkit-scrollbar{display:none}.chatbot-history-panel__empty{display:flex;min-height:120px;align-items:center;justify-content:center;gap:8px;color:#98a2b3;font-size:11px}.chatbot-history-panel__empty .anticon{font-size:14px}.chatbot-history-item{display:block;width:100%;padding:9px 10px;border:1px solid #e1e7ef;border-radius:7px;color:#344054;background:#fff;cursor:pointer;text-align:left;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.chatbot-history-item:hover:not(:disabled){border-color:#bcd3f4;box-shadow:0 2px 8px #0f172a0f}.chatbot-history-item:disabled{cursor:default;opacity:.6}.chatbot-history-item strong{display:block;overflow:hidden;color:#253044;font-size:11px;font-weight:600;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.chatbot-history-item__meta{display:flex;align-items:center;gap:8px;margin-top:5px;color:#98a2b3;font-size:9px}.chatbot-history-item__tag{padding:1px 5px;border-radius:3px;color:#315c94;background:#edf5ff}.chatbot-history-item__time{margin-left:auto;flex-shrink:0}@keyframes chatbot-fab-in{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes chatbot-fab-pulse{0%{transform:scale(1);opacity:.7}70%,to{transform:scale(1.45);opacity:0}}@keyframes chatbot-panel-in{0%{opacity:0;transform:translateY(16px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes chatbot-panel-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(16px) scale(.9)}}@keyframes chatbot-msg-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes chatbot-settings-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes chatbot-typing-bounce{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soar-chatbot",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "可复用的星云 AI 机器人对话组件(React + Ant Design)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
13
|
"require": "./dist/index.cjs"
|
|
14
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"./style.css": "./dist/style.css",
|
|
16
|
+
"./dist/style.css": "./dist/style.css"
|
|
15
17
|
},
|
|
16
18
|
"files": [
|
|
17
19
|
"dist",
|