@jbrowse/product-core 2.13.0 → 2.14.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.
Files changed (35) hide show
  1. package/dist/RootModel/BaseRootModel.d.ts +110 -84
  2. package/dist/RootModel/InternetAccounts.d.ts +1 -1
  3. package/dist/RootModel/InternetAccounts.js +1 -2
  4. package/dist/Session/BaseSession.d.ts +6 -2
  5. package/dist/Session/Connections.d.ts +71 -11
  6. package/dist/Session/Connections.js +3 -1
  7. package/dist/Session/DialogQueue.d.ts +1 -1
  8. package/dist/Session/MultipleViews.d.ts +354 -266
  9. package/dist/Session/ReferenceManagement.d.ts +1 -1
  10. package/dist/Session/ReferenceManagement.js +6 -2
  11. package/dist/Session/SessionTracks.d.ts +344 -258
  12. package/dist/Session/Tracks.d.ts +343 -255
  13. package/dist/Session/Tracks.js +3 -1
  14. package/dist/ui/AboutDialogContents.js +9 -3
  15. package/dist/ui/FileInfoPanel.d.ts +1 -1
  16. package/dist/ui/FileInfoPanel.js +1 -1
  17. package/dist/ui/RefNameInfoDialog.js +5 -3
  18. package/esm/RootModel/BaseRootModel.d.ts +110 -84
  19. package/esm/RootModel/InternetAccounts.d.ts +1 -1
  20. package/esm/RootModel/InternetAccounts.js +1 -2
  21. package/esm/Session/BaseSession.d.ts +6 -2
  22. package/esm/Session/Connections.d.ts +71 -11
  23. package/esm/Session/Connections.js +3 -1
  24. package/esm/Session/DialogQueue.d.ts +1 -1
  25. package/esm/Session/MultipleViews.d.ts +354 -266
  26. package/esm/Session/ReferenceManagement.d.ts +1 -1
  27. package/esm/Session/ReferenceManagement.js +6 -2
  28. package/esm/Session/SessionTracks.d.ts +344 -258
  29. package/esm/Session/Tracks.d.ts +343 -255
  30. package/esm/Session/Tracks.js +3 -1
  31. package/esm/ui/AboutDialogContents.js +9 -3
  32. package/esm/ui/FileInfoPanel.d.ts +1 -1
  33. package/esm/ui/FileInfoPanel.js +1 -1
  34. package/esm/ui/RefNameInfoDialog.js +5 -3
  35. package/package.json +4 -4
@@ -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 => 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: () => setShowRefNames(true) }, "Show ref names"),
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(() => setCopied(false), 1000);
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: () => setShowRefNames(false) })) : null));
66
+ showRefNames ? (React.createElement(RefNameInfoDialog, { config: config, onClose: () => {
67
+ setShowRefNames(false);
68
+ } })) : null));
63
69
  });
64
70
  export default AboutDialogContents;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import { AnyConfigurationModel } from '@jbrowse/core/configuration';
3
3
  export default function FileInfoPanel({ config, }: {
4
4
  config: AnyConfigurationModel;
5
- }): React.JSX.Element | null;
5
+ }): React.JSX.Element;
@@ -32,5 +32,5 @@ export default function FileInfoPanel({ config, }) {
32
32
  .replaceAll('>', '&gt;')}</pre>`,
33
33
  }
34
34
  : info || {};
35
- return info !== null ? (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 })))) : null;
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
- `${refNames.length > MAX_REF_NAMES
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(() => setCopied(false), 1000);
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.13.0",
3
+ "version": "2.14.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,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@babel/runtime": "^7.16.3",
46
- "@jbrowse/core": "^2.13.0",
46
+ "@jbrowse/core": "^2.14.0",
47
47
  "@mui/icons-material": "^5.0.0",
48
48
  "@mui/material": "^5.10.17",
49
49
  "copy-to-clipboard": "^3.3.1",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "efe02fb9616e20e929cceeed46eb96420c1b6923"
66
+ "gitHead": "9fb8231d932db40adf0a283081765431756c66ff"
67
67
  }