@yeaft/webchat-agent 1.0.466 → 1.0.468

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.
@@ -1 +1 @@
1
- {"version":"1.0.466"}
1
+ {"version":"1.0.468"}
@@ -5408,36 +5408,38 @@ ${String(e||"").trim()}
5408
5408
  <span class="brand-label">{{ tr('chat.agent.count', onlineAgentCount + ' agents', { count: onlineAgentCount }) }}</span>
5409
5409
  <svg class="dropdown-chevron" :class="{ open }" viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path fill="currentColor" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>
5410
5410
  </button>
5411
- <button
5412
- type="button"
5413
- class="agent-settings-icon-btn"
5414
- @click.stop="$emit('open-agent-settings')"
5415
- :title="tr('agentSettings.open', 'Agent settings')"
5416
- :aria-label="tr('agentSettings.open', 'Agent settings')"
5417
- >
5418
- <svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="currentColor" d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/></svg>
5419
- </button>
5420
5411
  <div class="agent-dropdown" v-if="open" role="menu" @click.stop>
5421
- <div v-for="agent in onlineAgents" :key="agent.id" class="agent-dropdown-item">
5422
- <span class="status-dot" :class="{ online: agent.online, restarting: restartingAgents[agent.id], upgrading: upgradingAgents[agent.id] }"></span>
5423
- <span class="agent-dropdown-name">{{ agent.name }}</span>
5424
- <span class="agent-dropdown-version" v-if="agent.version">v{{ agent.version }}</span>
5425
- <span class="agent-dropdown-status" v-if="restartingAgents[agent.id]">{{ tr('chat.agent.restarting', 'Restarting\u2026') }}</span>
5426
- <span class="agent-dropdown-status" v-else-if="upgradingAgents[agent.id]">{{ tr('chat.agent.upgrading', 'Upgrading\u2026') }}</span>
5427
- <button
5428
- v-if="showAgentActions"
5429
- type="button"
5430
- class="agent-dropdown-upgrade-btn"
5431
- @click.stop="$emit('upgrade-agent', agent.id)"
5432
- :disabled="!agent.online || restartingAgents[agent.id] || upgradingAgents[agent.id]"
5433
- :title="tr('chat.agent.upgrade', 'Upgrade')"
5434
- :aria-label="tr('chat.agent.upgrade', 'Upgrade')"
5435
- >
5436
- <span v-if="upgradingAgents[agent.id]" class="spinner-mini"></span>
5437
- <svg v-else viewBox="0 0 24 24" width="13" height="13" aria-hidden="true"><path fill="currentColor" d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>
5438
- </button>
5412
+ <div class="agent-dropdown-list">
5413
+ <div v-for="agent in onlineAgents" :key="agent.id" class="agent-dropdown-item">
5414
+ <span class="status-dot" :class="{ online: agent.online, restarting: restartingAgents[agent.id], upgrading: upgradingAgents[agent.id] }"></span>
5415
+ <span class="agent-dropdown-name">{{ agent.name }}</span>
5416
+ <span class="agent-dropdown-meta">
5417
+ <span class="agent-dropdown-status" v-if="restartingAgents[agent.id]">{{ tr('chat.agent.restarting', 'Restarting\u2026') }}</span>
5418
+ <span class="agent-dropdown-status" v-else-if="upgradingAgents[agent.id]">{{ tr('chat.agent.upgrading', 'Upgrading\u2026') }}</span>
5419
+ <span class="agent-dropdown-version" v-else-if="agent.version">v{{ agent.version }}</span>
5420
+ </span>
5421
+ <button
5422
+ v-if="showAgentActions"
5423
+ type="button"
5424
+ class="agent-dropdown-upgrade-btn"
5425
+ @click.stop="$emit('upgrade-agent', agent.id)"
5426
+ :disabled="!agent.online || restartingAgents[agent.id] || upgradingAgents[agent.id]"
5427
+ :title="tr('chat.agent.upgrade', 'Upgrade')"
5428
+ :aria-label="tr('chat.agent.upgrade', 'Upgrade')"
5429
+ >
5430
+ <span v-if="upgradingAgents[agent.id]" class="spinner-mini"></span>
5431
+ <svg v-else viewBox="0 0 24 24" width="13" height="13" aria-hidden="true"><path fill="currentColor" d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>
5432
+ </button>
5433
+ </div>
5434
+ <div v-if="onlineAgents.length === 0" class="agent-dropdown-empty">{{ tr('chat.agent.none', 'No agents online') }}</div>
5439
5435
  </div>
5440
- <div v-if="onlineAgents.length === 0" class="agent-dropdown-empty">{{ tr('chat.agent.none', 'No agents online') }}</div>
5436
+ <button
5437
+ type="button"
5438
+ class="agent-dropdown-settings-option"
5439
+ @click.stop="open = false; $emit('open-agent-settings')"
5440
+ >
5441
+ {{ tr('agentSettings.open', 'Agent settings') }}
5442
+ </button>
5441
5443
  </div>
5442
5444
  </div>
5443
5445
  `}});var Ro,fc=F(()=>{Ro={name:"SidebarWorkCenter",props:{agents:{type:Array,default:()=>[]},activeAgentId:{type:String,default:null},collapsed:{type:Boolean,default:!1},active:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!1}},emits:["open"],data(){return{expanded:this.defaultExpanded}},computed:{onlineAgents(){return this.agents.filter(e=>e?.online&&Array.isArray(e.capabilities)&&e.capabilities.includes("work_center"))}},watch:{defaultExpanded(e){e&&(this.expanded=!0)}},methods:{tr(e,t){let s=this.$t?this.$t(e):e;return s&&s!==e?s:t},toggle(){if(this.collapsed){let e=this.onlineAgents.find(t=>t.id===this.activeAgentId)||this.onlineAgents[0];e&&this.$emit("open",e.id);return}this.expanded=!this.expanded}},template:`
@@ -7329,9 +7331,6 @@ ${String(e||"").trim()}
7329
7331
  />
7330
7332
  <div class="sidebar-header-actions">
7331
7333
  <SidebarModeToggle v-if="!chatStore || !chatStore.sessionCatalogLoaded" view="yeaft" @flip="onModeFlip" />
7332
- <button class="sidebar-icon-btn" :class="{ active: chatStore && chatStore.pluginCenterOpen }" :disabled="onlineAgents.length === 0" :title="$t('yeaft.plugins.title')" :aria-label="$t('yeaft.plugins.title')" @click="onOpenPlugins">
7333
- <svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" d="M14 3.5a3 3 0 0 0-4.24 4.24L3.5 14l6.5 6.5 6.26-6.26A3 3 0 0 0 20.5 10L17 13.5l-2.5-2.5L18 7.5A3 3 0 0 0 14 3.5z"/></svg>
7334
- </button>
7335
7334
  <button class="sidebar-icon-btn sidebar-work-center-header-btn" :class="{ active: chatStore && chatStore.workCenterOpen }" :disabled="workCenterAgents.length === 0" :title="tr('workCenter.title', 'Work Center')" :aria-label="tr('workCenter.title', 'Work Center')" @click="onOpenWorkCenter()">
7336
7335
  <svg viewBox="0 0 24 24" width="21" height="21" aria-hidden="true"><path fill="currentColor" d="M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm2 5v2h10V8H7zm0 4v2h7v-2H7zm0 4v2h5v-2H7z"/></svg>
7337
7336
  </button>
Binary file
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
6
6
  <title>Yeaft</title>
7
7
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='8' fill='%232c2c2c'/><path d='M16 22V13M16 13L10 8M16 13L22 8' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/><circle cx='10' cy='8' r='2.4' fill='white'/><circle cx='22' cy='8' r='2.4' fill='white'/><circle cx='16' cy='22' r='2.4' fill='white'/></svg>">
8
- <link rel="stylesheet" href="style.bundle.css?v=771379ea">
8
+ <link rel="stylesheet" href="style.bundle.css?v=422560c8">
9
9
  <script src="vendor.bundle.js?v=103fd8e7"></script>
10
10
  <script defer src="jszip.min.js"></script>
11
11
  <script defer src="docx-preview.min.js"></script>
@@ -16,6 +16,6 @@
16
16
  </head>
17
17
  <body>
18
18
  <div id="app"></div>
19
- <script type="module" src="app.bundle.js?v=c4ddc473"></script>
19
+ <script type="module" src="app.bundle.js?v=57798f71"></script>
20
20
  </body>
21
21
  </html>