@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.
@@ -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.19";
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: ['', 'readOnly', 'user', 'admin'],
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
- let trackConfigSnapshot = mobxStateTree.getSnapshot(conf);
9753
+ const trackConfigSnapshot = mobxStateTree.getSnapshot(conf);
9735
9754
  const newTrackId = trackId.slice(0, trackId.length - sessionTrackIdentifier.length);
9736
- trackConfigSnapshot = {
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
- trackConfigSnapshot,
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
  },