@jbrowse/plugin-config 2.16.1 → 2.18.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 (90) hide show
  1. package/dist/ConfigurationEditorWidget/components/BooleanEditor.js +1 -1
  2. package/dist/ConfigurationEditorWidget/components/CallbackEditor.js +8 -11
  3. package/dist/ConfigurationEditorWidget/components/ColorEditor.js +2 -2
  4. package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +2 -2
  5. package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.js +4 -11
  6. package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +1 -1
  7. package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.js +6 -6
  8. package/dist/ConfigurationEditorWidget/components/JsonEditor.js +6 -6
  9. package/dist/ConfigurationEditorWidget/components/NumberMapEditor.js +12 -11
  10. package/dist/ConfigurationEditorWidget/components/SlotEditor.d.ts +1 -1
  11. package/dist/ConfigurationEditorWidget/components/SlotEditor.js +11 -16
  12. package/dist/ConfigurationEditorWidget/components/StringArrayEditor.js +24 -21
  13. package/dist/ConfigurationEditorWidget/components/StringArrayMapEditor.js +12 -12
  14. package/dist/ConfigurationEditorWidget/components/TypeSelector.d.ts +1 -1
  15. package/dist/ConfigurationEditorWidget/index.d.ts +1 -1
  16. package/dist/ConfigurationEditorWidget/index.js +1 -1
  17. package/dist/ConfigurationEditorWidget/model.d.ts +1 -1
  18. package/dist/ConfigurationEditorWidget/model.js +1 -3
  19. package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +5 -5
  20. package/dist/FromConfigAdapter/FromConfigAdapter.js +3 -4
  21. package/dist/FromConfigAdapter/configSchema.d.ts +0 -3
  22. package/dist/FromConfigAdapter/configSchema.js +1 -7
  23. package/dist/FromConfigAdapter/index.d.ts +1 -1
  24. package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +5 -12
  25. package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +2 -12
  26. package/dist/FromConfigRegionsAdapter/configSchema.d.ts +0 -3
  27. package/dist/FromConfigRegionsAdapter/configSchema.js +1 -8
  28. package/dist/FromConfigRegionsAdapter/index.d.ts +1 -1
  29. package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +3 -16
  30. package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +3 -18
  31. package/dist/FromConfigSequenceAdapter/configSchema.d.ts +0 -3
  32. package/dist/FromConfigSequenceAdapter/configSchema.js +1 -7
  33. package/dist/FromConfigSequenceAdapter/index.d.ts +1 -1
  34. package/dist/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +2 -1
  35. package/dist/NcbiSequenceReportAliasAdapter/configSchema.d.ts +0 -3
  36. package/dist/NcbiSequenceReportAliasAdapter/configSchema.js +1 -8
  37. package/dist/NcbiSequenceReportAliasAdapter/index.d.ts +1 -1
  38. package/dist/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +2 -1
  39. package/dist/RefNameAliasAdapter/configSchema.d.ts +0 -8
  40. package/dist/RefNameAliasAdapter/configSchema.js +1 -14
  41. package/dist/RefNameAliasAdapter/index.d.ts +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +2 -2
  44. package/esm/ConfigurationEditorWidget/components/BooleanEditor.js +1 -1
  45. package/esm/ConfigurationEditorWidget/components/CallbackEditor.js +8 -11
  46. package/esm/ConfigurationEditorWidget/components/ColorEditor.js +2 -2
  47. package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +2 -2
  48. package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js +5 -12
  49. package/esm/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +1 -1
  50. package/esm/ConfigurationEditorWidget/components/ConfigurationTextField.js +6 -6
  51. package/esm/ConfigurationEditorWidget/components/HeadingComponent.js +1 -1
  52. package/esm/ConfigurationEditorWidget/components/JsonEditor.js +6 -6
  53. package/esm/ConfigurationEditorWidget/components/NumberMapEditor.js +12 -11
  54. package/esm/ConfigurationEditorWidget/components/SlotEditor.d.ts +1 -1
  55. package/esm/ConfigurationEditorWidget/components/SlotEditor.js +12 -17
  56. package/esm/ConfigurationEditorWidget/components/StringArrayEditor.js +24 -21
  57. package/esm/ConfigurationEditorWidget/components/StringArrayMapEditor.js +12 -12
  58. package/esm/ConfigurationEditorWidget/components/TypeSelector.d.ts +1 -1
  59. package/esm/ConfigurationEditorWidget/index.d.ts +1 -1
  60. package/esm/ConfigurationEditorWidget/index.js +1 -1
  61. package/esm/ConfigurationEditorWidget/model.d.ts +1 -1
  62. package/esm/ConfigurationEditorWidget/model.js +1 -3
  63. package/esm/FromConfigAdapter/FromConfigAdapter.d.ts +5 -5
  64. package/esm/FromConfigAdapter/FromConfigAdapter.js +3 -4
  65. package/esm/FromConfigAdapter/configSchema.d.ts +0 -3
  66. package/esm/FromConfigAdapter/configSchema.js +1 -7
  67. package/esm/FromConfigAdapter/index.d.ts +1 -1
  68. package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +5 -12
  69. package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +3 -13
  70. package/esm/FromConfigRegionsAdapter/configSchema.d.ts +0 -3
  71. package/esm/FromConfigRegionsAdapter/configSchema.js +1 -8
  72. package/esm/FromConfigRegionsAdapter/index.d.ts +1 -1
  73. package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +3 -16
  74. package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +3 -18
  75. package/esm/FromConfigSequenceAdapter/configSchema.d.ts +0 -3
  76. package/esm/FromConfigSequenceAdapter/configSchema.js +1 -7
  77. package/esm/FromConfigSequenceAdapter/index.d.ts +1 -1
  78. package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +2 -1
  79. package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.js +1 -1
  80. package/esm/NcbiSequenceReportAliasAdapter/configSchema.d.ts +0 -3
  81. package/esm/NcbiSequenceReportAliasAdapter/configSchema.js +1 -8
  82. package/esm/NcbiSequenceReportAliasAdapter/index.d.ts +1 -1
  83. package/esm/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +2 -1
  84. package/esm/RefNameAliasAdapter/RefNameAliasAdapter.js +1 -1
  85. package/esm/RefNameAliasAdapter/configSchema.d.ts +0 -8
  86. package/esm/RefNameAliasAdapter/configSchema.js +1 -14
  87. package/esm/RefNameAliasAdapter/index.d.ts +1 -1
  88. package/esm/index.d.ts +1 -1
  89. package/esm/index.js +2 -2
  90. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AnyConfigurationModel } from '@jbrowse/core/configuration';
2
+ import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
3
3
  declare const TypeSelector: ({ typeNameChoices, slot, slotName, onChange, }: {
4
4
  typeNameChoices: string[];
5
5
  slot: AnyConfigurationModel;
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function registerConfigurationEditorWidget(pluginManager: PluginManager): void;
@@ -1,8 +1,8 @@
1
1
  import { lazy } from 'react';
2
2
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
3
3
  import { WidgetType } from '@jbrowse/core/pluggableElementTypes';
4
- import stateModelFactory from './model';
5
4
  import HeadingComponent from './components/HeadingComponent';
5
+ import stateModelFactory from './model';
6
6
  const configSchema = ConfigurationSchema('ConfigurationEditorWidget', {});
7
7
  const LazyConfigurationEditorComponent = lazy(() => import('./components/ConfigurationEditor'));
8
8
  export default function registerConfigurationEditorWidget(pluginManager) {
@@ -1,4 +1,4 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
3
3
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
4
4
  type: import("mobx-state-tree").ISimpleType<"ConfigurationEditorWidget">;
@@ -1,12 +1,10 @@
1
- import { types } from 'mobx-state-tree';
2
1
  import { ElementId } from '@jbrowse/core/util/types/mst';
2
+ import { types } from 'mobx-state-tree';
3
3
  export default function stateModelFactory(pluginManager) {
4
4
  return types
5
5
  .model('ConfigurationEditorWidget', {
6
6
  id: ElementId,
7
7
  type: types.literal('ConfigurationEditorWidget'),
8
- // If you add different types of targets, don't forget to account for that
9
- // in the key of ./components/ConfigurationEditor.js
10
8
  target: types.safeReference(pluginManager.pluggableConfigSchemaType('track')),
11
9
  })
12
10
  .actions(self => ({
@@ -1,9 +1,9 @@
1
1
  import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- import { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
3
- import { NoAssemblyRegion } from '@jbrowse/core/util/types';
4
- import { AnyConfigurationModel } from '@jbrowse/core/configuration';
5
- import PluginManager from '@jbrowse/core/PluginManager';
6
- import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
2
+ import type PluginManager from '@jbrowse/core/PluginManager';
3
+ import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
4
+ import type { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
5
+ import type { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
6
+ import type { NoAssemblyRegion } from '@jbrowse/core/util/types';
7
7
  export declare function makeFeatures(fdata: SimpleFeatureSerialized[]): Map<string, Feature[]>;
8
8
  export default class FromConfigAdapter extends BaseFeatureDataAdapter {
9
9
  protected features: Map<string, Feature[]>;
@@ -1,7 +1,7 @@
1
+ import { readConfObject } from '@jbrowse/core/configuration';
1
2
  import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- import SimpleFeature from '@jbrowse/core/util/simpleFeature';
3
3
  import { ObservableCreate } from '@jbrowse/core/util/rxjs';
4
- import { readConfObject, } from '@jbrowse/core/configuration';
4
+ import SimpleFeature from '@jbrowse/core/util/simpleFeature';
5
5
  export function makeFeatures(fdata) {
6
6
  const features = new Map();
7
7
  for (const entry of fdata) {
@@ -14,7 +14,6 @@ export function makeFeatures(fdata) {
14
14
  }
15
15
  bucket.push(f);
16
16
  }
17
- // sort the features on each reference sequence by start coordinate
18
17
  for (const refFeatures of features.values()) {
19
18
  refFeatures.sort((a, b) => a.get('start') - b.get('start'));
20
19
  }
@@ -47,5 +46,5 @@ export default class FromConfigAdapter extends BaseFeatureDataAdapter {
47
46
  observer.complete();
48
47
  });
49
48
  }
50
- freeResources( /* { region } */) { }
49
+ freeResources() { }
51
50
  }
@@ -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,12 +1,6 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
- /**
3
- * #config FromConfigAdapter
4
- */
5
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
2
+ function x() { }
6
3
  const configSchema = ConfigurationSchema('FromConfigAdapter', {
7
- /**
8
- * #slot
9
- */
10
4
  features: {
11
5
  type: 'frozen',
12
6
  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;
@@ -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,23 +1,14 @@
1
- import { BaseAdapter, } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- import { readConfObject, } from '@jbrowse/core/configuration';
1
+ import { readConfObject } from '@jbrowse/core/configuration';
2
+ import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
3
3
  import { makeFeatures } from '../FromConfigAdapter/FromConfigAdapter';
4
- /**
5
- * Adapter that just returns the features defined in its `features` configuration
6
- * key, like:
7
- * `"features": [ { "refName": "ctgA", "start":1, "end":20 }, ... ]`
8
- */
9
4
  export default class FromConfigRegionsAdapter extends BaseAdapter {
10
5
  constructor(config, getSubAdapter, pluginManager) {
11
6
  super(config, getSubAdapter, pluginManager);
12
7
  const f = readConfObject(config, 'features');
13
8
  this.features = makeFeatures(f);
14
9
  }
15
- /**
16
- * Get refName, start, and end for all features after collapsing any overlaps
17
- */
18
10
  async getRegions() {
19
11
  const regions = [];
20
- // recall: features are stored in this object sorted by start coordinate
21
12
  for (const [refName, features] of this.features) {
22
13
  let currentRegion;
23
14
  for (const feature of features) {
@@ -41,9 +32,8 @@ export default class FromConfigRegionsAdapter extends BaseAdapter {
41
32
  regions.push(currentRegion);
42
33
  }
43
34
  }
44
- // sort the regions by refName
45
35
  regions.sort((a, b) => a.refName.localeCompare(b.refName));
46
36
  return regions;
47
37
  }
48
- freeResources( /* { region } */) { }
38
+ freeResources() { }
49
39
  }
@@ -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,13 +1,6 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
- /**
3
- * #config FromConfigRegionsAdapter
4
- * used for specifying refNames+sizes of an assembly
5
- */
6
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
2
+ function x() { }
7
3
  const regionsConfigSchema = ConfigurationSchema('FromConfigRegionsAdapter', {
8
- /**
9
- * #slot
10
- */
11
4
  features: {
12
5
  type: 'frozen',
13
6
  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;
@@ -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
  }
@@ -1,15 +1,9 @@
1
- import SimpleFeature from '@jbrowse/core/util/simpleFeature';
2
1
  import { ObservableCreate } from '@jbrowse/core/util/rxjs';
2
+ import SimpleFeature from '@jbrowse/core/util/simpleFeature';
3
+ import { firstValueFrom } from 'rxjs';
3
4
  import { toArray } from 'rxjs/operators';
4
- // locals
5
5
  import FromConfigAdapter from '../FromConfigAdapter/FromConfigAdapter';
6
- import { firstValueFrom } from 'rxjs';
7
6
  export default class FromConfigSequenceAdapter extends FromConfigAdapter {
8
- /**
9
- * Fetch features for a certain region
10
- * @param region - Region
11
- * @returns Observable of Feature objects in the region
12
- */
13
7
  getFeatures(region) {
14
8
  return ObservableCreate(async (observer) => {
15
9
  const feats = await firstValueFrom(super.getFeatures(region).pipe(toArray()));
@@ -26,12 +20,8 @@ export default class FromConfigSequenceAdapter extends FromConfigAdapter {
26
20
  observer.complete();
27
21
  });
28
22
  }
29
- /**
30
- * Get refName, start, and end for all features after collapsing any overlaps
31
- */
32
23
  async getRegions() {
33
24
  const regions = [];
34
- // recall: features are stored in this object sorted by start coordinate
35
25
  for (const [refName, features] of this.features) {
36
26
  let currentRegion;
37
27
  for (const feature of features) {
@@ -57,10 +47,5 @@ export default class FromConfigSequenceAdapter extends FromConfigAdapter {
57
47
  }
58
48
  return regions;
59
49
  }
60
- /**
61
- * called to provide a hint that data tied to a certain region
62
- * will not be needed for the foreseeable future and can be purged
63
- * from caches, etc
64
- */
65
- freeResources( /* { region } */) { }
50
+ freeResources() { }
66
51
  }
@@ -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,12 +1,6 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
- /**
3
- * #config FromConfigSequenceAdapter
4
- */
5
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
2
+ function x() { }
6
3
  const sequenceConfigSchema = ConfigurationSchema('FromConfigSequenceAdapter', {
7
- /**
8
- * #slot
9
- */
10
4
  features: {
11
5
  type: 'frozen',
12
6
  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;
@@ -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,4 +1,4 @@
1
- import { BaseAdapter, } from '@jbrowse/core/data_adapters/BaseAdapter';
1
+ import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
2
  import { openLocation } from '@jbrowse/core/util/io';
3
3
  export default class NcbiSequenceReportAliasAdapter extends BaseAdapter {
4
4
  async getRefNameAliases() {
@@ -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,13 +1,6 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
- /**
3
- * #config NcbiSequenceReportAliasAdapter
4
- * can read "sequence_report.tsv" type files from NCBI
5
- */
6
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
2
+ function x() { }
7
3
  const NcbiSequenceReportAliasAdapterConfigSchema = ConfigurationSchema('NcbiSequenceReportAliasAdapter', {
8
- /**
9
- * #slot
10
- */
11
4
  location: {
12
5
  type: 'fileLocation',
13
6
  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;
@@ -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,4 +1,4 @@
1
- import { BaseAdapter, } from '@jbrowse/core/data_adapters/BaseAdapter';
1
+ import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
2
  import { openLocation } from '@jbrowse/core/util/io';
3
3
  export default class RefNameAliasAdapter extends BaseAdapter {
4
4
  async getRefNameAliases() {
@@ -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,14 +1,6 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
- /**
3
- * #config RefNameAliasAdapter
4
- * can read "chromAliases" type files from UCSC or any tab separated file of
5
- * refName aliases
6
- */
7
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
2
+ function x() { }
8
3
  const RefNameAliasAdapter = ConfigurationSchema('RefNameAliasAdapter', {
9
- /**
10
- * #slot
11
- */
12
4
  location: {
13
5
  type: 'fileLocation',
14
6
  defaultValue: {
@@ -16,11 +8,6 @@ const RefNameAliasAdapter = ConfigurationSchema('RefNameAliasAdapter', {
16
8
  locationType: 'UriLocation',
17
9
  },
18
10
  },
19
- /**
20
- * #slot
21
- * by default, the "ref names that match the fasta" are assumed to be in the
22
- * first column (0), change this variable if needed
23
- */
24
11
  refNameColumn: {
25
12
  type: 'number',
26
13
  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;
package/esm/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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;
package/esm/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { lazy } from 'react';
2
2
  import Plugin from '@jbrowse/core/Plugin';
3
+ import ConfigurationEditorWidgetF from './ConfigurationEditorWidget';
3
4
  import FromConfigAdapterF from './FromConfigAdapter';
4
5
  import FromConfigRegionsAdapterF from './FromConfigRegionsAdapter';
5
6
  import FromConfigSequenceAdapterF from './FromConfigSequenceAdapter';
6
- import RefNameAliasAdapterF from './RefNameAliasAdapter';
7
- import ConfigurationEditorWidgetF from './ConfigurationEditorWidget';
8
7
  import NcbiSequenceReportAliasAdapterF from './NcbiSequenceReportAliasAdapter';
8
+ import RefNameAliasAdapterF from './RefNameAliasAdapter';
9
9
  const LazyConfigurationEditorComponent = lazy(() => import('./ConfigurationEditorWidget/components/ConfigurationEditor'));
10
10
  export default class ConfigurationPlugin extends Plugin {
11
11
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-config",
3
- "version": "2.16.1",
3
+ "version": "2.18.0",
4
4
  "description": "JBrowse 2 config utilities",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -56,5 +56,5 @@
56
56
  "distModule": "esm/index.js",
57
57
  "srcModule": "src/index.ts",
58
58
  "module": "esm/index.js",
59
- "gitHead": "c6a658d2344989895543f0456b1cf7dd3b937769"
59
+ "gitHead": "c344ea60099cb7e460b77f15808946b24a7eee74"
60
60
  }