@actioneer/ads 0.5.5 → 0.5.7
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/agent-icon.js +3 -2
- package/components/ai-elements/chain-of-thought-icon.d.ts +10 -12
- package/components/ai-elements/chain-of-thought-icon.js +341 -201
- package/components/ai-elements/chain-of-thought.d.ts +1 -1
- package/components/answer-sources.d.ts +42 -0
- package/components/answer-sources.js +111 -0
- package/components/answer.d.ts +1 -0
- package/components/answer.js +665 -671
- package/components/assistant-ui/answer-tool-ui.js +11 -7
- package/components/assistant-ui/attachment.js +39 -39
- package/components/assistant-ui/composer-harness.js +5 -4
- package/components/assistant-ui/follow-up-suggestions.d.ts +5 -1
- package/components/assistant-ui/follow-up-suggestions.js +47 -19
- package/components/assistant-ui/thread-context.d.ts +2 -0
- package/components/assistant-ui/thread.js +41 -40
- package/components/avatar.js +14 -14
- package/components/dropdown.d.ts +1 -1
- package/components/dropdown.js +1 -1
- package/components/empty-state.d.ts +4 -4
- package/components/field.js +16 -16
- package/components/index.d.ts +1 -0
- package/components/index.js +414 -408
- package/components/infinite-canvas.js +1 -1
- package/components/pixel-icon.d.ts +3 -1
- package/components/pixel-icon.js +294 -214
- package/components/segmented.d.ts +4 -1
- package/components/segmented.js +9 -8
- package/components/sidebar.d.ts +2 -2
- package/components/switch.js +22 -4
- package/components/table.d.ts +15 -7
- package/components/table.js +313 -199
- package/components/textarea.js +1 -2
- package/components/tooltip.js +1 -1
- package/components/ui/tooltip.js +5 -5
- package/lib/icons.d.ts +8 -0
- package/lib/icons.js +103 -101
- package/llms.txt +18 -7
- package/manifest.json +125 -13
- package/package.json +1 -1
- package/styles.css +42 -47
- package/theme.css +24 -45
package/components/agent-icon.js
CHANGED
|
@@ -134,8 +134,8 @@ const Y = [
|
|
|
134
134
|
blink (the Field Agent greeter behaviour). Pure CSS on :hover; the
|
|
135
135
|
pointer-tracking rule above wins on the eyes when the pointer is active. */
|
|
136
136
|
@media (hover: hover) and (pointer: fine) {
|
|
137
|
-
.agent-avatar:hover .agent-avatar__svg { animation: ads-agent-cute-hello 680ms cubic-bezier(0.2, 0.82, 0.24, 1) both; }
|
|
138
|
-
.agent-avatar[data-agent-state="default"]:hover .agent-avatar__eyes { animation: ads-agent-cute-blink 680ms ease-in-out both; }
|
|
137
|
+
.agent-avatar[data-agent-interactive="true"]:hover .agent-avatar__svg { animation: ads-agent-cute-hello 680ms cubic-bezier(0.2, 0.82, 0.24, 1) both; }
|
|
138
|
+
.agent-avatar[data-agent-interactive="true"][data-agent-state="default"]:hover .agent-avatar__eyes { animation: ads-agent-cute-blink 680ms ease-in-out both; }
|
|
139
139
|
}
|
|
140
140
|
@media (prefers-reduced-motion: reduce) {
|
|
141
141
|
.agent-avatar__character,
|
|
@@ -217,6 +217,7 @@ const ee = i.forwardRef(
|
|
|
217
217
|
),
|
|
218
218
|
"data-agent-icon": a.id,
|
|
219
219
|
"data-agent-state": R,
|
|
220
|
+
"data-agent-interactive": w ? "true" : "false",
|
|
220
221
|
role: "img",
|
|
221
222
|
"aria-label": `${a.name} agent icon`,
|
|
222
223
|
tabIndex: w ? 0 : void 0,
|
|
@@ -12,31 +12,29 @@ export interface ChainOfThoughtIconProps extends Omit<React.SVGAttributes<SVGSVG
|
|
|
12
12
|
state: ChainOfThoughtState;
|
|
13
13
|
/** Defaults to the grid's native 16 px size. */
|
|
14
14
|
size?: number | string;
|
|
15
|
-
/** Active steps animate;
|
|
15
|
+
/** Active steps animate; settled steps hold the stage's authored frame. */
|
|
16
16
|
animated?: boolean;
|
|
17
|
-
/** Accessible name. Omit
|
|
17
|
+
/** Accessible name. Omit when adjacent text already names the state. */
|
|
18
18
|
label?: string;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* One
|
|
22
|
-
*
|
|
23
|
-
* `text-*` class on an ancestor, not a prop. `prefers-reduced-motion` is
|
|
24
|
-
* already handled inside the source markup.
|
|
21
|
+
* One currentColor, dependency-free trace icon. Reduced motion holds the
|
|
22
|
+
* same representative frame used after the stage settles.
|
|
25
23
|
*/
|
|
26
24
|
export declare const ChainOfThoughtIcon: React.ForwardRefExoticComponent<ChainOfThoughtIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
27
25
|
export interface TraceStateIconProps extends Omit<ChainOfThoughtIconProps, "state"> {
|
|
28
26
|
/** Explicit chain-of-thought stage, when known. */
|
|
29
27
|
stage?: ActiveChainOfThoughtState;
|
|
30
|
-
/** Tool name
|
|
28
|
+
/** Tool name used to infer a stage when `stage` is absent. */
|
|
31
29
|
toolName?: string;
|
|
32
|
-
/**
|
|
30
|
+
/** Step status controls motion while preserving the semantic stage. */
|
|
33
31
|
status?: "active" | "complete" | "pending" | "error";
|
|
34
|
-
/** Whole-chain outcome. Do not use this for
|
|
32
|
+
/** Whole-chain outcome. Do not use this for a completed individual step. */
|
|
35
33
|
outcome?: "completed" | "paused" | "incomplete";
|
|
36
34
|
}
|
|
37
35
|
/**
|
|
38
|
-
* Resolves a semantic stage from an explicit state or tool name.
|
|
39
|
-
*
|
|
40
|
-
*
|
|
36
|
+
* Resolves a semantic stage from an explicit state or tool name. An active
|
|
37
|
+
* stage animates; settled stages keep that same icon and hold its authored
|
|
38
|
+
* frame. `outcome` is reserved for the whole-chain summary.
|
|
41
39
|
*/
|
|
42
40
|
export declare const TraceStateIcon: React.ForwardRefExoticComponent<TraceStateIconProps & React.RefAttributes<SVGSVGElement>>;
|