@jbrowse/product-core 2.15.0 → 2.15.2
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/RootModel/BaseRootModel.d.ts +63 -35
- package/dist/Session/MultipleViews.d.ts +204 -112
- package/dist/Session/SessionTracks.d.ts +198 -110
- package/dist/Session/Tracks.d.ts +198 -110
- package/dist/ui/RefNameInfoDialog.js +9 -7
- package/esm/RootModel/BaseRootModel.d.ts +63 -35
- package/esm/Session/MultipleViews.d.ts +204 -112
- package/esm/Session/SessionTracks.d.ts +198 -110
- package/esm/Session/Tracks.d.ts +198 -110
- package/esm/ui/RefNameInfoDialog.js +11 -9
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import { Button, DialogContent
|
|
2
|
+
import { Button, DialogContent } from '@mui/material';
|
|
3
3
|
import { readConfObject, } from '@jbrowse/core/configuration';
|
|
4
|
-
import { Dialog, LoadingEllipses } from '@jbrowse/core/ui';
|
|
4
|
+
import { Dialog, ErrorMessage, LoadingEllipses } from '@jbrowse/core/ui';
|
|
5
5
|
import { getSession } from '@jbrowse/core/util';
|
|
6
6
|
import { getConfAssemblyNames } from '@jbrowse/core/util/tracks';
|
|
7
7
|
import { observer } from 'mobx-react';
|
|
@@ -14,19 +14,17 @@ const useStyles = makeStyles()(theme => ({
|
|
|
14
14
|
},
|
|
15
15
|
refNames: {
|
|
16
16
|
maxHeight: 300,
|
|
17
|
-
width: '100%',
|
|
18
17
|
overflow: 'auto',
|
|
19
18
|
flexGrow: 1,
|
|
20
19
|
background: theme.palette.background.default,
|
|
21
20
|
},
|
|
22
21
|
}));
|
|
23
22
|
const RefNameInfoDialog = observer(function ({ config, onClose, }) {
|
|
23
|
+
const { classes } = useStyles();
|
|
24
24
|
const [error, setError] = useState();
|
|
25
25
|
const [refNames, setRefNames] = useState();
|
|
26
26
|
const [copied, setCopied] = useState(false);
|
|
27
|
-
const {
|
|
28
|
-
const session = getSession(config);
|
|
29
|
-
const { rpcManager } = session;
|
|
27
|
+
const { rpcManager } = getSession(config);
|
|
30
28
|
useEffect(() => {
|
|
31
29
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
32
30
|
;
|
|
@@ -39,7 +37,11 @@ const RefNameInfoDialog = observer(function ({ config, onClose, }) {
|
|
|
39
37
|
(await rpcManager.call(config.trackId, 'CoreGetRefNames', {
|
|
40
38
|
adapterConfig,
|
|
41
39
|
// hack for synteny adapters
|
|
42
|
-
regions: [
|
|
40
|
+
regions: [
|
|
41
|
+
{
|
|
42
|
+
assemblyName,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
43
45
|
})),
|
|
44
46
|
];
|
|
45
47
|
}));
|
|
@@ -64,8 +66,8 @@ const RefNameInfoDialog = observer(function ({ config, onClose, }) {
|
|
|
64
66
|
})
|
|
65
67
|
.filter(f => !!f)
|
|
66
68
|
.join('\n');
|
|
67
|
-
return (React.createElement(Dialog, { open: true, title: "Reference sequence names used in track", onClose: onClose },
|
|
68
|
-
React.createElement(DialogContent, { className: classes.container }, error ? (React.createElement(
|
|
69
|
+
return (React.createElement(Dialog, { open: true, title: "Reference sequence names used in track", onClose: onClose, maxWidth: "xl" },
|
|
70
|
+
React.createElement(DialogContent, { className: classes.container }, error ? (React.createElement(ErrorMessage, { error: error })) : refNames === undefined ? (React.createElement(LoadingEllipses, { message: "Loading refNames" })) : (React.createElement(React.Fragment, null,
|
|
69
71
|
React.createElement(Button, { variant: "contained", onClick: () => {
|
|
70
72
|
copy(names
|
|
71
73
|
.flatMap(([assemblyName, refNames]) => [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/product-core",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "JBrowse 2 code shared between products but not used by plugins",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.16.3",
|
|
46
|
-
"@jbrowse/core": "^2.15.
|
|
46
|
+
"@jbrowse/core": "^2.15.2",
|
|
47
47
|
"@mui/icons-material": "^6.0.0",
|
|
48
48
|
"@mui/material": "^6.0.0",
|
|
49
49
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8a58cefbfe39af4c97bcb6ead354d72c9fef9224"
|
|
67
67
|
}
|