@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
|
@@ -1,28 +1,53 @@
|
|
|
1
1
|
import { Badge } from '../badge';
|
|
2
2
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../collapsible';
|
|
3
3
|
import { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* How steps connect to one another.
|
|
6
|
+
* - `rail` — a short vertical segment between icons (the default).
|
|
7
|
+
* - `tree` — the Tree connector: a continuous rail with an elbow reaching
|
|
8
|
+
* EVERY step, so a nested trace reads as branches of its parent.
|
|
9
|
+
* - `none` — no connector; an outer structure carries the hierarchy.
|
|
10
|
+
*/
|
|
11
|
+
export type ChainOfThoughtConnector = "rail" | "tree" | "none";
|
|
4
12
|
/**
|
|
5
13
|
* A step-first reasoning trace. The root is intentionally only a list: each
|
|
6
14
|
* step owns its own disclosure so the trace does not need a redundant global
|
|
7
15
|
* "Chain of Thought" trigger above it.
|
|
8
16
|
*/
|
|
9
|
-
export type ChainOfThoughtProps = ComponentProps<"div"
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
export type ChainOfThoughtProps = ComponentProps<"div"> & {
|
|
18
|
+
connector?: ChainOfThoughtConnector;
|
|
19
|
+
};
|
|
20
|
+
export declare const ChainOfThought: import('react').MemoExoticComponent<({ className, role, connector, children, ...props }: ChainOfThoughtProps) => import("react").JSX.Element>;
|
|
21
|
+
/**
|
|
22
|
+
* Step lifecycle mirrors the production work-trace statuses: steps stream in
|
|
23
|
+
* as `active`, settle to `complete`, and surface failures as `error` — an
|
|
24
|
+
* error is an execution fact shown in place, not a hidden retry.
|
|
25
|
+
*/
|
|
26
|
+
export type ChainOfThoughtStatus = "complete" | "active" | "pending" | "error";
|
|
12
27
|
export type ChainOfThoughtStepProps = ComponentProps<typeof Collapsible> & {
|
|
13
28
|
status?: ChainOfThoughtStatus;
|
|
14
29
|
};
|
|
15
|
-
export declare const ChainOfThoughtStep: import('react').MemoExoticComponent<({ className, defaultOpen, status, role, ...props }: ChainOfThoughtStepProps) => import("react").JSX.Element>;
|
|
30
|
+
export declare const ChainOfThoughtStep: import('react').MemoExoticComponent<({ className, defaultOpen, open: controlledOpen, onOpenChange, status, role, "aria-busy": ariaBusy, children, ...props }: ChainOfThoughtStepProps) => import("react").JSX.Element>;
|
|
16
31
|
export type ChainOfThoughtTriggerProps = Omit<ComponentProps<typeof CollapsibleTrigger>, "asChild" | "children"> & {
|
|
17
32
|
children: ReactNode;
|
|
18
33
|
/** Semantic icon rendered on the reasoning rail. */
|
|
19
34
|
leftIcon?: ReactNode;
|
|
20
35
|
/** Optional trailing metadata such as elapsed time. */
|
|
21
36
|
endContent?: ReactNode;
|
|
22
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Show the disclosure caret at the row's trailing edge, next to
|
|
39
|
+
* `endContent` — the same anatomy as `TaskTrigger`, so a nested trace reads
|
|
40
|
+
* consistently at both levels. With the caret on, the leading icon keeps its
|
|
41
|
+
* meaning instead of being swapped for an affordance.
|
|
42
|
+
*/
|
|
43
|
+
caret?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Swap the semantic icon for a disclosure affordance on hover. Ignored when
|
|
46
|
+
* `caret` is set — one affordance per row.
|
|
47
|
+
*/
|
|
23
48
|
swapIconOnHover?: boolean;
|
|
24
49
|
};
|
|
25
|
-
export declare const ChainOfThoughtTrigger: import('react').MemoExoticComponent<({ className, children, leftIcon, endContent, swapIconOnHover, ...props }: ChainOfThoughtTriggerProps) => import("react").JSX.Element>;
|
|
50
|
+
export declare const ChainOfThoughtTrigger: import('react').MemoExoticComponent<({ className, children, leftIcon, endContent, caret, swapIconOnHover, ...props }: ChainOfThoughtTriggerProps) => import("react").JSX.Element>;
|
|
26
51
|
export type ChainOfThoughtContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
27
52
|
export declare const ChainOfThoughtContent: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtContentProps) => import("react").JSX.Element>;
|
|
28
53
|
export type ChainOfThoughtItemProps = ComponentProps<"div">;
|
|
@@ -31,6 +56,63 @@ export type ChainOfThoughtSearchResultsProps = ComponentProps<"div">;
|
|
|
31
56
|
export declare const ChainOfThoughtSearchResults: import('react').MemoExoticComponent<({ className, ...props }: ChainOfThoughtSearchResultsProps) => import("react").JSX.Element>;
|
|
32
57
|
export type ChainOfThoughtSearchResultProps = ComponentProps<typeof Badge>;
|
|
33
58
|
export declare const ChainOfThoughtSearchResult: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtSearchResultProps) => import("react").JSX.Element>;
|
|
59
|
+
export type ChainOfThoughtEvidenceProps = Omit<ComponentProps<typeof Collapsible>, "title"> & {
|
|
60
|
+
/** Short artifact name, e.g. "NPA movement — last 4 quarters". */
|
|
61
|
+
title: ReactNode;
|
|
62
|
+
/** Stable result tag badge, e.g. "E1". */
|
|
63
|
+
tag?: ReactNode;
|
|
64
|
+
/** Trailing scale hint on the closed chip, e.g. "128 rows" or "chart". */
|
|
65
|
+
meta?: ReactNode;
|
|
66
|
+
/** Provenance footer under the preview, e.g. "core_banking.npa_movement". */
|
|
67
|
+
source?: ReactNode;
|
|
68
|
+
/** Execution failure shown in place of (or alongside) the preview. */
|
|
69
|
+
error?: ReactNode;
|
|
70
|
+
/** Swap the leading Database glyph. Errors default to a warning glyph. */
|
|
71
|
+
icon?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* A bounded evidence preview riding inside a step: collapsed to a one-line
|
|
75
|
+
* chip by default, expanding to a capped artifact preview (table, chart) with
|
|
76
|
+
* its provenance. Evidence stays visually secondary to the step's finding —
|
|
77
|
+
* supporting detail on demand, never competing with the answer. Errors render
|
|
78
|
+
* in place as facts.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ChainOfThoughtEvidence: import('react').MemoExoticComponent<({ className, title, tag, meta, source, error, icon, defaultOpen, children, ...props }: ChainOfThoughtEvidenceProps) => import("react").JSX.Element>;
|
|
81
|
+
export interface ChainOfThoughtEvidenceColumn {
|
|
82
|
+
key: string;
|
|
83
|
+
label: ReactNode;
|
|
84
|
+
align?: "start" | "end";
|
|
85
|
+
}
|
|
86
|
+
export type ChainOfThoughtEvidenceTableProps = Omit<ComponentProps<"div">, "children"> & {
|
|
87
|
+
columns: ChainOfThoughtEvidenceColumn[];
|
|
88
|
+
/** Bounded preview rows — the deterministic capped preview, never the full artifact. */
|
|
89
|
+
rows: Record<string, ReactNode>[];
|
|
90
|
+
/** True row count in the committed artifact; a truncation footer appears when larger. */
|
|
91
|
+
totalRows?: number;
|
|
92
|
+
/** Flags the matching row for emphasis, e.g. the risk outlier. */
|
|
93
|
+
flag?: {
|
|
94
|
+
key: string;
|
|
95
|
+
value: string | number;
|
|
96
|
+
color?: "default" | "danger" | "warning";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* The capped tabular preview inside {@link ChainOfThoughtEvidence}: sticky
|
|
101
|
+
* header, quiet surface fill, optional flagged-row emphasis, and an explicit
|
|
102
|
+
* "N of M rows" footer whenever the preview is truncated.
|
|
103
|
+
*/
|
|
104
|
+
export declare const ChainOfThoughtEvidenceTable: import('react').MemoExoticComponent<({ className, columns, rows, totalRows, flag, ...props }: ChainOfThoughtEvidenceTableProps) => import("react").JSX.Element>;
|
|
105
|
+
export type ChainOfThoughtMetricsProps = ComponentProps<"div">;
|
|
106
|
+
/** A quiet inline stat row — no fills, separated by spacing alone. */
|
|
107
|
+
export declare const ChainOfThoughtMetrics: import('react').MemoExoticComponent<({ className, role, ...props }: ChainOfThoughtMetricsProps) => import("react").JSX.Element>;
|
|
108
|
+
export type ChainOfThoughtMetricProps = Omit<ComponentProps<"div">, "children" | "color"> & {
|
|
109
|
+
label: ReactNode;
|
|
110
|
+
value: ReactNode;
|
|
111
|
+
/** Qualifier under the value, e.g. "of ₹8,400 Cr book". */
|
|
112
|
+
sub?: ReactNode;
|
|
113
|
+
color?: "default" | "danger" | "warning" | "success" | "info";
|
|
114
|
+
};
|
|
115
|
+
export declare const ChainOfThoughtMetric: import('react').MemoExoticComponent<({ className, label, value, sub, color, role, ...props }: ChainOfThoughtMetricProps) => import("react").JSX.Element>;
|
|
34
116
|
export type ChainOfThoughtImageProps = ComponentProps<"div"> & {
|
|
35
117
|
caption?: string;
|
|
36
118
|
};
|