@actioneer/ads 0.6.0 → 0.8.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.
Files changed (123) hide show
  1. package/DESIGN.md +597 -0
  2. package/components/ai-elements/agent-trace.d.ts +2 -2
  3. package/components/ai-elements/agent-trace.js +164 -105
  4. package/components/ai-elements/chain-of-thought.d.ts +2 -2
  5. package/components/ai-elements/chain-of-thought.js +1 -1
  6. package/components/ai-elements/index.d.ts +0 -5
  7. package/components/ai-elements/inline-citation.js +1 -1
  8. package/components/alert.d.ts +6 -6
  9. package/components/alert.js +89 -53
  10. package/components/answer-sources.d.ts +2 -6
  11. package/components/answer-sources.js +58 -60
  12. package/components/answer.d.ts +5 -0
  13. package/components/answer.js +311 -271
  14. package/components/assistant-ui/action-bar.js +1 -1
  15. package/components/assistant-ui/attachment.js +11 -11
  16. package/components/assistant-ui/badge.js +18 -18
  17. package/components/assistant-ui/composer-harness.js +15 -20
  18. package/components/assistant-ui/composer-trigger-popover.js +9 -9
  19. package/components/assistant-ui/composer.d.ts +3 -1
  20. package/components/assistant-ui/composer.js +148 -144
  21. package/components/assistant-ui/image.js +61 -61
  22. package/components/assistant-ui/index.d.ts +0 -3
  23. package/components/assistant-ui/message-timing.js +1 -1
  24. package/components/assistant-ui/selection-toolbar.js +7 -7
  25. package/components/assistant-ui/thread-context.d.ts +3 -1
  26. package/components/assistant-ui/thread.js +50 -42
  27. package/components/avatar.js +42 -42
  28. package/components/badge.d.ts +5 -6
  29. package/components/badge.js +13 -76
  30. package/components/body-page-header.d.ts +15 -0
  31. package/components/body-page-header.js +24 -0
  32. package/components/brand-loader.d.ts +0 -3
  33. package/components/brand-loader.js +10 -32
  34. package/components/breadcrumbs.d.ts +0 -7
  35. package/components/breadcrumbs.js +54 -71
  36. package/components/button.d.ts +1 -1
  37. package/components/button.js +55 -49
  38. package/components/chart.js +298 -296
  39. package/components/chip.d.ts +13 -1
  40. package/components/chip.js +93 -80
  41. package/components/collection-header.d.ts +17 -0
  42. package/components/collection-header.js +31 -0
  43. package/components/connector-card.d.ts +6 -6
  44. package/components/connector-card.js +31 -32
  45. package/components/date-range-picker.d.ts +2 -1
  46. package/components/date-range-picker.js +158 -122
  47. package/components/divider.js +25 -25
  48. package/components/drawer.d.ts +6 -2
  49. package/components/drawer.js +61 -58
  50. package/components/dropdown.d.ts +1 -2
  51. package/components/dropdown.js +88 -89
  52. package/components/field.js +41 -36
  53. package/components/file-dropzone.js +1 -1
  54. package/components/index.d.ts +4 -4
  55. package/components/index.js +501 -549
  56. package/components/infinite-canvas.js +24 -24
  57. package/components/input-field.d.ts +18 -3
  58. package/components/input-field.js +88 -72
  59. package/components/input.js +32 -29
  60. package/components/modal.d.ts +31 -3
  61. package/components/modal.js +244 -170
  62. package/components/number-field.js +45 -42
  63. package/components/page-body.d.ts +12 -0
  64. package/components/page-body.js +18 -0
  65. package/components/pagination.js +36 -36
  66. package/components/pixel-blast-svg.js +71 -73
  67. package/components/select.d.ts +21 -0
  68. package/components/select.js +189 -148
  69. package/components/setting-row.d.ts +6 -5
  70. package/components/setting-row.js +33 -32
  71. package/components/sidebar.d.ts +2 -0
  72. package/components/sidebar.js +151 -141
  73. package/components/skeleton.js +8 -7
  74. package/components/slider.js +1 -1
  75. package/components/surface-loader.d.ts +11 -0
  76. package/components/surface-loader.js +35 -0
  77. package/components/table.d.ts +16 -10
  78. package/components/table.js +427 -412
  79. package/components/tabs.d.ts +2 -0
  80. package/components/tabs.js +160 -295
  81. package/components/textarea.js +9 -9
  82. package/components/toast.d.ts +1 -1
  83. package/components/toast.js +181 -118
  84. package/components/tree.d.ts +5 -1
  85. package/components/tree.js +54 -49
  86. package/components/typography.d.ts +4 -4
  87. package/components/typography.js +13 -13
  88. package/components/ui/button.d.ts +1 -1
  89. package/components/ui/button.js +4 -4
  90. package/components/ui/dialog.js +25 -25
  91. package/demo/components/add-to-artifact.js +6 -10
  92. package/lib/cn.js +11 -4
  93. package/lib/icons.d.ts +4 -0
  94. package/lib/icons.js +103 -102
  95. package/lib/interactive.d.ts +1 -1
  96. package/llms.txt +132 -188
  97. package/manifest.json +1719 -2831
  98. package/package.json +2 -2
  99. package/styles.css +362 -233
  100. package/theme.css +312 -177
  101. package/components/agent-icon.d.ts +0 -76
  102. package/components/agent-icon.js +0 -265
  103. package/components/ai-elements/queue.d.ts +0 -60
  104. package/components/ai-elements/queue.js +0 -193
  105. package/components/ai-elements/speech-input.d.ts +0 -16
  106. package/components/ai-elements/speech-input.js +0 -151
  107. package/components/ai-elements/task-progress.d.ts +0 -41
  108. package/components/ai-elements/task-progress.js +0 -224
  109. package/components/ai-elements/task.d.ts +0 -39
  110. package/components/ai-elements/task.js +0 -105
  111. package/components/ai-elements/voice.d.ts +0 -90
  112. package/components/ai-elements/voice.js +0 -496
  113. package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
  114. package/components/assistant-ui/follow-up-suggestions.js +0 -72
  115. package/components/assistant-ui/suggestions.d.ts +0 -7
  116. package/components/assistant-ui/suggestions.js +0 -19
  117. package/components/assistant-ui/voice.d.ts +0 -18
  118. package/components/link.d.ts +0 -14
  119. package/components/link.js +0 -72
  120. package/components/navbar.d.ts +0 -15
  121. package/components/navbar.js +0 -68
  122. package/components/pixel-icon.d.ts +0 -37
  123. package/components/pixel-icon.js +0 -859
@@ -1,191 +1,195 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as f, Fragment as L } from "react/jsx-runtime";
3
- import * as l from "react";
4
- import { useContext as D } from "react";
5
- import { ComposerAttachments as I, ComposerAddImage as k } from "./attachment.js";
6
- import { ComposerAddContext as F } from "./composer-add-context.js";
7
- import { ComposerHarness as B } from "./composer-harness.js";
8
- import { ComposerQuotePreview as H } from "./quote.js";
9
- import { ThreadComponentsContext as K } from "./thread-context.js";
10
- import { TooltipIconButton as S } from "./tooltip-icon-button.js";
11
- import { Button as N } from "../ui/button.js";
12
- import { ComposerPrimitive as s, MessagePrimitive as j, unstable_useComposerInput as q, AuiIf as _ } from "@assistant-ui/react";
13
- import { Mic as U, Stop as R, ArrowUp as Y } from "../../lib/icons.js";
14
- const O = 24, Q = 850, V = 1800, X = 3e3;
15
- function G(i) {
2
+ import { jsx as e, jsxs as p, Fragment as D } from "react/jsx-runtime";
3
+ import * as u from "react";
4
+ import { useContext as I } from "react";
5
+ import { ComposerAttachments as k, ComposerAddImage as F } from "./attachment.js";
6
+ import { ComposerAddContext as B } from "./composer-add-context.js";
7
+ import { ComposerHarness as H } from "./composer-harness.js";
8
+ import { ComposerQuotePreview as K } from "./quote.js";
9
+ import { ThreadComponentsContext as j } from "./thread-context.js";
10
+ import { TooltipIconButton as P } from "./tooltip-icon-button.js";
11
+ import { Button as A } from "../ui/button.js";
12
+ import { ComposerPrimitive as s, MessagePrimitive as q, unstable_useComposerInput as U, AuiIf as S } from "@assistant-ui/react";
13
+ import { Mic as Y, Stop as M, ArrowUp as O } from "../../lib/icons.js";
14
+ const Q = 24, V = 850, X = 1800, G = 3e3;
15
+ function J(a) {
16
16
  return Math.min(
17
- V,
18
- Math.max(Q, i.length * O)
17
+ X,
18
+ Math.max(V, a.length * Q)
19
19
  );
20
20
  }
21
- function J(i, t, p, b, T) {
22
- if (t <= 0 || i.length === 0)
23
- return p(i), { promise: Promise.resolve(), cancel: () => {
21
+ function W(a, n, r, f, x) {
22
+ if (n <= 0 || a.length === 0)
23
+ return r(a), { promise: Promise.resolve(), cancel: () => {
24
24
  } };
25
- let w = 0, v, o;
25
+ let v = 0, C, N;
26
26
  return {
27
- promise: new Promise((u) => {
28
- o = u;
29
- let y = performance.now(), h = null;
30
- const r = (c) => {
31
- if (b()) {
32
- u();
27
+ promise: new Promise((y) => {
28
+ N = y;
29
+ let m = performance.now(), h = null;
30
+ const T = (i) => {
31
+ if (f()) {
32
+ y();
33
33
  return;
34
34
  }
35
- if (T()) {
36
- h === null && (h = c), v = window.setTimeout(() => r(performance.now()), 100);
35
+ if (x()) {
36
+ h === null && (h = i), C = window.setTimeout(() => T(performance.now()), 100);
37
37
  return;
38
38
  }
39
- h !== null && (y += c - h, h = null);
40
- const a = Math.min(1, (c - y) / t), d = a >= 1 ? i.length : Math.floor(a * i.length);
41
- if (p(i.slice(0, d)), a >= 1) {
42
- u();
39
+ h !== null && (m += i - h, h = null);
40
+ const l = Math.min(1, (i - m) / n), c = l >= 1 ? a.length : Math.floor(l * a.length);
41
+ if (r(a.slice(0, c)), l >= 1) {
42
+ y();
43
43
  return;
44
44
  }
45
- w = requestAnimationFrame(r);
45
+ v = requestAnimationFrame(T);
46
46
  };
47
- w = requestAnimationFrame(r);
47
+ v = requestAnimationFrame(T);
48
48
  }),
49
49
  cancel: () => {
50
- cancelAnimationFrame(w), v !== void 0 && window.clearTimeout(v), o();
50
+ cancelAnimationFrame(v), C !== void 0 && window.clearTimeout(C), N();
51
51
  }
52
52
  };
53
53
  }
54
- const W = () => {
55
- const { setText: i } = q(), t = l.useContext(M), [p, b] = l.useState(
56
- (t == null ? void 0 : t[0]) ?? "Send a message…"
57
- ), [T, w] = l.useState(!1), v = l.useRef(null), [o, z] = l.useState(null), u = l.useRef(!1), y = l.useCallback((r) => {
58
- v.current = r, z(r);
54
+ const Z = ({
55
+ autoFocus: a = !0
56
+ }) => {
57
+ const { setText: n } = U(), r = u.useContext(L), [f, x] = u.useState(
58
+ (r == null ? void 0 : r[0]) ?? "Send a message…"
59
+ ), [v, C] = u.useState(!1), N = u.useRef(null), [o, y] = u.useState(null), m = u.useRef(!1), h = u.useCallback((i) => {
60
+ N.current = i, y(i);
59
61
  }, []);
60
- l.useEffect(() => {
62
+ u.useEffect(() => {
61
63
  if (!o) return;
62
- let r = 0;
63
- const c = (n) => {
64
- u.current = n || document.activeElement === o, w(n);
65
- }, a = () => {
66
- const n = o.value.length > 0;
67
- c(n);
68
- }, d = () => {
69
- window.clearTimeout(r), r = window.setTimeout(a, 0);
64
+ let i = 0;
65
+ const l = (t) => {
66
+ m.current = t || document.activeElement === o, C(t);
67
+ }, c = () => {
68
+ const t = o.value.length > 0;
69
+ l(t);
70
70
  }, g = () => {
71
- u.current = o.value.length > 0 || document.activeElement === o;
72
- }, E = (n, m) => {
73
- i(n), o.value = n, o.dispatchEvent(new Event("input", { bubbles: !0 })), c(n.length > 0), window.setTimeout(() => {
74
- document.activeElement === o && o.setSelectionRange(m, m);
71
+ window.clearTimeout(i), i = window.setTimeout(c, 0);
72
+ }, b = () => {
73
+ m.current = o.value.length > 0 || document.activeElement === o;
74
+ }, z = (t, d) => {
75
+ n(t), o.value = t, o.dispatchEvent(new Event("input", { bubbles: !0 })), l(t.length > 0), window.setTimeout(() => {
76
+ document.activeElement === o && o.setSelectionRange(d, d);
75
77
  }, 0);
76
- }, P = (n) => {
77
- const m = o.selectionStart ?? 0, A = o.selectionEnd ?? m;
78
- return m === A || n.inputType !== "deleteContentBackward" && n.inputType !== "deleteContentForward" && n.inputType !== "deleteByCut" ? !1 : (n.preventDefault(), E(
79
- o.value.slice(0, m) + o.value.slice(A),
80
- m
78
+ }, R = (t) => {
79
+ const d = o.selectionStart ?? 0, _ = o.selectionEnd ?? d;
80
+ return d === _ || t.inputType !== "deleteContentBackward" && t.inputType !== "deleteContentForward" && t.inputType !== "deleteByCut" ? !1 : (t.preventDefault(), z(
81
+ o.value.slice(0, d) + o.value.slice(_),
82
+ d
81
83
  ), !0);
82
- }, C = (n) => {
83
- if (!n.isComposing && !P(n)) {
84
- if (typeof n.data == "string" && n.data.length > 0) {
85
- c(!0);
84
+ }, E = (t) => {
85
+ if (!t.isComposing && !R(t)) {
86
+ if (typeof t.data == "string" && t.data.length > 0) {
87
+ l(!0);
86
88
  return;
87
89
  }
88
- d();
90
+ g();
89
91
  }
90
- }, x = (n) => {
91
- (n.metaKey || n.ctrlKey) && !n.altKey && n.key.toLowerCase() === "a" && (n.preventDefault(), o.select());
92
+ }, w = (t) => {
93
+ (t.metaKey || t.ctrlKey) && !t.altKey && t.key.toLowerCase() === "a" && (t.preventDefault(), o.select());
92
94
  };
93
- return a(), o.addEventListener("beforeinput", C), o.addEventListener("input", a), o.addEventListener("focus", g), o.addEventListener("blur", g), o.addEventListener("keydown", x), () => {
94
- window.clearTimeout(r), o.removeEventListener("beforeinput", C), o.removeEventListener("input", a), o.removeEventListener("focus", g), o.removeEventListener("blur", g), o.removeEventListener("keydown", x);
95
+ return c(), o.addEventListener("beforeinput", E), o.addEventListener("input", c), o.addEventListener("focus", b), o.addEventListener("blur", b), o.addEventListener("keydown", w), () => {
96
+ window.clearTimeout(i), o.removeEventListener("beforeinput", E), o.removeEventListener("input", c), o.removeEventListener("focus", b), o.removeEventListener("blur", b), o.removeEventListener("keydown", w);
95
97
  };
96
- }, [o, i]), l.useEffect(() => {
97
- var C;
98
- if (!(t != null && t.length)) {
99
- b("Send a message…");
98
+ }, [o, n]), u.useEffect(() => {
99
+ var E;
100
+ if (!(r != null && r.length)) {
101
+ x("Send a message…");
100
102
  return;
101
103
  }
102
- if ((C = window.matchMedia) != null && C.call(window, "(prefers-reduced-motion: reduce)").matches) {
103
- b(t[0]);
104
+ if ((E = window.matchMedia) != null && E.call(window, "(prefers-reduced-motion: reduce)").matches) {
105
+ x(r[0]);
104
106
  return;
105
107
  }
106
- let r = !1, c = 0, a, d;
107
- const g = (x) => new Promise((n) => {
108
- a = window.setTimeout(n, x);
109
- }), E = () => r;
108
+ let i = !1, l = 0, c, g;
109
+ const b = (w) => new Promise((t) => {
110
+ c = window.setTimeout(t, w);
111
+ }), z = () => i;
110
112
  return (async () => {
111
- for (; !r; ) {
112
- for (; u.current && !r; ) await g(100);
113
- if (r) return;
114
- const x = t[c];
115
- b("");
116
- const { promise: n, cancel: m } = J(
113
+ for (; !i; ) {
114
+ for (; m.current && !i; ) await b(100);
115
+ if (i) return;
116
+ const w = r[l];
117
+ x("");
118
+ const { promise: t, cancel: d } = W(
119
+ w,
120
+ J(w),
117
121
  x,
118
- G(x),
119
- b,
120
- E,
121
- () => u.current
122
+ z,
123
+ () => m.current
122
124
  );
123
- if (d = m, await n, d = void 0, r) return;
124
- if (!u.current) {
125
- if (await g(X), r) return;
126
- c = (c + 1) % t.length;
125
+ if (g = d, await t, g = void 0, i) return;
126
+ if (!m.current) {
127
+ if (await b(G), i) return;
128
+ l = (l + 1) % r.length;
127
129
  }
128
130
  }
129
131
  })(), () => {
130
- r = !0, d == null || d(), a && window.clearTimeout(a);
132
+ i = !0, g == null || g(), c && window.clearTimeout(c);
131
133
  };
132
- }, [t]);
133
- const h = !!(t != null && t.length) && !T;
134
- return /* @__PURE__ */ f("div", { className: "group/input relative", children: [
135
- h && /* @__PURE__ */ e(
134
+ }, [r]);
135
+ const T = !!(r != null && r.length) && !v;
136
+ return /* @__PURE__ */ p("div", { className: "group/input relative", children: [
137
+ T && /* @__PURE__ */ e(
136
138
  "div",
137
139
  {
138
140
  "aria-hidden": !0,
139
141
  className: "pointer-events-none absolute inset-x-2.5 top-1 z-0 line-clamp-2 max-h-(--composer-placeholder-max-h) overflow-hidden text-base text-muted-foreground/80 group-focus-within/input:hidden",
140
- children: /* @__PURE__ */ e("span", { children: p })
142
+ children: /* @__PURE__ */ e("span", { children: f })
141
143
  }
142
144
  ),
143
145
  /* @__PURE__ */ e(
144
146
  s.Input,
145
147
  {
146
- ref: y,
147
- placeholder: t != null && t.length ? "" : p,
148
+ ref: h,
149
+ placeholder: r != null && r.length ? "" : f,
148
150
  className: "aui-composer-input caret-primary placeholder:text-muted-foreground/80 relative z-10 max-h-32 min-h-14 w-full resize-none bg-transparent px-2.5 py-1 text-base text-foreground outline-none",
149
151
  rows: 1,
150
- autoFocus: !0,
152
+ autoFocus: a,
151
153
  enterKeyHint: "send",
152
154
  "aria-label": "Message input"
153
155
  }
154
156
  )
155
157
  ] });
156
- }, M = l.createContext(
158
+ }, L = u.createContext(
157
159
  void 0
158
160
  );
159
- function de({
160
- prompts: i,
161
- children: t
161
+ function me({
162
+ prompts: a,
163
+ children: n
162
164
  }) {
163
- return /* @__PURE__ */ e(M.Provider, { value: i, children: t });
165
+ return /* @__PURE__ */ e(L.Provider, { value: a, children: n });
164
166
  }
165
- const me = () => /* @__PURE__ */ e(s.Root, { className: "aui-composer-root animate-in fade-in slide-in-from-bottom-2 fill-mode-both relative flex w-full flex-col duration-200 delay-[420ms]", children: /* @__PURE__ */ e(s.Unstable_TriggerPopoverRoot, { children: /* @__PURE__ */ e(s.AttachmentDropzone, { asChild: !0, children: /* @__PURE__ */ f(
167
+ const pe = ({
168
+ autoFocus: a = !0
169
+ }) => /* @__PURE__ */ e(s.Root, { className: "aui-composer-root animate-in fade-in slide-in-from-bottom-2 fill-mode-both relative flex w-full flex-col duration-200 delay-[420ms]", children: /* @__PURE__ */ e(s.Unstable_TriggerPopoverRoot, { children: /* @__PURE__ */ e(s.AttachmentDropzone, { asChild: !0, children: /* @__PURE__ */ p(
166
170
  "div",
167
171
  {
168
172
  "data-slot": "aui_composer-shell",
169
- onMouseDown: (i) => {
170
- var p;
171
- i.target.closest("button, a, input, textarea, [role='button']") || (p = i.currentTarget.querySelector("textarea")) == null || p.focus();
173
+ onMouseDown: (n) => {
174
+ var f;
175
+ n.target.closest("button, a, input, textarea, [role='button']") || (f = n.currentTarget.querySelector("textarea")) == null || f.focus();
172
176
  },
173
- className: "border-border/60 data-[dragging=true]:border-ring focus-within:border-border relative flex w-full flex-col gap-2 rounded-(--composer-radius) border bg-(--composer-bg) p-(--composer-padding) shadow-[0_4px_16px_-8px_rgba(0,0,0,0.08),0_1px_2px_rgba(0,0,0,0.04)] transition-[border-color,box-shadow] focus-within:shadow-[0_6px_24px_-8px_rgba(0,0,0,0.12),0_1px_2px_rgba(0,0,0,0.05)] data-[dragging=true]:border-dashed data-[dragging=true]:bg-[color-mix(in_oklab,var(--color-accent)_50%,var(--color-background))]",
177
+ className: "border-wg2 data-[dragging=true]:border-ring focus-within:border-border relative flex w-full flex-col gap-2 rounded-(--composer-radius) border bg-(--composer-bg) p-(--composer-padding) shadow-400 transition-[border-color,box-shadow] data-[dragging=true]:border-dashed data-[dragging=true]:bg-[color-mix(in_oklab,var(--color-accent)_50%,var(--color-background))]",
174
178
  children: [
175
- /* @__PURE__ */ e(H, { className: "mx-0 mt-0" }),
176
- /* @__PURE__ */ e(I, {}),
177
- /* @__PURE__ */ e(W, {}),
178
- /* @__PURE__ */ e(Z, {})
179
+ /* @__PURE__ */ e(K, { className: "mx-0 mt-0" }),
180
+ /* @__PURE__ */ e(k, {}),
181
+ /* @__PURE__ */ e(Z, { autoFocus: a }),
182
+ /* @__PURE__ */ e($, {})
179
183
  ]
180
184
  }
181
- ) }) }) }), Z = () => {
182
- const { ComposerAccessories: i = $ } = D(K);
183
- return /* @__PURE__ */ f("div", { className: "aui-composer-action-wrapper relative flex items-center justify-between", children: [
184
- /* @__PURE__ */ e("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ e(i, {}) }),
185
- /* @__PURE__ */ f("div", { className: "flex items-center gap-1.5", children: [
186
- /* @__PURE__ */ f(_, { condition: (t) => t.thread.capabilities.dictation, children: [
187
- /* @__PURE__ */ e(_, { condition: (t) => t.composer.dictation == null, children: /* @__PURE__ */ e(s.Dictate, { asChild: !0, children: /* @__PURE__ */ e(
188
- S,
185
+ ) }) }) }), $ = () => {
186
+ const { ComposerAccessories: a = ee } = I(j);
187
+ return /* @__PURE__ */ p("div", { className: "aui-composer-action-wrapper relative flex items-center justify-between", children: [
188
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ e(a, {}) }),
189
+ /* @__PURE__ */ p("div", { className: "flex items-center gap-1.5", children: [
190
+ /* @__PURE__ */ p(S, { condition: (n) => n.thread.capabilities.dictation, children: [
191
+ /* @__PURE__ */ e(S, { condition: (n) => n.composer.dictation == null, children: /* @__PURE__ */ e(s.Dictate, { asChild: !0, children: /* @__PURE__ */ e(
192
+ P,
189
193
  {
190
194
  tooltip: "Voice input",
191
195
  side: "bottom",
@@ -194,11 +198,11 @@ const me = () => /* @__PURE__ */ e(s.Root, { className: "aui-composer-root anima
194
198
  size: "icon",
195
199
  className: "aui-composer-dictate size-7 rounded-full",
196
200
  "aria-label": "Start voice input",
197
- children: /* @__PURE__ */ e(U, { className: "aui-composer-dictate-icon size-4" })
201
+ children: /* @__PURE__ */ e(Y, { className: "aui-composer-dictate-icon size-4" })
198
202
  }
199
203
  ) }) }),
200
- /* @__PURE__ */ e(_, { condition: (t) => t.composer.dictation != null, children: /* @__PURE__ */ e(s.StopDictation, { asChild: !0, children: /* @__PURE__ */ e(
201
- S,
204
+ /* @__PURE__ */ e(S, { condition: (n) => n.composer.dictation != null, children: /* @__PURE__ */ e(s.StopDictation, { asChild: !0, children: /* @__PURE__ */ e(
205
+ P,
202
206
  {
203
207
  tooltip: "Stop dictation",
204
208
  side: "bottom",
@@ -207,12 +211,12 @@ const me = () => /* @__PURE__ */ e(s.Root, { className: "aui-composer-root anima
207
211
  size: "icon",
208
212
  className: "aui-composer-stop-dictation text-destructive size-7 rounded-full",
209
213
  "aria-label": "Stop voice input",
210
- children: /* @__PURE__ */ e(R, { className: "aui-composer-stop-dictation-icon size-3.5 animate-pulse fill-current" })
214
+ children: /* @__PURE__ */ e(M, { className: "aui-composer-stop-dictation-icon size-3.5 animate-pulse fill-current" })
211
215
  }
212
216
  ) }) })
213
217
  ] }),
214
- /* @__PURE__ */ e(_, { condition: (t) => !t.thread.isRunning, children: /* @__PURE__ */ e(s.Send, { asChild: !0, children: /* @__PURE__ */ e(
215
- S,
218
+ /* @__PURE__ */ e(S, { condition: (n) => !n.thread.isRunning, children: /* @__PURE__ */ e(s.Send, { asChild: !0, children: /* @__PURE__ */ e(
219
+ P,
216
220
  {
217
221
  tooltip: "Send message",
218
222
  side: "bottom",
@@ -221,32 +225,32 @@ const me = () => /* @__PURE__ */ e(s.Root, { className: "aui-composer-root anima
221
225
  size: "icon",
222
226
  className: "aui-composer-send size-7 rounded-full",
223
227
  "aria-label": "Send message",
224
- children: /* @__PURE__ */ e(Y, { className: "aui-composer-send-icon size-4.5" })
228
+ children: /* @__PURE__ */ e(O, { className: "aui-composer-send-icon size-4.5" })
225
229
  }
226
230
  ) }) }),
227
- /* @__PURE__ */ e(_, { condition: (t) => t.thread.isRunning, children: /* @__PURE__ */ e(s.Cancel, { asChild: !0, children: /* @__PURE__ */ e(
228
- N,
231
+ /* @__PURE__ */ e(S, { condition: (n) => n.thread.isRunning, children: /* @__PURE__ */ e(s.Cancel, { asChild: !0, children: /* @__PURE__ */ e(
232
+ A,
229
233
  {
230
234
  type: "button",
231
235
  variant: "default",
232
236
  size: "icon",
233
237
  className: "aui-composer-cancel size-7 rounded-full",
234
238
  "aria-label": "Stop generating",
235
- children: /* @__PURE__ */ e(R, { className: "aui-composer-cancel-icon size-3.5 fill-current" })
239
+ children: /* @__PURE__ */ e(M, { className: "aui-composer-cancel-icon size-3.5 fill-current" })
236
240
  }
237
241
  ) }) })
238
242
  ] })
239
243
  ] });
240
- }, $ = () => /* @__PURE__ */ f(L, { children: [
244
+ }, ee = () => /* @__PURE__ */ p(D, { children: [
245
+ /* @__PURE__ */ e(B, {}),
241
246
  /* @__PURE__ */ e(F, {}),
242
- /* @__PURE__ */ e(k, {}),
243
- /* @__PURE__ */ e(B, {})
244
- ] }), pe = () => /* @__PURE__ */ e(
245
- j.Root,
247
+ /* @__PURE__ */ e(H, {})
248
+ ] }), fe = () => /* @__PURE__ */ e(
249
+ q.Root,
246
250
  {
247
251
  "data-slot": "aui_edit-composer-wrapper",
248
252
  className: "flex flex-col px-2 [contain-intrinsic-size:auto_200px] [content-visibility:auto]",
249
- children: /* @__PURE__ */ f(s.Root, { className: "aui-edit-composer-root border-border/60 ms-auto flex w-full max-w-[85%] flex-col rounded-(--composer-radius) border bg-(--composer-bg) shadow-[0_4px_16px_-8px_rgba(0,0,0,0.08),0_1px_2px_rgba(0,0,0,0.04)]", children: [
253
+ children: /* @__PURE__ */ p(s.Root, { className: "aui-edit-composer-root border-border/60 ms-auto flex w-full max-w-[85%] flex-col rounded-(--composer-radius) border bg-(--composer-bg) shadow-200", children: [
250
254
  /* @__PURE__ */ e(
251
255
  s.Input,
252
256
  {
@@ -254,9 +258,9 @@ const me = () => /* @__PURE__ */ e(s.Root, { className: "aui-composer-root anima
254
258
  autoFocus: !0
255
259
  }
256
260
  ),
257
- /* @__PURE__ */ f("div", { className: "aui-edit-composer-footer mx-2.5 mb-2.5 flex items-center gap-1.5 self-end", children: [
261
+ /* @__PURE__ */ p("div", { className: "aui-edit-composer-footer mx-2.5 mb-2.5 flex items-center gap-1.5 self-end", children: [
258
262
  /* @__PURE__ */ e(s.Cancel, { asChild: !0, children: /* @__PURE__ */ e(
259
- N,
263
+ A,
260
264
  {
261
265
  variant: "ghost",
262
266
  size: "sm",
@@ -264,13 +268,13 @@ const me = () => /* @__PURE__ */ e(s.Root, { className: "aui-composer-root anima
264
268
  children: "Cancel"
265
269
  }
266
270
  ) }),
267
- /* @__PURE__ */ e(s.Send, { asChild: !0, children: /* @__PURE__ */ e(N, { size: "sm", className: "h-8 rounded-full px-3.5", children: "Update" }) })
271
+ /* @__PURE__ */ e(s.Send, { asChild: !0, children: /* @__PURE__ */ e(A, { size: "sm", className: "h-8 rounded-full px-3.5", children: "Update" }) })
268
272
  ] })
269
273
  ] })
270
274
  }
271
275
  );
272
276
  export {
273
- me as Composer,
274
- de as ComposerPlaceholdersProvider,
275
- pe as EditComposer
277
+ pe as Composer,
278
+ me as ComposerPlaceholdersProvider,
279
+ fe as EditComposer
276
280
  };