@jbrowse/plugin-jobs-management 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.
@@ -48,11 +48,11 @@ const CurrentJobCard = (0, mobx_react_1.observer)(function CurrentJobCard({ job,
48
48
  react_1.default.createElement(material_1.LinearProgress, { variant: "determinate", value: job.progressPct })),
49
49
  react_1.default.createElement(material_1.Box, { sx: { m: 1 } },
50
50
  react_1.default.createElement(material_1.Typography, null, `${Math.round(job.progressPct || 0)}%`)))))),
51
- job.cancelCallback ? (react_1.default.createElement(material_1.CardActions, null,
51
+ react_1.default.createElement(material_1.CardActions, null,
52
52
  react_1.default.createElement(material_1.Button, { variant: "contained", color: "inherit", disabled: clicked || job.progressPct === 0, onClick: () => {
53
53
  job.setStatusMessage('Aborted via cancel button');
54
- job.cancelCallback && job.cancelCallback();
54
+ job.cancelCallback();
55
55
  setClicked(true);
56
- } }, "Cancel"))) : null));
56
+ } }, "Cancel"))));
57
57
  });
58
58
  exports.default = CurrentJobCard;
@@ -101,7 +101,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
101
101
  /**
102
102
  * #action
103
103
  */
104
- removeJob(jobName: string): {
104
+ removeJob(jobName: string): ({
105
105
  name: string;
106
106
  statusMessage: string | undefined;
107
107
  progressPct: number;
@@ -121,7 +121,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
121
121
  setCancelCallback(cancelCallback: () => void): void;
122
122
  setStatusMessage(message?: string): void;
123
123
  setProgressPct(pct: number): void;
124
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
124
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
125
125
  /**
126
126
  * #action
127
127
  */
@@ -197,7 +197,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
197
197
  /**
198
198
  * #action
199
199
  */
200
- removeQueuedJob(jobName: string): {
200
+ removeQueuedJob(jobName: string): ({
201
201
  name: string;
202
202
  statusMessage: string | undefined;
203
203
  progressPct: number;
@@ -217,7 +217,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
217
217
  setCancelCallback(cancelCallback: () => void): void;
218
218
  setStatusMessage(message?: string): void;
219
219
  setProgressPct(pct: number): void;
220
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
220
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
221
221
  /**
222
222
  * #action
223
223
  */
@@ -23,11 +23,11 @@ const CurrentJobCard = observer(function CurrentJobCard({ job, }) {
23
23
  React.createElement(LinearProgress, { variant: "determinate", value: job.progressPct })),
24
24
  React.createElement(Box, { sx: { m: 1 } },
25
25
  React.createElement(Typography, null, `${Math.round(job.progressPct || 0)}%`)))))),
26
- job.cancelCallback ? (React.createElement(CardActions, null,
26
+ React.createElement(CardActions, null,
27
27
  React.createElement(Button, { variant: "contained", color: "inherit", disabled: clicked || job.progressPct === 0, onClick: () => {
28
28
  job.setStatusMessage('Aborted via cancel button');
29
- job.cancelCallback && job.cancelCallback();
29
+ job.cancelCallback();
30
30
  setClicked(true);
31
- } }, "Cancel"))) : null));
31
+ } }, "Cancel"))));
32
32
  });
33
33
  export default CurrentJobCard;
@@ -101,7 +101,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
101
101
  /**
102
102
  * #action
103
103
  */
104
- removeJob(jobName: string): {
104
+ removeJob(jobName: string): ({
105
105
  name: string;
106
106
  statusMessage: string | undefined;
107
107
  progressPct: number;
@@ -121,7 +121,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
121
121
  setCancelCallback(cancelCallback: () => void): void;
122
122
  setStatusMessage(message?: string): void;
123
123
  setProgressPct(pct: number): void;
124
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
124
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
125
125
  /**
126
126
  * #action
127
127
  */
@@ -197,7 +197,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
197
197
  /**
198
198
  * #action
199
199
  */
200
- removeQueuedJob(jobName: string): {
200
+ removeQueuedJob(jobName: string): ({
201
201
  name: string;
202
202
  statusMessage: string | undefined;
203
203
  progressPct: number;
@@ -217,7 +217,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager): import
217
217
  setCancelCallback(cancelCallback: () => void): void;
218
218
  setStatusMessage(message?: string): void;
219
219
  setProgressPct(pct: number): void;
220
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
220
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
221
221
  /**
222
222
  * #action
223
223
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-jobs-management",
3
- "version": "2.13.1",
3
+ "version": "2.15.0",
4
4
  "description": "JBrowse 2 jobs management",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "scripts": {
26
26
  "build": "npm-run-all build:*",
27
- "test": "cd ../..; jest plugins/jobs-management",
27
+ "test": "cd ../..; jest --passWithNoTests plugins/jobs-management",
28
28
  "prepublishOnly": "yarn test",
29
29
  "prepack": "yarn build && yarn useDist",
30
30
  "postpack": "yarn useSrc",
@@ -36,12 +36,12 @@
36
36
  "clean": "rimraf dist esm *.tsbuildinfo"
37
37
  },
38
38
  "dependencies": {
39
- "@jbrowse/text-indexing": "^2.13.1",
40
- "@mui/icons-material": "^5.0.0"
39
+ "@jbrowse/text-indexing": "^2.15.0",
40
+ "@mui/icons-material": "^6.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@jbrowse/core": "^2.0.0",
44
- "@mui/material": "^5.0.0",
44
+ "@mui/material": "^6.0.0",
45
45
  "mobx": "^6.0.0",
46
46
  "mobx-react": "^9.0.0",
47
47
  "mobx-state-tree": "^5.0.0",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "fcebca71cc1d066654603e1a9accfa6c6d4f764d"
57
+ "gitHead": "87eeb1fbf8311dbf88d5e75b5a265f03beffdda8"
58
58
  }