@jbrowse/core 2.2.1 → 2.2.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.
@@ -109,6 +109,7 @@ function SequenceFeatureDetails({ model, feature }) {
109
109
  const [feat] = feats;
110
110
  return (feat === null || feat === void 0 ? void 0 : feat.get('seq')) || '';
111
111
  }
112
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
112
113
  ;
113
114
  (async () => {
114
115
  try {
@@ -22,26 +22,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
26
  const react_1 = __importStar(require("react"));
30
27
  const material_1 = require("@mui/material");
28
+ const ui_1 = require("@jbrowse/core/ui");
31
29
  const mui_1 = require("tss-react/mui");
32
- // icons
33
- const Close_1 = __importDefault(require("@mui/icons-material/Close"));
34
30
  const useStyles = (0, mui_1.makeStyles)()(theme => ({
35
31
  formElt: {
36
32
  margin: theme.spacing(3),
37
33
  width: 400,
38
34
  },
39
- closeButton: {
40
- position: 'absolute',
41
- right: theme.spacing(1),
42
- top: theme.spacing(1),
43
- color: theme.palette.grey[500],
44
- },
45
35
  dialogContent: {
46
36
  width: '80em',
47
37
  },
@@ -52,12 +42,7 @@ function SequenceFeatureSettingsDialog({ handleClose, intronBp: intronBpArg, upD
52
42
  const [upDownBp, setUpDownBp] = (0, react_1.useState)(`${upDownBpArg}`);
53
43
  const intronBpValid = !Number.isNaN(+intronBp);
54
44
  const upDownBpValid = !Number.isNaN(+upDownBp);
55
- return (react_1.default.createElement(material_1.Dialog, { maxWidth: "xl", open: true, onClose: () => handleClose() },
56
- react_1.default.createElement(material_1.DialogTitle, null,
57
- "Feature sequence settings",
58
- handleClose ? (react_1.default.createElement(material_1.IconButton, { className: classes.closeButton, onClick: () => handleClose() },
59
- react_1.default.createElement(Close_1.default, null))) : null),
60
- react_1.default.createElement(material_1.Divider, null),
45
+ return (react_1.default.createElement(ui_1.Dialog, { maxWidth: "xl", open: true, onClose: () => handleClose(), title: 'Feature sequence settings' },
61
46
  react_1.default.createElement(material_1.DialogContent, { className: classes.dialogContent },
62
47
  react_1.default.createElement(material_1.TextField, { label: "Number of intronic bases around splice site to display", className: classes.formElt, value: intronBp, helperText: !intronBpValid ? 'Not a number' : '', error: !intronBpValid, onChange: event => setIntronBp(event.target.value) }),
63
48
  react_1.default.createElement(material_1.TextField, { label: "Number of bases up/down stream of feature to display", className: classes.formElt, value: upDownBp, helperText: !upDownBpValid ? 'Not a number' : '', error: !upDownBpValid, onChange: event => setUpDownBp(event.target.value) })),
@@ -5,28 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
7
  const material_1 = require("@mui/material");
8
- const mui_1 = require("tss-react/mui");
8
+ const ui_1 = require("@jbrowse/core/ui");
9
9
  // icons
10
- const Close_1 = __importDefault(require("@mui/icons-material/Close"));
11
10
  const Settings_1 = __importDefault(require("@mui/icons-material/Settings"));
12
- const useStyles = (0, mui_1.makeStyles)()(theme => ({
13
- closeButton: {
14
- position: 'absolute',
15
- right: theme.spacing(1),
16
- top: theme.spacing(1),
17
- color: theme.palette.grey[500],
18
- },
19
- dialogContent: {},
20
- }));
21
11
  function HelpDialog({ handleClose, }) {
22
- const { classes } = useStyles();
23
- return (react_1.default.createElement(material_1.Dialog, { maxWidth: "xl", open: true, onClose: () => handleClose() },
24
- react_1.default.createElement(material_1.DialogTitle, null,
25
- "Feature sequence panel",
26
- handleClose ? (react_1.default.createElement(material_1.IconButton, { className: classes.closeButton, onClick: () => handleClose() },
27
- react_1.default.createElement(Close_1.default, null))) : null),
28
- react_1.default.createElement(material_1.Divider, null),
29
- react_1.default.createElement(material_1.DialogContent, { className: classes.dialogContent },
12
+ return (react_1.default.createElement(ui_1.Dialog, { maxWidth: "xl", open: true, onClose: () => handleClose(), title: "Feature sequence panel help" },
13
+ react_1.default.createElement(material_1.DialogContent, null,
30
14
  react_1.default.createElement(material_1.Typography, { paragraph: true }, "The \"Feature sequence\" panel shows the underlying genomic sequence for a given feature, fetched from the reference genome."),
31
15
  react_1.default.createElement(material_1.Typography, null, "For gene features, this panel does special calculations to e.g. stitch together the coding sequence, the options are:"),
32
16
  react_1.default.createElement("ul", null,
@@ -37,7 +37,7 @@ export declare abstract class BaseAdapter {
37
37
  getConf(arg: string | string[]): any;
38
38
  /**
39
39
  * Called to provide a hint that data tied to a certain region will not be
40
- * needed for the forseeable future and can be purged from caches, etc
40
+ * needed for the foreseeable future and can be purged from caches, etc
41
41
  * @param region - Region
42
42
  */
43
43
  abstract freeResources(region: Region): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/core",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "JBrowse 2 core libraries used by plugins",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -73,5 +73,5 @@
73
73
  "access": "public",
74
74
  "directory": "dist"
75
75
  },
76
- "gitHead": "896d175c5d9345049faea8e1155f243c912aac42"
76
+ "gitHead": "abbc00e8feedbc58de84a7a3e735ec0224909b29"
77
77
  }
@@ -1,4 +1 @@
1
- import { Instance } from 'mobx-state-tree';
2
1
  export declare const BaseInternetAccountConfig: import("../../configuration").AnyConfigurationSchemaType;
3
- export type BaseInternetAccountConfigModel = typeof BaseInternetAccountConfig;
4
- export type BaseInternetAccountConfig = Instance<BaseInternetAccountConfigModel>;
@@ -74,7 +74,7 @@ export default class ServerSideRenderer extends RendererType {
74
74
  * Render method called on the client. Serializes args, then calls
75
75
  * "CoreRender" with the RPC manager.
76
76
  *
77
- * @param rpcManager - RPC mananger
77
+ * @param rpcManager - RPC manager
78
78
  * @param args - render args
79
79
  */
80
80
  renderInClient(rpcManager: RpcManager, args: RenderArgs): Promise<ResultsSerialized>;
@@ -117,7 +117,7 @@ class ServerSideRenderer extends RendererType_1.default {
117
117
  * Render method called on the client. Serializes args, then calls
118
118
  * "CoreRender" with the RPC manager.
119
119
  *
120
- * @param rpcManager - RPC mananger
120
+ * @param rpcManager - RPC manager
121
121
  * @param args - render args
122
122
  */
123
123
  async renderInClient(rpcManager, args) {
@@ -110,7 +110,7 @@ class BaseRpcDriver {
110
110
  }
111
111
  async remoteAbort(sessionId, functionName, signalId) {
112
112
  const worker = await this.getWorker(sessionId);
113
- worker.call(functionName, { signalId }, { timeout: 1000000, rpcDriverClassName: this.name });
113
+ await worker.call(functionName, { signalId }, { timeout: 1000000, rpcDriverClassName: this.name });
114
114
  }
115
115
  createWorkerPool() {
116
116
  const hardwareConcurrency = detectHardwareConcurrency();