@jbrowse/app-core 5.0.0-beta.1 → 5.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/esm/AppSession/AppSessionMixin.d.ts +42 -316
  2. package/esm/Assemblies/AssembliesMixin.d.ts +172 -103
  3. package/esm/Assemblies/AssembliesMixin.js +13 -8
  4. package/esm/HistoryManagement/index.d.ts +3 -11
  5. package/esm/HistoryManagement/index.js +24 -28
  6. package/esm/JBrowseConfig/RootConfiguration.d.ts +80 -124
  7. package/esm/JBrowseConfig/RootConfiguration.js +5 -11
  8. package/esm/JBrowseConfig/defaultShareUrl.d.ts +1 -0
  9. package/esm/JBrowseConfig/defaultShareUrl.js +5 -0
  10. package/esm/JBrowseConfig/index.d.ts +89 -83
  11. package/esm/JBrowseConfig/index.js +6 -4
  12. package/esm/JBrowseModel/index.d.ts +93 -96
  13. package/esm/JBrowseModel/index.js +43 -43
  14. package/esm/JbApi/index.d.ts +2 -0
  15. package/esm/JbApi/index.js +1 -0
  16. package/esm/JbApi/jbApi.d.ts +2767 -0
  17. package/esm/JbApi/jbApi.js +1383 -0
  18. package/esm/RootMenu/index.d.ts +2 -11
  19. package/esm/RootMenu/index.js +0 -11
  20. package/esm/SessionSpec/index.d.ts +1 -1
  21. package/esm/SessionSpec/index.js +1 -1
  22. package/esm/SessionSpec/lgvUrlInit.js +5 -2
  23. package/esm/SessionSpec/loadSessionSpec.d.ts +56 -2
  24. package/esm/SessionSpec/loadSessionSpec.js +285 -123
  25. package/esm/SessionSpec/parseSessionSpecUrl.d.ts +2 -8
  26. package/esm/SessionSpec/parseSessionSpecUrl.js +2 -17
  27. package/esm/SessionSpec/types.d.ts +16 -12
  28. package/esm/WorkspaceLayout/WorkspaceContainer.js +4 -2
  29. package/esm/WorkspaceLayout/WorkspaceTab.js +2 -6
  30. package/esm/WorkspaceLayout/model.d.ts +24 -4
  31. package/esm/WorkspaceLayout/model.js +76 -17
  32. package/esm/WorkspaceLayout/spec.d.ts +40 -10
  33. package/esm/WorkspaceLayout/spec.js +81 -8
  34. package/esm/index.d.ts +4 -2
  35. package/esm/index.js +4 -1
  36. package/esm/menus.d.ts +15 -29
  37. package/esm/menus.js +76 -92
  38. package/esm/queryParams.d.ts +1 -1
  39. package/esm/queryParams.js +10 -9
  40. package/esm/ui/App/App.js +18 -11
  41. package/esm/ui/App/AppToolbar.js +23 -8
  42. package/esm/ui/App/ClassicViewsContainer.d.ts +2 -2
  43. package/esm/ui/App/DialogQueue.d.ts +2 -2
  44. package/esm/ui/App/DialogQueue.js +3 -3
  45. package/esm/ui/App/DrawerHeader.js +2 -3
  46. package/esm/ui/App/ThemeModeButton.d.ts +12 -0
  47. package/esm/ui/App/ThemeModeButton.js +34 -0
  48. package/esm/ui/App/ViewButtons.js +2 -2
  49. package/esm/ui/App/ViewContainer.js +1 -17
  50. package/esm/ui/App/ViewContainerTitle.js +15 -12
  51. package/esm/ui/App/ViewLauncher.js +1 -1
  52. package/esm/ui/App/ViewMenu.js +2 -2
  53. package/esm/ui/App/ViewStack.js +7 -1
  54. package/esm/ui/App/ViewsContainer.d.ts +2 -4
  55. package/esm/ui/App/ViewsContainer.js +3 -9
  56. package/esm/ui/App/index.d.ts +1 -1
  57. package/esm/ui/App/index.js +1 -1
  58. package/esm/ui/App/lazyParts.d.ts +32 -0
  59. package/esm/ui/App/lazyParts.js +8 -0
  60. package/esm/ui/App/preloadAppShell.d.ts +14 -0
  61. package/esm/ui/App/preloadAppShell.js +41 -0
  62. package/esm/ui/App/types.d.ts +12 -7
  63. package/esm/ui/App/useViewVisibility.d.ts +9 -8
  64. package/esm/ui/App/useViewVisibility.js +11 -10
  65. package/esm/ui/App/viewTitle.d.ts +10 -3
  66. package/esm/ui/App/viewTitle.js +13 -5
  67. package/esm/ui/index.d.ts +1 -1
  68. package/esm/ui/index.js +1 -1
  69. package/package.json +7 -7
  70. package/esm/ui/App/AppReadyMarker.d.ts +0 -34
  71. package/esm/ui/App/AppReadyMarker.js +0 -56
  72. package/esm/ui/App/DrawerControls.d.ts +0 -1
  73. package/esm/ui/App/DrawerControls.js +0 -1
  74. package/esm/ui/App/copyView.d.ts +0 -1
  75. package/esm/ui/App/copyView.js +0 -29
@@ -0,0 +1,2767 @@
1
+ import { getConf, readConfObject } from '@jbrowse/core/configuration';
2
+ import * as mst from '@jbrowse/mobx-state-tree';
3
+ import * as mobx from 'mobx';
4
+ import type { ViewSpec } from '../SessionSpec/index.ts';
5
+ import type PluginManager from '@jbrowse/core/PluginManager';
6
+ import type { AnyConfigurationModel, ShorthandForm } from '@jbrowse/core/configuration';
7
+ import type { AbstractSessionModel, AbstractViewModel } from '@jbrowse/core/util/types';
8
+ import type { IStateTreeNode } from '@jbrowse/mobx-state-tree';
9
+ /**
10
+ * What jb.getFeatures may pull before it refuses. An explicit request wins so
11
+ * an agent can mean it; otherwise the adapter's own declared limit, so this
12
+ * does not disagree with the size the track's display already refuses to
13
+ * render; otherwise the default.
14
+ */
15
+ export declare function agentByteLimit(declaredFetchSizeLimit: unknown, requested?: number): number;
16
+ interface DisplaySelf {
17
+ type: string;
18
+ configuration: AnyConfigurationModel;
19
+ displayPhase?: string;
20
+ regionTooLargeReason?: string;
21
+ height?: number;
22
+ error?: unknown;
23
+ renderError?: unknown;
24
+ notices?: readonly string[];
25
+ }
26
+ interface TrackSelf extends IStateTreeNode {
27
+ type: string;
28
+ configuration: AnyConfigurationModel & {
29
+ trackId: string;
30
+ };
31
+ activeDisplay?: Record<string, unknown> & DisplaySelf;
32
+ }
33
+ export declare function sessionOf(pluginManager: PluginManager | undefined): AbstractSessionModel | undefined;
34
+ export declare function safeJson(value: unknown): string;
35
+ export declare function undeliveredNotifications(session: AbstractSessionModel): {
36
+ level: string;
37
+ message: string;
38
+ }[];
39
+ export declare function waitReady(timeoutMs: number, session?: AbstractSessionModel, root?: ParentNode): Promise<{
40
+ drawer: {
41
+ widget: string | undefined;
42
+ width?: number | undefined;
43
+ note: string;
44
+ };
45
+ dialog: {
46
+ note: string;
47
+ };
48
+ settled: boolean;
49
+ notifications?: {
50
+ level: string;
51
+ message: string;
52
+ }[] | undefined;
53
+ notReady?: ({
54
+ error: string;
55
+ phase?: undefined;
56
+ reason?: undefined;
57
+ viewId: string;
58
+ type: string;
59
+ } | {
60
+ error?: undefined;
61
+ phase: string;
62
+ reason?: undefined;
63
+ viewId: string;
64
+ type: string;
65
+ } | {
66
+ error?: undefined;
67
+ phase?: undefined;
68
+ reason?: undefined;
69
+ viewId: string;
70
+ type: string;
71
+ } | {
72
+ error?: undefined;
73
+ phase: string;
74
+ reason: string;
75
+ viewId: string;
76
+ type: string;
77
+ } | ({
78
+ trackId: string;
79
+ } & Record<"error", unknown>) | ({
80
+ trackId: string;
81
+ } & Record<"notices", unknown>) | ({
82
+ trackId: string;
83
+ } & Record<"phase", unknown>))[] | undefined;
84
+ offscreen?: {
85
+ pageHeight: number;
86
+ windowHeight: number;
87
+ scrollY: number;
88
+ views: {
89
+ viewId: string;
90
+ top: number;
91
+ bottom: number;
92
+ }[];
93
+ note: string;
94
+ } | undefined;
95
+ } | {
96
+ drawer: {
97
+ widget: string | undefined;
98
+ width?: number | undefined;
99
+ note: string;
100
+ };
101
+ dialog?: undefined;
102
+ settled: boolean;
103
+ notifications?: {
104
+ level: string;
105
+ message: string;
106
+ }[] | undefined;
107
+ notReady?: ({
108
+ error: string;
109
+ phase?: undefined;
110
+ reason?: undefined;
111
+ viewId: string;
112
+ type: string;
113
+ } | {
114
+ error?: undefined;
115
+ phase: string;
116
+ reason?: undefined;
117
+ viewId: string;
118
+ type: string;
119
+ } | {
120
+ error?: undefined;
121
+ phase?: undefined;
122
+ reason?: undefined;
123
+ viewId: string;
124
+ type: string;
125
+ } | {
126
+ error?: undefined;
127
+ phase: string;
128
+ reason: string;
129
+ viewId: string;
130
+ type: string;
131
+ } | ({
132
+ trackId: string;
133
+ } & Record<"error", unknown>) | ({
134
+ trackId: string;
135
+ } & Record<"notices", unknown>) | ({
136
+ trackId: string;
137
+ } & Record<"phase", unknown>))[] | undefined;
138
+ offscreen?: {
139
+ pageHeight: number;
140
+ windowHeight: number;
141
+ scrollY: number;
142
+ views: {
143
+ viewId: string;
144
+ top: number;
145
+ bottom: number;
146
+ }[];
147
+ note: string;
148
+ } | undefined;
149
+ } | {
150
+ drawer?: undefined;
151
+ dialog: {
152
+ note: string;
153
+ };
154
+ settled: boolean;
155
+ notifications?: {
156
+ level: string;
157
+ message: string;
158
+ }[] | undefined;
159
+ notReady?: ({
160
+ error: string;
161
+ phase?: undefined;
162
+ reason?: undefined;
163
+ viewId: string;
164
+ type: string;
165
+ } | {
166
+ error?: undefined;
167
+ phase: string;
168
+ reason?: undefined;
169
+ viewId: string;
170
+ type: string;
171
+ } | {
172
+ error?: undefined;
173
+ phase?: undefined;
174
+ reason?: undefined;
175
+ viewId: string;
176
+ type: string;
177
+ } | {
178
+ error?: undefined;
179
+ phase: string;
180
+ reason: string;
181
+ viewId: string;
182
+ type: string;
183
+ } | ({
184
+ trackId: string;
185
+ } & Record<"error", unknown>) | ({
186
+ trackId: string;
187
+ } & Record<"notices", unknown>) | ({
188
+ trackId: string;
189
+ } & Record<"phase", unknown>))[] | undefined;
190
+ offscreen?: {
191
+ pageHeight: number;
192
+ windowHeight: number;
193
+ scrollY: number;
194
+ views: {
195
+ viewId: string;
196
+ top: number;
197
+ bottom: number;
198
+ }[];
199
+ note: string;
200
+ } | undefined;
201
+ } | {
202
+ drawer?: undefined;
203
+ dialog?: undefined;
204
+ settled: boolean;
205
+ notifications?: {
206
+ level: string;
207
+ message: string;
208
+ }[] | undefined;
209
+ notReady?: ({
210
+ error: string;
211
+ phase?: undefined;
212
+ reason?: undefined;
213
+ viewId: string;
214
+ type: string;
215
+ } | {
216
+ error?: undefined;
217
+ phase: string;
218
+ reason?: undefined;
219
+ viewId: string;
220
+ type: string;
221
+ } | {
222
+ error?: undefined;
223
+ phase?: undefined;
224
+ reason?: undefined;
225
+ viewId: string;
226
+ type: string;
227
+ } | {
228
+ error?: undefined;
229
+ phase: string;
230
+ reason: string;
231
+ viewId: string;
232
+ type: string;
233
+ } | ({
234
+ trackId: string;
235
+ } & Record<"error", unknown>) | ({
236
+ trackId: string;
237
+ } & Record<"notices", unknown>) | ({
238
+ trackId: string;
239
+ } & Record<"phase", unknown>))[] | undefined;
240
+ offscreen?: {
241
+ pageHeight: number;
242
+ windowHeight: number;
243
+ scrollY: number;
244
+ views: {
245
+ viewId: string;
246
+ top: number;
247
+ bottom: number;
248
+ }[];
249
+ note: string;
250
+ } | undefined;
251
+ } | {
252
+ drawer: {
253
+ widget: string | undefined;
254
+ width?: number | undefined;
255
+ note: string;
256
+ };
257
+ dialog: {
258
+ note: string;
259
+ };
260
+ settled: boolean;
261
+ note: string;
262
+ notifications?: {
263
+ level: string;
264
+ message: string;
265
+ }[] | undefined;
266
+ notReady?: ({
267
+ error: string;
268
+ phase?: undefined;
269
+ reason?: undefined;
270
+ viewId: string;
271
+ type: string;
272
+ } | {
273
+ error?: undefined;
274
+ phase: string;
275
+ reason?: undefined;
276
+ viewId: string;
277
+ type: string;
278
+ } | {
279
+ error?: undefined;
280
+ phase?: undefined;
281
+ reason?: undefined;
282
+ viewId: string;
283
+ type: string;
284
+ } | {
285
+ error?: undefined;
286
+ phase: string;
287
+ reason: string;
288
+ viewId: string;
289
+ type: string;
290
+ } | ({
291
+ trackId: string;
292
+ } & Record<"error", unknown>) | ({
293
+ trackId: string;
294
+ } & Record<"notices", unknown>) | ({
295
+ trackId: string;
296
+ } & Record<"phase", unknown>))[] | undefined;
297
+ offscreen?: {
298
+ pageHeight: number;
299
+ windowHeight: number;
300
+ scrollY: number;
301
+ views: {
302
+ viewId: string;
303
+ top: number;
304
+ bottom: number;
305
+ }[];
306
+ note: string;
307
+ } | undefined;
308
+ } | {
309
+ drawer: {
310
+ widget: string | undefined;
311
+ width?: number | undefined;
312
+ note: string;
313
+ };
314
+ dialog?: undefined;
315
+ settled: boolean;
316
+ note: string;
317
+ notifications?: {
318
+ level: string;
319
+ message: string;
320
+ }[] | undefined;
321
+ notReady?: ({
322
+ error: string;
323
+ phase?: undefined;
324
+ reason?: undefined;
325
+ viewId: string;
326
+ type: string;
327
+ } | {
328
+ error?: undefined;
329
+ phase: string;
330
+ reason?: undefined;
331
+ viewId: string;
332
+ type: string;
333
+ } | {
334
+ error?: undefined;
335
+ phase?: undefined;
336
+ reason?: undefined;
337
+ viewId: string;
338
+ type: string;
339
+ } | {
340
+ error?: undefined;
341
+ phase: string;
342
+ reason: string;
343
+ viewId: string;
344
+ type: string;
345
+ } | ({
346
+ trackId: string;
347
+ } & Record<"error", unknown>) | ({
348
+ trackId: string;
349
+ } & Record<"notices", unknown>) | ({
350
+ trackId: string;
351
+ } & Record<"phase", unknown>))[] | undefined;
352
+ offscreen?: {
353
+ pageHeight: number;
354
+ windowHeight: number;
355
+ scrollY: number;
356
+ views: {
357
+ viewId: string;
358
+ top: number;
359
+ bottom: number;
360
+ }[];
361
+ note: string;
362
+ } | undefined;
363
+ } | {
364
+ drawer?: undefined;
365
+ dialog: {
366
+ note: string;
367
+ };
368
+ settled: boolean;
369
+ note: string;
370
+ notifications?: {
371
+ level: string;
372
+ message: string;
373
+ }[] | undefined;
374
+ notReady?: ({
375
+ error: string;
376
+ phase?: undefined;
377
+ reason?: undefined;
378
+ viewId: string;
379
+ type: string;
380
+ } | {
381
+ error?: undefined;
382
+ phase: string;
383
+ reason?: undefined;
384
+ viewId: string;
385
+ type: string;
386
+ } | {
387
+ error?: undefined;
388
+ phase?: undefined;
389
+ reason?: undefined;
390
+ viewId: string;
391
+ type: string;
392
+ } | {
393
+ error?: undefined;
394
+ phase: string;
395
+ reason: string;
396
+ viewId: string;
397
+ type: string;
398
+ } | ({
399
+ trackId: string;
400
+ } & Record<"error", unknown>) | ({
401
+ trackId: string;
402
+ } & Record<"notices", unknown>) | ({
403
+ trackId: string;
404
+ } & Record<"phase", unknown>))[] | undefined;
405
+ offscreen?: {
406
+ pageHeight: number;
407
+ windowHeight: number;
408
+ scrollY: number;
409
+ views: {
410
+ viewId: string;
411
+ top: number;
412
+ bottom: number;
413
+ }[];
414
+ note: string;
415
+ } | undefined;
416
+ } | {
417
+ drawer?: undefined;
418
+ dialog?: undefined;
419
+ settled: boolean;
420
+ note: string;
421
+ notifications?: {
422
+ level: string;
423
+ message: string;
424
+ }[] | undefined;
425
+ notReady?: ({
426
+ error: string;
427
+ phase?: undefined;
428
+ reason?: undefined;
429
+ viewId: string;
430
+ type: string;
431
+ } | {
432
+ error?: undefined;
433
+ phase: string;
434
+ reason?: undefined;
435
+ viewId: string;
436
+ type: string;
437
+ } | {
438
+ error?: undefined;
439
+ phase?: undefined;
440
+ reason?: undefined;
441
+ viewId: string;
442
+ type: string;
443
+ } | {
444
+ error?: undefined;
445
+ phase: string;
446
+ reason: string;
447
+ viewId: string;
448
+ type: string;
449
+ } | ({
450
+ trackId: string;
451
+ } & Record<"error", unknown>) | ({
452
+ trackId: string;
453
+ } & Record<"notices", unknown>) | ({
454
+ trackId: string;
455
+ } & Record<"phase", unknown>))[] | undefined;
456
+ offscreen?: {
457
+ pageHeight: number;
458
+ windowHeight: number;
459
+ scrollY: number;
460
+ views: {
461
+ viewId: string;
462
+ top: number;
463
+ bottom: number;
464
+ }[];
465
+ note: string;
466
+ } | undefined;
467
+ }>;
468
+ interface JbRegion {
469
+ refName: string;
470
+ start: number;
471
+ end: number;
472
+ assemblyName: string;
473
+ }
474
+ /**
475
+ * One place, as `loc` takes it: a locstring, or the object shape every other
476
+ * region on this surface has — `jb.visibleRegions`' answer, a feature's own
477
+ * coordinates — which used to reach `parseLocString` and die there with
478
+ * "endsWith is not a function". Several places are `regions`.
479
+ */
480
+ export type JbLoc = string | {
481
+ refName: string;
482
+ start?: number;
483
+ end?: number;
484
+ assemblyName?: string;
485
+ };
486
+ interface SlotDescription {
487
+ type: string;
488
+ description?: string;
489
+ defaultValue?: unknown;
490
+ /** a nested object's own slots, and the slot a bare string or number lifts into */
491
+ slots?: Record<string, SlotDescription>;
492
+ shorthand?: Partial<Record<ShorthandForm, string>>;
493
+ /** a list's entry: one object's slots, or under `oneOf` each `type` a union list takes */
494
+ items?: SlotDescription;
495
+ oneOf?: Record<string, SlotDescription>;
496
+ }
497
+ declare function describeSlots(confOrType: AnyConfigurationModel | mst.IAnyType): Record<string, SlotDescription>;
498
+ export declare function ensureReExports(): Promise<void>;
499
+ export interface JbApiOptions {
500
+ /**
501
+ * Told about every notification a settle inside this object consumed.
502
+ *
503
+ * A toast is delivered to a caller once, by identity, so a settle is a
504
+ * CONSUMER: `await jb.waitReady(...)` followed by `return 'ok'` used to drop
505
+ * whatever fired during the call, while the MCP envelope goes on promising
506
+ * that every result carries the session's notifications. Desktop passes a
507
+ * sink and merges what it collects into the envelope; jbrowse-web passes
508
+ * none, because in a browser the settle result IS where an agent reads them.
509
+ */
510
+ onNotifications?: (notifications: {
511
+ level: string;
512
+ message: string;
513
+ }[]) => void;
514
+ }
515
+ export declare function createJbApi(pluginManager: PluginManager, options?: JbApiOptions): {
516
+ help: string;
517
+ readonly session: AbstractSessionModel;
518
+ readonly rootModel: import("@jbrowse/core/util").AbstractRootModel | undefined;
519
+ require: (lib: string | ((...args: any) => any) | {
520
+ default: (...args: any) => any;
521
+ }) => any;
522
+ ensureRequire: typeof ensureReExports;
523
+ mst: typeof mst;
524
+ mobx: typeof mobx;
525
+ readConfObject: typeof readConfObject;
526
+ getConf: typeof getConf;
527
+ describeSlots: typeof describeSlots;
528
+ waitReady: (timeoutMs?: number) => Promise<{
529
+ drawer: {
530
+ widget: string | undefined;
531
+ width?: number | undefined;
532
+ note: string;
533
+ };
534
+ dialog: {
535
+ note: string;
536
+ };
537
+ settled: boolean;
538
+ notifications?: {
539
+ level: string;
540
+ message: string;
541
+ }[] | undefined;
542
+ notReady?: ({
543
+ error: string;
544
+ phase?: undefined;
545
+ reason?: undefined;
546
+ viewId: string;
547
+ type: string;
548
+ } | {
549
+ error?: undefined;
550
+ phase: string;
551
+ reason?: undefined;
552
+ viewId: string;
553
+ type: string;
554
+ } | {
555
+ error?: undefined;
556
+ phase?: undefined;
557
+ reason?: undefined;
558
+ viewId: string;
559
+ type: string;
560
+ } | {
561
+ error?: undefined;
562
+ phase: string;
563
+ reason: string;
564
+ viewId: string;
565
+ type: string;
566
+ } | ({
567
+ trackId: string;
568
+ } & Record<"error", unknown>) | ({
569
+ trackId: string;
570
+ } & Record<"notices", unknown>) | ({
571
+ trackId: string;
572
+ } & Record<"phase", unknown>))[] | undefined;
573
+ offscreen?: {
574
+ pageHeight: number;
575
+ windowHeight: number;
576
+ scrollY: number;
577
+ views: {
578
+ viewId: string;
579
+ top: number;
580
+ bottom: number;
581
+ }[];
582
+ note: string;
583
+ } | undefined;
584
+ } | {
585
+ drawer: {
586
+ widget: string | undefined;
587
+ width?: number | undefined;
588
+ note: string;
589
+ };
590
+ dialog?: undefined;
591
+ settled: boolean;
592
+ notifications?: {
593
+ level: string;
594
+ message: string;
595
+ }[] | undefined;
596
+ notReady?: ({
597
+ error: string;
598
+ phase?: undefined;
599
+ reason?: undefined;
600
+ viewId: string;
601
+ type: string;
602
+ } | {
603
+ error?: undefined;
604
+ phase: string;
605
+ reason?: undefined;
606
+ viewId: string;
607
+ type: string;
608
+ } | {
609
+ error?: undefined;
610
+ phase?: undefined;
611
+ reason?: undefined;
612
+ viewId: string;
613
+ type: string;
614
+ } | {
615
+ error?: undefined;
616
+ phase: string;
617
+ reason: string;
618
+ viewId: string;
619
+ type: string;
620
+ } | ({
621
+ trackId: string;
622
+ } & Record<"error", unknown>) | ({
623
+ trackId: string;
624
+ } & Record<"notices", unknown>) | ({
625
+ trackId: string;
626
+ } & Record<"phase", unknown>))[] | undefined;
627
+ offscreen?: {
628
+ pageHeight: number;
629
+ windowHeight: number;
630
+ scrollY: number;
631
+ views: {
632
+ viewId: string;
633
+ top: number;
634
+ bottom: number;
635
+ }[];
636
+ note: string;
637
+ } | undefined;
638
+ } | {
639
+ drawer?: undefined;
640
+ dialog: {
641
+ note: string;
642
+ };
643
+ settled: boolean;
644
+ notifications?: {
645
+ level: string;
646
+ message: string;
647
+ }[] | undefined;
648
+ notReady?: ({
649
+ error: string;
650
+ phase?: undefined;
651
+ reason?: undefined;
652
+ viewId: string;
653
+ type: string;
654
+ } | {
655
+ error?: undefined;
656
+ phase: string;
657
+ reason?: undefined;
658
+ viewId: string;
659
+ type: string;
660
+ } | {
661
+ error?: undefined;
662
+ phase?: undefined;
663
+ reason?: undefined;
664
+ viewId: string;
665
+ type: string;
666
+ } | {
667
+ error?: undefined;
668
+ phase: string;
669
+ reason: string;
670
+ viewId: string;
671
+ type: string;
672
+ } | ({
673
+ trackId: string;
674
+ } & Record<"error", unknown>) | ({
675
+ trackId: string;
676
+ } & Record<"notices", unknown>) | ({
677
+ trackId: string;
678
+ } & Record<"phase", unknown>))[] | undefined;
679
+ offscreen?: {
680
+ pageHeight: number;
681
+ windowHeight: number;
682
+ scrollY: number;
683
+ views: {
684
+ viewId: string;
685
+ top: number;
686
+ bottom: number;
687
+ }[];
688
+ note: string;
689
+ } | undefined;
690
+ } | {
691
+ drawer?: undefined;
692
+ dialog?: undefined;
693
+ settled: boolean;
694
+ notifications?: {
695
+ level: string;
696
+ message: string;
697
+ }[] | undefined;
698
+ notReady?: ({
699
+ error: string;
700
+ phase?: undefined;
701
+ reason?: undefined;
702
+ viewId: string;
703
+ type: string;
704
+ } | {
705
+ error?: undefined;
706
+ phase: string;
707
+ reason?: undefined;
708
+ viewId: string;
709
+ type: string;
710
+ } | {
711
+ error?: undefined;
712
+ phase?: undefined;
713
+ reason?: undefined;
714
+ viewId: string;
715
+ type: string;
716
+ } | {
717
+ error?: undefined;
718
+ phase: string;
719
+ reason: string;
720
+ viewId: string;
721
+ type: string;
722
+ } | ({
723
+ trackId: string;
724
+ } & Record<"error", unknown>) | ({
725
+ trackId: string;
726
+ } & Record<"notices", unknown>) | ({
727
+ trackId: string;
728
+ } & Record<"phase", unknown>))[] | undefined;
729
+ offscreen?: {
730
+ pageHeight: number;
731
+ windowHeight: number;
732
+ scrollY: number;
733
+ views: {
734
+ viewId: string;
735
+ top: number;
736
+ bottom: number;
737
+ }[];
738
+ note: string;
739
+ } | undefined;
740
+ } | {
741
+ drawer: {
742
+ widget: string | undefined;
743
+ width?: number | undefined;
744
+ note: string;
745
+ };
746
+ dialog: {
747
+ note: string;
748
+ };
749
+ settled: boolean;
750
+ note: string;
751
+ notifications?: {
752
+ level: string;
753
+ message: string;
754
+ }[] | undefined;
755
+ notReady?: ({
756
+ error: string;
757
+ phase?: undefined;
758
+ reason?: undefined;
759
+ viewId: string;
760
+ type: string;
761
+ } | {
762
+ error?: undefined;
763
+ phase: string;
764
+ reason?: undefined;
765
+ viewId: string;
766
+ type: string;
767
+ } | {
768
+ error?: undefined;
769
+ phase?: undefined;
770
+ reason?: undefined;
771
+ viewId: string;
772
+ type: string;
773
+ } | {
774
+ error?: undefined;
775
+ phase: string;
776
+ reason: string;
777
+ viewId: string;
778
+ type: string;
779
+ } | ({
780
+ trackId: string;
781
+ } & Record<"error", unknown>) | ({
782
+ trackId: string;
783
+ } & Record<"notices", unknown>) | ({
784
+ trackId: string;
785
+ } & Record<"phase", unknown>))[] | undefined;
786
+ offscreen?: {
787
+ pageHeight: number;
788
+ windowHeight: number;
789
+ scrollY: number;
790
+ views: {
791
+ viewId: string;
792
+ top: number;
793
+ bottom: number;
794
+ }[];
795
+ note: string;
796
+ } | undefined;
797
+ } | {
798
+ drawer: {
799
+ widget: string | undefined;
800
+ width?: number | undefined;
801
+ note: string;
802
+ };
803
+ dialog?: undefined;
804
+ settled: boolean;
805
+ note: string;
806
+ notifications?: {
807
+ level: string;
808
+ message: string;
809
+ }[] | undefined;
810
+ notReady?: ({
811
+ error: string;
812
+ phase?: undefined;
813
+ reason?: undefined;
814
+ viewId: string;
815
+ type: string;
816
+ } | {
817
+ error?: undefined;
818
+ phase: string;
819
+ reason?: undefined;
820
+ viewId: string;
821
+ type: string;
822
+ } | {
823
+ error?: undefined;
824
+ phase?: undefined;
825
+ reason?: undefined;
826
+ viewId: string;
827
+ type: string;
828
+ } | {
829
+ error?: undefined;
830
+ phase: string;
831
+ reason: string;
832
+ viewId: string;
833
+ type: string;
834
+ } | ({
835
+ trackId: string;
836
+ } & Record<"error", unknown>) | ({
837
+ trackId: string;
838
+ } & Record<"notices", unknown>) | ({
839
+ trackId: string;
840
+ } & Record<"phase", unknown>))[] | undefined;
841
+ offscreen?: {
842
+ pageHeight: number;
843
+ windowHeight: number;
844
+ scrollY: number;
845
+ views: {
846
+ viewId: string;
847
+ top: number;
848
+ bottom: number;
849
+ }[];
850
+ note: string;
851
+ } | undefined;
852
+ } | {
853
+ drawer?: undefined;
854
+ dialog: {
855
+ note: string;
856
+ };
857
+ settled: boolean;
858
+ note: string;
859
+ notifications?: {
860
+ level: string;
861
+ message: string;
862
+ }[] | undefined;
863
+ notReady?: ({
864
+ error: string;
865
+ phase?: undefined;
866
+ reason?: undefined;
867
+ viewId: string;
868
+ type: string;
869
+ } | {
870
+ error?: undefined;
871
+ phase: string;
872
+ reason?: undefined;
873
+ viewId: string;
874
+ type: string;
875
+ } | {
876
+ error?: undefined;
877
+ phase?: undefined;
878
+ reason?: undefined;
879
+ viewId: string;
880
+ type: string;
881
+ } | {
882
+ error?: undefined;
883
+ phase: string;
884
+ reason: string;
885
+ viewId: string;
886
+ type: string;
887
+ } | ({
888
+ trackId: string;
889
+ } & Record<"error", unknown>) | ({
890
+ trackId: string;
891
+ } & Record<"notices", unknown>) | ({
892
+ trackId: string;
893
+ } & Record<"phase", unknown>))[] | undefined;
894
+ offscreen?: {
895
+ pageHeight: number;
896
+ windowHeight: number;
897
+ scrollY: number;
898
+ views: {
899
+ viewId: string;
900
+ top: number;
901
+ bottom: number;
902
+ }[];
903
+ note: string;
904
+ } | undefined;
905
+ } | {
906
+ drawer?: undefined;
907
+ dialog?: undefined;
908
+ settled: boolean;
909
+ note: string;
910
+ notifications?: {
911
+ level: string;
912
+ message: string;
913
+ }[] | undefined;
914
+ notReady?: ({
915
+ error: string;
916
+ phase?: undefined;
917
+ reason?: undefined;
918
+ viewId: string;
919
+ type: string;
920
+ } | {
921
+ error?: undefined;
922
+ phase: string;
923
+ reason?: undefined;
924
+ viewId: string;
925
+ type: string;
926
+ } | {
927
+ error?: undefined;
928
+ phase?: undefined;
929
+ reason?: undefined;
930
+ viewId: string;
931
+ type: string;
932
+ } | {
933
+ error?: undefined;
934
+ phase: string;
935
+ reason: string;
936
+ viewId: string;
937
+ type: string;
938
+ } | ({
939
+ trackId: string;
940
+ } & Record<"error", unknown>) | ({
941
+ trackId: string;
942
+ } & Record<"notices", unknown>) | ({
943
+ trackId: string;
944
+ } & Record<"phase", unknown>))[] | undefined;
945
+ offscreen?: {
946
+ pageHeight: number;
947
+ windowHeight: number;
948
+ scrollY: number;
949
+ views: {
950
+ viewId: string;
951
+ top: number;
952
+ bottom: number;
953
+ }[];
954
+ note: string;
955
+ } | undefined;
956
+ }>;
957
+ sessionSummary: () => {
958
+ drawer: {
959
+ widget: string | undefined;
960
+ width?: number | undefined;
961
+ note: string;
962
+ };
963
+ dialog: {
964
+ note: string;
965
+ };
966
+ name: string;
967
+ assemblyNames: string[];
968
+ views: Record<string, unknown>[];
969
+ } | {
970
+ drawer: {
971
+ widget: string | undefined;
972
+ width?: number | undefined;
973
+ note: string;
974
+ };
975
+ dialog?: undefined;
976
+ name: string;
977
+ assemblyNames: string[];
978
+ views: Record<string, unknown>[];
979
+ } | {
980
+ drawer?: undefined;
981
+ dialog: {
982
+ note: string;
983
+ };
984
+ name: string;
985
+ assemblyNames: string[];
986
+ views: Record<string, unknown>[];
987
+ } | {
988
+ drawer?: undefined;
989
+ dialog?: undefined;
990
+ name: string;
991
+ assemblyNames: string[];
992
+ views: Record<string, unknown>[];
993
+ };
994
+ inspect: (target?: unknown, maxInspectBytes?: number) => {
995
+ modelType?: string | undefined;
996
+ bytes: number;
997
+ getters?: string[] | undefined;
998
+ actions?: string[] | undefined;
999
+ value: unknown;
1000
+ } | {
1001
+ modelType?: string | undefined;
1002
+ bytes: number;
1003
+ getters?: string[] | undefined;
1004
+ actions?: string[] | undefined;
1005
+ note: string;
1006
+ items: string[];
1007
+ } | {
1008
+ modelType?: string | undefined;
1009
+ bytes: number;
1010
+ getters?: string[] | undefined;
1011
+ actions?: string[] | undefined;
1012
+ note: string;
1013
+ keys: {
1014
+ [k: string]: string;
1015
+ };
1016
+ };
1017
+ listTracks: (search?: string, limit?: number) => {
1018
+ total: number;
1019
+ note?: string | undefined;
1020
+ tracks: {
1021
+ trackId: string;
1022
+ name: string;
1023
+ type: string;
1024
+ assemblyNames: string[];
1025
+ }[];
1026
+ };
1027
+ view: (viewId?: string) => AbstractViewModel;
1028
+ trackModel: (trackId: string, viewId?: string) => TrackSelf;
1029
+ visibleRegions: (viewId?: string) => Promise<JbRegion[]>;
1030
+ loadSessionSpec: (spec: Record<string, unknown>, settleMs?: number) => Promise<{
1031
+ drawer: {
1032
+ widget: string | undefined;
1033
+ width?: number | undefined;
1034
+ note: string;
1035
+ };
1036
+ dialog: {
1037
+ note: string;
1038
+ };
1039
+ settled: boolean;
1040
+ notifications?: {
1041
+ level: string;
1042
+ message: string;
1043
+ }[] | undefined;
1044
+ notReady?: ({
1045
+ error: string;
1046
+ phase?: undefined;
1047
+ reason?: undefined;
1048
+ viewId: string;
1049
+ type: string;
1050
+ } | {
1051
+ error?: undefined;
1052
+ phase: string;
1053
+ reason?: undefined;
1054
+ viewId: string;
1055
+ type: string;
1056
+ } | {
1057
+ error?: undefined;
1058
+ phase?: undefined;
1059
+ reason?: undefined;
1060
+ viewId: string;
1061
+ type: string;
1062
+ } | {
1063
+ error?: undefined;
1064
+ phase: string;
1065
+ reason: string;
1066
+ viewId: string;
1067
+ type: string;
1068
+ } | ({
1069
+ trackId: string;
1070
+ } & Record<"error", unknown>) | ({
1071
+ trackId: string;
1072
+ } & Record<"notices", unknown>) | ({
1073
+ trackId: string;
1074
+ } & Record<"phase", unknown>))[] | undefined;
1075
+ offscreen?: {
1076
+ pageHeight: number;
1077
+ windowHeight: number;
1078
+ scrollY: number;
1079
+ views: {
1080
+ viewId: string;
1081
+ top: number;
1082
+ bottom: number;
1083
+ }[];
1084
+ note: string;
1085
+ } | undefined;
1086
+ session?: {
1087
+ drawer: {
1088
+ widget: string | undefined;
1089
+ width?: number | undefined;
1090
+ note: string;
1091
+ };
1092
+ dialog: {
1093
+ note: string;
1094
+ };
1095
+ name: string;
1096
+ assemblyNames: string[];
1097
+ views: Record<string, unknown>[];
1098
+ } | {
1099
+ drawer: {
1100
+ widget: string | undefined;
1101
+ width?: number | undefined;
1102
+ note: string;
1103
+ };
1104
+ dialog?: undefined;
1105
+ name: string;
1106
+ assemblyNames: string[];
1107
+ views: Record<string, unknown>[];
1108
+ } | {
1109
+ drawer?: undefined;
1110
+ dialog: {
1111
+ note: string;
1112
+ };
1113
+ name: string;
1114
+ assemblyNames: string[];
1115
+ views: Record<string, unknown>[];
1116
+ } | {
1117
+ drawer?: undefined;
1118
+ dialog?: undefined;
1119
+ name: string;
1120
+ assemblyNames: string[];
1121
+ views: Record<string, unknown>[];
1122
+ } | undefined;
1123
+ } | {
1124
+ drawer: {
1125
+ widget: string | undefined;
1126
+ width?: number | undefined;
1127
+ note: string;
1128
+ };
1129
+ dialog?: undefined;
1130
+ settled: boolean;
1131
+ notifications?: {
1132
+ level: string;
1133
+ message: string;
1134
+ }[] | undefined;
1135
+ notReady?: ({
1136
+ error: string;
1137
+ phase?: undefined;
1138
+ reason?: undefined;
1139
+ viewId: string;
1140
+ type: string;
1141
+ } | {
1142
+ error?: undefined;
1143
+ phase: string;
1144
+ reason?: undefined;
1145
+ viewId: string;
1146
+ type: string;
1147
+ } | {
1148
+ error?: undefined;
1149
+ phase?: undefined;
1150
+ reason?: undefined;
1151
+ viewId: string;
1152
+ type: string;
1153
+ } | {
1154
+ error?: undefined;
1155
+ phase: string;
1156
+ reason: string;
1157
+ viewId: string;
1158
+ type: string;
1159
+ } | ({
1160
+ trackId: string;
1161
+ } & Record<"error", unknown>) | ({
1162
+ trackId: string;
1163
+ } & Record<"notices", unknown>) | ({
1164
+ trackId: string;
1165
+ } & Record<"phase", unknown>))[] | undefined;
1166
+ offscreen?: {
1167
+ pageHeight: number;
1168
+ windowHeight: number;
1169
+ scrollY: number;
1170
+ views: {
1171
+ viewId: string;
1172
+ top: number;
1173
+ bottom: number;
1174
+ }[];
1175
+ note: string;
1176
+ } | undefined;
1177
+ session?: {
1178
+ drawer: {
1179
+ widget: string | undefined;
1180
+ width?: number | undefined;
1181
+ note: string;
1182
+ };
1183
+ dialog: {
1184
+ note: string;
1185
+ };
1186
+ name: string;
1187
+ assemblyNames: string[];
1188
+ views: Record<string, unknown>[];
1189
+ } | {
1190
+ drawer: {
1191
+ widget: string | undefined;
1192
+ width?: number | undefined;
1193
+ note: string;
1194
+ };
1195
+ dialog?: undefined;
1196
+ name: string;
1197
+ assemblyNames: string[];
1198
+ views: Record<string, unknown>[];
1199
+ } | {
1200
+ drawer?: undefined;
1201
+ dialog: {
1202
+ note: string;
1203
+ };
1204
+ name: string;
1205
+ assemblyNames: string[];
1206
+ views: Record<string, unknown>[];
1207
+ } | {
1208
+ drawer?: undefined;
1209
+ dialog?: undefined;
1210
+ name: string;
1211
+ assemblyNames: string[];
1212
+ views: Record<string, unknown>[];
1213
+ } | undefined;
1214
+ } | {
1215
+ drawer?: undefined;
1216
+ dialog: {
1217
+ note: string;
1218
+ };
1219
+ settled: boolean;
1220
+ notifications?: {
1221
+ level: string;
1222
+ message: string;
1223
+ }[] | undefined;
1224
+ notReady?: ({
1225
+ error: string;
1226
+ phase?: undefined;
1227
+ reason?: undefined;
1228
+ viewId: string;
1229
+ type: string;
1230
+ } | {
1231
+ error?: undefined;
1232
+ phase: string;
1233
+ reason?: undefined;
1234
+ viewId: string;
1235
+ type: string;
1236
+ } | {
1237
+ error?: undefined;
1238
+ phase?: undefined;
1239
+ reason?: undefined;
1240
+ viewId: string;
1241
+ type: string;
1242
+ } | {
1243
+ error?: undefined;
1244
+ phase: string;
1245
+ reason: string;
1246
+ viewId: string;
1247
+ type: string;
1248
+ } | ({
1249
+ trackId: string;
1250
+ } & Record<"error", unknown>) | ({
1251
+ trackId: string;
1252
+ } & Record<"notices", unknown>) | ({
1253
+ trackId: string;
1254
+ } & Record<"phase", unknown>))[] | undefined;
1255
+ offscreen?: {
1256
+ pageHeight: number;
1257
+ windowHeight: number;
1258
+ scrollY: number;
1259
+ views: {
1260
+ viewId: string;
1261
+ top: number;
1262
+ bottom: number;
1263
+ }[];
1264
+ note: string;
1265
+ } | undefined;
1266
+ session?: {
1267
+ drawer: {
1268
+ widget: string | undefined;
1269
+ width?: number | undefined;
1270
+ note: string;
1271
+ };
1272
+ dialog: {
1273
+ note: string;
1274
+ };
1275
+ name: string;
1276
+ assemblyNames: string[];
1277
+ views: Record<string, unknown>[];
1278
+ } | {
1279
+ drawer: {
1280
+ widget: string | undefined;
1281
+ width?: number | undefined;
1282
+ note: string;
1283
+ };
1284
+ dialog?: undefined;
1285
+ name: string;
1286
+ assemblyNames: string[];
1287
+ views: Record<string, unknown>[];
1288
+ } | {
1289
+ drawer?: undefined;
1290
+ dialog: {
1291
+ note: string;
1292
+ };
1293
+ name: string;
1294
+ assemblyNames: string[];
1295
+ views: Record<string, unknown>[];
1296
+ } | {
1297
+ drawer?: undefined;
1298
+ dialog?: undefined;
1299
+ name: string;
1300
+ assemblyNames: string[];
1301
+ views: Record<string, unknown>[];
1302
+ } | undefined;
1303
+ } | {
1304
+ drawer?: undefined;
1305
+ dialog?: undefined;
1306
+ settled: boolean;
1307
+ notifications?: {
1308
+ level: string;
1309
+ message: string;
1310
+ }[] | undefined;
1311
+ notReady?: ({
1312
+ error: string;
1313
+ phase?: undefined;
1314
+ reason?: undefined;
1315
+ viewId: string;
1316
+ type: string;
1317
+ } | {
1318
+ error?: undefined;
1319
+ phase: string;
1320
+ reason?: undefined;
1321
+ viewId: string;
1322
+ type: string;
1323
+ } | {
1324
+ error?: undefined;
1325
+ phase?: undefined;
1326
+ reason?: undefined;
1327
+ viewId: string;
1328
+ type: string;
1329
+ } | {
1330
+ error?: undefined;
1331
+ phase: string;
1332
+ reason: string;
1333
+ viewId: string;
1334
+ type: string;
1335
+ } | ({
1336
+ trackId: string;
1337
+ } & Record<"error", unknown>) | ({
1338
+ trackId: string;
1339
+ } & Record<"notices", unknown>) | ({
1340
+ trackId: string;
1341
+ } & Record<"phase", unknown>))[] | undefined;
1342
+ offscreen?: {
1343
+ pageHeight: number;
1344
+ windowHeight: number;
1345
+ scrollY: number;
1346
+ views: {
1347
+ viewId: string;
1348
+ top: number;
1349
+ bottom: number;
1350
+ }[];
1351
+ note: string;
1352
+ } | undefined;
1353
+ session?: {
1354
+ drawer: {
1355
+ widget: string | undefined;
1356
+ width?: number | undefined;
1357
+ note: string;
1358
+ };
1359
+ dialog: {
1360
+ note: string;
1361
+ };
1362
+ name: string;
1363
+ assemblyNames: string[];
1364
+ views: Record<string, unknown>[];
1365
+ } | {
1366
+ drawer: {
1367
+ widget: string | undefined;
1368
+ width?: number | undefined;
1369
+ note: string;
1370
+ };
1371
+ dialog?: undefined;
1372
+ name: string;
1373
+ assemblyNames: string[];
1374
+ views: Record<string, unknown>[];
1375
+ } | {
1376
+ drawer?: undefined;
1377
+ dialog: {
1378
+ note: string;
1379
+ };
1380
+ name: string;
1381
+ assemblyNames: string[];
1382
+ views: Record<string, unknown>[];
1383
+ } | {
1384
+ drawer?: undefined;
1385
+ dialog?: undefined;
1386
+ name: string;
1387
+ assemblyNames: string[];
1388
+ views: Record<string, unknown>[];
1389
+ } | undefined;
1390
+ } | {
1391
+ drawer: {
1392
+ widget: string | undefined;
1393
+ width?: number | undefined;
1394
+ note: string;
1395
+ };
1396
+ dialog: {
1397
+ note: string;
1398
+ };
1399
+ settled: boolean;
1400
+ note: string;
1401
+ notifications?: {
1402
+ level: string;
1403
+ message: string;
1404
+ }[] | undefined;
1405
+ notReady?: ({
1406
+ error: string;
1407
+ phase?: undefined;
1408
+ reason?: undefined;
1409
+ viewId: string;
1410
+ type: string;
1411
+ } | {
1412
+ error?: undefined;
1413
+ phase: string;
1414
+ reason?: undefined;
1415
+ viewId: string;
1416
+ type: string;
1417
+ } | {
1418
+ error?: undefined;
1419
+ phase?: undefined;
1420
+ reason?: undefined;
1421
+ viewId: string;
1422
+ type: string;
1423
+ } | {
1424
+ error?: undefined;
1425
+ phase: string;
1426
+ reason: string;
1427
+ viewId: string;
1428
+ type: string;
1429
+ } | ({
1430
+ trackId: string;
1431
+ } & Record<"error", unknown>) | ({
1432
+ trackId: string;
1433
+ } & Record<"notices", unknown>) | ({
1434
+ trackId: string;
1435
+ } & Record<"phase", unknown>))[] | undefined;
1436
+ offscreen?: {
1437
+ pageHeight: number;
1438
+ windowHeight: number;
1439
+ scrollY: number;
1440
+ views: {
1441
+ viewId: string;
1442
+ top: number;
1443
+ bottom: number;
1444
+ }[];
1445
+ note: string;
1446
+ } | undefined;
1447
+ session?: {
1448
+ drawer: {
1449
+ widget: string | undefined;
1450
+ width?: number | undefined;
1451
+ note: string;
1452
+ };
1453
+ dialog: {
1454
+ note: string;
1455
+ };
1456
+ name: string;
1457
+ assemblyNames: string[];
1458
+ views: Record<string, unknown>[];
1459
+ } | {
1460
+ drawer: {
1461
+ widget: string | undefined;
1462
+ width?: number | undefined;
1463
+ note: string;
1464
+ };
1465
+ dialog?: undefined;
1466
+ name: string;
1467
+ assemblyNames: string[];
1468
+ views: Record<string, unknown>[];
1469
+ } | {
1470
+ drawer?: undefined;
1471
+ dialog: {
1472
+ note: string;
1473
+ };
1474
+ name: string;
1475
+ assemblyNames: string[];
1476
+ views: Record<string, unknown>[];
1477
+ } | {
1478
+ drawer?: undefined;
1479
+ dialog?: undefined;
1480
+ name: string;
1481
+ assemblyNames: string[];
1482
+ views: Record<string, unknown>[];
1483
+ } | undefined;
1484
+ } | {
1485
+ drawer: {
1486
+ widget: string | undefined;
1487
+ width?: number | undefined;
1488
+ note: string;
1489
+ };
1490
+ dialog?: undefined;
1491
+ settled: boolean;
1492
+ note: string;
1493
+ notifications?: {
1494
+ level: string;
1495
+ message: string;
1496
+ }[] | undefined;
1497
+ notReady?: ({
1498
+ error: string;
1499
+ phase?: undefined;
1500
+ reason?: undefined;
1501
+ viewId: string;
1502
+ type: string;
1503
+ } | {
1504
+ error?: undefined;
1505
+ phase: string;
1506
+ reason?: undefined;
1507
+ viewId: string;
1508
+ type: string;
1509
+ } | {
1510
+ error?: undefined;
1511
+ phase?: undefined;
1512
+ reason?: undefined;
1513
+ viewId: string;
1514
+ type: string;
1515
+ } | {
1516
+ error?: undefined;
1517
+ phase: string;
1518
+ reason: string;
1519
+ viewId: string;
1520
+ type: string;
1521
+ } | ({
1522
+ trackId: string;
1523
+ } & Record<"error", unknown>) | ({
1524
+ trackId: string;
1525
+ } & Record<"notices", unknown>) | ({
1526
+ trackId: string;
1527
+ } & Record<"phase", unknown>))[] | undefined;
1528
+ offscreen?: {
1529
+ pageHeight: number;
1530
+ windowHeight: number;
1531
+ scrollY: number;
1532
+ views: {
1533
+ viewId: string;
1534
+ top: number;
1535
+ bottom: number;
1536
+ }[];
1537
+ note: string;
1538
+ } | undefined;
1539
+ session?: {
1540
+ drawer: {
1541
+ widget: string | undefined;
1542
+ width?: number | undefined;
1543
+ note: string;
1544
+ };
1545
+ dialog: {
1546
+ note: string;
1547
+ };
1548
+ name: string;
1549
+ assemblyNames: string[];
1550
+ views: Record<string, unknown>[];
1551
+ } | {
1552
+ drawer: {
1553
+ widget: string | undefined;
1554
+ width?: number | undefined;
1555
+ note: string;
1556
+ };
1557
+ dialog?: undefined;
1558
+ name: string;
1559
+ assemblyNames: string[];
1560
+ views: Record<string, unknown>[];
1561
+ } | {
1562
+ drawer?: undefined;
1563
+ dialog: {
1564
+ note: string;
1565
+ };
1566
+ name: string;
1567
+ assemblyNames: string[];
1568
+ views: Record<string, unknown>[];
1569
+ } | {
1570
+ drawer?: undefined;
1571
+ dialog?: undefined;
1572
+ name: string;
1573
+ assemblyNames: string[];
1574
+ views: Record<string, unknown>[];
1575
+ } | undefined;
1576
+ } | {
1577
+ drawer?: undefined;
1578
+ dialog: {
1579
+ note: string;
1580
+ };
1581
+ settled: boolean;
1582
+ note: string;
1583
+ notifications?: {
1584
+ level: string;
1585
+ message: string;
1586
+ }[] | undefined;
1587
+ notReady?: ({
1588
+ error: string;
1589
+ phase?: undefined;
1590
+ reason?: undefined;
1591
+ viewId: string;
1592
+ type: string;
1593
+ } | {
1594
+ error?: undefined;
1595
+ phase: string;
1596
+ reason?: undefined;
1597
+ viewId: string;
1598
+ type: string;
1599
+ } | {
1600
+ error?: undefined;
1601
+ phase?: undefined;
1602
+ reason?: undefined;
1603
+ viewId: string;
1604
+ type: string;
1605
+ } | {
1606
+ error?: undefined;
1607
+ phase: string;
1608
+ reason: string;
1609
+ viewId: string;
1610
+ type: string;
1611
+ } | ({
1612
+ trackId: string;
1613
+ } & Record<"error", unknown>) | ({
1614
+ trackId: string;
1615
+ } & Record<"notices", unknown>) | ({
1616
+ trackId: string;
1617
+ } & Record<"phase", unknown>))[] | undefined;
1618
+ offscreen?: {
1619
+ pageHeight: number;
1620
+ windowHeight: number;
1621
+ scrollY: number;
1622
+ views: {
1623
+ viewId: string;
1624
+ top: number;
1625
+ bottom: number;
1626
+ }[];
1627
+ note: string;
1628
+ } | undefined;
1629
+ session?: {
1630
+ drawer: {
1631
+ widget: string | undefined;
1632
+ width?: number | undefined;
1633
+ note: string;
1634
+ };
1635
+ dialog: {
1636
+ note: string;
1637
+ };
1638
+ name: string;
1639
+ assemblyNames: string[];
1640
+ views: Record<string, unknown>[];
1641
+ } | {
1642
+ drawer: {
1643
+ widget: string | undefined;
1644
+ width?: number | undefined;
1645
+ note: string;
1646
+ };
1647
+ dialog?: undefined;
1648
+ name: string;
1649
+ assemblyNames: string[];
1650
+ views: Record<string, unknown>[];
1651
+ } | {
1652
+ drawer?: undefined;
1653
+ dialog: {
1654
+ note: string;
1655
+ };
1656
+ name: string;
1657
+ assemblyNames: string[];
1658
+ views: Record<string, unknown>[];
1659
+ } | {
1660
+ drawer?: undefined;
1661
+ dialog?: undefined;
1662
+ name: string;
1663
+ assemblyNames: string[];
1664
+ views: Record<string, unknown>[];
1665
+ } | undefined;
1666
+ } | {
1667
+ drawer?: undefined;
1668
+ dialog?: undefined;
1669
+ settled: boolean;
1670
+ note: string;
1671
+ notifications?: {
1672
+ level: string;
1673
+ message: string;
1674
+ }[] | undefined;
1675
+ notReady?: ({
1676
+ error: string;
1677
+ phase?: undefined;
1678
+ reason?: undefined;
1679
+ viewId: string;
1680
+ type: string;
1681
+ } | {
1682
+ error?: undefined;
1683
+ phase: string;
1684
+ reason?: undefined;
1685
+ viewId: string;
1686
+ type: string;
1687
+ } | {
1688
+ error?: undefined;
1689
+ phase?: undefined;
1690
+ reason?: undefined;
1691
+ viewId: string;
1692
+ type: string;
1693
+ } | {
1694
+ error?: undefined;
1695
+ phase: string;
1696
+ reason: string;
1697
+ viewId: string;
1698
+ type: string;
1699
+ } | ({
1700
+ trackId: string;
1701
+ } & Record<"error", unknown>) | ({
1702
+ trackId: string;
1703
+ } & Record<"notices", unknown>) | ({
1704
+ trackId: string;
1705
+ } & Record<"phase", unknown>))[] | undefined;
1706
+ offscreen?: {
1707
+ pageHeight: number;
1708
+ windowHeight: number;
1709
+ scrollY: number;
1710
+ views: {
1711
+ viewId: string;
1712
+ top: number;
1713
+ bottom: number;
1714
+ }[];
1715
+ note: string;
1716
+ } | undefined;
1717
+ session?: {
1718
+ drawer: {
1719
+ widget: string | undefined;
1720
+ width?: number | undefined;
1721
+ note: string;
1722
+ };
1723
+ dialog: {
1724
+ note: string;
1725
+ };
1726
+ name: string;
1727
+ assemblyNames: string[];
1728
+ views: Record<string, unknown>[];
1729
+ } | {
1730
+ drawer: {
1731
+ widget: string | undefined;
1732
+ width?: number | undefined;
1733
+ note: string;
1734
+ };
1735
+ dialog?: undefined;
1736
+ name: string;
1737
+ assemblyNames: string[];
1738
+ views: Record<string, unknown>[];
1739
+ } | {
1740
+ drawer?: undefined;
1741
+ dialog: {
1742
+ note: string;
1743
+ };
1744
+ name: string;
1745
+ assemblyNames: string[];
1746
+ views: Record<string, unknown>[];
1747
+ } | {
1748
+ drawer?: undefined;
1749
+ dialog?: undefined;
1750
+ name: string;
1751
+ assemblyNames: string[];
1752
+ views: Record<string, unknown>[];
1753
+ } | undefined;
1754
+ }>;
1755
+ addView: (spec: ViewSpec, settleMs?: number) => Promise<{
1756
+ viewId: string;
1757
+ created?: string[] | undefined;
1758
+ }>;
1759
+ setSession: (document: Record<string, unknown>, settleMs?: number) => Promise<{
1760
+ drawer: {
1761
+ widget: string | undefined;
1762
+ width?: number | undefined;
1763
+ note: string;
1764
+ };
1765
+ dialog: {
1766
+ note: string;
1767
+ };
1768
+ settled: boolean;
1769
+ notifications?: {
1770
+ level: string;
1771
+ message: string;
1772
+ }[] | undefined;
1773
+ notReady?: ({
1774
+ error: string;
1775
+ phase?: undefined;
1776
+ reason?: undefined;
1777
+ viewId: string;
1778
+ type: string;
1779
+ } | {
1780
+ error?: undefined;
1781
+ phase: string;
1782
+ reason?: undefined;
1783
+ viewId: string;
1784
+ type: string;
1785
+ } | {
1786
+ error?: undefined;
1787
+ phase?: undefined;
1788
+ reason?: undefined;
1789
+ viewId: string;
1790
+ type: string;
1791
+ } | {
1792
+ error?: undefined;
1793
+ phase: string;
1794
+ reason: string;
1795
+ viewId: string;
1796
+ type: string;
1797
+ } | ({
1798
+ trackId: string;
1799
+ } & Record<"error", unknown>) | ({
1800
+ trackId: string;
1801
+ } & Record<"notices", unknown>) | ({
1802
+ trackId: string;
1803
+ } & Record<"phase", unknown>))[] | undefined;
1804
+ offscreen?: {
1805
+ pageHeight: number;
1806
+ windowHeight: number;
1807
+ scrollY: number;
1808
+ views: {
1809
+ viewId: string;
1810
+ top: number;
1811
+ bottom: number;
1812
+ }[];
1813
+ note: string;
1814
+ } | undefined;
1815
+ session: {
1816
+ drawer: {
1817
+ widget: string | undefined;
1818
+ width?: number | undefined;
1819
+ note: string;
1820
+ };
1821
+ dialog: {
1822
+ note: string;
1823
+ };
1824
+ name: string;
1825
+ assemblyNames: string[];
1826
+ views: Record<string, unknown>[];
1827
+ } | {
1828
+ drawer: {
1829
+ widget: string | undefined;
1830
+ width?: number | undefined;
1831
+ note: string;
1832
+ };
1833
+ dialog?: undefined;
1834
+ name: string;
1835
+ assemblyNames: string[];
1836
+ views: Record<string, unknown>[];
1837
+ } | {
1838
+ drawer?: undefined;
1839
+ dialog: {
1840
+ note: string;
1841
+ };
1842
+ name: string;
1843
+ assemblyNames: string[];
1844
+ views: Record<string, unknown>[];
1845
+ } | {
1846
+ drawer?: undefined;
1847
+ dialog?: undefined;
1848
+ name: string;
1849
+ assemblyNames: string[];
1850
+ views: Record<string, unknown>[];
1851
+ };
1852
+ } | {
1853
+ drawer: {
1854
+ widget: string | undefined;
1855
+ width?: number | undefined;
1856
+ note: string;
1857
+ };
1858
+ dialog?: undefined;
1859
+ settled: boolean;
1860
+ notifications?: {
1861
+ level: string;
1862
+ message: string;
1863
+ }[] | undefined;
1864
+ notReady?: ({
1865
+ error: string;
1866
+ phase?: undefined;
1867
+ reason?: undefined;
1868
+ viewId: string;
1869
+ type: string;
1870
+ } | {
1871
+ error?: undefined;
1872
+ phase: string;
1873
+ reason?: undefined;
1874
+ viewId: string;
1875
+ type: string;
1876
+ } | {
1877
+ error?: undefined;
1878
+ phase?: undefined;
1879
+ reason?: undefined;
1880
+ viewId: string;
1881
+ type: string;
1882
+ } | {
1883
+ error?: undefined;
1884
+ phase: string;
1885
+ reason: string;
1886
+ viewId: string;
1887
+ type: string;
1888
+ } | ({
1889
+ trackId: string;
1890
+ } & Record<"error", unknown>) | ({
1891
+ trackId: string;
1892
+ } & Record<"notices", unknown>) | ({
1893
+ trackId: string;
1894
+ } & Record<"phase", unknown>))[] | undefined;
1895
+ offscreen?: {
1896
+ pageHeight: number;
1897
+ windowHeight: number;
1898
+ scrollY: number;
1899
+ views: {
1900
+ viewId: string;
1901
+ top: number;
1902
+ bottom: number;
1903
+ }[];
1904
+ note: string;
1905
+ } | undefined;
1906
+ session: {
1907
+ drawer: {
1908
+ widget: string | undefined;
1909
+ width?: number | undefined;
1910
+ note: string;
1911
+ };
1912
+ dialog: {
1913
+ note: string;
1914
+ };
1915
+ name: string;
1916
+ assemblyNames: string[];
1917
+ views: Record<string, unknown>[];
1918
+ } | {
1919
+ drawer: {
1920
+ widget: string | undefined;
1921
+ width?: number | undefined;
1922
+ note: string;
1923
+ };
1924
+ dialog?: undefined;
1925
+ name: string;
1926
+ assemblyNames: string[];
1927
+ views: Record<string, unknown>[];
1928
+ } | {
1929
+ drawer?: undefined;
1930
+ dialog: {
1931
+ note: string;
1932
+ };
1933
+ name: string;
1934
+ assemblyNames: string[];
1935
+ views: Record<string, unknown>[];
1936
+ } | {
1937
+ drawer?: undefined;
1938
+ dialog?: undefined;
1939
+ name: string;
1940
+ assemblyNames: string[];
1941
+ views: Record<string, unknown>[];
1942
+ };
1943
+ } | {
1944
+ drawer?: undefined;
1945
+ dialog: {
1946
+ note: string;
1947
+ };
1948
+ settled: boolean;
1949
+ notifications?: {
1950
+ level: string;
1951
+ message: string;
1952
+ }[] | undefined;
1953
+ notReady?: ({
1954
+ error: string;
1955
+ phase?: undefined;
1956
+ reason?: undefined;
1957
+ viewId: string;
1958
+ type: string;
1959
+ } | {
1960
+ error?: undefined;
1961
+ phase: string;
1962
+ reason?: undefined;
1963
+ viewId: string;
1964
+ type: string;
1965
+ } | {
1966
+ error?: undefined;
1967
+ phase?: undefined;
1968
+ reason?: undefined;
1969
+ viewId: string;
1970
+ type: string;
1971
+ } | {
1972
+ error?: undefined;
1973
+ phase: string;
1974
+ reason: string;
1975
+ viewId: string;
1976
+ type: string;
1977
+ } | ({
1978
+ trackId: string;
1979
+ } & Record<"error", unknown>) | ({
1980
+ trackId: string;
1981
+ } & Record<"notices", unknown>) | ({
1982
+ trackId: string;
1983
+ } & Record<"phase", unknown>))[] | undefined;
1984
+ offscreen?: {
1985
+ pageHeight: number;
1986
+ windowHeight: number;
1987
+ scrollY: number;
1988
+ views: {
1989
+ viewId: string;
1990
+ top: number;
1991
+ bottom: number;
1992
+ }[];
1993
+ note: string;
1994
+ } | undefined;
1995
+ session: {
1996
+ drawer: {
1997
+ widget: string | undefined;
1998
+ width?: number | undefined;
1999
+ note: string;
2000
+ };
2001
+ dialog: {
2002
+ note: string;
2003
+ };
2004
+ name: string;
2005
+ assemblyNames: string[];
2006
+ views: Record<string, unknown>[];
2007
+ } | {
2008
+ drawer: {
2009
+ widget: string | undefined;
2010
+ width?: number | undefined;
2011
+ note: string;
2012
+ };
2013
+ dialog?: undefined;
2014
+ name: string;
2015
+ assemblyNames: string[];
2016
+ views: Record<string, unknown>[];
2017
+ } | {
2018
+ drawer?: undefined;
2019
+ dialog: {
2020
+ note: string;
2021
+ };
2022
+ name: string;
2023
+ assemblyNames: string[];
2024
+ views: Record<string, unknown>[];
2025
+ } | {
2026
+ drawer?: undefined;
2027
+ dialog?: undefined;
2028
+ name: string;
2029
+ assemblyNames: string[];
2030
+ views: Record<string, unknown>[];
2031
+ };
2032
+ } | {
2033
+ drawer?: undefined;
2034
+ dialog?: undefined;
2035
+ settled: boolean;
2036
+ notifications?: {
2037
+ level: string;
2038
+ message: string;
2039
+ }[] | undefined;
2040
+ notReady?: ({
2041
+ error: string;
2042
+ phase?: undefined;
2043
+ reason?: undefined;
2044
+ viewId: string;
2045
+ type: string;
2046
+ } | {
2047
+ error?: undefined;
2048
+ phase: string;
2049
+ reason?: undefined;
2050
+ viewId: string;
2051
+ type: string;
2052
+ } | {
2053
+ error?: undefined;
2054
+ phase?: undefined;
2055
+ reason?: undefined;
2056
+ viewId: string;
2057
+ type: string;
2058
+ } | {
2059
+ error?: undefined;
2060
+ phase: string;
2061
+ reason: string;
2062
+ viewId: string;
2063
+ type: string;
2064
+ } | ({
2065
+ trackId: string;
2066
+ } & Record<"error", unknown>) | ({
2067
+ trackId: string;
2068
+ } & Record<"notices", unknown>) | ({
2069
+ trackId: string;
2070
+ } & Record<"phase", unknown>))[] | undefined;
2071
+ offscreen?: {
2072
+ pageHeight: number;
2073
+ windowHeight: number;
2074
+ scrollY: number;
2075
+ views: {
2076
+ viewId: string;
2077
+ top: number;
2078
+ bottom: number;
2079
+ }[];
2080
+ note: string;
2081
+ } | undefined;
2082
+ session: {
2083
+ drawer: {
2084
+ widget: string | undefined;
2085
+ width?: number | undefined;
2086
+ note: string;
2087
+ };
2088
+ dialog: {
2089
+ note: string;
2090
+ };
2091
+ name: string;
2092
+ assemblyNames: string[];
2093
+ views: Record<string, unknown>[];
2094
+ } | {
2095
+ drawer: {
2096
+ widget: string | undefined;
2097
+ width?: number | undefined;
2098
+ note: string;
2099
+ };
2100
+ dialog?: undefined;
2101
+ name: string;
2102
+ assemblyNames: string[];
2103
+ views: Record<string, unknown>[];
2104
+ } | {
2105
+ drawer?: undefined;
2106
+ dialog: {
2107
+ note: string;
2108
+ };
2109
+ name: string;
2110
+ assemblyNames: string[];
2111
+ views: Record<string, unknown>[];
2112
+ } | {
2113
+ drawer?: undefined;
2114
+ dialog?: undefined;
2115
+ name: string;
2116
+ assemblyNames: string[];
2117
+ views: Record<string, unknown>[];
2118
+ };
2119
+ } | {
2120
+ drawer: {
2121
+ widget: string | undefined;
2122
+ width?: number | undefined;
2123
+ note: string;
2124
+ };
2125
+ dialog: {
2126
+ note: string;
2127
+ };
2128
+ settled: boolean;
2129
+ note: string;
2130
+ notifications?: {
2131
+ level: string;
2132
+ message: string;
2133
+ }[] | undefined;
2134
+ notReady?: ({
2135
+ error: string;
2136
+ phase?: undefined;
2137
+ reason?: undefined;
2138
+ viewId: string;
2139
+ type: string;
2140
+ } | {
2141
+ error?: undefined;
2142
+ phase: string;
2143
+ reason?: undefined;
2144
+ viewId: string;
2145
+ type: string;
2146
+ } | {
2147
+ error?: undefined;
2148
+ phase?: undefined;
2149
+ reason?: undefined;
2150
+ viewId: string;
2151
+ type: string;
2152
+ } | {
2153
+ error?: undefined;
2154
+ phase: string;
2155
+ reason: string;
2156
+ viewId: string;
2157
+ type: string;
2158
+ } | ({
2159
+ trackId: string;
2160
+ } & Record<"error", unknown>) | ({
2161
+ trackId: string;
2162
+ } & Record<"notices", unknown>) | ({
2163
+ trackId: string;
2164
+ } & Record<"phase", unknown>))[] | undefined;
2165
+ offscreen?: {
2166
+ pageHeight: number;
2167
+ windowHeight: number;
2168
+ scrollY: number;
2169
+ views: {
2170
+ viewId: string;
2171
+ top: number;
2172
+ bottom: number;
2173
+ }[];
2174
+ note: string;
2175
+ } | undefined;
2176
+ session: {
2177
+ drawer: {
2178
+ widget: string | undefined;
2179
+ width?: number | undefined;
2180
+ note: string;
2181
+ };
2182
+ dialog: {
2183
+ note: string;
2184
+ };
2185
+ name: string;
2186
+ assemblyNames: string[];
2187
+ views: Record<string, unknown>[];
2188
+ } | {
2189
+ drawer: {
2190
+ widget: string | undefined;
2191
+ width?: number | undefined;
2192
+ note: string;
2193
+ };
2194
+ dialog?: undefined;
2195
+ name: string;
2196
+ assemblyNames: string[];
2197
+ views: Record<string, unknown>[];
2198
+ } | {
2199
+ drawer?: undefined;
2200
+ dialog: {
2201
+ note: string;
2202
+ };
2203
+ name: string;
2204
+ assemblyNames: string[];
2205
+ views: Record<string, unknown>[];
2206
+ } | {
2207
+ drawer?: undefined;
2208
+ dialog?: undefined;
2209
+ name: string;
2210
+ assemblyNames: string[];
2211
+ views: Record<string, unknown>[];
2212
+ };
2213
+ } | {
2214
+ drawer: {
2215
+ widget: string | undefined;
2216
+ width?: number | undefined;
2217
+ note: string;
2218
+ };
2219
+ dialog?: undefined;
2220
+ settled: boolean;
2221
+ note: string;
2222
+ notifications?: {
2223
+ level: string;
2224
+ message: string;
2225
+ }[] | undefined;
2226
+ notReady?: ({
2227
+ error: string;
2228
+ phase?: undefined;
2229
+ reason?: undefined;
2230
+ viewId: string;
2231
+ type: string;
2232
+ } | {
2233
+ error?: undefined;
2234
+ phase: string;
2235
+ reason?: undefined;
2236
+ viewId: string;
2237
+ type: string;
2238
+ } | {
2239
+ error?: undefined;
2240
+ phase?: undefined;
2241
+ reason?: undefined;
2242
+ viewId: string;
2243
+ type: string;
2244
+ } | {
2245
+ error?: undefined;
2246
+ phase: string;
2247
+ reason: string;
2248
+ viewId: string;
2249
+ type: string;
2250
+ } | ({
2251
+ trackId: string;
2252
+ } & Record<"error", unknown>) | ({
2253
+ trackId: string;
2254
+ } & Record<"notices", unknown>) | ({
2255
+ trackId: string;
2256
+ } & Record<"phase", unknown>))[] | undefined;
2257
+ offscreen?: {
2258
+ pageHeight: number;
2259
+ windowHeight: number;
2260
+ scrollY: number;
2261
+ views: {
2262
+ viewId: string;
2263
+ top: number;
2264
+ bottom: number;
2265
+ }[];
2266
+ note: string;
2267
+ } | undefined;
2268
+ session: {
2269
+ drawer: {
2270
+ widget: string | undefined;
2271
+ width?: number | undefined;
2272
+ note: string;
2273
+ };
2274
+ dialog: {
2275
+ note: string;
2276
+ };
2277
+ name: string;
2278
+ assemblyNames: string[];
2279
+ views: Record<string, unknown>[];
2280
+ } | {
2281
+ drawer: {
2282
+ widget: string | undefined;
2283
+ width?: number | undefined;
2284
+ note: string;
2285
+ };
2286
+ dialog?: undefined;
2287
+ name: string;
2288
+ assemblyNames: string[];
2289
+ views: Record<string, unknown>[];
2290
+ } | {
2291
+ drawer?: undefined;
2292
+ dialog: {
2293
+ note: string;
2294
+ };
2295
+ name: string;
2296
+ assemblyNames: string[];
2297
+ views: Record<string, unknown>[];
2298
+ } | {
2299
+ drawer?: undefined;
2300
+ dialog?: undefined;
2301
+ name: string;
2302
+ assemblyNames: string[];
2303
+ views: Record<string, unknown>[];
2304
+ };
2305
+ } | {
2306
+ drawer?: undefined;
2307
+ dialog: {
2308
+ note: string;
2309
+ };
2310
+ settled: boolean;
2311
+ note: string;
2312
+ notifications?: {
2313
+ level: string;
2314
+ message: string;
2315
+ }[] | undefined;
2316
+ notReady?: ({
2317
+ error: string;
2318
+ phase?: undefined;
2319
+ reason?: undefined;
2320
+ viewId: string;
2321
+ type: string;
2322
+ } | {
2323
+ error?: undefined;
2324
+ phase: string;
2325
+ reason?: undefined;
2326
+ viewId: string;
2327
+ type: string;
2328
+ } | {
2329
+ error?: undefined;
2330
+ phase?: undefined;
2331
+ reason?: undefined;
2332
+ viewId: string;
2333
+ type: string;
2334
+ } | {
2335
+ error?: undefined;
2336
+ phase: string;
2337
+ reason: string;
2338
+ viewId: string;
2339
+ type: string;
2340
+ } | ({
2341
+ trackId: string;
2342
+ } & Record<"error", unknown>) | ({
2343
+ trackId: string;
2344
+ } & Record<"notices", unknown>) | ({
2345
+ trackId: string;
2346
+ } & Record<"phase", unknown>))[] | undefined;
2347
+ offscreen?: {
2348
+ pageHeight: number;
2349
+ windowHeight: number;
2350
+ scrollY: number;
2351
+ views: {
2352
+ viewId: string;
2353
+ top: number;
2354
+ bottom: number;
2355
+ }[];
2356
+ note: string;
2357
+ } | undefined;
2358
+ session: {
2359
+ drawer: {
2360
+ widget: string | undefined;
2361
+ width?: number | undefined;
2362
+ note: string;
2363
+ };
2364
+ dialog: {
2365
+ note: string;
2366
+ };
2367
+ name: string;
2368
+ assemblyNames: string[];
2369
+ views: Record<string, unknown>[];
2370
+ } | {
2371
+ drawer: {
2372
+ widget: string | undefined;
2373
+ width?: number | undefined;
2374
+ note: string;
2375
+ };
2376
+ dialog?: undefined;
2377
+ name: string;
2378
+ assemblyNames: string[];
2379
+ views: Record<string, unknown>[];
2380
+ } | {
2381
+ drawer?: undefined;
2382
+ dialog: {
2383
+ note: string;
2384
+ };
2385
+ name: string;
2386
+ assemblyNames: string[];
2387
+ views: Record<string, unknown>[];
2388
+ } | {
2389
+ drawer?: undefined;
2390
+ dialog?: undefined;
2391
+ name: string;
2392
+ assemblyNames: string[];
2393
+ views: Record<string, unknown>[];
2394
+ };
2395
+ } | {
2396
+ drawer?: undefined;
2397
+ dialog?: undefined;
2398
+ settled: boolean;
2399
+ note: string;
2400
+ notifications?: {
2401
+ level: string;
2402
+ message: string;
2403
+ }[] | undefined;
2404
+ notReady?: ({
2405
+ error: string;
2406
+ phase?: undefined;
2407
+ reason?: undefined;
2408
+ viewId: string;
2409
+ type: string;
2410
+ } | {
2411
+ error?: undefined;
2412
+ phase: string;
2413
+ reason?: undefined;
2414
+ viewId: string;
2415
+ type: string;
2416
+ } | {
2417
+ error?: undefined;
2418
+ phase?: undefined;
2419
+ reason?: undefined;
2420
+ viewId: string;
2421
+ type: string;
2422
+ } | {
2423
+ error?: undefined;
2424
+ phase: string;
2425
+ reason: string;
2426
+ viewId: string;
2427
+ type: string;
2428
+ } | ({
2429
+ trackId: string;
2430
+ } & Record<"error", unknown>) | ({
2431
+ trackId: string;
2432
+ } & Record<"notices", unknown>) | ({
2433
+ trackId: string;
2434
+ } & Record<"phase", unknown>))[] | undefined;
2435
+ offscreen?: {
2436
+ pageHeight: number;
2437
+ windowHeight: number;
2438
+ scrollY: number;
2439
+ views: {
2440
+ viewId: string;
2441
+ top: number;
2442
+ bottom: number;
2443
+ }[];
2444
+ note: string;
2445
+ } | undefined;
2446
+ session: {
2447
+ drawer: {
2448
+ widget: string | undefined;
2449
+ width?: number | undefined;
2450
+ note: string;
2451
+ };
2452
+ dialog: {
2453
+ note: string;
2454
+ };
2455
+ name: string;
2456
+ assemblyNames: string[];
2457
+ views: Record<string, unknown>[];
2458
+ } | {
2459
+ drawer: {
2460
+ widget: string | undefined;
2461
+ width?: number | undefined;
2462
+ note: string;
2463
+ };
2464
+ dialog?: undefined;
2465
+ name: string;
2466
+ assemblyNames: string[];
2467
+ views: Record<string, unknown>[];
2468
+ } | {
2469
+ drawer?: undefined;
2470
+ dialog: {
2471
+ note: string;
2472
+ };
2473
+ name: string;
2474
+ assemblyNames: string[];
2475
+ views: Record<string, unknown>[];
2476
+ } | {
2477
+ drawer?: undefined;
2478
+ dialog?: undefined;
2479
+ name: string;
2480
+ assemblyNames: string[];
2481
+ views: Record<string, unknown>[];
2482
+ };
2483
+ }>;
2484
+ fitToWindow: (settleMs?: number) => Promise<{
2485
+ pageHeight: number;
2486
+ windowHeight: number;
2487
+ fits: boolean;
2488
+ } | {
2489
+ drawer: {
2490
+ widget: string | undefined;
2491
+ width?: number | undefined;
2492
+ note: string;
2493
+ };
2494
+ dialog: {
2495
+ note: string;
2496
+ };
2497
+ settled: boolean;
2498
+ notifications?: {
2499
+ level: string;
2500
+ message: string;
2501
+ }[] | undefined;
2502
+ notReady?: ({
2503
+ error: string;
2504
+ phase?: undefined;
2505
+ reason?: undefined;
2506
+ viewId: string;
2507
+ type: string;
2508
+ } | {
2509
+ error?: undefined;
2510
+ phase: string;
2511
+ reason?: undefined;
2512
+ viewId: string;
2513
+ type: string;
2514
+ } | {
2515
+ error?: undefined;
2516
+ phase?: undefined;
2517
+ reason?: undefined;
2518
+ viewId: string;
2519
+ type: string;
2520
+ } | {
2521
+ error?: undefined;
2522
+ phase: string;
2523
+ reason: string;
2524
+ viewId: string;
2525
+ type: string;
2526
+ } | ({
2527
+ trackId: string;
2528
+ } & Record<"error", unknown>) | ({
2529
+ trackId: string;
2530
+ } & Record<"notices", unknown>) | ({
2531
+ trackId: string;
2532
+ } & Record<"phase", unknown>))[] | undefined;
2533
+ offscreen?: {
2534
+ pageHeight: number;
2535
+ windowHeight: number;
2536
+ scrollY: number;
2537
+ views: {
2538
+ viewId: string;
2539
+ top: number;
2540
+ bottom: number;
2541
+ }[];
2542
+ note: string;
2543
+ } | undefined;
2544
+ fits: boolean;
2545
+ overflowBefore: number;
2546
+ overflowAfter: number;
2547
+ shrunk: {
2548
+ what: string;
2549
+ from: number;
2550
+ to: number;
2551
+ }[];
2552
+ note?: string | undefined;
2553
+ } | {
2554
+ drawer: {
2555
+ widget: string | undefined;
2556
+ width?: number | undefined;
2557
+ note: string;
2558
+ };
2559
+ dialog?: undefined;
2560
+ settled: boolean;
2561
+ notifications?: {
2562
+ level: string;
2563
+ message: string;
2564
+ }[] | undefined;
2565
+ notReady?: ({
2566
+ error: string;
2567
+ phase?: undefined;
2568
+ reason?: undefined;
2569
+ viewId: string;
2570
+ type: string;
2571
+ } | {
2572
+ error?: undefined;
2573
+ phase: string;
2574
+ reason?: undefined;
2575
+ viewId: string;
2576
+ type: string;
2577
+ } | {
2578
+ error?: undefined;
2579
+ phase?: undefined;
2580
+ reason?: undefined;
2581
+ viewId: string;
2582
+ type: string;
2583
+ } | {
2584
+ error?: undefined;
2585
+ phase: string;
2586
+ reason: string;
2587
+ viewId: string;
2588
+ type: string;
2589
+ } | ({
2590
+ trackId: string;
2591
+ } & Record<"error", unknown>) | ({
2592
+ trackId: string;
2593
+ } & Record<"notices", unknown>) | ({
2594
+ trackId: string;
2595
+ } & Record<"phase", unknown>))[] | undefined;
2596
+ offscreen?: {
2597
+ pageHeight: number;
2598
+ windowHeight: number;
2599
+ scrollY: number;
2600
+ views: {
2601
+ viewId: string;
2602
+ top: number;
2603
+ bottom: number;
2604
+ }[];
2605
+ note: string;
2606
+ } | undefined;
2607
+ fits: boolean;
2608
+ overflowBefore: number;
2609
+ overflowAfter: number;
2610
+ shrunk: {
2611
+ what: string;
2612
+ from: number;
2613
+ to: number;
2614
+ }[];
2615
+ note?: string | undefined;
2616
+ } | {
2617
+ drawer?: undefined;
2618
+ dialog: {
2619
+ note: string;
2620
+ };
2621
+ settled: boolean;
2622
+ notifications?: {
2623
+ level: string;
2624
+ message: string;
2625
+ }[] | undefined;
2626
+ notReady?: ({
2627
+ error: string;
2628
+ phase?: undefined;
2629
+ reason?: undefined;
2630
+ viewId: string;
2631
+ type: string;
2632
+ } | {
2633
+ error?: undefined;
2634
+ phase: string;
2635
+ reason?: undefined;
2636
+ viewId: string;
2637
+ type: string;
2638
+ } | {
2639
+ error?: undefined;
2640
+ phase?: undefined;
2641
+ reason?: undefined;
2642
+ viewId: string;
2643
+ type: string;
2644
+ } | {
2645
+ error?: undefined;
2646
+ phase: string;
2647
+ reason: string;
2648
+ viewId: string;
2649
+ type: string;
2650
+ } | ({
2651
+ trackId: string;
2652
+ } & Record<"error", unknown>) | ({
2653
+ trackId: string;
2654
+ } & Record<"notices", unknown>) | ({
2655
+ trackId: string;
2656
+ } & Record<"phase", unknown>))[] | undefined;
2657
+ offscreen?: {
2658
+ pageHeight: number;
2659
+ windowHeight: number;
2660
+ scrollY: number;
2661
+ views: {
2662
+ viewId: string;
2663
+ top: number;
2664
+ bottom: number;
2665
+ }[];
2666
+ note: string;
2667
+ } | undefined;
2668
+ fits: boolean;
2669
+ overflowBefore: number;
2670
+ overflowAfter: number;
2671
+ shrunk: {
2672
+ what: string;
2673
+ from: number;
2674
+ to: number;
2675
+ }[];
2676
+ note?: string | undefined;
2677
+ } | {
2678
+ drawer?: undefined;
2679
+ dialog?: undefined;
2680
+ settled: boolean;
2681
+ notifications?: {
2682
+ level: string;
2683
+ message: string;
2684
+ }[] | undefined;
2685
+ notReady?: ({
2686
+ error: string;
2687
+ phase?: undefined;
2688
+ reason?: undefined;
2689
+ viewId: string;
2690
+ type: string;
2691
+ } | {
2692
+ error?: undefined;
2693
+ phase: string;
2694
+ reason?: undefined;
2695
+ viewId: string;
2696
+ type: string;
2697
+ } | {
2698
+ error?: undefined;
2699
+ phase?: undefined;
2700
+ reason?: undefined;
2701
+ viewId: string;
2702
+ type: string;
2703
+ } | {
2704
+ error?: undefined;
2705
+ phase: string;
2706
+ reason: string;
2707
+ viewId: string;
2708
+ type: string;
2709
+ } | ({
2710
+ trackId: string;
2711
+ } & Record<"error", unknown>) | ({
2712
+ trackId: string;
2713
+ } & Record<"notices", unknown>) | ({
2714
+ trackId: string;
2715
+ } & Record<"phase", unknown>))[] | undefined;
2716
+ offscreen?: {
2717
+ pageHeight: number;
2718
+ windowHeight: number;
2719
+ scrollY: number;
2720
+ views: {
2721
+ viewId: string;
2722
+ top: number;
2723
+ bottom: number;
2724
+ }[];
2725
+ note: string;
2726
+ } | undefined;
2727
+ fits: boolean;
2728
+ overflowBefore: number;
2729
+ overflowAfter: number;
2730
+ shrunk: {
2731
+ what: string;
2732
+ from: number;
2733
+ to: number;
2734
+ }[];
2735
+ note?: string | undefined;
2736
+ }>;
2737
+ addTrack: (opts: {
2738
+ location?: string | string[];
2739
+ trackId?: string;
2740
+ index?: string;
2741
+ assembly?: string;
2742
+ name?: string;
2743
+ settings?: Record<string, unknown>;
2744
+ show?: boolean;
2745
+ viewId?: string;
2746
+ settleMs?: number;
2747
+ }) => Promise<{
2748
+ trackId: any;
2749
+ trackType: any;
2750
+ assembly: string | undefined;
2751
+ adapterType?: string | undefined;
2752
+ }>;
2753
+ getFeatures: (args: string | {
2754
+ trackId: string;
2755
+ loc?: JbLoc;
2756
+ assembly?: string;
2757
+ regions?: Exclude<JbLoc, string>[];
2758
+ viewId?: string;
2759
+ byteLimit?: number;
2760
+ }, positionalLoc?: JbLoc, positionalOpts?: {
2761
+ assembly?: string;
2762
+ viewId?: string;
2763
+ byteLimit?: number;
2764
+ }) => Promise<import("@jbrowse/core/util").Feature[]>;
2765
+ };
2766
+ export type JbApi = ReturnType<typeof createJbApi>;
2767
+ export {};