@jbrowse/product-core 2.17.0 → 3.0.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.
Files changed (77) hide show
  1. package/dist/RootModel/BaseRootModel.d.ts +6 -43
  2. package/dist/RootModel/BaseRootModel.js +5 -41
  3. package/dist/RootModel/FormatAbout.d.ts +0 -10
  4. package/dist/RootModel/FormatAbout.js +0 -10
  5. package/dist/RootModel/FormatDetails.d.ts +0 -17
  6. package/dist/RootModel/FormatDetails.js +0 -17
  7. package/dist/RootModel/HierarchicalConfig.d.ts +0 -19
  8. package/dist/RootModel/HierarchicalConfig.js +0 -19
  9. package/dist/RootModel/InternetAccounts.d.ts +4 -20
  10. package/dist/RootModel/InternetAccounts.js +0 -20
  11. package/dist/Session/BaseSession.d.ts +5 -96
  12. package/dist/Session/BaseSession.js +1 -63
  13. package/dist/Session/Connections.d.ts +5 -56
  14. package/dist/Session/Connections.js +0 -30
  15. package/dist/Session/DialogQueue.d.ts +3 -22
  16. package/dist/Session/DialogQueue.js +0 -17
  17. package/dist/Session/DrawerWidgets.d.ts +3 -63
  18. package/dist/Session/DrawerWidgets.js +2 -61
  19. package/dist/Session/MultipleViews.d.ts +8 -1760
  20. package/dist/Session/MultipleViews.js +2 -40
  21. package/dist/Session/ReferenceManagement.d.ts +2 -21
  22. package/dist/Session/ReferenceManagement.js +0 -23
  23. package/dist/Session/SessionTracks.d.ts +7 -1748
  24. package/dist/Session/SessionTracks.js +1 -21
  25. package/dist/Session/Themes.d.ts +3 -21
  26. package/dist/Session/Themes.js +1 -17
  27. package/dist/Session/Tracks.d.ts +6 -1737
  28. package/dist/Session/Tracks.js +0 -16
  29. package/dist/rpcWorker.d.ts +2 -2
  30. package/dist/rpcWorker.js +3 -17
  31. package/dist/ui/AboutDialog.d.ts +2 -3
  32. package/dist/ui/AboutDialog.js +2 -3
  33. package/dist/ui/AboutDialogContents.d.ts +2 -3
  34. package/dist/ui/AboutDialogContents.js +20 -53
  35. package/dist/ui/FileInfoPanel.d.ts +2 -3
  36. package/dist/ui/FileInfoPanel.js +5 -28
  37. package/dist/ui/RefNameInfoDialog.d.ts +2 -3
  38. package/dist/ui/RefNameInfoDialog.js +17 -44
  39. package/esm/RootModel/BaseRootModel.d.ts +6 -43
  40. package/esm/RootModel/BaseRootModel.js +6 -42
  41. package/esm/RootModel/FormatAbout.d.ts +0 -10
  42. package/esm/RootModel/FormatAbout.js +0 -10
  43. package/esm/RootModel/FormatDetails.d.ts +0 -17
  44. package/esm/RootModel/FormatDetails.js +0 -17
  45. package/esm/RootModel/HierarchicalConfig.d.ts +0 -19
  46. package/esm/RootModel/HierarchicalConfig.js +0 -19
  47. package/esm/RootModel/InternetAccounts.d.ts +4 -20
  48. package/esm/RootModel/InternetAccounts.js +0 -20
  49. package/esm/Session/BaseSession.d.ts +5 -96
  50. package/esm/Session/BaseSession.js +1 -63
  51. package/esm/Session/Connections.d.ts +5 -56
  52. package/esm/Session/Connections.js +1 -31
  53. package/esm/Session/DialogQueue.d.ts +3 -22
  54. package/esm/Session/DialogQueue.js +0 -17
  55. package/esm/Session/DrawerWidgets.d.ts +3 -63
  56. package/esm/Session/DrawerWidgets.js +2 -61
  57. package/esm/Session/MultipleViews.d.ts +8 -1760
  58. package/esm/Session/MultipleViews.js +2 -40
  59. package/esm/Session/ReferenceManagement.d.ts +2 -21
  60. package/esm/Session/ReferenceManagement.js +0 -23
  61. package/esm/Session/SessionTracks.d.ts +7 -1748
  62. package/esm/Session/SessionTracks.js +1 -21
  63. package/esm/Session/Themes.d.ts +3 -21
  64. package/esm/Session/Themes.js +1 -17
  65. package/esm/Session/Tracks.d.ts +6 -1737
  66. package/esm/Session/Tracks.js +0 -16
  67. package/esm/rpcWorker.d.ts +2 -2
  68. package/esm/rpcWorker.js +3 -17
  69. package/esm/ui/AboutDialog.d.ts +2 -3
  70. package/esm/ui/AboutDialog.js +3 -4
  71. package/esm/ui/AboutDialogContents.d.ts +2 -3
  72. package/esm/ui/AboutDialogContents.js +20 -30
  73. package/esm/ui/FileInfoPanel.d.ts +2 -3
  74. package/esm/ui/FileInfoPanel.js +5 -5
  75. package/esm/ui/RefNameInfoDialog.d.ts +2 -3
  76. package/esm/ui/RefNameInfoDialog.js +18 -22
  77. package/package.json +3 -3
@@ -3,25 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SessionTracksManagerSessionMixin = SessionTracksManagerSessionMixin;
4
4
  exports.isSessionWithSessionTracks = isSessionWithSessionTracks;
5
5
  const mobx_state_tree_1 = require("mobx-state-tree");
6
- // locals
7
- const Tracks_1 = require("./Tracks");
8
6
  const BaseSession_1 = require("./BaseSession");
9
- /**
10
- * #stateModel SessionTracksManagerSessionMixin
11
- */
7
+ const Tracks_1 = require("./Tracks");
12
8
  function SessionTracksManagerSessionMixin(pluginManager) {
13
9
  return (0, Tracks_1.TracksManagerSessionMixin)(pluginManager)
14
10
  .named('SessionTracksManagerSessionMixin')
15
11
  .props({
16
- /**
17
- * #property
18
- */
19
12
  sessionTracks: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('track')),
20
13
  })
21
14
  .views(self => ({
22
- /**
23
- * #getter
24
- */
25
15
  get tracks() {
26
16
  return [...self.sessionTracks, ...self.jbrowse.tracks];
27
17
  },
@@ -29,9 +19,6 @@ function SessionTracksManagerSessionMixin(pluginManager) {
29
19
  .actions(self => {
30
20
  const { addTrackConf: superAddTrackConf, deleteTrackConf: superDeleteTrackConf, } = self;
31
21
  return {
32
- /**
33
- * #action
34
- */
35
22
  addTrackConf(trackConf) {
36
23
  if (self.adminMode) {
37
24
  return superAddTrackConf(trackConf);
@@ -47,17 +34,11 @@ function SessionTracksManagerSessionMixin(pluginManager) {
47
34
  const length = self.sessionTracks.push(trackConf);
48
35
  return self.sessionTracks[length - 1];
49
36
  },
50
- /**
51
- * #action
52
- */
53
37
  deleteTrackConf(trackConf) {
54
- // try to delete it in the main config if in admin mode
55
38
  const found = superDeleteTrackConf(trackConf);
56
39
  if (found) {
57
40
  return found;
58
41
  }
59
- // if not found or not in admin mode, try to delete it in the
60
- // sessionTracks
61
42
  const { trackId } = trackConf;
62
43
  const idx = self.sessionTracks.findIndex(t => t.trackId === trackId);
63
44
  if (idx === -1) {
@@ -68,7 +49,6 @@ function SessionTracksManagerSessionMixin(pluginManager) {
68
49
  };
69
50
  });
70
51
  }
71
- /** Type guard for SessionWithSessionTracks */
72
52
  function isSessionWithSessionTracks(thing) {
73
53
  return (0, BaseSession_1.isBaseSession)(thing) && 'sessionTracks' in thing;
74
54
  }
@@ -1,36 +1,18 @@
1
- import { IAnyStateTreeNode, Instance } from 'mobx-state-tree';
2
- import PluginManager from '@jbrowse/core/PluginManager';
3
- import { ThemeOptions } from '@mui/material';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
+ import type { ThemeOptions } from '@mui/material';
3
+ import type { IAnyStateTreeNode, Instance } from 'mobx-state-tree';
4
4
  type ThemeMap = Record<string, ThemeOptions>;
5
- /**
6
- * #stateModel ThemeManagerSessionMixin
7
- */
8
5
  export declare function ThemeManagerSessionMixin(_pluginManager: PluginManager): import("mobx-state-tree").IModelType<{}, {
9
6
  sessionThemeName: string;
10
7
  } & {
11
- /**
12
- * #method
13
- */
14
8
  allThemes(): ThemeMap;
15
- /**
16
- * #getter
17
- */
18
9
  readonly themeName: string;
19
- /**
20
- * #getter
21
- */
22
10
  readonly theme: import("@mui/material").Theme;
23
11
  } & {
24
- /**
25
- * #action
26
- */
27
12
  setThemeName(name: string): void;
28
13
  afterAttach(): void;
29
14
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
30
- /** Session mixin MST type for a session that supports theming */
31
15
  export type SessionWithThemesType = ReturnType<typeof ThemeManagerSessionMixin>;
32
- /** Instance of a session that has theming support */
33
16
  export type SessionWithThemes = Instance<SessionWithThemesType>;
34
- /** Type guard for SessionWithThemes */
35
17
  export declare function isSessionWithThemes(session: IAnyStateTreeNode): session is SessionWithThemes;
36
18
  export {};
@@ -2,14 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ThemeManagerSessionMixin = ThemeManagerSessionMixin;
4
4
  exports.isSessionWithThemes = isSessionWithThemes;
5
- const mobx_state_tree_1 = require("mobx-state-tree");
6
5
  const configuration_1 = require("@jbrowse/core/configuration");
7
6
  const ui_1 = require("@jbrowse/core/ui");
8
7
  const util_1 = require("@jbrowse/core/util");
9
8
  const mobx_1 = require("mobx");
10
- /**
11
- * #stateModel ThemeManagerSessionMixin
12
- */
9
+ const mobx_state_tree_1 = require("mobx-state-tree");
13
10
  function ThemeManagerSessionMixin(_pluginManager) {
14
11
  return mobx_state_tree_1.types
15
12
  .model({})
@@ -17,25 +14,16 @@ function ThemeManagerSessionMixin(_pluginManager) {
17
14
  sessionThemeName: (0, util_1.localStorageGetItem)('themeName') || 'default',
18
15
  }))
19
16
  .views(s => ({
20
- /**
21
- * #method
22
- */
23
17
  allThemes() {
24
18
  const self = s;
25
19
  const extraThemes = (0, configuration_1.getConf)(self.jbrowse, 'extraThemes');
26
20
  return { ...ui_1.defaultThemes, ...extraThemes };
27
21
  },
28
- /**
29
- * #getter
30
- */
31
22
  get themeName() {
32
23
  const { sessionThemeName } = s;
33
24
  const all = this.allThemes();
34
25
  return all[sessionThemeName] ? sessionThemeName : 'default';
35
26
  },
36
- /**
37
- * #getter
38
- */
39
27
  get theme() {
40
28
  const self = s;
41
29
  const configTheme = (0, configuration_1.getConf)(self.jbrowse, 'theme');
@@ -44,9 +32,6 @@ function ThemeManagerSessionMixin(_pluginManager) {
44
32
  },
45
33
  }))
46
34
  .actions(self => ({
47
- /**
48
- * #action
49
- */
50
35
  setThemeName(name) {
51
36
  self.sessionThemeName = name;
52
37
  },
@@ -57,7 +42,6 @@ function ThemeManagerSessionMixin(_pluginManager) {
57
42
  },
58
43
  }));
59
44
  }
60
- /** Type guard for SessionWithThemes */
61
45
  function isSessionWithThemes(session) {
62
46
  return 'theme' in session;
63
47
  }