@jbrowse/web-core 2.13.1 → 2.15.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/dist/BaseWebSession/index.d.ts +3351 -2235
- package/dist/BaseWebSession/index.js +16 -14
- package/dist/SessionConnections.d.ts +72 -12
- package/esm/BaseWebSession/index.d.ts +3351 -2235
- package/esm/BaseWebSession/index.js +16 -14
- package/esm/SessionConnections.d.ts +72 -12
- package/package.json +7 -7
|
@@ -27,7 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.BaseWebSession = BaseWebSession;
|
|
30
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
31
30
|
const react_1 = require("react");
|
|
32
31
|
const clone_1 = __importDefault(require("clone"));
|
|
33
32
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
@@ -220,9 +219,14 @@ function BaseWebSession({ pluginManager, assemblyConfigSchema, }) {
|
|
|
220
219
|
* #action
|
|
221
220
|
*/
|
|
222
221
|
removeSessionPlugin(pluginDefinition) {
|
|
223
|
-
self.sessionPlugins = (0, mobx_state_tree_1.cast)(self.sessionPlugins.filter(plugin =>
|
|
222
|
+
self.sessionPlugins = (0, mobx_state_tree_1.cast)(self.sessionPlugins.filter(plugin =>
|
|
223
|
+
// @ts-expect-error
|
|
224
|
+
plugin.url !== pluginDefinition.url ||
|
|
225
|
+
// @ts-expect-error
|
|
224
226
|
plugin.umdUrl !== pluginDefinition.umdUrl ||
|
|
227
|
+
// @ts-expect-error
|
|
225
228
|
plugin.cjsUrl !== pluginDefinition.cjsUrl ||
|
|
229
|
+
// @ts-expect-error
|
|
226
230
|
plugin.esmUrl !== pluginDefinition.esmUrl));
|
|
227
231
|
(0, mobx_state_tree_1.getParent)(self).setPluginsUpdated(true);
|
|
228
232
|
},
|
|
@@ -316,7 +320,9 @@ function BaseWebSession({ pluginManager, assemblyConfigSchema, }) {
|
|
|
316
320
|
{
|
|
317
321
|
label: 'Settings',
|
|
318
322
|
disabled: !canEdit,
|
|
319
|
-
onClick: () =>
|
|
323
|
+
onClick: () => {
|
|
324
|
+
self.editTrackConfiguration(config);
|
|
325
|
+
},
|
|
320
326
|
icon: Settings_1.default,
|
|
321
327
|
},
|
|
322
328
|
{
|
|
@@ -362,17 +368,13 @@ function BaseWebSession({ pluginManager, assemblyConfigSchema, }) {
|
|
|
362
368
|
return mobx_state_tree_1.types.snapshotProcessor(extendedSessionModel, {
|
|
363
369
|
// @ts-expect-error
|
|
364
370
|
preProcessor(snapshot) {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
return rest;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
return snapshot;
|
|
371
|
+
// @ts-expect-error
|
|
372
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
373
|
+
const { connectionInstances, ...rest } = snapshot || {};
|
|
374
|
+
// connectionInstances schema changed from object to an array, so any
|
|
375
|
+
// old connectionInstances as object is in snapshot, filter it out
|
|
376
|
+
// https://github.com/GMOD/jbrowse-components/issues/1903
|
|
377
|
+
return !Array.isArray(connectionInstances) ? rest : snapshot;
|
|
376
378
|
},
|
|
377
379
|
});
|
|
378
380
|
}
|
|
@@ -25,9 +25,29 @@ export declare function WebSessionConnectionsMixin(pluginManager: PluginManager)
|
|
|
25
25
|
connect(_arg: AnyConfigurationModel): void;
|
|
26
26
|
} & {
|
|
27
27
|
afterAttach(): void;
|
|
28
|
-
addTrackConf(trackConf:
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
addTrackConf(trackConf: ({
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
31
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
34
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
37
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
38
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>): any;
|
|
39
|
+
addTrackConfs(trackConfs: (({
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
42
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
45
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
48
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
49
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>)[]): void;
|
|
50
|
+
setTrackConfs(trackConfs: AnyConfigurationModel[]): void;
|
|
31
51
|
clear(): void;
|
|
32
52
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
33
53
|
} & {
|
|
@@ -59,7 +79,7 @@ export declare function WebSessionConnectionsMixin(pluginManager: PluginManager)
|
|
|
59
79
|
};
|
|
60
80
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>>)[];
|
|
61
81
|
} & {
|
|
62
|
-
makeConnection(configuration: AnyConfigurationModel, initialSnapshot?: {}): {
|
|
82
|
+
makeConnection(configuration: AnyConfigurationModel, initialSnapshot?: {}): ({
|
|
63
83
|
name: string;
|
|
64
84
|
tracks: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>>;
|
|
65
85
|
configuration: {
|
|
@@ -88,9 +108,29 @@ export declare function WebSessionConnectionsMixin(pluginManager: PluginManager)
|
|
|
88
108
|
connect(_arg: AnyConfigurationModel): void;
|
|
89
109
|
} & {
|
|
90
110
|
afterAttach(): void;
|
|
91
|
-
addTrackConf(trackConf:
|
|
92
|
-
|
|
93
|
-
|
|
111
|
+
addTrackConf(trackConf: ({
|
|
112
|
+
[x: string]: any;
|
|
113
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
114
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
117
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
118
|
+
[x: string]: any;
|
|
119
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
120
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
121
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>): any;
|
|
122
|
+
addTrackConfs(trackConfs: (({
|
|
123
|
+
[x: string]: any;
|
|
124
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
125
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
126
|
+
[x: string]: any;
|
|
127
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
128
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
129
|
+
[x: string]: any;
|
|
130
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
131
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
132
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>)[]): void;
|
|
133
|
+
setTrackConfs(trackConfs: AnyConfigurationModel[]): void;
|
|
94
134
|
clear(): void;
|
|
95
135
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
96
136
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -111,11 +151,31 @@ export declare function WebSessionConnectionsMixin(pluginManager: PluginManager)
|
|
|
111
151
|
connect(_arg: AnyConfigurationModel): void;
|
|
112
152
|
} & {
|
|
113
153
|
afterAttach(): void;
|
|
114
|
-
addTrackConf(trackConf:
|
|
115
|
-
|
|
116
|
-
|
|
154
|
+
addTrackConf(trackConf: ({
|
|
155
|
+
[x: string]: any;
|
|
156
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
157
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
158
|
+
[x: string]: any;
|
|
159
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
160
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
161
|
+
[x: string]: any;
|
|
162
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
163
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
164
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>): any;
|
|
165
|
+
addTrackConfs(trackConfs: (({
|
|
166
|
+
[x: string]: any;
|
|
167
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
168
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
169
|
+
[x: string]: any;
|
|
170
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
171
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
172
|
+
[x: string]: any;
|
|
173
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
174
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
175
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>)[]): void;
|
|
176
|
+
setTrackConfs(trackConfs: AnyConfigurationModel[]): void;
|
|
117
177
|
clear(): void;
|
|
118
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized
|
|
178
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
119
179
|
prepareToBreakConnection(configuration: AnyConfigurationModel): (Record<string, number> | (() => void))[] | undefined;
|
|
120
180
|
breakConnection(configuration: AnyConfigurationModel): void;
|
|
121
181
|
deleteConnection(configuration: AnyConfigurationModel): any;
|
|
@@ -123,5 +183,5 @@ export declare function WebSessionConnectionsMixin(pluginManager: PluginManager)
|
|
|
123
183
|
clearConnections(): void;
|
|
124
184
|
} & {
|
|
125
185
|
addConnectionConf(connectionConf: BaseConnectionConfigModel): any;
|
|
126
|
-
deleteConnection(configuration: AnyConfigurationModel):
|
|
186
|
+
deleteConnection(configuration: AnyConfigurationModel): {} | undefined;
|
|
127
187
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|