@jbrowse/web-core 2.18.0 → 3.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/dist/BaseWebSession/index.d.ts +77 -14628
- package/dist/BaseWebSession/index.js +18 -7
- package/dist/SessionConnections.d.ts +2 -23
- package/dist/SessionConnections.js +18 -17
- package/esm/BaseWebSession/index.d.ts +77 -14628
- package/esm/BaseWebSession/index.js +1 -0
- package/esm/SessionConnections.d.ts +2 -23
- package/esm/SessionConnections.js +18 -17
- package/package.json +4 -4
|
@@ -49,28 +49,7 @@ export declare function WebSessionConnectionsMixin(pluginManager: PluginManager)
|
|
|
49
49
|
} & {
|
|
50
50
|
sessionConnections: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
51
51
|
}, {
|
|
52
|
-
readonly connections:
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
55
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
56
|
-
[x: string]: any;
|
|
57
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
58
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
61
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
62
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
63
|
-
name: {
|
|
64
|
-
type: string;
|
|
65
|
-
defaultValue: string;
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
assemblyNames: {
|
|
69
|
-
type: string;
|
|
70
|
-
defaultValue: never[];
|
|
71
|
-
description: string;
|
|
72
|
-
};
|
|
73
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>>)[];
|
|
52
|
+
readonly connections: BaseConnectionConfigModel[];
|
|
74
53
|
} & {
|
|
75
54
|
makeConnection(configuration: AnyConfigurationModel, initialSnapshot?: {}): ({
|
|
76
55
|
name: string;
|
|
@@ -176,5 +155,5 @@ export declare function WebSessionConnectionsMixin(pluginManager: PluginManager)
|
|
|
176
155
|
clearConnections(): void;
|
|
177
156
|
} & {
|
|
178
157
|
addConnectionConf(connectionConf: BaseConnectionConfigModel): any;
|
|
179
|
-
deleteConnection(configuration: AnyConfigurationModel):
|
|
158
|
+
deleteConnection(configuration: AnyConfigurationModel): any;
|
|
180
159
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -14,31 +14,32 @@ export function WebSessionConnectionsMixin(pluginManager) {
|
|
|
14
14
|
if (self.adminMode) {
|
|
15
15
|
return superAddConnectionConf(connectionConf);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
else {
|
|
18
|
+
const { connectionId, type } = connectionConf;
|
|
19
|
+
if (!type) {
|
|
20
|
+
throw new Error(`unknown connection type ${type}`);
|
|
21
|
+
}
|
|
22
|
+
const connection = self.sessionTracks.find(c => c.connectionId === connectionId);
|
|
23
|
+
if (connection) {
|
|
24
|
+
return connection;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const length = self.sessionConnections.push(connectionConf);
|
|
28
|
+
return self.sessionConnections[length - 1];
|
|
29
|
+
}
|
|
24
30
|
}
|
|
25
|
-
const length = self.sessionConnections.push(connectionConf);
|
|
26
|
-
return self.sessionConnections[length - 1];
|
|
27
31
|
},
|
|
28
32
|
deleteConnection(configuration) {
|
|
29
|
-
let deletedConn;
|
|
30
33
|
if (self.adminMode) {
|
|
31
|
-
|
|
34
|
+
return superDeleteConnection(configuration);
|
|
32
35
|
}
|
|
33
|
-
|
|
36
|
+
else {
|
|
34
37
|
const { connectionId } = configuration;
|
|
35
38
|
const idx = self.sessionConnections.findIndex(c => c.connectionId === connectionId);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return self.sessionConnections.splice(idx, 1);
|
|
39
|
+
return idx === -1
|
|
40
|
+
? undefined
|
|
41
|
+
: self.sessionConnections.splice(idx, 1);
|
|
40
42
|
}
|
|
41
|
-
return deletedConn;
|
|
42
43
|
},
|
|
43
44
|
};
|
|
44
45
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/web-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "JBrowse 2 code shared between web-app type products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@babel/runtime": "^7.16.3",
|
|
45
|
-
"@jbrowse/app-core": "^
|
|
46
|
-
"@jbrowse/product-core": "^
|
|
45
|
+
"@jbrowse/app-core": "^3.0.0",
|
|
46
|
+
"@jbrowse/product-core": "^3.0.0",
|
|
47
47
|
"@mui/icons-material": "^6.0.0",
|
|
48
48
|
"@mui/material": "^6.0.0",
|
|
49
49
|
"copy-to-clipboard": "^3.3.1"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "2c6897f1fa732b1db5b094d1dca197e333e95319"
|
|
64
64
|
}
|