@actioneer/ads 0.5.6 → 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.
@@ -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; complete, pending, and error steps pass `false`. */
15
+ /** Active steps animate; settled steps hold the stage's authored frame. */
16
16
  animated?: boolean;
17
- /** Accessible name. Omit to keep the icon decorative — pair with `aria-hidden` at the call site, the convention every other ADS icon follows. */
17
+ /** Accessible name. Omit when adjacent text already names the state. */
18
18
  label?: string;
19
19
  }
20
20
  /**
21
- * One animated (or, for the three lifecycle states, static) squircle-grid
22
- * icon. `currentColor`-based like every ADS icon — set its color with a
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 executed by this step — used to infer a stage when `stage` is absent. */
28
+ /** Tool name used to infer a stage when `stage` is absent. */
31
29
  toolName?: string;
32
- /** ADS 2 step status changes motion/emphasis while preserving the stage icon. */
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 an individual completed step. */
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. Step status
39
- * controls motion only: active animates; complete, pending, and error freeze
40
- * the same glyph. `outcome` is reserved for the whole-chain summary.
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>>;