@jbrowse/product-core 3.7.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/RootModel/BaseRootModel.d.ts +52 -37
- package/esm/RootModel/BaseRootModel.js +1 -1
- package/esm/RootModel/FormatAbout.d.ts +2 -2
- package/esm/RootModel/FormatDetails.d.ts +2 -2
- package/esm/RootModel/HierarchicalConfig.d.ts +6 -6
- package/esm/RootModel/InternetAccounts.d.ts +4 -4
- package/esm/RootModel/InternetAccounts.js +3 -3
- package/esm/RootModel/index.d.ts +5 -5
- package/esm/RootModel/index.js +5 -5
- package/esm/Session/BaseSession.d.ts +12 -8
- package/esm/Session/BaseSession.js +12 -2
- package/esm/Session/Connections.d.ts +7 -144
- package/esm/Session/Connections.js +13 -3
- package/esm/Session/DialogQueue.d.ts +3 -3
- package/esm/Session/DialogQueue.js +4 -6
- package/esm/Session/DrawerWidgets.d.ts +17 -9
- package/esm/Session/DrawerWidgets.js +32 -8
- package/esm/Session/MultipleViews.d.ts +189 -127
- package/esm/Session/MultipleViews.js +27 -10
- package/esm/Session/ReferenceManagement.d.ts +3 -3
- package/esm/Session/ReferenceManagement.js +10 -4
- package/esm/Session/SessionTracks.d.ts +178 -122
- package/esm/Session/SessionTracks.js +13 -3
- package/esm/Session/Themes.d.ts +3 -3
- package/esm/Session/Themes.js +3 -3
- package/esm/Session/Tracks.d.ts +175 -121
- package/esm/Session/Tracks.js +16 -3
- package/esm/Session/index.d.ts +10 -10
- package/esm/Session/index.js +10 -10
- package/esm/index.d.ts +4 -4
- package/esm/index.js +4 -4
- package/esm/rpcWorker.d.ts +6 -0
- package/esm/rpcWorker.js +12 -6
- package/esm/ui/AboutDialog.d.ts +4 -2
- package/esm/ui/AboutDialog.js +4 -5
- package/esm/ui/AboutDialogContents.d.ts +4 -2
- package/esm/ui/AboutDialogContents.js +13 -12
- package/esm/ui/FileInfoPanel.d.ts +4 -2
- package/esm/ui/FileInfoPanel.js +6 -7
- package/esm/ui/HeaderButtons.js +4 -4
- package/esm/ui/RefNameInfoDialog.d.ts +4 -2
- package/esm/ui/RefNameInfoDialog.js +13 -13
- package/esm/ui/index.d.ts +1 -1
- package/esm/ui/index.js +1 -1
- package/esm/ui/util.d.ts +5 -2
- package/esm/ui/util.js +23 -5
- package/package.json +24 -34
- package/dist/RootModel/BaseRootModel.d.ts +0 -534
- package/dist/RootModel/BaseRootModel.js +0 -57
- package/dist/RootModel/FormatAbout.d.ts +0 -12
- package/dist/RootModel/FormatAbout.js +0 -18
- package/dist/RootModel/FormatDetails.d.ts +0 -24
- package/dist/RootModel/FormatDetails.js +0 -30
- package/dist/RootModel/HierarchicalConfig.d.ts +0 -26
- package/dist/RootModel/HierarchicalConfig.js +0 -32
- package/dist/RootModel/InternetAccounts.d.ts +0 -15
- package/dist/RootModel/InternetAccounts.js +0 -79
- package/dist/RootModel/index.d.ts +0 -5
- package/dist/RootModel/index.js +0 -21
- package/dist/Session/BaseSession.d.ts +0 -31
- package/dist/Session/BaseSession.js +0 -63
- package/dist/Session/Connections.d.ts +0 -158
- package/dist/Session/Connections.js +0 -84
- package/dist/Session/DialogQueue.d.ts +0 -15
- package/dist/Session/DialogQueue.js +0 -37
- package/dist/Session/DrawerWidgets.d.ts +0 -28
- package/dist/Session/DrawerWidgets.js +0 -107
- package/dist/Session/MultipleViews.d.ts +0 -1681
- package/dist/Session/MultipleViews.js +0 -75
- package/dist/Session/ReferenceManagement.d.ts +0 -15
- package/dist/Session/ReferenceManagement.js +0 -71
- package/dist/Session/SessionTracks.d.ts +0 -1664
- package/dist/Session/SessionTracks.js +0 -54
- package/dist/Session/Themes.d.ts +0 -18
- package/dist/Session/Themes.js +0 -47
- package/dist/Session/Tracks.d.ts +0 -1657
- package/dist/Session/Tracks.js +0 -36
- package/dist/Session/index.d.ts +0 -10
- package/dist/Session/index.js +0 -26
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -20
- package/dist/rpcWorker.d.ts +0 -6
- package/dist/rpcWorker.js +0 -57
- package/dist/ui/AboutDialog.d.ts +0 -5
- package/dist/ui/AboutDialog.js +0 -18
- package/dist/ui/AboutDialogContents.d.ts +0 -5
- package/dist/ui/AboutDialogContents.js +0 -41
- package/dist/ui/FileInfoPanel.d.ts +0 -4
- package/dist/ui/FileInfoPanel.js +0 -43
- package/dist/ui/HeaderButtons.d.ts +0 -6
- package/dist/ui/HeaderButtons.js +0 -31
- package/dist/ui/RefNameInfoDialog.d.ts +0 -6
- package/dist/ui/RefNameInfoDialog.js +0 -87
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -17
- package/dist/ui/util.d.ts +0 -12
- package/dist/ui/util.js +0 -28
|
@@ -2,19 +2,19 @@ import TextSearchManager from '@jbrowse/core/TextSearch/TextSearchManager';
|
|
|
2
2
|
import RpcManager from '@jbrowse/core/rpc/RpcManager';
|
|
3
3
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
4
4
|
import type { BaseAssemblyConfigSchema } from '@jbrowse/core/assemblyManager';
|
|
5
|
-
import type { IAnyType, Instance, SnapshotIn } from 'mobx-state-tree';
|
|
5
|
+
import type { IAnyType, Instance, SnapshotIn } from '@jbrowse/mobx-state-tree';
|
|
6
6
|
export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType, sessionModelType, assemblyConfigSchema, }: {
|
|
7
7
|
pluginManager: PluginManager;
|
|
8
8
|
jbrowseModelType: IAnyType;
|
|
9
9
|
sessionModelType: IAnyType;
|
|
10
10
|
assemblyConfigSchema: BaseAssemblyConfigSchema;
|
|
11
|
-
}): import("mobx-state-tree").IModelType<{
|
|
11
|
+
}): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
12
12
|
jbrowse: IAnyType;
|
|
13
|
-
session: import("mobx-state-tree").IMaybe<IAnyType>;
|
|
14
|
-
sessionPath: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
15
|
-
assemblyManager: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
16
|
-
assemblies: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
17
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
13
|
+
session: import("@jbrowse/mobx-state-tree").IMaybe<IAnyType>;
|
|
14
|
+
sessionPath: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
15
|
+
assemblyManager: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
16
|
+
assemblies: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
17
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
18
18
|
}, {
|
|
19
19
|
error: unknown;
|
|
20
20
|
loadingP: Promise<void> | undefined;
|
|
@@ -22,6 +22,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
22
22
|
refNameAliases: {
|
|
23
23
|
[x: string]: string;
|
|
24
24
|
} | undefined;
|
|
25
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
25
26
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
26
27
|
} & {
|
|
27
28
|
getConf(arg: string): any;
|
|
@@ -45,9 +46,10 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
45
46
|
readonly refNames: string[] | undefined;
|
|
46
47
|
} & {
|
|
47
48
|
getCanonicalRefName(refName: string): string | undefined;
|
|
48
|
-
getCanonicalRefName2(
|
|
49
|
+
getCanonicalRefName2(refName: string): string;
|
|
49
50
|
getRefNameColor(refName: string): string | undefined;
|
|
50
51
|
isValidRefName(refName: string): boolean;
|
|
52
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
51
53
|
} & {
|
|
52
54
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
53
55
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -62,6 +64,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
62
64
|
[x: string]: string;
|
|
63
65
|
}): void;
|
|
64
66
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
67
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
65
68
|
setLoadingP(p?: Promise<void>): void;
|
|
66
69
|
load(): Promise<void>;
|
|
67
70
|
loadPre(): Promise<void>;
|
|
@@ -80,17 +83,18 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
80
83
|
[x: string]: string;
|
|
81
84
|
}>;
|
|
82
85
|
afterCreate(): void;
|
|
83
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
86
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
84
87
|
}, {
|
|
85
88
|
readonly assemblyNameMap: Record<string, {
|
|
86
89
|
configuration: any;
|
|
87
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
90
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
88
91
|
error: unknown;
|
|
89
92
|
loadingP: Promise<void> | undefined;
|
|
90
93
|
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
91
94
|
refNameAliases: {
|
|
92
95
|
[x: string]: string;
|
|
93
96
|
} | undefined;
|
|
97
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
94
98
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
95
99
|
} & {
|
|
96
100
|
getConf(arg: string): any;
|
|
@@ -114,9 +118,10 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
114
118
|
readonly refNames: string[] | undefined;
|
|
115
119
|
} & {
|
|
116
120
|
getCanonicalRefName(refName: string): string | undefined;
|
|
117
|
-
getCanonicalRefName2(
|
|
121
|
+
getCanonicalRefName2(refName: string): string;
|
|
118
122
|
getRefNameColor(refName: string): string | undefined;
|
|
119
123
|
isValidRefName(refName: string): boolean;
|
|
124
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
120
125
|
} & {
|
|
121
126
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
122
127
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -131,6 +136,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
131
136
|
[x: string]: string;
|
|
132
137
|
}): void;
|
|
133
138
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
139
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
134
140
|
setLoadingP(p?: Promise<void>): void;
|
|
135
141
|
load(): Promise<void>;
|
|
136
142
|
loadPre(): Promise<void>;
|
|
@@ -149,8 +155,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
149
155
|
[x: string]: string;
|
|
150
156
|
}>;
|
|
151
157
|
afterCreate(): void;
|
|
152
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
153
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
158
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
159
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
154
160
|
}, {
|
|
155
161
|
error: unknown;
|
|
156
162
|
loadingP: Promise<void> | undefined;
|
|
@@ -158,6 +164,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
158
164
|
refNameAliases: {
|
|
159
165
|
[x: string]: string;
|
|
160
166
|
} | undefined;
|
|
167
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
161
168
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
162
169
|
} & {
|
|
163
170
|
getConf(arg: string): any;
|
|
@@ -181,9 +188,10 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
181
188
|
readonly refNames: string[] | undefined;
|
|
182
189
|
} & {
|
|
183
190
|
getCanonicalRefName(refName: string): string | undefined;
|
|
184
|
-
getCanonicalRefName2(
|
|
191
|
+
getCanonicalRefName2(refName: string): string;
|
|
185
192
|
getRefNameColor(refName: string): string | undefined;
|
|
186
193
|
isValidRefName(refName: string): boolean;
|
|
194
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
187
195
|
} & {
|
|
188
196
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
189
197
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -198,6 +206,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
198
206
|
[x: string]: string;
|
|
199
207
|
}): void;
|
|
200
208
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
209
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
201
210
|
setLoadingP(p?: Promise<void>): void;
|
|
202
211
|
load(): Promise<void>;
|
|
203
212
|
loadPre(): Promise<void>;
|
|
@@ -216,19 +225,20 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
216
225
|
[x: string]: string;
|
|
217
226
|
}>;
|
|
218
227
|
afterCreate(): void;
|
|
219
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
228
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
220
229
|
} & {
|
|
221
230
|
getCanonicalAssemblyName(asmName: string): string | undefined;
|
|
222
231
|
getCanonicalAssemblyName2(asmName: string): string;
|
|
223
232
|
get(asmName: string): ({
|
|
224
233
|
configuration: any;
|
|
225
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
234
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
226
235
|
error: unknown;
|
|
227
236
|
loadingP: Promise<void> | undefined;
|
|
228
237
|
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
229
238
|
refNameAliases: {
|
|
230
239
|
[x: string]: string;
|
|
231
240
|
} | undefined;
|
|
241
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
232
242
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
233
243
|
} & {
|
|
234
244
|
getConf(arg: string): any;
|
|
@@ -252,9 +262,10 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
252
262
|
readonly refNames: string[] | undefined;
|
|
253
263
|
} & {
|
|
254
264
|
getCanonicalRefName(refName: string): string | undefined;
|
|
255
|
-
getCanonicalRefName2(
|
|
265
|
+
getCanonicalRefName2(refName: string): string;
|
|
256
266
|
getRefNameColor(refName: string): string | undefined;
|
|
257
267
|
isValidRefName(refName: string): boolean;
|
|
268
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
258
269
|
} & {
|
|
259
270
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
260
271
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -269,6 +280,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
269
280
|
[x: string]: string;
|
|
270
281
|
}): void;
|
|
271
282
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
283
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
272
284
|
setLoadingP(p?: Promise<void>): void;
|
|
273
285
|
load(): Promise<void>;
|
|
274
286
|
loadPre(): Promise<void>;
|
|
@@ -287,8 +299,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
287
299
|
[x: string]: string;
|
|
288
300
|
}>;
|
|
289
301
|
afterCreate(): void;
|
|
290
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
291
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
302
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
303
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
292
304
|
}, {
|
|
293
305
|
error: unknown;
|
|
294
306
|
loadingP: Promise<void> | undefined;
|
|
@@ -296,6 +308,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
296
308
|
refNameAliases: {
|
|
297
309
|
[x: string]: string;
|
|
298
310
|
} | undefined;
|
|
311
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
299
312
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
300
313
|
} & {
|
|
301
314
|
getConf(arg: string): any;
|
|
@@ -319,9 +332,10 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
319
332
|
readonly refNames: string[] | undefined;
|
|
320
333
|
} & {
|
|
321
334
|
getCanonicalRefName(refName: string): string | undefined;
|
|
322
|
-
getCanonicalRefName2(
|
|
335
|
+
getCanonicalRefName2(refName: string): string;
|
|
323
336
|
getRefNameColor(refName: string): string | undefined;
|
|
324
337
|
isValidRefName(refName: string): boolean;
|
|
338
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
325
339
|
} & {
|
|
326
340
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
327
341
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -336,6 +350,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
336
350
|
[x: string]: string;
|
|
337
351
|
}): void;
|
|
338
352
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
353
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
339
354
|
setLoadingP(p?: Promise<void>): void;
|
|
340
355
|
load(): Promise<void>;
|
|
341
356
|
loadPre(): Promise<void>;
|
|
@@ -354,20 +369,21 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
354
369
|
[x: string]: string;
|
|
355
370
|
}>;
|
|
356
371
|
afterCreate(): void;
|
|
357
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
372
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>) | undefined;
|
|
358
373
|
readonly assemblyNamesList: any[];
|
|
359
374
|
readonly assemblyList: import("@jbrowse/core/configuration").AnyConfigurationModel[];
|
|
360
375
|
readonly rpcManager: RpcManager;
|
|
361
376
|
} & {
|
|
362
377
|
waitForAssembly(assemblyName: string): Promise<({
|
|
363
378
|
configuration: any;
|
|
364
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
379
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
365
380
|
error: unknown;
|
|
366
381
|
loadingP: Promise<void> | undefined;
|
|
367
382
|
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
368
383
|
refNameAliases: {
|
|
369
384
|
[x: string]: string;
|
|
370
385
|
} | undefined;
|
|
386
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
371
387
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
372
388
|
} & {
|
|
373
389
|
getConf(arg: string): any;
|
|
@@ -391,9 +407,10 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
391
407
|
readonly refNames: string[] | undefined;
|
|
392
408
|
} & {
|
|
393
409
|
getCanonicalRefName(refName: string): string | undefined;
|
|
394
|
-
getCanonicalRefName2(
|
|
410
|
+
getCanonicalRefName2(refName: string): string;
|
|
395
411
|
getRefNameColor(refName: string): string | undefined;
|
|
396
412
|
isValidRefName(refName: string): boolean;
|
|
413
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
397
414
|
} & {
|
|
398
415
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
399
416
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -408,6 +425,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
408
425
|
[x: string]: string;
|
|
409
426
|
}): void;
|
|
410
427
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
428
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
411
429
|
setLoadingP(p?: Promise<void>): void;
|
|
412
430
|
load(): Promise<void>;
|
|
413
431
|
loadPre(): Promise<void>;
|
|
@@ -426,8 +444,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
426
444
|
[x: string]: string;
|
|
427
445
|
}>;
|
|
428
446
|
afterCreate(): void;
|
|
429
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
430
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
447
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
448
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
431
449
|
}, {
|
|
432
450
|
error: unknown;
|
|
433
451
|
loadingP: Promise<void> | undefined;
|
|
@@ -435,6 +453,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
435
453
|
refNameAliases: {
|
|
436
454
|
[x: string]: string;
|
|
437
455
|
} | undefined;
|
|
456
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
438
457
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
439
458
|
} & {
|
|
440
459
|
getConf(arg: string): any;
|
|
@@ -458,9 +477,10 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
458
477
|
readonly refNames: string[] | undefined;
|
|
459
478
|
} & {
|
|
460
479
|
getCanonicalRefName(refName: string): string | undefined;
|
|
461
|
-
getCanonicalRefName2(
|
|
480
|
+
getCanonicalRefName2(refName: string): string;
|
|
462
481
|
getRefNameColor(refName: string): string | undefined;
|
|
463
482
|
isValidRefName(refName: string): boolean;
|
|
483
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
464
484
|
} & {
|
|
465
485
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
466
486
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -475,6 +495,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
475
495
|
[x: string]: string;
|
|
476
496
|
}): void;
|
|
477
497
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
498
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
478
499
|
setLoadingP(p?: Promise<void>): void;
|
|
479
500
|
load(): Promise<void>;
|
|
480
501
|
loadPre(): Promise<void>;
|
|
@@ -493,21 +514,15 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
493
514
|
[x: string]: string;
|
|
494
515
|
}>;
|
|
495
516
|
afterCreate(): void;
|
|
496
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined>;
|
|
517
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>) | undefined>;
|
|
497
518
|
getRefNameMapForAdapter(adapterConf: {
|
|
498
519
|
[x: string]: unknown;
|
|
499
|
-
}, assemblyName: string | undefined, opts: {
|
|
500
|
-
stopToken?: string;
|
|
501
|
-
sessionId: string;
|
|
502
|
-
}): Promise<{
|
|
520
|
+
}, assemblyName: string | undefined, opts: import("node_modules/@jbrowse/core/src/assemblyManager/assemblyManager").AssemblyBaseOpts): Promise<{
|
|
503
521
|
[x: string]: string;
|
|
504
522
|
} | undefined>;
|
|
505
523
|
getReverseRefNameMapForAdapter(adapterConf: {
|
|
506
524
|
[x: string]: unknown;
|
|
507
|
-
}, assemblyName: string | undefined, opts: {
|
|
508
|
-
stopToken?: string;
|
|
509
|
-
sessionId: string;
|
|
510
|
-
}): Promise<{
|
|
525
|
+
}, assemblyName: string | undefined, opts: import("node_modules/@jbrowse/core/src/assemblyManager/assemblyManager").AssemblyBaseOpts): Promise<{
|
|
511
526
|
[x: string]: string;
|
|
512
527
|
} | undefined>;
|
|
513
528
|
isValidRefName(refName: string, assemblyName: string): boolean;
|
|
@@ -515,7 +530,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
515
530
|
afterAttach(): void;
|
|
516
531
|
removeAssembly(asm: import("@jbrowse/core/assemblyManager/assembly").Assembly): void;
|
|
517
532
|
addAssembly(configuration: any): void;
|
|
518
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
533
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
519
534
|
}, {
|
|
520
535
|
rpcManager: RpcManager;
|
|
521
536
|
adminMode: boolean;
|
|
@@ -528,7 +543,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
528
543
|
setDefaultSession(): void;
|
|
529
544
|
setSessionPath(path: string): void;
|
|
530
545
|
renameCurrentSession(newName: string): void;
|
|
531
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
546
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
532
547
|
export type BaseRootModelType = ReturnType<typeof BaseRootModelFactory>;
|
|
533
548
|
export type BaseRootModel = Instance<BaseRootModelType>;
|
|
534
549
|
export declare function isRootModel(thing: unknown): thing is BaseRootModelType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import TextSearchManager from '@jbrowse/core/TextSearch/TextSearchManager';
|
|
2
2
|
import assemblyManagerFactory from '@jbrowse/core/assemblyManager';
|
|
3
3
|
import RpcManager from '@jbrowse/core/rpc/RpcManager';
|
|
4
|
-
import { cast, getSnapshot, isStateTreeNode, types } from 'mobx-state-tree';
|
|
4
|
+
import { cast, getSnapshot, isStateTreeNode, types, } from '@jbrowse/mobx-state-tree';
|
|
5
5
|
export function BaseRootModelFactory({ pluginManager, jbrowseModelType, sessionModelType, assemblyConfigSchema, }) {
|
|
6
6
|
return types
|
|
7
7
|
.model('BaseRootModel', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function FormatAboutConfigSchemaFactory(): import("
|
|
1
|
+
export declare function FormatAboutConfigSchemaFactory(): import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
config: {
|
|
3
3
|
type: string;
|
|
4
4
|
description: string;
|
|
@@ -9,4 +9,4 @@ export declare function FormatAboutConfigSchemaFactory(): import("@jbrowse/core/
|
|
|
9
9
|
type: string;
|
|
10
10
|
defaultValue: boolean;
|
|
11
11
|
};
|
|
12
|
-
}, import("
|
|
12
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function FormatDetailsConfigSchemaFactory(): import("
|
|
1
|
+
export declare function FormatDetailsConfigSchemaFactory(): import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
feature: {
|
|
3
3
|
type: string;
|
|
4
4
|
description: string;
|
|
@@ -21,4 +21,4 @@ export declare function FormatDetailsConfigSchemaFactory(): import("@jbrowse/cor
|
|
|
21
21
|
defaultValue: number;
|
|
22
22
|
description: string;
|
|
23
23
|
};
|
|
24
|
-
}, import("
|
|
24
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function HierarchicalConfigSchemaFactory(): import("
|
|
2
|
-
sort: import("
|
|
1
|
+
export declare function HierarchicalConfigSchemaFactory(): import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
sort: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
trackNames: {
|
|
4
4
|
type: string;
|
|
5
5
|
defaultValue: boolean;
|
|
@@ -8,8 +8,8 @@ export declare function HierarchicalConfigSchemaFactory(): import("@jbrowse/core
|
|
|
8
8
|
type: string;
|
|
9
9
|
defaultValue: boolean;
|
|
10
10
|
};
|
|
11
|
-
}, import("
|
|
12
|
-
defaultCollapsed: import("
|
|
11
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
12
|
+
defaultCollapsed: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
13
13
|
categoryNames: {
|
|
14
14
|
type: string;
|
|
15
15
|
defaultValue: never[];
|
|
@@ -22,5 +22,5 @@ export declare function HierarchicalConfigSchemaFactory(): import("@jbrowse/core
|
|
|
22
22
|
type: string;
|
|
23
23
|
defaultValue: boolean;
|
|
24
24
|
};
|
|
25
|
-
}, import("
|
|
26
|
-
}, import("
|
|
25
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
26
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
3
|
import type { UriLocation } from '@jbrowse/core/util';
|
|
4
|
-
import type { Instance } from 'mobx-state-tree';
|
|
5
|
-
export declare function InternetAccountsRootModelMixin(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
6
|
-
internetAccounts: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
4
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
5
|
+
export declare function InternetAccountsRootModelMixin(pluginManager: PluginManager): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
6
|
+
internetAccounts: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyType>;
|
|
7
7
|
}, {
|
|
8
8
|
initializeInternetAccount(internetAccountConfig: AnyConfigurationModel, initialSnapshot?: {}): any;
|
|
9
9
|
createEphemeralInternetAccount(internetAccountId: string, initialSnapshot: Record<string, unknown>, url: string): any;
|
|
10
10
|
findAppropriateInternetAccount(location: UriLocation): any;
|
|
11
11
|
} & {
|
|
12
12
|
afterCreate(): void;
|
|
13
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
13
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
14
14
|
export type RootModelWithInternetAccountsType = ReturnType<typeof InternetAccountsRootModelMixin>;
|
|
15
15
|
export type RootModelWithInternetAccounts = Instance<RootModelWithInternetAccountsType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { addDisposer, types } from '@jbrowse/mobx-state-tree';
|
|
1
2
|
import { autorun } from 'mobx';
|
|
2
|
-
import { addDisposer, types } from 'mobx-state-tree';
|
|
3
3
|
export function InternetAccountsRootModelMixin(pluginManager) {
|
|
4
4
|
return types
|
|
5
5
|
.model({
|
|
@@ -65,12 +65,12 @@ export function InternetAccountsRootModelMixin(pluginManager) {
|
|
|
65
65
|
}))
|
|
66
66
|
.actions(self => ({
|
|
67
67
|
afterCreate() {
|
|
68
|
-
addDisposer(self, autorun(()
|
|
68
|
+
addDisposer(self, autorun(function internetAccountsAutorun() {
|
|
69
69
|
const { jbrowse } = self;
|
|
70
70
|
for (const internetAccount of jbrowse.internetAccounts) {
|
|
71
71
|
self.initializeInternetAccount(internetAccount);
|
|
72
72
|
}
|
|
73
|
-
}));
|
|
73
|
+
}, { name: 'InternetAccounts' }));
|
|
74
74
|
},
|
|
75
75
|
}));
|
|
76
76
|
}
|
package/esm/RootModel/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './BaseRootModel';
|
|
2
|
-
export * from './InternetAccounts';
|
|
3
|
-
export * from './FormatAbout';
|
|
4
|
-
export * from './FormatDetails';
|
|
5
|
-
export * from './HierarchicalConfig';
|
|
1
|
+
export * from './BaseRootModel.ts';
|
|
2
|
+
export * from './InternetAccounts.ts';
|
|
3
|
+
export * from './FormatAbout.ts';
|
|
4
|
+
export * from './FormatDetails.ts';
|
|
5
|
+
export * from './HierarchicalConfig.ts';
|
package/esm/RootModel/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./BaseRootModel.js";
|
|
2
|
+
export * from "./InternetAccounts.js";
|
|
3
|
+
export * from "./FormatAbout.js";
|
|
4
|
+
export * from "./FormatDetails.js";
|
|
5
|
+
export * from "./HierarchicalConfig.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { BaseRootModelType } from '../RootModel/BaseRootModel';
|
|
1
|
+
import type { BaseRootModelType } from '../RootModel/BaseRootModel.ts';
|
|
2
2
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
import type { BaseAssemblyConfigSchema } from '@jbrowse/core/assemblyManager';
|
|
4
4
|
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
5
|
-
import type { IAnyStateTreeNode, Instance } from 'mobx-state-tree';
|
|
6
|
-
export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelType, JB_CONFIG_SCHEMA extends AnyConfigurationSchemaType>(_pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
7
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
8
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
9
|
-
margin: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
5
|
+
import type { IAnyStateTreeNode, Instance } from '@jbrowse/mobx-state-tree';
|
|
6
|
+
export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelType, JB_CONFIG_SCHEMA extends AnyConfigurationSchemaType>(_pluginManager: PluginManager): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
7
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
8
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
9
|
+
margin: import("@jbrowse/mobx-state-tree").IType<number | undefined, number, number>;
|
|
10
10
|
}, {
|
|
11
11
|
selection: unknown;
|
|
12
12
|
hovered: unknown;
|
|
13
13
|
} & {
|
|
14
|
-
readonly root: import("mobx-state-tree").TypeOrStateTreeNodeToStateTreeNode<ROOT_MODEL_TYPE>;
|
|
14
|
+
readonly root: import("@jbrowse/mobx-state-tree").TypeOrStateTreeNodeToStateTreeNode<ROOT_MODEL_TYPE>;
|
|
15
15
|
} & {
|
|
16
16
|
readonly jbrowse: any;
|
|
17
17
|
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
@@ -24,7 +24,11 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
24
24
|
setSelection(thing: unknown): void;
|
|
25
25
|
clearSelection(): void;
|
|
26
26
|
setHovered(thing: unknown): void;
|
|
27
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree").
|
|
27
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
28
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
29
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
30
|
+
margin: import("@jbrowse/mobx-state-tree").IType<number | undefined, number, number>;
|
|
31
|
+
}>>;
|
|
28
32
|
export type BaseSessionType = ReturnType<typeof BaseSessionModel>;
|
|
29
33
|
export type BaseSession = Instance<BaseSessionType>;
|
|
30
34
|
export declare function isBaseSession(thing: IAnyStateTreeNode): thing is BaseSession;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementId } from '@jbrowse/core/util/types/mst';
|
|
2
|
-
import { getParent, isStateTreeNode, types } from 'mobx-state-tree';
|
|
2
|
+
import { getParent, isStateTreeNode, types } from '@jbrowse/mobx-state-tree';
|
|
3
3
|
export function BaseSessionModel(_pluginManager) {
|
|
4
4
|
return types
|
|
5
5
|
.model({
|
|
@@ -48,7 +48,17 @@ export function BaseSessionModel(_pluginManager) {
|
|
|
48
48
|
setHovered(thing) {
|
|
49
49
|
self.hovered = thing;
|
|
50
50
|
},
|
|
51
|
-
}))
|
|
51
|
+
}))
|
|
52
|
+
.postProcessSnapshot(snap => {
|
|
53
|
+
if (!snap) {
|
|
54
|
+
return snap;
|
|
55
|
+
}
|
|
56
|
+
const { margin, ...rest } = snap;
|
|
57
|
+
return {
|
|
58
|
+
...rest,
|
|
59
|
+
...(margin ? { margin } : {}),
|
|
60
|
+
};
|
|
61
|
+
});
|
|
52
62
|
}
|
|
53
63
|
export function isBaseSession(thing) {
|
|
54
64
|
return 'id' in thing && 'name' in thing && 'root' in thing;
|