@jbrowse/product-core 2.13.1 → 2.15.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.
- package/dist/RootModel/BaseRootModel.d.ts +110 -84
- package/dist/RootModel/InternetAccounts.d.ts +1 -1
- package/dist/RootModel/InternetAccounts.js +1 -2
- package/dist/Session/BaseSession.d.ts +6 -2
- package/dist/Session/Connections.d.ts +71 -11
- package/dist/Session/Connections.js +3 -1
- package/dist/Session/DialogQueue.d.ts +1 -1
- package/dist/Session/MultipleViews.d.ts +354 -266
- package/dist/Session/ReferenceManagement.d.ts +1 -1
- package/dist/Session/ReferenceManagement.js +6 -2
- package/dist/Session/SessionTracks.d.ts +344 -258
- package/dist/Session/Tracks.d.ts +343 -255
- package/dist/Session/Tracks.js +3 -1
- package/dist/ui/AboutDialogContents.js +9 -3
- package/dist/ui/FileInfoPanel.d.ts +1 -1
- package/dist/ui/FileInfoPanel.js +1 -1
- package/dist/ui/RefNameInfoDialog.js +5 -3
- package/esm/RootModel/BaseRootModel.d.ts +110 -84
- package/esm/RootModel/InternetAccounts.d.ts +1 -1
- package/esm/RootModel/InternetAccounts.js +1 -2
- package/esm/Session/BaseSession.d.ts +6 -2
- package/esm/Session/Connections.d.ts +71 -11
- package/esm/Session/Connections.js +3 -1
- package/esm/Session/DialogQueue.d.ts +1 -1
- package/esm/Session/MultipleViews.d.ts +354 -266
- package/esm/Session/ReferenceManagement.d.ts +1 -1
- package/esm/Session/ReferenceManagement.js +6 -2
- package/esm/Session/SessionTracks.d.ts +344 -258
- package/esm/Session/Tracks.d.ts +343 -255
- package/esm/Session/Tracks.js +3 -1
- package/esm/ui/AboutDialogContents.js +9 -3
- package/esm/ui/FileInfoPanel.d.ts +1 -1
- package/esm/ui/FileInfoPanel.js +1 -1
- package/esm/ui/RefNameInfoDialog.js +5 -3
- package/package.json +6 -6
package/esm/Session/Tracks.js
CHANGED
|
@@ -33,7 +33,9 @@ export function TracksManagerSessionMixin(pluginManager) {
|
|
|
33
33
|
const dereferenceTypeCount = {};
|
|
34
34
|
const referring = self.getReferring(trackConf);
|
|
35
35
|
self.removeReferring(referring, trackConf, callbacksToDereferenceTrack, dereferenceTypeCount);
|
|
36
|
-
callbacksToDereferenceTrack.forEach(cb =>
|
|
36
|
+
callbacksToDereferenceTrack.forEach(cb => {
|
|
37
|
+
cb();
|
|
38
|
+
});
|
|
37
39
|
if (self.adminMode) {
|
|
38
40
|
return self.jbrowse.deleteTrackConf(trackConf);
|
|
39
41
|
}
|
|
@@ -48,17 +48,23 @@ const AboutDialogContents = observer(function ({ config, }) {
|
|
|
48
48
|
return (React.createElement("div", { className: classes.content },
|
|
49
49
|
React.createElement(BaseCard, { title: "Configuration" },
|
|
50
50
|
!hideUris ? (React.createElement("span", { className: classes.button },
|
|
51
|
-
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () =>
|
|
51
|
+
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
52
|
+
setShowRefNames(true);
|
|
53
|
+
} }, "Show ref names"),
|
|
52
54
|
React.createElement(Button, { variant: "contained", onClick: () => {
|
|
53
55
|
const snap = removeAttr(clone(conf), 'baseUri');
|
|
54
56
|
copy(JSON.stringify(snap, null, 2));
|
|
55
57
|
setCopied(true);
|
|
56
|
-
setTimeout(() =>
|
|
58
|
+
setTimeout(() => {
|
|
59
|
+
setCopied(false);
|
|
60
|
+
}, 1000);
|
|
57
61
|
} }, copied ? 'Copied to clipboard!' : 'Copy config'))) : null,
|
|
58
62
|
React.createElement(Attributes, { attributes: confPostExt, omit: ['displays', 'baseUri', 'refNames', 'formatAbout'], hideUris: hideUris })),
|
|
59
63
|
ExtraPanel ? (React.createElement(BaseCard, { title: ExtraPanel.name },
|
|
60
64
|
React.createElement(ExtraPanel.Component, { config: config }))) : null,
|
|
61
65
|
React.createElement(FileInfoPanel, { config: config }),
|
|
62
|
-
showRefNames ? (React.createElement(RefNameInfoDialog, { config: config, onClose: () =>
|
|
66
|
+
showRefNames ? (React.createElement(RefNameInfoDialog, { config: config, onClose: () => {
|
|
67
|
+
setShowRefNames(false);
|
|
68
|
+
} })) : null));
|
|
63
69
|
});
|
|
64
70
|
export default AboutDialogContents;
|
package/esm/ui/FileInfoPanel.js
CHANGED
|
@@ -32,5 +32,5 @@ export default function FileInfoPanel({ config, }) {
|
|
|
32
32
|
.replaceAll('>', '>')}</pre>`,
|
|
33
33
|
}
|
|
34
34
|
: info || {};
|
|
35
|
-
return
|
|
35
|
+
return (React.createElement(BaseCard, { title: "File info" }, error ? (React.createElement(ErrorMessage, { error: error })) : info === undefined ? (React.createElement(LoadingEllipses, { message: "Loading file data" })) : (React.createElement(Attributes, { attributes: details }))));
|
|
36
36
|
}
|
|
@@ -57,9 +57,9 @@ const RefNameInfoDialog = observer(function ({ config, onClose, }) {
|
|
|
57
57
|
return [
|
|
58
58
|
`--- ${assemblyName} ---`,
|
|
59
59
|
...refNames.slice(0, MAX_REF_NAMES),
|
|
60
|
-
|
|
60
|
+
refNames.length > MAX_REF_NAMES
|
|
61
61
|
? `\nToo many refNames to show in browser for ${assemblyName}, use "Copy ref names" button to copy to clipboard`
|
|
62
|
-
: ''
|
|
62
|
+
: '',
|
|
63
63
|
];
|
|
64
64
|
})
|
|
65
65
|
.filter(f => !!f)
|
|
@@ -75,7 +75,9 @@ const RefNameInfoDialog = observer(function ({ config, onClose, }) {
|
|
|
75
75
|
.filter(f => !!f)
|
|
76
76
|
.join('\n'));
|
|
77
77
|
setCopied(true);
|
|
78
|
-
setTimeout(() =>
|
|
78
|
+
setTimeout(() => {
|
|
79
|
+
setCopied(false);
|
|
80
|
+
}, 1000);
|
|
79
81
|
} }, copied ? 'Copied to clipboard!' : 'Copy ref names'),
|
|
80
82
|
React.createElement("pre", { className: classes.refNames }, result))))));
|
|
81
83
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/product-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "JBrowse 2 code shared between products but not used by plugins",
|
|
6
6
|
"keywords": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"build:esm": "tsc --build tsconfig.build.esm.json",
|
|
34
34
|
"build:commonjs": "tsc --build tsconfig.build.commonjs.json",
|
|
35
35
|
"build": "npm run build:esm && npm run build:commonjs",
|
|
36
|
-
"test": "cd ../..; jest packages/product-core",
|
|
36
|
+
"test": "cd ../..; jest --passWithNoTests packages/product-core",
|
|
37
37
|
"clean": "rimraf dist esm *.tsbuildinfo",
|
|
38
38
|
"prebuild": "yarn clean",
|
|
39
39
|
"prepack": "yarn build && yarn useDist",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.16.3",
|
|
46
|
-
"@jbrowse/core": "^2.
|
|
47
|
-
"@mui/icons-material": "^
|
|
48
|
-
"@mui/material": "^
|
|
46
|
+
"@jbrowse/core": "^2.15.0",
|
|
47
|
+
"@mui/icons-material": "^6.0.0",
|
|
48
|
+
"@mui/material": "^6.0.0",
|
|
49
49
|
"copy-to-clipboard": "^3.3.1",
|
|
50
50
|
"librpc-web-mod": "^1.0.0",
|
|
51
51
|
"react-error-boundary": "^4.0.3",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "87eeb1fbf8311dbf88d5e75b5a265f03beffdda8"
|
|
67
67
|
}
|