@jbrowse/plugin-data-management 1.4.1 → 1.5.2

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 (37) hide show
  1. package/dist/AddTrackWidget/components/TrackSourceSelect.d.ts +2 -1
  2. package/dist/AddTrackWidget/model.d.ts +1 -363
  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 +627 -501
  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 +614 -507
  12. package/dist/plugin-data-management.esm.js.map +1 -1
  13. package/package.json +3 -2
  14. package/src/AddConnectionWidget/components/AddConnectionWidget.test.js +3 -8
  15. package/src/AddTrackWidget/components/AddTrackWidget.test.js +2 -3
  16. package/src/AddTrackWidget/components/AddTrackWidget.tsx +4 -2
  17. package/src/AddTrackWidget/components/ConfirmTrack.tsx +160 -88
  18. package/src/AddTrackWidget/components/TrackSourceSelect.tsx +30 -23
  19. package/src/AddTrackWidget/components/__snapshots__/AddTrackWidget.test.js.snap +157 -124
  20. package/src/AddTrackWidget/index.test.jsx +78 -26
  21. package/src/AddTrackWidget/model.ts +5 -14
  22. package/src/AssemblyManager/AssemblyAddForm.tsx +7 -6
  23. package/src/AssemblyManager/AssemblyManager.test.tsx +1 -0
  24. package/src/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +27 -17
  25. package/src/HierarchicalTrackSelectorWidget/model.js +3 -2
  26. package/src/PluginStoreWidget/components/CustomPluginForm.tsx +164 -56
  27. package/src/PluginStoreWidget/components/InstalledPlugin.tsx +10 -2
  28. package/src/PluginStoreWidget/components/PluginCard.tsx +7 -9
  29. package/src/PluginStoreWidget/components/PluginStoreWidget.test.js +9 -10
  30. package/src/PluginStoreWidget/components/PluginStoreWidget.tsx +36 -26
  31. package/src/PluginStoreWidget/components/__snapshots__/PluginStoreWidget.test.js.snap +89 -51
  32. package/src/SetDefaultSession/SetDefaultSession.test.tsx +7 -81
  33. package/src/SetDefaultSession/SetDefaultSession.tsx +51 -162
  34. package/src/index.ts +1 -51
  35. package/src/ucsc-trackhub/configSchema.js +4 -1
  36. package/src/ucsc-trackhub/model.js +31 -31
  37. package/src/ucsc-trackhub/ucscTrackHub.js +40 -12
@@ -3,4 +3,5 @@ import { AddTrackModel } from '../model';
3
3
  declare function TrackSourceSelect({ model }: {
4
4
  model: AddTrackModel;
5
5
  }): JSX.Element;
6
- export default TrackSourceSelect;
6
+ declare const _default: typeof TrackSourceSelect;
7
+ export default _default;
@@ -23,369 +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
- localPath?: undefined;
33
- };
34
- indexType: string;
35
- };
36
- cramLocation?: undefined;
37
- craiLocation?: undefined;
38
- gffGzLocation?: undefined;
39
- vcfLocation?: undefined;
40
- vcfGzLocation?: undefined;
41
- bedGzLocation?: undefined;
42
- bigBedLocation?: undefined;
43
- bigWigLocation?: undefined;
44
- fastaLocation?: undefined;
45
- faiLocation?: undefined;
46
- gziLocation?: undefined;
47
- twoBitLocation?: undefined;
48
- rootUrlTemplate?: undefined;
49
- endpoint?: undefined;
50
- hicLocation?: undefined;
51
- pafLocation?: undefined;
52
- } | {
53
- type: string;
54
- cramLocation: FileLocation;
55
- craiLocation: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
56
- uri: string;
57
- localPath?: undefined;
58
- };
59
- bamLocation?: undefined;
60
- index?: undefined;
61
- gffGzLocation?: undefined;
62
- vcfLocation?: undefined;
63
- vcfGzLocation?: undefined;
64
- bedGzLocation?: undefined;
65
- bigBedLocation?: undefined;
66
- bigWigLocation?: undefined;
67
- fastaLocation?: undefined;
68
- faiLocation?: undefined;
69
- gziLocation?: undefined;
70
- twoBitLocation?: undefined;
71
- rootUrlTemplate?: undefined;
72
- endpoint?: undefined;
73
- hicLocation?: undefined;
74
- pafLocation?: undefined;
75
- } | {
76
- type: string;
77
- bamLocation?: undefined;
78
- index?: undefined;
79
- cramLocation?: undefined;
80
- craiLocation?: undefined;
81
- gffGzLocation?: undefined;
82
- vcfLocation?: undefined;
83
- vcfGzLocation?: undefined;
84
- bedGzLocation?: undefined;
85
- bigBedLocation?: undefined;
86
- bigWigLocation?: undefined;
87
- fastaLocation?: undefined;
88
- faiLocation?: undefined;
89
- gziLocation?: undefined;
90
- twoBitLocation?: undefined;
91
- rootUrlTemplate?: undefined;
92
- endpoint?: undefined;
93
- hicLocation?: undefined;
94
- pafLocation?: undefined;
95
- } | {
96
- type: string;
97
- gffGzLocation: FileLocation;
98
- index: {
99
- location: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
100
- uri: string;
101
- localPath?: undefined;
102
- };
103
- indexType: string;
104
- };
105
- bamLocation?: undefined;
106
- cramLocation?: undefined;
107
- craiLocation?: undefined;
108
- vcfLocation?: undefined;
109
- vcfGzLocation?: undefined;
110
- bedGzLocation?: undefined;
111
- bigBedLocation?: undefined;
112
- bigWigLocation?: undefined;
113
- fastaLocation?: undefined;
114
- faiLocation?: undefined;
115
- gziLocation?: undefined;
116
- twoBitLocation?: undefined;
117
- rootUrlTemplate?: undefined;
118
- endpoint?: undefined;
119
- hicLocation?: undefined;
120
- pafLocation?: undefined;
121
- } | {
122
- type: string;
123
- vcfLocation: FileLocation;
124
- bamLocation?: undefined;
125
- index?: undefined;
126
- cramLocation?: undefined;
127
- craiLocation?: undefined;
128
- gffGzLocation?: undefined;
129
- vcfGzLocation?: undefined;
130
- bedGzLocation?: undefined;
131
- bigBedLocation?: undefined;
132
- bigWigLocation?: undefined;
133
- fastaLocation?: undefined;
134
- faiLocation?: undefined;
135
- gziLocation?: undefined;
136
- twoBitLocation?: undefined;
137
- rootUrlTemplate?: undefined;
138
- endpoint?: undefined;
139
- hicLocation?: undefined;
140
- pafLocation?: undefined;
141
- } | {
142
- type: string;
143
- vcfGzLocation: FileLocation;
144
- index: {
145
- location: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
146
- uri: string;
147
- localPath?: undefined;
148
- };
149
- indexType: string;
150
- };
151
- bamLocation?: undefined;
152
- cramLocation?: undefined;
153
- craiLocation?: undefined;
154
- gffGzLocation?: undefined;
155
- vcfLocation?: undefined;
156
- bedGzLocation?: undefined;
157
- bigBedLocation?: undefined;
158
- bigWigLocation?: undefined;
159
- fastaLocation?: undefined;
160
- faiLocation?: undefined;
161
- gziLocation?: undefined;
162
- twoBitLocation?: undefined;
163
- rootUrlTemplate?: undefined;
164
- endpoint?: undefined;
165
- hicLocation?: undefined;
166
- pafLocation?: undefined;
167
- } | {
168
- type: string;
169
- bedGzLocation: FileLocation;
170
- index: {
171
- location: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
172
- uri: string;
173
- localPath?: undefined;
174
- };
175
- indexType: string;
176
- };
177
- bamLocation?: undefined;
178
- cramLocation?: undefined;
179
- craiLocation?: undefined;
180
- gffGzLocation?: undefined;
181
- vcfLocation?: undefined;
182
- vcfGzLocation?: undefined;
183
- bigBedLocation?: undefined;
184
- bigWigLocation?: undefined;
185
- fastaLocation?: undefined;
186
- faiLocation?: undefined;
187
- gziLocation?: undefined;
188
- twoBitLocation?: undefined;
189
- rootUrlTemplate?: undefined;
190
- endpoint?: undefined;
191
- hicLocation?: undefined;
192
- pafLocation?: undefined;
193
- } | {
194
- type: string;
195
- bigBedLocation: FileLocation;
196
- bamLocation?: undefined;
197
- index?: undefined;
198
- cramLocation?: undefined;
199
- craiLocation?: undefined;
200
- gffGzLocation?: undefined;
201
- vcfLocation?: undefined;
202
- vcfGzLocation?: undefined;
203
- bedGzLocation?: undefined;
204
- bigWigLocation?: undefined;
205
- fastaLocation?: undefined;
206
- faiLocation?: undefined;
207
- gziLocation?: undefined;
208
- twoBitLocation?: undefined;
209
- rootUrlTemplate?: undefined;
210
- endpoint?: undefined;
211
- hicLocation?: undefined;
212
- pafLocation?: undefined;
213
- } | {
214
- type: string;
215
- bigWigLocation: FileLocation;
216
- bamLocation?: undefined;
217
- index?: undefined;
218
- cramLocation?: undefined;
219
- craiLocation?: undefined;
220
- gffGzLocation?: undefined;
221
- vcfLocation?: undefined;
222
- vcfGzLocation?: undefined;
223
- bedGzLocation?: undefined;
224
- bigBedLocation?: undefined;
225
- fastaLocation?: undefined;
226
- faiLocation?: undefined;
227
- gziLocation?: undefined;
228
- twoBitLocation?: undefined;
229
- rootUrlTemplate?: undefined;
230
- endpoint?: undefined;
231
- hicLocation?: undefined;
232
- pafLocation?: undefined;
233
- } | {
234
- type: string;
235
- fastaLocation: FileLocation;
236
- faiLocation: import("@jbrowse/core/util/types").LocalPathLocation | import("@jbrowse/core/util/types").UriLocation | import("@jbrowse/core/util/types").BlobLocation | {
237
- uri: string;
238
- localPath?: undefined;
239
- };
240
- bamLocation?: undefined;
241
- index?: undefined;
242
- cramLocation?: undefined;
243
- craiLocation?: undefined;
244
- gffGzLocation?: undefined;
245
- vcfLocation?: undefined;
246
- vcfGzLocation?: undefined;
247
- bedGzLocation?: undefined;
248
- bigBedLocation?: undefined;
249
- bigWigLocation?: undefined;
250
- gziLocation?: undefined;
251
- twoBitLocation?: undefined;
252
- rootUrlTemplate?: undefined;
253
- endpoint?: undefined;
254
- hicLocation?: undefined;
255
- pafLocation?: undefined;
256
- } | {
257
- type: string;
258
- fastaLocation: FileLocation;
259
- faiLocation: import("@jbrowse/core/util/types").BlobLocation | {
260
- uri: string;
261
- localPath?: undefined;
262
- } | {
263
- localPath: string;
264
- uri?: undefined;
265
- };
266
- gziLocation: import("@jbrowse/core/util/types").BlobLocation | {
267
- uri: string;
268
- localPath?: undefined;
269
- } | {
270
- localPath: string;
271
- uri?: undefined;
272
- };
273
- bamLocation?: undefined;
274
- index?: undefined;
275
- cramLocation?: undefined;
276
- craiLocation?: undefined;
277
- gffGzLocation?: undefined;
278
- vcfLocation?: undefined;
279
- vcfGzLocation?: undefined;
280
- bedGzLocation?: undefined;
281
- bigBedLocation?: undefined;
282
- bigWigLocation?: undefined;
283
- twoBitLocation?: undefined;
284
- rootUrlTemplate?: undefined;
285
- endpoint?: undefined;
286
- hicLocation?: undefined;
287
- pafLocation?: undefined;
288
- } | {
289
- type: string;
290
- twoBitLocation: FileLocation;
291
- bamLocation?: undefined;
292
- index?: undefined;
293
- cramLocation?: undefined;
294
- craiLocation?: undefined;
295
- gffGzLocation?: undefined;
296
- vcfLocation?: undefined;
297
- vcfGzLocation?: undefined;
298
- bedGzLocation?: undefined;
299
- bigBedLocation?: undefined;
300
- bigWigLocation?: undefined;
301
- fastaLocation?: undefined;
302
- faiLocation?: undefined;
303
- gziLocation?: undefined;
304
- rootUrlTemplate?: undefined;
305
- endpoint?: undefined;
306
- hicLocation?: undefined;
307
- pafLocation?: undefined;
308
- } | {
309
- type: string;
310
- rootUrlTemplate: FileLocation;
311
- bamLocation?: undefined;
312
- index?: undefined;
313
- cramLocation?: undefined;
314
- craiLocation?: undefined;
315
- gffGzLocation?: undefined;
316
- vcfLocation?: undefined;
317
- vcfGzLocation?: undefined;
318
- bedGzLocation?: undefined;
319
- bigBedLocation?: undefined;
320
- bigWigLocation?: undefined;
321
- fastaLocation?: undefined;
322
- faiLocation?: undefined;
323
- gziLocation?: undefined;
324
- twoBitLocation?: undefined;
325
- endpoint?: undefined;
326
- hicLocation?: undefined;
327
- pafLocation?: undefined;
328
- } | {
329
- type: string;
330
- endpoint: FileLocation;
331
- bamLocation?: undefined;
332
- index?: undefined;
333
- cramLocation?: undefined;
334
- craiLocation?: undefined;
335
- gffGzLocation?: undefined;
336
- vcfLocation?: undefined;
337
- vcfGzLocation?: undefined;
338
- bedGzLocation?: undefined;
339
- bigBedLocation?: undefined;
340
- bigWigLocation?: undefined;
341
- fastaLocation?: undefined;
342
- faiLocation?: undefined;
343
- gziLocation?: undefined;
344
- twoBitLocation?: undefined;
345
- rootUrlTemplate?: undefined;
346
- hicLocation?: undefined;
347
- pafLocation?: undefined;
348
- } | {
349
- type: string;
350
- hicLocation: FileLocation;
351
- bamLocation?: undefined;
352
- index?: undefined;
353
- cramLocation?: undefined;
354
- craiLocation?: undefined;
355
- gffGzLocation?: undefined;
356
- vcfLocation?: undefined;
357
- vcfGzLocation?: undefined;
358
- bedGzLocation?: undefined;
359
- bigBedLocation?: undefined;
360
- bigWigLocation?: undefined;
361
- fastaLocation?: undefined;
362
- faiLocation?: undefined;
363
- gziLocation?: undefined;
364
- twoBitLocation?: undefined;
365
- rootUrlTemplate?: undefined;
366
- endpoint?: undefined;
367
- pafLocation?: undefined;
368
- } | {
369
- type: string;
370
- pafLocation: FileLocation;
371
- bamLocation?: undefined;
372
- index?: undefined;
373
- cramLocation?: undefined;
374
- craiLocation?: undefined;
375
- gffGzLocation?: undefined;
376
- vcfLocation?: undefined;
377
- vcfGzLocation?: undefined;
378
- bedGzLocation?: undefined;
379
- bigBedLocation?: undefined;
380
- bigWigLocation?: undefined;
381
- fastaLocation?: undefined;
382
- faiLocation?: undefined;
383
- gziLocation?: undefined;
384
- twoBitLocation?: undefined;
385
- rootUrlTemplate?: undefined;
386
- endpoint?: undefined;
387
- hicLocation?: undefined;
388
- } | undefined;
26
+ readonly trackAdapter: import("@jbrowse/core/util/tracks").AdapterConfig | undefined;
389
27
  readonly trackName: string;
390
28
  readonly isFtp: boolean;
391
29
  readonly isRelativeTrackUrl: boolean;
@@ -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;