@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.
- package/dist/lib/commons.js +1 -1
- package/dist/lib/components.css +1 -1
- package/dist/lib/types/Accordion.d.ts +1 -1
- package/dist/lib/types/Avatar.d.ts +5 -5
- package/dist/lib/types/Button.d.ts +3 -3
- package/dist/lib/types/Card.d.ts +4 -4
- package/dist/lib/types/ChartBar.d.ts +1 -1
- package/dist/lib/types/ChartLine.d.ts +1 -1
- package/dist/lib/types/Checkbox.d.ts +9 -9
- package/dist/lib/types/Chip.d.ts +4 -4
- package/dist/lib/types/CliOnboard.d.ts +3 -3
- package/dist/lib/types/CommandPalette.d.ts +1 -1
- package/dist/lib/types/CommitGraph.d.ts +1 -1
- package/dist/lib/types/ConnectionState.d.ts +9 -9
- package/dist/lib/types/ConsentDialog.d.ts +2 -2
- package/dist/lib/types/DataTable.d.ts +1 -1
- package/dist/lib/types/DateRange.d.ts +2 -2
- package/dist/lib/types/Dialog.d.ts +1 -1
- package/dist/lib/types/DiffView.d.ts +1 -1
- package/dist/lib/types/EmptyState.d.ts +5 -2
- package/dist/lib/types/EvidenceCaption.d.ts +2 -2
- package/dist/lib/types/Explainer.d.ts +2 -2
- package/dist/lib/types/FacetRail.d.ts +1 -1
- package/dist/lib/types/Feedback.d.ts +5 -5
- package/dist/lib/types/GroupedMultiSelect.d.ts +4 -4
- package/dist/lib/types/Intensity.d.ts +5 -5
- package/dist/lib/types/MapCanvas.d.ts +1 -1
- package/dist/lib/types/Menu.d.ts +1 -1
- package/dist/lib/types/ModerationQueue.d.ts +2 -2
- package/dist/lib/types/Pager.d.ts +1 -1
- package/dist/lib/types/Pagination.d.ts +1 -1
- package/dist/lib/types/PolicySelect.d.ts +5 -5
- package/dist/lib/types/RailShell.d.ts +3 -3
- package/dist/lib/types/Redaction.d.ts +10 -5
- package/dist/lib/types/RoleRoster.d.ts +3 -3
- package/dist/lib/types/Sparkline.d.ts +1 -1
- package/dist/lib/types/StatTiles.d.ts +4 -4
- package/dist/lib/types/StepWizard.d.ts +2 -2
- package/dist/lib/types/StepsWaterfall.d.ts +1 -1
- package/dist/lib/types/Switch.d.ts +1 -1
- package/dist/lib/types/Tabs.d.ts +1 -1
- package/dist/lib/types/TimeStrip.d.ts +1 -1
- package/dist/lib/types/Timeline.d.ts +4 -4
- package/dist/lib/types/ToastHost.d.ts +1 -1
- package/dist/lib/types/ToolRenderers.d.ts +1 -1
- package/dist/lib/types/Tooltip.d.ts +3 -3
- package/dist/lib/types/TranscriptMarkers.d.ts +5 -5
- package/dist/lib/types/Treemap.d.ts +1 -1
- package/dist/lib/types/VisibilityControl.d.ts +4 -4
- package/dist/lib/types/analytics/ChartCard.d.ts +8 -5
- package/dist/lib/types/analytics/ContributorTable.d.ts +2 -2
- package/dist/lib/types/analytics/ProjectOverview.d.ts +4 -4
- package/dist/lib/types/chart-shared.d.ts +2 -2
- package/dist/lib/types/commons/Explore.d.ts +1 -1
- package/dist/lib/types/commons/Manage.d.ts +1 -1
- package/dist/lib/types/graph/ChangeDetail.d.ts +1 -1
- package/dist/lib/types/graph/Changes.d.ts +1 -1
- package/dist/lib/types/graph/CodeMap.d.ts +1 -1
- package/dist/lib/types/graph/CodeMapComposition.d.ts +2 -2
- package/dist/lib/types/graph/CodeMapNavigator.d.ts +1 -1
- package/dist/lib/types/graph/GhostCommitNode.d.ts +1 -1
- package/dist/lib/types/graph/GhostGroup.d.ts +1 -1
- package/dist/lib/types/graph/HighlightEdge.d.ts +1 -1
- package/dist/lib/types/graph/InsightPanel.d.ts +1 -1
- package/dist/lib/types/graph/RankModeControl.d.ts +1 -1
- package/dist/lib/types/graph/RankedRow.d.ts +1 -1
- package/dist/lib/types/graph/ScentTag.d.ts +1 -1
- package/dist/lib/types/graph/SessionLane.d.ts +1 -1
- package/dist/lib/types/graph/SessionOverflowDisclosure.d.ts +1 -1
- package/dist/lib/types/graph/TouchedFileCluster.d.ts +1 -1
- package/dist/lib/types/inuse/InUseShell.d.ts +5 -5
- package/dist/lib/types/transcript/CheckRow.d.ts +1 -1
- package/dist/lib/types/transcript/DiffEntryCard.d.ts +2 -2
- package/dist/lib/types/transcript/FilterSection.d.ts +1 -1
- package/dist/lib/types/transcript/FiltersRail.d.ts +1 -1
- package/dist/lib/types/transcript/LabelPopover.d.ts +1 -1
- package/dist/lib/types/transcript/Markdown.d.ts +10 -2
- package/dist/lib/types/transcript/OutlineRail.d.ts +1 -1
- package/dist/lib/types/transcript/Scorecard.d.ts +1 -1
- package/dist/lib/types/transcript/Scrubber.d.ts +1 -1
- package/dist/lib/types/transcript/TaskBody.d.ts +1 -1
- package/dist/lib/types/transcript/Thinking.d.ts +1 -1
- package/dist/lib/types/transcript/ToolBody.d.ts +1 -1
- package/dist/lib/types/transcript/ToolCall.d.ts +1 -1
- package/dist/lib/types/transcript/TranscriptViewer.d.ts +29 -1
- package/dist/lib/types/transcript/TurnCard.d.ts +1 -1
- package/dist/lib/types/transcript/ViewSwitch.d.ts +1 -1
- package/dist/lib/types/transcript/adapter.d.ts +8 -1
- package/dist/lib/types/transcript/state-capabilities.d.ts +1 -1
- package/dist/lib/types/transcript/view-model.d.ts +8 -0
- package/dist/lib/ui-B1R1d4x1.js +21024 -0
- package/dist/lib/ui.js +1 -1
- package/package.json +16 -5
- 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):
|
|
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:
|
|
33
|
+
label: import("react").ReactNode;
|
|
34
34
|
/**
|
|
35
35
|
* one-line plain-prose explanation (body font).
|
|
36
36
|
*/
|
|
37
|
-
rationale?:
|
|
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:
|
|
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?:
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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 {(
|
|
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
|
-
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
78
|
+
}): import("react").JSX.Element;
|
|
79
79
|
export type RosterMember = {
|
|
80
80
|
/**
|
|
81
81
|
* the member's handle (user content — never lowercased)
|
|
@@ -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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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):
|
|
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.
|
package/dist/lib/types/Tabs.d.ts
CHANGED
|
@@ -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
|
-
}):
|
|
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)
|
|
@@ -12,7 +12,7 @@ export function ThinkingBlock({ block, open: openProp, onToggle }: {
|
|
|
12
12
|
block: Thinking;
|
|
13
13
|
open?: boolean;
|
|
14
14
|
onToggle?: () => void;
|
|
15
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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.
|
|
@@ -8,7 +8,7 @@ export default function Tooltip({ content, children, id }: {
|
|
|
8
8
|
content: any;
|
|
9
9
|
children: any;
|
|
10
10
|
id: any;
|
|
11
|
-
}):
|
|
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
|
-
}):
|
|
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?:
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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?:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
}):
|
|
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) =>
|
|
12
|
+
renderContributor?: (row: ContributorBreakdown) => import("react").ReactNode;
|
|
13
13
|
limit?: number;
|
|
14
14
|
className?: string;
|
|
15
|
-
}):
|
|
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?:
|
|
27
|
+
subtitle?: import("react").ReactNode;
|
|
28
28
|
sections?: ProjectOverviewSections;
|
|
29
29
|
showSectionToggle?: boolean;
|
|
30
30
|
contributorLimit?: number;
|
|
31
|
-
renderContributor?: (row: ContributorBreakdown) =>
|
|
31
|
+
renderContributor?: (row: ContributorBreakdown) => import("react").ReactNode;
|
|
32
32
|
chartHeight?: number;
|
|
33
|
-
footnote?:
|
|
33
|
+
footnote?: import("react").ReactNode;
|
|
34
34
|
className?: string;
|
|
35
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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):
|
|
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
|
-
}):
|
|
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";
|
|
@@ -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
|
-
}):
|
|
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
|
-
}):
|
|
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():
|
|
109
|
+
export function DefaultMapLegend(): 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
|
-
}):
|
|
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";
|
|
@@ -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
|
-
}):
|
|
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
|
-
}):
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
12
|
export { MODES as RANK_MODE_CONTROL_MODES };
|
|
13
13
|
declare const MODES: readonly ["relevance", "debt", "churn"];
|