@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.
- package/dist/JBrowse1Connection/configSchema.d.ts +2 -2
- package/dist/JBrowse1Connection/configSchema.js +18 -2
- package/dist/JBrowse1Connection/configSchema.js.map +1 -1
- package/dist/JBrowse1Connection/types.d.ts +1 -1
- package/dist/JBrowse1Connection/util.d.ts +1 -1
- package/dist/JBrowse1TextSeachAdapter/HttpMap.js +1 -1
- package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.d.ts +1 -1
- package/dist/JBrowse1TextSeachAdapter/configSchema.js +21 -2
- package/dist/JBrowse1TextSeachAdapter/configSchema.js.map +1 -1
- package/dist/NCListAdapter/NCListAdapter.d.ts +5 -3
- package/dist/NCListAdapter/NCListAdapter.js +5 -7
- package/dist/NCListAdapter/NCListAdapter.js.map +1 -1
- package/dist/NCListAdapter/configSchema.d.ts +2 -2
- package/dist/NCListAdapter/configSchema.js +12 -1
- package/dist/NCListAdapter/configSchema.js.map +1 -1
- package/esm/JBrowse1Connection/configSchema.d.ts +2 -2
- package/esm/JBrowse1Connection/configSchema.js +18 -2
- package/esm/JBrowse1Connection/configSchema.js.map +1 -1
- package/esm/JBrowse1Connection/types.d.ts +1 -1
- package/esm/JBrowse1Connection/util.d.ts +1 -1
- package/esm/JBrowse1TextSeachAdapter/HttpMap.js +1 -1
- package/esm/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.d.ts +1 -1
- package/esm/JBrowse1TextSeachAdapter/configSchema.js +21 -2
- package/esm/JBrowse1TextSeachAdapter/configSchema.js.map +1 -1
- package/esm/NCListAdapter/NCListAdapter.d.ts +5 -3
- package/esm/NCListAdapter/NCListAdapter.js +5 -7
- package/esm/NCListAdapter/NCListAdapter.js.map +1 -1
- package/esm/NCListAdapter/configSchema.d.ts +2 -2
- package/esm/NCListAdapter/configSchema.js +12 -1
- package/esm/NCListAdapter/configSchema.js.map +1 -1
- package/package.json +2 -2
- package/src/JBrowse1Connection/configSchema.ts +20 -2
- package/src/JBrowse1TextSeachAdapter/HttpMap.ts +1 -1
- package/src/JBrowse1TextSeachAdapter/configSchema.ts +22 -2
- package/src/NCListAdapter/NCListAdapter.ts +7 -10
- package/src/NCListAdapter/__snapshots__/NCListAdapter.test.ts.snap +2343 -2343
- package/src/NCListAdapter/configSchema.ts +13 -1
- 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:
|
|
23
|
+
config: AnyConfigurationModel,
|
|
26
24
|
getSubAdapter?: getSubAdapterType,
|
|
27
25
|
pluginManager?: PluginManager,
|
|
28
26
|
) {
|
|
29
27
|
super(config, getSubAdapter, pluginManager)
|
|
30
|
-
const refNames =
|
|
31
|
-
const 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
|
|
82
|
+
async getRefNames() {
|
|
83
|
+
return this.configRefNames || []
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
/**
|