@actioneer/ads 0.3.0 → 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.
@@ -1,13 +1,23 @@
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
- export declare const ChainOfThought: import('react').MemoExoticComponent<({ className, role, ...props }: ChainOfThoughtProps) => import("react").JSX.Element>;
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>;
11
21
  /**
12
22
  * Step lifecycle mirrors the production work-trace statuses: steps stream in
13
23
  * as `active`, settle to `complete`, and surface failures as `error` — an
@@ -17,17 +27,27 @@ export type ChainOfThoughtStatus = "complete" | "active" | "pending" | "error";
17
27
  export type ChainOfThoughtStepProps = ComponentProps<typeof Collapsible> & {
18
28
  status?: ChainOfThoughtStatus;
19
29
  };
20
- export declare const ChainOfThoughtStep: import('react').MemoExoticComponent<({ className, defaultOpen, open: controlledOpen, onOpenChange, status, role, "aria-busy": ariaBusy, ...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>;
21
31
  export type ChainOfThoughtTriggerProps = Omit<ComponentProps<typeof CollapsibleTrigger>, "asChild" | "children"> & {
22
32
  children: ReactNode;
23
33
  /** Semantic icon rendered on the reasoning rail. */
24
34
  leftIcon?: ReactNode;
25
35
  /** Optional trailing metadata such as elapsed time. */
26
36
  endContent?: ReactNode;
27
- /** Swap the semantic icon for a disclosure affordance on hover. */
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
+ */
28
48
  swapIconOnHover?: boolean;
29
49
  };
30
- 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>;
31
51
  export type ChainOfThoughtContentProps = ComponentProps<typeof CollapsibleContent>;
32
52
  export declare const ChainOfThoughtContent: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtContentProps) => import("react").JSX.Element>;
33
53
  export type ChainOfThoughtItemProps = ComponentProps<"div">;