ibc-ai-web-sdk 2.0.1 → 2.0.2

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.umd.js CHANGED
@@ -4,25 +4,6 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.AIWebSDK = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- // 机器人图标 - 内联轻量 SVG(尺寸 ~900 bytes,替换原 1.9MB 的 base64 GIF)
8
- // 设计为圆形类属色背景 + 白色几何机器人脸,适配 border-radius 截切
9
- var robotIcon = 'data:image/svg+xml,' + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
10
- <defs>
11
- <linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
12
- <stop offset="0%" stop-color="#2563eb"/>
13
- <stop offset="100%" stop-color="#7c3aed"/>
14
- </linearGradient>
15
- </defs>
16
- <circle cx="50" cy="50" r="50" fill="url(#g)"/>
17
- <rect x="24" y="36" width="14" height="14" rx="4" fill="#fff" opacity=".9"/>
18
- <rect x="62" y="36" width="14" height="14" rx="4" fill="#fff" opacity=".9"/>
19
- <circle cx="28" cy="40" r="3.5" fill="#2563eb"/>
20
- <circle cx="66" cy="40" r="3.5" fill="#2563eb"/>
21
- <rect x="38" y="26" width="4" height="10" rx="2" fill="#fff" opacity=".8"/>
22
- <circle cx="40" cy="24" r="5" fill="#fff" opacity=".7"/>
23
- <path d="M36 62 Q50 76 64 62" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" opacity=".8"/>
24
- </svg>`);
25
-
26
7
  /**
27
8
  * 错误码常量
28
9
  * 统一定义所有错误码,方便维护
@@ -3686,16 +3667,6 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
3686
3667
  padding: 0 0 18px;
3687
3668
  }
3688
3669
  .welcome-content { margin-bottom: 0; width: 100%; }
3689
- /* 欢迎页图标(与Vue一致:使用img而非emoji) */
3690
- .welcome-icon {
3691
- width: 52px;
3692
- height: auto;
3693
- margin-bottom: 12px;
3694
- opacity: 1;
3695
- animation: none;
3696
- border-radius: 999px;
3697
- box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
3698
- }
3699
3670
  @keyframes floatUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
3700
3671
 
3701
3672
  /* 欢迎标题 - 渐变品牌色 */
@@ -4213,9 +4184,11 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
4213
4184
  color: var(--ai-primary);
4214
4185
  background: rgba(37, 99, 235, 0.08);
4215
4186
  }
4187
+ .input-tool.attach-tool { display: none; }
4216
4188
 
4217
4189
  /* 发送按钮(与Vue .send-btn 完全一致,含光泽动画)*/
4218
4190
  .send-btn {
4191
+ margin-left: auto;
4219
4192
  flex-shrink: 0;
4220
4193
  width: 28px;
4221
4194
  height: 28px;
@@ -4300,8 +4273,6 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
4300
4273
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
4301
4274
  }
4302
4275
  .float-button:hover::before { opacity: 1; animation-play-state: initial; }
4303
- .float-icon { width: 24px; height: auto; transition: none; border-radius: 50%; }
4304
- .float-button:hover .float-icon { transform: none; }
4305
4276
 
4306
4277
  /* 错误提示toast */
4307
4278
  .error-toast {
@@ -4521,7 +4492,6 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
4521
4492
  .message-list { gap: 9px; }
4522
4493
  .message-item { max-width: 100%; width: 100%; }
4523
4494
  .message-bubble { padding: 11px 15px; font-size: 14px; }
4524
- .welcome-icon { width: 48px; margin-bottom: 10px; }
4525
4495
  .welcome-text { font-size: 22px; line-height: 1.3; margin-bottom: 9px; }
4526
4496
  .welcome-desc { font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
4527
4497
  .quick-suggestions { gap: 10px; margin-top: 0; }
@@ -4532,7 +4502,6 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
4532
4502
  .message-input { font-size: 16px; padding: 10px 12px 6px; min-height: 44px; }
4533
4503
  .send-btn { width: 28px; height: 28px; }
4534
4504
  .float-button { height: 42px; min-width: 96px; }
4535
- .float-icon { width: 22px; }
4536
4505
  .action-icon { width: 30px; height: 30px; }
4537
4506
  }
4538
4507
 
@@ -4618,9 +4587,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
4618
4587
  </div>
4619
4588
 
4620
4589
  <!-- 悬浮按钮 -->
4621
- <div class="float-button" id="floatBtn" title="打开AI助手">
4622
- <img class="float-icon" src="${robotIcon}" alt="打开AI助手" />
4623
- </div>
4590
+ <div class="float-button" id="floatBtn" title="打开AI助手"></div>
4624
4591
  </div>
4625
4592
  `;
4626
4593
 
@@ -4921,7 +4888,6 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
4921
4888
  this._body.innerHTML = `
4922
4889
  <div class="empty-state">
4923
4890
  <div class="welcome-content">
4924
- <img class="welcome-icon" src="${robotIcon}" alt="AI助手" />
4925
4891
  <p class="welcome-text">${this.escapeHtml(this._config?.welcomeText || '您好!我是 AI 智能助理')}</p>
4926
4892
  <p class="welcome-desc">${this.escapeHtml(this._config?.welcomeDesc || '我可以帮您解答系统使用问题')}</p>
4927
4893
  ${chipsHtml}