@artooi/ag-ui-web-component 0.16.0 → 0.17.0

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/src/ui/styles.ts CHANGED
@@ -11,6 +11,7 @@ export const STYLES = `
11
11
  --ag-ui-user-bg: #4f46e5;
12
12
  --ag-ui-user-fg: #ffffff;
13
13
  --ag-ui-assistant-bg: #f1f1f6;
14
+ --ag-ui-hover: #e7e7ee;
14
15
  --ag-ui-input-bg: var(--ag-ui-bg);
15
16
  --ag-ui-tool-bg: var(--ag-ui-assistant-bg);
16
17
  --ag-ui-tool-fg: var(--ag-ui-accent);
@@ -80,6 +81,7 @@ export const STYLES = `
80
81
  --ag-ui-bg: #15151f;
81
82
  --ag-ui-fg: #e8e8f2;
82
83
  --ag-ui-assistant-bg: #25253a;
84
+ --ag-ui-hover: #303049;
83
85
  --ag-ui-header-bg: #1f1f30;
84
86
  --ag-ui-header-fg: #e8e8f2;
85
87
  --ag-ui-border: #33334a;
@@ -92,6 +94,7 @@ export const STYLES = `
92
94
  --ag-ui-bg: #15151f;
93
95
  --ag-ui-fg: #e8e8f2;
94
96
  --ag-ui-assistant-bg: #25253a;
97
+ --ag-ui-hover: #303049;
95
98
  --ag-ui-header-bg: #1f1f30;
96
99
  --ag-ui-header-fg: #e8e8f2;
97
100
  --ag-ui-border: #33334a;
@@ -107,6 +110,7 @@ export const STYLES = `
107
110
  --ag-ui-accent: #3fb950;
108
111
  --ag-ui-user-bg: #238636;
109
112
  --ag-ui-assistant-bg: #161b22;
113
+ --ag-ui-hover: #21262d;
110
114
  --ag-ui-header-bg: #010409;
111
115
  --ag-ui-header-fg: #c9d1d9;
112
116
  --ag-ui-border: #30363d;
@@ -514,6 +518,34 @@ export const STYLES = `
514
518
  color: var(--ag-ui-muted);
515
519
  }
516
520
 
521
+ /* Markdown tables. table/thead/tbody/tr/th/td are all in
522
+ the sanitizer's ALLOWED_TAGS, so an agent emitting one renders it — and until
523
+ now rendered it entirely unstyled, overflowing the bubble. A wide table
524
+ scrolls inside its own box rather than stretching the message: the bubble is
525
+ width-constrained, so without this the columns either crush or push the
526
+ layout sideways. */
527
+ .message--assistant table {
528
+ display: block;
529
+ width: fit-content;
530
+ max-width: 100%;
531
+ overflow-x: auto;
532
+ border-collapse: collapse;
533
+ font-size: 0.95em;
534
+ }
535
+
536
+ .message--assistant th,
537
+ .message--assistant td {
538
+ padding: 6px 10px;
539
+ border: 1px solid var(--ag-ui-border);
540
+ text-align: left;
541
+ vertical-align: top;
542
+ }
543
+
544
+ .message--assistant th {
545
+ background: var(--ag-ui-hover);
546
+ font-weight: 600;
547
+ }
548
+
517
549
  .pending {
518
550
  align-self: flex-start;
519
551
  display: inline-flex;
@@ -1264,9 +1296,9 @@ export const STYLES = `
1264
1296
  flex-direction: column;
1265
1297
  gap: 0.25rem;
1266
1298
  padding: 0.5rem;
1267
- border: 1px solid var(--agui-border, #d7d7dc);
1299
+ border: 1px solid var(--ag-ui-border);
1268
1300
  border-radius: 0.5rem;
1269
- background: var(--agui-surface, #fff);
1301
+ background: var(--ag-ui-assistant-bg);
1270
1302
  box-shadow: 0 6px 24px rgb(0 0 0 / 12%);
1271
1303
  max-height: 60%;
1272
1304
  overflow-y: auto;
@@ -1297,7 +1329,7 @@ export const STYLES = `
1297
1329
  }
1298
1330
 
1299
1331
  .checkpoint-row:hover {
1300
- background: var(--agui-hover, #f3f3f5);
1332
+ background: var(--ag-ui-hover);
1301
1333
  }
1302
1334
 
1303
1335
  .checkpoint-label {
@@ -1312,7 +1344,7 @@ export const STYLES = `
1312
1344
  font-size: 0.6875rem;
1313
1345
  padding: 0 0.375rem;
1314
1346
  border-radius: 999px;
1315
- background: var(--agui-hover, #f3f3f5);
1347
+ background: var(--ag-ui-hover);
1316
1348
  opacity: 0.8;
1317
1349
  }
1318
1350
 
@@ -1321,14 +1353,14 @@ export const STYLES = `
1321
1353
  font-size: 0.75rem;
1322
1354
  cursor: pointer;
1323
1355
  padding: 0.125rem 0.5rem;
1324
- border: 1px solid var(--agui-border, #d7d7dc);
1356
+ border: 1px solid var(--ag-ui-border);
1325
1357
  border-radius: 0.375rem;
1326
1358
  background: transparent;
1327
1359
  color: inherit;
1328
1360
  }
1329
1361
 
1330
1362
  .checkpoint-action:hover {
1331
- background: var(--agui-hover, #f3f3f5);
1363
+ background: var(--ag-ui-hover);
1332
1364
  }
1333
1365
 
1334
1366
  .drawer-backdrop {
@@ -57,6 +57,8 @@ export interface UiStrings {
57
57
  runInterrupted: string;
58
58
  /** Tool-result content (and card text) when the page moved mid-run. */
59
59
  pageMoved: string;
60
+ /** Notice when Send ran while a file was still uploading. Token: `{n}`. */
61
+ attachmentsStillUploading: string;
60
62
 
61
63
  // ── Composer ────────────────────────────────────────────────────────────────
62
64
  /** `aria-label` of the message textarea. */
@@ -208,6 +210,8 @@ export const DEFAULT_UI_STRINGS: UiStrings = {
208
210
  runInterrupted: "The previous response didn’t finish — the page changed before it arrived.",
209
211
  pageMoved:
210
212
  "The page changed since you last looked at it. Call read_page to see the current page, then retry.",
213
+ attachmentsStillUploading:
214
+ "{n} file still uploading — it was not sent with this message and is still attached.",
211
215
  skillNeeds: "“{title}” needs: {fields}",
212
216
 
213
217
  message: "Message",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION: string = "0.16.0";
1
+ export const VERSION: string = "0.17.0";