durable-actors-observer 0.14.6 → 0.15.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.
Files changed (125) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/client/DatatContext.d.ts +19 -0
  3. package/dist/client/DrawerContext.d.ts +15 -0
  4. package/dist/client/TimeRangeContext.d.ts +8 -0
  5. package/dist/client/cacheKeys.d.ts +10 -0
  6. package/dist/client/observerClient.d.ts +31 -0
  7. package/dist/client/streams/actorStream.d.ts +2 -0
  8. package/dist/client/streams/logStream.d.ts +2 -0
  9. package/dist/client/streams/requestStream.d.ts +2 -0
  10. package/dist/components/actorType/actorTypePage.d.ts +1 -0
  11. package/dist/components/actorType/instanceStatus.d.ts +6 -0
  12. package/dist/components/actorType/instancesCard.d.ts +9 -0
  13. package/dist/components/actorType/liveDormantCard.d.ts +5 -0
  14. package/dist/components/actorType/residencyCard.d.ts +20 -0
  15. package/dist/components/actorType/timingCard.d.ts +14 -0
  16. package/dist/components/instance/connectionsCard.d.ts +14 -0
  17. package/dist/components/instance/instancePage.d.ts +1 -0
  18. package/dist/components/instance/logChart.d.ts +10 -0
  19. package/dist/components/instance/logList.d.ts +16 -0
  20. package/dist/components/instance/logsCard.d.ts +12 -0
  21. package/dist/components/instance/memoryCard.d.ts +7 -0
  22. package/dist/components/instance/requestDetails.d.ts +7 -0
  23. package/dist/components/instance/requestsCard.d.ts +9 -0
  24. package/dist/components/instance/storageCard.d.ts +8 -0
  25. package/dist/components/overview/activeActorsCard.d.ts +1 -0
  26. package/dist/components/overview/actorTypesCard.d.ts +1 -0
  27. package/dist/components/overview/overview.d.ts +1 -0
  28. package/dist/components/overview/requestCountCard.d.ts +1 -0
  29. package/dist/components/overview/requestRateCard.d.ts +9 -0
  30. package/dist/components/overview/socketsCard.d.ts +1 -0
  31. package/dist/components/overview/trendCard.d.ts +22 -0
  32. package/dist/components/timeRange/timeRangeControl.d.ts +1 -0
  33. package/dist/components/timeRange/timeRangePicker.d.ts +5 -0
  34. package/dist/components/ui/barChart.d.ts +9 -0
  35. package/dist/components/ui/button.d.ts +4 -4
  36. package/dist/components/ui/calendar.d.ts +5 -5
  37. package/dist/components/ui/delta.d.ts +5 -0
  38. package/dist/components/ui/drawer.d.ts +13 -13
  39. package/dist/components/ui/expandFooter.d.ts +9 -0
  40. package/dist/components/ui/input.d.ts +2 -2
  41. package/dist/components/ui/pageHeader.d.ts +15 -0
  42. package/dist/components/ui/popover.d.ts +5 -9
  43. package/dist/components/ui/queueStripes.d.ts +2 -0
  44. package/dist/components/ui/residencyBar.d.ts +15 -0
  45. package/dist/components/ui/sectionCard.d.ts +11 -0
  46. package/dist/components/ui/segmentedControl.d.ts +14 -0
  47. package/dist/components/ui/skeleton.d.ts +2 -0
  48. package/dist/components/ui/sparkline.d.ts +11 -0
  49. package/dist/components/ui/statCard.d.ts +15 -0
  50. package/dist/components/ui/timeline.d.ts +19 -0
  51. package/dist/components/ui/tooltip.d.ts +7 -0
  52. package/dist/components/ui/trendCard.d.ts +24 -0
  53. package/dist/format.d.ts +17 -0
  54. package/dist/hooks/useActorRequests.d.ts +13 -0
  55. package/dist/hooks/useActors.d.ts +7 -0
  56. package/dist/hooks/useDebouncedValue.d.ts +1 -0
  57. package/dist/hooks/useLogs.d.ts +10 -0
  58. package/dist/hooks/useRequests.d.ts +8 -0
  59. package/dist/hooks/useResidency.d.ts +7 -0
  60. package/dist/hooks/useWebSockets.d.ts +7 -0
  61. package/dist/hooks/useWindowedSWR.d.ts +5 -0
  62. package/dist/index.d.ts +6 -39
  63. package/dist/index.js +3601 -4010
  64. package/dist/lib/actorTypes.d.ts +11 -0
  65. package/dist/lib/logs.d.ts +28 -0
  66. package/dist/lib/requestStats.d.ts +22 -0
  67. package/dist/lib/sockets.d.ts +3 -0
  68. package/dist/lib/timeRange.d.ts +17 -0
  69. package/dist/lib/trendWindow.d.ts +5 -0
  70. package/dist/mocks/instanceResources.d.ts +3 -0
  71. package/dist/routes.d.ts +1 -0
  72. package/dist/standalone/THIRD-PARTY-LICENSES.md +423 -39
  73. package/dist/standalone/app.css +1 -1
  74. package/dist/standalone/app.js +19 -40
  75. package/dist/standalone/index.html +1 -1
  76. package/dist/theme.css +2 -1
  77. package/dist/types/Actors.d.ts +27 -0
  78. package/dist/types/Logs.d.ts +27 -0
  79. package/dist/types/Overview.d.ts +24 -0
  80. package/dist/types/Requests.d.ts +33 -0
  81. package/dist/types/Residency.d.ts +11 -0
  82. package/dist/types/Resources.d.ts +14 -0
  83. package/dist/types/Sockets.d.ts +12 -0
  84. package/dist/types/TimeRange.d.ts +22 -0
  85. package/package.json +10 -8
  86. package/dist/ActorObserver.d.ts +0 -16
  87. package/dist/ConnectionInventoryNotice.d.ts +0 -4
  88. package/dist/ConsoleApp.d.ts +0 -6
  89. package/dist/FilterCombobox.d.ts +0 -19
  90. package/dist/InstanceTimeline.d.ts +0 -45
  91. package/dist/Overview.d.ts +0 -9
  92. package/dist/RequestObserver.d.ts +0 -16
  93. package/dist/RequestTimeline.d.ts +0 -9
  94. package/dist/ResidencyTimeline.d.ts +0 -11
  95. package/dist/SocketTimeline.d.ts +0 -28
  96. package/dist/StateInspector.d.ts +0 -13
  97. package/dist/TimeRangePicker.d.ts +0 -9
  98. package/dist/TimelineScroll.d.ts +0 -8
  99. package/dist/TimelineWheelZoom.d.ts +0 -3
  100. package/dist/TimelineZoom.d.ts +0 -20
  101. package/dist/WebSocketObserver.d.ts +0 -9
  102. package/dist/assets/state-diff.worker-ieZNeZXJ.js +0 -18
  103. package/dist/client.d.ts +0 -120
  104. package/dist/components/ui/badge.d.ts +0 -7
  105. package/dist/components/ui/command.d.ts +0 -11
  106. package/dist/components/ui/native-select.d.ts +0 -7
  107. package/dist/components/ui/sheet.d.ts +0 -9
  108. package/dist/components/ui/table.d.ts +0 -12
  109. package/dist/observer-hooks.d.ts +0 -21
  110. package/dist/overview-data.d.ts +0 -15
  111. package/dist/overview-metrics.d.ts +0 -14
  112. package/dist/queue-wait-history.d.ts +0 -7
  113. package/dist/queue-wait.d.ts +0 -17
  114. package/dist/request-history.d.ts +0 -7
  115. package/dist/request-timeline.d.ts +0 -26
  116. package/dist/residency.d.ts +0 -18
  117. package/dist/socket-history.d.ts +0 -12
  118. package/dist/socket-sessions.d.ts +0 -38
  119. package/dist/standalone/assets/state-diff.worker-ieZNeZXJ.js +0 -18
  120. package/dist/state-data.d.ts +0 -30
  121. package/dist/state-diff.d.ts +0 -1
  122. package/dist/state-diff.worker.d.ts +0 -1
  123. package/dist/state-inspection.d.ts +0 -11
  124. package/dist/styles.css +0 -2
  125. package/dist/time-range.d.ts +0 -39
package/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare function App(): import("react").JSX.Element;
2
+ export default App;
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from "react";
2
+ import type { ActorInventory } from "../types/Actors.js";
3
+ import type { RequestTrace } from "../types/Requests.js";
4
+ import type { SocketSession } from "../types/Sockets.js";
5
+ type DataContextType = {
6
+ baseUrl: string;
7
+ actorTypes: ActorInventory | null;
8
+ isError: boolean;
9
+ requests: RequestTrace[] | null;
10
+ isRequestsError: boolean;
11
+ sessions: SocketSession[] | null;
12
+ isSocketsError: boolean;
13
+ };
14
+ export declare const DataProvider: ({ baseUrl, children }: {
15
+ baseUrl?: string;
16
+ children: ReactNode;
17
+ }) => import("react").JSX.Element;
18
+ export declare const useData: () => DataContextType;
19
+ export {};
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from "react";
2
+ export type DrawerEntry = {
3
+ key: string;
4
+ content: ReactNode;
5
+ };
6
+ type DrawerContextType = {
7
+ openKey: string | null;
8
+ show: (entry: DrawerEntry, trigger: HTMLElement) => void;
9
+ close: () => void;
10
+ };
11
+ export declare function DrawerProvider({ children }: {
12
+ children: ReactNode;
13
+ }): import("react").JSX.Element;
14
+ export declare function useDrawer(): DrawerContextType;
15
+ export {};
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from "react";
2
+ import type { TimeRange, TimeWindow } from "../types/TimeRange.js";
3
+ export declare function TimeRangeProvider({ initialRange, children }: {
4
+ initialRange?: TimeRange | (() => TimeRange);
5
+ children: ReactNode;
6
+ }): import("react").JSX.Element;
7
+ export declare function useTimeWindow(): TimeWindow;
8
+ export declare function useSetTimeRange(): (range: TimeRange) => void;
@@ -0,0 +1,10 @@
1
+ import type { LogFilter } from "../types/Logs.js";
2
+ export declare const actorsKey: (baseUrl: string) => readonly ["actors", string];
3
+ export declare const actorEventsKey: (baseUrl: string) => readonly ["actors/events", string];
4
+ export declare const requestsKey: (baseUrl: string) => readonly ["requests", string];
5
+ export declare const requestEventsKey: (baseUrl: string, durationMs: number) => readonly ["requests/events", string, number];
6
+ export declare const residencyKey: (baseUrl: string, actorName: string) => readonly ["residency", string, string];
7
+ export declare const webSocketsKey: (baseUrl: string) => readonly ["websockets", string];
8
+ export declare const logsKey: (baseUrl: string, { actorName, actorId, requestId, level, search }: LogFilter) => readonly ["logs", string, string, string, string | null, import("../types/Logs.js").LogLevel | null, string];
9
+ export declare const logHistogramKey: (baseUrl: string, { actorName, actorId, requestId, search }: LogFilter) => readonly ["logs/histogram", string, string, string, string | null, string];
10
+ export declare const logEventsKey: (baseUrl: string, filter: LogFilter) => readonly ["logs/events", ...(string | null)[]];
@@ -0,0 +1,31 @@
1
+ import type { ActorInventory } from "../types/Actors.js";
2
+ import type { ActorLogPage, LogFilter, LogHistogram } from "../types/Logs.js";
3
+ import type { RequestHistoryQuery, RequestTrace, RequestTracePage } from "../types/Requests.js";
4
+ import type { ResidencyHistory } from "../types/Residency.js";
5
+ import type { SocketSession } from "../types/Sockets.js";
6
+ import type { TimeBounds } from "../types/TimeRange.js";
7
+ export declare const defaultBaseUrl = "/api/observe";
8
+ export interface ObserverClient {
9
+ listActorTypes(): Promise<ActorInventory>;
10
+ listRequests(query: RequestHistoryQuery): Promise<RequestTracePage>;
11
+ listResidency(actorName: string, bounds: TimeBounds): Promise<ResidencyHistory>;
12
+ listWebSockets(): Promise<SocketSession[]>;
13
+ listLogs(filter: LogFilter, bounds: TimeBounds, cursor: string | null): Promise<ActorLogPage>;
14
+ getLogHistogram(filter: LogFilter, bounds: TimeBounds, bucketMs: number): Promise<LogHistogram>;
15
+ }
16
+ export declare class HttpObserverClient implements ObserverClient {
17
+ private readonly baseUrl;
18
+ constructor(baseUrl?: string);
19
+ listActorTypes(): Promise<ActorInventory>;
20
+ listRequests({ fromMs, toMs, limit, cursor, actorName, actorId }: RequestHistoryQuery): Promise<RequestTracePage>;
21
+ listResidency(actorName: string, { fromMs, toMs }: TimeBounds): Promise<ResidencyHistory>;
22
+ listWebSockets(): Promise<SocketSession[]>;
23
+ listLogs(filter: LogFilter, { fromMs, toMs }: TimeBounds, cursor: string | null): Promise<ActorLogPage>;
24
+ getLogHistogram(filter: LogFilter, { fromMs, toMs }: TimeBounds, bucketMs: number): Promise<LogHistogram>;
25
+ collectRequests(bounds: TimeBounds, filter?: {
26
+ actorName?: string;
27
+ actorId?: string;
28
+ }): Promise<RequestTrace[]>;
29
+ private get;
30
+ }
31
+ export declare function logFilterParams({ actorName, actorId, requestId, level, search }: LogFilter): URLSearchParams;
@@ -0,0 +1,2 @@
1
+ import type { ActorInventory } from "../../types/Actors.js";
2
+ export declare function subscribeToActors(baseUrl: string, onInventory: (inventory: ActorInventory) => void): () => void;
@@ -0,0 +1,2 @@
1
+ import type { ActorLog, LogFilter } from "../../types/Logs.js";
2
+ export declare function subscribeToLogs(baseUrl: string, filter: LogFilter, onRecords: (records: ActorLog[]) => void): () => void;
@@ -0,0 +1,2 @@
1
+ import type { RequestTracePage } from "../../types/Requests.js";
2
+ export declare function subscribeToRequests(baseUrl: string, onPage: (page: RequestTracePage) => void): () => void;
@@ -0,0 +1 @@
1
+ export declare function ActorTypePage(): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from "react";
2
+ export declare function InstanceStatus({ live, className, children }: {
3
+ live: boolean;
4
+ className?: string;
5
+ children: ReactNode;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { ActorType } from "../../types/Actors.js";
2
+ import type { RequestTrace } from "../../types/Requests.js";
3
+ export type InstancesCardProps = {
4
+ actor: ActorType | null;
5
+ requests: RequestTrace[] | null;
6
+ failed: boolean;
7
+ now: number;
8
+ };
9
+ export declare function InstancesCard({ actor, requests, failed, now }: InstancesCardProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ActorTypeSummary } from "../../lib/actorTypes.js";
2
+ export declare function LiveDormantCard({ summary, failed }: {
3
+ summary: ActorTypeSummary | null;
4
+ failed: boolean;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import type { ActorType } from "../../types/Actors.js";
2
+ import type { RequestTrace } from "../../types/Requests.js";
3
+ import type { ResidencyHistory, ResidencyPeriod } from "../../types/Residency.js";
4
+ import type { TimeWindow } from "../../types/TimeRange.js";
5
+ import { type TimelineSegment } from "../ui/timeline.js";
6
+ export type ResidencyCardProps = {
7
+ actor: ActorType | null;
8
+ history: ResidencyHistory | null;
9
+ requests: RequestTrace[] | null;
10
+ failed: boolean;
11
+ timeWindow: TimeWindow;
12
+ };
13
+ export declare function ResidencyCard({ actor, history, requests, failed, timeWindow }: ResidencyCardProps): import("react").JSX.Element;
14
+ export declare function groupLivePeriods({ periods }: ResidencyHistory): Map<string, ResidencyPeriod[]>;
15
+ export declare function liveDuration(segments: TimelineSegment[]): number;
16
+ export declare function ResidencyTrack({ segments, requests, label }: {
17
+ segments: TimelineSegment[];
18
+ requests: RequestTrace[] | null;
19
+ label: string;
20
+ }): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { type TimingPick } from "../../lib/requestStats.js";
2
+ import type { RequestTrace } from "../../types/Requests.js";
3
+ import type { TimeWindow } from "../../types/TimeRange.js";
4
+ export type TimingCardProps = {
5
+ label: string;
6
+ window: string;
7
+ pick: TimingPick;
8
+ color: string;
9
+ chartLabel: string;
10
+ requests: RequestTrace[] | null;
11
+ failed: boolean;
12
+ timeWindow: TimeWindow;
13
+ };
14
+ export declare function TimingCard({ label, window, pick, color, chartLabel, requests, failed, timeWindow }: TimingCardProps): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { ActorInstance } from "../../types/Actors.js";
2
+ import type { RequestTrace } from "../../types/Requests.js";
3
+ import type { ResidencyPeriod } from "../../types/Residency.js";
4
+ import type { SocketSession } from "../../types/Sockets.js";
5
+ import type { TimeWindow } from "../../types/TimeRange.js";
6
+ export type ConnectionsCardProps = {
7
+ instance: ActorInstance | null;
8
+ sessions: SocketSession[] | null;
9
+ livePeriods: ResidencyPeriod[] | null;
10
+ requests: RequestTrace[] | null;
11
+ failed: boolean;
12
+ timeWindow: TimeWindow;
13
+ };
14
+ export declare function ConnectionsCard({ instance, sessions, livePeriods, requests, failed, timeWindow }: ConnectionsCardProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function InstancePage(): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { LogHistogram, LogLevel } from "../../types/Logs.js";
2
+ import type { TimeSpan } from "../../types/TimeRange.js";
3
+ export declare const levelFill: Record<LogLevel, string>;
4
+ export type LogChartProps = {
5
+ histogram: LogHistogram | undefined;
6
+ level: LogLevel | null;
7
+ live: boolean;
8
+ onZoom: (span: TimeSpan) => void;
9
+ };
10
+ export declare function LogChart({ histogram, level, live, onZoom }: LogChartProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import type { ActorLog } from "../../types/Logs.js";
2
+ export type LogColumns = {
3
+ level: boolean;
4
+ request: boolean;
5
+ };
6
+ export type LogListProps = {
7
+ lines: ActorLog[] | null;
8
+ failed: boolean;
9
+ search: string;
10
+ filtered: boolean;
11
+ onFilterRequest: (requestId: string) => void;
12
+ onClearFilters: () => void;
13
+ onReachEnd: (() => void) | undefined;
14
+ columns: LogColumns;
15
+ };
16
+ export declare function LogList({ lines, failed, search, filtered, onFilterRequest, onClearFilters, onReachEnd, columns }: LogListProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import type { RequestTrace } from "../../types/Requests.js";
2
+ import type { TimeWindow } from "../../types/TimeRange.js";
3
+ export declare const logsCardId = "logs";
4
+ export type LogsCardProps = {
5
+ actorName: string;
6
+ actorId: string;
7
+ requests: RequestTrace[] | null;
8
+ requestId: string | null;
9
+ onRequestChange: (requestId: string | null) => void;
10
+ timeWindow: TimeWindow;
11
+ };
12
+ export declare function LogsCard({ actorName, actorId, requests, requestId, onRequestChange, timeWindow }: LogsCardProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { MemoryUsage } from "../../types/Resources.js";
2
+ export type MemoryCardProps = {
3
+ memory: MemoryUsage | null;
4
+ loading: boolean;
5
+ failed: boolean;
6
+ };
7
+ export declare function MemoryCard({ memory, loading, failed }: MemoryCardProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { RequestTrace } from "../../types/Requests.js";
2
+ export type RequestDetailsProps = {
3
+ call: RequestTrace;
4
+ blocker: RequestTrace | undefined;
5
+ onShowLogs: () => void;
6
+ };
7
+ export declare function RequestDetails({ call, blocker, onShowLogs }: RequestDetailsProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { RequestTrace } from "../../types/Requests.js";
2
+ import type { TimeWindow } from "../../types/TimeRange.js";
3
+ export type RequestsCardProps = {
4
+ requests: RequestTrace[] | null;
5
+ failed: boolean;
6
+ timeWindow: TimeWindow;
7
+ onShowLogs: (requestId: string) => void;
8
+ };
9
+ export declare function RequestsCard({ requests, failed, timeWindow, onShowLogs }: RequestsCardProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { StorageUsage } from "../../types/Resources.js";
2
+ export declare function StorageCard({ storage, failed }: {
3
+ storage: StorageUsage | null;
4
+ failed: boolean;
5
+ }): import("react").JSX.Element;
6
+ export declare function ResourceSkeleton({ failed }: {
7
+ failed: boolean;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ActiveActorsCard(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ActorTypesCard(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Overview(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function RequestCountCard(): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { RequestTrace } from "../../types/Requests.js";
2
+ import type { TimeWindow } from "../../types/TimeRange.js";
3
+ export type RequestRateTrendProps = {
4
+ requests: RequestTrace[] | null;
5
+ failed: boolean;
6
+ timeWindow: TimeWindow;
7
+ color: string;
8
+ };
9
+ export declare function RequestRateTrend({ requests, failed, timeWindow, color }: RequestRateTrendProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SocketsCard(): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from "react";
2
+ export type TrendCardProps = {
3
+ label: string;
4
+ window: string;
5
+ value: ReactNode;
6
+ unit: ReactNode;
7
+ busy?: boolean;
8
+ series: number[];
9
+ axis: string[];
10
+ color: string;
11
+ chartLabel: string;
12
+ children: ReactNode;
13
+ };
14
+ export declare function TrendCard({ label, window, value, unit, busy, series, axis, color, chartLabel, children }: TrendCardProps): import("react").JSX.Element;
15
+ export declare function TrendStatsSkeleton({ failed }: {
16
+ failed: boolean;
17
+ }): import("react").JSX.Element;
18
+ export declare function TrendStat({ label, value, suffix }: {
19
+ label: string;
20
+ value: string;
21
+ suffix?: string;
22
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function TimeRangeControl(): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { TimeRange, TimeWindow } from "../../types/TimeRange.js";
2
+ export declare function TimeRangePicker({ timeWindow, onChange }: {
3
+ timeWindow: TimeWindow;
4
+ onChange: (range: TimeRange) => void;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export type BarChartProps = {
2
+ values: number[];
3
+ label: string;
4
+ highlighted?: number;
5
+ onSelect?: (index: number) => void;
6
+ barLabel?: (index: number) => string;
7
+ className?: string;
8
+ };
9
+ export declare function BarChart({ values, label, highlighted, onSelect, barLabel, className }: BarChartProps): import("react").JSX.Element;
@@ -1,10 +1,10 @@
1
- import * as React from "react";
1
+ import type { ComponentProps } from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
5
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
7
+ declare function Button({ className, variant, size, asChild, ...props }: ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
9
- }): React.JSX.Element;
9
+ }): import("react").JSX.Element;
10
10
  export { Button, buttonVariants };
@@ -1,8 +1,8 @@
1
- import * as React from "react";
1
+ import { type ComponentProps } from "react";
2
2
  import { type DayButton, DayPicker } from "react-day-picker";
3
3
  import { Button } from "./button.js";
4
- declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
- buttonVariant?: React.ComponentProps<typeof Button>["variant"];
6
- }): React.JSX.Element;
7
- declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: ComponentProps<typeof Button>["variant"];
6
+ }): import("react").JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: ComponentProps<typeof DayButton>): import("react").JSX.Element;
8
8
  export { Calendar, CalendarDayButton };
@@ -0,0 +1,5 @@
1
+ import type { ReactNode } from "react";
2
+ export declare function Delta({ value, children }: {
3
+ value: number;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
@@ -1,15 +1,15 @@
1
- import * as React from "react";
1
+ import type { ComponentProps } from "react";
2
2
  import { Drawer as DrawerPrimitive } from "vaul";
3
- declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
4
- declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
5
- declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
6
- declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
7
- declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): React.JSX.Element;
8
- declare function DrawerContent({ className, children, container, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content> & {
3
+ declare function Drawer({ ...props }: ComponentProps<typeof DrawerPrimitive.Root>): import("react").JSX.Element;
4
+ declare function DrawerTrigger({ ...props }: ComponentProps<typeof DrawerPrimitive.Trigger>): import("react").JSX.Element;
5
+ declare function DrawerPortal({ ...props }: ComponentProps<typeof DrawerPrimitive.Portal>): import("react").JSX.Element;
6
+ declare function DrawerClose({ ...props }: ComponentProps<typeof DrawerPrimitive.Close>): import("react").JSX.Element;
7
+ declare function DrawerOverlay({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Overlay>): import("react").JSX.Element;
8
+ declare function DrawerContent({ className, children, container, ...props }: ComponentProps<typeof DrawerPrimitive.Content> & {
9
9
  container?: HTMLElement | null;
10
- }): React.JSX.Element;
11
- declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
- declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
- declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
14
- declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
15
- export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription };
10
+ }): import("react").JSX.Element;
11
+ declare function DrawerHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
12
+ declare function DrawerFooter({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
13
+ declare function DrawerTitle({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Title>): import("react").JSX.Element;
14
+ declare function DrawerDescription({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Description>): import("react").JSX.Element;
15
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
@@ -0,0 +1,9 @@
1
+ export type ExpandFooterProps = {
2
+ shown: number;
3
+ total: number;
4
+ noun: string;
5
+ expandLabel: string;
6
+ expanded: boolean;
7
+ onToggle: () => void;
8
+ };
9
+ export declare function ExpandFooter({ shown, total, noun, expandLabel, expanded, onToggle }: ExpandFooterProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- import type * as React from "react";
2
- declare function Input({ className, type, ...props }: React.ComponentProps<"input">): React.JSX.Element;
1
+ import type { ComponentProps } from "react";
2
+ declare function Input({ className, type, ...props }: ComponentProps<"input">): import("react").JSX.Element;
3
3
  export { Input };
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from "react";
2
+ import { type RelativeRoutingType } from "react-router";
3
+ export type PageHeaderProps = {
4
+ titleId: string;
5
+ title: string;
6
+ back: {
7
+ to: string;
8
+ label: string;
9
+ relative?: RelativeRoutingType;
10
+ };
11
+ badge?: ReactNode;
12
+ meta: ReactNode;
13
+ aside?: ReactNode;
14
+ };
15
+ export declare function PageHeader({ titleId, title, back, badge, meta, aside }: PageHeaderProps): import("react").JSX.Element;
@@ -1,10 +1,6 @@
1
- import * as React from "react";
1
+ import type { ComponentProps } from "react";
2
2
  import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
4
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
5
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
6
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
7
- declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
- declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): React.JSX.Element;
9
- declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
10
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverHeader, PopoverTitle, PopoverDescription };
3
+ declare function Popover(props: ComponentProps<typeof PopoverPrimitive.Root>): import("react").JSX.Element;
4
+ declare function PopoverTrigger(props: ComponentProps<typeof PopoverPrimitive.Trigger>): import("react").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: ComponentProps<typeof PopoverPrimitive.Content>): import("react").JSX.Element;
6
+ export { Popover, PopoverContent, PopoverTrigger };
@@ -0,0 +1,2 @@
1
+ import type { ComponentProps } from "react";
2
+ export declare function QueueStripes({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { CSSProperties } from "react";
2
+ export type ResidencyBarProps = {
3
+ liveShare: number;
4
+ label: string;
5
+ pulse?: boolean;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ };
9
+ export declare function ResidencyBar({ liveShare, label, pulse, className, style }: ResidencyBarProps): import("react").JSX.Element;
10
+ export declare function ResidencyLegend({ live, dormant, showCounts }: {
11
+ live: number;
12
+ dormant: number;
13
+ showCounts?: boolean;
14
+ }): import("react").JSX.Element;
15
+ export declare function ResidencyBarSkeleton(): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { type ReactNode } from "react";
2
+ export type SectionCardProps = {
3
+ id?: string;
4
+ title: string;
5
+ description?: ReactNode;
6
+ aside?: ReactNode;
7
+ busy?: boolean;
8
+ className?: string;
9
+ children: ReactNode;
10
+ };
11
+ export declare function SectionCard({ id, title, description, aside, busy, className, children }: SectionCardProps): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ export type SegmentedOption<T extends string> = {
3
+ value: T;
4
+ label: string;
5
+ icon?: ReactNode;
6
+ badge?: ReactNode;
7
+ };
8
+ export type SegmentedControlProps<T extends string> = {
9
+ label: string;
10
+ options: SegmentedOption<T>[];
11
+ value: T;
12
+ onChange: (value: T) => void;
13
+ };
14
+ export declare function SegmentedControl<T extends string>({ label, options, value, onChange }: SegmentedControlProps<T>): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { ComponentProps } from "react";
2
+ export declare function Skeleton({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export type PointDescription = {
2
+ at: string;
3
+ value: string;
4
+ };
5
+ export type SparklineProps = {
6
+ values: number[];
7
+ color: string;
8
+ label: string;
9
+ describePoint?: (index: number) => PointDescription;
10
+ };
11
+ export declare function Sparkline({ values, color, label, describePoint }: SparklineProps): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from "react";
2
+ export type StatCardProps = {
3
+ label: string;
4
+ aside?: ReactNode;
5
+ value?: ReactNode;
6
+ unit?: ReactNode;
7
+ busy?: boolean;
8
+ children?: ReactNode;
9
+ };
10
+ export declare function StatCard({ label, aside, value, unit, busy, children }: StatCardProps): import("react").JSX.Element;
11
+ export declare function StatFigure({ value, unit, className }: {
12
+ value: ReactNode;
13
+ unit?: ReactNode;
14
+ className?: string;
15
+ }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from "react";
2
+ import type { TimeSpan, TimeWindow } from "../../types/TimeRange.js";
3
+ export type TimelineSegment = TimeSpan & {
4
+ left: number;
5
+ width: number;
6
+ now: boolean;
7
+ };
8
+ export type TimelineAxisProps = {
9
+ timeWindow: TimeWindow;
10
+ grid: string;
11
+ label?: string;
12
+ trailing?: string;
13
+ };
14
+ export declare function TimelineAxis({ timeWindow, grid, label, trailing }: TimelineAxisProps): import("react").JSX.Element;
15
+ export declare function TimelineTrack({ label, children }: {
16
+ label: string;
17
+ children: ReactNode;
18
+ }): import("react").JSX.Element;
19
+ export declare function timelineSegments(spans: TimeSpan[], { fromMs: start, toMs: end }: TimeWindow, ongoing: boolean): TimelineSegment[];
@@ -0,0 +1,7 @@
1
+ import type { ComponentProps } from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>): import("react").JSX.Element;
4
+ declare function Tooltip(props: ComponentProps<typeof TooltipPrimitive.Root>): import("react").JSX.Element;
5
+ declare function TooltipTrigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>): import("react").JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: ComponentProps<typeof TooltipPrimitive.Content>): import("react").JSX.Element;
7
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,24 @@
1
+ import type { ReactNode } from "react";
2
+ import { type PointDescription } from "./sparkline.js";
3
+ export type TrendCardProps = {
4
+ label: string;
5
+ window: string;
6
+ value: ReactNode;
7
+ unit: ReactNode;
8
+ busy?: boolean;
9
+ series: number[];
10
+ axis: string[];
11
+ color: string;
12
+ chartLabel: string;
13
+ describePoint: (index: number) => PointDescription;
14
+ children: ReactNode;
15
+ };
16
+ export declare function TrendCard({ label, window, value, unit, busy, series, axis, color, chartLabel, describePoint, children }: TrendCardProps): import("react").JSX.Element;
17
+ export declare function TrendStatsSkeleton({ failed }: {
18
+ failed: boolean;
19
+ }): import("react").JSX.Element;
20
+ export declare function TrendStat({ label, value, suffix }: {
21
+ label: string;
22
+ value: string;
23
+ suffix?: string;
24
+ }): import("react").JSX.Element;