@jbrowse/plugin-legacy-jbrowse 1.7.0 → 1.7.4

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.
Files changed (45) hide show
  1. package/dist/JBrowse1Connection/configSchema.d.ts +2 -2
  2. package/dist/JBrowse1Connection/configSchema.js +2 -2
  3. package/dist/JBrowse1Connection/index.d.ts +2 -2
  4. package/dist/JBrowse1Connection/index.js +2 -2
  5. package/dist/JBrowse1Connection/jb1ConfigLoad.d.ts +36 -36
  6. package/dist/JBrowse1Connection/jb1ConfigLoad.js +16 -16
  7. package/dist/JBrowse1Connection/jb1ConfigParse.d.ts +11 -11
  8. package/dist/JBrowse1Connection/jb1ConfigParse.js +6 -6
  9. package/dist/JBrowse1Connection/jb1ToJb2.d.ts +47 -47
  10. package/dist/JBrowse1Connection/jb1ToJb2.js +3 -3
  11. package/dist/JBrowse1Connection/model.d.ts +15 -4
  12. package/dist/JBrowse1Connection/model.js +3 -3
  13. package/dist/JBrowse1Connection/types.d.ts +91 -91
  14. package/dist/JBrowse1Connection/util.d.ts +26 -26
  15. package/dist/JBrowse1Connection/util.js +3 -3
  16. package/dist/JBrowse1TextSeachAdapter/HttpMap.d.ts +39 -39
  17. package/dist/JBrowse1TextSeachAdapter/HttpMap.js +22 -22
  18. package/dist/JBrowse1TextSeachAdapter/HttpMap.test.js +12 -12
  19. package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.d.ts +33 -33
  20. package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.js +18 -18
  21. package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.test.js +9 -9
  22. package/dist/JBrowse1TextSeachAdapter/configSchema.d.ts +2 -2
  23. package/dist/JBrowse1TextSeachAdapter/configSchema.js +2 -2
  24. package/dist/JBrowse1TextSeachAdapter/index.d.ts +2 -2
  25. package/dist/JBrowse1TextSeachAdapter/index.js +2 -2
  26. package/dist/NCListAdapter/NCListAdapter.d.ts +31 -31
  27. package/dist/NCListAdapter/NCListAdapter.js +17 -17
  28. package/dist/NCListAdapter/NCListAdapter.test.js +5 -5
  29. package/dist/NCListAdapter/NCListFeature.d.ts +31 -31
  30. package/dist/NCListAdapter/NCListFeature.js +6 -6
  31. package/dist/NCListAdapter/configSchema.d.ts +2 -2
  32. package/dist/NCListAdapter/configSchema.js +2 -2
  33. package/dist/NCListAdapter/index.d.ts +1 -1
  34. package/dist/NCListAdapter/index.js +1 -1
  35. package/dist/index.d.ts +6 -6
  36. package/dist/index.js +13 -13
  37. package/dist/index.test.js +3 -3
  38. package/package.json +5 -3
  39. package/dist/index.test.d.ts +0 -1
  40. package/dist/plugin-legacy-jbrowse.cjs.development.js +0 -3567
  41. package/dist/plugin-legacy-jbrowse.cjs.development.js.map +0 -1
  42. package/dist/plugin-legacy-jbrowse.cjs.production.min.js +0 -2
  43. package/dist/plugin-legacy-jbrowse.cjs.production.min.js.map +0 -1
  44. package/dist/plugin-legacy-jbrowse.esm.js +0 -3561
  45. package/dist/plugin-legacy-jbrowse.esm.js.map +0 -1
@@ -1,2 +1,2 @@
1
- declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
- export default _default;
1
+ declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ export default _default;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
 
8
8
  var _models = require("@jbrowse/core/pluggableElementTypes/models");
9
9
 
@@ -27,4 +27,4 @@ var _default = (0, _configuration.ConfigurationSchema)('JBrowse1Connection', {
27
27
  baseConfiguration: _models.baseConnectionConfig
28
28
  });
29
29
 
30
- exports["default"] = _default;
30
+ exports.default = _default;
@@ -1,2 +1,2 @@
1
- export { default as modelFactory } from './model';
2
- export { default as configSchema } from './configSchema';
1
+ export { default as modelFactory } from './model';
2
+ export { default as configSchema } from './configSchema';
@@ -8,13 +8,13 @@ Object.defineProperty(exports, "__esModule", {
8
8
  Object.defineProperty(exports, "configSchema", {
9
9
  enumerable: true,
10
10
  get: function get() {
11
- return _configSchema["default"];
11
+ return _configSchema.default;
12
12
  }
13
13
  });
14
14
  Object.defineProperty(exports, "modelFactory", {
15
15
  enumerable: true,
16
16
  get: function get() {
17
- return _model["default"];
17
+ return _model.default;
18
18
  }
19
19
  });
20
20
 
@@ -1,36 +1,36 @@
1
- import { JBLocation, Config } from './types';
2
- export declare function fetchJb1(dataRoot?: JBLocation, baseConfig?: Config, baseConfigRoot?: JBLocation): Promise<Config>;
3
- export declare function createFinalConfig(baseConfig: Config, defaults?: {
4
- tracks: never[];
5
- containerID: string;
6
- dataRoot: string;
7
- show_tracklist: boolean;
8
- show_nav: boolean;
9
- show_menu: boolean;
10
- show_overview: boolean;
11
- show_fullviewlink: boolean;
12
- update_browser_title: boolean;
13
- updateBrowserURL: boolean;
14
- refSeqs: string;
15
- include: string[];
16
- nameUrl: string;
17
- datasets: {
18
- _DEFAULT_EXAMPLES: boolean;
19
- volvox: {
20
- url: string;
21
- name: string;
22
- };
23
- modencode: {
24
- url: string;
25
- name: string;
26
- };
27
- yeast: {
28
- url: string;
29
- name: string;
30
- };
31
- };
32
- highlightSearchedRegions: boolean;
33
- highResolutionMode: string;
34
- }): Promise<Config>;
35
- export declare function fetchConfigFile(location: JBLocation): Promise<Config>;
36
- export declare function parseJb1(config: string, url?: string): Config;
1
+ import { JBLocation, Config } from './types';
2
+ export declare function fetchJb1(dataRoot?: JBLocation, baseConfig?: Config, baseConfigRoot?: JBLocation): Promise<Config>;
3
+ export declare function createFinalConfig(baseConfig: Config, defaults?: {
4
+ tracks: never[];
5
+ containerID: string;
6
+ dataRoot: string;
7
+ show_tracklist: boolean;
8
+ show_nav: boolean;
9
+ show_menu: boolean;
10
+ show_overview: boolean;
11
+ show_fullviewlink: boolean;
12
+ update_browser_title: boolean;
13
+ updateBrowserURL: boolean;
14
+ refSeqs: string;
15
+ include: string[];
16
+ nameUrl: string;
17
+ datasets: {
18
+ _DEFAULT_EXAMPLES: boolean;
19
+ volvox: {
20
+ url: string;
21
+ name: string;
22
+ };
23
+ modencode: {
24
+ url: string;
25
+ name: string;
26
+ };
27
+ yeast: {
28
+ url: string;
29
+ name: string;
30
+ };
31
+ };
32
+ highlightSearchedRegions: boolean;
33
+ highResolutionMode: string;
34
+ }): Promise<Config>;
35
+ export declare function fetchConfigFile(location: JBLocation): Promise<Config>;
36
+ export declare function parseJb1(config: string, url?: string): Config;
@@ -37,7 +37,7 @@ function fetchJb1() {
37
37
  }
38
38
 
39
39
  function _fetchJb() {
40
- _fetchJb = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
40
+ _fetchJb = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
41
41
  var dataRoot,
42
42
  baseConfig,
43
43
  baseConfigRoot,
@@ -54,7 +54,7 @@ function _fetchJb() {
54
54
  newConfig,
55
55
  _args = arguments;
56
56
 
57
- return _regenerator["default"].wrap(function _callee$(_context) {
57
+ return _regenerator.default.wrap(function _callee$(_context) {
58
58
  while (1) {
59
59
  switch (_context.prev = _context.next) {
60
60
  case 0:
@@ -118,7 +118,7 @@ function _fetchJb() {
118
118
  fetchedConfig = null;
119
119
  _context.prev = 20;
120
120
  _context.next = 23;
121
- return fetchConfigFile((0, _defineProperty2["default"])({}, baseProtocol, "".concat(baseConfigLocation, "/").concat(conf)));
121
+ return fetchConfigFile((0, _defineProperty2.default)({}, baseProtocol, "".concat(baseConfigLocation, "/").concat(conf)));
122
122
 
123
123
  case 23:
124
124
  fetchedConfig = _context.sent;
@@ -169,12 +169,12 @@ function createFinalConfig(_x) {
169
169
  }
170
170
 
171
171
  function _createFinalConfig() {
172
- _createFinalConfig = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(baseConfig) {
172
+ _createFinalConfig = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(baseConfig) {
173
173
  var defaults,
174
174
  configWithDefaults,
175
175
  finalConfig,
176
176
  _args2 = arguments;
177
- return _regenerator["default"].wrap(function _callee2$(_context2) {
177
+ return _regenerator.default.wrap(function _callee2$(_context2) {
178
178
  while (1) {
179
179
  switch (_context2.prev = _context2.next) {
180
180
  case 0:
@@ -205,9 +205,9 @@ function fetchConfigFile(_x2) {
205
205
  }
206
206
 
207
207
  function _fetchConfigFile() {
208
- _fetchConfigFile = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(location) {
208
+ _fetchConfigFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(location) {
209
209
  var result;
210
- return _regenerator["default"].wrap(function _callee3$(_context3) {
210
+ return _regenerator.default.wrap(function _callee3$(_context3) {
211
211
  while (1) {
212
212
  switch (_context3.prev = _context3.next) {
213
213
  case 0:
@@ -281,8 +281,8 @@ function mergeConfigs(a, b) {
281
281
  throw new Error("Track config has not been properly regularized: ".concat(aTracks, " ").concat(bTracks));
282
282
  }
283
283
  } else if (!noRecursiveMerge(prop) && prop in a && // @ts-ignore
284
- (0, _typeof2["default"])(b[prop]) === 'object' && // @ts-ignore
285
- (0, _typeof2["default"])(a[prop]) === 'object') {
284
+ (0, _typeof2.default)(b[prop]) === 'object' && // @ts-ignore
285
+ (0, _typeof2.default)(a[prop]) === 'object') {
286
286
  // @ts-ignore
287
287
  a[prop] = (0, _util.deepUpdate)(a[prop], b[prop]);
288
288
  } else if (prop === 'dataRoot') {
@@ -337,17 +337,17 @@ function loadIncludes(_x3) {
337
337
  }
338
338
 
339
339
  function _loadIncludes() {
340
- _loadIncludes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(inputConfig) {
340
+ _loadIncludes = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(inputConfig) {
341
341
  var loadRecur, _loadRecur;
342
342
 
343
- return _regenerator["default"].wrap(function _callee6$(_context6) {
343
+ return _regenerator.default.wrap(function _callee6$(_context6) {
344
344
  while (1) {
345
345
  switch (_context6.prev = _context6.next) {
346
346
  case 0:
347
347
  _loadRecur = function _loadRecur3() {
348
- _loadRecur = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(config, upstreamConf) {
348
+ _loadRecur = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(config, upstreamConf) {
349
349
  var sourceUrl, newUpstreamConf, includes, loads, includedDataObjects;
350
- return _regenerator["default"].wrap(function _callee5$(_context5) {
350
+ return _regenerator.default.wrap(function _callee5$(_context5) {
351
351
  while (1) {
352
352
  switch (_context5.prev = _context5.next) {
353
353
  case 0:
@@ -374,9 +374,9 @@ function _loadIncludes() {
374
374
  includes = fillTemplates(regularizeIncludes(config.include || []), newUpstreamConf);
375
375
  delete config.include;
376
376
  loads = includes.map( /*#__PURE__*/function () {
377
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(include) {
377
+ var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(include) {
378
378
  var includedData;
379
- return _regenerator["default"].wrap(function _callee4$(_context4) {
379
+ return _regenerator.default.wrap(function _callee4$(_context4) {
380
380
  while (1) {
381
381
  switch (_context4.prev = _context4.next) {
382
382
  case 0:
@@ -481,7 +481,7 @@ function fillTemplates(subconfig, config) {
481
481
  for (var i = 0; i < subconfig.length; i += 1) {
482
482
  subconfig[i] = fillTemplates(subconfig[i], config);
483
483
  }
484
- } else if ((0, _typeof2["default"])(subconfig) === 'object') {
484
+ } else if ((0, _typeof2.default)(subconfig) === 'object') {
485
485
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
486
486
  var sub = subconfig;
487
487
 
@@ -1,11 +1,11 @@
1
- import { Config } from './types';
2
- export declare function parseJB1Json(config: Config | string, url: string): Config;
3
- export declare function parseJB1Conf(config: string, url: string): Config;
4
- /**
5
- * Applies defaults and any other necessary tweaks to the loaded configuration.
6
- * @param conf - the object containing the configuration, which it modifies
7
- * in-place
8
- * @param url - URL of the config file
9
- * @returns the same object it was passed
10
- */
11
- export declare function regularizeConf(conf: Config, url: string): Config;
1
+ import { Config } from './types';
2
+ export declare function parseJB1Json(config: Config | string, url: string): Config;
3
+ export declare function parseJB1Conf(config: string, url: string): Config;
4
+ /**
5
+ * Applies defaults and any other necessary tweaks to the loaded configuration.
6
+ * @param conf - the object containing the configuration, which it modifies
7
+ * in-place
8
+ * @param url - URL of the config file
9
+ * @returns the same object it was passed
10
+ */
11
+ export declare function regularizeConf(conf: Config, url: string): Config;
@@ -25,7 +25,7 @@ var _util2 = require("./util");
25
25
 
26
26
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
27
 
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
29
 
30
30
  function parseJB1Json(config, url) {
31
31
  if (typeof config === 'string') {
@@ -97,7 +97,7 @@ function parse(text, url) {
97
97
  var path = section.concat(keyPath).join('.');
98
98
 
99
99
  if (operation === '+=') {
100
- var existing = (0, _getValue["default"])(data, path);
100
+ var existing = (0, _getValue.default)(data, path);
101
101
 
102
102
  if (existing) {
103
103
  if (!Array.isArray(existing)) {
@@ -119,7 +119,7 @@ function parse(text, url) {
119
119
  parsedValue = false;
120
120
  }
121
121
 
122
- (0, _setValue["default"])(data, path, parsedValue);
122
+ (0, _setValue.default)(data, path, parsedValue);
123
123
  } catch (e) {
124
124
  throw new Error("syntax error".concat(url ? " in ".concat(url) : '').concat(lineNumber ? " at line ".concat(lineNumber - 1) : ''));
125
125
  }
@@ -148,7 +148,7 @@ function parse(text, url) {
148
148
  keyPath = match[1].trim().split(/\s*\.\s*/);
149
149
  var _match = match;
150
150
 
151
- var _match2 = (0, _slicedToArray2["default"])(_match, 3);
151
+ var _match2 = (0, _slicedToArray2.default)(_match, 3);
152
152
 
153
153
  operation = _match2[2];
154
154
 
@@ -278,11 +278,11 @@ function regularizeConf(conf, url) {
278
278
  var addBase = [];
279
279
 
280
280
  if (conf.tracks) {
281
- addBase.push.apply(addBase, (0, _toConsumableArray2["default"])(conf.tracks));
281
+ addBase.push.apply(addBase, (0, _toConsumableArray2.default)(conf.tracks));
282
282
  }
283
283
 
284
284
  if (conf.stores) {
285
- addBase.push.apply(addBase, (0, _toConsumableArray2["default"])(Object.values(conf.stores)));
285
+ addBase.push.apply(addBase, (0, _toConsumableArray2.default)(Object.values(conf.stores)));
286
286
  }
287
287
 
288
288
  if (conf.names) {
@@ -1,47 +1,47 @@
1
- import { Track, RefSeqs } from './types';
2
- interface Jb2Track {
3
- trackId: string;
4
- name: string;
5
- description?: string;
6
- category?: string[];
7
- adapter?: Jb2Adapter;
8
- type?: string;
9
- defaultRendering?: string;
10
- }
11
- interface Jb2Adapter {
12
- type: string;
13
- features?: Jb2Feature[];
14
- bamLocation?: Jb2Location;
15
- cramLocation?: Jb2Location;
16
- craiLocation?: Jb2Location;
17
- fastaLocation?: Jb2Location;
18
- faiLocation?: Jb2Location;
19
- gziLocation?: Jb2Location;
20
- twoBitLocation?: Jb2Location;
21
- bigWigLocation?: Jb2Location;
22
- bigBedLocation?: Jb2Location;
23
- vcfGzLocation?: Jb2Location;
24
- gffGzLocation?: Jb2Location;
25
- bedGzLocation?: Jb2Location;
26
- index?: {
27
- location: Jb2Location;
28
- indexType?: string;
29
- };
30
- rootUrlTemplate?: Jb2Location;
31
- sequenceAdapter?: Jb2Adapter;
32
- }
33
- interface Jb2Feature {
34
- refName: string;
35
- uniqueId: string;
36
- start: number;
37
- end: number;
38
- }
39
- interface Jb2Location {
40
- uri?: string;
41
- localPath?: string;
42
- blobId?: string;
43
- locationType?: string;
44
- }
45
- export declare function convertTrackConfig(jb1TrackConfig: Track, dataRoot: string, sequenceAdapter: Jb2Adapter): Jb2Track;
46
- export declare function createRefSeqsAdapter(refSeqs: string | RefSeqs): Promise<Jb2Adapter>;
47
- export {};
1
+ import { Track, RefSeqs } from './types';
2
+ interface Jb2Track {
3
+ trackId: string;
4
+ name: string;
5
+ description?: string;
6
+ category?: string[];
7
+ adapter?: Jb2Adapter;
8
+ type?: string;
9
+ defaultRendering?: string;
10
+ }
11
+ interface Jb2Adapter {
12
+ type: string;
13
+ features?: Jb2Feature[];
14
+ bamLocation?: Jb2Location;
15
+ cramLocation?: Jb2Location;
16
+ craiLocation?: Jb2Location;
17
+ fastaLocation?: Jb2Location;
18
+ faiLocation?: Jb2Location;
19
+ gziLocation?: Jb2Location;
20
+ twoBitLocation?: Jb2Location;
21
+ bigWigLocation?: Jb2Location;
22
+ bigBedLocation?: Jb2Location;
23
+ vcfGzLocation?: Jb2Location;
24
+ gffGzLocation?: Jb2Location;
25
+ bedGzLocation?: Jb2Location;
26
+ index?: {
27
+ location: Jb2Location;
28
+ indexType?: string;
29
+ };
30
+ rootUrlTemplate?: Jb2Location;
31
+ sequenceAdapter?: Jb2Adapter;
32
+ }
33
+ interface Jb2Feature {
34
+ refName: string;
35
+ uniqueId: string;
36
+ start: number;
37
+ end: number;
38
+ }
39
+ interface Jb2Location {
40
+ uri?: string;
41
+ localPath?: string;
42
+ blobId?: string;
43
+ locationType?: string;
44
+ }
45
+ export declare function convertTrackConfig(jb1TrackConfig: Track, dataRoot: string, sequenceAdapter: Jb2Adapter): Jb2Track;
46
+ export declare function createRefSeqsAdapter(refSeqs: string | RefSeqs): Promise<Jb2Adapter>;
47
+ export {};
@@ -22,7 +22,7 @@ var _tracks = require("@jbrowse/core/util/tracks");
22
22
 
23
23
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24
24
 
25
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26
26
 
27
27
  function convertTrackConfig(jb1TrackConfig, dataRoot, sequenceAdapter) {
28
28
  var jb2TrackConfig = {
@@ -441,9 +441,9 @@ function createRefSeqsAdapter(_x) {
441
441
  }
442
442
 
443
443
  function _createRefSeqsAdapter() {
444
- _createRefSeqsAdapter = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(refSeqs) {
444
+ _createRefSeqsAdapter = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(refSeqs) {
445
445
  var refSeqsJson, refSeqsData;
446
- return _regenerator["default"].wrap(function _callee$(_context) {
446
+ return _regenerator.default.wrap(function _callee$(_context) {
447
447
  while (1) {
448
448
  switch (_context.prev = _context.next) {
449
449
  case 0:
@@ -1,4 +1,15 @@
1
- export default function _default(pluginManager: any): import("mobx-state-tree").IModelType<import("mobx-state-tree").ModelProperties & {
2
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
3
- type: import("mobx-state-tree").ISimpleType<"JBrowse1Connection">;
4
- }, any, any, any>;
1
+ export default function _default(pluginManager: any): import("mobx-state-tree").IModelType<{
2
+ name: import("mobx-state-tree").ISimpleType<string>;
3
+ tracks: import("mobx-state-tree").IArrayType<any>;
4
+ } & {
5
+ configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
6
+ type: import("mobx-state-tree").ISimpleType<"JBrowse1Connection">;
7
+ }, {
8
+ afterAttach(): void;
9
+ addTrackConf(trackConf: any): any;
10
+ addTrackConfs(trackConfs: any): any[];
11
+ setTrackConfs(trackConfs: any): import("mobx-state-tree").IMSTArray<any> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<any>>;
12
+ clear(): void;
13
+ } & {
14
+ connect(): void;
15
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = _default;
8
+ exports.default = _default;
9
9
 
10
10
  var _configuration = require("@jbrowse/core/configuration");
11
11
 
@@ -23,7 +23,7 @@ var _jb1ToJb = require("./jb1ToJb2");
23
23
 
24
24
  function _default(pluginManager) {
25
25
  return _mobxStateTree.types.compose('JBrowse1Connection', (0, _models.BaseConnectionModelFactory)(pluginManager), _mobxStateTree.types.model({
26
- configuration: (0, _configuration.ConfigurationReference)(_configSchema["default"]),
26
+ configuration: (0, _configuration.ConfigurationReference)(_configSchema.default),
27
27
  type: _mobxStateTree.types.literal('JBrowse1Connection')
28
28
  }).actions(function (self) {
29
29
  return {
@@ -47,7 +47,7 @@ function _default(pluginManager) {
47
47
  return jb2Track;
48
48
  });
49
49
  self.setTrackConfs(jb2Tracks);
50
- })["catch"](function (error) {
50
+ }).catch(function (error) {
51
51
  console.error(error);
52
52
  session.notify("There was a problem connecting to the JBrowse 1 data directory \"".concat(self.name, "\". Please make sure you have entered a valid location. The error that was thrown is: \"").concat(error, "\""), 'error');
53
53
  session.breakConnection(self.configuration);
@@ -1,91 +1,91 @@
1
- export interface ProtoTrack {
2
- backendVersion?: number;
3
- baseUrl?: string;
4
- category?: string;
5
- config?: Track;
6
- dataRoot?: string;
7
- features?: Feature[];
8
- histograms?: Track;
9
- index?: number;
10
- key?: string;
11
- label?: string;
12
- metadata?: Metadata;
13
- store?: Store | string;
14
- storeClass?: string;
15
- type?: string;
16
- urlTemplate?: string;
17
- baiUrlTemplate?: string;
18
- craiUrlTemplate?: string;
19
- tbiUrlTemplate?: string;
20
- csiUrlTemplate?: string;
21
- faiUrlTemplate?: string;
22
- gziUrlTemplate?: string;
23
- useAsRefSeqStore?: boolean;
24
- }
25
- export interface Track extends ProtoTrack {
26
- label: string;
27
- }
28
- export interface Metadata {
29
- category?: string;
30
- description?: string;
31
- Description?: string;
32
- }
33
- export interface Feature {
34
- seq_id: string;
35
- start: number;
36
- end: number;
37
- name?: string;
38
- }
39
- export interface Source {
40
- url: string;
41
- name?: string;
42
- type?: string;
43
- }
44
- export interface TrackMetadata {
45
- sources?: string | Source | (string | Source)[] | Record<string, Source>;
46
- }
47
- export interface Store extends ProtoTrack {
48
- name?: string;
49
- }
50
- export interface Names {
51
- baseUrl?: string;
52
- }
53
- export interface RefSeq {
54
- name: string;
55
- length: number;
56
- end: number;
57
- start: number;
58
- }
59
- export interface RefSeqs {
60
- url?: string;
61
- data?: RefSeq[];
62
- }
63
- export interface Include {
64
- url: string;
65
- cacheBuster?: boolean;
66
- format?: string;
67
- version?: number;
68
- }
69
- export interface Config {
70
- baseUrl?: string;
71
- cacheBuster?: boolean;
72
- dataRoot?: string;
73
- include?: string[];
74
- names?: Record<string, string>;
75
- nameUrl?: string;
76
- refSeqs?: string | RefSeqs;
77
- sourceUrl?: string;
78
- stores?: Record<string, Store>;
79
- trackMetadata?: TrackMetadata;
80
- tracks?: Track | Track[] | Record<string, Track | ProtoTrack>;
81
- }
82
- export interface UriLocation {
83
- uri: string;
84
- baseUri?: string;
85
- locationType: 'UriLocation';
86
- }
87
- export interface LocalPathLocation {
88
- localPath: string;
89
- locationType: 'LocalPathLocation';
90
- }
91
- export declare type JBLocation = UriLocation | LocalPathLocation;
1
+ export interface ProtoTrack {
2
+ backendVersion?: number;
3
+ baseUrl?: string;
4
+ category?: string;
5
+ config?: Track;
6
+ dataRoot?: string;
7
+ features?: Feature[];
8
+ histograms?: Track;
9
+ index?: number;
10
+ key?: string;
11
+ label?: string;
12
+ metadata?: Metadata;
13
+ store?: Store | string;
14
+ storeClass?: string;
15
+ type?: string;
16
+ urlTemplate?: string;
17
+ baiUrlTemplate?: string;
18
+ craiUrlTemplate?: string;
19
+ tbiUrlTemplate?: string;
20
+ csiUrlTemplate?: string;
21
+ faiUrlTemplate?: string;
22
+ gziUrlTemplate?: string;
23
+ useAsRefSeqStore?: boolean;
24
+ }
25
+ export interface Track extends ProtoTrack {
26
+ label: string;
27
+ }
28
+ export interface Metadata {
29
+ category?: string;
30
+ description?: string;
31
+ Description?: string;
32
+ }
33
+ export interface Feature {
34
+ seq_id: string;
35
+ start: number;
36
+ end: number;
37
+ name?: string;
38
+ }
39
+ export interface Source {
40
+ url: string;
41
+ name?: string;
42
+ type?: string;
43
+ }
44
+ export interface TrackMetadata {
45
+ sources?: string | Source | (string | Source)[] | Record<string, Source>;
46
+ }
47
+ export interface Store extends ProtoTrack {
48
+ name?: string;
49
+ }
50
+ export interface Names {
51
+ baseUrl?: string;
52
+ }
53
+ export interface RefSeq {
54
+ name: string;
55
+ length: number;
56
+ end: number;
57
+ start: number;
58
+ }
59
+ export interface RefSeqs {
60
+ url?: string;
61
+ data?: RefSeq[];
62
+ }
63
+ export interface Include {
64
+ url: string;
65
+ cacheBuster?: boolean;
66
+ format?: string;
67
+ version?: number;
68
+ }
69
+ export interface Config {
70
+ baseUrl?: string;
71
+ cacheBuster?: boolean;
72
+ dataRoot?: string;
73
+ include?: string[];
74
+ names?: Record<string, string>;
75
+ nameUrl?: string;
76
+ refSeqs?: string | RefSeqs;
77
+ sourceUrl?: string;
78
+ stores?: Record<string, Store>;
79
+ trackMetadata?: TrackMetadata;
80
+ tracks?: Track | Track[] | Record<string, Track | ProtoTrack>;
81
+ }
82
+ export interface UriLocation {
83
+ uri: string;
84
+ baseUri?: string;
85
+ locationType: 'UriLocation';
86
+ }
87
+ export interface LocalPathLocation {
88
+ localPath: string;
89
+ locationType: 'LocalPathLocation';
90
+ }
91
+ export declare type JBLocation = UriLocation | LocalPathLocation;