@jbrowse/plugin-legacy-jbrowse 2.1.7 → 2.2.1

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 (38) hide show
  1. package/dist/JBrowse1Connection/configSchema.d.ts +2 -2
  2. package/dist/JBrowse1Connection/configSchema.js +18 -2
  3. package/dist/JBrowse1Connection/configSchema.js.map +1 -1
  4. package/dist/JBrowse1Connection/types.d.ts +1 -1
  5. package/dist/JBrowse1Connection/util.d.ts +1 -1
  6. package/dist/JBrowse1TextSeachAdapter/HttpMap.js +1 -1
  7. package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.d.ts +1 -1
  8. package/dist/JBrowse1TextSeachAdapter/configSchema.js +21 -2
  9. package/dist/JBrowse1TextSeachAdapter/configSchema.js.map +1 -1
  10. package/dist/NCListAdapter/NCListAdapter.d.ts +5 -3
  11. package/dist/NCListAdapter/NCListAdapter.js +5 -7
  12. package/dist/NCListAdapter/NCListAdapter.js.map +1 -1
  13. package/dist/NCListAdapter/configSchema.d.ts +2 -2
  14. package/dist/NCListAdapter/configSchema.js +12 -1
  15. package/dist/NCListAdapter/configSchema.js.map +1 -1
  16. package/esm/JBrowse1Connection/configSchema.d.ts +2 -2
  17. package/esm/JBrowse1Connection/configSchema.js +18 -2
  18. package/esm/JBrowse1Connection/configSchema.js.map +1 -1
  19. package/esm/JBrowse1Connection/types.d.ts +1 -1
  20. package/esm/JBrowse1Connection/util.d.ts +1 -1
  21. package/esm/JBrowse1TextSeachAdapter/HttpMap.js +1 -1
  22. package/esm/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.d.ts +1 -1
  23. package/esm/JBrowse1TextSeachAdapter/configSchema.js +21 -2
  24. package/esm/JBrowse1TextSeachAdapter/configSchema.js.map +1 -1
  25. package/esm/NCListAdapter/NCListAdapter.d.ts +5 -3
  26. package/esm/NCListAdapter/NCListAdapter.js +5 -7
  27. package/esm/NCListAdapter/NCListAdapter.js.map +1 -1
  28. package/esm/NCListAdapter/configSchema.d.ts +2 -2
  29. package/esm/NCListAdapter/configSchema.js +12 -1
  30. package/esm/NCListAdapter/configSchema.js.map +1 -1
  31. package/package.json +2 -2
  32. package/src/JBrowse1Connection/configSchema.ts +20 -2
  33. package/src/JBrowse1TextSeachAdapter/HttpMap.ts +1 -1
  34. package/src/JBrowse1TextSeachAdapter/configSchema.ts +22 -2
  35. package/src/NCListAdapter/NCListAdapter.ts +7 -10
  36. package/src/NCListAdapter/__snapshots__/NCListAdapter.test.ts.snap +2343 -2343
  37. package/src/NCListAdapter/configSchema.ts +13 -1
  38. package/src/__snapshots__/index.test.js.snap +3 -3
@@ -8,12 +8,10 @@ import { Feature } from '@jbrowse/core/util/simpleFeature'
8
8
  import { ObservableCreate } from '@jbrowse/core/util/rxjs'
9
9
  import { checkAbortSignal } from '@jbrowse/core/util'
10
10
  import { RemoteFile } from 'generic-filehandle'
11
- import { Instance } from 'mobx-state-tree'
12
- import { readConfObject } from '@jbrowse/core/configuration'
13
11
  import NCListFeature from './NCListFeature'
14
- import MyConfigSchema from './configSchema'
15
12
  import PluginManager from '@jbrowse/core/PluginManager'
16
13
  import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache'
14
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration'
17
15
 
18
16
  export default class NCListAdapter extends BaseFeatureDataAdapter {
19
17
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -22,13 +20,13 @@ export default class NCListAdapter extends BaseFeatureDataAdapter {
22
20
  private configRefNames?: string[]
23
21
 
24
22
  constructor(
25
- config: Instance<typeof MyConfigSchema>,
23
+ config: AnyConfigurationModel,
26
24
  getSubAdapter?: getSubAdapterType,
27
25
  pluginManager?: PluginManager,
28
26
  ) {
29
27
  super(config, getSubAdapter, pluginManager)
30
- const refNames = readConfObject(config, 'refNames')
31
- const rootUrlTemplate = readConfObject(config, 'rootUrlTemplate')
28
+ const refNames = this.getConf('refNames')
29
+ const rootUrlTemplate = this.getConf('rootUrlTemplate')
32
30
  this.configRefNames = refNames
33
31
 
34
32
  this.nclist = new NCListStore({
@@ -78,12 +76,11 @@ export default class NCListAdapter extends BaseFeatureDataAdapter {
78
76
  return !!(root && root.stats && root.stats.featureCount)
79
77
  }
80
78
 
81
- /*
79
+ /**
82
80
  * NCList is unable to get list of ref names so returns empty
83
- * @return Promise<string[]> of empty list
84
81
  */
85
- getRefNames() {
86
- return Promise.resolve(this.configRefNames || [])
82
+ async getRefNames() {
83
+ return this.configRefNames || []
87
84
  }
88
85
 
89
86
  /**