@jbrowse/react-app2 3.7.0 → 4.0.0
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/JBrowseApp/JBrowseApp.d.ts +2 -2
- package/esm/JBrowseApp/JBrowseApp.js +3 -3
- package/esm/JBrowseApp/index.d.ts +1 -1
- package/esm/JBrowseApp/index.js +1 -1
- package/esm/components/PreferencesDialog.d.ts +2 -0
- package/esm/components/PreferencesDialog.js +7 -5
- package/esm/corePlugins.d.ts +2 -2
- package/esm/corePlugins.js +2 -2
- package/esm/createModel.d.ts +56 -41
- package/esm/createModel.js +3 -3
- package/esm/createViewState.d.ts +160 -112
- package/esm/createViewState.js +2 -2
- package/esm/index.d.ts +4 -4
- package/esm/index.js +4 -4
- package/esm/jbrowseModel.d.ts +53 -35
- package/esm/jbrowseModel.js +2 -2
- package/esm/rootModel/rootModel.d.ts +53 -38
- package/esm/rootModel/rootModel.js +23 -12
- package/esm/rpcWorker.d.ts +1 -1
- package/esm/rpcWorker.js +2 -2
- package/esm/sessionModel/index.d.ts +1645 -1866
- package/esm/types.d.ts +1 -1
- package/esm/util.d.ts +2 -2
- package/esm/util.js +5 -5
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/webpack.d.ts +4 -4
- package/esm/webpack.js +4 -4
- package/package.json +65 -74
- package/dist/JBrowseApp/AppReExport.d.ts +0 -1
- package/dist/JBrowseApp/AppReExport.js +0 -5
- package/dist/JBrowseApp/JBrowseApp.d.ts +0 -5
- package/dist/JBrowseApp/JBrowseApp.js +0 -55
- package/dist/JBrowseApp/index.d.ts +0 -1
- package/dist/JBrowseApp/index.js +0 -8
- package/dist/components/AboutDialog.d.ts +0 -1
- package/dist/components/AboutDialog.js +0 -5
- package/dist/components/PreferencesDialog.d.ts +0 -14
- package/dist/components/PreferencesDialog.js +0 -21
- package/dist/corePlugins.d.ts +0 -3
- package/dist/corePlugins.js +0 -64
- package/dist/createModel.d.ts +0 -565
- package/dist/createModel.js +0 -26
- package/dist/createViewState.d.ts +0 -1684
- package/dist/createViewState.js +0 -26
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -14
- package/dist/jbrowseModel.d.ts +0 -139
- package/dist/jbrowseModel.js +0 -7
- package/dist/loadPlugins.d.ts +0 -12
- package/dist/loadPlugins.js +0 -12
- package/dist/react-app.umd.production.min.js +0 -229
- package/dist/react-app.umd.production.min.js.LICENSE.txt +0 -195
- package/dist/react-app.umd.production.min.js.map +0 -1
- package/dist/rootModel/rootModel.d.ts +0 -577
- package/dist/rootModel/rootModel.js +0 -166
- package/dist/rootModel/rootModel.test.d.ts +0 -1
- package/dist/rootModel/rootModel.test.js +0 -140
- package/dist/rpcWorker.d.ts +0 -2
- package/dist/rpcWorker.js +0 -57
- package/dist/sessionModel/index.d.ts +0 -10028
- package/dist/sessionModel/index.js +0 -10
- package/dist/types.d.ts +0 -27
- package/dist/types.js +0 -2
- package/dist/util.d.ts +0 -5
- package/dist/util.js +0 -119
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/webpack.d.ts +0 -7
- package/dist/webpack.js +0 -53
- package/dist/workerPolyfill.d.ts +0 -0
- package/dist/workerPolyfill.js +0 -34
- package/esm/workerPolyfill.d.ts +0 -0
- package/esm/workerPolyfill.js +0 -34
package/esm/createViewState.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { onPatch } from 'mobx-state-tree';
|
|
2
|
-
import createModel from
|
|
1
|
+
import { onPatch } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
import createModel from "./createModel.js";
|
|
3
3
|
export default function createViewState(opts) {
|
|
4
4
|
const { config, plugins = [], onChange, makeWorkerInstance } = opts;
|
|
5
5
|
const { defaultSession = { name: 'NewSession' } } = config;
|
package/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as JBrowseApp } from './JBrowseApp';
|
|
2
|
-
export { default as createModel } from './createModel';
|
|
3
|
-
export { default as createViewState } from './createViewState';
|
|
4
|
-
export { default as loadPlugins } from './loadPlugins';
|
|
1
|
+
export { default as JBrowseApp } from './JBrowseApp/index.ts';
|
|
2
|
+
export { default as createModel } from './createModel.ts';
|
|
3
|
+
export { default as createViewState } from './createViewState.ts';
|
|
4
|
+
export { default as loadPlugins } from './loadPlugins.ts';
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as JBrowseApp } from
|
|
2
|
-
export { default as createModel } from
|
|
3
|
-
export { default as createViewState } from
|
|
4
|
-
export { default as loadPlugins } from
|
|
1
|
+
export { default as JBrowseApp } from "./JBrowseApp/index.js";
|
|
2
|
+
export { default as createModel } from "./createModel.js";
|
|
3
|
+
export { default as createViewState } from "./createViewState.js";
|
|
4
|
+
export { default as loadPlugins } from "./loadPlugins.js";
|
package/esm/jbrowseModel.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
-
export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
3
|
+
export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, adminMode, }: {
|
|
4
4
|
pluginManager: PluginManager;
|
|
5
5
|
assemblyConfigSchema: AnyConfigurationSchemaType;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
adminMode?: boolean;
|
|
7
|
+
}): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
8
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
|
+
rpc: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
10
|
defaultDriver: {
|
|
10
11
|
type: string;
|
|
11
12
|
description: string;
|
|
12
13
|
defaultValue: string;
|
|
13
14
|
};
|
|
14
|
-
drivers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> | undefined, import("mobx-state-tree").ModelSnapshotType<Record<string, any>>, ({} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> & import("mobx-state-tree/dist/internal").NonEmptyObject) | undefined>>, [undefined]>;
|
|
15
|
-
}, import("
|
|
15
|
+
drivers: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").ITypeUnion<import("@jbrowse/mobx-state-tree").ModelCreationType<import("@jbrowse/mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> | undefined, import("@jbrowse/mobx-state-tree").ModelSnapshotType<Record<string, any>>, ({} & Partial<import("@jbrowse/mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject) | undefined>>, [undefined]>;
|
|
16
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
16
17
|
highResolutionScaling: {
|
|
17
18
|
type: string;
|
|
18
19
|
defaultValue: number;
|
|
19
20
|
};
|
|
20
|
-
formatDetails: import("
|
|
21
|
+
formatDetails: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
21
22
|
feature: {
|
|
22
23
|
type: string;
|
|
23
24
|
description: string;
|
|
@@ -40,8 +41,8 @@ export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
|
40
41
|
defaultValue: number;
|
|
41
42
|
description: string;
|
|
42
43
|
};
|
|
43
|
-
}, import("
|
|
44
|
-
formatAbout: import("
|
|
44
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
45
|
+
formatAbout: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
45
46
|
config: {
|
|
46
47
|
type: string;
|
|
47
48
|
description: string;
|
|
@@ -52,7 +53,7 @@ export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
|
52
53
|
type: string;
|
|
53
54
|
defaultValue: boolean;
|
|
54
55
|
};
|
|
55
|
-
}, import("
|
|
56
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
56
57
|
shareURL: {
|
|
57
58
|
type: string;
|
|
58
59
|
defaultValue: string;
|
|
@@ -61,8 +62,8 @@ export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
|
61
62
|
type: string;
|
|
62
63
|
defaultValue: boolean;
|
|
63
64
|
};
|
|
64
|
-
hierarchical: import("
|
|
65
|
-
sort: import("
|
|
65
|
+
hierarchical: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
66
|
+
sort: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
66
67
|
trackNames: {
|
|
67
68
|
type: string;
|
|
68
69
|
defaultValue: boolean;
|
|
@@ -71,8 +72,8 @@ export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
|
71
72
|
type: string;
|
|
72
73
|
defaultValue: boolean;
|
|
73
74
|
};
|
|
74
|
-
}, import("
|
|
75
|
-
defaultCollapsed: import("
|
|
75
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
76
|
+
defaultCollapsed: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
76
77
|
categoryNames: {
|
|
77
78
|
type: string;
|
|
78
79
|
defaultValue: never[];
|
|
@@ -85,8 +86,8 @@ export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
|
85
86
|
type: string;
|
|
86
87
|
defaultValue: boolean;
|
|
87
88
|
};
|
|
88
|
-
}, import("
|
|
89
|
-
}, import("
|
|
89
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
90
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
90
91
|
theme: {
|
|
91
92
|
type: string;
|
|
92
93
|
defaultValue: {};
|
|
@@ -102,38 +103,55 @@ export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
|
102
103
|
locationType: string;
|
|
103
104
|
};
|
|
104
105
|
};
|
|
105
|
-
}, import("
|
|
106
|
-
plugins: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/core/PluginLoader").PluginDefinition, import("@jbrowse/core/PluginLoader").PluginDefinition, import("@jbrowse/core/PluginLoader").PluginDefinition>>;
|
|
107
|
-
assemblies: import("mobx-state-tree").IArrayType<AnyConfigurationSchemaType>;
|
|
108
|
-
tracks: import("mobx-state-tree").
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
106
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
107
|
+
plugins: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IType<import("@jbrowse/core/PluginLoader").PluginDefinition, import("@jbrowse/core/PluginLoader").PluginDefinition, import("@jbrowse/core/PluginLoader").PluginDefinition>>;
|
|
108
|
+
assemblies: import("@jbrowse/mobx-state-tree").IArrayType<AnyConfigurationSchemaType>;
|
|
109
|
+
tracks: import("@jbrowse/mobx-state-tree").IType<{
|
|
110
|
+
[key: string]: unknown;
|
|
111
|
+
trackId: string;
|
|
112
|
+
}[] | null | undefined, {
|
|
113
|
+
[key: string]: unknown;
|
|
114
|
+
trackId: string;
|
|
115
|
+
}[], {
|
|
116
|
+
[key: string]: unknown;
|
|
117
|
+
trackId: string;
|
|
118
|
+
}[]>;
|
|
119
|
+
internetAccounts: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
120
|
+
aggregateTextSearchAdapters: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
121
|
+
connections: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
122
|
+
defaultSession: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
123
|
+
preConfiguredSessions: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IType<any, any, any>>;
|
|
114
124
|
}, {
|
|
115
125
|
readonly assemblyNames: string[];
|
|
116
126
|
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
117
127
|
} & {
|
|
118
128
|
addAssemblyConf(conf: import("@jbrowse/core/configuration").AnyConfigurationModel): ({
|
|
119
129
|
[x: string]: any;
|
|
120
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
130
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
121
131
|
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
122
132
|
[x: string]: any;
|
|
123
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject &
|
|
124
|
-
|
|
125
|
-
[x: string]: any;
|
|
126
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
127
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
128
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>) | undefined;
|
|
133
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
134
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>) | undefined;
|
|
129
135
|
removeAssemblyConf(assemblyName: string): void;
|
|
130
|
-
addTrackConf(trackConf:
|
|
136
|
+
addTrackConf(trackConf: {
|
|
137
|
+
trackId: string;
|
|
138
|
+
type: string;
|
|
139
|
+
}): {
|
|
140
|
+
[key: string]: unknown;
|
|
141
|
+
trackId: string;
|
|
142
|
+
} | undefined;
|
|
131
143
|
addConnectionConf(connectionConf: import("@jbrowse/core/configuration").AnyConfigurationModel): any;
|
|
132
144
|
deleteConnectionConf(configuration: import("@jbrowse/core/configuration").AnyConfigurationModel): boolean;
|
|
133
|
-
deleteTrackConf(trackConf: import("@jbrowse/core/configuration").AnyConfigurationModel
|
|
145
|
+
deleteTrackConf(trackConf: import("@jbrowse/core/configuration").AnyConfigurationModel | {
|
|
146
|
+
trackId: string;
|
|
147
|
+
}): void;
|
|
148
|
+
updateTrackConf(trackConf: {
|
|
149
|
+
trackId: string;
|
|
150
|
+
[key: string]: unknown;
|
|
151
|
+
}): void;
|
|
134
152
|
addPlugin(pluginDefinition: import("@jbrowse/core/PluginLoader").PluginDefinition): void;
|
|
135
153
|
removePlugin(pluginDefinition: import("@jbrowse/core/PluginLoader").PluginDefinition): void;
|
|
136
154
|
setDefaultSessionConf(sessionConf: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
|
|
137
155
|
addInternetAccountConf(internetAccountConf: import("@jbrowse/core/configuration").AnyConfigurationModel): any;
|
|
138
156
|
deleteInternetAccountConf(configuration: import("@jbrowse/core/configuration").AnyConfigurationModel): boolean;
|
|
139
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
157
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
package/esm/jbrowseModel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { JBrowseModelF } from '@jbrowse/app-core';
|
|
2
|
-
export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }) {
|
|
3
|
-
return JBrowseModelF({ pluginManager, assemblyConfigSchema });
|
|
2
|
+
export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, adminMode = false, }) {
|
|
3
|
+
return JBrowseModelF({ pluginManager, assemblyConfigSchema, adminMode });
|
|
4
4
|
}
|
|
@@ -3,8 +3,8 @@ import assemblyConfigSchemaFactory from '@jbrowse/core/assemblyManager/assemblyC
|
|
|
3
3
|
import RpcManager from '@jbrowse/core/rpc/RpcManager';
|
|
4
4
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
5
5
|
import type { MenuItem } from '@jbrowse/core/ui';
|
|
6
|
+
import type { IAnyType, Instance, SnapshotIn } from '@jbrowse/mobx-state-tree';
|
|
6
7
|
import type { BaseSessionType } from '@jbrowse/product-core';
|
|
7
|
-
import type { IAnyType, Instance, SnapshotIn } from 'mobx-state-tree';
|
|
8
8
|
export interface Menu {
|
|
9
9
|
label: string;
|
|
10
10
|
menuItems: MenuItem[];
|
|
@@ -18,13 +18,13 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
18
18
|
pluginManager: PluginManager;
|
|
19
19
|
sessionModelFactory: SessionModelFactory;
|
|
20
20
|
makeWorkerInstance?: () => Worker;
|
|
21
|
-
}): import("mobx-state-tree").IModelType<{
|
|
21
|
+
}): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
22
22
|
jbrowse: IAnyType;
|
|
23
|
-
session: import("mobx-state-tree").IMaybe<IAnyType>;
|
|
24
|
-
sessionPath: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
25
|
-
assemblyManager: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
26
|
-
assemblies: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
27
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
23
|
+
session: import("@jbrowse/mobx-state-tree").IMaybe<IAnyType>;
|
|
24
|
+
sessionPath: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
25
|
+
assemblyManager: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
26
|
+
assemblies: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
27
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
28
28
|
}, {
|
|
29
29
|
error: unknown;
|
|
30
30
|
loadingP: Promise<void> | undefined;
|
|
@@ -32,6 +32,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
32
32
|
refNameAliases: {
|
|
33
33
|
[x: string]: string;
|
|
34
34
|
} | undefined;
|
|
35
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
35
36
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
36
37
|
} & {
|
|
37
38
|
getConf(arg: string): any;
|
|
@@ -55,9 +56,10 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
55
56
|
readonly refNames: string[] | undefined;
|
|
56
57
|
} & {
|
|
57
58
|
getCanonicalRefName(refName: string): string | undefined;
|
|
58
|
-
getCanonicalRefName2(
|
|
59
|
+
getCanonicalRefName2(refName: string): string;
|
|
59
60
|
getRefNameColor(refName: string): string | undefined;
|
|
60
61
|
isValidRefName(refName: string): boolean;
|
|
62
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
61
63
|
} & {
|
|
62
64
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
63
65
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -72,6 +74,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
72
74
|
[x: string]: string;
|
|
73
75
|
}): void;
|
|
74
76
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
77
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
75
78
|
setLoadingP(p?: Promise<void>): void;
|
|
76
79
|
load(): Promise<void>;
|
|
77
80
|
loadPre(): Promise<void>;
|
|
@@ -90,17 +93,18 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
90
93
|
[x: string]: string;
|
|
91
94
|
}>;
|
|
92
95
|
afterCreate(): void;
|
|
93
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
96
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
94
97
|
}, {
|
|
95
98
|
readonly assemblyNameMap: Record<string, {
|
|
96
99
|
configuration: any;
|
|
97
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
100
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
98
101
|
error: unknown;
|
|
99
102
|
loadingP: Promise<void> | undefined;
|
|
100
103
|
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
101
104
|
refNameAliases: {
|
|
102
105
|
[x: string]: string;
|
|
103
106
|
} | undefined;
|
|
107
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
104
108
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
105
109
|
} & {
|
|
106
110
|
getConf(arg: string): any;
|
|
@@ -124,9 +128,10 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
124
128
|
readonly refNames: string[] | undefined;
|
|
125
129
|
} & {
|
|
126
130
|
getCanonicalRefName(refName: string): string | undefined;
|
|
127
|
-
getCanonicalRefName2(
|
|
131
|
+
getCanonicalRefName2(refName: string): string;
|
|
128
132
|
getRefNameColor(refName: string): string | undefined;
|
|
129
133
|
isValidRefName(refName: string): boolean;
|
|
134
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
130
135
|
} & {
|
|
131
136
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
132
137
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -141,6 +146,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
141
146
|
[x: string]: string;
|
|
142
147
|
}): void;
|
|
143
148
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
149
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
144
150
|
setLoadingP(p?: Promise<void>): void;
|
|
145
151
|
load(): Promise<void>;
|
|
146
152
|
loadPre(): Promise<void>;
|
|
@@ -159,8 +165,8 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
159
165
|
[x: string]: string;
|
|
160
166
|
}>;
|
|
161
167
|
afterCreate(): void;
|
|
162
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
163
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
168
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
169
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
164
170
|
}, {
|
|
165
171
|
error: unknown;
|
|
166
172
|
loadingP: Promise<void> | undefined;
|
|
@@ -168,6 +174,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
168
174
|
refNameAliases: {
|
|
169
175
|
[x: string]: string;
|
|
170
176
|
} | undefined;
|
|
177
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
171
178
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
172
179
|
} & {
|
|
173
180
|
getConf(arg: string): any;
|
|
@@ -191,9 +198,10 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
191
198
|
readonly refNames: string[] | undefined;
|
|
192
199
|
} & {
|
|
193
200
|
getCanonicalRefName(refName: string): string | undefined;
|
|
194
|
-
getCanonicalRefName2(
|
|
201
|
+
getCanonicalRefName2(refName: string): string;
|
|
195
202
|
getRefNameColor(refName: string): string | undefined;
|
|
196
203
|
isValidRefName(refName: string): boolean;
|
|
204
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
197
205
|
} & {
|
|
198
206
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
199
207
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -208,6 +216,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
208
216
|
[x: string]: string;
|
|
209
217
|
}): void;
|
|
210
218
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
219
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
211
220
|
setLoadingP(p?: Promise<void>): void;
|
|
212
221
|
load(): Promise<void>;
|
|
213
222
|
loadPre(): Promise<void>;
|
|
@@ -226,19 +235,20 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
226
235
|
[x: string]: string;
|
|
227
236
|
}>;
|
|
228
237
|
afterCreate(): void;
|
|
229
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
238
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
230
239
|
} & {
|
|
231
240
|
getCanonicalAssemblyName(asmName: string): string | undefined;
|
|
232
241
|
getCanonicalAssemblyName2(asmName: string): string;
|
|
233
242
|
get(asmName: string): ({
|
|
234
243
|
configuration: any;
|
|
235
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
244
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
236
245
|
error: unknown;
|
|
237
246
|
loadingP: Promise<void> | undefined;
|
|
238
247
|
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
239
248
|
refNameAliases: {
|
|
240
249
|
[x: string]: string;
|
|
241
250
|
} | undefined;
|
|
251
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
242
252
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
243
253
|
} & {
|
|
244
254
|
getConf(arg: string): any;
|
|
@@ -262,9 +272,10 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
262
272
|
readonly refNames: string[] | undefined;
|
|
263
273
|
} & {
|
|
264
274
|
getCanonicalRefName(refName: string): string | undefined;
|
|
265
|
-
getCanonicalRefName2(
|
|
275
|
+
getCanonicalRefName2(refName: string): string;
|
|
266
276
|
getRefNameColor(refName: string): string | undefined;
|
|
267
277
|
isValidRefName(refName: string): boolean;
|
|
278
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
268
279
|
} & {
|
|
269
280
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
270
281
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -279,6 +290,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
279
290
|
[x: string]: string;
|
|
280
291
|
}): void;
|
|
281
292
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
293
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
282
294
|
setLoadingP(p?: Promise<void>): void;
|
|
283
295
|
load(): Promise<void>;
|
|
284
296
|
loadPre(): Promise<void>;
|
|
@@ -297,8 +309,8 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
297
309
|
[x: string]: string;
|
|
298
310
|
}>;
|
|
299
311
|
afterCreate(): void;
|
|
300
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
301
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
312
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
313
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
302
314
|
}, {
|
|
303
315
|
error: unknown;
|
|
304
316
|
loadingP: Promise<void> | undefined;
|
|
@@ -306,6 +318,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
306
318
|
refNameAliases: {
|
|
307
319
|
[x: string]: string;
|
|
308
320
|
} | undefined;
|
|
321
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
309
322
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
310
323
|
} & {
|
|
311
324
|
getConf(arg: string): any;
|
|
@@ -329,9 +342,10 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
329
342
|
readonly refNames: string[] | undefined;
|
|
330
343
|
} & {
|
|
331
344
|
getCanonicalRefName(refName: string): string | undefined;
|
|
332
|
-
getCanonicalRefName2(
|
|
345
|
+
getCanonicalRefName2(refName: string): string;
|
|
333
346
|
getRefNameColor(refName: string): string | undefined;
|
|
334
347
|
isValidRefName(refName: string): boolean;
|
|
348
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
335
349
|
} & {
|
|
336
350
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
337
351
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -346,6 +360,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
346
360
|
[x: string]: string;
|
|
347
361
|
}): void;
|
|
348
362
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
363
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
349
364
|
setLoadingP(p?: Promise<void>): void;
|
|
350
365
|
load(): Promise<void>;
|
|
351
366
|
loadPre(): Promise<void>;
|
|
@@ -364,20 +379,21 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
364
379
|
[x: string]: string;
|
|
365
380
|
}>;
|
|
366
381
|
afterCreate(): void;
|
|
367
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
382
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>) | undefined;
|
|
368
383
|
readonly assemblyNamesList: any[];
|
|
369
384
|
readonly assemblyList: import("@jbrowse/core/configuration").AnyConfigurationModel[];
|
|
370
385
|
readonly rpcManager: RpcManager;
|
|
371
386
|
} & {
|
|
372
387
|
waitForAssembly(assemblyName: string): Promise<({
|
|
373
388
|
configuration: any;
|
|
374
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
389
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
375
390
|
error: unknown;
|
|
376
391
|
loadingP: Promise<void> | undefined;
|
|
377
392
|
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
378
393
|
refNameAliases: {
|
|
379
394
|
[x: string]: string;
|
|
380
395
|
} | undefined;
|
|
396
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
381
397
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
382
398
|
} & {
|
|
383
399
|
getConf(arg: string): any;
|
|
@@ -401,9 +417,10 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
401
417
|
readonly refNames: string[] | undefined;
|
|
402
418
|
} & {
|
|
403
419
|
getCanonicalRefName(refName: string): string | undefined;
|
|
404
|
-
getCanonicalRefName2(
|
|
420
|
+
getCanonicalRefName2(refName: string): string;
|
|
405
421
|
getRefNameColor(refName: string): string | undefined;
|
|
406
422
|
isValidRefName(refName: string): boolean;
|
|
423
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
407
424
|
} & {
|
|
408
425
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
409
426
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -418,6 +435,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
418
435
|
[x: string]: string;
|
|
419
436
|
}): void;
|
|
420
437
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
438
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
421
439
|
setLoadingP(p?: Promise<void>): void;
|
|
422
440
|
load(): Promise<void>;
|
|
423
441
|
loadPre(): Promise<void>;
|
|
@@ -436,8 +454,8 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
436
454
|
[x: string]: string;
|
|
437
455
|
}>;
|
|
438
456
|
afterCreate(): void;
|
|
439
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
440
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
457
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
458
|
+
configuration: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<IAnyType>>;
|
|
441
459
|
}, {
|
|
442
460
|
error: unknown;
|
|
443
461
|
loadingP: Promise<void> | undefined;
|
|
@@ -445,6 +463,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
445
463
|
refNameAliases: {
|
|
446
464
|
[x: string]: string;
|
|
447
465
|
} | undefined;
|
|
466
|
+
canonicalToSeqAdapterRefNames: Record<string, string> | undefined;
|
|
448
467
|
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
449
468
|
} & {
|
|
450
469
|
getConf(arg: string): any;
|
|
@@ -468,9 +487,10 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
468
487
|
readonly refNames: string[] | undefined;
|
|
469
488
|
} & {
|
|
470
489
|
getCanonicalRefName(refName: string): string | undefined;
|
|
471
|
-
getCanonicalRefName2(
|
|
490
|
+
getCanonicalRefName2(refName: string): string;
|
|
472
491
|
getRefNameColor(refName: string): string | undefined;
|
|
473
492
|
isValidRefName(refName: string): boolean;
|
|
493
|
+
getSeqAdapterRefName(canonicalRefName: string): string;
|
|
474
494
|
} & {
|
|
475
495
|
setLoaded({ regions, refNameAliases, cytobands, }: {
|
|
476
496
|
regions: import("@jbrowse/core/util").Region[];
|
|
@@ -485,6 +505,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
485
505
|
[x: string]: string;
|
|
486
506
|
}): void;
|
|
487
507
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
508
|
+
setCanonicalToSeqAdapterRefNames(map: Record<string, string>): void;
|
|
488
509
|
setLoadingP(p?: Promise<void>): void;
|
|
489
510
|
load(): Promise<void>;
|
|
490
511
|
loadPre(): Promise<void>;
|
|
@@ -503,21 +524,15 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
503
524
|
[x: string]: string;
|
|
504
525
|
}>;
|
|
505
526
|
afterCreate(): void;
|
|
506
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined>;
|
|
527
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>) | undefined>;
|
|
507
528
|
getRefNameMapForAdapter(adapterConf: {
|
|
508
529
|
[x: string]: unknown;
|
|
509
|
-
}, assemblyName: string | undefined, opts: {
|
|
510
|
-
stopToken?: string;
|
|
511
|
-
sessionId: string;
|
|
512
|
-
}): Promise<{
|
|
530
|
+
}, assemblyName: string | undefined, opts: import("node_modules/@jbrowse/core/src/assemblyManager/assemblyManager.ts").AssemblyBaseOpts): Promise<{
|
|
513
531
|
[x: string]: string;
|
|
514
532
|
} | undefined>;
|
|
515
533
|
getReverseRefNameMapForAdapter(adapterConf: {
|
|
516
534
|
[x: string]: unknown;
|
|
517
|
-
}, assemblyName: string | undefined, opts: {
|
|
518
|
-
stopToken?: string;
|
|
519
|
-
sessionId: string;
|
|
520
|
-
}): Promise<{
|
|
535
|
+
}, assemblyName: string | undefined, opts: import("node_modules/@jbrowse/core/src/assemblyManager/assemblyManager.ts").AssemblyBaseOpts): Promise<{
|
|
521
536
|
[x: string]: string;
|
|
522
537
|
} | undefined>;
|
|
523
538
|
isValidRefName(refName: string, assemblyName: string): boolean;
|
|
@@ -525,9 +540,9 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
525
540
|
afterAttach(): void;
|
|
526
541
|
removeAssembly(asm: import("@jbrowse/core/assemblyManager/assembly").Assembly): void;
|
|
527
542
|
addAssembly(configuration: any): void;
|
|
528
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
543
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
529
544
|
} & {
|
|
530
|
-
internetAccounts: import("mobx-state-tree").IArrayType<IAnyType>;
|
|
545
|
+
internetAccounts: import("@jbrowse/mobx-state-tree").IArrayType<IAnyType>;
|
|
531
546
|
}, {
|
|
532
547
|
rpcManager: RpcManager;
|
|
533
548
|
adminMode: boolean;
|
|
@@ -571,7 +586,7 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
571
586
|
setError(error?: unknown): void;
|
|
572
587
|
} & {
|
|
573
588
|
menus(): import("@jbrowse/app-core").Menu[];
|
|
574
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
589
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
575
590
|
export type WebRootModelType = ReturnType<typeof RootModel>;
|
|
576
591
|
export type WebRootModel = Instance<WebRootModelType>;
|
|
577
592
|
export {};
|
|
@@ -3,17 +3,17 @@ import TextSearchManager from '@jbrowse/core/TextSearch/TextSearchManager';
|
|
|
3
3
|
import assemblyConfigSchemaFactory from '@jbrowse/core/assemblyManager/assemblyConfigSchema';
|
|
4
4
|
import RpcManager from '@jbrowse/core/rpc/RpcManager';
|
|
5
5
|
import { Cable } from '@jbrowse/core/ui/Icons';
|
|
6
|
+
import { addDisposer, cast, getSnapshot, getType, types, } from '@jbrowse/mobx-state-tree';
|
|
6
7
|
import { BaseRootModelFactory, InternetAccountsRootModelMixin, } from '@jbrowse/product-core';
|
|
7
8
|
import AddIcon from '@mui/icons-material/Add';
|
|
8
9
|
import GetAppIcon from '@mui/icons-material/GetApp';
|
|
9
10
|
import PublishIcon from '@mui/icons-material/Publish';
|
|
11
|
+
import SpaceDashboardIcon from '@mui/icons-material/SpaceDashboard';
|
|
10
12
|
import StorageIcon from '@mui/icons-material/Storage';
|
|
11
|
-
import { saveAs } from 'file-saver';
|
|
12
13
|
import { autorun } from 'mobx';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { version } from '../version';
|
|
14
|
+
import jbrowseWebFactory from "../jbrowseModel.js";
|
|
15
|
+
import { filterSessionInPlace } from "../util.js";
|
|
16
|
+
import { version } from "../version.js";
|
|
17
17
|
export default function RootModel({ pluginManager, sessionModelFactory, makeWorkerInstance = () => {
|
|
18
18
|
throw new Error('no makeWorkerInstance supplied');
|
|
19
19
|
}, }) {
|
|
@@ -46,11 +46,11 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
46
46
|
.actions(self => {
|
|
47
47
|
return {
|
|
48
48
|
afterCreate() {
|
|
49
|
-
addDisposer(self, autorun(()
|
|
49
|
+
addDisposer(self, autorun(function pluginsUpdatedAutorun() {
|
|
50
50
|
if (self.pluginsUpdated) {
|
|
51
51
|
window.location.reload();
|
|
52
52
|
}
|
|
53
|
-
}));
|
|
53
|
+
}, { name: 'PluginsUpdated' }));
|
|
54
54
|
},
|
|
55
55
|
setSession(sessionSnapshot) {
|
|
56
56
|
const oldSession = self.session;
|
|
@@ -112,11 +112,11 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
112
112
|
{
|
|
113
113
|
label: 'Export session',
|
|
114
114
|
icon: GetAppIcon,
|
|
115
|
-
onClick: (session) => {
|
|
116
|
-
const
|
|
115
|
+
onClick: async (session) => {
|
|
116
|
+
const { saveAs } = await import('file-saver-es');
|
|
117
|
+
saveAs(new Blob([
|
|
117
118
|
JSON.stringify({ session: getSnapshot(session) }, null, 2),
|
|
118
|
-
], { type: 'text/plain;charset=utf-8' });
|
|
119
|
-
saveAs(sessionBlob, 'session.json');
|
|
119
|
+
], { type: 'text/plain;charset=utf-8' }), 'session.json');
|
|
120
120
|
},
|
|
121
121
|
},
|
|
122
122
|
{ type: 'divider' },
|
|
@@ -152,7 +152,18 @@ export default function RootModel({ pluginManager, sessionModelFactory, makeWork
|
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
label: 'Tools',
|
|
155
|
-
menuItems: [
|
|
155
|
+
menuItems: [
|
|
156
|
+
{
|
|
157
|
+
label: 'Use workspaces',
|
|
158
|
+
icon: SpaceDashboardIcon,
|
|
159
|
+
type: 'checkbox',
|
|
160
|
+
checked: self.session?.useWorkspaces ?? false,
|
|
161
|
+
helpText: 'Workspaces allow you to organize views into tabs and tiles. You can drag views between tabs or split them side-by-side.',
|
|
162
|
+
onClick: () => {
|
|
163
|
+
self.session?.setUseWorkspaces(!self.session.useWorkspaces);
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
],
|
|
156
167
|
},
|
|
157
168
|
], self.mutableMenuActions);
|
|
158
169
|
},
|
package/esm/rpcWorker.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './workerPolyfill';
|
|
1
|
+
import './workerPolyfill.js';
|
|
2
2
|
export default function doNothing(): void;
|
package/esm/rpcWorker.js
CHANGED
|
@@ -6,10 +6,10 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
6
6
|
}
|
|
7
7
|
return path;
|
|
8
8
|
};
|
|
9
|
-
import './workerPolyfill';
|
|
9
|
+
import './workerPolyfill.js';
|
|
10
10
|
import { initializeWorker } from '@jbrowse/product-core';
|
|
11
11
|
import { enableStaticRendering } from 'mobx-react';
|
|
12
|
-
import corePlugins from
|
|
12
|
+
import corePlugins from "./corePlugins.js";
|
|
13
13
|
enableStaticRendering(true);
|
|
14
14
|
initializeWorker(corePlugins, {
|
|
15
15
|
fetchESM: url => import(__rewriteRelativeImportExtension(url)),
|