@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.
@@ -148,33 +148,30 @@ function assemblyManagerFactory(assemblyConfigType, pluginManager) {
148
148
  }))();
149
149
  },
150
150
  getRefNameMapForAdapter: function getRefNameMapForAdapter(adapterConf, assemblyName, opts) {
151
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
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 = 4;
160
+ _context2.next = 5;
160
161
  break;
161
162
  }
162
163
 
163
164
  _context2.next = 3;
164
- return (0, _util.when)(function () {
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
- return _context2.abrupt("return", (_self$get = self.get(assemblyName)) === null || _self$get === void 0 ? void 0 : _self$get.getRefNameMapForAdapter(adapterConf, opts));
168
+ asm = _context2.sent;
169
+ return _context2.abrupt("return", asm === null || asm === void 0 ? void 0 : asm.getRefNameMapForAdapter(adapterConf, opts));
173
170
 
174
- case 4:
171
+ case 5:
175
172
  return _context2.abrupt("return", {});
176
173
 
177
- case 5:
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
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
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 = 4;
192
+ _context3.next = 5;
195
193
  break;
196
194
  }
197
195
 
198
196
  _context3.next = 3;
199
- return (0, _util.when)(function () {
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
- return _context3.abrupt("return", (_self$get2 = self.get(assemblyName)) === null || _self$get2 === void 0 ? void 0 : _self$get2.getReverseRefNameMapForAdapter(adapterConf, opts));
200
+ asm = _context3.sent;
201
+ return _context3.abrupt("return", asm === null || asm === void 0 ? void 0 : asm.getReverseRefNameMapForAdapter(adapterConf, opts));
208
202
 
209
- case 4:
203
+ case 5:
210
204
  return _context3.abrupt("return", {});
211
205
 
212
- case 5:
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 _this = this;
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
- _this.removeAssembly(asm);
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
- _this.addAssembly(assemblyConfig);
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.9",
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": "a6504c385d703ce6e755d05652ef659ffe28c864"
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')) // see corresponding entry in circular-view ChordTrack
62
- // no config slot editor exists for this at the time being
63
- // configRelationships: {
64
- // type: 'configRelationships',
65
- // model: types.array(
66
- // types.model('Relationship', {
67
- // type: types.string,
68
- // target: types.maybe(types.reference(base)),
69
- // }),
70
- // ),
71
- // defaultValue: [],
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));