@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
package/dist/index.esm.js
CHANGED
|
@@ -49,7 +49,7 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
|
49
49
|
import ErrorIcon from '@mui/icons-material/Error';
|
|
50
50
|
import SaveIcon from '@mui/icons-material/Save';
|
|
51
51
|
|
|
52
|
-
var version = "0.1.
|
|
52
|
+
var version = "0.1.20";
|
|
53
53
|
|
|
54
54
|
const ApolloConfigSchema = ConfigurationSchema('ApolloInternetAccount', {
|
|
55
55
|
baseURL: {
|
|
@@ -312,7 +312,7 @@ function AddAssembly({ changeManager, handleClose, session, }) {
|
|
|
312
312
|
const fileUploadChangeBase = {
|
|
313
313
|
assembly: new ObjectID().toHexString(),
|
|
314
314
|
assemblyName,
|
|
315
|
-
fileId,
|
|
315
|
+
fileIds: { fa: fileId },
|
|
316
316
|
};
|
|
317
317
|
change =
|
|
318
318
|
fileType === FileType.GFF3 && importFeatures
|
|
@@ -2421,7 +2421,26 @@ function ManageUsers({ changeManager, handleClose, session, }) {
|
|
|
2421
2421
|
headerName: 'Role',
|
|
2422
2422
|
width: 140,
|
|
2423
2423
|
type: 'singleSelect',
|
|
2424
|
-
valueOptions: ['', '
|
|
2424
|
+
valueOptions: ['readOnly', 'user', 'admin', 'none'],
|
|
2425
|
+
getOptionLabel(value) {
|
|
2426
|
+
switch (value) {
|
|
2427
|
+
case 'readOnly': {
|
|
2428
|
+
return 'Read-only';
|
|
2429
|
+
}
|
|
2430
|
+
case 'user': {
|
|
2431
|
+
return 'User';
|
|
2432
|
+
}
|
|
2433
|
+
case 'admin': {
|
|
2434
|
+
return 'Admin';
|
|
2435
|
+
}
|
|
2436
|
+
case 'none': {
|
|
2437
|
+
return 'None';
|
|
2438
|
+
}
|
|
2439
|
+
default: {
|
|
2440
|
+
return 'unknown';
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2425
2444
|
editable: true,
|
|
2426
2445
|
},
|
|
2427
2446
|
{
|
|
@@ -9680,9 +9699,9 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9680
9699
|
if (Object.keys(filteredConfig).length === 0) {
|
|
9681
9700
|
filteredConfig = undefined;
|
|
9682
9701
|
}
|
|
9683
|
-
|
|
9702
|
+
const trackConfigSnapshot = getSnapshot(conf);
|
|
9684
9703
|
const newTrackId = trackId.slice(0, trackId.length - sessionTrackIdentifier.length);
|
|
9685
|
-
|
|
9704
|
+
const newTrackConfigSnapshot = {
|
|
9686
9705
|
...trackConfigSnapshot,
|
|
9687
9706
|
trackId: newTrackId,
|
|
9688
9707
|
};
|
|
@@ -9697,7 +9716,7 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9697
9716
|
...filteredConfig,
|
|
9698
9717
|
tracks: filteredConfig?.tracks && [
|
|
9699
9718
|
...filteredConfig.tracks,
|
|
9700
|
-
|
|
9719
|
+
newTrackConfigSnapshot,
|
|
9701
9720
|
],
|
|
9702
9721
|
},
|
|
9703
9722
|
});
|
|
@@ -9708,6 +9727,10 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9708
9727
|
const { notify } = self;
|
|
9709
9728
|
notify('Track added', 'success');
|
|
9710
9729
|
}
|
|
9730
|
+
// @ts-expect-error This method is missing in the JB types
|
|
9731
|
+
self.deleteTrackConf(conf);
|
|
9732
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
9733
|
+
jbrowse.addTrackConf(newTrackConfigSnapshot);
|
|
9711
9734
|
},
|
|
9712
9735
|
icon: SaveIcon,
|
|
9713
9736
|
},
|
|
@@ -9744,6 +9767,10 @@ function extendSession(pluginManager, sessionModel) {
|
|
|
9744
9767
|
const { notify } = self;
|
|
9745
9768
|
notify('Track removed', 'success');
|
|
9746
9769
|
}
|
|
9770
|
+
// @ts-expect-error This method is missing in the JB types
|
|
9771
|
+
self.deleteTrackConf(conf);
|
|
9772
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
9773
|
+
jbrowse.deleteTrackConf(conf);
|
|
9747
9774
|
},
|
|
9748
9775
|
icon: SaveIcon,
|
|
9749
9776
|
},
|