@jbrowse/plugin-trix 3.1.0 → 3.2.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.
|
@@ -5,7 +5,6 @@ declare const TrixTextSearchAdapter: import("@jbrowse/core/configuration/configu
|
|
|
5
5
|
uri: string;
|
|
6
6
|
locationType: string;
|
|
7
7
|
};
|
|
8
|
-
description: string;
|
|
9
8
|
};
|
|
10
9
|
ixxFilePath: {
|
|
11
10
|
type: string;
|
|
@@ -13,7 +12,6 @@ declare const TrixTextSearchAdapter: import("@jbrowse/core/configuration/configu
|
|
|
13
12
|
uri: string;
|
|
14
13
|
locationType: string;
|
|
15
14
|
};
|
|
16
|
-
description: string;
|
|
17
15
|
};
|
|
18
16
|
metaFilePath: {
|
|
19
17
|
type: string;
|
|
@@ -21,7 +19,6 @@ declare const TrixTextSearchAdapter: import("@jbrowse/core/configuration/configu
|
|
|
21
19
|
uri: string;
|
|
22
20
|
locationType: string;
|
|
23
21
|
};
|
|
24
|
-
description: string;
|
|
25
22
|
};
|
|
26
23
|
tracks: {
|
|
27
24
|
type: string;
|
|
@@ -5,18 +5,24 @@ function x() { }
|
|
|
5
5
|
const TrixTextSearchAdapter = (0, configuration_1.ConfigurationSchema)('TrixTextSearchAdapter', {
|
|
6
6
|
ixFilePath: {
|
|
7
7
|
type: 'fileLocation',
|
|
8
|
-
defaultValue: {
|
|
9
|
-
|
|
8
|
+
defaultValue: {
|
|
9
|
+
uri: 'out.ix',
|
|
10
|
+
locationType: 'UriLocation',
|
|
11
|
+
},
|
|
10
12
|
},
|
|
11
13
|
ixxFilePath: {
|
|
12
14
|
type: 'fileLocation',
|
|
13
|
-
defaultValue: {
|
|
14
|
-
|
|
15
|
+
defaultValue: {
|
|
16
|
+
uri: 'out.ixx',
|
|
17
|
+
locationType: 'UriLocation',
|
|
18
|
+
},
|
|
15
19
|
},
|
|
16
20
|
metaFilePath: {
|
|
17
21
|
type: 'fileLocation',
|
|
18
|
-
defaultValue: {
|
|
19
|
-
|
|
22
|
+
defaultValue: {
|
|
23
|
+
uri: 'meta.json',
|
|
24
|
+
locationType: 'UriLocation',
|
|
25
|
+
},
|
|
20
26
|
},
|
|
21
27
|
tracks: {
|
|
22
28
|
type: 'stringArray',
|
|
@@ -31,5 +37,20 @@ const TrixTextSearchAdapter = (0, configuration_1.ConfigurationSchema)('TrixText
|
|
|
31
37
|
}, {
|
|
32
38
|
explicitlyTyped: true,
|
|
33
39
|
explicitIdentifier: 'textSearchAdapterId',
|
|
40
|
+
preProcessSnapshot: snap => {
|
|
41
|
+
return snap.uri
|
|
42
|
+
? {
|
|
43
|
+
...snap,
|
|
44
|
+
ixFilePath: {
|
|
45
|
+
uri: snap.uri,
|
|
46
|
+
baseUri: snap.baseUri,
|
|
47
|
+
},
|
|
48
|
+
ixxFilePath: {
|
|
49
|
+
uri: `${snap.uri}x`,
|
|
50
|
+
baseUri: snap.baseUri,
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
: snap;
|
|
54
|
+
},
|
|
34
55
|
});
|
|
35
56
|
exports.default = TrixTextSearchAdapter;
|
|
@@ -5,7 +5,6 @@ declare const TrixTextSearchAdapter: import("@jbrowse/core/configuration/configu
|
|
|
5
5
|
uri: string;
|
|
6
6
|
locationType: string;
|
|
7
7
|
};
|
|
8
|
-
description: string;
|
|
9
8
|
};
|
|
10
9
|
ixxFilePath: {
|
|
11
10
|
type: string;
|
|
@@ -13,7 +12,6 @@ declare const TrixTextSearchAdapter: import("@jbrowse/core/configuration/configu
|
|
|
13
12
|
uri: string;
|
|
14
13
|
locationType: string;
|
|
15
14
|
};
|
|
16
|
-
description: string;
|
|
17
15
|
};
|
|
18
16
|
metaFilePath: {
|
|
19
17
|
type: string;
|
|
@@ -21,7 +19,6 @@ declare const TrixTextSearchAdapter: import("@jbrowse/core/configuration/configu
|
|
|
21
19
|
uri: string;
|
|
22
20
|
locationType: string;
|
|
23
21
|
};
|
|
24
|
-
description: string;
|
|
25
22
|
};
|
|
26
23
|
tracks: {
|
|
27
24
|
type: string;
|
|
@@ -3,18 +3,24 @@ function x() { }
|
|
|
3
3
|
const TrixTextSearchAdapter = ConfigurationSchema('TrixTextSearchAdapter', {
|
|
4
4
|
ixFilePath: {
|
|
5
5
|
type: 'fileLocation',
|
|
6
|
-
defaultValue: {
|
|
7
|
-
|
|
6
|
+
defaultValue: {
|
|
7
|
+
uri: 'out.ix',
|
|
8
|
+
locationType: 'UriLocation',
|
|
9
|
+
},
|
|
8
10
|
},
|
|
9
11
|
ixxFilePath: {
|
|
10
12
|
type: 'fileLocation',
|
|
11
|
-
defaultValue: {
|
|
12
|
-
|
|
13
|
+
defaultValue: {
|
|
14
|
+
uri: 'out.ixx',
|
|
15
|
+
locationType: 'UriLocation',
|
|
16
|
+
},
|
|
13
17
|
},
|
|
14
18
|
metaFilePath: {
|
|
15
19
|
type: 'fileLocation',
|
|
16
|
-
defaultValue: {
|
|
17
|
-
|
|
20
|
+
defaultValue: {
|
|
21
|
+
uri: 'meta.json',
|
|
22
|
+
locationType: 'UriLocation',
|
|
23
|
+
},
|
|
18
24
|
},
|
|
19
25
|
tracks: {
|
|
20
26
|
type: 'stringArray',
|
|
@@ -29,5 +35,20 @@ const TrixTextSearchAdapter = ConfigurationSchema('TrixTextSearchAdapter', {
|
|
|
29
35
|
}, {
|
|
30
36
|
explicitlyTyped: true,
|
|
31
37
|
explicitIdentifier: 'textSearchAdapterId',
|
|
38
|
+
preProcessSnapshot: snap => {
|
|
39
|
+
return snap.uri
|
|
40
|
+
? {
|
|
41
|
+
...snap,
|
|
42
|
+
ixFilePath: {
|
|
43
|
+
uri: snap.uri,
|
|
44
|
+
baseUri: snap.baseUri,
|
|
45
|
+
},
|
|
46
|
+
ixxFilePath: {
|
|
47
|
+
uri: `${snap.uri}x`,
|
|
48
|
+
baseUri: snap.baseUri,
|
|
49
|
+
},
|
|
50
|
+
}
|
|
51
|
+
: snap;
|
|
52
|
+
},
|
|
32
53
|
});
|
|
33
54
|
export default TrixTextSearchAdapter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-trix",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "JBrowse 2 trix text search adapter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@gmod/trix": "^3.0.2",
|
|
43
|
-
"@jbrowse/core": "^3.
|
|
43
|
+
"@jbrowse/core": "^3.2.0",
|
|
44
44
|
"@mui/material": "^6.0.0",
|
|
45
45
|
"mobx": "^6.0.0",
|
|
46
46
|
"mobx-react": "^9.0.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"distModule": "esm/index.js",
|
|
53
53
|
"srcModule": "src/index.ts",
|
|
54
54
|
"module": "esm/index.js",
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c750e3f56706a490c19ba75abd807fec5e38aebf"
|
|
56
56
|
}
|