anentrypoint-design 0.0.398 → 0.0.400
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/chat.css +72 -0
- package/dist/247420.css +81 -0
- package/dist/247420.js +21 -21
- package/package.json +15 -1
- package/scripts/lint-glyphs.mjs +5 -1
- package/scripts/lint-null-children.mjs +7 -1
- package/src/components/editor-primitives/json-viewer.js +15 -12
- package/src/components/files/grid.js +29 -0
- package/src/components/sessions/dashboard.js +5 -4
- package/src/components/sessions/session-card.js +24 -6
- package/src/css/app-shell/primitives.css +9 -0
- package/src/markdown-cache.js +14 -2
- package/types/components.d.ts +2931 -0
- package/types/index.d.ts +106 -0
|
@@ -0,0 +1,2931 @@
|
|
|
1
|
+
// types/components.d.ts -- GENERATED, do not hand-edit.
|
|
2
|
+
//
|
|
3
|
+
// Produced by `node scripts/generate-component-types.mjs` from the same
|
|
4
|
+
// extraction that produces docs/component-props.md, so the declarations
|
|
5
|
+
// and the prose reference can never disagree. Re-run after any component
|
|
6
|
+
// signature change; `npm run lint:component-types` fails CI when this
|
|
7
|
+
// file is stale.
|
|
8
|
+
//
|
|
9
|
+
// 247 exported symbols across 26 source files.
|
|
10
|
+
|
|
11
|
+
/** A webjsx virtual node, as returned by every component in this SDK. */
|
|
12
|
+
export type VNode = any;
|
|
13
|
+
|
|
14
|
+
// ---- src/components/shell.js -----------------------------------------
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The wordmark used in Topbar/AppShell headers.
|
|
18
|
+
*
|
|
19
|
+
* Props for {@link Brand} (src/components/shell.js).
|
|
20
|
+
*/
|
|
21
|
+
export interface BrandProps {
|
|
22
|
+
/** the brand text. @default '247420' */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** optional trailing breadcrumb-style leaf, rendered after a " / " separator. */
|
|
25
|
+
leaf?: any;
|
|
26
|
+
}
|
|
27
|
+
export declare function Brand(props?: BrandProps): VNode;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A small pill/tag label.
|
|
31
|
+
*
|
|
32
|
+
* Props for {@link Chip} (src/components/shell.js).
|
|
33
|
+
*/
|
|
34
|
+
export interface ChipProps {
|
|
35
|
+
/** semantic color tone (empty = neutral). @default '' */
|
|
36
|
+
tone?: string;
|
|
37
|
+
/** @default 'md' */
|
|
38
|
+
size?: 'sm' | 'md' | 'lg';
|
|
39
|
+
/** true renders a rectangular sentence-case variant for dense data (drops the all-caps pill styling). Orthogonal to tone. @default false */
|
|
40
|
+
tag?: boolean;
|
|
41
|
+
/** if given, renders a trailing dismiss (x) button that calls onRemove() on click. Omitted entirely (no button) when not supplied. */
|
|
42
|
+
onRemove?: (...args: any[]) => any;
|
|
43
|
+
children?: any;
|
|
44
|
+
}
|
|
45
|
+
export declare function Chip(props?: ChipProps): VNode;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The standard button/link factory. Renders an `<a>` when `href` is given, otherwise a `<button>`.
|
|
49
|
+
*
|
|
50
|
+
* Props for {@link Btn} (src/components/shell.js).
|
|
51
|
+
*/
|
|
52
|
+
export interface BtnProps {
|
|
53
|
+
/** if present, renders as a link instead of a button. */
|
|
54
|
+
href?: string;
|
|
55
|
+
/** @default 'default' */
|
|
56
|
+
variant?: 'default' | 'primary' | 'ghost' | 'danger';
|
|
57
|
+
/** @default 'md' */
|
|
58
|
+
size?: 'sm' | 'md' | 'lg';
|
|
59
|
+
children?: any;
|
|
60
|
+
onClick?: (...args: any[]) => any;
|
|
61
|
+
'aria-label'?: string;
|
|
62
|
+
/** legacy alias for variant:'primary', kept for backward compatibility. */
|
|
63
|
+
primary?: boolean;
|
|
64
|
+
/** legacy alias for variant:'ghost'. */
|
|
65
|
+
ghost?: boolean;
|
|
66
|
+
/** legacy alias for variant:'danger'. */
|
|
67
|
+
danger?: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
/** extra class name(s) appended to the generated class list. */
|
|
70
|
+
class?: string;
|
|
71
|
+
key?: any;
|
|
72
|
+
}
|
|
73
|
+
export declare function Btn(props?: BtnProps): VNode;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Props for {@link Glyph} (src/components/shell.js).
|
|
77
|
+
*/
|
|
78
|
+
export interface GlyphProps {
|
|
79
|
+
children?: any;
|
|
80
|
+
color?: any;
|
|
81
|
+
/** @default 'base' */
|
|
82
|
+
size?: 'base' | 'sm' | 'lg' | (string & {});
|
|
83
|
+
label?: any;
|
|
84
|
+
}
|
|
85
|
+
export declare function Glyph(props?: GlyphProps): VNode;
|
|
86
|
+
|
|
87
|
+
export declare function Icon(name?: any, arg1?: any): VNode;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Props for {@link IconButton} (src/components/shell.js).
|
|
91
|
+
*/
|
|
92
|
+
export interface IconButtonProps {
|
|
93
|
+
icon?: any;
|
|
94
|
+
onClick?: (...args: any[]) => any;
|
|
95
|
+
title?: any;
|
|
96
|
+
/** @default 'base' */
|
|
97
|
+
size?: string;
|
|
98
|
+
/** @default 'ghost' */
|
|
99
|
+
variant?: string;
|
|
100
|
+
/** @default false */
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
}
|
|
103
|
+
export declare function IconButton(props?: IconButtonProps): VNode;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Props for {@link Badge} (src/components/shell.js).
|
|
107
|
+
*/
|
|
108
|
+
export interface BadgeProps {
|
|
109
|
+
children?: any;
|
|
110
|
+
/** @default 'default' */
|
|
111
|
+
variant?: string;
|
|
112
|
+
/** @default 'neutral' */
|
|
113
|
+
tone?: string;
|
|
114
|
+
/** @default 'md' */
|
|
115
|
+
size?: 'md' | 'sm' | 'lg' | (string & {});
|
|
116
|
+
}
|
|
117
|
+
export declare function Badge(props?: BadgeProps): VNode;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Props for {@link Pill} (src/components/shell.js).
|
|
121
|
+
*/
|
|
122
|
+
export interface PillProps {
|
|
123
|
+
/** @default '' */
|
|
124
|
+
tone?: string;
|
|
125
|
+
children?: any;
|
|
126
|
+
key?: string | number;
|
|
127
|
+
}
|
|
128
|
+
export declare function Pill(props?: PillProps): VNode;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Props for {@link Topbar} (src/components/shell.js).
|
|
132
|
+
*/
|
|
133
|
+
export interface TopbarProps {
|
|
134
|
+
/** @default '247420' */
|
|
135
|
+
brand?: string;
|
|
136
|
+
/** @default '' */
|
|
137
|
+
leaf?: string;
|
|
138
|
+
/** @default [] */
|
|
139
|
+
items?: any[];
|
|
140
|
+
/** @default '' */
|
|
141
|
+
active?: string;
|
|
142
|
+
onNav?: (...args: any[]) => any;
|
|
143
|
+
search?: any;
|
|
144
|
+
}
|
|
145
|
+
export declare function Topbar(props?: TopbarProps): VNode;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Props for {@link Crumb} (src/components/shell.js).
|
|
149
|
+
*/
|
|
150
|
+
export interface CrumbProps {
|
|
151
|
+
/** @default [] */
|
|
152
|
+
trail?: any[];
|
|
153
|
+
/** @default '' */
|
|
154
|
+
leaf?: string;
|
|
155
|
+
right?: any;
|
|
156
|
+
}
|
|
157
|
+
export declare function Crumb(props?: CrumbProps): VNode;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Props for {@link Side} (src/components/shell.js).
|
|
161
|
+
*/
|
|
162
|
+
export interface SideProps {
|
|
163
|
+
/** @default [] */
|
|
164
|
+
sections?: any[];
|
|
165
|
+
}
|
|
166
|
+
export declare function Side(props?: SideProps): VNode;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Props for {@link Status} (src/components/shell.js).
|
|
170
|
+
*/
|
|
171
|
+
export interface StatusProps {
|
|
172
|
+
/** @default [] */
|
|
173
|
+
left?: any[];
|
|
174
|
+
/** @default [] */
|
|
175
|
+
right?: any[];
|
|
176
|
+
}
|
|
177
|
+
export declare function Status(props?: StatusProps): VNode;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Props for {@link AppShell} (src/components/shell.js).
|
|
181
|
+
*/
|
|
182
|
+
export interface AppShellProps {
|
|
183
|
+
topbar?: any;
|
|
184
|
+
crumb?: any;
|
|
185
|
+
side?: any;
|
|
186
|
+
main?: any;
|
|
187
|
+
status?: any;
|
|
188
|
+
narrow?: any;
|
|
189
|
+
}
|
|
190
|
+
export declare function AppShell(props?: AppShellProps): VNode;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A Claude-Desktop / cowork three-(or four-)column app shell. Pure stateless chrome (props in, vnode out). Collapse is DOM-class + a persisted flag, so the host does not have to thread collapse state through its own store. Visual styling lives in app-shell.css (.ws-*).
|
|
194
|
+
*
|
|
195
|
+
* Props for {@link WorkspaceShell} (src/components/shell.js).
|
|
196
|
+
*/
|
|
197
|
+
export interface WorkspaceShellProps {
|
|
198
|
+
/** the persistent left workspace nav (icon+label items, collapsible to icon-only). Pass the result of WorkspaceRail() or any vnode. */
|
|
199
|
+
rail?: any;
|
|
200
|
+
/** an OPTIONAL second column (a conversation/session list) shown between the rail and the main content. Null hides it. */
|
|
201
|
+
sessions?: any;
|
|
202
|
+
/** the primary content column (chat thread, files view, dashboard...). */
|
|
203
|
+
main?: any;
|
|
204
|
+
/** an OPTIONAL right context pane (per-conversation context, file preview...). Null hides it; collapsible when present. */
|
|
205
|
+
pane?: any;
|
|
206
|
+
/** an optional thin top chrome bar (breadcrumb + status), spanning the content area only (the rail has its own header). */
|
|
207
|
+
crumb?: any;
|
|
208
|
+
/** an optional footer. */
|
|
209
|
+
status?: any;
|
|
210
|
+
/** caller's isNarrow() — drives the mobile single-column collapse. */
|
|
211
|
+
narrow?: boolean;
|
|
212
|
+
/** initial rail collapse (persisted state wins). @default false */
|
|
213
|
+
railCollapsed?: boolean;
|
|
214
|
+
/** initial pane collapse (persisted state wins). @default false */
|
|
215
|
+
paneCollapsed?: boolean;
|
|
216
|
+
/** @default 'workspace navigation' */
|
|
217
|
+
railLabel?: string;
|
|
218
|
+
/** @default 'context' */
|
|
219
|
+
paneLabel?: string;
|
|
220
|
+
/** @default false */
|
|
221
|
+
stableFrame?: boolean;
|
|
222
|
+
/** @default false */
|
|
223
|
+
mainFlush?: boolean;
|
|
224
|
+
}
|
|
225
|
+
export declare function WorkspaceShell(props?: WorkspaceShellProps): VNode;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Props for {@link WorkspaceRail} (src/components/shell.js).
|
|
229
|
+
*/
|
|
230
|
+
export interface WorkspaceRailProps {
|
|
231
|
+
/** @default '247420' */
|
|
232
|
+
brand?: string;
|
|
233
|
+
action?: any;
|
|
234
|
+
/** @default [] */
|
|
235
|
+
items?: any[];
|
|
236
|
+
footer?: any;
|
|
237
|
+
}
|
|
238
|
+
export declare function WorkspaceRail(props?: WorkspaceRailProps): VNode;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Props for {@link Heading} (src/components/shell.js).
|
|
242
|
+
*/
|
|
243
|
+
export interface HeadingProps {
|
|
244
|
+
/** @default 1 */
|
|
245
|
+
level?: number;
|
|
246
|
+
children?: any;
|
|
247
|
+
/** @default '' */
|
|
248
|
+
style?: string;
|
|
249
|
+
/** @default '' */
|
|
250
|
+
class?: string;
|
|
251
|
+
'aria-level'?: any;
|
|
252
|
+
}
|
|
253
|
+
export declare function Heading(props?: HeadingProps): VNode;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Props for {@link Lede} (src/components/shell.js).
|
|
257
|
+
*/
|
|
258
|
+
export interface LedeProps {
|
|
259
|
+
children?: any;
|
|
260
|
+
}
|
|
261
|
+
export declare function Lede(props?: LedeProps): VNode;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Props for {@link Dot} (src/components/shell.js).
|
|
265
|
+
*/
|
|
266
|
+
export interface DotProps {
|
|
267
|
+
/** @default 'on' */
|
|
268
|
+
tone?: 'on' | 'live' | (string & {});
|
|
269
|
+
}
|
|
270
|
+
export declare function Dot(props?: DotProps): VNode;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Props for {@link Rail} (src/components/shell.js).
|
|
274
|
+
*/
|
|
275
|
+
export interface RailProps {
|
|
276
|
+
/** @default 'green' */
|
|
277
|
+
tone?: string;
|
|
278
|
+
}
|
|
279
|
+
export declare function Rail(props?: RailProps): VNode;
|
|
280
|
+
|
|
281
|
+
// ---- src/components/content.js ---------------------------------------
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Props for {@link Panel} (src/components/content.js).
|
|
285
|
+
*/
|
|
286
|
+
export interface PanelProps {
|
|
287
|
+
title?: any;
|
|
288
|
+
count?: any;
|
|
289
|
+
right?: any;
|
|
290
|
+
/** @default '' */
|
|
291
|
+
style?: string;
|
|
292
|
+
/** @default '' */
|
|
293
|
+
class?: string;
|
|
294
|
+
children?: any;
|
|
295
|
+
kind?: any;
|
|
296
|
+
id?: any;
|
|
297
|
+
}
|
|
298
|
+
export declare function Panel(props?: PanelProps): VNode;
|
|
299
|
+
|
|
300
|
+
export declare const Card: typeof Panel;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Props for {@link Row} (src/components/content.js).
|
|
304
|
+
*/
|
|
305
|
+
export interface RowProps {
|
|
306
|
+
code?: any;
|
|
307
|
+
rank?: any;
|
|
308
|
+
title?: any;
|
|
309
|
+
sub?: any;
|
|
310
|
+
meta?: any;
|
|
311
|
+
active?: any;
|
|
312
|
+
/** @default 'default' */
|
|
313
|
+
state?: 'default' | 'active' | 'disabled' | 'error' | (string & {});
|
|
314
|
+
onClick?: (...args: any[]) => any;
|
|
315
|
+
key?: string | number;
|
|
316
|
+
style?: any;
|
|
317
|
+
href?: any;
|
|
318
|
+
kind?: any;
|
|
319
|
+
cols?: any;
|
|
320
|
+
leading?: any;
|
|
321
|
+
trailing?: any;
|
|
322
|
+
target?: any;
|
|
323
|
+
selected?: any;
|
|
324
|
+
rail?: any;
|
|
325
|
+
expanded?: any;
|
|
326
|
+
highlight?: any;
|
|
327
|
+
actions?: any;
|
|
328
|
+
detail?: any;
|
|
329
|
+
}
|
|
330
|
+
export declare function Row(props?: RowProps): VNode;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Props for {@link RowLink} (src/components/content.js).
|
|
334
|
+
*/
|
|
335
|
+
export interface RowLinkProps {
|
|
336
|
+
code?: any;
|
|
337
|
+
title?: any;
|
|
338
|
+
sub?: any;
|
|
339
|
+
meta?: any;
|
|
340
|
+
/** @default '#' */
|
|
341
|
+
href?: string;
|
|
342
|
+
key?: string | number;
|
|
343
|
+
target?: any;
|
|
344
|
+
}
|
|
345
|
+
export declare function RowLink(props?: RowLinkProps): VNode;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Props for {@link PanelFromItems} (src/components/content.js).
|
|
349
|
+
*/
|
|
350
|
+
export interface PanelFromItemsProps {
|
|
351
|
+
heading?: any;
|
|
352
|
+
/** @default [] */
|
|
353
|
+
items?: any[];
|
|
354
|
+
/** @default 'i' */
|
|
355
|
+
keyPrefix?: string;
|
|
356
|
+
count?: any;
|
|
357
|
+
style?: any;
|
|
358
|
+
kind?: any;
|
|
359
|
+
emptyText?: any;
|
|
360
|
+
}
|
|
361
|
+
export declare function PanelFromItems(props?: PanelFromItemsProps): VNode;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Props for {@link Hero} (src/components/content.js).
|
|
365
|
+
*/
|
|
366
|
+
export interface HeroProps {
|
|
367
|
+
eyebrow?: any;
|
|
368
|
+
title?: any;
|
|
369
|
+
body?: any;
|
|
370
|
+
accent?: any;
|
|
371
|
+
actions?: any;
|
|
372
|
+
badges?: any;
|
|
373
|
+
}
|
|
374
|
+
export declare function Hero(props?: HeroProps): VNode;
|
|
375
|
+
|
|
376
|
+
export declare function HeroFromPageData(hero?: any): VNode;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Props for {@link Marquee} (src/components/content.js).
|
|
380
|
+
*/
|
|
381
|
+
export interface MarqueeProps {
|
|
382
|
+
/** @default [] */
|
|
383
|
+
items?: any[];
|
|
384
|
+
/** @default '/' */
|
|
385
|
+
sep?: string;
|
|
386
|
+
}
|
|
387
|
+
export declare function Marquee(props?: MarqueeProps): VNode;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Props for {@link Install} (src/components/content.js).
|
|
391
|
+
*/
|
|
392
|
+
export interface InstallProps {
|
|
393
|
+
cmd?: any;
|
|
394
|
+
copied?: any;
|
|
395
|
+
onCopy?: (...args: any[]) => any;
|
|
396
|
+
}
|
|
397
|
+
export declare function Install(props?: InstallProps): VNode;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Props for {@link CliBlock} (src/components/content.js).
|
|
401
|
+
*/
|
|
402
|
+
export interface CliBlockProps {
|
|
403
|
+
/** @default [] */
|
|
404
|
+
lines?: any[];
|
|
405
|
+
/** @default 'quick start' */
|
|
406
|
+
heading?: string;
|
|
407
|
+
/** @default '' */
|
|
408
|
+
className?: string;
|
|
409
|
+
}
|
|
410
|
+
export declare function CliBlock(props?: CliBlockProps): VNode;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Props for {@link Receipt} (src/components/content.js).
|
|
414
|
+
*/
|
|
415
|
+
export interface ReceiptProps {
|
|
416
|
+
/** @default [] */
|
|
417
|
+
rows?: any[];
|
|
418
|
+
/** @default 'nothing here yet' */
|
|
419
|
+
emptyText?: string;
|
|
420
|
+
}
|
|
421
|
+
export declare function Receipt(props?: ReceiptProps): VNode;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Props for {@link Changelog} (src/components/content.js).
|
|
425
|
+
*/
|
|
426
|
+
export interface ChangelogProps {
|
|
427
|
+
/** @default [] */
|
|
428
|
+
entries?: any[];
|
|
429
|
+
/** @default 'no changelog entries yet' */
|
|
430
|
+
emptyText?: string;
|
|
431
|
+
}
|
|
432
|
+
export declare function Changelog(props?: ChangelogProps): VNode;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Props for {@link WorksList} (src/components/content.js).
|
|
436
|
+
*/
|
|
437
|
+
export interface WorksListProps {
|
|
438
|
+
/** @default [] */
|
|
439
|
+
works?: any[];
|
|
440
|
+
/** @default -1 */
|
|
441
|
+
openedIndex?: number;
|
|
442
|
+
onToggle?: (...args: any[]) => any;
|
|
443
|
+
}
|
|
444
|
+
export declare function WorksList(props?: WorksListProps): VNode;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Props for {@link WritingList} (src/components/content.js).
|
|
448
|
+
*/
|
|
449
|
+
export interface WritingListProps {
|
|
450
|
+
/** @default [] */
|
|
451
|
+
posts?: any[];
|
|
452
|
+
}
|
|
453
|
+
export declare function WritingList(props?: WritingListProps): VNode;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Props for {@link Manifesto} (src/components/content.js).
|
|
457
|
+
*/
|
|
458
|
+
export interface ManifestoProps {
|
|
459
|
+
/** @default [] */
|
|
460
|
+
paragraphs?: any[];
|
|
461
|
+
maxWidth?: any;
|
|
462
|
+
}
|
|
463
|
+
export declare function Manifesto(props?: ManifestoProps): VNode;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Props for {@link Section} (src/components/content.js).
|
|
467
|
+
*/
|
|
468
|
+
export interface SectionProps {
|
|
469
|
+
title?: any;
|
|
470
|
+
eyebrow?: any;
|
|
471
|
+
children?: any;
|
|
472
|
+
id?: any;
|
|
473
|
+
}
|
|
474
|
+
export declare function Section(props?: SectionProps): VNode;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Props for {@link PageHeader} (src/components/content.js).
|
|
478
|
+
*/
|
|
479
|
+
export interface PageHeaderProps {
|
|
480
|
+
title?: any;
|
|
481
|
+
lede?: any;
|
|
482
|
+
eyebrow?: any;
|
|
483
|
+
right?: any;
|
|
484
|
+
compact?: any;
|
|
485
|
+
dense?: any;
|
|
486
|
+
id?: any;
|
|
487
|
+
}
|
|
488
|
+
export declare function PageHeader(props?: PageHeaderProps): VNode;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Props for {@link Kpi} (src/components/content.js).
|
|
492
|
+
*/
|
|
493
|
+
export interface KpiProps {
|
|
494
|
+
/** @default [] */
|
|
495
|
+
items?: any[];
|
|
496
|
+
/** @default 'no metrics yet' */
|
|
497
|
+
emptyText?: string;
|
|
498
|
+
}
|
|
499
|
+
export declare function Kpi(props?: KpiProps): VNode;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Props for {@link Sparkline} (src/components/content.js).
|
|
503
|
+
*/
|
|
504
|
+
export interface SparklineProps {
|
|
505
|
+
/** @default [] */
|
|
506
|
+
values?: any[];
|
|
507
|
+
/** @default 72 */
|
|
508
|
+
width?: number;
|
|
509
|
+
/** @default 24 */
|
|
510
|
+
height?: number;
|
|
511
|
+
tone?: any;
|
|
512
|
+
}
|
|
513
|
+
export declare function Sparkline(props?: SparklineProps): VNode;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Props for {@link BarChart} (src/components/content.js).
|
|
517
|
+
*/
|
|
518
|
+
export interface BarChartProps {
|
|
519
|
+
/** @default [] */
|
|
520
|
+
items?: any[];
|
|
521
|
+
/** @default 'no data yet' */
|
|
522
|
+
emptyText?: string;
|
|
523
|
+
}
|
|
524
|
+
export declare function BarChart(props?: BarChartProps): VNode;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Props for {@link Table} (src/components/content.js).
|
|
528
|
+
*/
|
|
529
|
+
export interface TableProps {
|
|
530
|
+
/** @default [] */
|
|
531
|
+
headers?: any[];
|
|
532
|
+
/** @default [] */
|
|
533
|
+
rows?: any[];
|
|
534
|
+
onRowClick?: (...args: any[]) => any;
|
|
535
|
+
/** @default 'nothing here yet' */
|
|
536
|
+
emptyText?: string;
|
|
537
|
+
rowLabels?: any;
|
|
538
|
+
/** @default false */
|
|
539
|
+
striped?: boolean;
|
|
540
|
+
/** @default false */
|
|
541
|
+
compact?: boolean;
|
|
542
|
+
/** @default false */
|
|
543
|
+
sortable?: boolean;
|
|
544
|
+
sortKey?: any;
|
|
545
|
+
/** @default 'asc' */
|
|
546
|
+
sortDir?: 'asc' | 'desc' | (string & {});
|
|
547
|
+
onSort?: (...args: any[]) => any;
|
|
548
|
+
}
|
|
549
|
+
export declare function Table(props?: TableProps): VNode;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Props for {@link HealthTable} (src/components/content.js).
|
|
553
|
+
*/
|
|
554
|
+
export interface HealthTableProps {
|
|
555
|
+
/** @default {} */
|
|
556
|
+
checks?: Record<string, any>;
|
|
557
|
+
/** @default 'no health data' */
|
|
558
|
+
emptyText?: string;
|
|
559
|
+
/** @default 'ok' */
|
|
560
|
+
okLabel?: string;
|
|
561
|
+
/** @default 'no' */
|
|
562
|
+
missLabel?: string;
|
|
563
|
+
/** @default 60 */
|
|
564
|
+
jsonTruncate?: number;
|
|
565
|
+
}
|
|
566
|
+
export declare function HealthTable(props?: HealthTableProps): VNode;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Props for {@link ProcessRegistryTable} (src/components/content.js).
|
|
570
|
+
*/
|
|
571
|
+
export interface ProcessRegistryTableProps {
|
|
572
|
+
/** @default [] */
|
|
573
|
+
processes?: any[];
|
|
574
|
+
/** @default 'no live processes' */
|
|
575
|
+
emptyText?: string;
|
|
576
|
+
/** @default [] */
|
|
577
|
+
extraColumns?: any[];
|
|
578
|
+
}
|
|
579
|
+
export declare function ProcessRegistryTable(props?: ProcessRegistryTableProps): VNode;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Props for {@link SearchInput} (src/components/content.js).
|
|
583
|
+
*/
|
|
584
|
+
export interface SearchInputProps {
|
|
585
|
+
/** @default '' */
|
|
586
|
+
value?: string;
|
|
587
|
+
/** @default 'search…' */
|
|
588
|
+
placeholder?: string;
|
|
589
|
+
onInput?: (...args: any[]) => any;
|
|
590
|
+
onSubmit?: (...args: any[]) => any;
|
|
591
|
+
/** @default 'q' */
|
|
592
|
+
name?: string;
|
|
593
|
+
key?: string | number;
|
|
594
|
+
label?: any;
|
|
595
|
+
resultCount?: any;
|
|
596
|
+
}
|
|
597
|
+
export declare function SearchInput(props?: SearchInputProps): VNode;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Props for {@link TextField} (src/components/content.js).
|
|
601
|
+
*/
|
|
602
|
+
export interface TextFieldProps {
|
|
603
|
+
label?: any;
|
|
604
|
+
/** @default '' */
|
|
605
|
+
value?: string;
|
|
606
|
+
/** @default 'text' */
|
|
607
|
+
type?: string;
|
|
608
|
+
/** @default '' */
|
|
609
|
+
placeholder?: string;
|
|
610
|
+
onInput?: (...args: any[]) => any;
|
|
611
|
+
onChange?: (...args: any[]) => any;
|
|
612
|
+
name?: any;
|
|
613
|
+
key?: string | number;
|
|
614
|
+
hint?: any;
|
|
615
|
+
multiline?: any;
|
|
616
|
+
/** @default 4 */
|
|
617
|
+
rows?: number;
|
|
618
|
+
maxLength?: any;
|
|
619
|
+
min?: any;
|
|
620
|
+
max?: any;
|
|
621
|
+
error?: any;
|
|
622
|
+
title?: any;
|
|
623
|
+
/** @default 'md' */
|
|
624
|
+
size?: 'md' | 'sm' | 'lg' | (string & {});
|
|
625
|
+
'aria-label'?: any;
|
|
626
|
+
'aria-invalid'?: any;
|
|
627
|
+
'aria-describedby'?: any;
|
|
628
|
+
}
|
|
629
|
+
export declare function TextField(props?: TextFieldProps): VNode;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Props for {@link Select} (src/components/content.js).
|
|
633
|
+
*/
|
|
634
|
+
export interface SelectProps {
|
|
635
|
+
label?: any;
|
|
636
|
+
/** @default '' */
|
|
637
|
+
value?: string;
|
|
638
|
+
/** @default [] */
|
|
639
|
+
options?: any[];
|
|
640
|
+
onChange?: (...args: any[]) => any;
|
|
641
|
+
name?: any;
|
|
642
|
+
key?: string | number;
|
|
643
|
+
placeholder?: any;
|
|
644
|
+
hint?: any;
|
|
645
|
+
title?: any;
|
|
646
|
+
/** @default 'md' */
|
|
647
|
+
size?: 'md' | 'sm' | 'lg' | (string & {});
|
|
648
|
+
'aria-label'?: any;
|
|
649
|
+
}
|
|
650
|
+
export declare function Select(props?: SelectProps): VNode;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Props for {@link EventList} (src/components/content.js).
|
|
654
|
+
*/
|
|
655
|
+
export interface EventListProps {
|
|
656
|
+
items?: any;
|
|
657
|
+
events?: any;
|
|
658
|
+
/** @default 'no events' */
|
|
659
|
+
emptyText?: string;
|
|
660
|
+
/** @default 3 */
|
|
661
|
+
rankPad?: number;
|
|
662
|
+
/** @default false */
|
|
663
|
+
loading?: boolean;
|
|
664
|
+
/** @default 'loading events…' */
|
|
665
|
+
loadingText?: string;
|
|
666
|
+
}
|
|
667
|
+
export declare function EventList(props?: EventListProps): VNode;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Props for {@link HomeView} (src/components/content.js).
|
|
671
|
+
*/
|
|
672
|
+
export interface HomeViewProps {
|
|
673
|
+
/** @default {} */
|
|
674
|
+
state?: Record<string, any>;
|
|
675
|
+
onNav?: (...args: any[]) => any;
|
|
676
|
+
onToggleWork?: (...args: any[]) => any;
|
|
677
|
+
/** @default [] */
|
|
678
|
+
works?: any[];
|
|
679
|
+
/** @default [] */
|
|
680
|
+
posts?: any[];
|
|
681
|
+
/** @default [] */
|
|
682
|
+
manifesto?: any[];
|
|
683
|
+
currentlyShipping?: any;
|
|
684
|
+
}
|
|
685
|
+
export declare function HomeView(props?: HomeViewProps): VNode;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Props for {@link ProjectView} (src/components/content.js).
|
|
689
|
+
*/
|
|
690
|
+
export interface ProjectViewProps {
|
|
691
|
+
/** @default {} */
|
|
692
|
+
project?: Record<string, any>;
|
|
693
|
+
copied?: any;
|
|
694
|
+
onCopy?: (...args: any[]) => any;
|
|
695
|
+
}
|
|
696
|
+
export declare function ProjectView(props?: ProjectViewProps): VNode;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Props for {@link Form} (src/components/content.js).
|
|
700
|
+
*/
|
|
701
|
+
export interface FormProps {
|
|
702
|
+
/** @default [] */
|
|
703
|
+
fields?: any[];
|
|
704
|
+
/** @default 'submit' */
|
|
705
|
+
submit?: string;
|
|
706
|
+
onSubmit?: (...args: any[]) => any;
|
|
707
|
+
/** @default 1 */
|
|
708
|
+
columns?: number;
|
|
709
|
+
}
|
|
710
|
+
export declare function Form(props?: FormProps): VNode;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Props for {@link Spinner} (src/components/content.js).
|
|
714
|
+
*/
|
|
715
|
+
export interface SpinnerProps {
|
|
716
|
+
/** @default 'base' */
|
|
717
|
+
size?: string;
|
|
718
|
+
/** @default 'accent' */
|
|
719
|
+
tone?: string;
|
|
720
|
+
/** @default 'loading' */
|
|
721
|
+
label?: string;
|
|
722
|
+
key?: string | number;
|
|
723
|
+
}
|
|
724
|
+
export declare function Spinner(props?: SpinnerProps): VNode;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Props for {@link Skeleton} (src/components/content.js).
|
|
728
|
+
*/
|
|
729
|
+
export interface SkeletonProps {
|
|
730
|
+
/** @default '1em' */
|
|
731
|
+
height?: string;
|
|
732
|
+
/** @default '100%' */
|
|
733
|
+
width?: string;
|
|
734
|
+
/** @default 1 */
|
|
735
|
+
count?: number;
|
|
736
|
+
/** @default 'loading content' */
|
|
737
|
+
label?: string;
|
|
738
|
+
key?: string | number;
|
|
739
|
+
}
|
|
740
|
+
export declare function Skeleton(props?: SkeletonProps): VNode;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Props for {@link Alert} (src/components/content.js).
|
|
744
|
+
*/
|
|
745
|
+
export interface AlertProps {
|
|
746
|
+
/** @default 'info' */
|
|
747
|
+
kind?: string;
|
|
748
|
+
children?: any;
|
|
749
|
+
onDismiss?: (...args: any[]) => any;
|
|
750
|
+
title?: any;
|
|
751
|
+
key?: string | number;
|
|
752
|
+
}
|
|
753
|
+
export declare function Alert(props?: AlertProps): VNode;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Props for {@link FilterPills} (src/components/content.js).
|
|
757
|
+
*/
|
|
758
|
+
export interface FilterPillsProps {
|
|
759
|
+
/** @default [] */
|
|
760
|
+
options?: any[];
|
|
761
|
+
selected?: any;
|
|
762
|
+
onSelect?: (...args: any[]) => any;
|
|
763
|
+
/** @default 'filters' */
|
|
764
|
+
label?: string;
|
|
765
|
+
}
|
|
766
|
+
export declare function FilterPills(props?: FilterPillsProps): VNode;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Props for {@link Avatar} (src/components/content.js).
|
|
770
|
+
*/
|
|
771
|
+
export interface AvatarProps {
|
|
772
|
+
name?: any;
|
|
773
|
+
src?: any;
|
|
774
|
+
fallback?: any;
|
|
775
|
+
/** @default 'md' */
|
|
776
|
+
size?: string;
|
|
777
|
+
/** @default 'circle' */
|
|
778
|
+
shape?: 'circle' | 'square' | (string & {});
|
|
779
|
+
/** @default 1 */
|
|
780
|
+
initialsCount?: number;
|
|
781
|
+
key?: string | number;
|
|
782
|
+
}
|
|
783
|
+
export declare function Avatar(props?: AvatarProps): VNode;
|
|
784
|
+
|
|
785
|
+
export declare function avatarInitial(name?: any, count?: any): VNode;
|
|
786
|
+
|
|
787
|
+
// ---- src/components/chat.js ------------------------------------------
|
|
788
|
+
|
|
789
|
+
export declare const fmtBytes: any;
|
|
790
|
+
|
|
791
|
+
export declare const renderInline: any;
|
|
792
|
+
|
|
793
|
+
export declare function hasSelectionInside(el?: any): VNode;
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Props for {@link ChatMessage} (src/components/chat.js).
|
|
797
|
+
*/
|
|
798
|
+
export interface ChatMessageProps {
|
|
799
|
+
role?: any;
|
|
800
|
+
/** @default 'them' */
|
|
801
|
+
who?: string;
|
|
802
|
+
avatar?: any;
|
|
803
|
+
text?: any;
|
|
804
|
+
parts?: any;
|
|
805
|
+
time?: any;
|
|
806
|
+
typing?: any;
|
|
807
|
+
key?: string | number;
|
|
808
|
+
aicat?: any;
|
|
809
|
+
reactions?: any;
|
|
810
|
+
receipt?: any;
|
|
811
|
+
name?: any;
|
|
812
|
+
streaming?: any;
|
|
813
|
+
actions?: any;
|
|
814
|
+
incomplete?: any;
|
|
815
|
+
stopped?: any;
|
|
816
|
+
flat?: any;
|
|
817
|
+
error?: any;
|
|
818
|
+
onRetry?: (...args: any[]) => any;
|
|
819
|
+
}
|
|
820
|
+
export declare function ChatMessage(props?: ChatMessageProps): VNode;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Props for {@link ChatComposer} (src/components/chat.js).
|
|
824
|
+
*/
|
|
825
|
+
export interface ChatComposerProps {
|
|
826
|
+
value?: any;
|
|
827
|
+
onInput?: (...args: any[]) => any;
|
|
828
|
+
onSend?: (...args: any[]) => any;
|
|
829
|
+
onEmoji?: (...args: any[]) => any;
|
|
830
|
+
onCancel?: (...args: any[]) => any;
|
|
831
|
+
busy?: any;
|
|
832
|
+
/** @default 'message…' */
|
|
833
|
+
placeholder?: string;
|
|
834
|
+
disabled?: any;
|
|
835
|
+
disabledReason?: any;
|
|
836
|
+
label?: any;
|
|
837
|
+
context?: any;
|
|
838
|
+
onPasteFiles?: (...args: any[]) => any;
|
|
839
|
+
onDropFiles?: (...args: any[]) => any;
|
|
840
|
+
streamingSince?: any;
|
|
841
|
+
detectAttachment?: any;
|
|
842
|
+
mentionFiles?: any;
|
|
843
|
+
}
|
|
844
|
+
export declare function ChatComposer(props?: ChatComposerProps): VNode;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Props for {@link Chat} (src/components/chat.js).
|
|
848
|
+
*/
|
|
849
|
+
export interface ChatProps {
|
|
850
|
+
/** @default 'chat' */
|
|
851
|
+
title?: string;
|
|
852
|
+
sub?: any;
|
|
853
|
+
/** @default [] */
|
|
854
|
+
messages?: any[];
|
|
855
|
+
composer?: any;
|
|
856
|
+
header?: any;
|
|
857
|
+
suggestions?: any;
|
|
858
|
+
onSuggestionClick?: (...args: any[]) => any;
|
|
859
|
+
}
|
|
860
|
+
export declare function Chat(props?: ChatProps): VNode;
|
|
861
|
+
|
|
862
|
+
export declare function flashComposerNote(composerEl?: any, text?: any): VNode;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Props for {@link ChatSuggestions} (src/components/chat.js).
|
|
866
|
+
*/
|
|
867
|
+
export interface ChatSuggestionsProps {
|
|
868
|
+
/** @default 'What can I help with?' */
|
|
869
|
+
heading?: string;
|
|
870
|
+
/** @default '' */
|
|
871
|
+
subtext?: string;
|
|
872
|
+
/** @default [] */
|
|
873
|
+
suggestions?: any[];
|
|
874
|
+
}
|
|
875
|
+
export declare function ChatSuggestions(props?: ChatSuggestionsProps): VNode;
|
|
876
|
+
|
|
877
|
+
export declare const AICAT_FACE: any;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Props for {@link AICatPortrait} (src/components/chat.js).
|
|
881
|
+
*/
|
|
882
|
+
export interface AICatPortraitProps {
|
|
883
|
+
/** @default 'aicat' */
|
|
884
|
+
name?: string;
|
|
885
|
+
/** @default 'idle' */
|
|
886
|
+
status?: string;
|
|
887
|
+
face?: any;
|
|
888
|
+
}
|
|
889
|
+
export declare function AICatPortrait(props?: AICatPortraitProps): VNode;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Props for {@link AICat} (src/components/chat.js).
|
|
893
|
+
*/
|
|
894
|
+
export interface AICatProps {
|
|
895
|
+
/** @default 'aicat' */
|
|
896
|
+
name?: string;
|
|
897
|
+
/** @default [] */
|
|
898
|
+
messages?: any[];
|
|
899
|
+
thinking?: any;
|
|
900
|
+
composer?: any;
|
|
901
|
+
/** @default 'online · purring' */
|
|
902
|
+
status?: string;
|
|
903
|
+
}
|
|
904
|
+
export declare function AICat(props?: AICatProps): VNode;
|
|
905
|
+
|
|
906
|
+
// ---- src/components/agent-chat.js ------------------------------------
|
|
907
|
+
|
|
908
|
+
export declare function AgentChat(props?: any): VNode;
|
|
909
|
+
|
|
910
|
+
export declare const MESSAGE_CAP: number;
|
|
911
|
+
|
|
912
|
+
// ---- src/components/chat-minimap.js ----------------------------------
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Props for {@link ChatMinimap} (src/components/chat-minimap.js).
|
|
916
|
+
*/
|
|
917
|
+
export interface ChatMinimapProps {
|
|
918
|
+
/** @default [] */
|
|
919
|
+
messages?: any[];
|
|
920
|
+
getThreadEl?: any;
|
|
921
|
+
getMessageEl?: any;
|
|
922
|
+
/** @default CHAT_MINIMAP_WIDTH */
|
|
923
|
+
width?: any;
|
|
924
|
+
}
|
|
925
|
+
export declare function ChatMinimap(props?: ChatMinimapProps): VNode;
|
|
926
|
+
|
|
927
|
+
export declare const CHAT_MINIMAP_WIDTH: number;
|
|
928
|
+
|
|
929
|
+
// ---- src/components/sessions.js --------------------------------------
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* The Claude-Desktop "Chats" column. Sessions grouped by a caller-supplied group label, each row showing title/project, relative time, agent badge, and a running/new-event indicator. Selecting a row switches the active conversation. another row's `sid` under that row (fork/branch tree), with an indent guide, a branch glyph, and a per-node collapse toggle. Ignored when `groups` is set (grouping and tree-nesting are mutually exclusive row layouts). `expanded`/ `onToggleExpand` are host-driven (kit stays stateless): a `sid` NOT present in the `expanded` Set renders collapsed once it has children. hover-revealed rename action (row becomes an inline text input while active). button click, before `onRename` commits; host flips `renaming` to this sid. delete action; clicking it arms an inline two-button confirm row (same height, no modal), mirroring SessionDashboard's arm-then-confirm stop control.
|
|
933
|
+
*
|
|
934
|
+
* Props for {@link ConversationList} (src/components/sessions.js).
|
|
935
|
+
*/
|
|
936
|
+
export interface ConversationListProps {
|
|
937
|
+
/** @default [] */
|
|
938
|
+
sessions?: Array<{ sid: any; title?: string; project?: string; agent?: string; time?: string; running?: boolean; unread?: boolean; rail?: string; parentSid?: any }>;
|
|
939
|
+
/** the active sid. */
|
|
940
|
+
selected?: any;
|
|
941
|
+
/** OPTIONAL buckets for the rows; else one flat list. */
|
|
942
|
+
groups?: Array<{ label: string; sids: Array<any> }>;
|
|
943
|
+
/** inline filter (optional). */
|
|
944
|
+
search?: { value: string; onInput: (...args: any[]) => any; placeholder?: string };
|
|
945
|
+
caption?: any;
|
|
946
|
+
/** onSelect(session). */
|
|
947
|
+
onSelect?: (...args: any[]) => any;
|
|
948
|
+
/** onNew(). */
|
|
949
|
+
onNew?: (...args: any[]) => any;
|
|
950
|
+
/** @default 'New chat' */
|
|
951
|
+
newLabel?: string;
|
|
952
|
+
/** @default 'No conversations yet' */
|
|
953
|
+
emptyText?: string;
|
|
954
|
+
/** @default false */
|
|
955
|
+
loading?: boolean;
|
|
956
|
+
/** @default null */
|
|
957
|
+
error?: any;
|
|
958
|
+
/** @default 'Loading conversations…' */
|
|
959
|
+
loadingText?: string;
|
|
960
|
+
/** @default false */
|
|
961
|
+
hasMore?: boolean;
|
|
962
|
+
onLoadMore?: (...args: any[]) => any;
|
|
963
|
+
/** @default 'load more conversations' */
|
|
964
|
+
loadMoreLabel?: string;
|
|
965
|
+
resultCount?: any;
|
|
966
|
+
/** OPTIONAL: nest rows whose `parentSid` matches @default false */
|
|
967
|
+
tree?: boolean;
|
|
968
|
+
/** sids whose children are shown, when `tree`. */
|
|
969
|
+
expanded?: Set<any>;
|
|
970
|
+
/** onToggleExpand(sid), when `tree`. */
|
|
971
|
+
onToggleExpand?: (...args: any[]) => any;
|
|
972
|
+
/** onRename(session, newTitle). Presence enables the */
|
|
973
|
+
onRename?: (...args: any[]) => any;
|
|
974
|
+
/** sid of the row currently in rename-edit mode (host-driven). */
|
|
975
|
+
renaming?: any;
|
|
976
|
+
/** onStartRename(session) - fired by the rename */
|
|
977
|
+
onStartRename?: (...args: any[]) => any;
|
|
978
|
+
/** onCancelRename() - Escape / blur-without-change. */
|
|
979
|
+
onCancelRename?: (...args: any[]) => any;
|
|
980
|
+
/** onDelete(session). Presence enables the hover-revealed */
|
|
981
|
+
onDelete?: (...args: any[]) => any;
|
|
982
|
+
/** sid currently showing the armed delete-confirm state. */
|
|
983
|
+
confirmingDelete?: any;
|
|
984
|
+
/** onArmDelete(session) - first delete click. */
|
|
985
|
+
onArmDelete?: (...args: any[]) => any;
|
|
986
|
+
/** onCancelDelete() - confirm-row Cancel click. */
|
|
987
|
+
onCancelDelete?: (...args: any[]) => any;
|
|
988
|
+
}
|
|
989
|
+
export declare function ConversationList(props?: ConversationListProps): VNode;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Props for {@link SessionCard} (src/components/sessions.js).
|
|
993
|
+
*/
|
|
994
|
+
export interface SessionCardProps {
|
|
995
|
+
/** @default {} */
|
|
996
|
+
session?: Record<string, any>;
|
|
997
|
+
onStop?: (...args: any[]) => any;
|
|
998
|
+
onOpen?: (...args: any[]) => any;
|
|
999
|
+
onView?: (...args: any[]) => any;
|
|
1000
|
+
/** @default false */
|
|
1001
|
+
active?: boolean;
|
|
1002
|
+
/** @default false */
|
|
1003
|
+
selectable?: boolean;
|
|
1004
|
+
/** @default false */
|
|
1005
|
+
selected?: boolean;
|
|
1006
|
+
onToggleSelect?: (...args: any[]) => any;
|
|
1007
|
+
/** @default 'comfortable' */
|
|
1008
|
+
density?: 'comfortable' | 'compact' | (string & {});
|
|
1009
|
+
}
|
|
1010
|
+
export declare function SessionCard(props?: SessionCardProps): VNode;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* The live multi-session command center ("Live" dashboard). The stop-all / stop-selected danger buttons are two-step (host-driven, the kit is stateless): the first click fires onArmStop* so the host flips confirming* true and re-renders; the armed button reads 'stop N sessions - press again' and only THAT click fires the real onStopAll/onStopSelected. Hosts that wire no onArmStop* keep the old single-click behavior.
|
|
1014
|
+
*
|
|
1015
|
+
* Props for {@link SessionDashboard} (src/components/sessions.js).
|
|
1016
|
+
*/
|
|
1017
|
+
export interface SessionDashboardProps {
|
|
1018
|
+
/** session shape: `{ sid, realSid, title, agent, model, cwd, elapsedMs, counter, lastActivity, currentTool, status, stopping, external, isNew, cost, tokens }`. @default [] */
|
|
1019
|
+
sessions?: Array<Record<string, any>>;
|
|
1020
|
+
/** onStop(session). */
|
|
1021
|
+
onStop?: (...args: any[]) => any;
|
|
1022
|
+
/** onOpen(session). */
|
|
1023
|
+
onOpen?: (...args: any[]) => any;
|
|
1024
|
+
/** onView(session). */
|
|
1025
|
+
onView?: (...args: any[]) => any;
|
|
1026
|
+
onStopAll?: (...args: any[]) => any;
|
|
1027
|
+
onStopSelected?: (...args: any[]) => any;
|
|
1028
|
+
/** @default false */
|
|
1029
|
+
confirmingStopAll?: boolean;
|
|
1030
|
+
/** @default false */
|
|
1031
|
+
confirmingStopSelected?: boolean;
|
|
1032
|
+
onArmStopAll?: (...args: any[]) => any;
|
|
1033
|
+
onArmStopSelected?: (...args: any[]) => any;
|
|
1034
|
+
sort?: any;
|
|
1035
|
+
filter?: any;
|
|
1036
|
+
/** @default false */
|
|
1037
|
+
errorsOnly?: boolean;
|
|
1038
|
+
onErrorsOnly?: (...args: any[]) => any;
|
|
1039
|
+
/** @default false */
|
|
1040
|
+
selectable?: boolean;
|
|
1041
|
+
selected?: any;
|
|
1042
|
+
onToggleSelect?: (...args: any[]) => any;
|
|
1043
|
+
onSelectAll?: (...args: any[]) => any;
|
|
1044
|
+
onClearSelection?: (...args: any[]) => any;
|
|
1045
|
+
activeSid?: any;
|
|
1046
|
+
streamState?: 'connected' | 'connecting' | 'lost' | 'offline';
|
|
1047
|
+
/** @default 'No live sessions' */
|
|
1048
|
+
emptyText?: string;
|
|
1049
|
+
emptyAction?: any;
|
|
1050
|
+
/** @default false */
|
|
1051
|
+
offline?: boolean;
|
|
1052
|
+
/** @default 'comfortable' */
|
|
1053
|
+
density?: 'comfortable' | 'compact' | (string & {});
|
|
1054
|
+
}
|
|
1055
|
+
export declare function SessionDashboard(props?: SessionDashboardProps): VNode;
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Props for {@link SessionMeta} (src/components/sessions.js).
|
|
1059
|
+
*/
|
|
1060
|
+
export interface SessionMetaProps {
|
|
1061
|
+
/** @default [] */
|
|
1062
|
+
items?: any[];
|
|
1063
|
+
}
|
|
1064
|
+
export declare function SessionMeta(props?: SessionMetaProps): VNode;
|
|
1065
|
+
|
|
1066
|
+
export declare function fmtDuration(ms?: any): VNode;
|
|
1067
|
+
|
|
1068
|
+
export declare function fmtTime(t?: any): VNode;
|
|
1069
|
+
|
|
1070
|
+
export declare function fmtAgo(t?: any): VNode;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Props for {@link AgentListSkeleton} (src/components/sessions.js).
|
|
1074
|
+
*/
|
|
1075
|
+
export interface AgentListSkeletonProps {
|
|
1076
|
+
/** @default 5 */
|
|
1077
|
+
rows?: number;
|
|
1078
|
+
}
|
|
1079
|
+
export declare function AgentListSkeleton(props?: AgentListSkeletonProps): VNode;
|
|
1080
|
+
|
|
1081
|
+
// ---- src/components/context-pane.js ----------------------------------
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Props for {@link ContextPane} (src/components/context-pane.js).
|
|
1085
|
+
*/
|
|
1086
|
+
export interface ContextPaneProps {
|
|
1087
|
+
agent?: any;
|
|
1088
|
+
model?: any;
|
|
1089
|
+
cwd?: any;
|
|
1090
|
+
/** @default 0 */
|
|
1091
|
+
toolCount?: number;
|
|
1092
|
+
usage?: any;
|
|
1093
|
+
session?: any;
|
|
1094
|
+
recentFiles?: any;
|
|
1095
|
+
onSetCwd?: (...args: any[]) => any;
|
|
1096
|
+
onOpenFile?: (...args: any[]) => any;
|
|
1097
|
+
}
|
|
1098
|
+
export declare function ContextPane(props?: ContextPaneProps): VNode;
|
|
1099
|
+
|
|
1100
|
+
// ---- src/components/spreadsheet-preview.js ---------------------------
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Props for {@link SpreadsheetPreview} (src/components/spreadsheet-preview.js).
|
|
1104
|
+
*/
|
|
1105
|
+
export interface SpreadsheetPreviewProps {
|
|
1106
|
+
workbook?: any;
|
|
1107
|
+
activeSheet?: any;
|
|
1108
|
+
onSheetChange?: (...args: any[]) => any;
|
|
1109
|
+
/** @default DEFAULT_MAX_ROWS */
|
|
1110
|
+
maxRows?: any;
|
|
1111
|
+
/** @default DEFAULT_MAX_COLS */
|
|
1112
|
+
maxCols?: any;
|
|
1113
|
+
truncated?: any;
|
|
1114
|
+
loading?: any;
|
|
1115
|
+
error?: any;
|
|
1116
|
+
/** @default 'retry' */
|
|
1117
|
+
errorActionLabel?: string;
|
|
1118
|
+
onErrorAction?: (...args: any[]) => any;
|
|
1119
|
+
key?: string | number;
|
|
1120
|
+
}
|
|
1121
|
+
export declare function SpreadsheetPreview(props?: SpreadsheetPreviewProps): VNode;
|
|
1122
|
+
|
|
1123
|
+
// ---- src/components/git-status.js ------------------------------------
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Props for {@link GitStatusPanel} (src/components/git-status.js).
|
|
1127
|
+
*/
|
|
1128
|
+
export interface GitStatusPanelProps {
|
|
1129
|
+
/** @default [] */
|
|
1130
|
+
files?: any[];
|
|
1131
|
+
onFileClick?: (...args: any[]) => any;
|
|
1132
|
+
/** @default 'no changes' */
|
|
1133
|
+
emptyText?: string;
|
|
1134
|
+
active?: any;
|
|
1135
|
+
}
|
|
1136
|
+
export declare function GitStatusPanel(props?: GitStatusPanelProps): VNode;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Props for {@link GitDiffView} (src/components/git-status.js).
|
|
1140
|
+
*/
|
|
1141
|
+
export interface GitDiffViewProps {
|
|
1142
|
+
/** @default '' */
|
|
1143
|
+
diff?: string;
|
|
1144
|
+
filename?: any;
|
|
1145
|
+
}
|
|
1146
|
+
export declare function GitDiffView(props?: GitDiffViewProps): VNode;
|
|
1147
|
+
|
|
1148
|
+
// ---- src/components/worktree-switcher.js -----------------------------
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Props for {@link WorktreeSwitcher} (src/components/worktree-switcher.js).
|
|
1152
|
+
*/
|
|
1153
|
+
export interface WorktreeSwitcherProps {
|
|
1154
|
+
/** @default [] */
|
|
1155
|
+
worktrees?: any[];
|
|
1156
|
+
current?: any;
|
|
1157
|
+
onSwitch?: (...args: any[]) => any;
|
|
1158
|
+
onCreate?: (...args: any[]) => any;
|
|
1159
|
+
/** @default 'switch worktree' */
|
|
1160
|
+
ariaLabel?: string;
|
|
1161
|
+
}
|
|
1162
|
+
export declare function WorktreeSwitcher(props?: WorktreeSwitcherProps): VNode;
|
|
1163
|
+
|
|
1164
|
+
// ---- src/components/plugins-config.js --------------------------------
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Props for {@link PluginsConfig} (src/components/plugins-config.js).
|
|
1168
|
+
*/
|
|
1169
|
+
export interface PluginsConfigProps {
|
|
1170
|
+
/** @default [] */
|
|
1171
|
+
plugins?: any[];
|
|
1172
|
+
/** @default null */
|
|
1173
|
+
selected?: any;
|
|
1174
|
+
/** @default false */
|
|
1175
|
+
loading?: boolean;
|
|
1176
|
+
/** @default null */
|
|
1177
|
+
error?: any;
|
|
1178
|
+
/** @default null */
|
|
1179
|
+
busyName?: any;
|
|
1180
|
+
onSelect?: (...args: any[]) => any;
|
|
1181
|
+
onToggle?: (...args: any[]) => any;
|
|
1182
|
+
onReload?: (...args: any[]) => any;
|
|
1183
|
+
onClose?: (...args: any[]) => any;
|
|
1184
|
+
}
|
|
1185
|
+
export declare function PluginsConfig(props?: PluginsConfigProps): VNode;
|
|
1186
|
+
|
|
1187
|
+
// ---- src/components/skills-config.js ---------------------------------
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Props for {@link SkillsConfig} (src/components/skills-config.js).
|
|
1191
|
+
*/
|
|
1192
|
+
export interface SkillsConfigProps {
|
|
1193
|
+
/** @default [] */
|
|
1194
|
+
skills?: any[];
|
|
1195
|
+
/** @default null */
|
|
1196
|
+
selected?: any;
|
|
1197
|
+
/** @default false */
|
|
1198
|
+
loading?: boolean;
|
|
1199
|
+
/** @default null */
|
|
1200
|
+
error?: any;
|
|
1201
|
+
/** @default null */
|
|
1202
|
+
busyName?: any;
|
|
1203
|
+
/** @default '' */
|
|
1204
|
+
query?: string;
|
|
1205
|
+
onQuery?: (...args: any[]) => any;
|
|
1206
|
+
onSelect?: (...args: any[]) => any;
|
|
1207
|
+
onToggle?: (...args: any[]) => any;
|
|
1208
|
+
onClose?: (...args: any[]) => any;
|
|
1209
|
+
}
|
|
1210
|
+
export declare function SkillsConfig(props?: SkillsConfigProps): VNode;
|
|
1211
|
+
|
|
1212
|
+
// ---- src/components/models-config.js ---------------------------------
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Props for {@link ModelsConfig} (src/components/models-config.js).
|
|
1216
|
+
*/
|
|
1217
|
+
export interface ModelsConfigProps {
|
|
1218
|
+
data?: any;
|
|
1219
|
+
loading?: any;
|
|
1220
|
+
error?: any;
|
|
1221
|
+
selectedProviderId?: any;
|
|
1222
|
+
onSelectProvider?: (...args: any[]) => any;
|
|
1223
|
+
selectedModel?: any;
|
|
1224
|
+
onSelectModel?: (...args: any[]) => any;
|
|
1225
|
+
onRefresh?: (...args: any[]) => any;
|
|
1226
|
+
onRebuild?: (...args: any[]) => any;
|
|
1227
|
+
rebuilding?: any;
|
|
1228
|
+
rebuildError?: any;
|
|
1229
|
+
}
|
|
1230
|
+
export declare function ModelsConfig(props?: ModelsConfigProps): VNode;
|
|
1231
|
+
|
|
1232
|
+
// ---- src/components/data-density.js ----------------------------------
|
|
1233
|
+
|
|
1234
|
+
export declare const DEFAULT_PHASES: any[];
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Props for {@link PhaseWalk} (src/components/data-density.js).
|
|
1238
|
+
*/
|
|
1239
|
+
export interface PhaseWalkProps {
|
|
1240
|
+
/** @default DEFAULT_PHASES */
|
|
1241
|
+
phases?: any;
|
|
1242
|
+
/** @default [] */
|
|
1243
|
+
reached?: any[];
|
|
1244
|
+
/** @default [] */
|
|
1245
|
+
gapKinds?: any[];
|
|
1246
|
+
}
|
|
1247
|
+
export declare function PhaseWalk(props?: PhaseWalkProps): VNode;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Props for {@link TreeNode} (src/components/data-density.js).
|
|
1251
|
+
*/
|
|
1252
|
+
export interface TreeNodeProps {
|
|
1253
|
+
ts?: any;
|
|
1254
|
+
kind?: any;
|
|
1255
|
+
/** @default '' */
|
|
1256
|
+
variant?: string;
|
|
1257
|
+
phase?: any;
|
|
1258
|
+
id?: any;
|
|
1259
|
+
keyLabel?: any;
|
|
1260
|
+
reason?: any;
|
|
1261
|
+
deviationLabel?: any;
|
|
1262
|
+
residuals?: any;
|
|
1263
|
+
}
|
|
1264
|
+
export declare function TreeNode(props?: TreeNodeProps): VNode;
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* Props for {@link BarRow} (src/components/data-density.js).
|
|
1268
|
+
*/
|
|
1269
|
+
export interface BarRowProps {
|
|
1270
|
+
label?: any;
|
|
1271
|
+
value?: any;
|
|
1272
|
+
/** @default 0 */
|
|
1273
|
+
pct?: number;
|
|
1274
|
+
tone?: any;
|
|
1275
|
+
}
|
|
1276
|
+
export declare function BarRow(props?: BarRowProps): VNode;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Props for {@link RateCell} (src/components/data-density.js).
|
|
1280
|
+
*/
|
|
1281
|
+
export interface RateCellProps {
|
|
1282
|
+
value?: any;
|
|
1283
|
+
/** @default 'neutral' */
|
|
1284
|
+
tone?: string;
|
|
1285
|
+
}
|
|
1286
|
+
export declare function RateCell(props?: RateCellProps): VNode;
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* Props for {@link StatTile} (src/components/data-density.js).
|
|
1290
|
+
*/
|
|
1291
|
+
export interface StatTileProps {
|
|
1292
|
+
val?: any;
|
|
1293
|
+
lbl?: any;
|
|
1294
|
+
/** @default '' */
|
|
1295
|
+
cls?: string;
|
|
1296
|
+
}
|
|
1297
|
+
export declare function StatTile(props?: StatTileProps): VNode;
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Props for {@link StatsGrid} (src/components/data-density.js).
|
|
1301
|
+
*/
|
|
1302
|
+
export interface StatsGridProps {
|
|
1303
|
+
/** @default [] */
|
|
1304
|
+
items?: any[];
|
|
1305
|
+
}
|
|
1306
|
+
export declare function StatsGrid(props?: StatsGridProps): VNode;
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Props for {@link SubGrid} (src/components/data-density.js).
|
|
1310
|
+
*/
|
|
1311
|
+
export interface SubGridProps {
|
|
1312
|
+
/** @default [] */
|
|
1313
|
+
items?: any[];
|
|
1314
|
+
}
|
|
1315
|
+
export declare function SubGrid(props?: SubGridProps): VNode;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Props for {@link SessionRow} (src/components/data-density.js).
|
|
1319
|
+
*/
|
|
1320
|
+
export interface SessionRowProps {
|
|
1321
|
+
sessId?: any;
|
|
1322
|
+
phaseWalkProps?: any;
|
|
1323
|
+
events?: any;
|
|
1324
|
+
verbs?: any;
|
|
1325
|
+
prd?: any;
|
|
1326
|
+
muts?: any;
|
|
1327
|
+
resid?: any;
|
|
1328
|
+
deviations?: any;
|
|
1329
|
+
firstTs?: any;
|
|
1330
|
+
lastTs?: any;
|
|
1331
|
+
onClick?: (...args: any[]) => any;
|
|
1332
|
+
}
|
|
1333
|
+
export declare function SessionRow(props?: SessionRowProps): VNode;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Props for {@link DevRow} (src/components/data-density.js).
|
|
1337
|
+
*/
|
|
1338
|
+
export interface DevRowProps {
|
|
1339
|
+
ts?: any;
|
|
1340
|
+
event?: any;
|
|
1341
|
+
sess?: any;
|
|
1342
|
+
operation?: any;
|
|
1343
|
+
residuals?: any;
|
|
1344
|
+
}
|
|
1345
|
+
export declare function DevRow(props?: DevRowProps): VNode;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Props for {@link LiveLogEntry} (src/components/data-density.js).
|
|
1349
|
+
*/
|
|
1350
|
+
export interface LiveLogEntryProps {
|
|
1351
|
+
ts?: any;
|
|
1352
|
+
sub?: any;
|
|
1353
|
+
tone?: any;
|
|
1354
|
+
event?: any;
|
|
1355
|
+
preview?: any;
|
|
1356
|
+
}
|
|
1357
|
+
export declare function LiveLogEntry(props?: LiveLogEntryProps): VNode;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Props for {@link LiveLog} (src/components/data-density.js).
|
|
1361
|
+
*/
|
|
1362
|
+
export interface LiveLogProps {
|
|
1363
|
+
/** @default [] */
|
|
1364
|
+
entries?: any[];
|
|
1365
|
+
/** @default true */
|
|
1366
|
+
autoScroll?: boolean;
|
|
1367
|
+
}
|
|
1368
|
+
export declare function LiveLog(props?: LiveLogProps): VNode;
|
|
1369
|
+
|
|
1370
|
+
// ---- src/components/files.js -----------------------------------------
|
|
1371
|
+
|
|
1372
|
+
export declare function fileGlyph(type?: any): VNode;
|
|
1373
|
+
|
|
1374
|
+
export declare function fmtFileSize(bytes?: any): VNode;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* Props for {@link FileIcon} (src/components/files.js).
|
|
1378
|
+
*/
|
|
1379
|
+
export interface FileIconProps {
|
|
1380
|
+
/** @default 'other' */
|
|
1381
|
+
type?: string;
|
|
1382
|
+
}
|
|
1383
|
+
export declare function FileIcon(props?: FileIconProps): VNode;
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Props for {@link FileRow} (src/components/files.js).
|
|
1387
|
+
*/
|
|
1388
|
+
export interface FileRowProps {
|
|
1389
|
+
name?: any;
|
|
1390
|
+
/** @default 'other' */
|
|
1391
|
+
type?: 'other' | 'dir' | (string & {});
|
|
1392
|
+
size?: any;
|
|
1393
|
+
modified?: any;
|
|
1394
|
+
code?: any;
|
|
1395
|
+
onOpen?: (...args: any[]) => any;
|
|
1396
|
+
onAction?: (...args: any[]) => any;
|
|
1397
|
+
active?: any;
|
|
1398
|
+
key?: string | number;
|
|
1399
|
+
permissions?: any;
|
|
1400
|
+
locked?: any;
|
|
1401
|
+
/** @default FILE_ROW_ACTIONS */
|
|
1402
|
+
actions?: any;
|
|
1403
|
+
/** @default false */
|
|
1404
|
+
busy?: boolean;
|
|
1405
|
+
/** @default false */
|
|
1406
|
+
selectable?: boolean;
|
|
1407
|
+
/** @default false */
|
|
1408
|
+
selected?: boolean;
|
|
1409
|
+
onToggleSelect?: (...args: any[]) => any;
|
|
1410
|
+
}
|
|
1411
|
+
export declare function FileRow(props?: FileRowProps): VNode;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* The directory listing. `loading` and `busy` are NOT two spellings of one state -- they are the two halves of this SDK's standing distinction, and FileGrid is the component that takes both because it is the one place both are in play at once: loading -- a DATA FETCH is in flight. Owns which SHAPE renders: with no rows yet it is a cold load and the whole grid is replaced by FileSkeleton; with rows already on screen it is a refresh and the existing rows stay mounted and dim (is-refreshing), because flashing a populated directory back to shimmer reads as data loss. busy -- a USER ACTION is in flight (a rename/move/delete round-trip). Owns INTERACTIVITY, not shape: it is forwarded to each FileRow as `busy`, which disables that row's open + mutation controls so a second click cannot fire the same mutation twice. A grid can be `busy` while not `loading` (a delete is posting, rows fully rendered) and `loading` while not `busy` (a plain refresh). Passing one for the other is a real bug, not a style choice, so they are deliberately not merged and neither is an alias of the other.
|
|
1415
|
+
*
|
|
1416
|
+
* Props for {@link FileGrid} (src/components/files.js).
|
|
1417
|
+
*/
|
|
1418
|
+
export interface FileGridProps {
|
|
1419
|
+
/** the directory entries to render. @default [] */
|
|
1420
|
+
files?: any[];
|
|
1421
|
+
onOpen?: (...args: any[]) => any;
|
|
1422
|
+
onAction?: (...args: any[]) => any;
|
|
1423
|
+
onUp?: (...args: any[]) => any;
|
|
1424
|
+
/** copy for the empty/filtered-miss state. @default 'No files here yet' */
|
|
1425
|
+
emptyText?: string;
|
|
1426
|
+
emptyAction?: any;
|
|
1427
|
+
sort?: any;
|
|
1428
|
+
filter?: any;
|
|
1429
|
+
/** a data fetch is in flight (skeleton when cold, dim when refreshing). @default false */
|
|
1430
|
+
loading?: boolean;
|
|
1431
|
+
shown?: any;
|
|
1432
|
+
onShowMore?: (...args: any[]) => any;
|
|
1433
|
+
actions?: any;
|
|
1434
|
+
/** a user-initiated mutation is in flight; disables every row's controls. Per-entry `f.busy` is used when this is not passed. */
|
|
1435
|
+
busy?: boolean;
|
|
1436
|
+
/** @default false */
|
|
1437
|
+
selectable?: boolean;
|
|
1438
|
+
selected?: any;
|
|
1439
|
+
onToggleSelect?: (...args: any[]) => any;
|
|
1440
|
+
/** @default selected */
|
|
1441
|
+
marked?: any;
|
|
1442
|
+
/** @default onToggleSelect */
|
|
1443
|
+
onMark?: (...args: any[]) => any;
|
|
1444
|
+
onSelectAll?: (...args: any[]) => any;
|
|
1445
|
+
onClearSelection?: (...args: any[]) => any;
|
|
1446
|
+
/** row density; 'thumb' switches to the multi-column cell grid. @default 'list' */
|
|
1447
|
+
density?: 'list' | 'compact' | 'thumb';
|
|
1448
|
+
onDensity?: (...args: any[]) => any;
|
|
1449
|
+
thumbUrl?: any;
|
|
1450
|
+
}
|
|
1451
|
+
export declare function FileGrid(props?: FileGridProps): VNode;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Props for {@link FileSkeleton} (src/components/files.js).
|
|
1455
|
+
*/
|
|
1456
|
+
export interface FileSkeletonProps {
|
|
1457
|
+
/** @default 12 */
|
|
1458
|
+
rows?: number;
|
|
1459
|
+
}
|
|
1460
|
+
export declare function FileSkeleton(props?: FileSkeletonProps): VNode;
|
|
1461
|
+
|
|
1462
|
+
export declare function sortFiles(files?: any, sort?: any, dir?: any): VNode;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Props for {@link FileToolbar} (src/components/files.js).
|
|
1466
|
+
*/
|
|
1467
|
+
export interface FileToolbarProps {
|
|
1468
|
+
/** @default [] */
|
|
1469
|
+
left?: any[];
|
|
1470
|
+
/** @default [] */
|
|
1471
|
+
right?: any[];
|
|
1472
|
+
}
|
|
1473
|
+
export declare function FileToolbar(props?: FileToolbarProps): VNode;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Props for {@link RootsPicker} (src/components/files.js).
|
|
1477
|
+
*/
|
|
1478
|
+
export interface RootsPickerProps {
|
|
1479
|
+
/** @default [] */
|
|
1480
|
+
roots?: any[];
|
|
1481
|
+
selected?: any;
|
|
1482
|
+
onSelect?: (...args: any[]) => any;
|
|
1483
|
+
/** @default 'roots' */
|
|
1484
|
+
label?: string;
|
|
1485
|
+
}
|
|
1486
|
+
export declare function RootsPicker(props?: RootsPickerProps): VNode;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Props for {@link DropZone} (src/components/files.js).
|
|
1490
|
+
*/
|
|
1491
|
+
export interface DropZoneProps {
|
|
1492
|
+
children?: any;
|
|
1493
|
+
dragover?: any;
|
|
1494
|
+
onDrop?: (...args: any[]) => any;
|
|
1495
|
+
onDragOver?: (...args: any[]) => any;
|
|
1496
|
+
onDragLeave?: (...args: any[]) => any;
|
|
1497
|
+
/** @default 'drop files here' */
|
|
1498
|
+
label?: string;
|
|
1499
|
+
onPick?: (...args: any[]) => any;
|
|
1500
|
+
}
|
|
1501
|
+
export declare function DropZone(props?: DropZoneProps): VNode;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Props for {@link UploadProgress} (src/components/files.js).
|
|
1505
|
+
*/
|
|
1506
|
+
export interface UploadProgressProps {
|
|
1507
|
+
/** @default [] */
|
|
1508
|
+
items?: any[];
|
|
1509
|
+
onDismiss?: (...args: any[]) => any;
|
|
1510
|
+
}
|
|
1511
|
+
export declare function UploadProgress(props?: UploadProgressProps): VNode;
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* Props for {@link EmptyState} (src/components/files.js).
|
|
1515
|
+
*/
|
|
1516
|
+
export interface EmptyStateProps {
|
|
1517
|
+
/** @default 'nothing here' */
|
|
1518
|
+
text?: string;
|
|
1519
|
+
/** @default Icon('circle') */
|
|
1520
|
+
glyph?: any;
|
|
1521
|
+
action?: any;
|
|
1522
|
+
}
|
|
1523
|
+
export declare function EmptyState(props?: EmptyStateProps): VNode;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Props for {@link BreadcrumbPath} (src/components/files.js).
|
|
1527
|
+
*/
|
|
1528
|
+
export interface BreadcrumbPathProps {
|
|
1529
|
+
/** @default [] */
|
|
1530
|
+
segments?: any[];
|
|
1531
|
+
onNav?: (...args: any[]) => any;
|
|
1532
|
+
/** @default 'root' */
|
|
1533
|
+
root?: string;
|
|
1534
|
+
}
|
|
1535
|
+
export declare function BreadcrumbPath(props?: BreadcrumbPathProps): VNode;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Props for {@link BulkBar} (src/components/files.js).
|
|
1539
|
+
*/
|
|
1540
|
+
export interface BulkBarProps {
|
|
1541
|
+
/** @default 0 */
|
|
1542
|
+
count?: number;
|
|
1543
|
+
/** @default 'file' */
|
|
1544
|
+
noun?: string;
|
|
1545
|
+
nounPlural?: any;
|
|
1546
|
+
/** @default [] */
|
|
1547
|
+
actions?: any[];
|
|
1548
|
+
onClear?: (...args: any[]) => any;
|
|
1549
|
+
/** @default false */
|
|
1550
|
+
busy?: boolean;
|
|
1551
|
+
}
|
|
1552
|
+
export declare function BulkBar(props?: BulkBarProps): VNode;
|
|
1553
|
+
|
|
1554
|
+
// ---- src/components/files-modals.js ----------------------------------
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* Props for {@link ConfirmDialog} (src/components/files-modals.js).
|
|
1558
|
+
*/
|
|
1559
|
+
export interface ConfirmDialogProps {
|
|
1560
|
+
/** @default 'Are you sure?' */
|
|
1561
|
+
title?: string;
|
|
1562
|
+
message?: any;
|
|
1563
|
+
/** @default 'confirm' */
|
|
1564
|
+
confirmLabel?: string;
|
|
1565
|
+
/** @default 'cancel' */
|
|
1566
|
+
cancelLabel?: string;
|
|
1567
|
+
destructive?: any;
|
|
1568
|
+
onConfirm?: (...args: any[]) => any;
|
|
1569
|
+
onCancel?: (...args: any[]) => any;
|
|
1570
|
+
error?: any;
|
|
1571
|
+
/** @default false */
|
|
1572
|
+
busy?: boolean;
|
|
1573
|
+
/** @default 'working…' */
|
|
1574
|
+
busyLabel?: string;
|
|
1575
|
+
}
|
|
1576
|
+
export declare function ConfirmDialog(props?: ConfirmDialogProps): VNode;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Props for {@link PromptDialog} (src/components/files-modals.js).
|
|
1580
|
+
*/
|
|
1581
|
+
export interface PromptDialogProps {
|
|
1582
|
+
/** @default 'Enter a name' */
|
|
1583
|
+
title?: string;
|
|
1584
|
+
/** @default '' */
|
|
1585
|
+
value?: string;
|
|
1586
|
+
/** @default '' */
|
|
1587
|
+
placeholder?: string;
|
|
1588
|
+
/** @default 'ok' */
|
|
1589
|
+
confirmLabel?: string;
|
|
1590
|
+
/** @default 'cancel' */
|
|
1591
|
+
cancelLabel?: string;
|
|
1592
|
+
onConfirm?: (...args: any[]) => any;
|
|
1593
|
+
onCancel?: (...args: any[]) => any;
|
|
1594
|
+
onInput?: (...args: any[]) => any;
|
|
1595
|
+
error?: any;
|
|
1596
|
+
/** @default false */
|
|
1597
|
+
busy?: boolean;
|
|
1598
|
+
/** @default 'working…' */
|
|
1599
|
+
busyLabel?: string;
|
|
1600
|
+
roots?: any;
|
|
1601
|
+
onPickRoot?: (...args: any[]) => any;
|
|
1602
|
+
}
|
|
1603
|
+
export declare function PromptDialog(props?: PromptDialogProps): VNode;
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* Props for {@link CountdownDialog} (src/components/files-modals.js).
|
|
1607
|
+
*/
|
|
1608
|
+
export interface CountdownDialogProps {
|
|
1609
|
+
/** @default 'Are you sure?' */
|
|
1610
|
+
title?: string;
|
|
1611
|
+
message?: any;
|
|
1612
|
+
/** @default 10 */
|
|
1613
|
+
seconds?: number;
|
|
1614
|
+
onExpire?: (...args: any[]) => any;
|
|
1615
|
+
actions?: any;
|
|
1616
|
+
}
|
|
1617
|
+
export declare function CountdownDialog(props?: CountdownDialogProps): VNode;
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* Props for {@link FilePreviewMedia} (src/components/files-modals.js).
|
|
1621
|
+
*/
|
|
1622
|
+
export interface FilePreviewMediaProps {
|
|
1623
|
+
src?: any;
|
|
1624
|
+
/** @default 'other' */
|
|
1625
|
+
type?: 'other' | 'image' | 'video' | 'audio' | (string & {});
|
|
1626
|
+
name?: any;
|
|
1627
|
+
}
|
|
1628
|
+
export declare function FilePreviewMedia(props?: FilePreviewMediaProps): VNode;
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* Props for {@link FilePreviewCode} (src/components/files-modals.js).
|
|
1632
|
+
*/
|
|
1633
|
+
export interface FilePreviewCodeProps {
|
|
1634
|
+
/** @default '' */
|
|
1635
|
+
content?: string;
|
|
1636
|
+
lang?: any;
|
|
1637
|
+
filename?: any;
|
|
1638
|
+
wrap?: any;
|
|
1639
|
+
onWrapToggle?: (...args: any[]) => any;
|
|
1640
|
+
previewHtml?: any;
|
|
1641
|
+
/** @default 'preview' */
|
|
1642
|
+
previewLabel?: string;
|
|
1643
|
+
mode?: any;
|
|
1644
|
+
onModeChange?: (...args: any[]) => any;
|
|
1645
|
+
}
|
|
1646
|
+
export declare function FilePreviewCode(props?: FilePreviewCodeProps): VNode;
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Props for {@link FilePreviewText} (src/components/files-modals.js).
|
|
1650
|
+
*/
|
|
1651
|
+
export interface FilePreviewTextProps {
|
|
1652
|
+
/** @default '' */
|
|
1653
|
+
content?: string;
|
|
1654
|
+
truncated?: any;
|
|
1655
|
+
}
|
|
1656
|
+
export declare function FilePreviewText(props?: FilePreviewTextProps): VNode;
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Props for {@link FileViewer} (src/components/files-modals.js).
|
|
1660
|
+
*/
|
|
1661
|
+
export interface FileViewerProps {
|
|
1662
|
+
file?: any;
|
|
1663
|
+
body?: any;
|
|
1664
|
+
onClose?: (...args: any[]) => any;
|
|
1665
|
+
onAction?: (...args: any[]) => any;
|
|
1666
|
+
onPrev?: (...args: any[]) => any;
|
|
1667
|
+
onNext?: (...args: any[]) => any;
|
|
1668
|
+
}
|
|
1669
|
+
export declare function FileViewer(props?: FileViewerProps): VNode;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Props for {@link FilePreviewPane} (src/components/files-modals.js).
|
|
1673
|
+
*/
|
|
1674
|
+
export interface FilePreviewPaneProps {
|
|
1675
|
+
file?: any;
|
|
1676
|
+
body?: any;
|
|
1677
|
+
onClose?: (...args: any[]) => any;
|
|
1678
|
+
onAction?: (...args: any[]) => any;
|
|
1679
|
+
onPrev?: (...args: any[]) => any;
|
|
1680
|
+
onNext?: (...args: any[]) => any;
|
|
1681
|
+
}
|
|
1682
|
+
export declare function FilePreviewPane(props?: FilePreviewPaneProps): VNode;
|
|
1683
|
+
|
|
1684
|
+
// ---- src/components/community.js -------------------------------------
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Props for {@link ServerIcon} (src/components/community.js).
|
|
1688
|
+
*/
|
|
1689
|
+
export interface ServerIconProps {
|
|
1690
|
+
id?: any;
|
|
1691
|
+
name?: any;
|
|
1692
|
+
icon?: any;
|
|
1693
|
+
active?: any;
|
|
1694
|
+
badge?: any;
|
|
1695
|
+
onClick?: (...args: any[]) => any;
|
|
1696
|
+
}
|
|
1697
|
+
export declare function ServerIcon(props?: ServerIconProps): VNode;
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* Props for {@link ServerRail} (src/components/community.js).
|
|
1701
|
+
*/
|
|
1702
|
+
export interface ServerRailProps {
|
|
1703
|
+
/** @default [] */
|
|
1704
|
+
servers?: any[];
|
|
1705
|
+
activeId?: any;
|
|
1706
|
+
onSelect?: (...args: any[]) => any;
|
|
1707
|
+
onAdd?: (...args: any[]) => any;
|
|
1708
|
+
}
|
|
1709
|
+
export declare function ServerRail(props?: ServerRailProps): VNode;
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* Props for {@link ChannelItem} (src/components/community.js).
|
|
1713
|
+
*/
|
|
1714
|
+
export interface ChannelItemProps {
|
|
1715
|
+
id?: any;
|
|
1716
|
+
name?: any;
|
|
1717
|
+
/** @default 'text' */
|
|
1718
|
+
type?: string;
|
|
1719
|
+
active?: any;
|
|
1720
|
+
voiceActive?: any;
|
|
1721
|
+
voiceConnecting?: any;
|
|
1722
|
+
badge?: any;
|
|
1723
|
+
draggable?: any;
|
|
1724
|
+
/** @default [] */
|
|
1725
|
+
actions?: any[];
|
|
1726
|
+
/** @default [] */
|
|
1727
|
+
participants?: any[];
|
|
1728
|
+
onClick?: (...args: any[]) => any;
|
|
1729
|
+
onContext?: (...args: any[]) => any;
|
|
1730
|
+
}
|
|
1731
|
+
export declare function ChannelItem(props?: ChannelItemProps): VNode;
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Props for {@link ChannelCategory} (src/components/community.js).
|
|
1735
|
+
*/
|
|
1736
|
+
export interface ChannelCategoryProps {
|
|
1737
|
+
id?: any;
|
|
1738
|
+
name?: any;
|
|
1739
|
+
/** @default [] */
|
|
1740
|
+
channels?: any[];
|
|
1741
|
+
collapsed?: any;
|
|
1742
|
+
activeId?: any;
|
|
1743
|
+
onToggle?: (...args: any[]) => any;
|
|
1744
|
+
onAddChannel?: (...args: any[]) => any;
|
|
1745
|
+
onChannelClick?: (...args: any[]) => any;
|
|
1746
|
+
onChannelContext?: (...args: any[]) => any;
|
|
1747
|
+
onContextMenu?: (...args: any[]) => any;
|
|
1748
|
+
extraButton?: any;
|
|
1749
|
+
channelDraggable?: any;
|
|
1750
|
+
}
|
|
1751
|
+
export declare function ChannelCategory(props?: ChannelCategoryProps): VNode;
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* Props for {@link VoiceUser} (src/components/community.js).
|
|
1755
|
+
*/
|
|
1756
|
+
export interface VoiceUserProps {
|
|
1757
|
+
identity?: any;
|
|
1758
|
+
speaking?: any;
|
|
1759
|
+
color?: any;
|
|
1760
|
+
}
|
|
1761
|
+
export declare function VoiceUser(props?: VoiceUserProps): VNode;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Props for {@link UserPanel} (src/components/community.js).
|
|
1765
|
+
*/
|
|
1766
|
+
export interface UserPanelProps {
|
|
1767
|
+
name?: any;
|
|
1768
|
+
tag?: any;
|
|
1769
|
+
color?: any;
|
|
1770
|
+
muted?: any;
|
|
1771
|
+
deafened?: any;
|
|
1772
|
+
onMute?: (...args: any[]) => any;
|
|
1773
|
+
onDeafen?: (...args: any[]) => any;
|
|
1774
|
+
onSettings?: (...args: any[]) => any;
|
|
1775
|
+
}
|
|
1776
|
+
export declare function UserPanel(props?: UserPanelProps): VNode;
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Props for {@link ChannelSidebar} (src/components/community.js).
|
|
1780
|
+
*/
|
|
1781
|
+
export interface ChannelSidebarProps {
|
|
1782
|
+
serverName?: any;
|
|
1783
|
+
/** @default [] */
|
|
1784
|
+
channels?: any[];
|
|
1785
|
+
/** @default [] */
|
|
1786
|
+
categories?: any[];
|
|
1787
|
+
activeId?: any;
|
|
1788
|
+
collapsedCats?: any;
|
|
1789
|
+
onChannelClick?: (...args: any[]) => any;
|
|
1790
|
+
onCategoryToggle?: (...args: any[]) => any;
|
|
1791
|
+
onAddChannel?: (...args: any[]) => any;
|
|
1792
|
+
onChannelContext?: (...args: any[]) => any;
|
|
1793
|
+
userPanelProps?: any;
|
|
1794
|
+
/** @default false */
|
|
1795
|
+
loading?: boolean;
|
|
1796
|
+
}
|
|
1797
|
+
export declare function ChannelSidebar(props?: ChannelSidebarProps): VNode;
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* Props for {@link MemberItem} (src/components/community.js).
|
|
1801
|
+
*/
|
|
1802
|
+
export interface MemberItemProps {
|
|
1803
|
+
identity?: any;
|
|
1804
|
+
name?: any;
|
|
1805
|
+
color?: any;
|
|
1806
|
+
/** @default 'online' */
|
|
1807
|
+
status?: string;
|
|
1808
|
+
}
|
|
1809
|
+
export declare function MemberItem(props?: MemberItemProps): VNode;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Props for {@link MemberList} (src/components/community.js).
|
|
1813
|
+
*/
|
|
1814
|
+
export interface MemberListProps {
|
|
1815
|
+
/** @default [] */
|
|
1816
|
+
categories?: any[];
|
|
1817
|
+
open?: any;
|
|
1818
|
+
/** @default false */
|
|
1819
|
+
loading?: boolean;
|
|
1820
|
+
}
|
|
1821
|
+
export declare function MemberList(props?: MemberListProps): VNode;
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* Props for {@link ChatHeader} (src/components/community.js).
|
|
1825
|
+
*/
|
|
1826
|
+
export interface ChatHeaderProps {
|
|
1827
|
+
/** @default '#' */
|
|
1828
|
+
icon?: string;
|
|
1829
|
+
name?: any;
|
|
1830
|
+
topic?: any;
|
|
1831
|
+
/** @default [] */
|
|
1832
|
+
toolbar?: any[];
|
|
1833
|
+
}
|
|
1834
|
+
export declare function ChatHeader(props?: ChatHeaderProps): VNode;
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Props for {@link VoiceStrip} (src/components/community.js).
|
|
1838
|
+
*/
|
|
1839
|
+
export interface VoiceStripProps {
|
|
1840
|
+
channelName?: any;
|
|
1841
|
+
status?: any;
|
|
1842
|
+
muted?: any;
|
|
1843
|
+
deafened?: any;
|
|
1844
|
+
onMute?: (...args: any[]) => any;
|
|
1845
|
+
onDeafen?: (...args: any[]) => any;
|
|
1846
|
+
onLeave?: (...args: any[]) => any;
|
|
1847
|
+
open?: any;
|
|
1848
|
+
}
|
|
1849
|
+
export declare function VoiceStrip(props?: VoiceStripProps): VNode;
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Props for {@link CommunityShell} (src/components/community.js).
|
|
1853
|
+
*/
|
|
1854
|
+
export interface CommunityShellProps {
|
|
1855
|
+
serverRailProps?: any;
|
|
1856
|
+
sidebarProps?: any;
|
|
1857
|
+
children?: any;
|
|
1858
|
+
memberListProps?: any;
|
|
1859
|
+
voiceStripProps?: any;
|
|
1860
|
+
}
|
|
1861
|
+
export declare function CommunityShell(props?: CommunityShellProps): VNode;
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Props for {@link MobileHeader} (src/components/community.js).
|
|
1865
|
+
*/
|
|
1866
|
+
export interface MobileHeaderProps {
|
|
1867
|
+
title?: any;
|
|
1868
|
+
channelType?: any;
|
|
1869
|
+
channelName?: any;
|
|
1870
|
+
onMenu?: (...args: any[]) => any;
|
|
1871
|
+
onMembers?: (...args: any[]) => any;
|
|
1872
|
+
}
|
|
1873
|
+
export declare function MobileHeader(props?: MobileHeaderProps): VNode;
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Props for {@link ReplyBar} (src/components/community.js).
|
|
1877
|
+
*/
|
|
1878
|
+
export interface ReplyBarProps {
|
|
1879
|
+
quotedMessage?: any;
|
|
1880
|
+
quotedAuthor?: any;
|
|
1881
|
+
onCancel?: (...args: any[]) => any;
|
|
1882
|
+
}
|
|
1883
|
+
export declare function ReplyBar(props?: ReplyBarProps): VNode;
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* Props for {@link Banner} (src/components/community.js).
|
|
1887
|
+
*/
|
|
1888
|
+
export interface BannerProps {
|
|
1889
|
+
/** @default 'info' */
|
|
1890
|
+
tone?: 'info' | 'error' | 'warning' | (string & {});
|
|
1891
|
+
message?: any;
|
|
1892
|
+
visible?: any;
|
|
1893
|
+
actionLabel?: any;
|
|
1894
|
+
onAction?: (...args: any[]) => any;
|
|
1895
|
+
onClick?: (...args: any[]) => any;
|
|
1896
|
+
}
|
|
1897
|
+
export declare function Banner(props?: BannerProps): VNode;
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* Props for {@link ThreadPanel} (src/components/community.js).
|
|
1901
|
+
*/
|
|
1902
|
+
export interface ThreadPanelProps {
|
|
1903
|
+
/** @default [] */
|
|
1904
|
+
threads?: any[];
|
|
1905
|
+
/** @default null */
|
|
1906
|
+
activeId?: any;
|
|
1907
|
+
/** @default 'Threads' */
|
|
1908
|
+
title?: string;
|
|
1909
|
+
onSelect?: (...args: any[]) => any;
|
|
1910
|
+
onCreate?: (...args: any[]) => any;
|
|
1911
|
+
onClose?: (...args: any[]) => any;
|
|
1912
|
+
/** @default false */
|
|
1913
|
+
loading?: boolean;
|
|
1914
|
+
}
|
|
1915
|
+
export declare function ThreadPanel(props?: ThreadPanelProps): VNode;
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Props for {@link ForumView} (src/components/community.js).
|
|
1919
|
+
*/
|
|
1920
|
+
export interface ForumViewProps {
|
|
1921
|
+
/** @default [] */
|
|
1922
|
+
posts?: any[];
|
|
1923
|
+
onSearch?: (...args: any[]) => any;
|
|
1924
|
+
onSort?: (...args: any[]) => any;
|
|
1925
|
+
onSelect?: (...args: any[]) => any;
|
|
1926
|
+
onNewPost?: (...args: any[]) => any;
|
|
1927
|
+
/** @default false */
|
|
1928
|
+
loading?: boolean;
|
|
1929
|
+
}
|
|
1930
|
+
export declare function ForumView(props?: ForumViewProps): VNode;
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* Props for {@link PageView} (src/components/community.js).
|
|
1934
|
+
*/
|
|
1935
|
+
export interface PageViewProps {
|
|
1936
|
+
/** @default '' */
|
|
1937
|
+
title?: string;
|
|
1938
|
+
/** @default '' */
|
|
1939
|
+
html?: string;
|
|
1940
|
+
/** @default false */
|
|
1941
|
+
isAdmin?: boolean;
|
|
1942
|
+
onEdit?: (...args: any[]) => any;
|
|
1943
|
+
}
|
|
1944
|
+
export declare function PageView(props?: PageViewProps): VNode;
|
|
1945
|
+
|
|
1946
|
+
// ---- src/components/voice.js -----------------------------------------
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Props for {@link PttButton} (src/components/voice.js).
|
|
1950
|
+
*/
|
|
1951
|
+
export interface PttButtonProps {
|
|
1952
|
+
/** @default 'idle' */
|
|
1953
|
+
state?: 'idle' | 'live' | 'recording' | 'vad' | (string & {});
|
|
1954
|
+
/** @default 'ptt' */
|
|
1955
|
+
mode?: string;
|
|
1956
|
+
onHoldStart?: (...args: any[]) => any;
|
|
1957
|
+
onHoldEnd?: (...args: any[]) => any;
|
|
1958
|
+
onClick?: (...args: any[]) => any;
|
|
1959
|
+
/** @default 'Hold to talk' */
|
|
1960
|
+
label?: string;
|
|
1961
|
+
}
|
|
1962
|
+
export declare function PttButton(props?: PttButtonProps): VNode;
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* Props for {@link VadMeter} (src/components/voice.js).
|
|
1966
|
+
*/
|
|
1967
|
+
export interface VadMeterProps {
|
|
1968
|
+
/** @default 0 */
|
|
1969
|
+
level?: number;
|
|
1970
|
+
/** @default 0.5 */
|
|
1971
|
+
threshold?: number;
|
|
1972
|
+
onThresholdChange?: (...args: any[]) => any;
|
|
1973
|
+
}
|
|
1974
|
+
export declare function VadMeter(props?: VadMeterProps): VNode;
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* Props for {@link WebcamPreview} (src/components/voice.js).
|
|
1978
|
+
*/
|
|
1979
|
+
export interface WebcamPreviewProps {
|
|
1980
|
+
/** @default null */
|
|
1981
|
+
videoStream?: any;
|
|
1982
|
+
/** @default '640x480' */
|
|
1983
|
+
resolution?: string;
|
|
1984
|
+
/** @default 30 */
|
|
1985
|
+
fps?: number;
|
|
1986
|
+
/** @default true */
|
|
1987
|
+
enabled?: boolean;
|
|
1988
|
+
/** @default [] */
|
|
1989
|
+
resolutions?: any[];
|
|
1990
|
+
/** @default [] */
|
|
1991
|
+
fpsOptions?: any[];
|
|
1992
|
+
onResolutionChange?: (...args: any[]) => any;
|
|
1993
|
+
onFpsChange?: (...args: any[]) => any;
|
|
1994
|
+
onToggle?: (...args: any[]) => any;
|
|
1995
|
+
}
|
|
1996
|
+
export declare function WebcamPreview(props?: WebcamPreviewProps): VNode;
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* Props for {@link VoiceSettingsModal} (src/components/voice.js).
|
|
2000
|
+
*/
|
|
2001
|
+
export interface VoiceSettingsModalProps {
|
|
2002
|
+
/** @default false */
|
|
2003
|
+
open?: boolean;
|
|
2004
|
+
/** @default 'ptt' */
|
|
2005
|
+
mode?: 'ptt' | 'vad' | (string & {});
|
|
2006
|
+
inputId?: any;
|
|
2007
|
+
outputId?: any;
|
|
2008
|
+
/** @default [] */
|
|
2009
|
+
inputDevices?: any[];
|
|
2010
|
+
/** @default [] */
|
|
2011
|
+
outputDevices?: any[];
|
|
2012
|
+
/** @default 0.5 */
|
|
2013
|
+
vadThreshold?: number;
|
|
2014
|
+
/** @default false */
|
|
2015
|
+
rnnoise?: boolean;
|
|
2016
|
+
/** @default false */
|
|
2017
|
+
autoGain?: boolean;
|
|
2018
|
+
/** @default false */
|
|
2019
|
+
forceTurn?: boolean;
|
|
2020
|
+
/** @default 64 */
|
|
2021
|
+
bitrate?: number;
|
|
2022
|
+
volume?: any;
|
|
2023
|
+
onChange?: (...args: any[]) => any;
|
|
2024
|
+
onSave?: (...args: any[]) => any;
|
|
2025
|
+
onCancel?: (...args: any[]) => any;
|
|
2026
|
+
onClose?: (...args: any[]) => any;
|
|
2027
|
+
}
|
|
2028
|
+
export declare function VoiceSettingsModal(props?: VoiceSettingsModalProps): VNode;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Props for {@link AudioQueue} (src/components/voice.js).
|
|
2032
|
+
*/
|
|
2033
|
+
export interface AudioQueueProps {
|
|
2034
|
+
/** @default [] */
|
|
2035
|
+
segments?: any[];
|
|
2036
|
+
/** @default null */
|
|
2037
|
+
currentSegmentId?: any;
|
|
2038
|
+
/** @default false */
|
|
2039
|
+
paused?: boolean;
|
|
2040
|
+
onReplay?: (...args: any[]) => any;
|
|
2041
|
+
onSkip?: (...args: any[]) => any;
|
|
2042
|
+
onResume?: (...args: any[]) => any;
|
|
2043
|
+
onPause?: (...args: any[]) => any;
|
|
2044
|
+
}
|
|
2045
|
+
export declare function AudioQueue(props?: AudioQueueProps): VNode;
|
|
2046
|
+
|
|
2047
|
+
/**
|
|
2048
|
+
* Props for {@link VoiceControls} (src/components/voice.js).
|
|
2049
|
+
*/
|
|
2050
|
+
export interface VoiceControlsProps {
|
|
2051
|
+
/** @default false */
|
|
2052
|
+
muted?: boolean;
|
|
2053
|
+
/** @default false */
|
|
2054
|
+
deafened?: boolean;
|
|
2055
|
+
/** @default false */
|
|
2056
|
+
cameraOn?: boolean;
|
|
2057
|
+
/** @default false */
|
|
2058
|
+
screenShareOn?: boolean;
|
|
2059
|
+
onMic?: (...args: any[]) => any;
|
|
2060
|
+
onDeafen?: (...args: any[]) => any;
|
|
2061
|
+
onCamera?: (...args: any[]) => any;
|
|
2062
|
+
onScreenShare?: (...args: any[]) => any;
|
|
2063
|
+
onSettings?: (...args: any[]) => any;
|
|
2064
|
+
onLeave?: (...args: any[]) => any;
|
|
2065
|
+
}
|
|
2066
|
+
export declare function VoiceControls(props?: VoiceControlsProps): VNode;
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Props for {@link playCompletionCue} (src/components/voice.js).
|
|
2070
|
+
*/
|
|
2071
|
+
export interface playCompletionCueProps {}
|
|
2072
|
+
|
|
2073
|
+
export declare function playCompletionCue(props?: playCompletionCueProps): VNode;
|
|
2074
|
+
|
|
2075
|
+
// ---- src/components/theme-toggle.js ----------------------------------
|
|
2076
|
+
|
|
2077
|
+
/**
|
|
2078
|
+
* Props for {@link ThemeToggle} (src/components/theme-toggle.js).
|
|
2079
|
+
*/
|
|
2080
|
+
export interface ThemeToggleProps {
|
|
2081
|
+
/** @default false */
|
|
2082
|
+
compact?: boolean;
|
|
2083
|
+
onChange?: (...args: any[]) => any;
|
|
2084
|
+
}
|
|
2085
|
+
export declare function ThemeToggle(props?: ThemeToggleProps): VNode;
|
|
2086
|
+
|
|
2087
|
+
// ---- src/components/form-primitives.js -------------------------------
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* Props for {@link Checkbox} (src/components/form-primitives.js).
|
|
2091
|
+
*/
|
|
2092
|
+
export interface CheckboxProps {
|
|
2093
|
+
checked?: any;
|
|
2094
|
+
indeterminate?: any;
|
|
2095
|
+
disabled?: any;
|
|
2096
|
+
label?: any;
|
|
2097
|
+
hint?: any;
|
|
2098
|
+
onChange?: (...args: any[]) => any;
|
|
2099
|
+
ariaLabel?: any;
|
|
2100
|
+
key?: string | number;
|
|
2101
|
+
name?: any;
|
|
2102
|
+
id?: any;
|
|
2103
|
+
}
|
|
2104
|
+
export declare function Checkbox(props?: CheckboxProps): VNode;
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* Props for {@link Radio} (src/components/form-primitives.js).
|
|
2108
|
+
*/
|
|
2109
|
+
export interface RadioProps {
|
|
2110
|
+
name?: any;
|
|
2111
|
+
value?: any;
|
|
2112
|
+
checked?: any;
|
|
2113
|
+
disabled?: any;
|
|
2114
|
+
label?: any;
|
|
2115
|
+
hint?: any;
|
|
2116
|
+
onChange?: (...args: any[]) => any;
|
|
2117
|
+
ariaLabel?: any;
|
|
2118
|
+
key?: string | number;
|
|
2119
|
+
id?: any;
|
|
2120
|
+
}
|
|
2121
|
+
export declare function Radio(props?: RadioProps): VNode;
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* Props for {@link RadioGroup} (src/components/form-primitives.js).
|
|
2125
|
+
*/
|
|
2126
|
+
export interface RadioGroupProps {
|
|
2127
|
+
legend?: any;
|
|
2128
|
+
name?: any;
|
|
2129
|
+
value?: any;
|
|
2130
|
+
/** @default [] */
|
|
2131
|
+
options?: any[];
|
|
2132
|
+
onChange?: (...args: any[]) => any;
|
|
2133
|
+
/** @default 'vertical' */
|
|
2134
|
+
orientation?: 'vertical' | 'horizontal' | (string & {});
|
|
2135
|
+
key?: string | number;
|
|
2136
|
+
}
|
|
2137
|
+
export declare function RadioGroup(props?: RadioGroupProps): VNode;
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Props for {@link Toggle} (src/components/form-primitives.js).
|
|
2141
|
+
*/
|
|
2142
|
+
export interface ToggleProps {
|
|
2143
|
+
checked?: any;
|
|
2144
|
+
disabled?: any;
|
|
2145
|
+
label?: any;
|
|
2146
|
+
hint?: any;
|
|
2147
|
+
onChange?: (...args: any[]) => any;
|
|
2148
|
+
ariaLabel?: any;
|
|
2149
|
+
/** @default 'switch' */
|
|
2150
|
+
kind?: string;
|
|
2151
|
+
key?: string | number;
|
|
2152
|
+
id?: any;
|
|
2153
|
+
}
|
|
2154
|
+
export declare function Toggle(props?: ToggleProps): VNode;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Props for {@link Field} (src/components/form-primitives.js).
|
|
2158
|
+
*/
|
|
2159
|
+
export interface FieldProps {
|
|
2160
|
+
label?: any;
|
|
2161
|
+
hint?: any;
|
|
2162
|
+
error?: any;
|
|
2163
|
+
required?: any;
|
|
2164
|
+
/** @default '*' */
|
|
2165
|
+
requiredMarker?: string;
|
|
2166
|
+
htmlFor?: any;
|
|
2167
|
+
children?: any;
|
|
2168
|
+
key?: string | number;
|
|
2169
|
+
}
|
|
2170
|
+
export declare function Field(props?: FieldProps): VNode;
|
|
2171
|
+
|
|
2172
|
+
export declare function useFormValidation(schema?: any): VNode;
|
|
2173
|
+
|
|
2174
|
+
export declare function focusFirstInvalidField(errors?: any, order?: any, getEl?: any): VNode;
|
|
2175
|
+
|
|
2176
|
+
// ---- src/components/interaction-primitives.js ------------------------
|
|
2177
|
+
|
|
2178
|
+
export declare function useDraggable(el?: any, arg1?: any, kind?: any, onDragStart?: any, arg4?: any): VNode;
|
|
2179
|
+
|
|
2180
|
+
export declare function useDropTarget(el?: any, arg1?: any, onDrop?: any, arg3?: any): VNode;
|
|
2181
|
+
|
|
2182
|
+
export declare function useNumberScrub(el?: any, arg1?: any, onChange?: any, step?: any, threshold?: any): VNode;
|
|
2183
|
+
|
|
2184
|
+
export declare function usePointerDrag(el?: any, arg1?: any, onMove?: any, onEnd?: any, button?: any): VNode;
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* Props for {@link Reorderable} (src/components/interaction-primitives.js).
|
|
2188
|
+
*/
|
|
2189
|
+
export interface ReorderableProps {
|
|
2190
|
+
/** @default [] */
|
|
2191
|
+
items?: any[];
|
|
2192
|
+
getKey?: any;
|
|
2193
|
+
renderItem?: any;
|
|
2194
|
+
onReorder?: (...args: any[]) => any;
|
|
2195
|
+
/** @default 'vertical' */
|
|
2196
|
+
axis?: string;
|
|
2197
|
+
/** @default 'reorder' */
|
|
2198
|
+
kind?: string;
|
|
2199
|
+
}
|
|
2200
|
+
export declare function Reorderable(props?: ReorderableProps): VNode;
|
|
2201
|
+
|
|
2202
|
+
export declare function useKeyboardShortcut(map?: any, arg1?: any, enabled?: any): VNode;
|
|
2203
|
+
|
|
2204
|
+
export declare function formatShortcut(combo?: any): VNode;
|
|
2205
|
+
|
|
2206
|
+
/**
|
|
2207
|
+
* Props for {@link ShortcutHint} (src/components/interaction-primitives.js).
|
|
2208
|
+
*/
|
|
2209
|
+
export interface ShortcutHintProps {
|
|
2210
|
+
combo?: any;
|
|
2211
|
+
/** @default 'kbd' */
|
|
2212
|
+
kind?: string;
|
|
2213
|
+
}
|
|
2214
|
+
export declare function ShortcutHint(props?: ShortcutHintProps): VNode;
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* Props for {@link ShortcutList} (src/components/interaction-primitives.js).
|
|
2218
|
+
*/
|
|
2219
|
+
export interface ShortcutListProps {
|
|
2220
|
+
/** @default [] */
|
|
2221
|
+
shortcuts?: any[];
|
|
2222
|
+
}
|
|
2223
|
+
export declare function ShortcutList(props?: ShortcutListProps): VNode;
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* Props for {@link useKeyboardShortcutHelp} (src/components/interaction-primitives.js).
|
|
2227
|
+
*/
|
|
2228
|
+
export interface useKeyboardShortcutHelpProps {}
|
|
2229
|
+
|
|
2230
|
+
export declare function useKeyboardShortcutHelp(props?: useKeyboardShortcutHelpProps): VNode;
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Props for {@link ShortcutHelpDialog} (src/components/interaction-primitives.js).
|
|
2234
|
+
*/
|
|
2235
|
+
export interface ShortcutHelpDialogProps {
|
|
2236
|
+
/** @default false */
|
|
2237
|
+
open?: boolean;
|
|
2238
|
+
onClose?: (...args: any[]) => any;
|
|
2239
|
+
registry?: any;
|
|
2240
|
+
}
|
|
2241
|
+
export declare function ShortcutHelpDialog(props?: ShortcutHelpDialogProps): VNode;
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* Props for {@link isMobileNow} (src/components/interaction-primitives.js).
|
|
2245
|
+
*/
|
|
2246
|
+
export interface isMobileNowProps {}
|
|
2247
|
+
|
|
2248
|
+
export declare function isMobileNow(props?: isMobileNowProps): VNode;
|
|
2249
|
+
|
|
2250
|
+
export declare function onMobileChange(cb?: any): VNode;
|
|
2251
|
+
|
|
2252
|
+
// ---- src/components/editor-primitives.js -----------------------------
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* Props for {@link Toolbar} (src/components/editor-primitives.js).
|
|
2256
|
+
*/
|
|
2257
|
+
export interface ToolbarProps {
|
|
2258
|
+
/** @default [] */
|
|
2259
|
+
leading?: any[];
|
|
2260
|
+
/** @default [] */
|
|
2261
|
+
trailing?: any[];
|
|
2262
|
+
/** @default false */
|
|
2263
|
+
dense?: boolean;
|
|
2264
|
+
children?: any;
|
|
2265
|
+
}
|
|
2266
|
+
export declare function Toolbar(props?: ToolbarProps): VNode;
|
|
2267
|
+
|
|
2268
|
+
export declare function ToolbarRow(arg0?: any): VNode;
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* Props for {@link Tabs} (src/components/editor-primitives.js).
|
|
2272
|
+
*/
|
|
2273
|
+
export interface TabsProps {
|
|
2274
|
+
/** @default [] */
|
|
2275
|
+
items?: any[];
|
|
2276
|
+
active?: any;
|
|
2277
|
+
onChange?: (...args: any[]) => any;
|
|
2278
|
+
children?: any;
|
|
2279
|
+
'aria-label'?: any;
|
|
2280
|
+
onClose?: (...args: any[]) => any;
|
|
2281
|
+
/** @default false */
|
|
2282
|
+
scroll?: boolean;
|
|
2283
|
+
}
|
|
2284
|
+
export declare function Tabs(props?: TabsProps): VNode;
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* Props for {@link TreeView} (src/components/editor-primitives.js).
|
|
2288
|
+
*/
|
|
2289
|
+
export interface TreeViewProps {
|
|
2290
|
+
children?: any;
|
|
2291
|
+
}
|
|
2292
|
+
export declare function TreeView(props?: TreeViewProps): VNode;
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* Props for {@link TreeItem} (src/components/editor-primitives.js).
|
|
2296
|
+
*/
|
|
2297
|
+
export interface TreeItemProps {
|
|
2298
|
+
label?: any;
|
|
2299
|
+
glyph?: any;
|
|
2300
|
+
tag?: any;
|
|
2301
|
+
/** @default 0 */
|
|
2302
|
+
depth?: number;
|
|
2303
|
+
/** @default false */
|
|
2304
|
+
selected?: boolean;
|
|
2305
|
+
/** @default false */
|
|
2306
|
+
expanded?: boolean;
|
|
2307
|
+
onSelect?: (...args: any[]) => any;
|
|
2308
|
+
onToggle?: (...args: any[]) => any;
|
|
2309
|
+
children?: any;
|
|
2310
|
+
hasChildren?: any;
|
|
2311
|
+
}
|
|
2312
|
+
export declare function TreeItem(props?: TreeItemProps): VNode;
|
|
2313
|
+
|
|
2314
|
+
/**
|
|
2315
|
+
* Props for {@link PropertyGrid} (src/components/editor-primitives.js).
|
|
2316
|
+
*/
|
|
2317
|
+
export interface PropertyGridProps {
|
|
2318
|
+
children?: any;
|
|
2319
|
+
}
|
|
2320
|
+
export declare function PropertyGrid(props?: PropertyGridProps): VNode;
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Props for {@link PropertyField} (src/components/editor-primitives.js).
|
|
2324
|
+
*/
|
|
2325
|
+
export interface PropertyFieldProps {
|
|
2326
|
+
label?: any;
|
|
2327
|
+
hint?: any;
|
|
2328
|
+
/** @default false */
|
|
2329
|
+
inline?: boolean;
|
|
2330
|
+
children?: any;
|
|
2331
|
+
}
|
|
2332
|
+
export declare function PropertyField(props?: PropertyFieldProps): VNode;
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Props for {@link PropertyGridRow} (src/components/editor-primitives.js).
|
|
2336
|
+
*/
|
|
2337
|
+
export interface PropertyGridRowProps {
|
|
2338
|
+
children?: any;
|
|
2339
|
+
key?: string | number;
|
|
2340
|
+
}
|
|
2341
|
+
export declare function PropertyGridRow(props?: PropertyGridRowProps): VNode;
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
* Props for {@link InlineEditableField} (src/components/editor-primitives.js).
|
|
2345
|
+
*/
|
|
2346
|
+
export interface InlineEditableFieldProps {
|
|
2347
|
+
/** @default '' */
|
|
2348
|
+
value?: string;
|
|
2349
|
+
placeholder?: any;
|
|
2350
|
+
onInput?: (...args: any[]) => any;
|
|
2351
|
+
onChange?: (...args: any[]) => any;
|
|
2352
|
+
error?: any;
|
|
2353
|
+
/** @default false */
|
|
2354
|
+
multiline?: boolean;
|
|
2355
|
+
/** @default 3 */
|
|
2356
|
+
rows?: number;
|
|
2357
|
+
ariaLabel?: any;
|
|
2358
|
+
/** @default false */
|
|
2359
|
+
disabled?: boolean;
|
|
2360
|
+
}
|
|
2361
|
+
export declare function InlineEditableField(props?: InlineEditableFieldProps): VNode;
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Props for {@link Dock} (src/components/editor-primitives.js).
|
|
2365
|
+
*/
|
|
2366
|
+
export interface DockProps {
|
|
2367
|
+
top?: any;
|
|
2368
|
+
left?: any;
|
|
2369
|
+
right?: any;
|
|
2370
|
+
bottom?: any;
|
|
2371
|
+
center?: any;
|
|
2372
|
+
}
|
|
2373
|
+
export declare function Dock(props?: DockProps): VNode;
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* Props for {@link IconButtonGroup} (src/components/editor-primitives.js).
|
|
2377
|
+
*/
|
|
2378
|
+
export interface IconButtonGroupProps {
|
|
2379
|
+
/** @default [] */
|
|
2380
|
+
items?: any[];
|
|
2381
|
+
value?: any;
|
|
2382
|
+
onChange?: (...args: any[]) => any;
|
|
2383
|
+
/** @default false */
|
|
2384
|
+
dense?: boolean;
|
|
2385
|
+
}
|
|
2386
|
+
export declare function IconButtonGroup(props?: IconButtonGroupProps): VNode;
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* Props for {@link ResizeHandle} (src/components/editor-primitives.js).
|
|
2390
|
+
*/
|
|
2391
|
+
export interface ResizeHandleProps {
|
|
2392
|
+
/** @default 'horizontal' */
|
|
2393
|
+
axis?: string;
|
|
2394
|
+
onResize?: (...args: any[]) => any;
|
|
2395
|
+
ariaLabel?: any;
|
|
2396
|
+
}
|
|
2397
|
+
export declare function ResizeHandle(props?: ResizeHandleProps): VNode;
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* Props for {@link SplitPanel} (src/components/editor-primitives.js).
|
|
2401
|
+
*/
|
|
2402
|
+
export interface SplitPanelProps {
|
|
2403
|
+
/** @default 'horizontal' */
|
|
2404
|
+
orientation?: string;
|
|
2405
|
+
/** @default '50%' */
|
|
2406
|
+
initial?: string;
|
|
2407
|
+
/** @default 80 */
|
|
2408
|
+
min?: number;
|
|
2409
|
+
/** @default Infinity */
|
|
2410
|
+
max?: number;
|
|
2411
|
+
children?: any;
|
|
2412
|
+
}
|
|
2413
|
+
export declare function SplitPanel(props?: SplitPanelProps): VNode;
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* Props for {@link ContextMenu} (src/components/editor-primitives.js).
|
|
2417
|
+
*/
|
|
2418
|
+
export interface ContextMenuProps {
|
|
2419
|
+
/** @default [] */
|
|
2420
|
+
items?: any[];
|
|
2421
|
+
/** @default { x: 0, y: 0 } */
|
|
2422
|
+
anchor?: Record<string, any>;
|
|
2423
|
+
onClose?: (...args: any[]) => any;
|
|
2424
|
+
}
|
|
2425
|
+
export declare function ContextMenu(props?: ContextMenuProps): VNode;
|
|
2426
|
+
|
|
2427
|
+
export declare function useContextMenu(targetEl?: any, items?: any, openCb?: any): VNode;
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* Props for {@link Drawer} (src/components/editor-primitives.js).
|
|
2431
|
+
*/
|
|
2432
|
+
export interface DrawerProps {
|
|
2433
|
+
/** @default 'left' */
|
|
2434
|
+
side?: string;
|
|
2435
|
+
/** @default false */
|
|
2436
|
+
open?: boolean;
|
|
2437
|
+
onClose?: (...args: any[]) => any;
|
|
2438
|
+
children?: any;
|
|
2439
|
+
ariaLabel?: any;
|
|
2440
|
+
}
|
|
2441
|
+
export declare function Drawer(props?: DrawerProps): VNode;
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Props for {@link Dialog} (src/components/editor-primitives.js).
|
|
2445
|
+
*/
|
|
2446
|
+
export interface DialogProps {
|
|
2447
|
+
title?: any;
|
|
2448
|
+
/** @default false */
|
|
2449
|
+
open?: boolean;
|
|
2450
|
+
onClose?: (...args: any[]) => any;
|
|
2451
|
+
children?: any;
|
|
2452
|
+
/** @default [] */
|
|
2453
|
+
actions?: any[];
|
|
2454
|
+
/** @default false */
|
|
2455
|
+
dismissible?: boolean;
|
|
2456
|
+
ariaLabel?: any;
|
|
2457
|
+
}
|
|
2458
|
+
export declare function Dialog(props?: DialogProps): VNode;
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* Props for {@link FocusTrap} (src/components/editor-primitives.js).
|
|
2462
|
+
*/
|
|
2463
|
+
export interface FocusTrapProps {
|
|
2464
|
+
children?: any;
|
|
2465
|
+
}
|
|
2466
|
+
export declare function FocusTrap(props?: FocusTrapProps): VNode;
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* Props for {@link Toast} (src/components/editor-primitives.js).
|
|
2470
|
+
*/
|
|
2471
|
+
export interface ToastProps {
|
|
2472
|
+
message?: any;
|
|
2473
|
+
/** @default 'info' */
|
|
2474
|
+
kind?: string;
|
|
2475
|
+
/** @default 3000 */
|
|
2476
|
+
duration?: number;
|
|
2477
|
+
onClose?: (...args: any[]) => any;
|
|
2478
|
+
}
|
|
2479
|
+
export declare function Toast(props?: ToastProps): VNode;
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* Props for {@link toast} (src/components/editor-primitives.js).
|
|
2483
|
+
*/
|
|
2484
|
+
export interface toastProps {
|
|
2485
|
+
message?: any;
|
|
2486
|
+
/** @default 'info' */
|
|
2487
|
+
kind?: string;
|
|
2488
|
+
/** @default 3000 */
|
|
2489
|
+
duration?: number;
|
|
2490
|
+
actionLabel?: any;
|
|
2491
|
+
onAction?: (...args: any[]) => any;
|
|
2492
|
+
}
|
|
2493
|
+
export declare function toast(props?: toastProps): VNode;
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* Props for {@link Pager} (src/components/editor-primitives.js).
|
|
2497
|
+
*/
|
|
2498
|
+
export interface PagerProps {
|
|
2499
|
+
/** @default 1 */
|
|
2500
|
+
page?: number;
|
|
2501
|
+
/** @default 1 */
|
|
2502
|
+
pageCount?: number;
|
|
2503
|
+
onPage?: (...args: any[]) => any;
|
|
2504
|
+
total?: any;
|
|
2505
|
+
/** @default 'items' */
|
|
2506
|
+
itemLabel?: string;
|
|
2507
|
+
/** @default false */
|
|
2508
|
+
numbered?: boolean;
|
|
2509
|
+
/** @default 1 */
|
|
2510
|
+
siblingCount?: number;
|
|
2511
|
+
}
|
|
2512
|
+
export declare function Pager(props?: PagerProps): VNode;
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* Props for {@link JsonViewer} (src/components/editor-primitives.js).
|
|
2516
|
+
*/
|
|
2517
|
+
export interface JsonViewerProps {
|
|
2518
|
+
value?: any;
|
|
2519
|
+
/** @default 'no data' */
|
|
2520
|
+
emptyText?: string;
|
|
2521
|
+
maxHeight?: any;
|
|
2522
|
+
/** @default 'plain' */
|
|
2523
|
+
mode?: 'plain' | 'highlight' | 'tree' | (string & {});
|
|
2524
|
+
/** @default false */
|
|
2525
|
+
copyable?: boolean;
|
|
2526
|
+
/** @default 2 */
|
|
2527
|
+
treeDepth?: number;
|
|
2528
|
+
}
|
|
2529
|
+
export declare function JsonViewer(props?: JsonViewerProps): VNode;
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* Props for {@link Grid} (src/components/editor-primitives.js).
|
|
2533
|
+
*/
|
|
2534
|
+
export interface GridProps {
|
|
2535
|
+
gap?: any;
|
|
2536
|
+
justify?: any;
|
|
2537
|
+
align?: any;
|
|
2538
|
+
children?: any;
|
|
2539
|
+
key?: string | number;
|
|
2540
|
+
}
|
|
2541
|
+
export declare function Grid(props?: GridProps): VNode;
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* Props for {@link GridItem} (src/components/editor-primitives.js).
|
|
2545
|
+
*/
|
|
2546
|
+
export interface GridItemProps {
|
|
2547
|
+
xs?: any;
|
|
2548
|
+
sm?: any;
|
|
2549
|
+
md?: any;
|
|
2550
|
+
lg?: any;
|
|
2551
|
+
xl?: any;
|
|
2552
|
+
children?: any;
|
|
2553
|
+
key?: string | number;
|
|
2554
|
+
}
|
|
2555
|
+
export declare function GridItem(props?: GridItemProps): VNode;
|
|
2556
|
+
|
|
2557
|
+
/**
|
|
2558
|
+
* Props for {@link Collapse} (src/components/editor-primitives.js).
|
|
2559
|
+
*/
|
|
2560
|
+
export interface CollapseProps {
|
|
2561
|
+
title?: any;
|
|
2562
|
+
/** @default false */
|
|
2563
|
+
expanded?: boolean;
|
|
2564
|
+
onToggle?: (...args: any[]) => any;
|
|
2565
|
+
children?: any;
|
|
2566
|
+
key?: string | number;
|
|
2567
|
+
}
|
|
2568
|
+
export declare function Collapse(props?: CollapseProps): VNode;
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Props for {@link CollapseGroup} (src/components/editor-primitives.js).
|
|
2572
|
+
*/
|
|
2573
|
+
export interface CollapseGroupProps {
|
|
2574
|
+
/** @default [] */
|
|
2575
|
+
items?: any[];
|
|
2576
|
+
openId?: any;
|
|
2577
|
+
onOpenChange?: (...args: any[]) => any;
|
|
2578
|
+
/** @default false */
|
|
2579
|
+
accordion?: boolean;
|
|
2580
|
+
key?: string | number;
|
|
2581
|
+
}
|
|
2582
|
+
export declare function CollapseGroup(props?: CollapseGroupProps): VNode;
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* Props for {@link Divider} (src/components/editor-primitives.js).
|
|
2586
|
+
*/
|
|
2587
|
+
export interface DividerProps {
|
|
2588
|
+
label?: any;
|
|
2589
|
+
/** @default false */
|
|
2590
|
+
vertical?: boolean;
|
|
2591
|
+
key?: string | number;
|
|
2592
|
+
}
|
|
2593
|
+
export declare function Divider(props?: DividerProps): VNode;
|
|
2594
|
+
|
|
2595
|
+
export declare function useMediaQuery(query?: any): VNode;
|
|
2596
|
+
|
|
2597
|
+
export declare const BP_SM: number;
|
|
2598
|
+
|
|
2599
|
+
export declare const BP_MD: number;
|
|
2600
|
+
|
|
2601
|
+
export declare const BP_LG: number;
|
|
2602
|
+
|
|
2603
|
+
export declare const BP_XL: number;
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* Props for {@link InfoRow} (src/components/editor-primitives.js).
|
|
2607
|
+
*/
|
|
2608
|
+
export interface InfoRowProps {
|
|
2609
|
+
label?: any;
|
|
2610
|
+
value?: any;
|
|
2611
|
+
key?: string | number;
|
|
2612
|
+
}
|
|
2613
|
+
export declare function InfoRow(props?: InfoRowProps): VNode;
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* Props for {@link InfoSection} (src/components/editor-primitives.js).
|
|
2617
|
+
*/
|
|
2618
|
+
export interface InfoSectionProps {
|
|
2619
|
+
title?: any;
|
|
2620
|
+
rows?: any;
|
|
2621
|
+
key?: string | number;
|
|
2622
|
+
}
|
|
2623
|
+
export declare function InfoSection(props?: InfoSectionProps): VNode;
|
|
2624
|
+
|
|
2625
|
+
/**
|
|
2626
|
+
* Props for {@link DiagnosticsPanel} (src/components/editor-primitives.js).
|
|
2627
|
+
*/
|
|
2628
|
+
export interface DiagnosticsPanelProps {
|
|
2629
|
+
/** @default 'Diagnostics' */
|
|
2630
|
+
title?: string;
|
|
2631
|
+
/** @default [] */
|
|
2632
|
+
sections?: any[];
|
|
2633
|
+
onRefresh?: (...args: any[]) => any;
|
|
2634
|
+
/** @default false */
|
|
2635
|
+
refreshing?: boolean;
|
|
2636
|
+
key?: string | number;
|
|
2637
|
+
}
|
|
2638
|
+
export declare function DiagnosticsPanel(props?: DiagnosticsPanelProps): VNode;
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* Props for {@link BatchProgressLabel} (src/components/editor-primitives.js).
|
|
2642
|
+
*/
|
|
2643
|
+
export interface BatchProgressLabelProps {
|
|
2644
|
+
/** @default 'Processing' */
|
|
2645
|
+
label?: string;
|
|
2646
|
+
/** @default 0 */
|
|
2647
|
+
done?: number;
|
|
2648
|
+
/** @default 0 */
|
|
2649
|
+
total?: number;
|
|
2650
|
+
key?: string | number;
|
|
2651
|
+
}
|
|
2652
|
+
export declare function BatchProgressLabel(props?: BatchProgressLabelProps): VNode;
|
|
2653
|
+
|
|
2654
|
+
/**
|
|
2655
|
+
* Props for {@link formatBatchOutcome} (src/components/editor-primitives.js).
|
|
2656
|
+
*/
|
|
2657
|
+
export interface formatBatchOutcomeProps {
|
|
2658
|
+
/** @default 0 */
|
|
2659
|
+
succeeded?: number;
|
|
2660
|
+
/** @default 0 */
|
|
2661
|
+
total?: number;
|
|
2662
|
+
/** @default [] */
|
|
2663
|
+
failedNames?: any[];
|
|
2664
|
+
/** @default 3 */
|
|
2665
|
+
maxNames?: number;
|
|
2666
|
+
}
|
|
2667
|
+
export declare function formatBatchOutcome(props?: formatBatchOutcomeProps): VNode;
|
|
2668
|
+
|
|
2669
|
+
export declare function runBatchSequential(items?: any, fn?: any, onProgress?: any): VNode;
|
|
2670
|
+
|
|
2671
|
+
// ---- src/components/overlay-primitives.js ----------------------------
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* Props for {@link Tooltip} (src/components/overlay-primitives.js).
|
|
2675
|
+
*/
|
|
2676
|
+
export interface TooltipProps {
|
|
2677
|
+
children?: any;
|
|
2678
|
+
label?: any;
|
|
2679
|
+
/** @default 'top' */
|
|
2680
|
+
placement?: string;
|
|
2681
|
+
/** @default 350 */
|
|
2682
|
+
delay?: number;
|
|
2683
|
+
/** @default 'default' */
|
|
2684
|
+
kind?: string;
|
|
2685
|
+
}
|
|
2686
|
+
export declare function Tooltip(props?: TooltipProps): VNode;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Props for {@link Popover} (src/components/overlay-primitives.js).
|
|
2690
|
+
*/
|
|
2691
|
+
export interface PopoverProps {
|
|
2692
|
+
open?: any;
|
|
2693
|
+
anchorEl?: any;
|
|
2694
|
+
onClose?: (...args: any[]) => any;
|
|
2695
|
+
/** @default 'bottom-start' */
|
|
2696
|
+
placement?: string;
|
|
2697
|
+
children?: any;
|
|
2698
|
+
ariaLabel?: any;
|
|
2699
|
+
}
|
|
2700
|
+
export declare function Popover(props?: PopoverProps): VNode;
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* Props for {@link Dropdown} (src/components/overlay-primitives.js).
|
|
2704
|
+
*/
|
|
2705
|
+
export interface DropdownProps {
|
|
2706
|
+
trigger?: any;
|
|
2707
|
+
/** @default [] */
|
|
2708
|
+
items?: any[];
|
|
2709
|
+
onSelect?: (...args: any[]) => any;
|
|
2710
|
+
/** @default 'bottom-start' */
|
|
2711
|
+
placement?: string;
|
|
2712
|
+
ariaLabel?: any;
|
|
2713
|
+
}
|
|
2714
|
+
export declare function Dropdown(props?: DropdownProps): VNode;
|
|
2715
|
+
|
|
2716
|
+
export declare function useLongPress(targetEl?: any, callback?: any, arg2?: any): VNode;
|
|
2717
|
+
|
|
2718
|
+
export declare function useFloating(anchorEl?: any, contentEl?: any, arg2?: any, offset?: any): VNode;
|
|
2719
|
+
|
|
2720
|
+
/**
|
|
2721
|
+
* Props for {@link CommandPalette} (src/components/overlay-primitives.js).
|
|
2722
|
+
*/
|
|
2723
|
+
export interface CommandPaletteProps {
|
|
2724
|
+
open?: any;
|
|
2725
|
+
/** @default [] */
|
|
2726
|
+
items?: any[];
|
|
2727
|
+
onSelect?: (...args: any[]) => any;
|
|
2728
|
+
onClose?: (...args: any[]) => any;
|
|
2729
|
+
}
|
|
2730
|
+
export declare function CommandPalette(props?: CommandPaletteProps): VNode;
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* Props for {@link EmojiPicker} (src/components/overlay-primitives.js).
|
|
2734
|
+
*/
|
|
2735
|
+
export interface EmojiPickerProps {
|
|
2736
|
+
open?: any;
|
|
2737
|
+
/** @default 0 */
|
|
2738
|
+
anchorX?: number;
|
|
2739
|
+
/** @default 0 */
|
|
2740
|
+
anchorY?: number;
|
|
2741
|
+
onSelect?: (...args: any[]) => any;
|
|
2742
|
+
onClose?: (...args: any[]) => any;
|
|
2743
|
+
/** @default '' */
|
|
2744
|
+
query?: string;
|
|
2745
|
+
}
|
|
2746
|
+
export declare function EmojiPicker(props?: EmojiPickerProps): VNode;
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* Props for {@link BootOverlay} (src/components/overlay-primitives.js).
|
|
2750
|
+
*/
|
|
2751
|
+
export interface BootOverlayProps {
|
|
2752
|
+
/** @default 0 */
|
|
2753
|
+
progress?: number;
|
|
2754
|
+
/** @default '' */
|
|
2755
|
+
phase?: string;
|
|
2756
|
+
/** @default false */
|
|
2757
|
+
errored?: boolean;
|
|
2758
|
+
/** @default false */
|
|
2759
|
+
visible?: boolean;
|
|
2760
|
+
}
|
|
2761
|
+
export declare function BootOverlay(props?: BootOverlayProps): VNode;
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* Props for {@link SettingsPopover} (src/components/overlay-primitives.js).
|
|
2765
|
+
*/
|
|
2766
|
+
export interface SettingsPopoverProps {
|
|
2767
|
+
/** @default 'Settings' */
|
|
2768
|
+
title?: string;
|
|
2769
|
+
open?: any;
|
|
2770
|
+
/** @default 0 */
|
|
2771
|
+
anchorX?: number;
|
|
2772
|
+
/** @default 0 */
|
|
2773
|
+
anchorY?: number;
|
|
2774
|
+
/** @default [] */
|
|
2775
|
+
sections?: any[];
|
|
2776
|
+
onClose?: (...args: any[]) => any;
|
|
2777
|
+
}
|
|
2778
|
+
export declare function SettingsPopover(props?: SettingsPopoverProps): VNode;
|
|
2779
|
+
|
|
2780
|
+
/**
|
|
2781
|
+
* Props for {@link AuthModal} (src/components/overlay-primitives.js).
|
|
2782
|
+
*/
|
|
2783
|
+
export interface AuthModalProps {
|
|
2784
|
+
/** @default 'extension' */
|
|
2785
|
+
mode?: 'extension' | 'generate' | 'import' | (string & {});
|
|
2786
|
+
/** @default '' */
|
|
2787
|
+
error?: string;
|
|
2788
|
+
/** @default false */
|
|
2789
|
+
busy?: boolean;
|
|
2790
|
+
/** @default false */
|
|
2791
|
+
open?: boolean;
|
|
2792
|
+
onModeChange?: (...args: any[]) => any;
|
|
2793
|
+
onConnectExtension?: (...args: any[]) => any;
|
|
2794
|
+
onGenerate?: (...args: any[]) => any;
|
|
2795
|
+
onImport?: (...args: any[]) => any;
|
|
2796
|
+
onClose?: (...args: any[]) => any;
|
|
2797
|
+
}
|
|
2798
|
+
export declare function AuthModal(props?: AuthModalProps): VNode;
|
|
2799
|
+
|
|
2800
|
+
/**
|
|
2801
|
+
* Props for {@link VideoLightbox} (src/components/overlay-primitives.js).
|
|
2802
|
+
*/
|
|
2803
|
+
export interface VideoLightboxProps {
|
|
2804
|
+
src?: any;
|
|
2805
|
+
/** @default '' */
|
|
2806
|
+
label?: string;
|
|
2807
|
+
/** @default false */
|
|
2808
|
+
open?: boolean;
|
|
2809
|
+
onClose?: (...args: any[]) => any;
|
|
2810
|
+
}
|
|
2811
|
+
export declare function VideoLightbox(props?: VideoLightboxProps): VNode;
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* Props for {@link PermissionMenu} (src/components/overlay-primitives.js).
|
|
2815
|
+
*/
|
|
2816
|
+
export interface PermissionMenuProps {
|
|
2817
|
+
trigger?: any;
|
|
2818
|
+
/** @default [] */
|
|
2819
|
+
categories?: any[];
|
|
2820
|
+
/** @default [] */
|
|
2821
|
+
approved?: any[];
|
|
2822
|
+
onToggle?: (...args: any[]) => any;
|
|
2823
|
+
onToggleAll?: (...args: any[]) => any;
|
|
2824
|
+
/** @default 'bottom-start' */
|
|
2825
|
+
placement?: string;
|
|
2826
|
+
/** @default 'Permissions' */
|
|
2827
|
+
ariaLabel?: string;
|
|
2828
|
+
}
|
|
2829
|
+
export declare function PermissionMenu(props?: PermissionMenuProps): VNode;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* Props for {@link ApprovalPrompt} (src/components/overlay-primitives.js).
|
|
2833
|
+
*/
|
|
2834
|
+
export interface ApprovalPromptProps {
|
|
2835
|
+
toolName?: any;
|
|
2836
|
+
categoryLabel?: any;
|
|
2837
|
+
argsPreview?: any;
|
|
2838
|
+
onDecision?: (...args: any[]) => any;
|
|
2839
|
+
/** @default true */
|
|
2840
|
+
autoFocusNote?: boolean;
|
|
2841
|
+
}
|
|
2842
|
+
export declare function ApprovalPrompt(props?: ApprovalPromptProps): VNode;
|
|
2843
|
+
|
|
2844
|
+
export declare function withBusy(btn?: any, fn?: any, busyLabel?: any): VNode;
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* Props for {@link MenuButton} (src/components/overlay-primitives.js).
|
|
2848
|
+
*/
|
|
2849
|
+
export interface MenuButtonProps {
|
|
2850
|
+
trigger?: any;
|
|
2851
|
+
/** @default [] */
|
|
2852
|
+
items?: any[];
|
|
2853
|
+
selected?: any;
|
|
2854
|
+
onSelect?: (...args: any[]) => any;
|
|
2855
|
+
onRetry?: (...args: any[]) => any;
|
|
2856
|
+
/** @default 'bottom-start' */
|
|
2857
|
+
placement?: string;
|
|
2858
|
+
/** @default 'Menu' */
|
|
2859
|
+
ariaLabel?: string;
|
|
2860
|
+
/** @default 'No options available' */
|
|
2861
|
+
emptyText?: string;
|
|
2862
|
+
}
|
|
2863
|
+
export declare function MenuButton(props?: MenuButtonProps): VNode;
|
|
2864
|
+
|
|
2865
|
+
// ---- src/components/freddie.js ---------------------------------------
|
|
2866
|
+
|
|
2867
|
+
export declare const FREDDIE_PAGES: Record<string, any>;
|
|
2868
|
+
|
|
2869
|
+
export declare const home: (...args: any[]) => VNode;
|
|
2870
|
+
|
|
2871
|
+
export declare const chat: (...args: any[]) => VNode;
|
|
2872
|
+
|
|
2873
|
+
export declare const voice: (...args: any[]) => VNode;
|
|
2874
|
+
|
|
2875
|
+
export declare const sessions: (...args: any[]) => VNode;
|
|
2876
|
+
|
|
2877
|
+
export declare const projects: (...args: any[]) => VNode;
|
|
2878
|
+
|
|
2879
|
+
export declare const agents: any;
|
|
2880
|
+
|
|
2881
|
+
export declare const analytics: (...args: any[]) => VNode;
|
|
2882
|
+
|
|
2883
|
+
export declare const models: (...args: any[]) => VNode;
|
|
2884
|
+
|
|
2885
|
+
export declare const cron: (...args: any[]) => VNode;
|
|
2886
|
+
|
|
2887
|
+
export declare const skills: (...args: any[]) => VNode;
|
|
2888
|
+
|
|
2889
|
+
export declare const config: (...args: any[]) => VNode;
|
|
2890
|
+
|
|
2891
|
+
export declare const env: (...args: any[]) => VNode;
|
|
2892
|
+
|
|
2893
|
+
export declare const tools: (...args: any[]) => VNode;
|
|
2894
|
+
|
|
2895
|
+
export declare const batch: (...args: any[]) => VNode;
|
|
2896
|
+
|
|
2897
|
+
export declare const gateway: (...args: any[]) => VNode;
|
|
2898
|
+
|
|
2899
|
+
export declare const chains: (...args: any[]) => VNode;
|
|
2900
|
+
|
|
2901
|
+
export declare function skillLabel(input?: any): VNode;
|
|
2902
|
+
|
|
2903
|
+
/**
|
|
2904
|
+
* Props for {@link getRecentPaths} (src/components/freddie.js).
|
|
2905
|
+
*/
|
|
2906
|
+
export interface getRecentPathsProps {}
|
|
2907
|
+
|
|
2908
|
+
export declare function getRecentPaths(props?: getRecentPathsProps): VNode;
|
|
2909
|
+
|
|
2910
|
+
export declare function saveRecentPath(path?: any): VNode;
|
|
2911
|
+
|
|
2912
|
+
export declare function renderChatMessages(messages?: any, opts?: any): VNode;
|
|
2913
|
+
|
|
2914
|
+
// ---- src/components/freddie/runtime.js -------------------------------
|
|
2915
|
+
|
|
2916
|
+
export declare function makePage(setup?: any, arg1?: any): VNode;
|
|
2917
|
+
|
|
2918
|
+
export declare function api(path?: any, opts?: any): VNode;
|
|
2919
|
+
|
|
2920
|
+
export declare function loadingState(label?: any): VNode;
|
|
2921
|
+
|
|
2922
|
+
export declare function errorState(err?: any, onRetry?: any): VNode;
|
|
2923
|
+
|
|
2924
|
+
export declare function emptyState(text?: any, glyph?: any): VNode;
|
|
2925
|
+
|
|
2926
|
+
export declare function refreshError(err?: any): VNode;
|
|
2927
|
+
|
|
2928
|
+
// ---- src/community-app.js --------------------------------------------
|
|
2929
|
+
|
|
2930
|
+
export declare function mountCommunityApp(root?: any, adapter?: any): VNode;
|
|
2931
|
+
|