@jbrowse/product-core 3.7.0 → 4.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.
- package/esm/RootModel/BaseRootModel.d.ts +52 -37
- package/esm/RootModel/BaseRootModel.js +1 -1
- package/esm/RootModel/FormatAbout.d.ts +2 -2
- package/esm/RootModel/FormatDetails.d.ts +2 -2
- package/esm/RootModel/HierarchicalConfig.d.ts +6 -6
- package/esm/RootModel/InternetAccounts.d.ts +4 -4
- package/esm/RootModel/InternetAccounts.js +3 -3
- package/esm/RootModel/index.d.ts +5 -5
- package/esm/RootModel/index.js +5 -5
- package/esm/Session/BaseSession.d.ts +12 -8
- package/esm/Session/BaseSession.js +12 -2
- package/esm/Session/Connections.d.ts +7 -144
- package/esm/Session/Connections.js +13 -3
- package/esm/Session/DialogQueue.d.ts +3 -3
- package/esm/Session/DialogQueue.js +4 -6
- package/esm/Session/DrawerWidgets.d.ts +17 -9
- package/esm/Session/DrawerWidgets.js +32 -8
- package/esm/Session/MultipleViews.d.ts +189 -127
- package/esm/Session/MultipleViews.js +27 -10
- package/esm/Session/ReferenceManagement.d.ts +3 -3
- package/esm/Session/ReferenceManagement.js +10 -4
- package/esm/Session/SessionTracks.d.ts +178 -122
- package/esm/Session/SessionTracks.js +13 -3
- package/esm/Session/Themes.d.ts +3 -3
- package/esm/Session/Themes.js +3 -3
- package/esm/Session/Tracks.d.ts +175 -121
- package/esm/Session/Tracks.js +16 -3
- package/esm/Session/index.d.ts +10 -10
- package/esm/Session/index.js +10 -10
- package/esm/index.d.ts +4 -4
- package/esm/index.js +4 -4
- package/esm/rpcWorker.d.ts +6 -0
- package/esm/rpcWorker.js +12 -6
- package/esm/ui/AboutDialog.d.ts +4 -2
- package/esm/ui/AboutDialog.js +4 -5
- package/esm/ui/AboutDialogContents.d.ts +4 -2
- package/esm/ui/AboutDialogContents.js +13 -12
- package/esm/ui/FileInfoPanel.d.ts +4 -2
- package/esm/ui/FileInfoPanel.js +6 -7
- package/esm/ui/HeaderButtons.js +4 -4
- package/esm/ui/RefNameInfoDialog.d.ts +4 -2
- package/esm/ui/RefNameInfoDialog.js +13 -13
- package/esm/ui/index.d.ts +1 -1
- package/esm/ui/index.js +1 -1
- package/esm/ui/util.d.ts +5 -2
- package/esm/ui/util.js +23 -5
- package/package.json +24 -34
- package/dist/RootModel/BaseRootModel.d.ts +0 -534
- package/dist/RootModel/BaseRootModel.js +0 -57
- package/dist/RootModel/FormatAbout.d.ts +0 -12
- package/dist/RootModel/FormatAbout.js +0 -18
- package/dist/RootModel/FormatDetails.d.ts +0 -24
- package/dist/RootModel/FormatDetails.js +0 -30
- package/dist/RootModel/HierarchicalConfig.d.ts +0 -26
- package/dist/RootModel/HierarchicalConfig.js +0 -32
- package/dist/RootModel/InternetAccounts.d.ts +0 -15
- package/dist/RootModel/InternetAccounts.js +0 -79
- package/dist/RootModel/index.d.ts +0 -5
- package/dist/RootModel/index.js +0 -21
- package/dist/Session/BaseSession.d.ts +0 -31
- package/dist/Session/BaseSession.js +0 -63
- package/dist/Session/Connections.d.ts +0 -158
- package/dist/Session/Connections.js +0 -84
- package/dist/Session/DialogQueue.d.ts +0 -15
- package/dist/Session/DialogQueue.js +0 -37
- package/dist/Session/DrawerWidgets.d.ts +0 -28
- package/dist/Session/DrawerWidgets.js +0 -107
- package/dist/Session/MultipleViews.d.ts +0 -1681
- package/dist/Session/MultipleViews.js +0 -75
- package/dist/Session/ReferenceManagement.d.ts +0 -15
- package/dist/Session/ReferenceManagement.js +0 -71
- package/dist/Session/SessionTracks.d.ts +0 -1664
- package/dist/Session/SessionTracks.js +0 -54
- package/dist/Session/Themes.d.ts +0 -18
- package/dist/Session/Themes.js +0 -47
- package/dist/Session/Tracks.d.ts +0 -1657
- package/dist/Session/Tracks.js +0 -36
- package/dist/Session/index.d.ts +0 -10
- package/dist/Session/index.js +0 -26
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -20
- package/dist/rpcWorker.d.ts +0 -6
- package/dist/rpcWorker.js +0 -57
- package/dist/ui/AboutDialog.d.ts +0 -5
- package/dist/ui/AboutDialog.js +0 -18
- package/dist/ui/AboutDialogContents.d.ts +0 -5
- package/dist/ui/AboutDialogContents.js +0 -41
- package/dist/ui/FileInfoPanel.d.ts +0 -4
- package/dist/ui/FileInfoPanel.js +0 -43
- package/dist/ui/HeaderButtons.d.ts +0 -6
- package/dist/ui/HeaderButtons.js +0 -31
- package/dist/ui/RefNameInfoDialog.d.ts +0 -6
- package/dist/ui/RefNameInfoDialog.js +0 -87
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -17
- package/dist/ui/util.d.ts +0 -12
- package/dist/ui/util.js +0 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { types } from 'mobx-state-tree';
|
|
2
|
-
import { isBaseSession } from
|
|
3
|
-
import { TracksManagerSessionMixin } from
|
|
1
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
import { isBaseSession } from "./BaseSession.js";
|
|
3
|
+
import { TracksManagerSessionMixin } from "./Tracks.js";
|
|
4
4
|
export function SessionTracksManagerSessionMixin(pluginManager) {
|
|
5
5
|
return TracksManagerSessionMixin(pluginManager)
|
|
6
6
|
.named('SessionTracksManagerSessionMixin')
|
|
@@ -43,6 +43,16 @@ export function SessionTracksManagerSessionMixin(pluginManager) {
|
|
|
43
43
|
return self.sessionTracks.splice(idx, 1);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
|
+
})
|
|
47
|
+
.postProcessSnapshot(snap => {
|
|
48
|
+
if (!snap) {
|
|
49
|
+
return snap;
|
|
50
|
+
}
|
|
51
|
+
const { sessionTracks, ...rest } = snap;
|
|
52
|
+
return {
|
|
53
|
+
...rest,
|
|
54
|
+
...(sessionTracks?.length ? { sessionTracks } : {}),
|
|
55
|
+
};
|
|
46
56
|
});
|
|
47
57
|
}
|
|
48
58
|
export function isSessionWithSessionTracks(thing) {
|
package/esm/Session/Themes.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type { IAnyStateTreeNode, Instance } from '@jbrowse/mobx-state-tree';
|
|
2
3
|
import type { ThemeOptions } from '@mui/material';
|
|
3
|
-
import type { IAnyStateTreeNode, Instance } from 'mobx-state-tree';
|
|
4
4
|
type ThemeMap = Record<string, ThemeOptions>;
|
|
5
|
-
export declare function ThemeManagerSessionMixin(_pluginManager: PluginManager): import("mobx-state-tree").IModelType<{}, {
|
|
5
|
+
export declare function ThemeManagerSessionMixin(_pluginManager: PluginManager): import("@jbrowse/mobx-state-tree").IModelType<{}, {
|
|
6
6
|
sessionThemeName: string;
|
|
7
7
|
} & {
|
|
8
8
|
allThemes(): ThemeMap;
|
|
@@ -11,7 +11,7 @@ export declare function ThemeManagerSessionMixin(_pluginManager: PluginManager):
|
|
|
11
11
|
} & {
|
|
12
12
|
setThemeName(name: string): void;
|
|
13
13
|
afterAttach(): void;
|
|
14
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
14
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
15
15
|
export type SessionWithThemesType = ReturnType<typeof ThemeManagerSessionMixin>;
|
|
16
16
|
export type SessionWithThemes = Instance<SessionWithThemesType>;
|
|
17
17
|
export declare function isSessionWithThemes(session: IAnyStateTreeNode): session is SessionWithThemes;
|
package/esm/Session/Themes.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getConf } from '@jbrowse/core/configuration';
|
|
2
2
|
import { createJBrowseTheme, defaultThemes } from '@jbrowse/core/ui';
|
|
3
3
|
import { localStorageGetItem, localStorageSetItem } from '@jbrowse/core/util';
|
|
4
|
+
import { addDisposer, types } from '@jbrowse/mobx-state-tree';
|
|
4
5
|
import { autorun } from 'mobx';
|
|
5
|
-
import { addDisposer, types } from 'mobx-state-tree';
|
|
6
6
|
export function ThemeManagerSessionMixin(_pluginManager) {
|
|
7
7
|
return types
|
|
8
8
|
.model({})
|
|
@@ -32,9 +32,9 @@ export function ThemeManagerSessionMixin(_pluginManager) {
|
|
|
32
32
|
self.sessionThemeName = name;
|
|
33
33
|
},
|
|
34
34
|
afterAttach() {
|
|
35
|
-
addDisposer(self, autorun(()
|
|
35
|
+
addDisposer(self, autorun(function themeNameAutorun() {
|
|
36
36
|
localStorageSetItem('themeName', self.themeName);
|
|
37
|
-
}));
|
|
37
|
+
}, { name: 'ThemeName' }));
|
|
38
38
|
},
|
|
39
39
|
}));
|
|
40
40
|
}
|