@jbrowse/plugin-data-management 1.5.2 → 1.5.6
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/AssemblyManager/AssemblyTable.d.ts +8 -2
- package/dist/plugin-data-management.cjs.development.js +32 -46
- package/dist/plugin-data-management.cjs.development.js.map +1 -1
- package/dist/plugin-data-management.cjs.production.min.js +1 -1
- package/dist/plugin-data-management.cjs.production.min.js.map +1 -1
- package/dist/plugin-data-management.esm.js +45 -59
- package/dist/plugin-data-management.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/AssemblyManager/AssemblyManager.tsx +3 -1
- package/src/AssemblyManager/AssemblyTable.tsx +40 -39
- package/src/PluginStoreWidget/components/InstalledPlugin.tsx +11 -14
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
|
|
2
3
|
declare const AssemblyTable: ({ rootModel, setIsAssemblyBeingEdited, setAssemblyBeingEdited, }: {
|
|
3
|
-
rootModel:
|
|
4
|
+
rootModel: {
|
|
5
|
+
jbrowse: {
|
|
6
|
+
removeAssemblyConf: (arg: string) => void;
|
|
7
|
+
assemblies: AnyConfigurationModel[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
4
10
|
setIsAssemblyBeingEdited(arg: boolean): void;
|
|
5
|
-
setAssemblyBeingEdited(arg:
|
|
11
|
+
setAssemblyBeingEdited(arg: AnyConfigurationModel): void;
|
|
6
12
|
}) => JSX.Element;
|
|
7
13
|
export default AssemblyTable;
|
|
@@ -40,7 +40,6 @@ var core = require('@material-ui/core');
|
|
|
40
40
|
var ExpandMoreIcon = _interopDefault(require('@material-ui/icons/ExpandMore'));
|
|
41
41
|
var ClearIcon = _interopDefault(require('@material-ui/icons/Clear'));
|
|
42
42
|
var InfoOutlinedIcon = _interopDefault(require('@material-ui/icons/InfoOutlined'));
|
|
43
|
-
var styles = require('@material-ui/core/styles');
|
|
44
43
|
var CloseIcon = _interopDefault(require('@material-ui/icons/Close'));
|
|
45
44
|
var LockIcon = _interopDefault(require('@material-ui/icons/Lock'));
|
|
46
45
|
var types = require('@jbrowse/core/util/types');
|
|
@@ -49,6 +48,7 @@ var AddIcon = _interopDefault(require('@material-ui/icons/Add'));
|
|
|
49
48
|
var CheckIcon = _interopDefault(require('@material-ui/icons/Check'));
|
|
50
49
|
var clsx = _interopDefault(require('clsx'));
|
|
51
50
|
var IconButton = _interopDefault(require('@material-ui/core/IconButton'));
|
|
51
|
+
var styles = require('@material-ui/core/styles');
|
|
52
52
|
var ArrowBackIosIcon = _interopDefault(require('@material-ui/icons/ArrowBackIos'));
|
|
53
53
|
var CreateIcon = _interopDefault(require('@material-ui/icons/Create'));
|
|
54
54
|
var DeleteIcon = _interopDefault(require('@material-ui/icons/Delete'));
|
|
@@ -79,14 +79,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
79
79
|
|
|
80
80
|
if (Object.getOwnPropertySymbols) {
|
|
81
81
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
keys.push.apply(keys, symbols);
|
|
82
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
83
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
84
|
+
})), keys.push.apply(keys, symbols);
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
return keys;
|
|
@@ -94,19 +89,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
94
89
|
|
|
95
90
|
function _objectSpread2(target) {
|
|
96
91
|
for (var i = 1; i < arguments.length; i++) {
|
|
97
|
-
var source = arguments[i]
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
104
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
105
|
-
} else {
|
|
106
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
107
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
108
|
-
});
|
|
109
|
-
}
|
|
92
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
93
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
94
|
+
_defineProperty(target, key, source[key]);
|
|
95
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
96
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
97
|
+
});
|
|
110
98
|
}
|
|
111
99
|
|
|
112
100
|
return target;
|
|
@@ -115,17 +103,11 @@ function _objectSpread2(target) {
|
|
|
115
103
|
function _typeof(obj) {
|
|
116
104
|
"@babel/helpers - typeof";
|
|
117
105
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
_typeof = function (obj) {
|
|
124
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
return _typeof(obj);
|
|
106
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
107
|
+
return typeof obj;
|
|
108
|
+
} : function (obj) {
|
|
109
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
110
|
+
}, _typeof(obj);
|
|
129
111
|
}
|
|
130
112
|
|
|
131
113
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -183,6 +165,9 @@ function _defineProperties(target, props) {
|
|
|
183
165
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
184
166
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
185
167
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
168
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
169
|
+
writable: false
|
|
170
|
+
});
|
|
186
171
|
return Constructor;
|
|
187
172
|
}
|
|
188
173
|
|
|
@@ -206,12 +191,15 @@ function _inherits(subClass, superClass) {
|
|
|
206
191
|
throw new TypeError("Super expression must either be null or a function");
|
|
207
192
|
}
|
|
208
193
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
194
|
+
Object.defineProperty(subClass, "prototype", {
|
|
195
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
196
|
+
constructor: {
|
|
197
|
+
value: subClass,
|
|
198
|
+
writable: true,
|
|
199
|
+
configurable: true
|
|
200
|
+
}
|
|
201
|
+
}),
|
|
202
|
+
writable: false
|
|
215
203
|
});
|
|
216
204
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
217
205
|
}
|
|
@@ -2165,7 +2153,7 @@ var HierarchicalTrackSelectorStateModelFactory = (function (pluginManager) {
|
|
|
2165
2153
|
|
|
2166
2154
|
var configSchema$2 = /*#__PURE__*/configuration.ConfigurationSchema('HierarchicalTrackSelectorWidget', {});
|
|
2167
2155
|
|
|
2168
|
-
var useStyles = /*#__PURE__*/
|
|
2156
|
+
var useStyles = /*#__PURE__*/core.makeStyles(function () {
|
|
2169
2157
|
return {
|
|
2170
2158
|
closeDialog: {
|
|
2171
2159
|
position: 'absolute',
|
|
@@ -2204,7 +2192,7 @@ function PluginDialog(_ref) {
|
|
|
2204
2192
|
onClick: function onClick() {
|
|
2205
2193
|
return _onClose();
|
|
2206
2194
|
}
|
|
2207
|
-
}, /*#__PURE__*/React__default.createElement(CloseIcon, null))), /*#__PURE__*/React__default.createElement(core.DialogContent, null, /*#__PURE__*/React__default.createElement(core.Typography, null, "Please confirm that you want to remove ", plugin, ":"), /*#__PURE__*/React__default.createElement(core.DialogActions, null, /*#__PURE__*/React__default.createElement(core.Button, {
|
|
2195
|
+
}, /*#__PURE__*/React__default.createElement(CloseIcon, null))), /*#__PURE__*/React__default.createElement(core.DialogContent, null, /*#__PURE__*/React__default.createElement(core.Typography, null, "Please confirm that you want to remove ", plugin, ". Note: if any resources in this session still use this plugin, it may cause your session to crash"), /*#__PURE__*/React__default.createElement(core.DialogActions, null, /*#__PURE__*/React__default.createElement(core.Button, {
|
|
2208
2196
|
variant: "contained",
|
|
2209
2197
|
color: "primary",
|
|
2210
2198
|
onClick: function onClick() {
|
|
@@ -2232,8 +2220,7 @@ function InstalledPlugin(_ref2) {
|
|
|
2232
2220
|
dialogPlugin = _useState2[0],
|
|
2233
2221
|
setDialogPlugin = _useState2[1];
|
|
2234
2222
|
|
|
2235
|
-
var session = util.getSession(model);
|
|
2236
|
-
|
|
2223
|
+
var session = util.getSession(model);
|
|
2237
2224
|
var sessionPlugins = session.sessionPlugins;
|
|
2238
2225
|
var isSessionPlugin = sessionPlugins === null || sessionPlugins === void 0 ? void 0 : sessionPlugins.some(function (p) {
|
|
2239
2226
|
return pluginManager.pluginMetadata[plugin.name].url === p.url;
|
|
@@ -2246,12 +2233,11 @@ function InstalledPlugin(_ref2) {
|
|
|
2246
2233
|
onClose: function onClose(name) {
|
|
2247
2234
|
if (name) {
|
|
2248
2235
|
var pluginMetadata = pluginManager.pluginMetadata[plugin.name];
|
|
2249
|
-
var pluginUrl = pluginMetadata.url || pluginMetadata.esmUrl || pluginMetadata.umdUrl || pluginMetadata.cjsUrl;
|
|
2250
2236
|
|
|
2251
2237
|
if (adminMode) {
|
|
2252
|
-
jbrowse.removePlugin(
|
|
2238
|
+
jbrowse.removePlugin(pluginMetadata);
|
|
2253
2239
|
} else if (types.isSessionWithSessionPlugins(session)) {
|
|
2254
|
-
session.removeSessionPlugin(
|
|
2240
|
+
session.removeSessionPlugin(pluginMetadata);
|
|
2255
2241
|
}
|
|
2256
2242
|
}
|
|
2257
2243
|
|