@jbrowse/plugin-bed 5.0.0-beta.11 → 5.0.0-beta.13

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.
@@ -10,13 +10,6 @@ import { openLocation } from '@jbrowse/core/util/io';
10
10
  const MAX_EXACT_NAMES = 50;
11
11
  const MAX_PREFIX_NAMES = 50;
12
12
  const MAX_TRIX_HITS = 500;
13
- function isSet(location) {
14
- return 'uri' in location
15
- ? !!location.uri
16
- : 'localPath' in location
17
- ? !!location.localPath
18
- : true;
19
- }
20
13
  // the column that matched is the name the hit goes by: a gene symbol for a
21
14
  // search by symbol, the accession for a search by accession
22
15
  function hitFor({ refName, start, end, rest = '', }, word) {
@@ -69,7 +62,7 @@ export default class BigBedTextSearchAdapter extends BaseAdapter {
69
62
  });
70
63
  const ix = this.getConf('ixFilePath');
71
64
  const ixx = this.getConf('ixxFilePath');
72
- if (isSet(ix) && isSet(ixx)) {
65
+ if (ix && ixx) {
73
66
  this.trix = new Trix(openLocation(ixx, pluginManager), openLocation(ix, pluginManager), MAX_TRIX_HITS);
74
67
  }
75
68
  }
@@ -31,14 +31,10 @@ declare const BigBedTextSearchAdapter: import("@jbrowse/core/configuration/confi
31
31
  defaultValue: unknown;
32
32
  };
33
33
  readonly ixFilePath: {
34
- type: "fileLocation";
35
- } & {
36
- defaultValue: unknown;
34
+ type: "maybeFileLocation";
37
35
  };
38
36
  readonly ixxFilePath: {
39
- type: "fileLocation";
40
- } & {
41
- defaultValue: unknown;
37
+ type: "maybeFileLocation";
42
38
  };
43
39
  readonly assemblyNames: {
44
40
  type: "stringArray";
@@ -34,16 +34,14 @@ const BigBedTextSearchAdapter = ConfigurationSchema('BigBedTextSearchAdapter', {
34
34
  * indexes hold. Unset, a search matches a name exactly as typed
35
35
  */
36
36
  ixFilePath: {
37
- type: 'fileLocation',
38
- defaultValue: { uri: '', locationType: 'UriLocation' },
37
+ type: 'maybeFileLocation',
39
38
  },
40
39
  /**
41
40
  * #slot
42
41
  * the `.ixx` beside `ixFilePath`
43
42
  */
44
43
  ixxFilePath: {
45
- type: 'fileLocation',
46
- defaultValue: { uri: '', locationType: 'UriLocation' },
44
+ type: 'maybeFileLocation',
47
45
  },
48
46
  /**
49
47
  * #slot
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-bed",
3
- "version": "5.0.0-beta.11",
3
+ "version": "5.0.0-beta.13",
4
4
  "type": "module",
5
5
  "description": "JBrowse 2 bed adapters, tracks, etc.",
6
6
  "keywords": [
@@ -26,9 +26,9 @@
26
26
  "@gmod/tabix": "^3.9.1",
27
27
  "@gmod/trix": "^3.0.22",
28
28
  "@jbrowse/mobx-state-tree": "^6.7.0",
29
- "mobx": "^7.0.5",
29
+ "mobx": "^7.0.6",
30
30
  "rxjs": "^7.8.2",
31
- "@jbrowse/core": "^5.0.0-beta.11"
31
+ "@jbrowse/core": "^5.0.0-beta.13"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=19.0.0",