@jbrowse/plugin-data-management 1.5.0 → 1.5.4

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 (30) hide show
  1. package/dist/AddTrackWidget/model.d.ts +1 -434
  2. package/dist/AssemblyManager/AssemblyTable.d.ts +8 -2
  3. package/dist/PluginStoreWidget/components/CustomPluginForm.d.ts +1 -1
  4. package/dist/PluginStoreWidget/components/PluginCard.d.ts +2 -2
  5. package/dist/SetDefaultSession/SetDefaultSession.d.ts +4 -6
  6. package/dist/index.d.ts +8 -12
  7. package/dist/plugin-data-management.cjs.development.js +387 -324
  8. package/dist/plugin-data-management.cjs.development.js.map +1 -1
  9. package/dist/plugin-data-management.cjs.production.min.js +1 -1
  10. package/dist/plugin-data-management.cjs.production.min.js.map +1 -1
  11. package/dist/plugin-data-management.esm.js +389 -326
  12. package/dist/plugin-data-management.esm.js.map +1 -1
  13. package/package.json +3 -2
  14. package/src/AddTrackWidget/components/AddTrackWidget.test.js +1 -1
  15. package/src/AddTrackWidget/components/AddTrackWidget.tsx +3 -1
  16. package/src/AddTrackWidget/components/ConfirmTrack.tsx +101 -32
  17. package/src/AddTrackWidget/components/TrackSourceSelect.tsx +2 -3
  18. package/src/AddTrackWidget/index.test.jsx +34 -15
  19. package/src/AddTrackWidget/model.ts +5 -14
  20. package/src/AssemblyManager/AssemblyManager.tsx +3 -1
  21. package/src/AssemblyManager/AssemblyTable.tsx +40 -39
  22. package/src/HierarchicalTrackSelectorWidget/model.js +3 -2
  23. package/src/PluginStoreWidget/components/CustomPluginForm.tsx +164 -56
  24. package/src/PluginStoreWidget/components/InstalledPlugin.tsx +16 -11
  25. package/src/PluginStoreWidget/components/PluginCard.tsx +7 -9
  26. package/src/PluginStoreWidget/components/PluginStoreWidget.test.js +8 -7
  27. package/src/PluginStoreWidget/components/PluginStoreWidget.tsx +34 -25
  28. package/src/PluginStoreWidget/components/__snapshots__/PluginStoreWidget.test.js.snap +69 -52
  29. package/src/SetDefaultSession/SetDefaultSession.test.tsx +6 -81
  30. package/src/SetDefaultSession/SetDefaultSession.tsx +51 -162
@@ -23,440 +23,7 @@ export default function f(pluginManager: PluginManager): import("mobx-state-tree
23
23
  setTrackType(str: string): void;
24
24
  clearData(): void;
25
25
  } & {
26
- readonly trackAdapter: {
27
- type: string;
28
- bamLocation: FileLocation;
29
- index: {
30
- location: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
31
- uri: string;
32
- locationType: string;
33
- localPath?: undefined;
34
- } | {
35
- localPath: string;
36
- locationType: string;
37
- uri?: undefined;
38
- };
39
- indexType: string;
40
- };
41
- cramLocation?: undefined;
42
- craiLocation?: undefined;
43
- gffLocation?: undefined;
44
- gffGzLocation?: undefined;
45
- vcfLocation?: undefined;
46
- vcfGzLocation?: undefined;
47
- bedGzLocation?: undefined;
48
- bigBedLocation?: undefined;
49
- bigWigLocation?: undefined;
50
- fastaLocation?: undefined;
51
- faiLocation?: undefined;
52
- gziLocation?: undefined;
53
- twoBitLocation?: undefined;
54
- rootUrlTemplate?: undefined;
55
- endpoint?: undefined;
56
- hicLocation?: undefined;
57
- pafLocation?: undefined;
58
- } | {
59
- type: string;
60
- cramLocation: FileLocation;
61
- craiLocation: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
62
- uri: string;
63
- locationType: string;
64
- localPath?: undefined;
65
- } | {
66
- localPath: string;
67
- locationType: string;
68
- uri?: undefined;
69
- };
70
- bamLocation?: undefined;
71
- index?: undefined;
72
- gffLocation?: undefined;
73
- gffGzLocation?: undefined;
74
- vcfLocation?: undefined;
75
- vcfGzLocation?: undefined;
76
- bedGzLocation?: undefined;
77
- bigBedLocation?: undefined;
78
- bigWigLocation?: undefined;
79
- fastaLocation?: undefined;
80
- faiLocation?: undefined;
81
- gziLocation?: undefined;
82
- twoBitLocation?: undefined;
83
- rootUrlTemplate?: undefined;
84
- endpoint?: undefined;
85
- hicLocation?: undefined;
86
- pafLocation?: undefined;
87
- } | {
88
- type: string;
89
- gffLocation: FileLocation;
90
- bamLocation?: undefined;
91
- index?: undefined;
92
- cramLocation?: undefined;
93
- craiLocation?: undefined;
94
- gffGzLocation?: undefined;
95
- vcfLocation?: undefined;
96
- vcfGzLocation?: undefined;
97
- bedGzLocation?: undefined;
98
- bigBedLocation?: undefined;
99
- bigWigLocation?: undefined;
100
- fastaLocation?: undefined;
101
- faiLocation?: undefined;
102
- gziLocation?: undefined;
103
- twoBitLocation?: undefined;
104
- rootUrlTemplate?: undefined;
105
- endpoint?: undefined;
106
- hicLocation?: undefined;
107
- pafLocation?: undefined;
108
- } | {
109
- type: string;
110
- gffGzLocation: FileLocation;
111
- index: {
112
- location: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
113
- uri: string;
114
- locationType: string;
115
- localPath?: undefined;
116
- } | {
117
- localPath: string;
118
- locationType: string;
119
- uri?: undefined;
120
- };
121
- indexType: string;
122
- };
123
- bamLocation?: undefined;
124
- cramLocation?: undefined;
125
- craiLocation?: undefined;
126
- gffLocation?: undefined;
127
- vcfLocation?: undefined;
128
- vcfGzLocation?: undefined;
129
- bedGzLocation?: undefined;
130
- bigBedLocation?: undefined;
131
- bigWigLocation?: undefined;
132
- fastaLocation?: undefined;
133
- faiLocation?: undefined;
134
- gziLocation?: undefined;
135
- twoBitLocation?: undefined;
136
- rootUrlTemplate?: undefined;
137
- endpoint?: undefined;
138
- hicLocation?: undefined;
139
- pafLocation?: undefined;
140
- } | {
141
- type: string;
142
- bamLocation?: undefined;
143
- index?: undefined;
144
- cramLocation?: undefined;
145
- craiLocation?: undefined;
146
- gffLocation?: undefined;
147
- gffGzLocation?: undefined;
148
- vcfLocation?: undefined;
149
- vcfGzLocation?: undefined;
150
- bedGzLocation?: undefined;
151
- bigBedLocation?: undefined;
152
- bigWigLocation?: undefined;
153
- fastaLocation?: undefined;
154
- faiLocation?: undefined;
155
- gziLocation?: undefined;
156
- twoBitLocation?: undefined;
157
- rootUrlTemplate?: undefined;
158
- endpoint?: undefined;
159
- hicLocation?: undefined;
160
- pafLocation?: undefined;
161
- } | {
162
- type: string;
163
- vcfLocation: FileLocation;
164
- bamLocation?: undefined;
165
- index?: undefined;
166
- cramLocation?: undefined;
167
- craiLocation?: undefined;
168
- gffLocation?: undefined;
169
- gffGzLocation?: undefined;
170
- vcfGzLocation?: undefined;
171
- bedGzLocation?: undefined;
172
- bigBedLocation?: undefined;
173
- bigWigLocation?: undefined;
174
- fastaLocation?: undefined;
175
- faiLocation?: undefined;
176
- gziLocation?: undefined;
177
- twoBitLocation?: undefined;
178
- rootUrlTemplate?: undefined;
179
- endpoint?: undefined;
180
- hicLocation?: undefined;
181
- pafLocation?: undefined;
182
- } | {
183
- type: string;
184
- vcfGzLocation: FileLocation;
185
- index: {
186
- location: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
187
- uri: string;
188
- locationType: string;
189
- localPath?: undefined;
190
- } | {
191
- localPath: string;
192
- locationType: string;
193
- uri?: undefined;
194
- };
195
- indexType: string;
196
- };
197
- bamLocation?: undefined;
198
- cramLocation?: undefined;
199
- craiLocation?: undefined;
200
- gffLocation?: undefined;
201
- gffGzLocation?: undefined;
202
- vcfLocation?: undefined;
203
- bedGzLocation?: undefined;
204
- bigBedLocation?: undefined;
205
- bigWigLocation?: undefined;
206
- fastaLocation?: undefined;
207
- faiLocation?: undefined;
208
- gziLocation?: undefined;
209
- twoBitLocation?: undefined;
210
- rootUrlTemplate?: undefined;
211
- endpoint?: undefined;
212
- hicLocation?: undefined;
213
- pafLocation?: undefined;
214
- } | {
215
- type: string;
216
- bedGzLocation: FileLocation;
217
- index: {
218
- location: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
219
- uri: string;
220
- locationType: string;
221
- localPath?: undefined;
222
- } | {
223
- localPath: string;
224
- locationType: string;
225
- uri?: undefined;
226
- };
227
- indexType: string;
228
- };
229
- bamLocation?: undefined;
230
- cramLocation?: undefined;
231
- craiLocation?: undefined;
232
- gffLocation?: undefined;
233
- gffGzLocation?: undefined;
234
- vcfLocation?: undefined;
235
- vcfGzLocation?: undefined;
236
- bigBedLocation?: undefined;
237
- bigWigLocation?: undefined;
238
- fastaLocation?: undefined;
239
- faiLocation?: undefined;
240
- gziLocation?: undefined;
241
- twoBitLocation?: undefined;
242
- rootUrlTemplate?: undefined;
243
- endpoint?: undefined;
244
- hicLocation?: undefined;
245
- pafLocation?: undefined;
246
- } | {
247
- type: string;
248
- bigBedLocation: FileLocation;
249
- bamLocation?: undefined;
250
- index?: undefined;
251
- cramLocation?: undefined;
252
- craiLocation?: undefined;
253
- gffLocation?: undefined;
254
- gffGzLocation?: undefined;
255
- vcfLocation?: undefined;
256
- vcfGzLocation?: undefined;
257
- bedGzLocation?: undefined;
258
- bigWigLocation?: undefined;
259
- fastaLocation?: undefined;
260
- faiLocation?: undefined;
261
- gziLocation?: undefined;
262
- twoBitLocation?: undefined;
263
- rootUrlTemplate?: undefined;
264
- endpoint?: undefined;
265
- hicLocation?: undefined;
266
- pafLocation?: undefined;
267
- } | {
268
- type: string;
269
- bigWigLocation: FileLocation;
270
- bamLocation?: undefined;
271
- index?: undefined;
272
- cramLocation?: undefined;
273
- craiLocation?: undefined;
274
- gffLocation?: undefined;
275
- gffGzLocation?: undefined;
276
- vcfLocation?: undefined;
277
- vcfGzLocation?: undefined;
278
- bedGzLocation?: undefined;
279
- bigBedLocation?: undefined;
280
- fastaLocation?: undefined;
281
- faiLocation?: undefined;
282
- gziLocation?: undefined;
283
- twoBitLocation?: undefined;
284
- rootUrlTemplate?: undefined;
285
- endpoint?: undefined;
286
- hicLocation?: undefined;
287
- pafLocation?: undefined;
288
- } | {
289
- type: string;
290
- fastaLocation: FileLocation;
291
- faiLocation: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
292
- uri: string;
293
- locationType: string;
294
- localPath?: undefined;
295
- } | {
296
- localPath: string;
297
- locationType: string;
298
- uri?: undefined;
299
- };
300
- bamLocation?: undefined;
301
- index?: undefined;
302
- cramLocation?: undefined;
303
- craiLocation?: undefined;
304
- gffLocation?: undefined;
305
- gffGzLocation?: undefined;
306
- vcfLocation?: undefined;
307
- vcfGzLocation?: undefined;
308
- bedGzLocation?: undefined;
309
- bigBedLocation?: undefined;
310
- bigWigLocation?: undefined;
311
- gziLocation?: undefined;
312
- twoBitLocation?: undefined;
313
- rootUrlTemplate?: undefined;
314
- endpoint?: undefined;
315
- hicLocation?: undefined;
316
- pafLocation?: undefined;
317
- } | {
318
- type: string;
319
- fastaLocation: FileLocation;
320
- faiLocation: import("@jbrowse/core/util/types").BlobLocation | {
321
- uri: string;
322
- locationType: string;
323
- localPath?: undefined;
324
- } | {
325
- localPath: string;
326
- locationType: string;
327
- uri?: undefined;
328
- };
329
- gziLocation: import("@jbrowse/core/util/types").BlobLocation | {
330
- uri: string;
331
- locationType: string;
332
- localPath?: undefined;
333
- } | {
334
- localPath: string;
335
- locationType: string;
336
- uri?: undefined;
337
- };
338
- bamLocation?: undefined;
339
- index?: undefined;
340
- cramLocation?: undefined;
341
- craiLocation?: undefined;
342
- gffLocation?: undefined;
343
- gffGzLocation?: undefined;
344
- vcfLocation?: undefined;
345
- vcfGzLocation?: undefined;
346
- bedGzLocation?: undefined;
347
- bigBedLocation?: undefined;
348
- bigWigLocation?: undefined;
349
- twoBitLocation?: undefined;
350
- rootUrlTemplate?: undefined;
351
- endpoint?: undefined;
352
- hicLocation?: undefined;
353
- pafLocation?: undefined;
354
- } | {
355
- type: string;
356
- twoBitLocation: FileLocation;
357
- bamLocation?: undefined;
358
- index?: undefined;
359
- cramLocation?: undefined;
360
- craiLocation?: undefined;
361
- gffLocation?: undefined;
362
- gffGzLocation?: undefined;
363
- vcfLocation?: undefined;
364
- vcfGzLocation?: undefined;
365
- bedGzLocation?: undefined;
366
- bigBedLocation?: undefined;
367
- bigWigLocation?: undefined;
368
- fastaLocation?: undefined;
369
- faiLocation?: undefined;
370
- gziLocation?: undefined;
371
- rootUrlTemplate?: undefined;
372
- endpoint?: undefined;
373
- hicLocation?: undefined;
374
- pafLocation?: undefined;
375
- } | {
376
- type: string;
377
- rootUrlTemplate: FileLocation;
378
- bamLocation?: undefined;
379
- index?: undefined;
380
- cramLocation?: undefined;
381
- craiLocation?: undefined;
382
- gffLocation?: undefined;
383
- gffGzLocation?: undefined;
384
- vcfLocation?: undefined;
385
- vcfGzLocation?: undefined;
386
- bedGzLocation?: undefined;
387
- bigBedLocation?: undefined;
388
- bigWigLocation?: undefined;
389
- fastaLocation?: undefined;
390
- faiLocation?: undefined;
391
- gziLocation?: undefined;
392
- twoBitLocation?: undefined;
393
- endpoint?: undefined;
394
- hicLocation?: undefined;
395
- pafLocation?: undefined;
396
- } | {
397
- type: string;
398
- endpoint: FileLocation;
399
- bamLocation?: undefined;
400
- index?: undefined;
401
- cramLocation?: undefined;
402
- craiLocation?: undefined;
403
- gffLocation?: undefined;
404
- gffGzLocation?: undefined;
405
- vcfLocation?: undefined;
406
- vcfGzLocation?: undefined;
407
- bedGzLocation?: undefined;
408
- bigBedLocation?: undefined;
409
- bigWigLocation?: undefined;
410
- fastaLocation?: undefined;
411
- faiLocation?: undefined;
412
- gziLocation?: undefined;
413
- twoBitLocation?: undefined;
414
- rootUrlTemplate?: undefined;
415
- hicLocation?: undefined;
416
- pafLocation?: undefined;
417
- } | {
418
- type: string;
419
- hicLocation: FileLocation;
420
- bamLocation?: undefined;
421
- index?: undefined;
422
- cramLocation?: undefined;
423
- craiLocation?: undefined;
424
- gffLocation?: undefined;
425
- gffGzLocation?: undefined;
426
- vcfLocation?: undefined;
427
- vcfGzLocation?: undefined;
428
- bedGzLocation?: undefined;
429
- bigBedLocation?: undefined;
430
- bigWigLocation?: undefined;
431
- fastaLocation?: undefined;
432
- faiLocation?: undefined;
433
- gziLocation?: undefined;
434
- twoBitLocation?: undefined;
435
- rootUrlTemplate?: undefined;
436
- endpoint?: undefined;
437
- pafLocation?: undefined;
438
- } | {
439
- type: string;
440
- pafLocation: FileLocation;
441
- bamLocation?: undefined;
442
- index?: undefined;
443
- cramLocation?: undefined;
444
- craiLocation?: undefined;
445
- gffLocation?: undefined;
446
- gffGzLocation?: undefined;
447
- vcfLocation?: undefined;
448
- vcfGzLocation?: undefined;
449
- bedGzLocation?: undefined;
450
- bigBedLocation?: undefined;
451
- bigWigLocation?: undefined;
452
- fastaLocation?: undefined;
453
- faiLocation?: undefined;
454
- gziLocation?: undefined;
455
- twoBitLocation?: undefined;
456
- rootUrlTemplate?: undefined;
457
- endpoint?: undefined;
458
- hicLocation?: undefined;
459
- } | undefined;
26
+ readonly trackAdapter: import("@jbrowse/core/util/tracks").AdapterConfig | undefined;
460
27
  readonly trackName: string;
461
28
  readonly isFtp: boolean;
462
29
  readonly isRelativeTrackUrl: boolean;
@@ -1,7 +1,13 @@
1
1
  /// <reference types="react" />
2
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
2
3
  declare const AssemblyTable: ({ rootModel, setIsAssemblyBeingEdited, setAssemblyBeingEdited, }: {
3
- rootModel: any;
4
+ rootModel: {
5
+ jbrowse: {
6
+ removeAssemblyConf: (arg: string) => void;
7
+ assemblies: AnyConfigurationModel[];
8
+ };
9
+ };
4
10
  setIsAssemblyBeingEdited(arg: boolean): void;
5
- setAssemblyBeingEdited(arg: any): void;
11
+ setAssemblyBeingEdited(arg: AnyConfigurationModel): void;
6
12
  }) => JSX.Element;
7
13
  export default AssemblyTable;
@@ -2,7 +2,7 @@
2
2
  import { PluginStoreModel } from '../model';
3
3
  declare function CustomPluginForm({ open, onClose, model, }: {
4
4
  open: boolean;
5
- onClose: Function;
5
+ onClose(): void;
6
6
  model: PluginStoreModel;
7
7
  }): JSX.Element;
8
8
  declare const _default: typeof CustomPluginForm;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { JBrowsePlugin } from '@jbrowse/core/util/types';
3
- import type { PluginStoreModel } from '../model';
2
+ import { JBrowsePlugin } from '@jbrowse/core/util/types';
3
+ import { PluginStoreModel } from '../model';
4
4
  declare function PluginCard({ plugin, model, adminMode, }: {
5
5
  plugin: JBrowsePlugin;
6
6
  model: PluginStoreModel;
@@ -1,8 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const SetDefaultSession: ({ rootModel, open, onClose, currentDefault, }: {
3
- rootModel: any;
4
- open: boolean;
5
- onClose: Function;
6
- currentDefault: string;
7
- }) => JSX.Element;
2
+ declare const SetDefaultSession: ({ rootModel, onClose }: {
3
+ rootModel?: unknown;
4
+ onClose: () => void;
5
+ }) => JSX.Element | null;
8
6
  export default SetDefaultSession;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import Plugin from '@jbrowse/core/Plugin';
3
3
  import PluginManager from '@jbrowse/core/PluginManager';
4
- declare const SetDefaultSession: import("react").LazyExoticComponent<({ rootModel, open, onClose, currentDefault, }: {
5
- rootModel: any;
6
- open: boolean;
7
- onClose: Function;
8
- currentDefault: string;
9
- }) => JSX.Element>;
4
+ declare const SetDefaultSession: import("react").LazyExoticComponent<({ rootModel, onClose }: {
5
+ rootModel?: unknown;
6
+ onClose: () => void;
7
+ }) => JSX.Element | null>;
10
8
  declare const AssemblyManager: import("react").LazyExoticComponent<({ rootModel, onClose, }: {
11
9
  rootModel: any;
12
10
  onClose: (arg: boolean) => void;
@@ -18,12 +16,10 @@ export default class extends Plugin {
18
16
  rootModel: any;
19
17
  onClose: (arg: boolean) => void;
20
18
  }) => JSX.Element>;
21
- SetDefaultSession: import("react").LazyExoticComponent<({ rootModel, open, onClose, currentDefault, }: {
22
- rootModel: any;
23
- open: boolean;
24
- onClose: Function;
25
- currentDefault: string;
26
- }) => JSX.Element>;
19
+ SetDefaultSession: import("react").LazyExoticComponent<({ rootModel, onClose }: {
20
+ rootModel?: unknown;
21
+ onClose: () => void;
22
+ }) => JSX.Element | null>;
27
23
  };
28
24
  install(pluginManager: PluginManager): void;
29
25
  configure(pluginManager: PluginManager): void;