@danxbot/ui 22.1.0 → 24.0.0
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/index.js +15903 -15392
- package/dist/index.js.map +1 -1
- package/dist/types/components/chart/LineChart.d.ts +57 -0
- package/dist/types/components/chart/label-metrics.d.ts +5 -0
- package/dist/types/components/chart/line-chart-axis.d.ts +14 -0
- package/dist/types/components/chart/line-chart-scale.d.ts +55 -0
- package/dist/types/components/chart/shared.d.ts +69 -1
- package/dist/types/components/rbac/AccessRequestPanel.d.ts +16 -1
- package/dist/types/components/rbac/approvalPanelParts.d.ts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/lib/i18n/areas/chat-chart.d.ts +28 -0
- package/dist/types/lib/i18n/areas/rbac.d.ts +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type ReactNode, type Ref } from "react";
|
|
2
|
+
import { type LinePoint } from "./line-chart-scale";
|
|
3
|
+
export type { LinePoint } from "./line-chart-scale";
|
|
4
|
+
export interface LineSeries {
|
|
5
|
+
/** Unique within the chart. */
|
|
6
|
+
key: string;
|
|
7
|
+
label: string;
|
|
8
|
+
/** Strictly ascending `t` (epoch ms), finite `value` >= 0 — anything else throws. May be empty. */
|
|
9
|
+
points: readonly LinePoint[];
|
|
10
|
+
}
|
|
11
|
+
/** A horizontal line at a value, e.g. the model's context window. */
|
|
12
|
+
export interface LineReference {
|
|
13
|
+
/** Unique within the chart. */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Finite and >= 0, in the same unit as the series' values. */
|
|
16
|
+
value: number;
|
|
17
|
+
/** Said beside the line and in the hidden list. */
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
/** A point of interest on a series, e.g. a compaction. */
|
|
21
|
+
export interface LineMarker {
|
|
22
|
+
/** Unique within the chart. */
|
|
23
|
+
id: string;
|
|
24
|
+
/** A `LineSeries.key`. */
|
|
25
|
+
series: string;
|
|
26
|
+
/** Epoch ms; must fall within that series' first and last point. */
|
|
27
|
+
t: number;
|
|
28
|
+
/** Names the marker in its tooltip, its accessible name and the hidden list. */
|
|
29
|
+
label: string;
|
|
30
|
+
/** Shown under the label and the time in the marker's tooltip. */
|
|
31
|
+
content?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export interface LineChartProps {
|
|
34
|
+
/** What the chart measures, e.g. "Context size". Names the group and captions the table. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** At most 8, in palette order. */
|
|
37
|
+
series: readonly LineSeries[];
|
|
38
|
+
referenceLines?: readonly LineReference[];
|
|
39
|
+
markers?: readonly LineMarker[];
|
|
40
|
+
/** How a raw value reads in the tooltip, the readout and the table. @default locale-formatted number */
|
|
41
|
+
formatValue?: (value: number) => string;
|
|
42
|
+
/** How a value reads on the y axis; use a compact form here. @default `formatValue` */
|
|
43
|
+
formatAxis?: (value: number) => string;
|
|
44
|
+
/** How an instant reads in the tooltip, the readout and the table. @default medium date and time in the viewer's locale */
|
|
45
|
+
formatTime?: (t: number) => string;
|
|
46
|
+
/** How an instant reads on the x axis, on one line. @default a time of day, with the date where the day changes */
|
|
47
|
+
formatAxisTime?: (t: number) => string;
|
|
48
|
+
/** IANA zone instants are labelled in, e.g. "UTC". @default the viewer's */
|
|
49
|
+
timeZone?: string;
|
|
50
|
+
/** Plot height in px. @default 240 */
|
|
51
|
+
height?: number;
|
|
52
|
+
/** Said when there is nothing to draw. @default the built-in "No data" */
|
|
53
|
+
emptyLabel?: string;
|
|
54
|
+
className?: string;
|
|
55
|
+
ref?: Ref<HTMLDivElement>;
|
|
56
|
+
}
|
|
57
|
+
export declare function LineChart(props: LineChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface AxisTick {
|
|
2
|
+
t: number;
|
|
3
|
+
primary: string;
|
|
4
|
+
secondary: string | null;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The smallest round spacing whose labels fit side by side on a plot `plotW`
|
|
8
|
+
* wide, ticks on the zone's wall clock (midnights, hours, month starts). A span
|
|
9
|
+
* of no length is one tick. When no spacing fits, the widest one that gave two
|
|
10
|
+
* ticks is used and its labels crowd. When no spacing gave two ticks (a span
|
|
11
|
+
* shorter than the tightest spacing, or so long that even the widest would have
|
|
12
|
+
* more ticks than could be labelled) the axis is its two ends.
|
|
13
|
+
*/
|
|
14
|
+
export declare function axisTicks(min: number, max: number, plotW: number, timeZone: string | undefined, locale: string, formatAxisTime: ((t: number) => string) | undefined): AxisTick[];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface LinePoint {
|
|
2
|
+
/** Epoch ms. */
|
|
3
|
+
t: number;
|
|
4
|
+
/** Finite and >= 0. */
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* How far the wall clock in `timeZone` is ahead of UTC at instant `t`, in ms
|
|
9
|
+
* (negative west of Greenwich). `undefined` is the viewer's own zone. The parts
|
|
10
|
+
* are read as Latin digits in the Gregorian calendar whatever `locale` is, so a
|
|
11
|
+
* Thai or Arabic locale cannot turn the year or the hour into something
|
|
12
|
+
* `Number` cannot read.
|
|
13
|
+
*/
|
|
14
|
+
export declare function zoneOffsetMs(t: number, timeZone: string | undefined, locale: string): number;
|
|
15
|
+
/** Every multiple of `step` on the zone's wall clock whose instant is inside `[min, max]`, ascending. */
|
|
16
|
+
export declare function timeTicks(min: number, max: number, step: number, timeZone: string | undefined, locale: string): number[];
|
|
17
|
+
/** The first instant of every `months`-th month (counted from January of year 0) inside `[min, max]`, on the zone's calendar. */
|
|
18
|
+
export declare function monthTicks(min: number, max: number, months: number, timeZone: string | undefined, locale: string): number[];
|
|
19
|
+
export interface TickStep {
|
|
20
|
+
/** About how far apart the ticks are, ms: decides how many there could be and how a label reads. */
|
|
21
|
+
stepMs: number;
|
|
22
|
+
ticks: (min: number, max: number, timeZone: string | undefined, locale: string) => number[];
|
|
23
|
+
}
|
|
24
|
+
/** Every spacing the time axis may use, tightest first: seconds to hours, days, then calendar months to decades. */
|
|
25
|
+
export declare const TICK_STEPS: readonly TickStep[];
|
|
26
|
+
/** Index of the entry of `items` (ascending instants, or points by `t`) closest to `t`; the earlier one on a tie. `items` must not be empty. */
|
|
27
|
+
export declare function nearestIndex(items: readonly number[] | readonly LinePoint[], t: number): number;
|
|
28
|
+
/** The series' value at instant `t`: a point's own value at its instant, a straight line between neighbours elsewhere, null outside the series' span. */
|
|
29
|
+
export declare function valueAt(points: readonly LinePoint[], t: number): number | null;
|
|
30
|
+
/** Every distinct instant any series has a point at, ascending: the places a keyboard cursor can stand. */
|
|
31
|
+
export declare function mergeInstants(series: readonly (readonly LinePoint[])[]): number[];
|
|
32
|
+
/** The earliest and latest instant over every series' ascending points, or null when none has a point. */
|
|
33
|
+
export declare function timeBounds(series: readonly (readonly LinePoint[])[]): {
|
|
34
|
+
min: number;
|
|
35
|
+
max: number;
|
|
36
|
+
} | null;
|
|
37
|
+
export interface PointSummary {
|
|
38
|
+
count: number;
|
|
39
|
+
/** Null when the series has no point. */
|
|
40
|
+
first: number | null;
|
|
41
|
+
last: number | null;
|
|
42
|
+
lowest: number | null;
|
|
43
|
+
highest: number | null;
|
|
44
|
+
}
|
|
45
|
+
/** A series reduced to what the text alternative says about it: how many points, the span in time, the range of values. */
|
|
46
|
+
export declare function summarize(points: readonly LinePoint[]): PointSummary;
|
|
47
|
+
/**
|
|
48
|
+
* Thin a long series to what the screen can show: when there are more points
|
|
49
|
+
* than twice the pixel columns, keep each column's first, lowest, highest and
|
|
50
|
+
* last point, in time order. A spike or a drop that spans less than a pixel
|
|
51
|
+
* survives, and the path stays a few hundred segments however many points came
|
|
52
|
+
* in. A series that already fits is returned as it is. `x` maps an instant to
|
|
53
|
+
* its pixel.
|
|
54
|
+
*/
|
|
55
|
+
export declare function decimate(points: readonly LinePoint[], x: (t: number) => number, columns: number): readonly LinePoint[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode } from "react";
|
|
1
|
+
import { type ReactElement, type ReactNode, type Ref, type RefObject } from "react";
|
|
2
2
|
/** The React key of a folded "Other" row. Caller ids are keyed `id:<id>`, so no caller id can equal it. */
|
|
3
3
|
export declare const OTHER_KEY = "fold:other";
|
|
4
4
|
export declare const rowKey: (id: string) => string;
|
|
@@ -50,3 +50,71 @@ export declare function ChartTable({ caption, columns, rows, }: {
|
|
|
50
50
|
cells: readonly ReactNode[];
|
|
51
51
|
}[];
|
|
52
52
|
}): import("react").JSX.Element;
|
|
53
|
+
/** The width of the element `ref` points at, kept current as it resizes; 0 until the first measurement. */
|
|
54
|
+
export declare function useElementWidth(ref: RefObject<HTMLElement | null>): number;
|
|
55
|
+
/** What a chart says when it has nothing to draw: the caption's group, a placeholder of the plot's height, and an empty table. */
|
|
56
|
+
export declare function ChartEmpty({ label, text, height, className, ref, }: {
|
|
57
|
+
label: string;
|
|
58
|
+
text: string;
|
|
59
|
+
height: number;
|
|
60
|
+
className?: string;
|
|
61
|
+
ref?: Ref<HTMLDivElement>;
|
|
62
|
+
}): import("react").JSX.Element;
|
|
63
|
+
export interface PlotMargin {
|
|
64
|
+
top: number;
|
|
65
|
+
right: number;
|
|
66
|
+
bottom: number;
|
|
67
|
+
}
|
|
68
|
+
export interface PlotLayout {
|
|
69
|
+
/** Left edge of the plot: room for the widest y label. */
|
|
70
|
+
left: number;
|
|
71
|
+
/** The svg's width. */
|
|
72
|
+
W: number;
|
|
73
|
+
plotW: number;
|
|
74
|
+
plotH: number;
|
|
75
|
+
}
|
|
76
|
+
/** The plot's box inside an svg as wide as `measured` (or the fallback width where there is no layout). */
|
|
77
|
+
export declare function plotLayout(measured: number, height: number, margin: PlotMargin, axisLabels: readonly string[]): PlotLayout;
|
|
78
|
+
/** One horizontal gridline per tick with its label to the left. The zero line is the baseline marks grow from. */
|
|
79
|
+
export declare function ValueGrid({ ticks, labels, left, right, y, }: {
|
|
80
|
+
ticks: readonly number[];
|
|
81
|
+
labels: readonly string[];
|
|
82
|
+
left: number;
|
|
83
|
+
/** The x the lines end at. */
|
|
84
|
+
right: number;
|
|
85
|
+
y: (value: number) => number;
|
|
86
|
+
}): import("react").JSX.Element[];
|
|
87
|
+
/** An x tick: a primary line, and a secondary one when the day (or year) changed. `at` names it for tests and probes. */
|
|
88
|
+
export declare function XTickLabel({ at, x, y, primary, secondary }: {
|
|
89
|
+
at: number;
|
|
90
|
+
x: number;
|
|
91
|
+
y: number;
|
|
92
|
+
primary: string;
|
|
93
|
+
secondary: string | null;
|
|
94
|
+
}): import("react").JSX.Element;
|
|
95
|
+
/** The set of series keys the viewer has hidden from the legend, and the toggle that flips one. */
|
|
96
|
+
export declare function useHiddenSeries(): readonly [ReadonlySet<string>, (key: string) => void];
|
|
97
|
+
export declare const LEGEND_FRAME = "flex min-h-6 min-w-0 cursor-pointer items-center gap-1.5 rounded-md px-1 text-xs text-secondary hover:bg-surface-hover";
|
|
98
|
+
export declare function LegendList({ label, children }: {
|
|
99
|
+
label: string;
|
|
100
|
+
children: ReactNode;
|
|
101
|
+
}): import("react").JSX.Element;
|
|
102
|
+
export declare function LegendItem({ id, other, children }: {
|
|
103
|
+
id: string;
|
|
104
|
+
other?: boolean;
|
|
105
|
+
children: ReactNode;
|
|
106
|
+
}): import("react").JSX.Element;
|
|
107
|
+
/** The colour box (or, with `className`, another shape) beside a legend name: filled while the series shows, an outline while hidden. */
|
|
108
|
+
export declare function LegendSwatch({ color, off, className }: {
|
|
109
|
+
color: string;
|
|
110
|
+
off: boolean;
|
|
111
|
+
className?: string;
|
|
112
|
+
}): import("react").JSX.Element;
|
|
113
|
+
/** The button that shows or hides one series; `name` is its accessible name. */
|
|
114
|
+
export declare function LegendToggle({ name, off, onToggle, className, children, }: {
|
|
115
|
+
name: string;
|
|
116
|
+
off: boolean;
|
|
117
|
+
onToggle: () => void;
|
|
118
|
+
className?: string;
|
|
119
|
+
children: ReactNode;
|
|
120
|
+
}): import("react").JSX.Element;
|
|
@@ -20,6 +20,19 @@ export interface AccessRequest {
|
|
|
20
20
|
/** The label of the role granted. Shown once the request is approved or claimed. */
|
|
21
21
|
roleLabel?: string;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* DX-4856: the key a claim minted, and what a person may do with it. Pass it once the requester holds a key; omit it before that.
|
|
25
|
+
* `revokedAt` set means the key was revoked: the panel reads Revoked and offers nothing. Otherwise `onRevoke` (pass it only for a
|
|
26
|
+
* person allowed to revoke this key) adds a Revoke key button behind a confirmation dialog.
|
|
27
|
+
*/
|
|
28
|
+
export interface IssuedKey {
|
|
29
|
+
/** ISO instant the key was revoked. */
|
|
30
|
+
revokedAt?: string;
|
|
31
|
+
/** Who revoked it, when a person did. */
|
|
32
|
+
revokedBy?: string;
|
|
33
|
+
/** Revokes the key. A rejection shows its message in the panel; a resolution leaves the panel as it was until the consumer hands it `revokedAt`. */
|
|
34
|
+
onRevoke?: () => Promise<void>;
|
|
35
|
+
}
|
|
23
36
|
export interface AccessRequestPanelProps {
|
|
24
37
|
request: AccessRequest;
|
|
25
38
|
state: AccessRequestState;
|
|
@@ -46,6 +59,8 @@ export interface AccessRequestPanelProps {
|
|
|
46
59
|
* disabled until what was typed matches `request.confirmCode`, ignoring case and spaces. Deny stays available.
|
|
47
60
|
*/
|
|
48
61
|
confirmCodeEntry?: boolean;
|
|
62
|
+
/** DX-4856: the key this request minted, with its revoke. Used only in the `claimed` state. */
|
|
63
|
+
issuedKey?: IssuedKey;
|
|
49
64
|
className?: string;
|
|
50
65
|
}
|
|
51
|
-
export declare function AccessRequestPanel({ request, state, roles, permissions, ownPermissionKeys, defaultRoleId, onApprove, onDeny, expiredNote, confirmCodeEntry, className, }: AccessRequestPanelProps): import("react").JSX.Element;
|
|
66
|
+
export declare function AccessRequestPanel({ request, state, roles, permissions, ownPermissionKeys, defaultRoleId, onApprove, onDeny, expiredNote, confirmCodeEntry, issuedKey, className, }: AccessRequestPanelProps): import("react").JSX.Element;
|
|
@@ -7,9 +7,10 @@ export interface ExpiredNote {
|
|
|
7
7
|
/** What the requester must do to get access, e.g. "The agent must reconnect and ask again.". */
|
|
8
8
|
nextStep: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function ApprovalHeader({ title, state }: {
|
|
10
|
+
export declare function ApprovalHeader({ title, state, revokedLabel }: {
|
|
11
11
|
title: string;
|
|
12
12
|
state: AccessRequestState;
|
|
13
|
+
revokedLabel?: string;
|
|
13
14
|
}): import("react").JSX.Element;
|
|
14
15
|
/** The code is for comparing, never copying: plain large text, no copy control (see `AccessRequestPanel`). */
|
|
15
16
|
export declare function ConfirmCodeCallout({ code }: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export { Stat, StatRow, Sparkline, type StatProps, type StatRowProps, type Spark
|
|
|
78
78
|
export { ShareBar, type ShareBarProps, type ShareBarSegment, } from "./components/chart/ShareBar";
|
|
79
79
|
export { BarList, type BarListProps, type BarListItem, } from "./components/chart/BarList";
|
|
80
80
|
export { TimeSeriesChart, type TimeSeriesChartProps, type TimeSeriesSeries, type TimeSeriesRole, type TimeSeriesBlock, type TimeSeriesBlockKind, } from "./components/chart/TimeSeriesChart";
|
|
81
|
+
export { LineChart, type LineChartProps, type LineSeries, type LinePoint, type LineReference, type LineMarker, } from "./components/chart/LineChart";
|
|
81
82
|
export { CHART_SERIES_COUNT, CHART_SERIES_TOKENS, CHART_SEQUENTIAL_TOKEN, CHART_SEQUENTIAL_COLOR, chartSeriesColor, } from "./lib/chart-palette";
|
|
82
83
|
export { DataTable, TableEmptyState, CellStack, type DataTableProps, type TableDensity, } from "./components/Table";
|
|
83
84
|
export { CodeEditor, CodeEditorToolbar, CodeEditorCaption, CodeEditorCopyButton, CodeEditorWrapToggle, CodeEditorViewSwitch, type CodeEditorProps, type CodeEditorToolbarProps, type CodeEditorView, } from "./components/CodeEditor";
|
|
@@ -157,7 +158,7 @@ export { cellLabel, eventLabel, formatDateRange, longDate, monthTitle, timeOfDay
|
|
|
157
158
|
export { initialFocusDay, isInMonth, nextDayForKey, useGridNavigation, type GridNavigation, type GridNavigationOptions, } from "./components/calendar/use-grid-navigation";
|
|
158
159
|
export { AmbiguousTimeError, addDays, addDuration, addMonths, atMidnight, atTime, comparePlainDate, dayFraction, dayLengthMs, dayOfWeek, daysBetween, daysInMonth, endOfMonth, hoursInDay, instantAtFraction, instantToPlainDate, instantToPlainDateTime, isSameDate, isoDateString, isoDateTimeString, monthGridDays, nextDay, offsetAt, parsePlainDate, plainDateTimeToInstant, relativeAge, startOfDay, startOfMonth, startOfWeek, weekDays, type CalendarDuration, type Disambiguation, type Instant, type PlainDate, type PlainDateTime, type TimeZone, } from "./lib/time";
|
|
159
160
|
export { allDayBandSegment, dayKey, daySlots, isAllDay, packBand, packLanes, snapFractionToInstant, timeSegments, timedBandSegment, type AllDayEvent, type BandInput, type BandOptions, type BandPlacement, type BandResult, type BandSegment, type CalendarEvent, type CalendarEventId, type CalendarView, type DaySlot, type DragKind, type EventDraft, type EventPalette, type LaneInput, type LaneOptions, type LanePlacement, type PaletteEntry, type PaletteKey, type TimeSegment, type TimedEvent, type VisibleRange, } from "./lib/calendar";
|
|
160
|
-
export { RBACProvider, useRBAC, Can, useHasPermission, AccountMenu, AccountMenuSection, TeamSwitcher, DevToolsPopover, RolePermissionMatrix, RoleEditorDialog, ProfileForm, ProfilePage, RolesPermissionsPage, MembersPanel, ChangePasswordForm, SessionsList, ApiKeysPanel, AgentKeysList, AccessRequestPanel, PermissionRequestPanel, RoleKeyPicker, isRoleSelectable, leastPrivilegeRoleId, InvitationsList, InviteMembersDialog, Brand, TeamSettingsForm, DangerZone, type RBACProviderProps, type RBACHookResult, type CanProps, type AccountMenuProps, type TeamSwitcherProps, type DevToolsPopoverProps, type RolePermissionMatrixProps, type RoleEditorDialogProps, type RoleEditorDialogSubmitInput, type ProfileFormProps, type ProfileFormAccount, type ProfileFormSaveInput, type ProfilePageProps, type RolesPermissionsPageProps, type MembersPanelProps, type MembersPanelMember, type ChangePasswordFormProps, type SessionsListProps, type Session, type ApiKeysPanelProps, type AgentKeysListProps, type ApiKey, type KeyGrant, type KeyRoleEditor, type AccessRequestPanelProps, type AccessRequest, type AccessRequestKind, type AccessRequestState, type ExpiredNote, type PermissionRequestPanelProps, type PermissionRequest, type RoleKeyPickerProps, type InvitationsListProps, type InvitationsListItem, type InvitationStatus, type InviteMembersDialogProps, type Permission, type Role, type User, type Team, type TeamMembership, type BrandProps, type TeamSettingsFormProps, type TeamSettingsFormTeam, type TeamSettingsFormSaveInput, type DangerZoneProps, } from "./components/rbac";
|
|
161
|
+
export { RBACProvider, useRBAC, Can, useHasPermission, AccountMenu, AccountMenuSection, TeamSwitcher, DevToolsPopover, RolePermissionMatrix, RoleEditorDialog, ProfileForm, ProfilePage, RolesPermissionsPage, MembersPanel, ChangePasswordForm, SessionsList, ApiKeysPanel, AgentKeysList, AccessRequestPanel, PermissionRequestPanel, RoleKeyPicker, isRoleSelectable, leastPrivilegeRoleId, InvitationsList, InviteMembersDialog, Brand, TeamSettingsForm, DangerZone, type RBACProviderProps, type RBACHookResult, type CanProps, type AccountMenuProps, type TeamSwitcherProps, type DevToolsPopoverProps, type RolePermissionMatrixProps, type RoleEditorDialogProps, type RoleEditorDialogSubmitInput, type ProfileFormProps, type ProfileFormAccount, type ProfileFormSaveInput, type ProfilePageProps, type RolesPermissionsPageProps, type MembersPanelProps, type MembersPanelMember, type ChangePasswordFormProps, type SessionsListProps, type Session, type ApiKeysPanelProps, type AgentKeysListProps, type ApiKey, type KeyGrant, type KeyRoleEditor, type AccessRequestPanelProps, type AccessRequest, type AccessRequestKind, type IssuedKey, type AccessRequestState, type ExpiredNote, type PermissionRequestPanelProps, type PermissionRequest, type RoleKeyPickerProps, type InvitationsListProps, type InvitationsListItem, type InvitationStatus, type InviteMembersDialogProps, type Permission, type Role, type User, type Team, type TeamMembership, type BrandProps, type TeamSettingsFormProps, type TeamSettingsFormTeam, type TeamSettingsFormSaveInput, type DangerZoneProps, } from "./components/rbac";
|
|
161
162
|
export { AuthLayout, AcceptInvitationCard, SignupCard, TermsAcceptance, LoginForm, ForgotPasswordForm, ResetPasswordForm, type AuthLayoutProps, type AcceptInvitationCardProps, type SignupCardProps, type TermsAcceptanceProps, type LoginFormProps, type ForgotPasswordFormProps, type ResetPasswordFormProps, } from "./components/auth";
|
|
162
163
|
export { UseCaseCard, RoadmapItemCard, RoadmapSwimlaneBoard, UseCaseLedgerPage, RoadmapPage, PhaseManager, TrackManager, deriveRoadmapItemStatus, isFullyBuilt, isUnbuilt, trackIds, trackProgress, toneForIndex, CATEGORY_TONES, type Domain, type Phase, type Track, type RoadmapItem, type RoadmapItemStatus, type UseCase, type UseCaseStatus, type UseCaseDecision, type UseCaseCardProps, type RoadmapItemCardProps, type RoadmapSwimlaneBoardProps, type UseCaseLedgerPageProps, type RoadmapPageProps, type PhaseManagerProps, type TrackManagerProps, } from "./components/roadmap";
|
|
163
164
|
export { ProvenanceDisclosure, ProvenanceDetail, ProvenanceBadge, ConfidenceReadout, ConfidenceMeter, ConfidenceBar, provenanceStateLabel, confidenceBand, confidenceScore, scoredConfidence, ratedConfidence, type ProvenanceRecord, type ProvenanceState, type ProvenanceSource, type ProvenanceCheck, type ProvenanceCall, type ProvenanceSignoff, type ConfidenceBand, type ConfidenceScore, type ProvenanceConfidence, type ConfidenceReadoutProps, type ConfidenceBarProps, type ConfidenceBarSize, type ProvenanceDisclosureProps, type ProvenanceDetailProps, type ProvenanceDetailTitleAs, type ProvenanceTriggerBadge, type ProvenanceBadgeProps, type ProvenanceBadgeAppearance, type ConfidenceMeterProps, } from "./components/provenance";
|
|
@@ -44,6 +44,34 @@ export interface ChatChartStrings {
|
|
|
44
44
|
/** `TimeSeriesChart` legend toggle button accessible name for one series. */
|
|
45
45
|
showSeries: (label: string) => string;
|
|
46
46
|
};
|
|
47
|
+
lineChart: {
|
|
48
|
+
/** `LineChart` placeholder shown when no series has a point (unless the caller passes `emptyLabel`). */
|
|
49
|
+
empty: string;
|
|
50
|
+
/** `LineChart` text over the plot when the viewer has hidden every series from the legend. */
|
|
51
|
+
allHidden: string;
|
|
52
|
+
/** `LineChart` accessible name of the plot: the chart's own label, then the keyboard hint. */
|
|
53
|
+
plot: (label: string) => string;
|
|
54
|
+
/** `LineChart` live readout at the cursor: the instant, then one part per visible series. */
|
|
55
|
+
readout: (when: string, parts: readonly string[]) => string;
|
|
56
|
+
/** `LineChart` readout, one series' part: its label and value; `at` is that series' own instant, given only when it differs from the cursor's. */
|
|
57
|
+
readoutPart: (label: string, value: string, at: string | null) => string;
|
|
58
|
+
/** `LineChart` legend list accessible name. */
|
|
59
|
+
legend: string;
|
|
60
|
+
/** `LineChart` legend toggle button accessible name for one series. */
|
|
61
|
+
showSeries: (label: string) => string;
|
|
62
|
+
/** `LineChart` visually hidden summary table, column headers after the series name. */
|
|
63
|
+
columnPoints: string;
|
|
64
|
+
columnFrom: string;
|
|
65
|
+
columnTo: string;
|
|
66
|
+
columnLowest: string;
|
|
67
|
+
columnHighest: string;
|
|
68
|
+
/** `LineChart` visually hidden list of reference lines: its name, then one entry per line. */
|
|
69
|
+
referenceLines: string;
|
|
70
|
+
referenceLine: (label: string, value: string) => string;
|
|
71
|
+
/** `LineChart` visually hidden list of markers: its name, then one entry per marker (its label, its series' label, its instant). */
|
|
72
|
+
markers: string;
|
|
73
|
+
marker: (label: string, series: string, when: string) => string;
|
|
74
|
+
};
|
|
47
75
|
};
|
|
48
76
|
chat: {
|
|
49
77
|
attachment: {
|
|
@@ -89,6 +89,22 @@ export interface RbacStrings {
|
|
|
89
89
|
noRoleBody: string;
|
|
90
90
|
/** Description under the role picker; `isDefault` is true when the consumer's default role was preselected. */
|
|
91
91
|
roleHint: (roleLabel: string, isDefault: boolean) => string;
|
|
92
|
+
/** DX-4856: the header badge and readout title once the key this request minted was revoked. */
|
|
93
|
+
revoked: string;
|
|
94
|
+
/** DX-4856: readout body for a revoked key; `when` is the formatted instant, `by` the revoker's name when a person did it. */
|
|
95
|
+
revokedBody: (when: string, by: string | undefined) => string;
|
|
96
|
+
/** DX-4856: label of the button that starts revoking the key. */
|
|
97
|
+
revokeKey: string;
|
|
98
|
+
/** DX-4856: title of the confirmation dialog. */
|
|
99
|
+
revokeTitle: string;
|
|
100
|
+
/** DX-4856: body of the confirmation dialog. */
|
|
101
|
+
revokeBody: string;
|
|
102
|
+
/** DX-4856: the dialog's dismiss button. */
|
|
103
|
+
revokeCancel: string;
|
|
104
|
+
/** DX-4856: title of the error shown when the revoke failed. */
|
|
105
|
+
revokeFailedTitle: string;
|
|
106
|
+
/** DX-4856: message of that error when the rejection carried none. */
|
|
107
|
+
revokeFailedMessage: string;
|
|
92
108
|
};
|
|
93
109
|
/** `PermissionRequestPanel`. */
|
|
94
110
|
permissionRequest: {
|