@actioneer/ads 0.2.4 → 0.3.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/components/ai-elements/chain-of-thought.d.ts +88 -6
- package/components/ai-elements/chain-of-thought.js +370 -107
- package/components/ai-elements/chart.d.ts +30 -0
- package/components/ai-elements/chart.js +303 -0
- package/components/ai-elements/index.d.ts +2 -0
- package/components/ai-elements/message.d.ts +12 -2
- package/components/ai-elements/message.js +133 -100
- package/components/ai-elements/research-activity.d.ts +62 -0
- package/components/ai-elements/research-activity.js +278 -0
- package/components/ai-elements/task.d.ts +7 -3
- package/components/ai-elements/task.js +84 -52
- package/components/ai-elements/tool.js +39 -35
- package/components/ai-elements/voice.d.ts +7 -1
- package/components/ai-elements/voice.js +234 -180
- package/components/alert.js +28 -16
- package/components/answer.d.ts +16 -0
- package/components/answer.js +273 -249
- package/components/assistant-ui/attachment.js +5 -1
- package/components/assistant-ui/composer-deep-research.js +44 -29
- package/components/assistant-ui/composer-harness.js +45 -27
- package/components/assistant-ui/composer.js +16 -16
- package/components/assistant-ui/index.d.ts +0 -1
- package/components/assistant-ui/message.d.ts +7 -0
- package/components/assistant-ui/message.js +36 -36
- package/components/assistant-ui/thread.js +1 -1
- package/components/brand-texture.d.ts +37 -0
- package/components/brand-texture.js +54 -0
- package/components/code-block.d.ts +42 -0
- package/components/code-block.js +235 -0
- package/components/drawer.d.ts +1 -1
- package/components/file-dropzone.d.ts +32 -0
- package/components/file-dropzone.js +134 -0
- package/components/index.d.ts +10 -0
- package/components/index.js +482 -433
- package/components/infinite-canvas.d.ts +50 -0
- package/components/infinite-canvas.js +215 -0
- package/components/page-header.d.ts +22 -0
- package/components/page-header.js +52 -0
- package/components/resizable-panel.d.ts +29 -0
- package/components/resizable-panel.js +102 -0
- package/components/reveal.d.ts +36 -0
- package/components/reveal.js +35 -0
- package/components/scroll-area.d.ts +19 -0
- package/components/scroll-area.js +57 -0
- package/components/setting-row.d.ts +35 -0
- package/components/setting-row.js +86 -0
- package/components/sidebar.js +131 -131
- package/components/stepper.d.ts +40 -0
- package/components/stepper.js +102 -0
- package/components/table.js +16 -15
- package/components/tabs.js +1 -1
- package/lib/icons.d.ts +12 -0
- package/lib/icons.js +98 -95
- package/lib/motion.d.ts +7 -3
- package/lib/motion.js +29 -27
- package/llms.txt +123 -28
- package/manifest.json +883 -68
- package/package.json +2 -2
- package/styles.css +179 -30
- package/theme.css +29 -17
- package/components/assistant-ui/smart-message-text.d.ts +0 -15
- package/components/assistant-ui/smart-message-text.js +0 -29
package/components/alert.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import { cva as
|
|
4
|
+
import { cva as u } from "class-variance-authority";
|
|
5
5
|
import { Info as l, WarningCircle as g, Warning as p, CheckCircle as x, Close as v } from "../lib/icons.js";
|
|
6
6
|
import { cn as n } from "../lib/cn.js";
|
|
7
|
-
const h =
|
|
7
|
+
const h = u(
|
|
8
8
|
"flex w-full items-start gap-4 rounded-2xl bg-muted px-4 py-3",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -25,17 +25,17 @@ const h = m(
|
|
|
25
25
|
danger: g,
|
|
26
26
|
info: l
|
|
27
27
|
}, N = i.forwardRef(
|
|
28
|
-
({ className:
|
|
29
|
-
const f = w[
|
|
30
|
-
return /* @__PURE__ */
|
|
28
|
+
({ className: t, variant: r = "default", icon: a, onClose: s, children: o, ...c }, d) => {
|
|
29
|
+
const f = w[r ?? "default"];
|
|
30
|
+
return /* @__PURE__ */ m(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
ref: d,
|
|
34
34
|
role: "alert",
|
|
35
|
-
className: n(h({ variant:
|
|
35
|
+
className: n(h({ variant: r }), t),
|
|
36
36
|
...c,
|
|
37
37
|
children: [
|
|
38
|
-
/* @__PURE__ */ e("span", { className: "flex shrink-0 select-none items-center justify-center
|
|
38
|
+
/* @__PURE__ */ e("span", { className: "flex shrink-0 select-none items-center justify-center py-1 text-(--alert-accent) [&_svg]:size-4", children: a ?? /* @__PURE__ */ e(f, { "aria-hidden": !0 }) }),
|
|
39
39
|
/* @__PURE__ */ e("div", { className: "flex min-w-0 grow flex-col items-start", children: o }),
|
|
40
40
|
s && /* @__PURE__ */ e(
|
|
41
41
|
"button",
|
|
@@ -58,19 +58,31 @@ const h = m(
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
N.displayName = "Alert";
|
|
61
|
-
const
|
|
61
|
+
const y = i.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
62
62
|
"p",
|
|
63
63
|
{
|
|
64
64
|
ref: a,
|
|
65
|
-
className: n("text-xs font-medium leading-6 text-(--alert-accent)",
|
|
66
|
-
...
|
|
65
|
+
className: n("text-xs font-medium leading-6 text-(--alert-accent)", t),
|
|
66
|
+
...r
|
|
67
67
|
}
|
|
68
68
|
));
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
69
|
+
y.displayName = "AlertTitle";
|
|
70
|
+
const b = i.forwardRef(({ className: t, ...r }, a) => (
|
|
71
|
+
// leading-normal (150%) — the description is the only part of an alert that
|
|
72
|
+
// regularly wraps, and the text-xs default (138%) sets multi-line copy too
|
|
73
|
+
// tight to scan.
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
"p",
|
|
76
|
+
{
|
|
77
|
+
ref: a,
|
|
78
|
+
className: n("text-xs leading-normal text-muted-foreground", t),
|
|
79
|
+
...r
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
));
|
|
83
|
+
b.displayName = "AlertDescription";
|
|
72
84
|
export {
|
|
73
85
|
N as Alert,
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
b as AlertDescription,
|
|
87
|
+
y as AlertTitle
|
|
76
88
|
};
|
package/components/answer.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const AnswerSourceSchema: z.ZodObject<{
|
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
label: z.ZodString;
|
|
22
22
|
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
href: z.ZodOptional<z.ZodString>;
|
|
23
24
|
}, z.core.$strip>;
|
|
24
25
|
export declare const AnswerSignalSchema: z.ZodObject<{
|
|
25
26
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -104,6 +105,7 @@ export declare const ComparisonAnswerSchema: z.ZodObject<{
|
|
|
104
105
|
id: z.ZodString;
|
|
105
106
|
label: z.ZodString;
|
|
106
107
|
description: z.ZodOptional<z.ZodString>;
|
|
108
|
+
href: z.ZodOptional<z.ZodString>;
|
|
107
109
|
}, z.core.$strip>>>;
|
|
108
110
|
}, z.core.$strip>;
|
|
109
111
|
export declare const TrendAnswerSchema: z.ZodObject<{
|
|
@@ -203,6 +205,7 @@ export declare const TrendAnswerSchema: z.ZodObject<{
|
|
|
203
205
|
id: z.ZodString;
|
|
204
206
|
label: z.ZodString;
|
|
205
207
|
description: z.ZodOptional<z.ZodString>;
|
|
208
|
+
href: z.ZodOptional<z.ZodString>;
|
|
206
209
|
}, z.core.$strip>>>;
|
|
207
210
|
}, z.core.$strip>;
|
|
208
211
|
export declare const StatusAnswerSchema: z.ZodObject<{
|
|
@@ -257,6 +260,7 @@ export declare const StatusAnswerSchema: z.ZodObject<{
|
|
|
257
260
|
id: z.ZodString;
|
|
258
261
|
label: z.ZodString;
|
|
259
262
|
description: z.ZodOptional<z.ZodString>;
|
|
263
|
+
href: z.ZodOptional<z.ZodString>;
|
|
260
264
|
}, z.core.$strip>>>;
|
|
261
265
|
}, z.core.$strip>;
|
|
262
266
|
export declare const BreakdownAnswerSchema: z.ZodObject<{
|
|
@@ -303,6 +307,7 @@ export declare const BreakdownAnswerSchema: z.ZodObject<{
|
|
|
303
307
|
id: z.ZodString;
|
|
304
308
|
label: z.ZodString;
|
|
305
309
|
description: z.ZodOptional<z.ZodString>;
|
|
310
|
+
href: z.ZodOptional<z.ZodString>;
|
|
306
311
|
}, z.core.$strip>>>;
|
|
307
312
|
}, z.core.$strip>;
|
|
308
313
|
export declare const ExplanationAnswerSchema: z.ZodObject<{
|
|
@@ -336,6 +341,7 @@ export declare const ExplanationAnswerSchema: z.ZodObject<{
|
|
|
336
341
|
id: z.ZodString;
|
|
337
342
|
label: z.ZodString;
|
|
338
343
|
description: z.ZodOptional<z.ZodString>;
|
|
344
|
+
href: z.ZodOptional<z.ZodString>;
|
|
339
345
|
}, z.core.$strip>>>;
|
|
340
346
|
}, z.core.$strip>;
|
|
341
347
|
/** The complete model-facing contract. No free-form layout nodes are allowed. */
|
|
@@ -410,6 +416,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
410
416
|
id: z.ZodString;
|
|
411
417
|
label: z.ZodString;
|
|
412
418
|
description: z.ZodOptional<z.ZodString>;
|
|
419
|
+
href: z.ZodOptional<z.ZodString>;
|
|
413
420
|
}, z.core.$strip>>>;
|
|
414
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
415
422
|
kind: z.ZodLiteral<"trend">;
|
|
@@ -508,6 +515,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
508
515
|
id: z.ZodString;
|
|
509
516
|
label: z.ZodString;
|
|
510
517
|
description: z.ZodOptional<z.ZodString>;
|
|
518
|
+
href: z.ZodOptional<z.ZodString>;
|
|
511
519
|
}, z.core.$strip>>>;
|
|
512
520
|
}, z.core.$strip>, z.ZodObject<{
|
|
513
521
|
kind: z.ZodLiteral<"status">;
|
|
@@ -561,6 +569,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
561
569
|
id: z.ZodString;
|
|
562
570
|
label: z.ZodString;
|
|
563
571
|
description: z.ZodOptional<z.ZodString>;
|
|
572
|
+
href: z.ZodOptional<z.ZodString>;
|
|
564
573
|
}, z.core.$strip>>>;
|
|
565
574
|
}, z.core.$strip>, z.ZodObject<{
|
|
566
575
|
kind: z.ZodLiteral<"breakdown">;
|
|
@@ -606,6 +615,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
606
615
|
id: z.ZodString;
|
|
607
616
|
label: z.ZodString;
|
|
608
617
|
description: z.ZodOptional<z.ZodString>;
|
|
618
|
+
href: z.ZodOptional<z.ZodString>;
|
|
609
619
|
}, z.core.$strip>>>;
|
|
610
620
|
}, z.core.$strip>, z.ZodObject<{
|
|
611
621
|
kind: z.ZodLiteral<"explanation">;
|
|
@@ -638,6 +648,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
638
648
|
id: z.ZodString;
|
|
639
649
|
label: z.ZodString;
|
|
640
650
|
description: z.ZodOptional<z.ZodString>;
|
|
651
|
+
href: z.ZodOptional<z.ZodString>;
|
|
641
652
|
}, z.core.$strip>>>;
|
|
642
653
|
}, z.core.$strip>], "kind">;
|
|
643
654
|
export type AnswerTone = z.infer<typeof AnswerToneSchema>;
|
|
@@ -724,6 +735,7 @@ export declare const answerTool: {
|
|
|
724
735
|
id: z.ZodString;
|
|
725
736
|
label: z.ZodString;
|
|
726
737
|
description: z.ZodOptional<z.ZodString>;
|
|
738
|
+
href: z.ZodOptional<z.ZodString>;
|
|
727
739
|
}, z.core.$strip>>>;
|
|
728
740
|
}, z.core.$strip>, z.ZodObject<{
|
|
729
741
|
kind: z.ZodLiteral<"trend">;
|
|
@@ -822,6 +834,7 @@ export declare const answerTool: {
|
|
|
822
834
|
id: z.ZodString;
|
|
823
835
|
label: z.ZodString;
|
|
824
836
|
description: z.ZodOptional<z.ZodString>;
|
|
837
|
+
href: z.ZodOptional<z.ZodString>;
|
|
825
838
|
}, z.core.$strip>>>;
|
|
826
839
|
}, z.core.$strip>, z.ZodObject<{
|
|
827
840
|
kind: z.ZodLiteral<"status">;
|
|
@@ -875,6 +888,7 @@ export declare const answerTool: {
|
|
|
875
888
|
id: z.ZodString;
|
|
876
889
|
label: z.ZodString;
|
|
877
890
|
description: z.ZodOptional<z.ZodString>;
|
|
891
|
+
href: z.ZodOptional<z.ZodString>;
|
|
878
892
|
}, z.core.$strip>>>;
|
|
879
893
|
}, z.core.$strip>, z.ZodObject<{
|
|
880
894
|
kind: z.ZodLiteral<"breakdown">;
|
|
@@ -920,6 +934,7 @@ export declare const answerTool: {
|
|
|
920
934
|
id: z.ZodString;
|
|
921
935
|
label: z.ZodString;
|
|
922
936
|
description: z.ZodOptional<z.ZodString>;
|
|
937
|
+
href: z.ZodOptional<z.ZodString>;
|
|
923
938
|
}, z.core.$strip>>>;
|
|
924
939
|
}, z.core.$strip>, z.ZodObject<{
|
|
925
940
|
kind: z.ZodLiteral<"explanation">;
|
|
@@ -952,6 +967,7 @@ export declare const answerTool: {
|
|
|
952
967
|
id: z.ZodString;
|
|
953
968
|
label: z.ZodString;
|
|
954
969
|
description: z.ZodOptional<z.ZodString>;
|
|
970
|
+
href: z.ZodOptional<z.ZodString>;
|
|
955
971
|
}, z.core.$strip>>>;
|
|
956
972
|
}, z.core.$strip>], "kind">;
|
|
957
973
|
};
|