@jbrowse/core 1.7.9 → 1.7.10
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/BaseFeatureWidget/BaseFeatureDetail.d.ts +3 -6
- package/BaseFeatureWidget/BaseFeatureDetail.js +158 -103
- package/BaseFeatureWidget/index.d.ts +23 -2
- package/BaseFeatureWidget/index.js +98 -3
- package/assemblyManager/assemblyManager.js +21 -27
- package/package.json +4 -2
- package/pluggableElementTypes/models/baseTrackConfig.js +20 -13
- package/tsconfig.build.tsbuildinfo +1 -1
- package/ui/AboutDialog.d.ts +1 -1
- package/ui/AboutDialog.js +24 -7
- package/ui/CascadingMenu.d.ts +9 -0
- package/ui/CascadingMenu.js +211 -0
- package/ui/Menu.d.ts +10 -0
- package/ui/Menu.js +9 -14
- package/ui/index.d.ts +1 -0
- package/ui/index.js +9 -0
- package/util/index.d.ts +3 -0
- package/util/index.js +35 -1
- package/util/jexl.js +42 -43
- package/util/types/index.d.ts +1 -1
|
@@ -148,33 +148,30 @@ function assemblyManagerFactory(assemblyConfigType, pluginManager) {
|
|
|
148
148
|
}))();
|
|
149
149
|
},
|
|
150
150
|
getRefNameMapForAdapter: function getRefNameMapForAdapter(adapterConf, assemblyName, opts) {
|
|
151
|
-
|
|
152
|
-
var _self$get;
|
|
151
|
+
var _this = this;
|
|
153
152
|
|
|
153
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
154
|
+
var asm;
|
|
154
155
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
155
156
|
while (1) {
|
|
156
157
|
switch (_context2.prev = _context2.next) {
|
|
157
158
|
case 0:
|
|
158
159
|
if (!assemblyName) {
|
|
159
|
-
_context2.next =
|
|
160
|
+
_context2.next = 5;
|
|
160
161
|
break;
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
_context2.next = 3;
|
|
164
|
-
return
|
|
165
|
-
return Boolean(self.get(assemblyName));
|
|
166
|
-
}, {
|
|
167
|
-
signal: opts.signal,
|
|
168
|
-
name: 'when assembly ready'
|
|
169
|
-
});
|
|
165
|
+
return _this.waitForAssembly(assemblyName);
|
|
170
166
|
|
|
171
167
|
case 3:
|
|
172
|
-
|
|
168
|
+
asm = _context2.sent;
|
|
169
|
+
return _context2.abrupt("return", asm === null || asm === void 0 ? void 0 : asm.getRefNameMapForAdapter(adapterConf, opts));
|
|
173
170
|
|
|
174
|
-
case
|
|
171
|
+
case 5:
|
|
175
172
|
return _context2.abrupt("return", {});
|
|
176
173
|
|
|
177
|
-
case
|
|
174
|
+
case 6:
|
|
178
175
|
case "end":
|
|
179
176
|
return _context2.stop();
|
|
180
177
|
}
|
|
@@ -183,33 +180,30 @@ function assemblyManagerFactory(assemblyConfigType, pluginManager) {
|
|
|
183
180
|
}))();
|
|
184
181
|
},
|
|
185
182
|
getReverseRefNameMapForAdapter: function getReverseRefNameMapForAdapter(adapterConf, assemblyName, opts) {
|
|
186
|
-
|
|
187
|
-
var _self$get2;
|
|
183
|
+
var _this2 = this;
|
|
188
184
|
|
|
185
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
186
|
+
var asm;
|
|
189
187
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
190
188
|
while (1) {
|
|
191
189
|
switch (_context3.prev = _context3.next) {
|
|
192
190
|
case 0:
|
|
193
191
|
if (!assemblyName) {
|
|
194
|
-
_context3.next =
|
|
192
|
+
_context3.next = 5;
|
|
195
193
|
break;
|
|
196
194
|
}
|
|
197
195
|
|
|
198
196
|
_context3.next = 3;
|
|
199
|
-
return
|
|
200
|
-
return Boolean(self.get(assemblyName));
|
|
201
|
-
}, {
|
|
202
|
-
signal: opts.signal,
|
|
203
|
-
name: 'when assembly ready'
|
|
204
|
-
});
|
|
197
|
+
return _this2.waitForAssembly(assemblyName);
|
|
205
198
|
|
|
206
199
|
case 3:
|
|
207
|
-
|
|
200
|
+
asm = _context3.sent;
|
|
201
|
+
return _context3.abrupt("return", asm === null || asm === void 0 ? void 0 : asm.getReverseRefNameMapForAdapter(adapterConf, opts));
|
|
208
202
|
|
|
209
|
-
case
|
|
203
|
+
case 5:
|
|
210
204
|
return _context3.abrupt("return", {});
|
|
211
205
|
|
|
212
|
-
case
|
|
206
|
+
case 6:
|
|
213
207
|
case "end":
|
|
214
208
|
return _context3.stop();
|
|
215
209
|
}
|
|
@@ -241,7 +235,7 @@ function assemblyManagerFactory(assemblyConfigType, pluginManager) {
|
|
|
241
235
|
self.assemblies.remove(asm);
|
|
242
236
|
},
|
|
243
237
|
afterAttach: function afterAttach() {
|
|
244
|
-
var
|
|
238
|
+
var _this3 = this;
|
|
245
239
|
|
|
246
240
|
(0, _mobxStateTree.addDisposer)(self, (0, _mobx.reaction)( // have to slice it to be properly reacted to
|
|
247
241
|
function () {
|
|
@@ -249,7 +243,7 @@ function assemblyManagerFactory(assemblyConfigType, pluginManager) {
|
|
|
249
243
|
}, function (assemblyConfigs) {
|
|
250
244
|
self.assemblies.forEach(function (asm) {
|
|
251
245
|
if (!asm.configuration) {
|
|
252
|
-
|
|
246
|
+
_this3.removeAssembly(asm);
|
|
253
247
|
}
|
|
254
248
|
});
|
|
255
249
|
assemblyConfigs.forEach(function (assemblyConfig) {
|
|
@@ -258,7 +252,7 @@ function assemblyManagerFactory(assemblyConfigType, pluginManager) {
|
|
|
258
252
|
});
|
|
259
253
|
|
|
260
254
|
if (existingAssemblyIdx === -1) {
|
|
261
|
-
|
|
255
|
+
_this3.addAssembly(assemblyConfig);
|
|
262
256
|
}
|
|
263
257
|
});
|
|
264
258
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.10",
|
|
4
4
|
"description": "JBrowse 2 core libraries used by plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"canvas": "^2.8.0",
|
|
36
36
|
"canvas-sequencer": "^3.1.0",
|
|
37
37
|
"canvas2svg": "^1.0.16",
|
|
38
|
+
"clone": "^2.1.2",
|
|
38
39
|
"clsx": "^1.0.4",
|
|
39
40
|
"color": "^3.1.3",
|
|
40
41
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"json-stable-stringify": "^1.0.1",
|
|
51
52
|
"librpc-web-mod": "^1.1.5",
|
|
52
53
|
"load-script2": "^2.0.5",
|
|
54
|
+
"material-ui-popup-state": "^1.9.3",
|
|
53
55
|
"object.fromentries": "^2.0.0",
|
|
54
56
|
"rbush": "^3.0.1",
|
|
55
57
|
"react-error-boundary": "^3.0.0",
|
|
@@ -74,5 +76,5 @@
|
|
|
74
76
|
"access": "public",
|
|
75
77
|
"directory": "dist"
|
|
76
78
|
},
|
|
77
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "02d8c1e88e5603ea5855faed4ccb814e28071b32"
|
|
78
80
|
}
|
|
@@ -58,19 +58,26 @@ function createBaseTrackConfig(pluginManager) {
|
|
|
58
58
|
},
|
|
59
59
|
textSearchAdapter: pluginManager.pluggableConfigSchemaType('text search adapter')
|
|
60
60
|
}),
|
|
61
|
-
displays: _mobxStateTree.types.array(pluginManager.pluggableConfigSchemaType('display'))
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
displays: _mobxStateTree.types.array(pluginManager.pluggableConfigSchemaType('display')),
|
|
62
|
+
formatDetails: (0, _configuration.ConfigurationSchema)('FormatDetails', {
|
|
63
|
+
feature: {
|
|
64
|
+
type: 'frozen',
|
|
65
|
+
description: 'adds extra fields to the feature details',
|
|
66
|
+
defaultValue: {},
|
|
67
|
+
contextVariable: ['feature']
|
|
68
|
+
},
|
|
69
|
+
subfeatures: {
|
|
70
|
+
type: 'frozen',
|
|
71
|
+
description: 'adds extra fields to the subfeatures of a feature',
|
|
72
|
+
defaultValue: {},
|
|
73
|
+
contextVariable: ['feature']
|
|
74
|
+
},
|
|
75
|
+
depth: {
|
|
76
|
+
type: 'number',
|
|
77
|
+
defaultValue: 2,
|
|
78
|
+
description: 'depth to iterate on subfeatures'
|
|
79
|
+
}
|
|
80
|
+
})
|
|
74
81
|
}, {
|
|
75
82
|
preProcessSnapshot: function preProcessSnapshot(s) {
|
|
76
83
|
var snap = JSON.parse(JSON.stringify(s));
|