@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.
- package/DESIGN.md +597 -0
- package/components/ai-elements/agent-trace.d.ts +2 -2
- package/components/ai-elements/agent-trace.js +164 -105
- package/components/ai-elements/chain-of-thought.d.ts +2 -2
- package/components/ai-elements/chain-of-thought.js +1 -1
- package/components/ai-elements/index.d.ts +0 -5
- package/components/ai-elements/inline-citation.js +1 -1
- package/components/alert.d.ts +6 -6
- package/components/alert.js +89 -53
- package/components/answer-sources.d.ts +2 -6
- package/components/answer-sources.js +58 -60
- package/components/answer.d.ts +5 -0
- package/components/answer.js +311 -271
- package/components/assistant-ui/action-bar.js +1 -1
- package/components/assistant-ui/attachment.js +11 -11
- package/components/assistant-ui/badge.js +18 -18
- package/components/assistant-ui/composer-harness.js +15 -20
- package/components/assistant-ui/composer-trigger-popover.js +9 -9
- package/components/assistant-ui/composer.d.ts +3 -1
- package/components/assistant-ui/composer.js +148 -144
- package/components/assistant-ui/image.js +61 -61
- package/components/assistant-ui/index.d.ts +0 -3
- package/components/assistant-ui/message-timing.js +1 -1
- package/components/assistant-ui/selection-toolbar.js +7 -7
- package/components/assistant-ui/thread-context.d.ts +3 -1
- package/components/assistant-ui/thread.js +50 -42
- package/components/avatar.js +42 -42
- package/components/badge.d.ts +5 -6
- package/components/badge.js +13 -76
- package/components/body-page-header.d.ts +15 -0
- package/components/body-page-header.js +24 -0
- package/components/brand-loader.d.ts +0 -3
- package/components/brand-loader.js +10 -32
- package/components/breadcrumbs.d.ts +0 -7
- package/components/breadcrumbs.js +54 -71
- package/components/button.d.ts +1 -1
- package/components/button.js +55 -49
- package/components/chart.js +298 -296
- package/components/chip.d.ts +13 -1
- package/components/chip.js +93 -80
- package/components/collection-header.d.ts +17 -0
- package/components/collection-header.js +31 -0
- package/components/connector-card.d.ts +6 -6
- package/components/connector-card.js +31 -32
- package/components/date-range-picker.d.ts +2 -1
- package/components/date-range-picker.js +158 -122
- package/components/divider.js +25 -25
- package/components/drawer.d.ts +6 -2
- package/components/drawer.js +61 -58
- package/components/dropdown.d.ts +1 -2
- package/components/dropdown.js +88 -89
- package/components/field.js +41 -36
- package/components/file-dropzone.js +1 -1
- package/components/index.d.ts +4 -4
- package/components/index.js +501 -549
- package/components/infinite-canvas.js +24 -24
- package/components/input-field.d.ts +18 -3
- package/components/input-field.js +88 -72
- package/components/input.js +32 -29
- package/components/modal.d.ts +31 -3
- package/components/modal.js +244 -170
- package/components/number-field.js +45 -42
- package/components/page-body.d.ts +12 -0
- package/components/page-body.js +18 -0
- package/components/pagination.js +36 -36
- package/components/pixel-blast-svg.js +71 -73
- package/components/select.d.ts +21 -0
- package/components/select.js +189 -148
- package/components/setting-row.d.ts +6 -5
- package/components/setting-row.js +33 -32
- package/components/sidebar.d.ts +2 -0
- package/components/sidebar.js +151 -141
- package/components/skeleton.js +8 -7
- package/components/slider.js +1 -1
- package/components/surface-loader.d.ts +11 -0
- package/components/surface-loader.js +35 -0
- package/components/table.d.ts +16 -10
- package/components/table.js +427 -412
- package/components/tabs.d.ts +2 -0
- package/components/tabs.js +160 -295
- package/components/textarea.js +9 -9
- package/components/toast.d.ts +1 -1
- package/components/toast.js +181 -118
- package/components/tree.d.ts +5 -1
- package/components/tree.js +54 -49
- package/components/typography.d.ts +4 -4
- package/components/typography.js +13 -13
- package/components/ui/button.d.ts +1 -1
- package/components/ui/button.js +4 -4
- package/components/ui/dialog.js +25 -25
- package/demo/components/add-to-artifact.js +6 -10
- package/lib/cn.js +11 -4
- package/lib/icons.d.ts +4 -0
- package/lib/icons.js +103 -102
- package/lib/interactive.d.ts +1 -1
- package/llms.txt +132 -188
- package/manifest.json +1719 -2831
- package/package.json +2 -2
- package/styles.css +362 -233
- package/theme.css +312 -177
- package/components/agent-icon.d.ts +0 -76
- package/components/agent-icon.js +0 -265
- package/components/ai-elements/queue.d.ts +0 -60
- package/components/ai-elements/queue.js +0 -193
- package/components/ai-elements/speech-input.d.ts +0 -16
- package/components/ai-elements/speech-input.js +0 -151
- package/components/ai-elements/task-progress.d.ts +0 -41
- package/components/ai-elements/task-progress.js +0 -224
- package/components/ai-elements/task.d.ts +0 -39
- package/components/ai-elements/task.js +0 -105
- package/components/ai-elements/voice.d.ts +0 -90
- package/components/ai-elements/voice.js +0 -496
- package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
- package/components/assistant-ui/follow-up-suggestions.js +0 -72
- package/components/assistant-ui/suggestions.d.ts +0 -7
- package/components/assistant-ui/suggestions.js +0 -19
- package/components/assistant-ui/voice.d.ts +0 -18
- package/components/link.d.ts +0 -14
- package/components/link.js +0 -72
- package/components/navbar.d.ts +0 -15
- package/components/navbar.js +0 -68
- package/components/pixel-icon.d.ts +0 -37
- package/components/pixel-icon.js +0 -859
|
@@ -1,191 +1,195 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { ComposerAttachments as
|
|
6
|
-
import { ComposerAddContext as
|
|
7
|
-
import { ComposerHarness as
|
|
8
|
-
import { ComposerQuotePreview as
|
|
9
|
-
import { ThreadComponentsContext as
|
|
10
|
-
import { TooltipIconButton as
|
|
11
|
-
import { Button as
|
|
12
|
-
import { ComposerPrimitive as s, MessagePrimitive as
|
|
13
|
-
import { Mic as
|
|
14
|
-
const
|
|
15
|
-
function
|
|
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
|
-
|
|
18
|
-
Math.max(
|
|
17
|
+
X,
|
|
18
|
+
Math.max(V, a.length * Q)
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
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
|
|
25
|
+
let v = 0, C, N;
|
|
26
26
|
return {
|
|
27
|
-
promise: new Promise((
|
|
28
|
-
|
|
29
|
-
let
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
-
|
|
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 (
|
|
36
|
-
h === null && (h =
|
|
35
|
+
if (x()) {
|
|
36
|
+
h === null && (h = i), C = window.setTimeout(() => T(performance.now()), 100);
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
h !== null && (
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
|
|
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
|
-
|
|
45
|
+
v = requestAnimationFrame(T);
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
v = requestAnimationFrame(T);
|
|
48
48
|
}),
|
|
49
49
|
cancel: () => {
|
|
50
|
-
cancelAnimationFrame(
|
|
50
|
+
cancelAnimationFrame(v), C !== void 0 && window.clearTimeout(C), N();
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
62
|
+
u.useEffect(() => {
|
|
61
63
|
if (!o) return;
|
|
62
|
-
let
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
const
|
|
67
|
-
|
|
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
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
},
|
|
77
|
-
const
|
|
78
|
-
return
|
|
79
|
-
o.value.slice(0,
|
|
80
|
-
|
|
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
|
-
},
|
|
83
|
-
if (!
|
|
84
|
-
if (typeof
|
|
85
|
-
|
|
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
|
-
|
|
90
|
+
g();
|
|
89
91
|
}
|
|
90
|
-
},
|
|
91
|
-
(
|
|
92
|
+
}, w = (t) => {
|
|
93
|
+
(t.metaKey || t.ctrlKey) && !t.altKey && t.key.toLowerCase() === "a" && (t.preventDefault(), o.select());
|
|
92
94
|
};
|
|
93
|
-
return
|
|
94
|
-
window.clearTimeout(
|
|
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,
|
|
97
|
-
var
|
|
98
|
-
if (!(
|
|
99
|
-
|
|
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 ((
|
|
103
|
-
|
|
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
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
}),
|
|
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 (; !
|
|
112
|
-
for (;
|
|
113
|
-
if (
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
const { promise:
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
E,
|
|
121
|
-
() => u.current
|
|
122
|
+
z,
|
|
123
|
+
() => m.current
|
|
122
124
|
);
|
|
123
|
-
if (
|
|
124
|
-
if (!
|
|
125
|
-
if (await
|
|
126
|
-
|
|
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
|
-
|
|
132
|
+
i = !0, g == null || g(), c && window.clearTimeout(c);
|
|
131
133
|
};
|
|
132
|
-
}, [
|
|
133
|
-
const
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
|
|
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:
|
|
142
|
+
children: /* @__PURE__ */ e("span", { children: f })
|
|
141
143
|
}
|
|
142
144
|
),
|
|
143
145
|
/* @__PURE__ */ e(
|
|
144
146
|
s.Input,
|
|
145
147
|
{
|
|
146
|
-
ref:
|
|
147
|
-
placeholder:
|
|
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:
|
|
152
|
+
autoFocus: a,
|
|
151
153
|
enterKeyHint: "send",
|
|
152
154
|
"aria-label": "Message input"
|
|
153
155
|
}
|
|
154
156
|
)
|
|
155
157
|
] });
|
|
156
|
-
},
|
|
158
|
+
}, L = u.createContext(
|
|
157
159
|
void 0
|
|
158
160
|
);
|
|
159
|
-
function
|
|
160
|
-
prompts:
|
|
161
|
-
children:
|
|
161
|
+
function me({
|
|
162
|
+
prompts: a,
|
|
163
|
+
children: n
|
|
162
164
|
}) {
|
|
163
|
-
return /* @__PURE__ */ e(
|
|
165
|
+
return /* @__PURE__ */ e(L.Provider, { value: a, children: n });
|
|
164
166
|
}
|
|
165
|
-
const
|
|
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: (
|
|
170
|
-
var
|
|
171
|
-
|
|
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-
|
|
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(
|
|
176
|
-
/* @__PURE__ */ e(
|
|
177
|
-
/* @__PURE__ */ e(
|
|
178
|
-
/* @__PURE__ */ e(
|
|
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
|
-
) }) }) }),
|
|
182
|
-
const { ComposerAccessories:
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ e(
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */ e(
|
|
188
|
-
|
|
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(
|
|
201
|
+
children: /* @__PURE__ */ e(Y, { className: "aui-composer-dictate-icon size-4" })
|
|
198
202
|
}
|
|
199
203
|
) }) }),
|
|
200
|
-
/* @__PURE__ */ e(
|
|
201
|
-
|
|
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(
|
|
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(
|
|
215
|
-
|
|
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(
|
|
228
|
+
children: /* @__PURE__ */ e(O, { className: "aui-composer-send-icon size-4.5" })
|
|
225
229
|
}
|
|
226
230
|
) }) }),
|
|
227
|
-
/* @__PURE__ */ e(
|
|
228
|
-
|
|
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(
|
|
239
|
+
children: /* @__PURE__ */ e(M, { className: "aui-composer-cancel-icon size-3.5 fill-current" })
|
|
236
240
|
}
|
|
237
241
|
) }) })
|
|
238
242
|
] })
|
|
239
243
|
] });
|
|
240
|
-
},
|
|
244
|
+
}, ee = () => /* @__PURE__ */ p(D, { children: [
|
|
245
|
+
/* @__PURE__ */ e(B, {}),
|
|
241
246
|
/* @__PURE__ */ e(F, {}),
|
|
242
|
-
/* @__PURE__ */ e(
|
|
243
|
-
|
|
244
|
-
|
|
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__ */
|
|
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__ */
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
274
|
-
|
|
275
|
-
|
|
277
|
+
pe as Composer,
|
|
278
|
+
me as ComposerPlaceholdersProvider,
|
|
279
|
+
fe as EditComposer
|
|
276
280
|
};
|