@rtc-agent/component 0.2.9-rc.0 → 0.2.9-rc.1
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/components/input-area/rtc-input-area.d.ts.map +1 -1
- package/dist/components/input-area/rtc-input-area.styles.d.ts.map +1 -1
- package/dist/{en-US-CpXp6drY.js → en-US-DUdx4QEY.js} +1 -1
- package/dist/{highlight-languages-DwYGpLW6.js → highlight-languages-BVzldaaL.js} +1 -1
- package/dist/{index-DJBmvsa_.js → index-BOwm7U7f.js} +440 -388
- package/dist/index.js +1 -1
- package/dist/index.umd.js +55 -3
- package/dist/stats.html +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, D as t, a as o, E as n, F as r, b as i, R as c, S as l, c as d, d as T, e as g, f as m, h as L, i as h, j as A, k as u, l as F, m as S, n as p, o as C, p as E, q as v, r as I, t as R, u as f, v as w, w as x, x as B, y, z as V, A as _, B as z, G as M, H as P, I as k, J as D, K as G, L as O, M as U, N as b, O as K, P as N, Q as j, T as q } from "./index-
|
|
1
|
+
import { C as s, D as t, a as o, E as n, F as r, b as i, R as c, S as l, c as d, d as T, e as g, f as m, h as L, i as h, j as A, k as u, l as F, m as S, n as p, o as C, p as E, q as v, r as I, t as R, u as f, v as w, w as x, x as B, y, z as V, A as _, B as z, G as M, H as P, I as k, J as D, K as G, L as O, M as U, N as b, O as K, P as N, Q as j, T as q } from "./index-BOwm7U7f.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CancelledError,
|
|
4
4
|
t as DEFAULT_ACTIVITY_BAR_CONFIG,
|
package/dist/index.umd.js
CHANGED
|
@@ -10334,6 +10334,16 @@ Please check if the parameters are correct, or read \`/functions/INDEX.md\` for
|
|
|
10334
10334
|
color: var(--rtc-color-text);
|
|
10335
10335
|
}
|
|
10336
10336
|
|
|
10337
|
+
.voice-btn:disabled {
|
|
10338
|
+
opacity: 0.4;
|
|
10339
|
+
cursor: not-allowed;
|
|
10340
|
+
}
|
|
10341
|
+
|
|
10342
|
+
.voice-btn:disabled:hover {
|
|
10343
|
+
background: none;
|
|
10344
|
+
color: var(--rtc-color-text-secondary);
|
|
10345
|
+
}
|
|
10346
|
+
|
|
10337
10347
|
.voice-btn svg {
|
|
10338
10348
|
width: 16px;
|
|
10339
10349
|
height: 16px;
|
|
@@ -10368,12 +10378,51 @@ Please check if the parameters are correct, or read \`/functions/INDEX.md\` for
|
|
|
10368
10378
|
color: var(--rtc-color-text);
|
|
10369
10379
|
}
|
|
10370
10380
|
|
|
10381
|
+
.toolbar-btn:disabled {
|
|
10382
|
+
opacity: 0.4;
|
|
10383
|
+
cursor: not-allowed;
|
|
10384
|
+
}
|
|
10385
|
+
|
|
10386
|
+
.toolbar-btn:disabled:hover {
|
|
10387
|
+
background: none;
|
|
10388
|
+
color: var(--rtc-color-text-secondary);
|
|
10389
|
+
}
|
|
10390
|
+
|
|
10371
10391
|
.toolbar-btn svg {
|
|
10372
10392
|
width: 16px;
|
|
10373
10393
|
height: 16px;
|
|
10374
10394
|
fill: currentColor;
|
|
10375
10395
|
}
|
|
10376
10396
|
|
|
10397
|
+
.scenario-btn {
|
|
10398
|
+
position: relative;
|
|
10399
|
+
}
|
|
10400
|
+
|
|
10401
|
+
.scenario-btn--active {
|
|
10402
|
+
color: var(--rtc-color-primary);
|
|
10403
|
+
}
|
|
10404
|
+
|
|
10405
|
+
.scenario-btn--active:hover {
|
|
10406
|
+
color: var(--rtc-color-primary-hover);
|
|
10407
|
+
}
|
|
10408
|
+
|
|
10409
|
+
.scenario-badge {
|
|
10410
|
+
position: absolute;
|
|
10411
|
+
top: -2px;
|
|
10412
|
+
right: -2px;
|
|
10413
|
+
min-width: 12px;
|
|
10414
|
+
height: 12px;
|
|
10415
|
+
border-radius: 6px;
|
|
10416
|
+
background: var(--rtc-color-primary, #0066ff);
|
|
10417
|
+
color: #ffffff;
|
|
10418
|
+
font-size: 9px;
|
|
10419
|
+
font-weight: 600;
|
|
10420
|
+
line-height: 12px;
|
|
10421
|
+
text-align: center;
|
|
10422
|
+
padding: 0 2px;
|
|
10423
|
+
box-sizing: border-box;
|
|
10424
|
+
}
|
|
10425
|
+
|
|
10377
10426
|
.toolbar-spacer {
|
|
10378
10427
|
flex: 1;
|
|
10379
10428
|
}
|
|
@@ -10971,14 +11020,17 @@ Please check if the parameters are correct, or read \`/functions/INDEX.md\` for
|
|
|
10971
11020
|
@input=${this._handleInput}
|
|
10972
11021
|
@keydown=${this._handleKeydown}
|
|
10973
11022
|
></textarea>
|
|
10974
|
-
<button class="voice-btn" part="voice-btn" title=${De("语音输入")} @click=${this._handleVoice}>
|
|
11023
|
+
<button class="voice-btn" part="voice-btn" title=${De("语音输入")} disabled @click=${this._handleVoice}>
|
|
10975
11024
|
${Bz}
|
|
10976
11025
|
</button>
|
|
10977
11026
|
</div>
|
|
10978
11027
|
<div class="input-toolbar" part="toolbar">
|
|
10979
|
-
<button class="toolbar-btn" title=${De("附加文件")}>${Dz}</button>
|
|
11028
|
+
<button class="toolbar-btn" title=${De("附加文件")} disabled>${Dz}</button>
|
|
10980
11029
|
<button class="toolbar-btn tool-btn" title=${De("命令")} @click=${this._handleCommandToggle}>${Mz}</button>
|
|
10981
|
-
<button class="toolbar-btn scenario-btn" title=${De("场景")} @click=${this._handleScenarioToggle}
|
|
11030
|
+
<button class="toolbar-btn scenario-btn ${this._selectedScenarios.length>0?"scenario-btn--active":""}" title=${this._selectedScenarios.length>0?De(`场景 (${this._selectedScenarios.length} 个已选)`):De("场景")} @click=${this._handleScenarioToggle}>
|
|
11031
|
+
${__}
|
|
11032
|
+
${this._selectedScenarios.length>0?lt`<span class="scenario-badge">${this._selectedScenarios.length}</span>`:""}
|
|
11033
|
+
</button>
|
|
10982
11034
|
<div class="toolbar-divider"></div>
|
|
10983
11035
|
<rtc-token-usage
|
|
10984
11036
|
theme=${this.theme}
|