@apollo-annotation/jbrowse-plugin-apollo 0.1.19 → 0.1.20
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/index.esm.js +33 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.development.js +33 -6
- package/dist/jbrowse-plugin-apollo.cjs.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.development.js +879 -590
- package/dist/jbrowse-plugin-apollo.umd.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js.map +1 -1
- package/package.json +31 -31
- package/src/OntologyManager/OntologyStore/fulltext.ts +0 -1
- package/src/components/AddAssembly.tsx +1 -1
- package/src/components/ManageUsers.tsx +20 -1
- package/src/session/session.ts +11 -3
|
@@ -100,7 +100,7 @@ var ExpandMoreIcon__default = /*#__PURE__*/_interopDefaultLegacy(ExpandMoreIcon)
|
|
|
100
100
|
var ErrorIcon__default = /*#__PURE__*/_interopDefaultLegacy(ErrorIcon);
|
|
101
101
|
var SaveIcon__default = /*#__PURE__*/_interopDefaultLegacy(SaveIcon);
|
|
102
102
|
|
|
103
|
-
var version = "0.1.
|
|
103
|
+
var version = "0.1.20";
|
|
104
104
|
|
|
105
105
|
const ApolloConfigSchema = configuration.ConfigurationSchema('ApolloInternetAccount', {
|
|
106
106
|
baseURL: {
|
|
@@ -363,7 +363,7 @@ function AddAssembly({ changeManager, handleClose, session, }) {
|
|
|
363
363
|
const fileUploadChangeBase = {
|
|
364
364
|
assembly: new ObjectID__default["default"]().toHexString(),
|
|
365
365
|
assemblyName,
|
|
366
|
-
fileId,
|
|
366
|
+
fileIds: { fa: fileId },
|
|
367
367
|
};
|
|
368
368
|
change =
|
|
369
369
|
fileType === FileType.GFF3 && importFeatures
|
|
@@ -2472,7 +2472,26 @@ function ManageUsers({ changeManager, handleClose, session, }) {
|
|
|
2472
2472
|
headerName: 'Role',
|
|
2473
2473
|
width: 140,
|
|
2474
2474
|
type: 'singleSelect',
|
|
2475
|
-
valueOptions: ['', '
|
|
2475
|
+
valueOptions: ['readOnly', 'user', 'admin', 'none'],
|
|
2476
|
+
getOptionLabel(value) {
|
|
2477
|
+
switch (value) {
|
|
2478
|
+
case 'readOnly': {
|
|
2479
|
+
return 'Read-only';
|
|
2480
|
+
}
|
|
2481
|
+
case 'user': {
|
|
2482
|
+
return 'User';
|
|
2483
|
+
}
|
|
2484
|
+
case 'admin': {
|
|
2485
|
+
return 'Admin';
|
|
2486
|
+
}
|
|
2487
|
+
case 'none': {
|
|
2488
|
+
return 'None';
|
|
2489
|
+
}
|
|
2490
|
+
default: {
|
|
2491
|
+
return 'unknown';
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2476
2495
|
editable: true,
|
|
2477
2496
|
},
|
|
2478
2497
|
{
|
|
@@ -9731,9 +9750,9 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9731
9750
|
if (Object.keys(filteredConfig).length === 0) {
|
|
9732
9751
|
filteredConfig = undefined;
|
|
9733
9752
|
}
|
|
9734
|
-
|
|
9753
|
+
const trackConfigSnapshot = mobxStateTree.getSnapshot(conf);
|
|
9735
9754
|
const newTrackId = trackId.slice(0, trackId.length - sessionTrackIdentifier.length);
|
|
9736
|
-
|
|
9755
|
+
const newTrackConfigSnapshot = {
|
|
9737
9756
|
...trackConfigSnapshot,
|
|
9738
9757
|
trackId: newTrackId,
|
|
9739
9758
|
};
|
|
@@ -9748,7 +9767,7 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9748
9767
|
...filteredConfig,
|
|
9749
9768
|
tracks: filteredConfig?.tracks && [
|
|
9750
9769
|
...filteredConfig.tracks,
|
|
9751
|
-
|
|
9770
|
+
newTrackConfigSnapshot,
|
|
9752
9771
|
],
|
|
9753
9772
|
},
|
|
9754
9773
|
});
|
|
@@ -9759,6 +9778,10 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9759
9778
|
const { notify } = self;
|
|
9760
9779
|
notify('Track added', 'success');
|
|
9761
9780
|
}
|
|
9781
|
+
// @ts-expect-error This method is missing in the JB types
|
|
9782
|
+
self.deleteTrackConf(conf);
|
|
9783
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
9784
|
+
jbrowse.addTrackConf(newTrackConfigSnapshot);
|
|
9762
9785
|
},
|
|
9763
9786
|
icon: SaveIcon__default["default"],
|
|
9764
9787
|
},
|
|
@@ -9795,6 +9818,10 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9795
9818
|
const { notify } = self;
|
|
9796
9819
|
notify('Track removed', 'success');
|
|
9797
9820
|
}
|
|
9821
|
+
// @ts-expect-error This method is missing in the JB types
|
|
9822
|
+
self.deleteTrackConf(conf);
|
|
9823
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
9824
|
+
jbrowse.deleteTrackConf(conf);
|
|
9798
9825
|
},
|
|
9799
9826
|
icon: SaveIcon__default["default"],
|
|
9800
9827
|
},
|