@flanksource/clicky-ui 0.1.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.
@@ -0,0 +1,834 @@
1
+ import { ClassValue } from "clsx";
2
+ import * as _$react from "react";
3
+ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, SelectHTMLAttributes, SyntheticEvent } from "react";
4
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
+ import { VariantProps } from "class-variance-authority";
6
+ import * as _$class_variance_authority_types0 from "class-variance-authority/types";
7
+
8
+ //#region src/lib/utils.d.ts
9
+ declare function cn(...inputs: ClassValue[]): string;
10
+ //#endregion
11
+ //#region src/lib/palette.d.ts
12
+ declare const AVATAR_PALETTE: readonly string[];
13
+ declare function fnv1a32(s: string): number;
14
+ declare function paletteClass(key: string): string;
15
+ //#endregion
16
+ //#region src/hooks/use-theme.d.ts
17
+ type Theme = "light" | "dark" | "system";
18
+ type ResolvedTheme = "light" | "dark";
19
+ type ThemeContextValue = {
20
+ theme: Theme;
21
+ resolvedTheme: ResolvedTheme;
22
+ setTheme: (next: Theme) => void;
23
+ };
24
+ type ThemeProviderProps = {
25
+ children: ReactNode;
26
+ defaultTheme?: Theme;
27
+ storageKey?: string;
28
+ };
29
+ declare function ThemeProvider({
30
+ children,
31
+ defaultTheme,
32
+ storageKey
33
+ }: ThemeProviderProps): _$react_jsx_runtime0.JSX.Element;
34
+ declare function useTheme(): ThemeContextValue;
35
+ //#endregion
36
+ //#region src/hooks/use-density.d.ts
37
+ type Density = "compact" | "comfortable" | "spacious";
38
+ type DensityContextValue = {
39
+ density: Density;
40
+ setDensity: (next: Density) => void;
41
+ };
42
+ type DensityProviderProps = {
43
+ children: ReactNode;
44
+ defaultDensity?: Density;
45
+ storageKey?: string;
46
+ };
47
+ declare function DensityProvider({
48
+ children,
49
+ defaultDensity,
50
+ storageKey
51
+ }: DensityProviderProps): _$react_jsx_runtime0.JSX.Element;
52
+ declare function useDensity(): DensityContextValue;
53
+ //#endregion
54
+ //#region src/hooks/use-sort.d.ts
55
+ type SortDir = "asc" | "desc";
56
+ type SortState = {
57
+ key: string;
58
+ dir: SortDir;
59
+ };
60
+ type UseSortOptions<T> = {
61
+ defaultKey?: string;
62
+ defaultDir?: SortDir;
63
+ resolvers?: Record<string, (item: T) => unknown>;
64
+ };
65
+ type UseSortReturn<T> = {
66
+ sorted: T[];
67
+ sort: SortState | null;
68
+ toggle: (key: string) => void;
69
+ };
70
+ declare function useSort<T>(items: T[], options?: UseSortOptions<T>): UseSortReturn<T>;
71
+ //#endregion
72
+ //#region src/hooks/use-history-route.d.ts
73
+ type UseHistoryRouteOptions<R> = {
74
+ parse: (pathname: string, search: string) => R;
75
+ build: (route: R) => string;
76
+ };
77
+ declare function useHistoryRoute<R>(options: UseHistoryRouteOptions<R>): [R, (next: Partial<R> | ((prev: R) => R)) => void];
78
+ //#endregion
79
+ //#region src/components/button.d.ts
80
+ declare const buttonVariants: (props?: ({
81
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
82
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
83
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
84
+ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
85
+ asChild?: boolean;
86
+ };
87
+ declare const Button: _$react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
88
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
89
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
90
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string> & {
91
+ asChild?: boolean;
92
+ } & _$react.RefAttributes<HTMLButtonElement>>;
93
+ //#endregion
94
+ //#region src/components/select.d.ts
95
+ type SelectOption = {
96
+ value: string;
97
+ label: string;
98
+ disabled?: boolean;
99
+ };
100
+ type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
101
+ options?: SelectOption[];
102
+ placeholder?: string;
103
+ };
104
+ declare const Select: _$react.ForwardRefExoticComponent<SelectHTMLAttributes<HTMLSelectElement> & {
105
+ options?: SelectOption[];
106
+ placeholder?: string;
107
+ } & _$react.RefAttributes<HTMLSelectElement>>;
108
+ //#endregion
109
+ //#region src/components/theme-switcher.d.ts
110
+ type ThemeSwitcherProps = HTMLAttributes<HTMLDivElement>;
111
+ declare const ThemeSwitcher: _$react.ForwardRefExoticComponent<ThemeSwitcherProps & _$react.RefAttributes<HTMLDivElement>>;
112
+ //#endregion
113
+ //#region src/components/density-switcher.d.ts
114
+ type DensitySwitcherProps = HTMLAttributes<HTMLDivElement>;
115
+ declare const DensitySwitcher: _$react.ForwardRefExoticComponent<DensitySwitcherProps & _$react.RefAttributes<HTMLDivElement>>;
116
+ //#endregion
117
+ //#region src/layout/SplitPane.d.ts
118
+ type SplitPaneProps = {
119
+ left: ReactNode;
120
+ right: ReactNode;
121
+ defaultSplit?: number;
122
+ minLeft?: number;
123
+ minRight?: number;
124
+ leftClass?: string;
125
+ rightClass?: string;
126
+ className?: string;
127
+ };
128
+ declare function SplitPane({
129
+ left,
130
+ right,
131
+ defaultSplit,
132
+ minLeft,
133
+ minRight,
134
+ leftClass,
135
+ rightClass,
136
+ className
137
+ }: SplitPaneProps): _$react_jsx_runtime0.JSX.Element;
138
+ //#endregion
139
+ //#region src/layout/Section.d.ts
140
+ type SectionProps = {
141
+ title: ReactNode;
142
+ summary?: ReactNode;
143
+ defaultOpen?: boolean;
144
+ open?: boolean;
145
+ onToggle?: (open: boolean) => void;
146
+ icon?: string;
147
+ tone?: "default" | "danger" | "warning" | "success" | "info";
148
+ className?: string;
149
+ headerClassName?: string;
150
+ bodyClassName?: string;
151
+ children: ReactNode;
152
+ };
153
+ declare function Section({
154
+ title,
155
+ summary,
156
+ defaultOpen,
157
+ open: openProp,
158
+ onToggle,
159
+ icon,
160
+ tone,
161
+ className,
162
+ headerClassName,
163
+ bodyClassName,
164
+ children
165
+ }: SectionProps): _$react_jsx_runtime0.JSX.Element;
166
+ type DetailEmptyStateProps = {
167
+ icon?: string;
168
+ label: ReactNode;
169
+ description?: ReactNode;
170
+ className?: string;
171
+ };
172
+ declare function DetailEmptyState({
173
+ icon,
174
+ label,
175
+ description,
176
+ className
177
+ }: DetailEmptyStateProps): _$react_jsx_runtime0.JSX.Element;
178
+ //#endregion
179
+ //#region src/data/AnsiHtml.d.ts
180
+ type AnsiHtmlProps = {
181
+ text: string;
182
+ className?: string;
183
+ as?: "pre" | "span";
184
+ };
185
+ declare function AnsiHtml({
186
+ text,
187
+ className,
188
+ as
189
+ }: AnsiHtmlProps): _$react_jsx_runtime0.JSX.Element;
190
+ //#endregion
191
+ //#region src/data/Avatar.d.ts
192
+ type AvatarProps = {
193
+ src?: string;
194
+ alt: string;
195
+ size?: number;
196
+ rounded?: "full" | "md";
197
+ title?: string;
198
+ href?: string;
199
+ /**
200
+ * Selects the palette color for the initial-fallback. Defaults to `alt` so
201
+ * repeated rendering of the same identity stays consistent. Pass the full
202
+ * "owner/name" for repo avatars so two repos named "cli" under different
203
+ * orgs render with different colors.
204
+ */
205
+ colorKey?: string;
206
+ onError?: (e: SyntheticEvent<HTMLImageElement>) => void;
207
+ className?: string;
208
+ };
209
+ declare function Avatar({
210
+ src,
211
+ alt,
212
+ size,
213
+ rounded,
214
+ title,
215
+ href,
216
+ colorKey,
217
+ onError,
218
+ className
219
+ }: AvatarProps): _$react_jsx_runtime0.JSX.Element;
220
+ //#endregion
221
+ //#region src/data/Badge.d.ts
222
+ declare const badgeVariants: (props?: ({
223
+ tone?: "neutral" | "success" | "danger" | "warning" | "info" | null | undefined;
224
+ variant?: "outline" | "soft" | "solid" | null | undefined;
225
+ size?: "sm" | "lg" | "md" | null | undefined;
226
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
227
+ type BadgeProps = VariantProps<typeof badgeVariants> & {
228
+ children?: ReactNode;
229
+ icon?: string;
230
+ count?: number;
231
+ className?: string;
232
+ };
233
+ declare function Badge({
234
+ tone,
235
+ variant,
236
+ size,
237
+ icon,
238
+ count,
239
+ children,
240
+ className
241
+ }: BadgeProps): _$react_jsx_runtime0.JSX.Element;
242
+ //#endregion
243
+ //#region src/data/Clicky.d.ts
244
+ type ClickyStyle = {
245
+ className?: string;
246
+ color?: string;
247
+ backgroundColor?: string;
248
+ bold?: boolean;
249
+ faint?: boolean;
250
+ italic?: boolean;
251
+ underline?: boolean;
252
+ strikethrough?: boolean;
253
+ textTransform?: string;
254
+ maxWidth?: number;
255
+ maxLines?: number;
256
+ truncateMode?: "suffix" | "prefix" | "headtail";
257
+ monospace?: boolean;
258
+ };
259
+ type ClickyField = {
260
+ name: string;
261
+ label?: string;
262
+ value: ClickyNode;
263
+ };
264
+ type ClickyColumn = {
265
+ name: string;
266
+ label?: string;
267
+ header?: ClickyNode;
268
+ align?: "left" | "right" | "center";
269
+ };
270
+ type ClickyRow = {
271
+ cells: Record<string, ClickyNode>;
272
+ detail?: ClickyNode;
273
+ };
274
+ type ClickyTreeItem = {
275
+ id: string;
276
+ label: ClickyNode;
277
+ children?: ClickyTreeItem[];
278
+ };
279
+ type ClickyNode = {
280
+ kind: "text" | "icon" | "list" | "map" | "table" | "tree" | "code" | "collapsed" | "button" | "button-group" | "html" | "comment";
281
+ plain?: string;
282
+ style?: ClickyStyle;
283
+ text?: string;
284
+ children?: ClickyNode[];
285
+ tooltip?: ClickyNode;
286
+ html?: string;
287
+ inline?: boolean;
288
+ ordered?: boolean;
289
+ unstyled?: boolean;
290
+ bullet?: ClickyNode;
291
+ items?: ClickyNode[];
292
+ fields?: ClickyField[];
293
+ columns?: ClickyColumn[];
294
+ rows?: ClickyRow[];
295
+ roots?: ClickyTreeItem[];
296
+ label?: ClickyNode;
297
+ content?: ClickyNode;
298
+ href?: string;
299
+ id?: string;
300
+ payload?: string;
301
+ variant?: string;
302
+ iconify?: string;
303
+ unicode?: string;
304
+ language?: string;
305
+ source?: string;
306
+ highlightedHtml?: string;
307
+ };
308
+ type ClickyDocument = {
309
+ version: 1;
310
+ node: ClickyNode;
311
+ };
312
+ type ClickyProps = {
313
+ data: ClickyDocument | ClickyNode | string;
314
+ className?: string;
315
+ };
316
+ declare function Clicky({
317
+ data,
318
+ className
319
+ }: ClickyProps): _$react_jsx_runtime0.JSX.Element;
320
+ //#endregion
321
+ //#region src/data/FilterPill.d.ts
322
+ type FilterMode = "active" | "neutral" | "include" | "exclude";
323
+ type FilterPillProps = {
324
+ mode?: FilterMode;
325
+ label: ReactNode;
326
+ count?: number;
327
+ icon?: string;
328
+ badge?: string;
329
+ /**
330
+ * Tri-state handler. When provided the pill renders as a toggle with a left
331
+ * minus (exclude) and right plus (include) region. Clicking a side toggles
332
+ * that state against "neutral"; clicking the label cycles neutral → include
333
+ * → exclude → neutral.
334
+ */
335
+ onModeChange?: (next: FilterMode) => void; /** Legacy single-click handler, used when onModeChange is not provided. */
336
+ onClick?: () => void;
337
+ title?: string;
338
+ className?: string;
339
+ };
340
+ declare function FilterPill({
341
+ mode,
342
+ label,
343
+ count,
344
+ icon,
345
+ badge,
346
+ onModeChange,
347
+ onClick,
348
+ title,
349
+ className
350
+ }: FilterPillProps): _$react_jsx_runtime0.JSX.Element;
351
+ type FilterPillGroupProps = {
352
+ children: ReactNode;
353
+ className?: string;
354
+ };
355
+ declare function FilterPillGroup({
356
+ children,
357
+ className
358
+ }: FilterPillGroupProps): _$react_jsx_runtime0.JSX.Element;
359
+ declare function FilterSeparator(): _$react_jsx_runtime0.JSX.Element;
360
+ //#endregion
361
+ //#region src/data/Gauge.d.ts
362
+ type GaugeTone = "neutral" | "success" | "warning" | "danger" | "info";
363
+ type GaugeProps = {
364
+ label: ReactNode;
365
+ value: number;
366
+ max?: number;
367
+ tone?: GaugeTone;
368
+ suffix?: string;
369
+ className?: string;
370
+ };
371
+ declare function Gauge({
372
+ label,
373
+ value,
374
+ max,
375
+ tone,
376
+ suffix,
377
+ className
378
+ }: GaugeProps): _$react_jsx_runtime0.JSX.Element;
379
+ //#endregion
380
+ //#region src/data/Icon.d.ts
381
+ type IconProps = {
382
+ name: string;
383
+ className?: string;
384
+ width?: string | number;
385
+ height?: string | number;
386
+ rotate?: string | number;
387
+ flip?: string;
388
+ inline?: boolean;
389
+ title?: string;
390
+ };
391
+ declare function Icon({
392
+ name,
393
+ className,
394
+ width,
395
+ height,
396
+ rotate,
397
+ flip,
398
+ inline,
399
+ title
400
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
401
+ //#endregion
402
+ //#region src/data/JsonView.d.ts
403
+ type JsonViewProps = {
404
+ data: unknown;
405
+ name?: string;
406
+ depth?: number;
407
+ defaultOpenDepth?: number;
408
+ };
409
+ declare function JsonView({
410
+ data,
411
+ name,
412
+ depth,
413
+ defaultOpenDepth
414
+ }: JsonViewProps): _$react_jsx_runtime0.JSX.Element;
415
+ //#endregion
416
+ //#region src/data/LogViewer.d.ts
417
+ type LogViewerProps = {
418
+ logs: string;
419
+ collapsedLines?: number;
420
+ maxExpandedVh?: number;
421
+ bgClass?: string;
422
+ borderClass?: string;
423
+ className?: string;
424
+ };
425
+ declare function LogViewer({
426
+ logs,
427
+ collapsedLines,
428
+ maxExpandedVh,
429
+ bgClass,
430
+ borderClass,
431
+ className
432
+ }: LogViewerProps): _$react_jsx_runtime0.JSX.Element;
433
+ //#endregion
434
+ //#region src/data/Markdown.d.ts
435
+ type MarkdownProps = {
436
+ text: string;
437
+ className?: string;
438
+ };
439
+ declare function Markdown({
440
+ text,
441
+ className
442
+ }: MarkdownProps): _$react_jsx_runtime0.JSX.Element;
443
+ //#endregion
444
+ //#region src/data/ProgressBar.d.ts
445
+ type ProgressSegment = {
446
+ count: number;
447
+ color: string;
448
+ label: string;
449
+ };
450
+ type ProgressBarProps = {
451
+ segments: ProgressSegment[];
452
+ total: number;
453
+ height?: string;
454
+ className?: string;
455
+ };
456
+ declare function ProgressBar({
457
+ segments,
458
+ total,
459
+ height,
460
+ className
461
+ }: ProgressBarProps): _$react_jsx_runtime0.JSX.Element | null;
462
+ //#endregion
463
+ //#region src/data/SortableHeader.d.ts
464
+ type SortableHeaderProps = {
465
+ active: boolean;
466
+ dir?: SortDir | undefined;
467
+ onClick: () => void;
468
+ align?: "left" | "right" | "center";
469
+ className?: string;
470
+ children: ReactNode;
471
+ };
472
+ declare function SortableHeader({
473
+ active,
474
+ dir,
475
+ onClick,
476
+ align,
477
+ className,
478
+ children
479
+ }: SortableHeaderProps): _$react_jsx_runtime0.JSX.Element;
480
+ //#endregion
481
+ //#region src/data/TabButton.d.ts
482
+ type TabButtonProps = {
483
+ active: boolean;
484
+ onClick: () => void;
485
+ label: ReactNode;
486
+ icon?: string;
487
+ count?: number;
488
+ countColor?: string;
489
+ className?: string;
490
+ };
491
+ declare function TabButton({
492
+ active,
493
+ onClick,
494
+ label,
495
+ icon,
496
+ count,
497
+ countColor,
498
+ className
499
+ }: TabButtonProps): _$react_jsx_runtime0.JSX.Element;
500
+ //#endregion
501
+ //#region src/data/TreeNode.d.ts
502
+ type TreeRowContext<T> = {
503
+ node: T;
504
+ depth: number;
505
+ open: boolean;
506
+ selected: boolean;
507
+ hasChildren: boolean;
508
+ toggle: () => void;
509
+ };
510
+ type TreeNodeProps<T> = {
511
+ node: T;
512
+ depth?: number;
513
+ expandAll?: boolean | null;
514
+ selected?: T | null;
515
+ defaultOpen?: (node: T, depth: number) => boolean;
516
+ getChildren: (node: T) => T[] | undefined;
517
+ getKey: (node: T) => string | number;
518
+ onSelect?: (node: T) => void;
519
+ renderRow: (ctx: TreeRowContext<T>) => ReactNode;
520
+ rowClass?: (node: T, selected: boolean) => string;
521
+ indentPx?: number;
522
+ basePaddingPx?: number;
523
+ };
524
+ declare function TreeNode<T>({
525
+ node,
526
+ depth,
527
+ expandAll,
528
+ selected,
529
+ defaultOpen,
530
+ getChildren,
531
+ getKey,
532
+ onSelect,
533
+ renderRow,
534
+ rowClass,
535
+ indentPx,
536
+ basePaddingPx
537
+ }: TreeNodeProps<T>): _$react_jsx_runtime0.JSX.Element;
538
+ //#endregion
539
+ //#region src/data/Tree.d.ts
540
+ type TreeProps<T> = Omit<TreeNodeProps<T>, "node" | "depth" | "expandAll"> & {
541
+ roots: T[];
542
+ empty?: ReactNode;
543
+ className?: string;
544
+ /**
545
+ * Render the Expand all / Collapse all toolbar above the tree. Enabled by
546
+ * default. Set to false to suppress when the tree is tiny or the controls
547
+ * are owned externally.
548
+ */
549
+ showControls?: boolean;
550
+ /**
551
+ * Externally controlled expand-all state. When provided together with
552
+ * `onExpandAllChange`, the tree is controlled; otherwise it manages the
553
+ * toolbar state internally.
554
+ */
555
+ expandAll?: boolean | null;
556
+ onExpandAllChange?: (next: boolean | null) => void;
557
+ toolbarClassName?: string;
558
+ };
559
+ declare function Tree<T>({
560
+ roots,
561
+ empty,
562
+ className,
563
+ showControls,
564
+ expandAll: controlledExpandAll,
565
+ onExpandAllChange,
566
+ toolbarClassName,
567
+ ...nodeProps
568
+ }: TreeProps<T>): _$react_jsx_runtime0.JSX.Element;
569
+ //#endregion
570
+ //#region src/data/TreeGroupHeader.d.ts
571
+ type TreeGroupHeaderProps = {
572
+ title: ReactNode;
573
+ open: boolean;
574
+ onToggle: () => void;
575
+ icon?: string;
576
+ count?: number;
577
+ className?: string;
578
+ };
579
+ declare function TreeGroupHeader({
580
+ title,
581
+ open,
582
+ onToggle,
583
+ icon,
584
+ count,
585
+ className
586
+ }: TreeGroupHeaderProps): _$react_jsx_runtime0.JSX.Element;
587
+ //#endregion
588
+ //#region src/data/diagnostics/types.d.ts
589
+ interface ProcessNode {
590
+ pid: number;
591
+ ppid?: number;
592
+ name?: string;
593
+ command?: string;
594
+ status?: string;
595
+ cpu_percent?: number;
596
+ rss?: number;
597
+ vms?: number;
598
+ open_files?: number;
599
+ is_root?: boolean;
600
+ children?: ProcessNode[];
601
+ stack_capture?: StackCapture;
602
+ }
603
+ interface StackCapture {
604
+ status: "ready" | "unsupported" | "error";
605
+ supported?: boolean;
606
+ text?: string;
607
+ error?: string;
608
+ collected_at?: string;
609
+ }
610
+ interface RunMeta {
611
+ version?: string;
612
+ sequence: number;
613
+ kind?: "initial" | "rerun" | string;
614
+ started?: string;
615
+ ended?: string;
616
+ args?: Record<string, unknown>;
617
+ }
618
+ //#endregion
619
+ //#region src/data/diagnostics/DiagnosticsTree.d.ts
620
+ type DiagnosticsTreeProps = {
621
+ root?: ProcessNode;
622
+ selectedPid?: number | null;
623
+ expandAll?: boolean | null;
624
+ onSelect: (pid: number) => void;
625
+ };
626
+ declare function DiagnosticsTree({
627
+ root,
628
+ selectedPid,
629
+ expandAll,
630
+ onSelect
631
+ }: DiagnosticsTreeProps): _$react_jsx_runtime0.JSX.Element;
632
+ //#endregion
633
+ //#region src/data/diagnostics/DiagnosticsDetailPanel.d.ts
634
+ type DiagnosticsDetailPanelProps = {
635
+ process: ProcessNode | null;
636
+ collectBusy?: boolean;
637
+ onCollectStack?: (pid: number) => void | Promise<void>;
638
+ runMeta?: RunMeta;
639
+ };
640
+ declare function DiagnosticsDetailPanel({
641
+ process,
642
+ collectBusy,
643
+ onCollectStack,
644
+ runMeta
645
+ }: DiagnosticsDetailPanelProps): _$react_jsx_runtime0.JSX.Element;
646
+ //#endregion
647
+ //#region src/data/diagnostics/utils.d.ts
648
+ declare function countProcesses(node?: ProcessNode): number;
649
+ declare function findProcessByPID(node: ProcessNode | undefined, pid: number): ProcessNode | null;
650
+ declare function processStateIcon(status?: string): string;
651
+ declare function processStateColor(status?: string): string;
652
+ declare function processLabel(node: ProcessNode): string;
653
+ //#endregion
654
+ //#region src/data/diagnostics/jvm-stacktrace.d.ts
655
+ interface ParsedThreadFrame {
656
+ functionName: string;
657
+ displayName: string;
658
+ file?: string;
659
+ line?: number;
660
+ location?: string;
661
+ kind: "frame" | "locked" | "waiting_on" | "waiting_to_lock" | "parking";
662
+ runtime: boolean;
663
+ nativeMethod: boolean;
664
+ annotationText?: string;
665
+ }
666
+ interface ParsedThread {
667
+ id: number;
668
+ nid?: string;
669
+ name: string;
670
+ state: string;
671
+ rawState: string;
672
+ priority?: number;
673
+ daemon?: boolean;
674
+ frames: ParsedThreadFrame[];
675
+ raw: string;
676
+ userFrameCount: number;
677
+ topFunction?: string;
678
+ searchText: string;
679
+ }
680
+ declare function parseJvmThreadDump(text: string): ParsedThread[];
681
+ declare function countThreadsByState(threads: ParsedThread[]): Map<string, number>;
682
+ //#endregion
683
+ //#region src/data/diagnostics/stacktrace.d.ts
684
+ type DumpFormat = "go" | "jvm" | "unknown";
685
+ type ParsedStack = {
686
+ format: "go";
687
+ goroutines: ParsedGoroutine[];
688
+ } | {
689
+ format: "jvm";
690
+ threads: ParsedThread[];
691
+ } | {
692
+ format: "unknown";
693
+ goroutines: [];
694
+ threads: [];
695
+ };
696
+ declare function detectDumpFormat(text: string): DumpFormat;
697
+ declare function parseStackDump(text: string): ParsedStack;
698
+ declare function countStackByState(stack: ParsedStack): Map<string, number>;
699
+ interface ParsedGoroutineFrame {
700
+ functionName: string;
701
+ displayName: string;
702
+ file?: string;
703
+ location?: string;
704
+ line?: number;
705
+ kind: "frame" | "created_by";
706
+ runtime: boolean;
707
+ }
708
+ interface ParsedGoroutine {
709
+ id: number;
710
+ state: string;
711
+ rawState: string;
712
+ frames: ParsedGoroutineFrame[];
713
+ raw: string;
714
+ userFrameCount: number;
715
+ topFunction?: string;
716
+ searchText: string;
717
+ }
718
+ declare function parseGoroutineDump(text: string): ParsedGoroutine[];
719
+ declare function countGoroutinesByState(goroutines: ParsedGoroutine[]): Map<string, number>;
720
+ //#endregion
721
+ //#region src/data/har/types.d.ts
722
+ interface HARHeader {
723
+ name: string;
724
+ value: string;
725
+ }
726
+ interface HARPostData {
727
+ mimeType: string;
728
+ text: string;
729
+ }
730
+ interface HARContent {
731
+ size: number;
732
+ mimeType?: string;
733
+ text?: string;
734
+ truncated?: boolean;
735
+ }
736
+ interface HARRequest {
737
+ method: string;
738
+ url: string;
739
+ httpVersion?: string;
740
+ headers?: HARHeader[];
741
+ queryString?: HARHeader[];
742
+ postData?: HARPostData;
743
+ headersSize?: number;
744
+ bodySize?: number;
745
+ }
746
+ interface HARResponse {
747
+ status: number;
748
+ statusText?: string;
749
+ httpVersion?: string;
750
+ headers?: HARHeader[];
751
+ content?: HARContent;
752
+ redirectURL?: string;
753
+ headersSize?: number;
754
+ bodySize: number;
755
+ }
756
+ interface HAREntry {
757
+ startedDateTime?: string;
758
+ time: number;
759
+ request: HARRequest;
760
+ response: HARResponse;
761
+ cache?: unknown;
762
+ timings?: {
763
+ send?: number;
764
+ wait?: number;
765
+ receive?: number;
766
+ };
767
+ }
768
+ //#endregion
769
+ //#region src/data/har/HarPanel.d.ts
770
+ type HarPanelProps = {
771
+ entries: HAREntry[];
772
+ search?: string;
773
+ emptyLabel?: string;
774
+ className?: string;
775
+ };
776
+ declare function HarPanel({
777
+ entries,
778
+ search,
779
+ emptyLabel,
780
+ className
781
+ }: HarPanelProps): _$react_jsx_runtime0.JSX.Element;
782
+ //#endregion
783
+ //#region src/overlay/HoverCard.d.ts
784
+ type HoverCardPlacement = "top" | "bottom" | "left" | "right";
785
+ type HoverCardProps = {
786
+ trigger: ReactNode;
787
+ children: ReactNode;
788
+ placement?: HoverCardPlacement;
789
+ delay?: number;
790
+ arrow?: boolean;
791
+ className?: string;
792
+ cardClassName?: string;
793
+ };
794
+ declare function HoverCard({
795
+ trigger,
796
+ children,
797
+ placement,
798
+ delay,
799
+ arrow,
800
+ className,
801
+ cardClassName
802
+ }: HoverCardProps): _$react_jsx_runtime0.JSX.Element;
803
+ //#endregion
804
+ //#region src/overlay/Modal.d.ts
805
+ type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
806
+ type ModalProps = {
807
+ open: boolean;
808
+ onClose: () => void;
809
+ title?: ReactNode;
810
+ size?: ModalSize;
811
+ closeOnBackdrop?: boolean;
812
+ closeOnEsc?: boolean;
813
+ hideClose?: boolean;
814
+ className?: string;
815
+ headerSlot?: ReactNode;
816
+ footer?: ReactNode;
817
+ children: ReactNode;
818
+ };
819
+ declare function Modal({
820
+ open,
821
+ onClose,
822
+ title,
823
+ size,
824
+ closeOnBackdrop,
825
+ closeOnEsc,
826
+ hideClose,
827
+ className,
828
+ headerSlot,
829
+ footer,
830
+ children
831
+ }: ModalProps): _$react_jsx_runtime0.JSX.Element | null;
832
+ //#endregion
833
+ export { AVATAR_PALETTE, AnsiHtml, type AnsiHtmlProps, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Clicky, type ClickyColumn, type ClickyDocument, type ClickyField, type ClickyNode, type ClickyProps, type ClickyRow, type ClickyStyle, type ClickyTreeItem, type Density, DensityProvider, DensitySwitcher, type DensitySwitcherProps, DetailEmptyState, type DetailEmptyStateProps, DiagnosticsDetailPanel, type DiagnosticsDetailPanelProps, DiagnosticsTree, type DiagnosticsTreeProps, type DumpFormat, type FilterMode, FilterPill, FilterPillGroup, type FilterPillGroupProps, type FilterPillProps, FilterSeparator, Gauge, type GaugeProps, type GaugeTone, type HARContent, type HAREntry, type HARHeader, type HARPostData, type HARRequest, type HARResponse, HarPanel, type HarPanelProps, HoverCard, type HoverCardPlacement, type HoverCardProps, Icon, type IconProps, JsonView, type JsonViewProps, LogViewer, type LogViewerProps, Markdown, type MarkdownProps, Modal, type ModalProps, type ModalSize, type ParsedGoroutine, type ParsedGoroutineFrame, type ParsedStack, type ParsedThread, type ParsedThreadFrame, type ProcessNode, ProgressBar, type ProgressBarProps, type ProgressSegment, type ResolvedTheme, type RunMeta, Section, type SectionProps, Select, type SelectOption, type SelectProps, type SortDir, type SortState, SortableHeader, type SortableHeaderProps, SplitPane, type SplitPaneProps, type StackCapture, TabButton, type TabButtonProps, type Theme, ThemeProvider, ThemeSwitcher, type ThemeSwitcherProps, Tree, TreeGroupHeader, type TreeGroupHeaderProps, TreeNode, type TreeNodeProps, type TreeProps, type TreeRowContext, type UseHistoryRouteOptions, type UseSortOptions, type UseSortReturn, badgeVariants, buttonVariants, cn, countGoroutinesByState, countProcesses, countStackByState, countThreadsByState, detectDumpFormat, findProcessByPID, fnv1a32, paletteClass, parseGoroutineDump, parseJvmThreadDump, parseStackDump, processLabel, processStateColor, processStateIcon, useDensity, useHistoryRoute, useSort, useTheme };
834
+ //# sourceMappingURL=index.d.mts.map