@peasant-labs/fairtrade 0.0.11 → 0.0.13

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.
Files changed (94) hide show
  1. package/dist/lib/commons.js +1 -1
  2. package/dist/lib/components.css +1 -1
  3. package/dist/lib/types/Accordion.d.ts +1 -1
  4. package/dist/lib/types/Avatar.d.ts +5 -5
  5. package/dist/lib/types/Button.d.ts +3 -3
  6. package/dist/lib/types/Card.d.ts +4 -4
  7. package/dist/lib/types/ChartBar.d.ts +1 -1
  8. package/dist/lib/types/ChartLine.d.ts +1 -1
  9. package/dist/lib/types/Checkbox.d.ts +9 -9
  10. package/dist/lib/types/Chip.d.ts +4 -4
  11. package/dist/lib/types/CliOnboard.d.ts +3 -3
  12. package/dist/lib/types/CommandPalette.d.ts +1 -1
  13. package/dist/lib/types/CommitGraph.d.ts +1 -1
  14. package/dist/lib/types/ConnectionState.d.ts +9 -9
  15. package/dist/lib/types/ConsentDialog.d.ts +2 -2
  16. package/dist/lib/types/DataTable.d.ts +1 -1
  17. package/dist/lib/types/DateRange.d.ts +2 -2
  18. package/dist/lib/types/Dialog.d.ts +1 -1
  19. package/dist/lib/types/DiffView.d.ts +1 -1
  20. package/dist/lib/types/EmptyState.d.ts +5 -2
  21. package/dist/lib/types/EvidenceCaption.d.ts +2 -2
  22. package/dist/lib/types/Explainer.d.ts +2 -2
  23. package/dist/lib/types/FacetRail.d.ts +1 -1
  24. package/dist/lib/types/Feedback.d.ts +5 -5
  25. package/dist/lib/types/GroupedMultiSelect.d.ts +4 -4
  26. package/dist/lib/types/Intensity.d.ts +5 -5
  27. package/dist/lib/types/MapCanvas.d.ts +1 -1
  28. package/dist/lib/types/Menu.d.ts +1 -1
  29. package/dist/lib/types/ModerationQueue.d.ts +2 -2
  30. package/dist/lib/types/Pager.d.ts +1 -1
  31. package/dist/lib/types/Pagination.d.ts +1 -1
  32. package/dist/lib/types/PolicySelect.d.ts +5 -5
  33. package/dist/lib/types/RailShell.d.ts +3 -3
  34. package/dist/lib/types/Redaction.d.ts +10 -5
  35. package/dist/lib/types/RoleRoster.d.ts +3 -3
  36. package/dist/lib/types/Sparkline.d.ts +1 -1
  37. package/dist/lib/types/StatTiles.d.ts +4 -4
  38. package/dist/lib/types/StepWizard.d.ts +2 -2
  39. package/dist/lib/types/StepsWaterfall.d.ts +1 -1
  40. package/dist/lib/types/Switch.d.ts +1 -1
  41. package/dist/lib/types/Tabs.d.ts +1 -1
  42. package/dist/lib/types/TimeStrip.d.ts +1 -1
  43. package/dist/lib/types/Timeline.d.ts +4 -4
  44. package/dist/lib/types/ToastHost.d.ts +1 -1
  45. package/dist/lib/types/ToolRenderers.d.ts +1 -1
  46. package/dist/lib/types/Tooltip.d.ts +3 -3
  47. package/dist/lib/types/TranscriptMarkers.d.ts +5 -5
  48. package/dist/lib/types/Treemap.d.ts +1 -1
  49. package/dist/lib/types/VisibilityControl.d.ts +4 -4
  50. package/dist/lib/types/analytics/ChartCard.d.ts +8 -5
  51. package/dist/lib/types/analytics/ContributorTable.d.ts +2 -2
  52. package/dist/lib/types/analytics/ProjectOverview.d.ts +4 -4
  53. package/dist/lib/types/chart-shared.d.ts +2 -2
  54. package/dist/lib/types/commons/Explore.d.ts +1 -1
  55. package/dist/lib/types/commons/Manage.d.ts +1 -1
  56. package/dist/lib/types/graph/ChangeDetail.d.ts +1 -1
  57. package/dist/lib/types/graph/Changes.d.ts +1 -1
  58. package/dist/lib/types/graph/CodeMap.d.ts +1 -1
  59. package/dist/lib/types/graph/CodeMapComposition.d.ts +2 -2
  60. package/dist/lib/types/graph/CodeMapNavigator.d.ts +1 -1
  61. package/dist/lib/types/graph/GhostCommitNode.d.ts +1 -1
  62. package/dist/lib/types/graph/GhostGroup.d.ts +1 -1
  63. package/dist/lib/types/graph/HighlightEdge.d.ts +1 -1
  64. package/dist/lib/types/graph/InsightPanel.d.ts +1 -1
  65. package/dist/lib/types/graph/RankModeControl.d.ts +1 -1
  66. package/dist/lib/types/graph/RankedRow.d.ts +1 -1
  67. package/dist/lib/types/graph/ScentTag.d.ts +1 -1
  68. package/dist/lib/types/graph/SessionLane.d.ts +1 -1
  69. package/dist/lib/types/graph/SessionOverflowDisclosure.d.ts +1 -1
  70. package/dist/lib/types/graph/TouchedFileCluster.d.ts +1 -1
  71. package/dist/lib/types/inuse/InUseShell.d.ts +5 -5
  72. package/dist/lib/types/transcript/CheckRow.d.ts +1 -1
  73. package/dist/lib/types/transcript/DiffEntryCard.d.ts +2 -2
  74. package/dist/lib/types/transcript/FilterSection.d.ts +1 -1
  75. package/dist/lib/types/transcript/FiltersRail.d.ts +1 -1
  76. package/dist/lib/types/transcript/LabelPopover.d.ts +1 -1
  77. package/dist/lib/types/transcript/Markdown.d.ts +10 -2
  78. package/dist/lib/types/transcript/OutlineRail.d.ts +1 -1
  79. package/dist/lib/types/transcript/Scorecard.d.ts +1 -1
  80. package/dist/lib/types/transcript/Scrubber.d.ts +1 -1
  81. package/dist/lib/types/transcript/TaskBody.d.ts +1 -1
  82. package/dist/lib/types/transcript/Thinking.d.ts +1 -1
  83. package/dist/lib/types/transcript/ToolBody.d.ts +1 -1
  84. package/dist/lib/types/transcript/ToolCall.d.ts +1 -1
  85. package/dist/lib/types/transcript/TranscriptViewer.d.ts +29 -1
  86. package/dist/lib/types/transcript/TurnCard.d.ts +1 -1
  87. package/dist/lib/types/transcript/ViewSwitch.d.ts +1 -1
  88. package/dist/lib/types/transcript/adapter.d.ts +8 -1
  89. package/dist/lib/types/transcript/state-capabilities.d.ts +1 -1
  90. package/dist/lib/types/transcript/view-model.d.ts +8 -0
  91. package/dist/lib/ui-B1R1d4x1.js +21024 -0
  92. package/dist/lib/ui.js +1 -1
  93. package/package.json +16 -5
  94. package/dist/lib/ui-CBAC_ipm.js +0 -11000
@@ -21,7 +21,7 @@
21
21
  * A governance policy selector. See PolicySelectProps.
22
22
  * @param {PolicySelectProps} props
23
23
  */
24
- export default function PolicySelect({ label, name, value, defaultValue, onChange, options, variant, hint, id, }: PolicySelectProps): any;
24
+ export default function PolicySelect({ label, name, value, defaultValue, onChange, options, variant, hint, id, }: PolicySelectProps): import("react").JSX.Element;
25
25
  export type PolicyOption = {
26
26
  /**
27
27
  * the value submitted / matched when selected.
@@ -30,11 +30,11 @@ export type PolicyOption = {
30
30
  /**
31
31
  * the bold option label (mono).
32
32
  */
33
- label: any;
33
+ label: import("react").ReactNode;
34
34
  /**
35
35
  * one-line plain-prose explanation (body font).
36
36
  */
37
- rationale?: any;
37
+ rationale?: import("react").ReactNode;
38
38
  /**
39
39
  * native disabled state for this option.
40
40
  */
@@ -44,7 +44,7 @@ export type PolicySelectProps = {
44
44
  /**
45
45
  * the field label above the control (mono, lowercase chrome).
46
46
  */
47
- label: any;
47
+ label: import("react").ReactNode;
48
48
  /**
49
49
  * form name; the shared radio group name in the radio variant.
50
50
  */
@@ -72,7 +72,7 @@ export type PolicySelectProps = {
72
72
  /**
73
73
  * optional one-line helper beneath the label.
74
74
  */
75
- hint?: any;
75
+ hint?: import("react").ReactNode;
76
76
  /**
77
77
  * id for the control / radiogroup; auto-generated when omitted.
78
78
  */
@@ -23,7 +23,7 @@ export default function RailShell({ toolbar, children, rail, railSide, sheetTitl
23
23
  sheetTitle?: string;
24
24
  sheetMeta: any;
25
25
  className?: string;
26
- }): any;
26
+ }): import("react").JSX.Element;
27
27
  /**
28
28
  * @typedef {Object} RailSectionProps
29
29
  * @property {React.ReactNode} [title] mono section header (lowercased by css).
@@ -48,7 +48,7 @@ export function RailSection({ title, icon: Icon, meta, children, collapsible, de
48
48
  collapsible?: boolean;
49
49
  defaultOpen?: boolean;
50
50
  className?: string;
51
- }): any;
51
+ }): import("react").JSX.Element;
52
52
  /**
53
53
  * @typedef {Object} SplitRailProps
54
54
  * @property {React.ReactNode} left content of the left column (e.g. an outline tree).
@@ -76,7 +76,7 @@ export function SplitRail({ left, right, leftTitle, rightTitle, leftIcon, rightI
76
76
  leftMeta: any;
77
77
  rightMeta: any;
78
78
  className?: string;
79
- }): any;
79
+ }): import("react").JSX.Element;
80
80
  export type RailShellProps = {
81
81
  /**
82
82
  * optional sticky top toolbar (mono chrome row); omitted when absent.
@@ -3,7 +3,11 @@
3
3
  *
4
4
  * @param {object} props
5
5
  * @param {'minimal'|'standard'|'maximum'} [props.level='standard'] - the selected redaction level
6
- * @param {(level: string) => void} [props.onLevel] - called with the next level on select
6
+ * @param {readonly ('minimal'|'standard'|'maximum')[]} [props.availableLevels]
7
+ * - supported levels. choices use canonical order. one choice hides the selector; invalid or
8
+ * empty input throws an actionable TypeError before the review renders.
9
+ * @param {(level: 'minimal'|'standard'|'maximum') => void} [props.onLevel]
10
+ * - called only with an available level on select
7
11
  * @param {Array<{id, category, confidence:number, before?:string, secret?:string, after:string, kept?:boolean}>} [props.matches]
8
12
  * - the flagged matches. `before`/`secret` is the original (one or the other), `after` the
9
13
  * redacted form. `kept` (controlled mode) = the user opted OUT, secret leaves as-is.
@@ -14,9 +18,10 @@
14
18
  * @param {string|boolean} [props.failure] - honest-failure banner text; truthy shows the banner.
15
19
  * @param {string} [props.className]
16
20
  */
17
- export function RedactionReview({ level, onLevel, matches, onToggle, scanned, total, failure, className, ...rest }: {
21
+ export function RedactionReview({ level, availableLevels, onLevel, matches, onToggle, scanned, total, failure, className, ...rest }: {
18
22
  level?: "minimal" | "standard" | "maximum";
19
- onLevel?: (level: string) => void;
23
+ availableLevels?: readonly ("minimal" | "standard" | "maximum")[];
24
+ onLevel?: (level: "minimal" | "standard" | "maximum") => void;
20
25
  matches?: Array<{
21
26
  id: any;
22
27
  category: any;
@@ -31,7 +36,7 @@ export function RedactionReview({ level, onLevel, matches, onToggle, scanned, to
31
36
  total?: number;
32
37
  failure?: string | boolean;
33
38
  className?: string;
34
- }): any;
39
+ }): import("react").JSX.Element;
35
40
  /**
36
41
  * WhereDoesThisGo — the transparency panel shown before an outbound action. the destination url,
37
42
  * then a two-column split: "what gets sent" (Send icon, add rail) vs "what stays private" (Lock
@@ -49,5 +54,5 @@ export function WhereDoesThisGo({ destination, sent, private: stays, className,
49
54
  sent?: string[];
50
55
  private?: string[];
51
56
  className?: string;
52
- }): any;
57
+ }): import("react").JSX.Element;
53
58
  export default RedactionReview;
@@ -20,7 +20,7 @@ export function ConfirmInline({ label, confirmLabel, icon, onConfirm, busy, disa
20
20
  onConfirm: () => (void | Promise<void>);
21
21
  busy?: boolean;
22
22
  disabled?: boolean;
23
- }): any;
23
+ }): import("react").JSX.Element;
24
24
  /**
25
25
  * @typedef {Object} RosterMember
26
26
  * @property {string} handle the member's handle (user content — never lowercased)
@@ -61,7 +61,7 @@ export default function RoleRoster({ members, onRole, onRemove, title, roles, ca
61
61
  roles?: string[];
62
62
  canManage?: boolean;
63
63
  filterSlot?: React.ReactNode;
64
- }): any;
64
+ }): import("react").JSX.Element;
65
65
  /**
66
66
  * A clay-bordered section wrapping destructive actions (e.g. "delete collective"). Fronted by a
67
67
  * warning glyph + the literal word "warning" so the danger framing is never carried by the clay
@@ -75,7 +75,7 @@ export default function RoleRoster({ members, onRole, onRemove, title, roles, ca
75
75
  export function DangerZone({ title, children }: {
76
76
  title?: React.ReactNode;
77
77
  children: React.ReactNode;
78
- }): any;
78
+ }): import("react").JSX.Element;
79
79
  export type RosterMember = {
80
80
  /**
81
81
  * the member's handle (user content — never lowercased)
@@ -16,4 +16,4 @@ export default function Sparkline({ data, type, color, width, height, label, cla
16
16
  height?: number;
17
17
  label: string;
18
18
  className?: string;
19
- }): any;
19
+ }): import("react").JSX.Element;
@@ -16,7 +16,7 @@ export function StatTile({ label, value, sub, icon: Icon, className, ...rest }:
16
16
  className?: string;
17
17
  }>;
18
18
  className?: string;
19
- }): any;
19
+ }): import("react").JSX.Element;
20
20
  /**
21
21
  * @typedef {object} TileSpec
22
22
  * @property {string} key - stable key for the tile.
@@ -38,7 +38,7 @@ export function StatTile({ label, value, sub, icon: Icon, className, ...rest }:
38
38
  export function StatGrid({ tiles, className, ...rest }: {
39
39
  tiles: TileSpec[];
40
40
  className?: string;
41
- }): any;
41
+ }): import("react").JSX.Element;
42
42
  /**
43
43
  * GovTile — a governance fact: a mono eyebrow label, an icon, and a value that may carry one
44
44
  * scarce earth-tone accent (e.g. amber for a "members only" / scarce policy). The value is mono,
@@ -59,7 +59,7 @@ export function GovTile({ label, value, icon: Icon, tone, className, ...rest }:
59
59
  }>;
60
60
  tone?: "amber" | "teal" | "olive" | "clay" | "mauve";
61
61
  className?: string;
62
- }): any;
62
+ }): import("react").JSX.Element;
63
63
  /**
64
64
  * @typedef {object} ProviderDatum
65
65
  * @property {string} label - provider name (USER CONTENT — case preserved; e.g. "claude-code").
@@ -81,7 +81,7 @@ export function ProviderBars({ data, total, label, className, ...rest }: {
81
81
  total?: number;
82
82
  label?: string;
83
83
  className?: string;
84
- }): any;
84
+ }): import("react").JSX.Element;
85
85
  export type TileSpec = {
86
86
  /**
87
87
  * - stable key for the tile.
@@ -23,7 +23,7 @@ export function StepIndicator({ steps, current, completed, reachable, onJump, "a
23
23
  completed?: Set<string>;
24
24
  reachable?: Set<string>;
25
25
  onJump?: (id: string) => void;
26
- }): any;
26
+ }): import("react").JSX.Element;
27
27
  /**
28
28
  * @typedef {Object} WizardBodyArgs
29
29
  * @property {WizardStep} step the active step descriptor
@@ -61,7 +61,7 @@ export default function StepWizard({ steps, onComplete, renderStep, children, co
61
61
  continueLabel?: string;
62
62
  submitLabel?: string;
63
63
  backLabel?: string;
64
- }): any;
64
+ }): import("react").JSX.Element;
65
65
  export type WizardStep = {
66
66
  /**
67
67
  * stable id for the step (aria wiring + completed/reachable sets)
@@ -30,7 +30,7 @@ export default function StepsWaterfall({ tasks, onJump, totalMs, defaultCollapse
30
30
  defaultCollapsed?: boolean;
31
31
  label?: string;
32
32
  className?: string;
33
- }): any;
33
+ }): import("react").JSX.Element;
34
34
  export type Task = {
35
35
  /**
36
36
  * - stable key; passed back to onJump (e.g. the prompt turn id).
@@ -15,7 +15,7 @@
15
15
  /**
16
16
  * @param {SwitchProps} props
17
17
  */
18
- export default function Switch({ checked, defaultChecked, onChange, disabled, busy, label, onText, offText, stateIcon: StateIcon, id, }: SwitchProps): any;
18
+ export default function Switch({ checked, defaultChecked, onChange, disabled, busy, label, onText, offText, stateIcon: StateIcon, id, }: SwitchProps): import("react").JSX.Element;
19
19
  export type SwitchProps = {
20
20
  /**
21
21
  * controlled on/off state; pair with onChange.
@@ -27,7 +27,7 @@ export default function Tabs({ tabs, defaultTab, value, onChange, "aria-label":
27
27
  defaultTab?: string;
28
28
  value?: string;
29
29
  onChange?: (id: string) => void;
30
- }): any;
30
+ }): import("react").JSX.Element;
31
31
  export type TabItem = {
32
32
  /**
33
33
  * stable id for the tab/panel pair (used for ids + aria wiring)
@@ -8,5 +8,5 @@ export function TimeStrip({ buckets, value, defaultValue, onScrub, branches, lab
8
8
  label?: string;
9
9
  maxBranchChips?: number;
10
10
  className?: string;
11
- }): any;
11
+ }): import("react").JSX.Element;
12
12
  export default TimeStrip;
@@ -12,7 +12,7 @@ export function ThinkingBlock({ block, open: openProp, onToggle }: {
12
12
  block: Thinking;
13
13
  open?: boolean;
14
14
  onToggle?: () => void;
15
- }): any;
15
+ }): import("react").JSX.Element;
16
16
  /**
17
17
  * ToolCall — one collapsible tool call. Controlled when `open`/`onToggle` are passed
18
18
  * (lets a host own expand-all), otherwise self-managed. Header is a real
@@ -32,7 +32,7 @@ export function ToolCall({ tool, index, open: openProp, onToggle, renderTool }:
32
32
  open?: boolean;
33
33
  onToggle?: () => void;
34
34
  renderTool?: (tool: Tool, i: number) => React.ReactNode;
35
- }): any;
35
+ }): import("react").JSX.Element;
36
36
  /**
37
37
  * TimelineItem — renders one node on the spine, switching on `kind`. Owns the
38
38
  * decorative dot, the role glyph + head meta and the body slot. Exported so a host
@@ -47,7 +47,7 @@ export function TimelineItem({ item, renderTool, renderBody }: {
47
47
  item: TimelineItem;
48
48
  renderTool?: (tool: Tool, i: number) => React.ReactNode;
49
49
  renderBody?: (item: TimelineItem) => React.ReactNode;
50
- }): any;
50
+ }): import("react").JSX.Element;
51
51
  export type TimelineItem = {
52
52
  id: string;
53
53
  /**
@@ -152,7 +152,7 @@ export default function Timeline({ items, renderTool, renderBody, dense, ariaLab
152
152
  renderBody?: (item: TimelineItem) => React.ReactNode;
153
153
  dense?: boolean;
154
154
  ariaLabel?: string;
155
- }): any;
155
+ }): import("react").JSX.Element;
156
156
  export type Thinking = {
157
157
  /**
158
158
  * word count shown next to the toggle (tabular)
@@ -26,7 +26,7 @@ export function ToastProvider({ children, placement, max, duration, inline, }: {
26
26
  max?: number;
27
27
  duration?: number;
28
28
  inline?: boolean;
29
- }): any;
29
+ }): import("react").JSX.Element;
30
30
  /**
31
31
  * useToast — the imperative api object from the nearest ToastProvider. throws a clear
32
32
  * lowercase error when called outside a provider so a missing host is caught in dev.
@@ -21,4 +21,4 @@ export default function ToolCall({ tool, defaultOpen, className, ...rest }: {
21
21
  };
22
22
  defaultOpen?: boolean;
23
23
  className?: string;
24
- }): any;
24
+ }): import("react").JSX.Element;
@@ -8,7 +8,7 @@ export default function Tooltip({ content, children, id }: {
8
8
  content: any;
9
9
  children: any;
10
10
  id: any;
11
- }): any;
11
+ }): import("react").JSX.Element;
12
12
  /**
13
13
  * @typedef {Object} PopoverProps
14
14
  * @property {React.ReactNode} children the trigger button content (e.g. an icon + label).
@@ -29,7 +29,7 @@ export function Popover({ children, label, title, icon: Icon, content, footer, t
29
29
  footer: any;
30
30
  triggerClassName?: string;
31
31
  id: any;
32
- }): any;
32
+ }): import("react").JSX.Element;
33
33
  export type TooltipProps = {
34
34
  /**
35
35
  * short, single-line helper text shown in the .tip-bubble (role=tooltip).
@@ -60,7 +60,7 @@ export type PopoverProps = {
60
60
  /**
61
61
  * lucide icon component for the .pop-head; decorative, sized by css (.pop-head .lucide -> --ic-sm).
62
62
  */
63
- icon?: any;
63
+ icon?: import("react").ComponentType;
64
64
  /**
65
65
  * the .pop-body content.
66
66
  */
@@ -6,7 +6,7 @@ export function PhaseDivider({ label, range, active, stickyTop, onClick, classNa
6
6
  stickyTop?: string;
7
7
  onClick: any;
8
8
  className?: string;
9
- }): any;
9
+ }): import("react").JSX.Element;
10
10
  export function Phase({ label, range, active, stickyTop, onLabelClick, children, className, ...rest }: {
11
11
  [x: string]: any;
12
12
  label: any;
@@ -16,7 +16,7 @@ export function Phase({ label, range, active, stickyTop, onLabelClick, children,
16
16
  onLabelClick: any;
17
17
  children: any;
18
18
  className?: string;
19
- }): any;
19
+ }): import("react").JSX.Element;
20
20
  export function TaskBoundary({ turn, duration, tools, files, ins, del, className, ...rest }: {
21
21
  [x: string]: any;
22
22
  turn: any;
@@ -26,7 +26,7 @@ export function TaskBoundary({ turn, duration, tools, files, ins, del, className
26
26
  ins?: number;
27
27
  del?: number;
28
28
  className?: string;
29
- }): any;
29
+ }): import("react").JSX.Element;
30
30
  export function CheckpointMarker({ hash, message, time, files, ins, del, className, ...rest }: {
31
31
  [x: string]: any;
32
32
  hash: any;
@@ -36,7 +36,7 @@ export function CheckpointMarker({ hash, message, time, files, ins, del, classNa
36
36
  ins?: number;
37
37
  del?: number;
38
38
  className?: string;
39
- }): any;
39
+ }): import("react").JSX.Element;
40
40
  export function TurnContextBar({ prompt, ordinal, onNext, nextLabel, stickyTop, onJump, className, ...rest }: {
41
41
  [x: string]: any;
42
42
  prompt: any;
@@ -46,5 +46,5 @@ export function TurnContextBar({ prompt, ordinal, onNext, nextLabel, stickyTop,
46
46
  stickyTop?: string;
47
47
  onJump: any;
48
48
  className?: string;
49
- }): any;
49
+ }): import("react").JSX.Element;
50
50
  export default TaskBoundary;
@@ -52,7 +52,7 @@ export default function Treemap({ data, onSelect, height, ariaLabel, className,
52
52
  height?: number;
53
53
  ariaLabel?: string;
54
54
  className?: string;
55
- }): any;
55
+ }): import("react").JSX.Element;
56
56
  export type TreemapDatum = {
57
57
  /**
58
58
  * stable key (also the default selection token)
@@ -9,7 +9,7 @@ export function VisibilityEye({ visibility, sharedWith, size }: {
9
9
  visibility?: "public" | "private" | "shared";
10
10
  sharedWith?: string;
11
11
  size?: "sm" | "md" | "lg";
12
- }): any;
12
+ }): import("react").JSX.Element;
13
13
  /**
14
14
  * VisibilitySegmented — a private | public segmented control with a one-line description under each
15
15
  * option, and an optional "shared" override note when the server owns the state. The pressed option
@@ -23,7 +23,7 @@ export function VisibilitySegmented({ value, onChange, sharedNote, label, }: {
23
23
  onChange?: (v: "public" | "private") => void;
24
24
  sharedNote?: string;
25
25
  label?: string;
26
- }): any;
26
+ }): import("react").JSX.Element;
27
27
  /**
28
28
  * ScopeChip — a small toggle group scoping a view to task / file / change (a chip set). One chip is
29
29
  * pressed at a time; the pressed chip carries aria-pressed + the selected fill, so the active scope
@@ -40,7 +40,7 @@ export function ScopeChip({ scope, onChange, options, label }: {
40
40
  label: string;
41
41
  }[];
42
42
  label?: string;
43
- }): any;
43
+ }): import("react").JSX.Element;
44
44
  /**
45
45
  * FocusedModeToggle — a single toggle button for "focused" mode (your prompts & the assistant's
46
46
  * replies only). Carries aria-pressed + an icon + the word, so the on / off state is never color-only.
@@ -50,5 +50,5 @@ export function ScopeChip({ scope, onChange, options, label }: {
50
50
  export function FocusedModeToggle({ on, onToggle }: {
51
51
  on?: boolean;
52
52
  onToggle?: (next: boolean) => void;
53
- }): any;
53
+ }): import("react").JSX.Element;
54
54
  export default VisibilitySegmented;
@@ -10,9 +10,12 @@
10
10
  */
11
11
  export default function ChartCard({ title, icon: Icon, subtitle, aside, children, className }: {
12
12
  title: string;
13
- icon?: any;
14
- subtitle?: any;
15
- aside?: any;
16
- children: any;
13
+ icon?: import("react").ComponentType<{
14
+ className?: string;
15
+ "aria-hidden"?: boolean | "true" | "false";
16
+ }>;
17
+ subtitle?: import("react").ReactNode;
18
+ aside?: import("react").ReactNode;
19
+ children: import("react").ReactNode;
17
20
  className?: string;
18
- }): any;
21
+ }): import("react").JSX.Element;
@@ -9,8 +9,8 @@
9
9
  */
10
10
  export default function ContributorTable({ rows, renderContributor, limit, className }: {
11
11
  rows: ContributorBreakdown[];
12
- renderContributor?: (row: ContributorBreakdown) => any;
12
+ renderContributor?: (row: ContributorBreakdown) => import("react").ReactNode;
13
13
  limit?: number;
14
14
  className?: string;
15
- }): any;
15
+ }): import("react").JSX.Element;
16
16
  export type ContributorBreakdown = import("./types.js").ContributorBreakdown;
@@ -24,15 +24,15 @@
24
24
  export default function ProjectOverview({ payload, title, subtitle, sections, showSectionToggle, contributorLimit, renderContributor, chartHeight, footnote, className, }: {
25
25
  payload: AnalyticsOverviewPayload;
26
26
  title?: string;
27
- subtitle?: any;
27
+ subtitle?: import("react").ReactNode;
28
28
  sections?: ProjectOverviewSections;
29
29
  showSectionToggle?: boolean;
30
30
  contributorLimit?: number;
31
- renderContributor?: (row: ContributorBreakdown) => any;
31
+ renderContributor?: (row: ContributorBreakdown) => import("react").ReactNode;
32
32
  chartHeight?: number;
33
- footnote?: any;
33
+ footnote?: import("react").ReactNode;
34
34
  className?: string;
35
- }): any;
35
+ }): import("react").JSX.Element;
36
36
  export type AnalyticsOverviewPayload = import("./types.js").AnalyticsOverviewPayload;
37
37
  export type ProjectOverviewSectionKey = import("./types.js").ProjectOverviewSectionKey;
38
38
  export type ProjectOverviewSections = import("./types.js").ProjectOverviewSections;
@@ -11,7 +11,7 @@ export function ChartFrame({ icon: Icon, title, aside, sub, legend, className, c
11
11
  legend: any;
12
12
  className?: string;
13
13
  children: any;
14
- }): any;
14
+ }): import("react").JSX.Element;
15
15
  /**
16
16
  * ChartTooltip - the custom Recharts tooltip content: a square bordered chip, lowercase mono
17
17
  * key, tabular values, each row prefixed by its series swatch (colour + label, never colour alone).
@@ -22,7 +22,7 @@ export function ChartTooltip({ active, payload, label, labelFormatter, valueForm
22
22
  label: any;
23
23
  labelFormatter: any;
24
24
  valueFormatter: any;
25
- }): any;
25
+ }): import("react").JSX.Element;
26
26
  export function resolveSeries(series: any): any;
27
27
  export const SERIES_CLASS: {
28
28
  teal: string;
@@ -2,5 +2,5 @@
2
2
  * @typedef {import('./types.js').ExploreSurfaceProps} ExploreSurfaceProps
3
3
  */
4
4
  /** @param {ExploreSurfaceProps} props */
5
- export default function Explore({ data, className, onFiltersChange, onOpenTranscript, onOpenProfile, onOpenCollective, transcriptHref, profileHref, collectiveHref, }: ExploreSurfaceProps): any;
5
+ export default function Explore({ data, className, onFiltersChange, onOpenTranscript, onOpenProfile, onOpenCollective, transcriptHref, profileHref, collectiveHref, }: ExploreSurfaceProps): import("react").JSX.Element;
6
6
  export type ExploreSurfaceProps = import("./types.js").ExploreSurfaceProps;
@@ -29,6 +29,6 @@ export function Manage({ data, actions, demoRoleSwitcher, }?: {
29
29
  };
30
30
  actions?: {};
31
31
  demoRoleSwitcher?: boolean;
32
- }): any;
32
+ }): import("react").JSX.Element;
33
33
  export { PROVIDER_LABEL, formatProvider, providerLabel } from "./providers.js";
34
34
  export { PublishView, CollectivesView, CollectiveDetailView, CollectiveSettingsView, ContributeView } from "../../mockups/inuse/CommonsManage.jsx";
@@ -25,4 +25,4 @@ export default function ChangeDetail({ payload, getDiff, title, annotation, onSa
25
25
  onShare?: () => void;
26
26
  onCopyRecap?: () => void;
27
27
  initialOpenFiles?: Record<string, boolean>;
28
- }): any;
28
+ }): import("react").JSX.Element;
@@ -22,4 +22,4 @@ export default function Changes({ payload, projectLabel, selectedId, onNavigate,
22
22
  onShowOlder?: () => void;
23
23
  onOpenSession?: (sessionId: string) => void;
24
24
  nowMs?: number;
25
- }): any;
25
+ }): import("react").JSX.Element;
@@ -54,7 +54,7 @@ export default function CodeMap({ payload, zoom, onZoomChange, selectedId, onSel
54
54
  }) => void;
55
55
  state?: import("./codeMapState.js").CodeMapState;
56
56
  onStateChange?: (state: import("./codeMapState.js").CodeMapState) => void;
57
- }): any;
57
+ }): import("react").JSX.Element;
58
58
  /**
59
59
  * @param {import('./types.js').CodeMapPayload | undefined} payload
60
60
  * @returns {{nodes: Array<object>, edges: Array<object>}}
@@ -98,7 +98,7 @@ export default function CodeMapComposition({ payload, zoom, onZoomChange, select
98
98
  state?: import("./codeMapState.js").CodeMapState;
99
99
  defaultState?: Partial<import("./codeMapState.js").CodeMapState>;
100
100
  onStateChange?: (state: import("./codeMapState.js").CodeMapState) => void;
101
- }): any;
101
+ }): import("react").JSX.Element;
102
102
  /**
103
103
  * The persistent legend explaining the canvas's four orthogonal visual channels
104
104
  * (peasant spec §4/§5: WIDTH ∝ loc, monochrome FILL ∝ coverage, folder/file ICON,
@@ -106,4 +106,4 @@ export default function CodeMapComposition({ payload, zoom, onZoomChange, select
106
106
  * Lifted here from the peasant app (was app-only chrome, spec-legend drift risk)
107
107
  * so demo and every consuming app show the SAME legend for the SAME canvas.
108
108
  */
109
- export function DefaultMapLegend(): any;
109
+ export function DefaultMapLegend(): import("react").JSX.Element;
@@ -32,4 +32,4 @@ export default function CodeMapNavigator({ payload, grain, expandedIds, onExpand
32
32
  onOpenMap?: (id: string) => void;
33
33
  onStateAction?: (action: import("./codeMapState.js").CodeMapAction) => void;
34
34
  ariaLabel?: string;
35
- }): any;
35
+ }): import("react").JSX.Element;
@@ -14,7 +14,7 @@ export default function GhostCommitNode({ ghostHash, subject, resolution, method
14
14
  method: RewriteMethod;
15
15
  confidence: Confidence;
16
16
  className?: string;
17
- }): any;
17
+ }): import("react").JSX.Element;
18
18
  export type RewriteResolution = "live" | "rewritten" | "unresolved";
19
19
  export type RewriteMethod = "hash" | "patch_id" | "author_identity" | "message_embedded" | "temporal" | "none";
20
20
  export type Confidence = "high" | "medium" | "low";
@@ -18,4 +18,4 @@ export default function GhostGroup({ successorHash, ghosts, expanded, onToggle,
18
18
  expanded: boolean;
19
19
  onToggle: (successorHash: string) => void;
20
20
  className?: string;
21
- }): any;
21
+ }): import("react").JSX.Element;
@@ -13,4 +13,4 @@ export default function HighlightEdge({ weight, geometry, className, ...rest }:
13
13
  y2: number;
14
14
  };
15
15
  className?: string;
16
- }): any;
16
+ }): import("react").JSX.Element;
@@ -20,6 +20,6 @@ export default function InsightPanel({ insights, onOpenEvidence, className, ...r
20
20
  }>;
21
21
  onOpenEvidence?: (sessionId: string) => void;
22
22
  className?: string;
23
- }): any;
23
+ }): import("react").JSX.Element;
24
24
  export type InsightKind = import("@peasant-labs/schema").InsightKind;
25
25
  export type InsightProvenance = import("@peasant-labs/schema").InsightProvenance;
@@ -8,6 +8,6 @@ export default function RankModeControl({ rankMode, onChange, className, ...rest
8
8
  rankMode: "relevance" | "debt" | "churn";
9
9
  onChange: (rankMode: "relevance" | "debt" | "churn") => void;
10
10
  className?: string;
11
- }): any;
11
+ }): import("react").JSX.Element;
12
12
  export { MODES as RANK_MODE_CONTROL_MODES };
13
13
  declare const MODES: readonly ["relevance", "debt", "churn"];
@@ -12,4 +12,4 @@ export default function RankedRow({ row, loc, selected, onSelect, className, ...
12
12
  selected?: boolean;
13
13
  onSelect?: (id: string) => void;
14
14
  className?: string;
15
- }): any;
15
+ }): import("react").JSX.Element;
@@ -12,4 +12,4 @@ export default function ScentTag({ tag, hoverText, active, onToggle, className,
12
12
  active?: boolean;
13
13
  onToggle?: (tag: string | null) => void;
14
14
  className?: string;
15
- }): any;
15
+ }): import("react").JSX.Element;
@@ -26,4 +26,4 @@ export default function SessionLane({ sessionId, title, harness, hovered, select
26
26
  confidence: string;
27
27
  }>;
28
28
  className?: string;
29
- }): any;
29
+ }): import("react").JSX.Element;
@@ -20,4 +20,4 @@ export default function SessionOverflowDisclosure({ commitHash, overflow, expand
20
20
  onSelect?: (sessionId: string) => void;
21
21
  itemLabel?: string;
22
22
  className?: string;
23
- }): any;
23
+ }): import("react").JSX.Element;
@@ -14,4 +14,4 @@ export default function TouchedFileCluster({ commitHash, files, expanded, onTogg
14
14
  onToggle: (id: string) => void;
15
15
  onOpenDiff?: (file: string) => void;
16
16
  className?: string;
17
- }): any;
17
+ }): import("react").JSX.Element;