@nonoun/native-ai 1.0.9 → 1.0.10

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":3,"file":"a2ui-element.d.ts","sourceRoot":"","sources":["../../src/a2ui/a2ui-element.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,aAAa,EAA+C,MAAM,mBAAmB,CAAC;AAa/F,OAAO,8BAA8B,CAAC;AAkFtC,qBAAa,KAAM,SAAQ,aAAa;;IACtC,MAAM,CAAC,kBAAkB,WAAc;IAqDvC,IAAI,MAAM,IAAI,MAAM,CAA+B;IACnD,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,EAKrB;IAID,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IASpF,OAAO,IAAI,IAAI;IACf,IAAI,IAAI,IAAI;IACZ,QAAQ,IAAI,IAAI;IAChB,KAAK,IAAI,IAAI;IAIb,KAAK,IAAI,IAAI;IAmIb,QAAQ,IAAI,IAAI;CAkyCjB"}
1
+ {"version":3,"file":"a2ui-element.d.ts","sourceRoot":"","sources":["../../src/a2ui/a2ui-element.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,aAAa,EAA+C,MAAM,mBAAmB,CAAC;AAa/F,OAAO,8BAA8B,CAAC;AAkFtC,qBAAa,KAAM,SAAQ,aAAa;;IACtC,MAAM,CAAC,kBAAkB,WAAc;IAqDvC,IAAI,MAAM,IAAI,MAAM,CAA+B;IACnD,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,EAKrB;IAID,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IASpF,OAAO,IAAI,IAAI;IACf,IAAI,IAAI,IAAI;IACZ,QAAQ,IAAI,IAAI;IAChB,KAAK,IAAI,IAAI;IAIb,KAAK,IAAI,IAAI;IAmIb,QAAQ,IAAI,IAAI;CAmyCjB"}
@@ -23,7 +23,7 @@ export declare function resolveNativeTag(a2uiType: string): ComponentMapping | n
23
23
  export declare function resolveA2UIType(tag: string, attributes?: Readonly<Record<string, string>>): string | null;
24
24
  /**
25
25
  * For A2UI Text components, resolve the variant to an HTML tag.
26
- * Returns 'n-text' by default.
26
+ * Returns 'span' by default.
27
27
  */
28
28
  export declare function textVariantTag(variant?: string): string;
29
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"a2ui-component-map.d.ts","sourceRoot":"","sources":["../../../src/a2ui/protocol/a2ui-component-map.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC;AAI/E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,4DAA4D;IAC5D,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACvD,wDAAwD;IACxD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AA2PD,iDAAiD;AACjD,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,EAA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element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgC,MAAM,mBAAmB,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,oBAAqB,SAAQ,aAAa;;IACrD,MAAM,CAAC,kBAAkB,WAA2D;;IAiBpF,IAAI,QAAQ,IAAI,MAAM,CAAiC;IACvD,IAAI,QAAQ,CAAC,GAAG,EAAE,MAAM,EAGvB;IAED,IAAI,OAAO,IAAI,gBAAgB,EAAE,CAAgC;IACjE,IAAI,OAAO,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAGlC;IAED,IAAI,UAAU,IAAI,gBAAgB,EAAE,CAGnC;IAED,IAAI,QAAQ,IAAI,OAAO,CAAiC;IACxD,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAGxB;IAID,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAiBpF,KAAK,IAAI,IAAI;IAkCb,QAAQ,IAAI,IAAI;CA4HjB"}
1
+ {"version":3,"file":"chat-input-structured-element.d.ts","sourceRoot":"","sources":["../../../src/chat/message/chat-input-structured-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgC,MAAM,mBAAmB,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,oBAAqB,SAAQ,aAAa;;IACrD,MAAM,CAAC,kBAAkB,WAA2D;;IAiBpF,IAAI,QAAQ,IAAI,MAAM,CAAiC;IACvD,IAAI,QAAQ,CAAC,GAAG,EAAE,MAAM,EAGvB;IAED,IAAI,OAAO,IAAI,gBAAgB,EAAE,CAAgC;IACjE,IAAI,OAAO,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAGlC;IAED,IAAI,UAAU,IAAI,gBAAgB,EAAE,CAGnC;IAED,IAAI,QAAQ,IAAI,OAAO,CAAiC;IACxD,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAGxB;IAID,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAiBpF,KAAK,IAAI,IAAI;IAkCb,QAAQ,IAAI,IAAI;CA6HjB"}
@@ -20,7 +20,7 @@ export interface GenUINode {
20
20
  *
21
21
  * Set the schema via property:
22
22
  * ```js
23
- * el.schema = { tag: 'n-card', children: [{ tag: 'p', text: 'Hello' }] };
23
+ * el.schema = { tag: 'n-container', children: [{ tag: 'p', text: 'Hello' }] };
24
24
  * ```
25
25
  *
26
26
  * @attr {string} schema-type - `a2ui` | `mcpui`
@@ -1 +1 @@
1
- {"version":3,"file":"chat-message-seed-element.d.ts","sourceRoot":"","sources":["../../../src/chat/message/chat-message-seed-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgC,MAAM,mBAAmB,CAAC;AAEhF,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;;IACjD,MAAM,CAAC,kBAAkB,WAA2B;;IAapD,IAAI,OAAO,IAAI,UAAU,EAAE,CAAgC;IAC3D,IAAI,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,EAG5B;IAED,IAAI,QAAQ,IAAI,OAAO,CAAiC;IACxD,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAGxB;IAID,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAgBpF,KAAK,IAAI,IAAI;IAyCb,QAAQ,IAAI,IAAI;CAsBjB"}
1
+ {"version":3,"file":"chat-message-seed-element.d.ts","sourceRoot":"","sources":["../../../src/chat/message/chat-message-seed-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgC,MAAM,mBAAmB,CAAC;AAEhF,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;;IACjD,MAAM,CAAC,kBAAkB,WAA2B;;IAapD,IAAI,OAAO,IAAI,UAAU,EAAE,CAAgC;IAC3D,IAAI,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,EAG5B;IAED,IAAI,QAAQ,IAAI,OAAO,CAAiC;IACxD,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAGxB;IAID,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAgBpF,KAAK,IAAI,IAAI;IA0Cb,QAAQ,IAAI,IAAI;CAsBjB"}
@@ -59,8 +59,7 @@
59
59
 
60
60
  /* ── Dark chrome header toolbar (chips + expand) ── */
61
61
 
62
- :where(native-a2ui) > :where(n-header),
63
- :where(native-a2ui) > :where(header) {
62
+ :where(native-a2ui) > :where(n-header) {
64
63
  display: flex;
65
64
  align-items: center;
66
65
  flex: none;
@@ -73,15 +72,12 @@
73
72
 
74
73
  /* Header button hover background */
75
74
  :where(native-a2ui) > :where(n-header) :where(n-button):hover,
76
- :where(native-a2ui) > :where(n-header) :where(n-button)[force-hover],
77
- :where(native-a2ui) > :where(header) :where(n-button):hover,
78
- :where(native-a2ui) > :where(header) :where(n-button)[force-hover] {
75
+ :where(native-a2ui) > :where(n-header) :where(n-button)[force-hover] {
79
76
  background: var(--n-pg-editor-bg);
80
77
  }
81
78
 
82
79
  /* Chip active state — "panel is open" indicator */
83
- :where(native-a2ui) > :where(n-header) :where(n-button)[data-active],
84
- :where(native-a2ui) > :where(header) :where(n-button)[data-active] {
80
+ :where(native-a2ui) > :where(n-header) :where(n-button)[data-active] {
85
81
  background: var(--n-pg-editor-bg);
86
82
  color: var(--n-pg-text-strong);
87
83
  }
@@ -179,8 +175,7 @@
179
175
 
180
176
  /* ── Pane Header (icon + label + close button) ── */
181
177
 
182
- :where(native-a2ui) :where(.a2ui-pane) > :where(n-header),
183
- :where(native-a2ui) :where(.a2ui-pane) > :where(header) {
178
+ :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) {
184
179
  display: grid;
185
180
  grid-template-columns: auto 1fr auto;
186
181
  align-items: center;
@@ -200,22 +195,19 @@
200
195
  letter-spacing: 0.04em;
201
196
  }
202
197
 
203
- :where(native-a2ui) :where(.a2ui-pane) > :where(header) > :where(nav),
204
- :where(native-a2ui) :where(.a2ui-pane) > :where(header) > :where(aside) {
198
+ :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) > :where(nav),
199
+ :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) > :where(aside) {
205
200
  display: flex;
206
201
  align-items: center;
207
202
  gap: 0.25rem;
208
203
  }
209
204
 
210
- :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) :where(n-icon),
211
- :where(native-a2ui) :where(.a2ui-pane) > :where(header) :where(n-icon) {
205
+ :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) :where(n-icon) {
212
206
  font-size: 0.875rem;
213
207
  }
214
208
 
215
209
  :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) :where(n-button):hover,
216
- :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) :where(n-button)[force-hover],
217
- :where(native-a2ui) :where(.a2ui-pane) > :where(header) :where(n-button):hover,
218
- :where(native-a2ui) :where(.a2ui-pane) > :where(header) :where(n-button)[force-hover] {
210
+ :where(native-a2ui) :where(.a2ui-pane) > :where(n-header) :where(n-button)[force-hover] {
219
211
  background: var(--n-pg-editor-bg);
220
212
  }
221
213
 
@@ -712,22 +704,6 @@
712
704
  border-top: 1px solid var(--n-chat-panel-footer-border);
713
705
  }
714
706
 
715
- /* ── Semantic sub-container integration ── */
716
-
717
- :where(native-chat-panel) > :where(header) {
718
- background: var(--n-chat-panel-header-background);
719
- border-bottom: 1px solid var(--n-chat-panel-header-border);
720
- }
721
-
722
- :where(native-chat-panel) > :where(section) {
723
- background: var(--n-chat-panel-body-background);
724
- }
725
-
726
- :where(native-chat-panel) > :where(footer) {
727
- background: var(--n-chat-panel-footer-background);
728
- border-top: 1px solid var(--n-chat-panel-footer-border);
729
- }
730
-
731
707
  /* ── Model picker ── */
732
708
 
733
709
  :where(native-chat-panel) :where(n-select[data-role="model-picker"]) {
@@ -1291,7 +1267,7 @@
1291
1267
  font-size: var(--n-font-size-sm);
1292
1268
  }
1293
1269
 
1294
- :where(n-chat-message-genui) :where(n-card[data-role="preview"]) {
1270
+ :where(n-chat-message-genui) :where(n-container[data-role="preview"]) {
1295
1271
  display: flex;
1296
1272
  align-items: center;
1297
1273
  justify-content: space-between;
@@ -1413,18 +1389,18 @@
1413
1389
  ════════════════════════════════════════════════════
1414
1390
 
1415
1391
  Harmonizes seed + structured input spacing when composed
1416
- together as a starter surface (e.g. inside n-card, n-body).
1392
+ together as a starter surface (e.g. inside n-container, n-body).
1417
1393
 
1418
1394
  Add `compact` attribute for tighter spacing (small cards,
1419
1395
  inline starters, sidebars).
1420
1396
 
1421
1397
  Usage:
1422
- <n-card class="n-chat-starter">
1398
+ <n-container class="n-chat-starter">
1423
1399
  <n-body>
1424
1400
  <n-chat-message-seed></n-chat-message-seed>
1425
1401
  <n-chat-input-structured question="..."></n-chat-input-structured>
1426
1402
  </n-body>
1427
- </n-card>
1403
+ </n-container>
1428
1404
  */
1429
1405
 
1430
1406
  .n-chat-starter {
package/dist/native-ai.js CHANGED
@@ -47,8 +47,9 @@ function D(e) {
47
47
  var ie = [
48
48
  {
49
49
  a2uiType: "Text",
50
- nativeTag: "n-text",
51
- childStrategy: "textContent"
50
+ nativeTag: "span",
51
+ childStrategy: "textContent",
52
+ defaultAttributes: { class: "text" }
52
53
  },
53
54
  {
54
55
  a2uiType: "Button",
@@ -139,18 +140,22 @@ var ie = [
139
140
  },
140
141
  {
141
142
  a2uiType: "Row",
142
- nativeTag: "n-stack",
143
+ nativeTag: "div",
143
144
  childStrategy: "children",
144
- defaultAttributes: { direction: "row" }
145
+ defaultAttributes: {
146
+ class: "stack",
147
+ direction: "row"
148
+ }
145
149
  },
146
150
  {
147
151
  a2uiType: "Column",
148
- nativeTag: "n-stack",
149
- childStrategy: "children"
152
+ nativeTag: "div",
153
+ childStrategy: "children",
154
+ defaultAttributes: { class: "stack" }
150
155
  },
151
156
  {
152
157
  a2uiType: "Card",
153
- nativeTag: "n-card",
158
+ nativeTag: "n-container",
154
159
  childStrategy: "children"
155
160
  },
156
161
  {
@@ -198,13 +203,15 @@ var ie = [
198
203
  },
199
204
  {
200
205
  a2uiType: "Badge",
201
- nativeTag: "n-badge",
202
- childStrategy: "textContent"
206
+ nativeTag: "span",
207
+ childStrategy: "textContent",
208
+ defaultAttributes: { class: "badge" }
203
209
  },
204
210
  {
205
211
  a2uiType: "Avatar",
206
- nativeTag: "n-avatar",
212
+ nativeTag: "span",
207
213
  childStrategy: "none",
214
+ defaultAttributes: { class: "avatar" },
208
215
  propertyMap: {
209
216
  src: "src",
210
217
  alt: "alt"
@@ -268,7 +275,7 @@ var ie = [
268
275
  childStrategy: "textContent"
269
276
  }
270
277
  ], O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map();
271
- for (let e of ie) O.set(e.a2uiType, e), e.nativeTag !== "div" && e.nativeTag !== "span" && e.nativeTag !== "n-stack" && !k.has(e.nativeTag) && k.set(e.nativeTag, e);
278
+ for (let e of ie) O.set(e.a2uiType, e), e.nativeTag !== "div" && e.nativeTag !== "span" && !k.has(e.nativeTag) && k.set(e.nativeTag, e);
272
279
  /** All component mappings, keyed by A2UI type */
273
280
  const A = O;
274
281
  function j(e) {
@@ -279,13 +286,13 @@ function M(e, t) {
279
286
  if (n && O.has(n)) return n;
280
287
  let r = k.get(e);
281
288
  if (r) return r.a2uiType;
282
- if (e === "span") return "Text";
283
- if (e === "n-stack") return t?.direction === "row" ? "Row" : "Column";
289
+ if (e === "span") return t?.class?.includes("text"), "Text";
284
290
  if (e === "div") {
291
+ if (t?.class?.includes("stack")) return t?.direction === "row" ? "Row" : "Column";
285
292
  let e = t?.style ?? "";
286
293
  return e.includes("flex-direction:column") || e.includes("flex-direction: column") ? "Column" : e.includes("display:flex") || e.includes("display: flex") ? "Row" : "Column";
287
294
  }
288
- return e === "img" ? "Image" : e === "video" ? "Video" : e === "audio" ? "AudioPlayer" : e === "hr" ? "Divider" : /^h[1-6]$/.test(e) ? "Text" : null;
295
+ return e === "img" ? "Image" : e === "video" ? "Video" : e === "audio" ? "AudioPlayer" : /^h[1-6]$/.test(e) ? "Text" : null;
289
296
  }
290
297
  var ae = {
291
298
  h1: "h1",
@@ -295,14 +302,14 @@ var ae = {
295
302
  h5: "h5",
296
303
  heading: "h2",
297
304
  caption: "small",
298
- body: "n-text"
305
+ body: "span"
299
306
  };
300
307
  /**
301
308
  * For A2UI Text components, resolve the variant to an HTML tag.
302
- * Returns 'n-text' by default.
309
+ * Returns 'span' by default.
303
310
  */
304
311
  function oe(e) {
305
- return e ? ae[e] ?? "n-text" : "n-text";
312
+ return e ? ae[e] ?? "span" : "span";
306
313
  }
307
314
  /**
308
315
  * For A2UI DateTimeInput components, resolve enableDate/enableTime to HTML input type.
@@ -7980,7 +7987,7 @@ var W = [
7980
7987
  }
7981
7988
  };
7982
7989
  #G() {
7983
- let e = document.createElement("header"), t = document.createElement("n-toolbar");
7990
+ let e = document.createElement("n-header"), t = document.createElement("n-toolbar");
7984
7991
  t.setAttribute("size", "sm"), t.setAttribute("variant", "ghost");
7985
7992
  let n = document.createElement("n-select");
7986
7993
  n.setAttribute("size", "sm"), n.setAttribute("inline", "");
@@ -8000,7 +8007,7 @@ var W = [
8000
8007
  }
8001
8008
  i.appendChild(n);
8002
8009
  }
8003
- n.appendChild(i), n.addEventListener("native:change", this.#me), e.appendChild(n);
8010
+ n.appendChild(i), n.addEventListener("native:change", this.#me), t.appendChild(n);
8004
8011
  for (let e of W) {
8005
8012
  let n = document.createElement("n-button");
8006
8013
  n.setAttribute("variant", "ghost"), n.setAttribute("size", "sm"), n.textContent = Ne[e], this.#n.value.has(e) && n.toggleAttribute("data-active", !0), n.addEventListener("native:press", this.#Te(e)), t.appendChild(n), this.#w.set(e, n);
@@ -8020,7 +8027,7 @@ var W = [
8020
8027
  for (let e of W) {
8021
8028
  let t = document.createElement("div");
8022
8029
  t.className = "a2ui-pane", t.dataset.panel = e, this.#n.value.has(e) || (t.hidden = !0);
8023
- let n = document.createElement("header"), r = document.createElement("nav"), i = document.createElement("n-icon");
8030
+ let n = document.createElement("n-header"), r = document.createElement("nav"), i = document.createElement("n-icon");
8024
8031
  i.setAttribute("name", Pe[e]), r.appendChild(i), n.appendChild(r);
8025
8032
  let a = document.createElement("span");
8026
8033
  a.textContent = Ne[e], n.appendChild(a);
@@ -8041,8 +8048,8 @@ var W = [
8041
8048
  i.addEventListener("native:press", this.#_e);
8042
8049
  let a = this.#K("Play all", "play", !0);
8043
8050
  a.dataset.role = "run", a.addEventListener("native:press", this.#ge);
8044
- let o = document.createElement("n-divider");
8045
- o.setAttribute("orientation", "vertical");
8051
+ let o = document.createElement("div");
8052
+ o.className = "divider", o.setAttribute("orientation", "vertical");
8046
8053
  let s = this.#K("Insert createSurface", "plus-circle");
8047
8054
  s.addEventListener("native:press", this.#be("createSurface"));
8048
8055
  let c = this.#K("Insert updateComponents", "squares-four");
@@ -8211,8 +8218,8 @@ var W = [
8211
8218
  for (let n of e) {
8212
8219
  let e = document.createElement("div");
8213
8220
  e.className = "a2ui-log-entry";
8214
- let r = document.createElement("n-badge");
8215
- r.className = `a2ui-log-type a2ui-log-type--${n.type}`, r.textContent = n.type.toUpperCase();
8221
+ let r = document.createElement("span");
8222
+ r.className = `badge a2ui-log-type a2ui-log-type--${n.type}`, r.textContent = n.type.toUpperCase();
8216
8223
  let i = document.createElement("span");
8217
8224
  i.style.cssText = "opacity: 0.5; margin-left: 0.5rem; font-size: 0.75rem;";
8218
8225
  let a = new Date(n.timestamp);
@@ -8263,7 +8270,7 @@ var W = [
8263
8270
  #se(e, t, n) {
8264
8271
  let r = A.get(t);
8265
8272
  if (!r) return;
8266
- let i = document.createElement("header");
8273
+ let i = document.createElement("n-header");
8267
8274
  i.className = "a2ui-map-detail-header";
8268
8275
  let a = document.createElement("nav"), o = document.createElement("n-button");
8269
8276
  o.setAttribute("variant", "ghost"), o.setAttribute("size", "sm"), o.className = "a2ui-map-back", o.innerHTML = `<n-icon name="caret-left"></n-icon> ${r.a2uiType}`, o.addEventListener("native:press", () => {
@@ -9259,7 +9266,7 @@ var Ke = class {
9259
9266
  }
9260
9267
  setup() {
9261
9268
  super.setup(), this.hasAttribute("open") && (this.#r.value = !0);
9262
- let i = document.createElement("header");
9269
+ let i = document.createElement("n-header");
9263
9270
  i.setAttribute("dividers", "");
9264
9271
  let a = document.createElement("nav"), o = document.createElement("n-icon");
9265
9272
  o.setAttribute("name", "chat-dots"), a.appendChild(o), i.appendChild(a);
@@ -9267,9 +9274,9 @@ var Ke = class {
9267
9274
  s.textContent = "Assistant", i.appendChild(s);
9268
9275
  let c = document.createElement("aside");
9269
9276
  c.className = "n-chat-panel-header-trailing", i.appendChild(c), this.#v = c;
9270
- let l = document.createElement("section"), u = document.createElement("n-chat-content"), d = document.createElement("n-chat-feed");
9277
+ let l = document.createElement("n-body"), u = document.createElement("n-chat-content"), d = document.createElement("n-chat-feed");
9271
9278
  d.setAttribute("auto-scroll", ""), u.appendChild(d), this.#h = d, l.appendChild(u);
9272
- let f = document.createElement("footer");
9279
+ let f = document.createElement("n-footer");
9273
9280
  f.setAttribute("dividers", ""), this.#m = f;
9274
9281
  let p = document.createElement("n-chat-input"), m = document.createElement("n-textarea");
9275
9282
  m.setAttribute("placeholder", "Ask anything"), m.setAttribute("autogrow", ""), m.setAttribute("rows", "3"), p.appendChild(m);
@@ -10382,8 +10389,8 @@ var pt = class extends i {
10382
10389
  super.setup(), this.addEffect(l(this, this.#n, this.#e)), this.addEffect(() => {
10383
10390
  let e = this.#t.value;
10384
10391
  this.textContent = "";
10385
- let t = document.createElement("n-stack");
10386
- t.setAttribute("direction", "row"), t.setAttribute("wrap", "");
10392
+ let t = document.createElement("div");
10393
+ t.className = "stack", t.setAttribute("direction", "row"), t.setAttribute("wrap", "");
10387
10394
  for (let n of e) {
10388
10395
  let e = document.createElement("n-button");
10389
10396
  if (e.setAttribute("variant", "outline"), e.setAttribute("size", "sm"), e.setAttribute("inline", ""), e.setAttribute("data-value", n.value), n.icon) {
@@ -10503,7 +10510,7 @@ var pt = class extends i {
10503
10510
  }
10504
10511
  #s(e) {
10505
10512
  if (!this.#i) return;
10506
- let t = document.createElement("n-card");
10513
+ let t = document.createElement("n-container");
10507
10514
  t.dataset.role = "preview";
10508
10515
  let n = document.createElement("span");
10509
10516
  n.textContent = `Interactive UI (${e.tag})`, t.appendChild(n);
@@ -10667,8 +10674,8 @@ var _t = class extends i {
10667
10674
  let t = document.createElement("div");
10668
10675
  t.className = "n-chat-structured-question", t.textContent = e, this.appendChild(t);
10669
10676
  }
10670
- let r = document.createElement("n-stack");
10671
- r.setAttribute("direction", "row"), r.setAttribute("wrap", ""), r.setAttribute("role", n === "multi" ? "group" : "radiogroup");
10677
+ let r = document.createElement("div");
10678
+ r.className = "stack", r.setAttribute("direction", "row"), r.setAttribute("wrap", ""), r.setAttribute("role", n === "multi" ? "group" : "radiogroup");
10672
10679
  for (let e of t) {
10673
10680
  let t = document.createElement("n-button");
10674
10681
  if (t.setAttribute("variant", "outline"), t.setAttribute("data-value", e.value), t.setAttribute("aria-pressed", "false"), e.icon) {