@jbrowse/app-core 3.7.0 → 4.0.1
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/AppFocus/index.d.ts +3 -3
- package/esm/AppFocus/index.js +1 -1
- package/esm/Assemblies/SessionAssembliesMixin.d.ts +47 -22
- package/esm/Assemblies/SessionAssembliesMixin.js +11 -1
- package/esm/Assemblies/TemporaryAssembliesMixin.d.ts +5 -3
- package/esm/Assemblies/TemporaryAssembliesMixin.js +11 -1
- package/esm/Assemblies/index.d.ts +2 -2
- package/esm/Assemblies/index.js +2 -2
- package/esm/DockviewLayout/index.d.ts +26 -0
- package/esm/DockviewLayout/index.js +107 -0
- package/esm/HistoryManagement/index.d.ts +7 -7
- package/esm/HistoryManagement/index.js +5 -6
- package/esm/JBrowseConfig/RootConfiguration.d.ts +15 -15
- package/esm/JBrowseConfig/index.d.ts +35 -25
- package/esm/JBrowseConfig/index.js +3 -3
- package/esm/JBrowseModel/index.d.ts +52 -34
- package/esm/JBrowseModel/index.js +15 -6
- package/esm/RootMenu/index.d.ts +3 -3
- package/esm/RootMenu/index.js +1 -1
- package/esm/index.d.ts +9 -8
- package/esm/index.js +9 -8
- package/esm/ui/App/App.d.ts +1 -1
- package/esm/ui/App/App.js +8 -8
- package/esm/ui/App/AppFab.js +2 -2
- package/esm/ui/App/AppToolbar.d.ts +1 -1
- package/esm/ui/App/AppToolbar.js +17 -3
- package/esm/ui/App/ClassicViewsContainer.d.ts +12 -0
- package/esm/ui/App/ClassicViewsContainer.js +21 -0
- package/esm/ui/App/DialogQueue.d.ts +2 -2
- package/esm/ui/App/DialogQueue.js +1 -1
- package/esm/ui/App/DockviewContext.d.ts +15 -0
- package/esm/ui/App/DockviewContext.js +21 -0
- package/esm/ui/App/DockviewLeftHeaderActions.d.ts +2 -0
- package/esm/ui/App/DockviewLeftHeaderActions.js +58 -0
- package/esm/ui/App/DockviewRightHeaderActions.d.ts +2 -0
- package/esm/ui/App/DockviewRightHeaderActions.js +100 -0
- package/esm/ui/App/Drawer.js +4 -5
- package/esm/ui/App/DrawerControls.js +1 -1
- package/esm/ui/App/DrawerHeader.js +16 -8
- package/{dist/ui/App/Drawer.d.ts → esm/ui/App/DrawerHeaderHelpButton.d.ts} +3 -3
- package/esm/ui/App/DrawerHeaderHelpButton.js +18 -0
- package/esm/ui/App/DrawerHeaderHelpDialog.d.ts +4 -0
- package/esm/ui/App/DrawerHeaderHelpDialog.js +15 -0
- package/esm/ui/App/DrawerWidget.js +4 -4
- package/esm/ui/App/DrawerWidgetSelector.js +3 -3
- package/esm/ui/App/JBrowseTabMenu.d.ts +5 -0
- package/esm/ui/App/JBrowseTabMenu.js +39 -0
- package/esm/ui/App/JBrowseViewPanel.d.ts +8 -0
- package/esm/ui/App/JBrowseViewPanel.js +49 -0
- package/esm/ui/App/JBrowseViewTab.d.ts +8 -0
- package/esm/ui/App/JBrowseViewTab.js +106 -0
- package/esm/ui/App/ModalWidget.js +3 -3
- package/esm/ui/App/TiledViewsContainer.d.ts +7 -0
- package/esm/ui/App/TiledViewsContainer.js +251 -0
- package/{dist/ui/App/ViewHeader.d.ts → esm/ui/App/ViewButtons.d.ts} +2 -3
- package/esm/ui/App/ViewButtons.js +17 -0
- package/esm/ui/App/ViewContainer.js +7 -8
- package/esm/ui/App/ViewContainerTitle.js +3 -4
- package/esm/ui/App/ViewHeader.js +7 -16
- package/esm/ui/App/ViewLauncher.d.ts +1 -1
- package/esm/ui/App/ViewLauncher.js +3 -4
- package/esm/ui/App/ViewMenu.d.ts +1 -1
- package/esm/ui/App/ViewMenu.js +113 -54
- package/esm/ui/App/ViewWrapper.js +1 -1
- package/esm/ui/App/ViewsContainer.d.ts +2 -2
- package/esm/ui/App/ViewsContainer.js +8 -6
- package/esm/ui/App/copyView.d.ts +1 -0
- package/esm/ui/App/copyView.js +29 -0
- package/esm/ui/App/dockviewUtils.d.ts +44 -0
- package/esm/ui/App/dockviewUtils.js +45 -0
- package/esm/ui/App/index.d.ts +2 -1
- package/esm/ui/App/index.js +2 -1
- package/esm/ui/App/types.d.ts +7 -0
- package/esm/ui/App/types.js +1 -0
- package/esm/ui/index.d.ts +1 -1
- package/esm/ui/index.js +1 -1
- package/package.json +27 -32
- package/dist/AppFocus/index.d.ts +0 -5
- package/dist/AppFocus/index.js +0 -15
- package/dist/Assemblies/SessionAssembliesMixin.d.ts +0 -67
- package/dist/Assemblies/SessionAssembliesMixin.js +0 -46
- package/dist/Assemblies/TemporaryAssembliesMixin.d.ts +0 -8
- package/dist/Assemblies/TemporaryAssembliesMixin.js +0 -30
- package/dist/Assemblies/index.d.ts +0 -2
- package/dist/Assemblies/index.js +0 -18
- package/dist/HistoryManagement/index.d.ts +0 -23
- package/dist/HistoryManagement/index.js +0 -47
- package/dist/JBrowseConfig/RootConfiguration.d.ts +0 -102
- package/dist/JBrowseConfig/RootConfiguration.js +0 -46
- package/dist/JBrowseConfig/index.d.ts +0 -115
- package/dist/JBrowseConfig/index.js +0 -26
- package/dist/JBrowseModel/index.d.ts +0 -142
- package/dist/JBrowseModel/index.js +0 -101
- package/dist/RootMenu/index.d.ts +0 -13
- package/dist/RootMenu/index.js +0 -74
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -24
- package/dist/menus.d.ts +0 -74
- package/dist/menus.js +0 -108
- package/dist/ui/App/App.d.ts +0 -18
- package/dist/ui/App/App.js +0 -82
- package/dist/ui/App/AppFab.d.ts +0 -5
- package/dist/ui/App/AppFab.js +0 -32
- package/dist/ui/App/AppToolbar.d.ts +0 -18
- package/dist/ui/App/AppToolbar.js +0 -44
- package/dist/ui/App/DialogQueue.d.ts +0 -5
- package/dist/ui/App/DialogQueue.js +0 -10
- package/dist/ui/App/Drawer.js +0 -51
- package/dist/ui/App/DrawerControls.d.ts +0 -5
- package/dist/ui/App/DrawerControls.js +0 -30
- package/dist/ui/App/DrawerHeader.d.ts +0 -7
- package/dist/ui/App/DrawerHeader.js +0 -37
- package/dist/ui/App/DrawerWidget.d.ts +0 -5
- package/dist/ui/App/DrawerWidget.js +0 -65
- package/dist/ui/App/DrawerWidgetSelector.d.ts +0 -5
- package/dist/ui/App/DrawerWidgetSelector.js +0 -52
- package/dist/ui/App/ModalWidget.d.ts +0 -6
- package/dist/ui/App/ModalWidget.js +0 -53
- package/dist/ui/App/ViewContainer.d.ts +0 -6
- package/dist/ui/App/ViewContainer.js +0 -55
- package/dist/ui/App/ViewContainerTitle.d.ts +0 -5
- package/dist/ui/App/ViewContainerTitle.js +0 -44
- package/dist/ui/App/ViewHeader.js +0 -60
- package/dist/ui/App/ViewLauncher.d.ts +0 -11
- package/dist/ui/App/ViewLauncher.js +0 -29
- package/dist/ui/App/ViewMenu.d.ts +0 -8
- package/dist/ui/App/ViewMenu.js +0 -74
- package/dist/ui/App/ViewWrapper.d.ts +0 -6
- package/dist/ui/App/ViewWrapper.js +0 -23
- package/dist/ui/App/ViewsContainer.d.ts +0 -12
- package/dist/ui/App/ViewsContainer.js +0 -57
- package/dist/ui/App/index.d.ts +0 -1
- package/dist/ui/App/index.js +0 -17
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -17
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = RootConfiguration;
|
|
7
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
-
const RpcManager_1 = __importDefault(require("@jbrowse/core/rpc/RpcManager"));
|
|
9
|
-
const product_core_1 = require("@jbrowse/product-core");
|
|
10
|
-
function RootConfiguration({ pluginManager, }) {
|
|
11
|
-
return (0, configuration_1.ConfigurationSchema)('Root', {
|
|
12
|
-
rpc: RpcManager_1.default.configSchema,
|
|
13
|
-
highResolutionScaling: {
|
|
14
|
-
type: 'number',
|
|
15
|
-
defaultValue: 2,
|
|
16
|
-
},
|
|
17
|
-
formatDetails: (0, product_core_1.FormatDetailsConfigSchemaFactory)(),
|
|
18
|
-
formatAbout: (0, product_core_1.FormatAboutConfigSchemaFactory)(),
|
|
19
|
-
shareURL: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
defaultValue: 'https://share.jbrowse.org/api/v1/',
|
|
22
|
-
},
|
|
23
|
-
disableAnalytics: {
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
defaultValue: false,
|
|
26
|
-
},
|
|
27
|
-
hierarchical: (0, product_core_1.HierarchicalConfigSchemaFactory)(),
|
|
28
|
-
theme: {
|
|
29
|
-
type: 'frozen',
|
|
30
|
-
defaultValue: {},
|
|
31
|
-
},
|
|
32
|
-
extraThemes: {
|
|
33
|
-
type: 'frozen',
|
|
34
|
-
defaultValue: {},
|
|
35
|
-
},
|
|
36
|
-
logoPath: {
|
|
37
|
-
type: 'fileLocation',
|
|
38
|
-
defaultValue: {
|
|
39
|
-
uri: '',
|
|
40
|
-
locationType: 'UriLocation',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
...pluginManager.pluginConfigurationNamespacedSchemas(),
|
|
44
|
-
...pluginManager.pluginConfigurationUnnamespacedSchemas(),
|
|
45
|
-
});
|
|
46
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import type { PluginDefinition } from '@jbrowse/core/PluginLoader';
|
|
2
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
4
|
-
export declare function JBrowseConfigF({ pluginManager, assemblyConfigSchema, }: {
|
|
5
|
-
pluginManager: PluginManager;
|
|
6
|
-
assemblyConfigSchema: AnyConfigurationSchemaType;
|
|
7
|
-
}): import("mobx-state-tree").IModelType<{
|
|
8
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
|
-
rpc: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
10
|
-
defaultDriver: {
|
|
11
|
-
type: string;
|
|
12
|
-
description: string;
|
|
13
|
-
defaultValue: string;
|
|
14
|
-
};
|
|
15
|
-
drivers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> | undefined, import("mobx-state-tree").ModelSnapshotType<Record<string, any>>, ({} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> & import("mobx-state-tree/dist/internal").NonEmptyObject) | undefined>>, [undefined]>;
|
|
16
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
17
|
-
highResolutionScaling: {
|
|
18
|
-
type: string;
|
|
19
|
-
defaultValue: number;
|
|
20
|
-
};
|
|
21
|
-
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
22
|
-
feature: {
|
|
23
|
-
type: string;
|
|
24
|
-
description: string;
|
|
25
|
-
defaultValue: {};
|
|
26
|
-
contextVariable: string[];
|
|
27
|
-
};
|
|
28
|
-
subfeatures: {
|
|
29
|
-
type: string;
|
|
30
|
-
description: string;
|
|
31
|
-
defaultValue: {};
|
|
32
|
-
contextVariable: string[];
|
|
33
|
-
};
|
|
34
|
-
depth: {
|
|
35
|
-
type: string;
|
|
36
|
-
defaultValue: number;
|
|
37
|
-
description: string;
|
|
38
|
-
};
|
|
39
|
-
maxDepth: {
|
|
40
|
-
type: string;
|
|
41
|
-
defaultValue: number;
|
|
42
|
-
description: string;
|
|
43
|
-
};
|
|
44
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
45
|
-
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
46
|
-
config: {
|
|
47
|
-
type: string;
|
|
48
|
-
description: string;
|
|
49
|
-
defaultValue: {};
|
|
50
|
-
contextVariable: string[];
|
|
51
|
-
};
|
|
52
|
-
hideUris: {
|
|
53
|
-
type: string;
|
|
54
|
-
defaultValue: boolean;
|
|
55
|
-
};
|
|
56
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
57
|
-
shareURL: {
|
|
58
|
-
type: string;
|
|
59
|
-
defaultValue: string;
|
|
60
|
-
};
|
|
61
|
-
disableAnalytics: {
|
|
62
|
-
type: string;
|
|
63
|
-
defaultValue: boolean;
|
|
64
|
-
};
|
|
65
|
-
hierarchical: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
66
|
-
sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
67
|
-
trackNames: {
|
|
68
|
-
type: string;
|
|
69
|
-
defaultValue: boolean;
|
|
70
|
-
};
|
|
71
|
-
categories: {
|
|
72
|
-
type: string;
|
|
73
|
-
defaultValue: boolean;
|
|
74
|
-
};
|
|
75
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
76
|
-
defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
77
|
-
categoryNames: {
|
|
78
|
-
type: string;
|
|
79
|
-
defaultValue: never[];
|
|
80
|
-
};
|
|
81
|
-
topLevelCategories: {
|
|
82
|
-
type: string;
|
|
83
|
-
defaultValue: boolean;
|
|
84
|
-
};
|
|
85
|
-
subCategories: {
|
|
86
|
-
type: string;
|
|
87
|
-
defaultValue: boolean;
|
|
88
|
-
};
|
|
89
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
90
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
91
|
-
theme: {
|
|
92
|
-
type: string;
|
|
93
|
-
defaultValue: {};
|
|
94
|
-
};
|
|
95
|
-
extraThemes: {
|
|
96
|
-
type: string;
|
|
97
|
-
defaultValue: {};
|
|
98
|
-
};
|
|
99
|
-
logoPath: {
|
|
100
|
-
type: string;
|
|
101
|
-
defaultValue: {
|
|
102
|
-
uri: string;
|
|
103
|
-
locationType: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
107
|
-
plugins: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<PluginDefinition, PluginDefinition, PluginDefinition>>;
|
|
108
|
-
assemblies: import("mobx-state-tree").IArrayType<AnyConfigurationSchemaType>;
|
|
109
|
-
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
110
|
-
internetAccounts: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
111
|
-
aggregateTextSearchAdapters: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
112
|
-
connections: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
113
|
-
defaultSession: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
114
|
-
preConfiguredSessions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<any, any, any>>;
|
|
115
|
-
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.JBrowseConfigF = JBrowseConfigF;
|
|
7
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
8
|
-
const RootConfiguration_1 = __importDefault(require("./RootConfiguration"));
|
|
9
|
-
function JBrowseConfigF({ pluginManager, assemblyConfigSchema, }) {
|
|
10
|
-
return mobx_state_tree_1.types.model('JBrowseConfig', {
|
|
11
|
-
configuration: (0, RootConfiguration_1.default)({
|
|
12
|
-
pluginManager,
|
|
13
|
-
}),
|
|
14
|
-
plugins: mobx_state_tree_1.types.array(mobx_state_tree_1.types.frozen()),
|
|
15
|
-
assemblies: mobx_state_tree_1.types.array(assemblyConfigSchema),
|
|
16
|
-
tracks: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('track')),
|
|
17
|
-
internetAccounts: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('internet account')),
|
|
18
|
-
aggregateTextSearchAdapters: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('text search adapter')),
|
|
19
|
-
connections: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('connection')),
|
|
20
|
-
defaultSession: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.frozen(), {
|
|
21
|
-
name: 'New Session',
|
|
22
|
-
}),
|
|
23
|
-
preConfiguredSessions: mobx_state_tree_1.types.array(mobx_state_tree_1.types.frozen()),
|
|
24
|
-
...pluginManager.pluginConfigurationRootSchemas(),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import type { PluginDefinition } from '@jbrowse/core/PluginLoader';
|
|
2
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
import type { BaseAssemblyConfigSchema } from '@jbrowse/core/assemblyManager';
|
|
4
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
5
|
-
import type RpcManager from '@jbrowse/core/rpc/RpcManager';
|
|
6
|
-
export declare function JBrowseModelF({ pluginManager, assemblyConfigSchema, }: {
|
|
7
|
-
pluginManager: PluginManager;
|
|
8
|
-
assemblyConfigSchema: BaseAssemblyConfigSchema;
|
|
9
|
-
}): import("mobx-state-tree").IModelType<{
|
|
10
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
11
|
-
rpc: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
12
|
-
defaultDriver: {
|
|
13
|
-
type: string;
|
|
14
|
-
description: string;
|
|
15
|
-
defaultValue: string;
|
|
16
|
-
};
|
|
17
|
-
drivers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> | undefined, import("mobx-state-tree").ModelSnapshotType<Record<string, any>>, ({} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> & import("mobx-state-tree/dist/internal").NonEmptyObject) | undefined>>, [undefined]>;
|
|
18
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
19
|
-
highResolutionScaling: {
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue: number;
|
|
22
|
-
};
|
|
23
|
-
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
24
|
-
feature: {
|
|
25
|
-
type: string;
|
|
26
|
-
description: string;
|
|
27
|
-
defaultValue: {};
|
|
28
|
-
contextVariable: string[];
|
|
29
|
-
};
|
|
30
|
-
subfeatures: {
|
|
31
|
-
type: string;
|
|
32
|
-
description: string;
|
|
33
|
-
defaultValue: {};
|
|
34
|
-
contextVariable: string[];
|
|
35
|
-
};
|
|
36
|
-
depth: {
|
|
37
|
-
type: string;
|
|
38
|
-
defaultValue: number;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
maxDepth: {
|
|
42
|
-
type: string;
|
|
43
|
-
defaultValue: number;
|
|
44
|
-
description: string;
|
|
45
|
-
};
|
|
46
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
47
|
-
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
48
|
-
config: {
|
|
49
|
-
type: string;
|
|
50
|
-
description: string;
|
|
51
|
-
defaultValue: {};
|
|
52
|
-
contextVariable: string[];
|
|
53
|
-
};
|
|
54
|
-
hideUris: {
|
|
55
|
-
type: string;
|
|
56
|
-
defaultValue: boolean;
|
|
57
|
-
};
|
|
58
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
59
|
-
shareURL: {
|
|
60
|
-
type: string;
|
|
61
|
-
defaultValue: string;
|
|
62
|
-
};
|
|
63
|
-
disableAnalytics: {
|
|
64
|
-
type: string;
|
|
65
|
-
defaultValue: boolean;
|
|
66
|
-
};
|
|
67
|
-
hierarchical: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
68
|
-
sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
69
|
-
trackNames: {
|
|
70
|
-
type: string;
|
|
71
|
-
defaultValue: boolean;
|
|
72
|
-
};
|
|
73
|
-
categories: {
|
|
74
|
-
type: string;
|
|
75
|
-
defaultValue: boolean;
|
|
76
|
-
};
|
|
77
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
78
|
-
defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
79
|
-
categoryNames: {
|
|
80
|
-
type: string;
|
|
81
|
-
defaultValue: never[];
|
|
82
|
-
};
|
|
83
|
-
topLevelCategories: {
|
|
84
|
-
type: string;
|
|
85
|
-
defaultValue: boolean;
|
|
86
|
-
};
|
|
87
|
-
subCategories: {
|
|
88
|
-
type: string;
|
|
89
|
-
defaultValue: boolean;
|
|
90
|
-
};
|
|
91
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
92
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
93
|
-
theme: {
|
|
94
|
-
type: string;
|
|
95
|
-
defaultValue: {};
|
|
96
|
-
};
|
|
97
|
-
extraThemes: {
|
|
98
|
-
type: string;
|
|
99
|
-
defaultValue: {};
|
|
100
|
-
};
|
|
101
|
-
logoPath: {
|
|
102
|
-
type: string;
|
|
103
|
-
defaultValue: {
|
|
104
|
-
uri: string;
|
|
105
|
-
locationType: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
109
|
-
plugins: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<PluginDefinition, PluginDefinition, PluginDefinition>>;
|
|
110
|
-
assemblies: import("mobx-state-tree").IArrayType<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
111
|
-
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
112
|
-
internetAccounts: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
113
|
-
aggregateTextSearchAdapters: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
114
|
-
connections: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
115
|
-
defaultSession: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
116
|
-
preConfiguredSessions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<any, any, any>>;
|
|
117
|
-
}, {
|
|
118
|
-
readonly assemblyNames: string[];
|
|
119
|
-
readonly rpcManager: RpcManager;
|
|
120
|
-
} & {
|
|
121
|
-
addAssemblyConf(conf: AnyConfigurationModel): ({
|
|
122
|
-
[x: string]: any;
|
|
123
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
124
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
125
|
-
[x: string]: any;
|
|
126
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
127
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
128
|
-
[x: string]: any;
|
|
129
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
130
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
131
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | undefined;
|
|
132
|
-
removeAssemblyConf(assemblyName: string): void;
|
|
133
|
-
addTrackConf(trackConf: AnyConfigurationModel): any;
|
|
134
|
-
addConnectionConf(connectionConf: AnyConfigurationModel): any;
|
|
135
|
-
deleteConnectionConf(configuration: AnyConfigurationModel): boolean;
|
|
136
|
-
deleteTrackConf(trackConf: AnyConfigurationModel): boolean;
|
|
137
|
-
addPlugin(pluginDefinition: PluginDefinition): void;
|
|
138
|
-
removePlugin(pluginDefinition: PluginDefinition): void;
|
|
139
|
-
setDefaultSessionConf(sessionConf: AnyConfigurationModel): void;
|
|
140
|
-
addInternetAccountConf(internetAccountConf: AnyConfigurationModel): any;
|
|
141
|
-
deleteInternetAccountConf(configuration: AnyConfigurationModel): boolean;
|
|
142
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JBrowseModelF = JBrowseModelF;
|
|
4
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const mobx_1 = require("mobx");
|
|
6
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
7
|
-
const JBrowseConfig_1 = require("../JBrowseConfig");
|
|
8
|
-
function JBrowseModelF({ pluginManager, assemblyConfigSchema, }) {
|
|
9
|
-
return (0, JBrowseConfig_1.JBrowseConfigF)({ pluginManager, assemblyConfigSchema })
|
|
10
|
-
.views(self => ({
|
|
11
|
-
get assemblyNames() {
|
|
12
|
-
return self.assemblies.map(assembly => (0, configuration_1.readConfObject)(assembly, 'name'));
|
|
13
|
-
},
|
|
14
|
-
get rpcManager() {
|
|
15
|
-
return (0, mobx_state_tree_1.getParent)(self).rpcManager;
|
|
16
|
-
},
|
|
17
|
-
}))
|
|
18
|
-
.actions(self => ({
|
|
19
|
-
addAssemblyConf(conf) {
|
|
20
|
-
const { name } = conf;
|
|
21
|
-
if (!name) {
|
|
22
|
-
throw new Error('Can\'t add assembly with no "name"');
|
|
23
|
-
}
|
|
24
|
-
if (self.assemblyNames.includes(name)) {
|
|
25
|
-
throw new Error(`Can't add assembly with name "${name}", an assembly with that name already exists`);
|
|
26
|
-
}
|
|
27
|
-
const length = self.assemblies.push({
|
|
28
|
-
...conf,
|
|
29
|
-
sequence: {
|
|
30
|
-
type: 'ReferenceSequenceTrack',
|
|
31
|
-
trackId: `${name}-${Date.now()}`,
|
|
32
|
-
...conf.sequence,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
return self.assemblies[length - 1];
|
|
36
|
-
},
|
|
37
|
-
removeAssemblyConf(assemblyName) {
|
|
38
|
-
const toRemove = self.assemblies.find(a => a.name === assemblyName);
|
|
39
|
-
if (toRemove) {
|
|
40
|
-
self.assemblies.remove(toRemove);
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
addTrackConf(trackConf) {
|
|
44
|
-
const { type } = trackConf;
|
|
45
|
-
if (!type) {
|
|
46
|
-
throw new Error(`unknown track type ${type}`);
|
|
47
|
-
}
|
|
48
|
-
const length = self.tracks.push(trackConf);
|
|
49
|
-
return self.tracks[length - 1];
|
|
50
|
-
},
|
|
51
|
-
addConnectionConf(connectionConf) {
|
|
52
|
-
const { type } = connectionConf;
|
|
53
|
-
if (!type) {
|
|
54
|
-
throw new Error(`unknown connection type ${type}`);
|
|
55
|
-
}
|
|
56
|
-
const length = self.connections.push(connectionConf);
|
|
57
|
-
return self.connections[length - 1];
|
|
58
|
-
},
|
|
59
|
-
deleteConnectionConf(configuration) {
|
|
60
|
-
const elt = self.connections.find(conn => conn.id === configuration.id);
|
|
61
|
-
return self.connections.remove(elt);
|
|
62
|
-
},
|
|
63
|
-
deleteTrackConf(trackConf) {
|
|
64
|
-
const elt = self.tracks.find(t => t.trackId === trackConf.trackId);
|
|
65
|
-
return self.tracks.remove(elt);
|
|
66
|
-
},
|
|
67
|
-
addPlugin(pluginDefinition) {
|
|
68
|
-
self.plugins.push(pluginDefinition);
|
|
69
|
-
const rootModel = (0, mobx_state_tree_1.getParent)(self);
|
|
70
|
-
rootModel.setPluginsUpdated(true);
|
|
71
|
-
},
|
|
72
|
-
removePlugin(pluginDefinition) {
|
|
73
|
-
self.plugins = (0, mobx_state_tree_1.cast)(self.plugins.filter(plugin => plugin.url !== pluginDefinition.url ||
|
|
74
|
-
plugin.umdUrl !== pluginDefinition.umdUrl ||
|
|
75
|
-
plugin.cjsUrl !== pluginDefinition.cjsUrl ||
|
|
76
|
-
plugin.esmUrl !== pluginDefinition.esmUrl));
|
|
77
|
-
(0, mobx_state_tree_1.getParent)(self).setPluginsUpdated(true);
|
|
78
|
-
},
|
|
79
|
-
setDefaultSessionConf(sessionConf) {
|
|
80
|
-
const newDefault = (0, mobx_state_tree_1.getParent)(self).session.name === sessionConf.name
|
|
81
|
-
? (0, mobx_state_tree_1.getSnapshot)(sessionConf)
|
|
82
|
-
: (0, mobx_1.toJS)(sessionConf);
|
|
83
|
-
if (!newDefault.name) {
|
|
84
|
-
throw new Error(`unable to set default session to ${newDefault.name}`);
|
|
85
|
-
}
|
|
86
|
-
self.defaultSession = (0, mobx_state_tree_1.cast)(newDefault);
|
|
87
|
-
},
|
|
88
|
-
addInternetAccountConf(internetAccountConf) {
|
|
89
|
-
const { type } = internetAccountConf;
|
|
90
|
-
if (!type) {
|
|
91
|
-
throw new Error(`unknown internetAccount type ${type}`);
|
|
92
|
-
}
|
|
93
|
-
const length = self.internetAccounts.push(internetAccountConf);
|
|
94
|
-
return self.internetAccounts[length - 1];
|
|
95
|
-
},
|
|
96
|
-
deleteInternetAccountConf(configuration) {
|
|
97
|
-
const elt = self.internetAccounts.find(a => a.id === configuration.id);
|
|
98
|
-
return self.internetAccounts.remove(elt);
|
|
99
|
-
},
|
|
100
|
-
}));
|
|
101
|
-
}
|
package/dist/RootMenu/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Menu, MenuAction } from '../menus';
|
|
2
|
-
import type { MenuItem } from '@jbrowse/core/ui/Menu';
|
|
3
|
-
export declare function RootAppMenuMixin(): import("mobx-state-tree").IModelType<{}, {
|
|
4
|
-
mutableMenuActions: MenuAction[];
|
|
5
|
-
} & {
|
|
6
|
-
setMenus(newMenus: Menu[]): void;
|
|
7
|
-
appendMenu(menuName: string): void;
|
|
8
|
-
insertMenu(menuName: string, position: number): void;
|
|
9
|
-
appendToMenu(menuName: string, menuItem: MenuItem): void;
|
|
10
|
-
insertInMenu(menuName: string, menuItem: MenuItem, position: number): void;
|
|
11
|
-
appendToSubMenu(menuPath: string[], menuItem: MenuItem): void;
|
|
12
|
-
insertInSubMenu(menuPath: string[], menuItem: MenuItem, position: number): void;
|
|
13
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
package/dist/RootMenu/index.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RootAppMenuMixin = RootAppMenuMixin;
|
|
4
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
|
-
function RootAppMenuMixin() {
|
|
6
|
-
return mobx_state_tree_1.types
|
|
7
|
-
.model({})
|
|
8
|
-
.volatile(() => ({
|
|
9
|
-
mutableMenuActions: [],
|
|
10
|
-
}))
|
|
11
|
-
.actions(self => ({
|
|
12
|
-
setMenus(newMenus) {
|
|
13
|
-
self.mutableMenuActions = [
|
|
14
|
-
...self.mutableMenuActions,
|
|
15
|
-
{ type: 'setMenus', newMenus },
|
|
16
|
-
];
|
|
17
|
-
},
|
|
18
|
-
appendMenu(menuName) {
|
|
19
|
-
self.mutableMenuActions = [
|
|
20
|
-
...self.mutableMenuActions,
|
|
21
|
-
{ type: 'appendMenu', menuName },
|
|
22
|
-
];
|
|
23
|
-
},
|
|
24
|
-
insertMenu(menuName, position) {
|
|
25
|
-
self.mutableMenuActions = [
|
|
26
|
-
...self.mutableMenuActions,
|
|
27
|
-
{
|
|
28
|
-
type: 'insertMenu',
|
|
29
|
-
menuName,
|
|
30
|
-
position,
|
|
31
|
-
},
|
|
32
|
-
];
|
|
33
|
-
},
|
|
34
|
-
appendToMenu(menuName, menuItem) {
|
|
35
|
-
self.mutableMenuActions = [
|
|
36
|
-
...self.mutableMenuActions,
|
|
37
|
-
{
|
|
38
|
-
type: 'appendToMenu',
|
|
39
|
-
menuName,
|
|
40
|
-
menuItem,
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
|
-
},
|
|
44
|
-
insertInMenu(menuName, menuItem, position) {
|
|
45
|
-
self.mutableMenuActions.push({
|
|
46
|
-
type: 'insertInMenu',
|
|
47
|
-
menuName,
|
|
48
|
-
menuItem,
|
|
49
|
-
position,
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
appendToSubMenu(menuPath, menuItem) {
|
|
53
|
-
self.mutableMenuActions = [
|
|
54
|
-
...self.mutableMenuActions,
|
|
55
|
-
{
|
|
56
|
-
type: 'appendToSubMenu',
|
|
57
|
-
menuPath,
|
|
58
|
-
menuItem,
|
|
59
|
-
},
|
|
60
|
-
];
|
|
61
|
-
},
|
|
62
|
-
insertInSubMenu(menuPath, menuItem, position) {
|
|
63
|
-
self.mutableMenuActions = [
|
|
64
|
-
...self.mutableMenuActions,
|
|
65
|
-
{
|
|
66
|
-
type: 'insertInSubMenu',
|
|
67
|
-
menuPath,
|
|
68
|
-
menuItem,
|
|
69
|
-
position,
|
|
70
|
-
},
|
|
71
|
-
];
|
|
72
|
-
},
|
|
73
|
-
}));
|
|
74
|
-
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ui"), exports);
|
|
18
|
-
__exportStar(require("./HistoryManagement"), exports);
|
|
19
|
-
__exportStar(require("./AppFocus"), exports);
|
|
20
|
-
__exportStar(require("./JBrowseConfig"), exports);
|
|
21
|
-
__exportStar(require("./JBrowseModel"), exports);
|
|
22
|
-
__exportStar(require("./Assemblies"), exports);
|
|
23
|
-
__exportStar(require("./RootMenu"), exports);
|
|
24
|
-
__exportStar(require("./menus"), exports);
|
package/dist/menus.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { MenuItem } from '@jbrowse/core/ui';
|
|
2
|
-
interface InsertInSubMenuAction {
|
|
3
|
-
type: 'insertInSubMenu';
|
|
4
|
-
menuPath: string[];
|
|
5
|
-
menuItem: MenuItem;
|
|
6
|
-
position: number;
|
|
7
|
-
}
|
|
8
|
-
interface InsertInMenuAction {
|
|
9
|
-
type: 'insertInMenu';
|
|
10
|
-
menuName: string;
|
|
11
|
-
menuItem: MenuItem;
|
|
12
|
-
position: number;
|
|
13
|
-
}
|
|
14
|
-
interface AppendToMenuAction {
|
|
15
|
-
type: 'appendToMenu';
|
|
16
|
-
menuName: string;
|
|
17
|
-
menuItem: MenuItem;
|
|
18
|
-
}
|
|
19
|
-
interface AppendToSubMenuAction {
|
|
20
|
-
type: 'appendToSubMenu';
|
|
21
|
-
menuPath: string[];
|
|
22
|
-
menuItem: MenuItem;
|
|
23
|
-
}
|
|
24
|
-
interface AppendMenuAction {
|
|
25
|
-
type: 'appendMenu';
|
|
26
|
-
menuName: string;
|
|
27
|
-
}
|
|
28
|
-
interface InsertMenuAction {
|
|
29
|
-
type: 'insertMenu';
|
|
30
|
-
menuName: string;
|
|
31
|
-
position: number;
|
|
32
|
-
}
|
|
33
|
-
interface SetMenusAction {
|
|
34
|
-
type: 'setMenus';
|
|
35
|
-
newMenus: Menu[];
|
|
36
|
-
}
|
|
37
|
-
export type MenuAction = InsertMenuAction | AppendMenuAction | AppendToSubMenuAction | AppendToMenuAction | InsertInMenuAction | InsertInSubMenuAction | SetMenusAction;
|
|
38
|
-
export interface Menu {
|
|
39
|
-
label: string;
|
|
40
|
-
menuItems: MenuItem[];
|
|
41
|
-
}
|
|
42
|
-
export declare function appendMenu({ menus, menuName, }: {
|
|
43
|
-
menus: Menu[];
|
|
44
|
-
menuName: string;
|
|
45
|
-
}): number;
|
|
46
|
-
export declare function insertMenu({ menus, menuName, position, }: {
|
|
47
|
-
menus: Menu[];
|
|
48
|
-
menuName: string;
|
|
49
|
-
position: number;
|
|
50
|
-
}): number;
|
|
51
|
-
export declare function appendToMenu({ menus, menuName, menuItem, }: {
|
|
52
|
-
menus: Menu[];
|
|
53
|
-
menuName: string;
|
|
54
|
-
menuItem: MenuItem;
|
|
55
|
-
}): number;
|
|
56
|
-
export declare function insertInMenu({ menus, menuName, menuItem, position, }: {
|
|
57
|
-
menus: Menu[];
|
|
58
|
-
menuName: string;
|
|
59
|
-
menuItem: MenuItem;
|
|
60
|
-
position: number;
|
|
61
|
-
}): number;
|
|
62
|
-
export declare function appendToSubMenu({ menus, menuPath, menuItem, }: {
|
|
63
|
-
menus: Menu[];
|
|
64
|
-
menuPath: string[];
|
|
65
|
-
menuItem: MenuItem;
|
|
66
|
-
}): number;
|
|
67
|
-
export declare function insertInSubMenu({ menus, menuPath, menuItem, position, }: {
|
|
68
|
-
menus: Menu[];
|
|
69
|
-
menuPath: string[];
|
|
70
|
-
menuItem: MenuItem;
|
|
71
|
-
position: number;
|
|
72
|
-
}): number;
|
|
73
|
-
export declare function processMutableMenuActions(ret: Menu[], actions: MenuAction[]): Menu[];
|
|
74
|
-
export {};
|