@jbrowse/plugin-config 2.17.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.
Files changed (118) hide show
  1. package/dist/ConfigurationEditorWidget/components/BooleanEditor.d.ts +1 -2
  2. package/dist/ConfigurationEditorWidget/components/BooleanEditor.js +5 -10
  3. package/dist/ConfigurationEditorWidget/components/CallbackEditor.d.ts +1 -2
  4. package/dist/ConfigurationEditorWidget/components/CallbackEditor.js +19 -57
  5. package/dist/ConfigurationEditorWidget/components/ColorEditor.d.ts +2 -3
  6. package/dist/ConfigurationEditorWidget/components/ColorEditor.js +12 -38
  7. package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +3 -4
  8. package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.js +14 -32
  9. package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +2 -3
  10. package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.js +3 -8
  11. package/dist/ConfigurationEditorWidget/components/HeadingComponent.d.ts +1 -2
  12. package/dist/ConfigurationEditorWidget/components/HeadingComponent.js +2 -5
  13. package/dist/ConfigurationEditorWidget/components/JsonEditor.d.ts +1 -2
  14. package/dist/ConfigurationEditorWidget/components/JsonEditor.js +12 -40
  15. package/dist/ConfigurationEditorWidget/components/NumberEditor.d.ts +1 -2
  16. package/dist/ConfigurationEditorWidget/components/NumberEditor.js +3 -25
  17. package/dist/ConfigurationEditorWidget/components/NumberMapEditor.d.ts +1 -2
  18. package/dist/ConfigurationEditorWidget/components/NumberMapEditor.js +22 -56
  19. package/dist/ConfigurationEditorWidget/components/SlotEditor.d.ts +2 -3
  20. package/dist/ConfigurationEditorWidget/components/SlotEditor.js +21 -52
  21. package/dist/ConfigurationEditorWidget/components/StringArrayEditor.d.ts +1 -2
  22. package/dist/ConfigurationEditorWidget/components/StringArrayEditor.js +28 -64
  23. package/dist/ConfigurationEditorWidget/components/StringArrayMapEditor.d.ts +1 -2
  24. package/dist/ConfigurationEditorWidget/components/StringArrayMapEditor.js +30 -65
  25. package/dist/ConfigurationEditorWidget/components/TypeSelector.d.ts +2 -3
  26. package/dist/ConfigurationEditorWidget/components/TypeSelector.js +2 -7
  27. package/dist/ConfigurationEditorWidget/index.d.ts +1 -1
  28. package/dist/ConfigurationEditorWidget/index.js +18 -8
  29. package/dist/ConfigurationEditorWidget/model.d.ts +1 -1
  30. package/dist/ConfigurationEditorWidget/model.js +1 -3
  31. package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +5 -5
  32. package/dist/FromConfigAdapter/FromConfigAdapter.js +3 -4
  33. package/dist/FromConfigAdapter/configSchema.d.ts +0 -3
  34. package/dist/FromConfigAdapter/configSchema.js +1 -7
  35. package/dist/FromConfigAdapter/index.d.ts +1 -1
  36. package/dist/FromConfigAdapter/index.js +17 -7
  37. package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +5 -12
  38. package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +2 -12
  39. package/dist/FromConfigRegionsAdapter/configSchema.d.ts +0 -3
  40. package/dist/FromConfigRegionsAdapter/configSchema.js +1 -8
  41. package/dist/FromConfigRegionsAdapter/index.d.ts +1 -1
  42. package/dist/FromConfigRegionsAdapter/index.js +17 -7
  43. package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +3 -16
  44. package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +3 -18
  45. package/dist/FromConfigSequenceAdapter/configSchema.d.ts +0 -3
  46. package/dist/FromConfigSequenceAdapter/configSchema.js +1 -7
  47. package/dist/FromConfigSequenceAdapter/index.d.ts +1 -1
  48. package/dist/FromConfigSequenceAdapter/index.js +17 -7
  49. package/dist/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +2 -1
  50. package/dist/NcbiSequenceReportAliasAdapter/configSchema.d.ts +0 -3
  51. package/dist/NcbiSequenceReportAliasAdapter/configSchema.js +1 -8
  52. package/dist/NcbiSequenceReportAliasAdapter/index.d.ts +1 -1
  53. package/dist/NcbiSequenceReportAliasAdapter/index.js +17 -7
  54. package/dist/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +2 -1
  55. package/dist/RefNameAliasAdapter/configSchema.d.ts +0 -8
  56. package/dist/RefNameAliasAdapter/configSchema.js +1 -14
  57. package/dist/RefNameAliasAdapter/index.d.ts +1 -1
  58. package/dist/RefNameAliasAdapter/index.js +17 -7
  59. package/dist/index.d.ts +2 -2
  60. package/dist/index.js +19 -9
  61. package/esm/ConfigurationEditorWidget/components/BooleanEditor.d.ts +1 -2
  62. package/esm/ConfigurationEditorWidget/components/BooleanEditor.js +5 -7
  63. package/esm/ConfigurationEditorWidget/components/CallbackEditor.d.ts +1 -2
  64. package/esm/ConfigurationEditorWidget/components/CallbackEditor.js +19 -34
  65. package/esm/ConfigurationEditorWidget/components/ColorEditor.d.ts +2 -3
  66. package/esm/ConfigurationEditorWidget/components/ColorEditor.js +12 -15
  67. package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +3 -4
  68. package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js +15 -33
  69. package/esm/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +2 -3
  70. package/esm/ConfigurationEditorWidget/components/ConfigurationTextField.js +3 -5
  71. package/esm/ConfigurationEditorWidget/components/HeadingComponent.d.ts +1 -2
  72. package/esm/ConfigurationEditorWidget/components/HeadingComponent.js +3 -3
  73. package/esm/ConfigurationEditorWidget/components/JsonEditor.d.ts +1 -2
  74. package/esm/ConfigurationEditorWidget/components/JsonEditor.js +12 -17
  75. package/esm/ConfigurationEditorWidget/components/NumberEditor.d.ts +1 -2
  76. package/esm/ConfigurationEditorWidget/components/NumberEditor.js +3 -2
  77. package/esm/ConfigurationEditorWidget/components/NumberMapEditor.d.ts +1 -2
  78. package/esm/ConfigurationEditorWidget/components/NumberMapEditor.js +22 -33
  79. package/esm/ConfigurationEditorWidget/components/SlotEditor.d.ts +2 -3
  80. package/esm/ConfigurationEditorWidget/components/SlotEditor.js +22 -30
  81. package/esm/ConfigurationEditorWidget/components/StringArrayEditor.d.ts +1 -2
  82. package/esm/ConfigurationEditorWidget/components/StringArrayEditor.js +28 -41
  83. package/esm/ConfigurationEditorWidget/components/StringArrayMapEditor.d.ts +1 -2
  84. package/esm/ConfigurationEditorWidget/components/StringArrayMapEditor.js +30 -42
  85. package/esm/ConfigurationEditorWidget/components/TypeSelector.d.ts +2 -3
  86. package/esm/ConfigurationEditorWidget/components/TypeSelector.js +2 -4
  87. package/esm/ConfigurationEditorWidget/index.d.ts +1 -1
  88. package/esm/ConfigurationEditorWidget/index.js +1 -1
  89. package/esm/ConfigurationEditorWidget/model.d.ts +1 -1
  90. package/esm/ConfigurationEditorWidget/model.js +1 -3
  91. package/esm/FromConfigAdapter/FromConfigAdapter.d.ts +5 -5
  92. package/esm/FromConfigAdapter/FromConfigAdapter.js +3 -4
  93. package/esm/FromConfigAdapter/configSchema.d.ts +0 -3
  94. package/esm/FromConfigAdapter/configSchema.js +1 -7
  95. package/esm/FromConfigAdapter/index.d.ts +1 -1
  96. package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +5 -12
  97. package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +3 -13
  98. package/esm/FromConfigRegionsAdapter/configSchema.d.ts +0 -3
  99. package/esm/FromConfigRegionsAdapter/configSchema.js +1 -8
  100. package/esm/FromConfigRegionsAdapter/index.d.ts +1 -1
  101. package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +3 -16
  102. package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +3 -18
  103. package/esm/FromConfigSequenceAdapter/configSchema.d.ts +0 -3
  104. package/esm/FromConfigSequenceAdapter/configSchema.js +1 -7
  105. package/esm/FromConfigSequenceAdapter/index.d.ts +1 -1
  106. package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +2 -1
  107. package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.js +1 -1
  108. package/esm/NcbiSequenceReportAliasAdapter/configSchema.d.ts +0 -3
  109. package/esm/NcbiSequenceReportAliasAdapter/configSchema.js +1 -8
  110. package/esm/NcbiSequenceReportAliasAdapter/index.d.ts +1 -1
  111. package/esm/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +2 -1
  112. package/esm/RefNameAliasAdapter/RefNameAliasAdapter.js +1 -1
  113. package/esm/RefNameAliasAdapter/configSchema.d.ts +0 -8
  114. package/esm/RefNameAliasAdapter/configSchema.js +1 -14
  115. package/esm/RefNameAliasAdapter/index.d.ts +1 -1
  116. package/esm/index.d.ts +2 -2
  117. package/esm/index.js +2 -2
  118. package/package.json +2 -2
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.makeFeatures = makeFeatures;
7
+ const configuration_1 = require("@jbrowse/core/configuration");
7
8
  const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
8
- const simpleFeature_1 = __importDefault(require("@jbrowse/core/util/simpleFeature"));
9
9
  const rxjs_1 = require("@jbrowse/core/util/rxjs");
10
- const configuration_1 = require("@jbrowse/core/configuration");
10
+ const simpleFeature_1 = __importDefault(require("@jbrowse/core/util/simpleFeature"));
11
11
  function makeFeatures(fdata) {
12
12
  const features = new Map();
13
13
  for (const entry of fdata) {
@@ -20,7 +20,6 @@ function makeFeatures(fdata) {
20
20
  }
21
21
  bucket.push(f);
22
22
  }
23
- // sort the features on each reference sequence by start coordinate
24
23
  for (const refFeatures of features.values()) {
25
24
  refFeatures.sort((a, b) => a.get('start') - b.get('start'));
26
25
  }
@@ -53,6 +52,6 @@ class FromConfigAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
53
52
  observer.complete();
54
53
  });
55
54
  }
56
- freeResources( /* { region } */) { }
55
+ freeResources() { }
57
56
  }
58
57
  exports.default = FromConfigAdapter;
@@ -1,7 +1,4 @@
1
1
  declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
- /**
3
- * #slot
4
- */
5
2
  features: {
6
3
  type: string;
7
4
  defaultValue: never[];
@@ -1,14 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const configuration_1 = require("@jbrowse/core/configuration");
4
- /**
5
- * #config FromConfigAdapter
6
- */
7
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
4
+ function x() { }
8
5
  const configSchema = (0, configuration_1.ConfigurationSchema)('FromConfigAdapter', {
9
- /**
10
- * #slot
11
- */
12
6
  features: {
13
7
  type: 'frozen',
14
8
  defaultValue: [],
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function FromConfigAdapterF(pluginManager: PluginManager): void;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1,18 +1,11 @@
1
- import { BaseAdapter, RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- import { AnyConfigurationModel } from '@jbrowse/core/configuration';
3
- import PluginManager from '@jbrowse/core/PluginManager';
4
- import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
5
- /**
6
- * Adapter that just returns the features defined in its `features` configuration
7
- * key, like:
8
- * `"features": [ { "refName": "ctgA", "start":1, "end":20 }, ... ]`
9
- */
1
+ import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
+ import type PluginManager from '@jbrowse/core/PluginManager';
3
+ import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
4
+ import type { RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
5
+ import type { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
10
6
  export default class FromConfigRegionsAdapter extends BaseAdapter implements RegionsAdapter {
11
7
  private features;
12
8
  constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
13
- /**
14
- * Get refName, start, and end for all features after collapsing any overlaps
15
- */
16
9
  getRegions(): Promise<{
17
10
  refName: string;
18
11
  start: number;
@@ -1,25 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
4
3
  const configuration_1 = require("@jbrowse/core/configuration");
4
+ const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
5
5
  const FromConfigAdapter_1 = require("../FromConfigAdapter/FromConfigAdapter");
6
- /**
7
- * Adapter that just returns the features defined in its `features` configuration
8
- * key, like:
9
- * `"features": [ { "refName": "ctgA", "start":1, "end":20 }, ... ]`
10
- */
11
6
  class FromConfigRegionsAdapter extends BaseAdapter_1.BaseAdapter {
12
7
  constructor(config, getSubAdapter, pluginManager) {
13
8
  super(config, getSubAdapter, pluginManager);
14
9
  const f = (0, configuration_1.readConfObject)(config, 'features');
15
10
  this.features = (0, FromConfigAdapter_1.makeFeatures)(f);
16
11
  }
17
- /**
18
- * Get refName, start, and end for all features after collapsing any overlaps
19
- */
20
12
  async getRegions() {
21
13
  const regions = [];
22
- // recall: features are stored in this object sorted by start coordinate
23
14
  for (const [refName, features] of this.features) {
24
15
  let currentRegion;
25
16
  for (const feature of features) {
@@ -43,10 +34,9 @@ class FromConfigRegionsAdapter extends BaseAdapter_1.BaseAdapter {
43
34
  regions.push(currentRegion);
44
35
  }
45
36
  }
46
- // sort the regions by refName
47
37
  regions.sort((a, b) => a.refName.localeCompare(b.refName));
48
38
  return regions;
49
39
  }
50
- freeResources( /* { region } */) { }
40
+ freeResources() { }
51
41
  }
52
42
  exports.default = FromConfigRegionsAdapter;
@@ -1,7 +1,4 @@
1
1
  declare const regionsConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
- /**
3
- * #slot
4
- */
5
2
  features: {
6
3
  type: string;
7
4
  defaultValue: never[];
@@ -1,15 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const configuration_1 = require("@jbrowse/core/configuration");
4
- /**
5
- * #config FromConfigRegionsAdapter
6
- * used for specifying refNames+sizes of an assembly
7
- */
8
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
4
+ function x() { }
9
5
  const regionsConfigSchema = (0, configuration_1.ConfigurationSchema)('FromConfigRegionsAdapter', {
10
- /**
11
- * #slot
12
- */
13
6
  features: {
14
7
  type: 'frozen',
15
8
  defaultValue: [],
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function FromConfigRegionsAdapterF(pluginManager: PluginManager): void;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1,26 +1,13 @@
1
- import { Feature } from '@jbrowse/core/util/simpleFeature';
2
- import { NoAssemblyRegion } from '@jbrowse/core/util/types';
3
- import { RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
4
1
  import FromConfigAdapter from '../FromConfigAdapter/FromConfigAdapter';
2
+ import type { RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
3
+ import type { Feature } from '@jbrowse/core/util/simpleFeature';
4
+ import type { NoAssemblyRegion } from '@jbrowse/core/util/types';
5
5
  export default class FromConfigSequenceAdapter extends FromConfigAdapter implements RegionsAdapter {
6
- /**
7
- * Fetch features for a certain region
8
- * @param region - Region
9
- * @returns Observable of Feature objects in the region
10
- */
11
6
  getFeatures(region: NoAssemblyRegion): import("rxjs").Observable<Feature>;
12
- /**
13
- * Get refName, start, and end for all features after collapsing any overlaps
14
- */
15
7
  getRegions(): Promise<{
16
8
  start: number;
17
9
  end: number;
18
10
  refName: string;
19
11
  }[]>;
20
- /**
21
- * called to provide a hint that data tied to a certain region
22
- * will not be needed for the foreseeable future and can be purged
23
- * from caches, etc
24
- */
25
12
  freeResources(): void;
26
13
  }
@@ -3,18 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const simpleFeature_1 = __importDefault(require("@jbrowse/core/util/simpleFeature"));
7
6
  const rxjs_1 = require("@jbrowse/core/util/rxjs");
7
+ const simpleFeature_1 = __importDefault(require("@jbrowse/core/util/simpleFeature"));
8
+ const rxjs_2 = require("rxjs");
8
9
  const operators_1 = require("rxjs/operators");
9
- // locals
10
10
  const FromConfigAdapter_1 = __importDefault(require("../FromConfigAdapter/FromConfigAdapter"));
11
- const rxjs_2 = require("rxjs");
12
11
  class FromConfigSequenceAdapter extends FromConfigAdapter_1.default {
13
- /**
14
- * Fetch features for a certain region
15
- * @param region - Region
16
- * @returns Observable of Feature objects in the region
17
- */
18
12
  getFeatures(region) {
19
13
  return (0, rxjs_1.ObservableCreate)(async (observer) => {
20
14
  const feats = await (0, rxjs_2.firstValueFrom)(super.getFeatures(region).pipe((0, operators_1.toArray)()));
@@ -31,12 +25,8 @@ class FromConfigSequenceAdapter extends FromConfigAdapter_1.default {
31
25
  observer.complete();
32
26
  });
33
27
  }
34
- /**
35
- * Get refName, start, and end for all features after collapsing any overlaps
36
- */
37
28
  async getRegions() {
38
29
  const regions = [];
39
- // recall: features are stored in this object sorted by start coordinate
40
30
  for (const [refName, features] of this.features) {
41
31
  let currentRegion;
42
32
  for (const feature of features) {
@@ -62,11 +52,6 @@ class FromConfigSequenceAdapter extends FromConfigAdapter_1.default {
62
52
  }
63
53
  return regions;
64
54
  }
65
- /**
66
- * called to provide a hint that data tied to a certain region
67
- * will not be needed for the foreseeable future and can be purged
68
- * from caches, etc
69
- */
70
- freeResources( /* { region } */) { }
55
+ freeResources() { }
71
56
  }
72
57
  exports.default = FromConfigSequenceAdapter;
@@ -1,7 +1,4 @@
1
1
  declare const sequenceConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
- /**
3
- * #slot
4
- */
5
2
  features: {
6
3
  type: string;
7
4
  defaultValue: never[];
@@ -1,14 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const configuration_1 = require("@jbrowse/core/configuration");
4
- /**
5
- * #config FromConfigSequenceAdapter
6
- */
7
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
4
+ function x() { }
8
5
  const sequenceConfigSchema = (0, configuration_1.ConfigurationSchema)('FromConfigSequenceAdapter', {
9
- /**
10
- * #slot
11
- */
12
6
  features: {
13
7
  type: 'frozen',
14
8
  defaultValue: [],
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function FromConfigSequenceAdapterF(pluginManager: PluginManager): void;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1,4 +1,5 @@
1
- import { BaseRefNameAliasAdapter, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
1
+ import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
+ import type { BaseRefNameAliasAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
3
  export default class NcbiSequenceReportAliasAdapter extends BaseAdapter implements BaseRefNameAliasAdapter {
3
4
  getRefNameAliases(): Promise<{
4
5
  refName: string;
@@ -1,7 +1,4 @@
1
1
  declare const NcbiSequenceReportAliasAdapterConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
- /**
3
- * #slot
4
- */
5
2
  location: {
6
3
  type: string;
7
4
  defaultValue: {
@@ -1,15 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const configuration_1 = require("@jbrowse/core/configuration");
4
- /**
5
- * #config NcbiSequenceReportAliasAdapter
6
- * can read "sequence_report.tsv" type files from NCBI
7
- */
8
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
4
+ function x() { }
9
5
  const NcbiSequenceReportAliasAdapterConfigSchema = (0, configuration_1.ConfigurationSchema)('NcbiSequenceReportAliasAdapter', {
10
- /**
11
- * #slot
12
- */
13
6
  location: {
14
7
  type: 'fileLocation',
15
8
  defaultValue: {
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function NcbiSequenceReportAliasAdapterF(pluginManager: PluginManager): void;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1,4 +1,5 @@
1
- import { BaseRefNameAliasAdapter, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
1
+ import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
+ import type { BaseRefNameAliasAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
3
  export default class RefNameAliasAdapter extends BaseAdapter implements BaseRefNameAliasAdapter {
3
4
  getRefNameAliases(): Promise<{
4
5
  refName: string;
@@ -1,7 +1,4 @@
1
1
  declare const RefNameAliasAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
- /**
3
- * #slot
4
- */
5
2
  location: {
6
3
  type: string;
7
4
  defaultValue: {
@@ -9,11 +6,6 @@ declare const RefNameAliasAdapter: import("@jbrowse/core/configuration/configura
9
6
  locationType: string;
10
7
  };
11
8
  };
12
- /**
13
- * #slot
14
- * by default, the "ref names that match the fasta" are assumed to be in the
15
- * first column (0), change this variable if needed
16
- */
17
9
  refNameColumn: {
18
10
  type: string;
19
11
  defaultValue: number;
@@ -1,16 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const configuration_1 = require("@jbrowse/core/configuration");
4
- /**
5
- * #config RefNameAliasAdapter
6
- * can read "chromAliases" type files from UCSC or any tab separated file of
7
- * refName aliases
8
- */
9
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
4
+ function x() { }
10
5
  const RefNameAliasAdapter = (0, configuration_1.ConfigurationSchema)('RefNameAliasAdapter', {
11
- /**
12
- * #slot
13
- */
14
6
  location: {
15
7
  type: 'fileLocation',
16
8
  defaultValue: {
@@ -18,11 +10,6 @@ const RefNameAliasAdapter = (0, configuration_1.ConfigurationSchema)('RefNameAli
18
10
  locationType: 'UriLocation',
19
11
  },
20
12
  },
21
- /**
22
- * #slot
23
- * by default, the "ref names that match the fasta" are assumed to be in the
24
- * first column (0), change this variable if needed
25
- */
26
13
  refNameColumn: {
27
14
  type: 'number',
28
15
  defaultValue: 0,
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function RefNameAliasAdapterF(pluginManager: PluginManager): void;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
- import PluginManager from '@jbrowse/core/PluginManager';
2
+ import type PluginManager from '@jbrowse/core/PluginManager';
3
3
  declare const LazyConfigurationEditorComponent: import("react").LazyExoticComponent<({ model, }: {
4
4
  model: {
5
5
  target: import("@jbrowse/core/configuration").AnyConfigurationModel;
6
6
  };
7
7
  session?: import("@jbrowse/core/util").AbstractSessionModel;
8
- }) => import("react").JSX.Element>;
8
+ }) => import("react/jsx-runtime").JSX.Element>;
9
9
  export default class ConfigurationPlugin extends Plugin {
10
10
  name: string;
11
11
  install(pluginManager: PluginManager): void;
package/dist/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -29,12 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
39
  exports.ConfigurationEditor = void 0;
30
40
  const react_1 = require("react");
31
41
  const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
42
+ const ConfigurationEditorWidget_1 = __importDefault(require("./ConfigurationEditorWidget"));
32
43
  const FromConfigAdapter_1 = __importDefault(require("./FromConfigAdapter"));
33
44
  const FromConfigRegionsAdapter_1 = __importDefault(require("./FromConfigRegionsAdapter"));
34
45
  const FromConfigSequenceAdapter_1 = __importDefault(require("./FromConfigSequenceAdapter"));
35
- const RefNameAliasAdapter_1 = __importDefault(require("./RefNameAliasAdapter"));
36
- const ConfigurationEditorWidget_1 = __importDefault(require("./ConfigurationEditorWidget"));
37
46
  const NcbiSequenceReportAliasAdapter_1 = __importDefault(require("./NcbiSequenceReportAliasAdapter"));
47
+ const RefNameAliasAdapter_1 = __importDefault(require("./RefNameAliasAdapter"));
38
48
  const LazyConfigurationEditorComponent = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./ConfigurationEditorWidget/components/ConfigurationEditor'))));
39
49
  exports.ConfigurationEditor = LazyConfigurationEditorComponent;
40
50
  class ConfigurationPlugin extends Plugin_1.default {
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  declare const BooleanEditor: ({ slot, }: {
3
2
  slot: {
4
3
  name: string;
@@ -6,5 +5,5 @@ declare const BooleanEditor: ({ slot, }: {
6
5
  set: (arg: boolean) => void;
7
6
  description: string;
8
7
  };
9
- }) => React.JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
10
9
  export default BooleanEditor;
@@ -1,11 +1,9 @@
1
- import React from 'react';
2
- import { observer } from 'mobx-react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { Checkbox, FormControl, FormControlLabel, FormHelperText, } from '@mui/material';
3
+ import { observer } from 'mobx-react';
4
4
  const BooleanEditor = observer(function ({ slot, }) {
5
- return (React.createElement(FormControl, null,
6
- React.createElement(FormControlLabel, { label: slot.name, control: React.createElement(Checkbox, { checked: slot.value, onChange: evt => {
7
- slot.set(evt.target.checked);
8
- } }) }),
9
- React.createElement(FormHelperText, null, slot.description)));
5
+ return (_jsxs(FormControl, { children: [_jsx(FormControlLabel, { label: slot.name, control: _jsx(Checkbox, { checked: slot.value, onChange: evt => {
6
+ slot.set(evt.target.checked);
7
+ } }) }), _jsx(FormHelperText, { children: slot.description })] }));
10
8
  });
11
9
  export default BooleanEditor;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  declare const CallbackEditor: ({ slot, }: {
3
2
  slot: {
4
3
  set: (arg: string) => void;
@@ -7,5 +6,5 @@ declare const CallbackEditor: ({ slot, }: {
7
6
  value: string;
8
7
  contextVariable: string;
9
8
  };
10
- }) => React.JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
11
10
  export default CallbackEditor;