@jbrowse/react-app2 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/JBrowseApp/JBrowseApp.d.ts +2 -2
- package/esm/JBrowseApp/JBrowseApp.js +3 -3
- package/esm/JBrowseApp/index.d.ts +1 -1
- package/esm/JBrowseApp/index.js +1 -1
- package/esm/components/PreferencesDialog.d.ts +2 -0
- package/esm/components/PreferencesDialog.js +7 -5
- package/esm/corePlugins.d.ts +2 -2
- package/esm/corePlugins.js +2 -2
- package/esm/createModel.d.ts +56 -41
- package/esm/createModel.js +3 -3
- package/esm/createViewState.d.ts +160 -112
- package/esm/createViewState.js +2 -2
- package/esm/index.d.ts +4 -4
- package/esm/index.js +4 -4
- package/esm/jbrowseModel.d.ts +53 -35
- package/esm/jbrowseModel.js +2 -2
- package/esm/rootModel/rootModel.d.ts +53 -38
- package/esm/rootModel/rootModel.js +23 -12
- package/esm/rpcWorker.d.ts +1 -1
- package/esm/rpcWorker.js +2 -2
- package/esm/sessionModel/index.d.ts +1645 -1866
- package/esm/types.d.ts +1 -1
- package/esm/util.d.ts +2 -2
- package/esm/util.js +5 -5
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/webpack.d.ts +4 -4
- package/esm/webpack.js +4 -4
- package/package.json +65 -74
- package/dist/JBrowseApp/AppReExport.d.ts +0 -1
- package/dist/JBrowseApp/AppReExport.js +0 -5
- package/dist/JBrowseApp/JBrowseApp.d.ts +0 -5
- package/dist/JBrowseApp/JBrowseApp.js +0 -55
- package/dist/JBrowseApp/index.d.ts +0 -1
- package/dist/JBrowseApp/index.js +0 -8
- package/dist/components/AboutDialog.d.ts +0 -1
- package/dist/components/AboutDialog.js +0 -5
- package/dist/components/PreferencesDialog.d.ts +0 -14
- package/dist/components/PreferencesDialog.js +0 -21
- package/dist/corePlugins.d.ts +0 -3
- package/dist/corePlugins.js +0 -64
- package/dist/createModel.d.ts +0 -565
- package/dist/createModel.js +0 -26
- package/dist/createViewState.d.ts +0 -1684
- package/dist/createViewState.js +0 -26
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -14
- package/dist/jbrowseModel.d.ts +0 -139
- package/dist/jbrowseModel.js +0 -7
- package/dist/loadPlugins.d.ts +0 -12
- package/dist/loadPlugins.js +0 -12
- package/dist/react-app.umd.production.min.js +0 -229
- package/dist/react-app.umd.production.min.js.LICENSE.txt +0 -195
- package/dist/react-app.umd.production.min.js.map +0 -1
- package/dist/rootModel/rootModel.d.ts +0 -577
- package/dist/rootModel/rootModel.js +0 -166
- package/dist/rootModel/rootModel.test.d.ts +0 -1
- package/dist/rootModel/rootModel.test.js +0 -140
- package/dist/rpcWorker.d.ts +0 -2
- package/dist/rpcWorker.js +0 -57
- package/dist/sessionModel/index.d.ts +0 -10028
- package/dist/sessionModel/index.js +0 -10
- package/dist/types.d.ts +0 -27
- package/dist/types.js +0 -2
- package/dist/util.d.ts +0 -5
- package/dist/util.js +0 -119
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/webpack.d.ts +0 -7
- package/dist/webpack.js +0 -53
- package/dist/workerPolyfill.d.ts +0 -0
- package/dist/workerPolyfill.js +0 -34
- package/esm/workerPolyfill.d.ts +0 -0
- package/esm/workerPolyfill.js +0 -34
package/dist/createViewState.js
DELETED
|
@@ -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.default = createViewState;
|
|
7
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
8
|
-
const createModel_1 = __importDefault(require("./createModel"));
|
|
9
|
-
function createViewState(opts) {
|
|
10
|
-
const { config, plugins = [], onChange, makeWorkerInstance } = opts;
|
|
11
|
-
const { defaultSession = { name: 'NewSession' } } = config;
|
|
12
|
-
const { model, pluginManager } = (0, createModel_1.default)({
|
|
13
|
-
runtimePlugins: plugins,
|
|
14
|
-
makeWorkerInstance,
|
|
15
|
-
});
|
|
16
|
-
const stateTree = model.create({
|
|
17
|
-
jbrowse: config,
|
|
18
|
-
session: defaultSession,
|
|
19
|
-
}, { pluginManager });
|
|
20
|
-
pluginManager.setRootModel(stateTree);
|
|
21
|
-
pluginManager.configure();
|
|
22
|
-
if (onChange) {
|
|
23
|
-
(0, mobx_state_tree_1.onPatch)(stateTree, onChange);
|
|
24
|
-
}
|
|
25
|
-
return stateTree;
|
|
26
|
-
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,14 +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.loadPlugins = exports.createViewState = exports.createModel = exports.JBrowseApp = void 0;
|
|
7
|
-
var JBrowseApp_1 = require("./JBrowseApp");
|
|
8
|
-
Object.defineProperty(exports, "JBrowseApp", { enumerable: true, get: function () { return __importDefault(JBrowseApp_1).default; } });
|
|
9
|
-
var createModel_1 = require("./createModel");
|
|
10
|
-
Object.defineProperty(exports, "createModel", { enumerable: true, get: function () { return __importDefault(createModel_1).default; } });
|
|
11
|
-
var createViewState_1 = require("./createViewState");
|
|
12
|
-
Object.defineProperty(exports, "createViewState", { enumerable: true, get: function () { return __importDefault(createViewState_1).default; } });
|
|
13
|
-
var loadPlugins_1 = require("./loadPlugins");
|
|
14
|
-
Object.defineProperty(exports, "loadPlugins", { enumerable: true, get: function () { return __importDefault(loadPlugins_1).default; } });
|
package/dist/jbrowseModel.d.ts
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
-
export default function JBrowseWeb({ pluginManager, assemblyConfigSchema, }: {
|
|
4
|
-
pluginManager: PluginManager;
|
|
5
|
-
assemblyConfigSchema: AnyConfigurationSchemaType;
|
|
6
|
-
}): import("mobx-state-tree").IModelType<{
|
|
7
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
|
-
rpc: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
|
-
defaultDriver: {
|
|
10
|
-
type: string;
|
|
11
|
-
description: string;
|
|
12
|
-
defaultValue: string;
|
|
13
|
-
};
|
|
14
|
-
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]>;
|
|
15
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
16
|
-
highResolutionScaling: {
|
|
17
|
-
type: string;
|
|
18
|
-
defaultValue: number;
|
|
19
|
-
};
|
|
20
|
-
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
21
|
-
feature: {
|
|
22
|
-
type: string;
|
|
23
|
-
description: string;
|
|
24
|
-
defaultValue: {};
|
|
25
|
-
contextVariable: string[];
|
|
26
|
-
};
|
|
27
|
-
subfeatures: {
|
|
28
|
-
type: string;
|
|
29
|
-
description: string;
|
|
30
|
-
defaultValue: {};
|
|
31
|
-
contextVariable: string[];
|
|
32
|
-
};
|
|
33
|
-
depth: {
|
|
34
|
-
type: string;
|
|
35
|
-
defaultValue: number;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
maxDepth: {
|
|
39
|
-
type: string;
|
|
40
|
-
defaultValue: number;
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
44
|
-
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
45
|
-
config: {
|
|
46
|
-
type: string;
|
|
47
|
-
description: string;
|
|
48
|
-
defaultValue: {};
|
|
49
|
-
contextVariable: string[];
|
|
50
|
-
};
|
|
51
|
-
hideUris: {
|
|
52
|
-
type: string;
|
|
53
|
-
defaultValue: boolean;
|
|
54
|
-
};
|
|
55
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
56
|
-
shareURL: {
|
|
57
|
-
type: string;
|
|
58
|
-
defaultValue: string;
|
|
59
|
-
};
|
|
60
|
-
disableAnalytics: {
|
|
61
|
-
type: string;
|
|
62
|
-
defaultValue: boolean;
|
|
63
|
-
};
|
|
64
|
-
hierarchical: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
65
|
-
sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
66
|
-
trackNames: {
|
|
67
|
-
type: string;
|
|
68
|
-
defaultValue: boolean;
|
|
69
|
-
};
|
|
70
|
-
categories: {
|
|
71
|
-
type: string;
|
|
72
|
-
defaultValue: boolean;
|
|
73
|
-
};
|
|
74
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
75
|
-
defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
76
|
-
categoryNames: {
|
|
77
|
-
type: string;
|
|
78
|
-
defaultValue: never[];
|
|
79
|
-
};
|
|
80
|
-
topLevelCategories: {
|
|
81
|
-
type: string;
|
|
82
|
-
defaultValue: boolean;
|
|
83
|
-
};
|
|
84
|
-
subCategories: {
|
|
85
|
-
type: string;
|
|
86
|
-
defaultValue: boolean;
|
|
87
|
-
};
|
|
88
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
89
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
90
|
-
theme: {
|
|
91
|
-
type: string;
|
|
92
|
-
defaultValue: {};
|
|
93
|
-
};
|
|
94
|
-
extraThemes: {
|
|
95
|
-
type: string;
|
|
96
|
-
defaultValue: {};
|
|
97
|
-
};
|
|
98
|
-
logoPath: {
|
|
99
|
-
type: string;
|
|
100
|
-
defaultValue: {
|
|
101
|
-
uri: string;
|
|
102
|
-
locationType: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
106
|
-
plugins: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/core/PluginLoader").PluginDefinition, import("@jbrowse/core/PluginLoader").PluginDefinition, import("@jbrowse/core/PluginLoader").PluginDefinition>>;
|
|
107
|
-
assemblies: import("mobx-state-tree").IArrayType<AnyConfigurationSchemaType>;
|
|
108
|
-
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
109
|
-
internetAccounts: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
110
|
-
aggregateTextSearchAdapters: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
111
|
-
connections: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
112
|
-
defaultSession: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
113
|
-
preConfiguredSessions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<any, any, any>>;
|
|
114
|
-
}, {
|
|
115
|
-
readonly assemblyNames: string[];
|
|
116
|
-
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
117
|
-
} & {
|
|
118
|
-
addAssemblyConf(conf: import("@jbrowse/core/configuration").AnyConfigurationModel): ({
|
|
119
|
-
[x: string]: any;
|
|
120
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
121
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
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 & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
127
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
128
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>) | undefined;
|
|
129
|
-
removeAssemblyConf(assemblyName: string): void;
|
|
130
|
-
addTrackConf(trackConf: import("@jbrowse/core/configuration").AnyConfigurationModel): any;
|
|
131
|
-
addConnectionConf(connectionConf: import("@jbrowse/core/configuration").AnyConfigurationModel): any;
|
|
132
|
-
deleteConnectionConf(configuration: import("@jbrowse/core/configuration").AnyConfigurationModel): boolean;
|
|
133
|
-
deleteTrackConf(trackConf: import("@jbrowse/core/configuration").AnyConfigurationModel): boolean;
|
|
134
|
-
addPlugin(pluginDefinition: import("@jbrowse/core/PluginLoader").PluginDefinition): void;
|
|
135
|
-
removePlugin(pluginDefinition: import("@jbrowse/core/PluginLoader").PluginDefinition): void;
|
|
136
|
-
setDefaultSessionConf(sessionConf: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
|
|
137
|
-
addInternetAccountConf(internetAccountConf: import("@jbrowse/core/configuration").AnyConfigurationModel): any;
|
|
138
|
-
deleteInternetAccountConf(configuration: import("@jbrowse/core/configuration").AnyConfigurationModel): boolean;
|
|
139
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
package/dist/jbrowseModel.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = JBrowseWeb;
|
|
4
|
-
const app_core_1 = require("@jbrowse/app-core");
|
|
5
|
-
function JBrowseWeb({ pluginManager, assemblyConfigSchema, }) {
|
|
6
|
-
return (0, app_core_1.JBrowseModelF)({ pluginManager, assemblyConfigSchema });
|
|
7
|
-
}
|
package/dist/loadPlugins.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { LoadedPlugin } from '@jbrowse/core/PluginLoader';
|
|
2
|
-
interface PluginDefinition {
|
|
3
|
-
name: string;
|
|
4
|
-
url: string;
|
|
5
|
-
}
|
|
6
|
-
export default function loadPlugins(pluginDefinitions: PluginDefinition[], args?: {
|
|
7
|
-
fetchESM: (url: string) => Promise<LoadedPlugin>;
|
|
8
|
-
}): Promise<{
|
|
9
|
-
plugin: import("@jbrowse/core/Plugin").PluginConstructor;
|
|
10
|
-
definition: import("@jbrowse/core/PluginLoader").PluginDefinition;
|
|
11
|
-
}[]>;
|
|
12
|
-
export {};
|
package/dist/loadPlugins.js
DELETED
|
@@ -1,12 +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 = loadPlugins;
|
|
7
|
-
const PluginLoader_1 = __importDefault(require("@jbrowse/core/PluginLoader"));
|
|
8
|
-
async function loadPlugins(pluginDefinitions, args) {
|
|
9
|
-
const pluginLoader = new PluginLoader_1.default(pluginDefinitions, args);
|
|
10
|
-
pluginLoader.installGlobalReExports(window);
|
|
11
|
-
return pluginLoader.load('');
|
|
12
|
-
}
|