@jbrowse/plugin-linear-genome-view 4.1.15 → 4.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.
|
@@ -23,7 +23,7 @@ const LinearGenomeViewImportForm = observer(function LinearGenomeViewImportForm(
|
|
|
23
23
|
const { classes } = useStyles();
|
|
24
24
|
const session = getSession(model);
|
|
25
25
|
const { assemblyNames, assemblyManager } = session;
|
|
26
|
-
const { error } = model;
|
|
26
|
+
const { initialized, error } = model;
|
|
27
27
|
const [selectedAsm, setSelectedAsm] = useState(assemblyNames[0]);
|
|
28
28
|
const [option, setOption] = useState();
|
|
29
29
|
const assembly = assemblyManager.get(selectedAsm);
|
|
@@ -38,7 +38,7 @@ const LinearGenomeViewImportForm = observer(function LinearGenomeViewImportForm(
|
|
|
38
38
|
useEffect(() => {
|
|
39
39
|
setValue(r0);
|
|
40
40
|
}, [r0, selectedAsm]);
|
|
41
|
-
return (_jsxs("div", { className: classes.container, children: [displayError ? _jsx(ErrorMessage, { error: displayError }) : null, _jsx(Container, { className: classes.importFormContainer, children: _jsx("form", { onSubmit: async (event) => {
|
|
41
|
+
return (_jsxs("div", { className: classes.container, children: [displayError ? _jsx(ErrorMessage, { error: displayError }) : null, initialized ? (_jsx(Container, { className: classes.importFormContainer, children: _jsx("form", { onSubmit: async (event) => {
|
|
42
42
|
event.preventDefault();
|
|
43
43
|
model.setError(undefined);
|
|
44
44
|
if (value) {
|
|
@@ -72,6 +72,6 @@ const LinearGenomeViewImportForm = observer(function LinearGenomeViewImportForm(
|
|
|
72
72
|
}, localStorageKey: "lgv", session: session, selected: selectedAsm }) }), selectedAsm ? (assemblyError ? (_jsx(CloseIcon, { style: { color: 'red' } })) : assemblyLoaded ? (_jsx(FormControl, { children: _jsx(ImportFormRefNameAutocomplete, { value: value, setValue: setValue, selectedAsm: selectedAsm, setOption: setOption, model: model }) })) : (_jsx(CircularProgress, { size: 20, disableShrink: true }))) : null, _jsx(FormControl, { children: _jsx(Button, { type: "submit", disabled: !value, className: classes.button, variant: "contained", color: "primary", children: "Open" }) }), _jsx(FormControl, { children: _jsx(Button, { disabled: !value, className: classes.button, onClick: () => {
|
|
73
73
|
model.setError(undefined);
|
|
74
74
|
model.showAllRegionsInAssembly(selectedAsm);
|
|
75
|
-
}, variant: "contained", color: "secondary", children: "Show all regions in assembly" }) })] }) }) })] }));
|
|
75
|
+
}, variant: "contained", color: "secondary", children: "Show all regions in assembly" }) })] }) }) })) : null] }));
|
|
76
76
|
});
|
|
77
77
|
export default LinearGenomeViewImportForm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-genome-view",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JBrowse 2 linear genome view",
|
|
6
6
|
"keywords": [
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@jbrowse/mobx-state-tree": "^5.6.0",
|
|
25
|
-
"@mui/icons-material": "^7.3.
|
|
26
|
-
"@mui/material": "^7.3.
|
|
25
|
+
"@mui/icons-material": "^7.3.10",
|
|
26
|
+
"@mui/material": "^7.3.10",
|
|
27
27
|
"@types/file-saver-es": "^2.0.3",
|
|
28
28
|
"copy-to-clipboard": "^3.3.3",
|
|
29
29
|
"file-saver-es": "^2.0.5",
|
|
30
30
|
"mobx": "^6.15.0",
|
|
31
31
|
"mobx-react": "^9.2.1",
|
|
32
|
-
"@jbrowse/core": "^4.
|
|
33
|
-
"@jbrowse/product-core": "^4.
|
|
32
|
+
"@jbrowse/core": "^4.2.0",
|
|
33
|
+
"@jbrowse/product-core": "^4.2.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=18.0.0",
|