@jbrowse/react-linear-genome-view2 3.6.5 → 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/JBrowseLinearGenomeView/JBrowseLinearGenomeView.d.ts +1 -1
- package/esm/JBrowseLinearGenomeView/JBrowseLinearGenomeView.js +2 -2
- package/esm/JBrowseLinearGenomeView/index.d.ts +1 -1
- package/esm/JBrowseLinearGenomeView/index.js +1 -1
- package/esm/corePlugins.d.ts +2 -2
- package/esm/corePlugins.js +2 -2
- package/esm/createModel/createConfigModel.d.ts +23 -23
- package/esm/createModel/createConfigModel.js +1 -1
- package/esm/createModel/createModel.d.ts +1067 -1134
- package/esm/createModel/createModel.js +5 -5
- package/esm/createModel/createSessionModel.d.ts +550 -594
- package/esm/createModel/createSessionModel.js +5 -4
- package/esm/createModel/index.d.ts +3 -3
- package/esm/createModel/index.js +3 -3
- package/esm/createViewState.d.ts +2798 -3007
- package/esm/createViewState.js +3 -3
- package/esm/index.d.ts +5 -5
- package/esm/index.js +4 -4
- package/esm/loadPlugins.js +1 -1
- package/esm/rpcWorker.d.ts +1 -1
- package/esm/rpcWorker.js +11 -3
- package/esm/types.d.ts +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/webpack.d.ts +5 -5
- package/esm/webpack.js +4 -4
- package/package.json +48 -56
- package/dist/JBrowseLinearGenomeView/JBrowseLinearGenomeView.d.ts +0 -5
- package/dist/JBrowseLinearGenomeView/JBrowseLinearGenomeView.js +0 -19
- package/dist/JBrowseLinearGenomeView/JBrowseLinearGenomeView.test.d.ts +0 -1
- package/dist/JBrowseLinearGenomeView/JBrowseLinearGenomeView.test.js +0 -77
- package/dist/JBrowseLinearGenomeView/index.d.ts +0 -1
- package/dist/JBrowseLinearGenomeView/index.js +0 -8
- package/dist/corePlugins.d.ts +0 -3
- package/dist/corePlugins.js +0 -38
- package/dist/createModel/AboutDialog.d.ts +0 -1
- package/dist/createModel/AboutDialog.js +0 -5
- package/dist/createModel/createConfigModel.d.ts +0 -94
- package/dist/createModel/createConfigModel.js +0 -43
- package/dist/createModel/createModel.d.ts +0 -6332
- package/dist/createModel/createModel.js +0 -118
- package/dist/createModel/createSessionModel.d.ts +0 -2767
- package/dist/createModel/createSessionModel.js +0 -118
- package/dist/createModel/index.d.ts +0 -3
- package/dist/createModel/index.js +0 -12
- package/dist/createViewState.d.ts +0 -16589
- package/dist/createViewState.js +0 -75
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -14
- package/dist/loadPlugins.d.ts +0 -13
- package/dist/loadPlugins.js +0 -12
- package/dist/react-linear-genome-view.umd.production.min.js +0 -229
- package/dist/react-linear-genome-view.umd.production.min.js.LICENSE.txt +0 -192
- package/dist/react-linear-genome-view.umd.production.min.js.map +0 -1
- package/dist/rpcWorker.d.ts +0 -2
- package/dist/rpcWorker.js +0 -49
- package/dist/types.d.ts +0 -5
- package/dist/types.js +0 -2
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/webpack.d.ts +0 -8
- 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/esm/createViewState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assembleLocString, parseLocString } from '@jbrowse/core/util';
|
|
2
|
-
import { onPatch } from 'mobx-state-tree';
|
|
3
|
-
import createModel from
|
|
2
|
+
import { onPatch } from '@jbrowse/mobx-state-tree';
|
|
3
|
+
import createModel from "./createModel/index.js";
|
|
4
4
|
export default function createViewState(opts) {
|
|
5
5
|
const { assembly, tracks, internetAccounts, configuration, aggregateTextSearchAdapters, plugins = [], location, highlight, onChange, disableAddTracks = false, makeWorkerInstance, defaultSession, } = opts;
|
|
6
6
|
const { model, pluginManager } = createModel(plugins, makeWorkerInstance);
|
|
@@ -13,7 +13,7 @@ export default function createViewState(opts) {
|
|
|
13
13
|
aggregateTextSearchAdapters,
|
|
14
14
|
},
|
|
15
15
|
disableAddTracks,
|
|
16
|
-
session: defaultSession
|
|
16
|
+
session: defaultSession ?? {
|
|
17
17
|
name: 'this session',
|
|
18
18
|
view: {
|
|
19
19
|
id: 'linearGenomeView',
|
package/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as JBrowseLinearGenomeView } from './JBrowseLinearGenomeView';
|
|
2
|
-
export { default as createModel } from './createModel';
|
|
3
|
-
export { default as createViewState } from './createViewState';
|
|
4
|
-
export { default as loadPlugins } from './loadPlugins';
|
|
5
|
-
export type { ViewModel } from './createModel/createModel';
|
|
1
|
+
export { default as JBrowseLinearGenomeView } from './JBrowseLinearGenomeView/index.ts';
|
|
2
|
+
export { default as createModel } from './createModel/index.ts';
|
|
3
|
+
export { default as createViewState } from './createViewState.ts';
|
|
4
|
+
export { default as loadPlugins } from './loadPlugins.ts';
|
|
5
|
+
export type { ViewModel } from './createModel/createModel.ts';
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as JBrowseLinearGenomeView } from
|
|
2
|
-
export { default as createModel } from
|
|
3
|
-
export { default as createViewState } from
|
|
4
|
-
export { default as loadPlugins } from
|
|
1
|
+
export { default as JBrowseLinearGenomeView } from "./JBrowseLinearGenomeView/index.js";
|
|
2
|
+
export { default as createModel } from "./createModel/index.js";
|
|
3
|
+
export { default as createViewState } from "./createViewState.js";
|
|
4
|
+
export { default as loadPlugins } from "./loadPlugins.js";
|
package/esm/loadPlugins.js
CHANGED
|
@@ -2,5 +2,5 @@ import PluginLoader from '@jbrowse/core/PluginLoader';
|
|
|
2
2
|
export default async function loadPlugins(pluginDefinitions, args) {
|
|
3
3
|
const pluginLoader = new PluginLoader(pluginDefinitions, args);
|
|
4
4
|
pluginLoader.installGlobalReExports(window);
|
|
5
|
-
return pluginLoader.load(args
|
|
5
|
+
return pluginLoader.load(args?.baseUrl);
|
|
6
6
|
}
|
package/esm/rpcWorker.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './workerPolyfill';
|
|
1
|
+
import './workerPolyfill.js';
|
|
2
2
|
export default function doNothing(): void;
|
package/esm/rpcWorker.js
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import './workerPolyfill.js';
|
|
2
10
|
import { initializeWorker } from '@jbrowse/product-core';
|
|
3
11
|
import { enableStaticRendering } from 'mobx-react';
|
|
4
|
-
import corePlugins from
|
|
12
|
+
import corePlugins from "./corePlugins.js";
|
|
5
13
|
enableStaticRendering(true);
|
|
6
14
|
initializeWorker(corePlugins, {
|
|
7
|
-
fetchESM: url => import(url),
|
|
15
|
+
fetchESM: url => import(__rewriteRelativeImportExtension(url)),
|
|
8
16
|
});
|
|
9
17
|
export default function doNothing() {
|
|
10
18
|
}
|
package/esm/types.d.ts
CHANGED
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version
|
|
1
|
+
export declare const version = "4.0.0";
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '
|
|
1
|
+
export const version = '4.0.0';
|
package/esm/webpack.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { default as JBrowseLinearGenomeView } from './JBrowseLinearGenomeView';
|
|
3
|
-
export { default as createModel } from './createModel';
|
|
4
|
-
export { default as createViewState } from './createViewState';
|
|
5
|
-
export { default as loadPlugins } from './loadPlugins';
|
|
6
|
-
export type { ViewModel } from './createModel/createModel';
|
|
2
|
+
export { default as JBrowseLinearGenomeView } from './JBrowseLinearGenomeView/index.ts';
|
|
3
|
+
export { default as createModel } from './createModel/index.ts';
|
|
4
|
+
export { default as createViewState } from './createViewState.ts';
|
|
5
|
+
export { default as loadPlugins } from './loadPlugins.ts';
|
|
6
|
+
export type { ViewModel } from './createModel/createModel.ts';
|
|
7
7
|
export * from 'react-dom/client';
|
|
8
8
|
export { React };
|
package/esm/webpack.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { default as JBrowseLinearGenomeView } from
|
|
3
|
-
export { default as createModel } from
|
|
4
|
-
export { default as createViewState } from
|
|
5
|
-
export { default as loadPlugins } from
|
|
2
|
+
export { default as JBrowseLinearGenomeView } from "./JBrowseLinearGenomeView/index.js";
|
|
3
|
+
export { default as createModel } from "./createModel/index.js";
|
|
4
|
+
export { default as createViewState } from "./createViewState.js";
|
|
5
|
+
export { default as loadPlugins } from "./loadPlugins.js";
|
|
6
6
|
export * from 'react-dom/client';
|
|
7
7
|
export { React };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/react-linear-genome-view2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "JBrowse 2 linear genome view React component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -15,64 +15,46 @@
|
|
|
15
15
|
"directory": "products/jbrowse-react-linear-genome-view"
|
|
16
16
|
},
|
|
17
17
|
"author": "JBrowse Team",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
"main": "esm/index.js",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./esm/index.d.ts",
|
|
22
|
+
"import": "./esm/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
24
25
|
"files": [
|
|
25
|
-
"dist",
|
|
26
26
|
"esm",
|
|
27
27
|
"docs"
|
|
28
28
|
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "npm-run-all build:*",
|
|
31
|
-
"prepublishOnly": "node output-version.js > src/version.js && git add -A src && git commit -m '[skip ci] Bump version.js'",
|
|
32
|
-
"build:esm": "tsc --build tsconfig.build.esm.json",
|
|
33
|
-
"build:commonjs": "tsc --build tsconfig.build.commonjs.json",
|
|
34
|
-
"build:webpack": "webpack",
|
|
35
|
-
"clean": "rimraf dist esm *.tsbuildinfo",
|
|
36
|
-
"storybook": "storybook dev --port 6006",
|
|
37
|
-
"storybook:build": "storybook build",
|
|
38
|
-
"prebuild": "yarn clean",
|
|
39
|
-
"prepack": "yarn build && yarn useDist",
|
|
40
|
-
"postpack": "yarn useSrc",
|
|
41
|
-
"useDist": "node ../../scripts/useDist.js",
|
|
42
|
-
"useSrc": "node ../../scripts/useSrc.js"
|
|
43
|
-
},
|
|
44
29
|
"dependencies": {
|
|
45
|
-
"@babel/runtime": "^7.
|
|
46
|
-
"@emotion/cache": "^11.
|
|
47
|
-
"@emotion/react": "^11.
|
|
48
|
-
"@emotion/styled": "^11.
|
|
49
|
-
"@jbrowse/
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"@jbrowse/
|
|
56
|
-
"@jbrowse/plugin-
|
|
57
|
-
"@jbrowse/
|
|
58
|
-
"@jbrowse/plugin-
|
|
59
|
-
"@jbrowse/plugin-
|
|
60
|
-
"@jbrowse/plugin-
|
|
61
|
-
"@jbrowse/plugin-
|
|
62
|
-
"@jbrowse/plugin-
|
|
63
|
-
"@jbrowse/plugin-
|
|
64
|
-
"@jbrowse/plugin-
|
|
65
|
-
"@jbrowse/plugin-
|
|
66
|
-
"@jbrowse/plugin-
|
|
67
|
-
"@jbrowse/
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"mobx-state-tree": "^5.0.0",
|
|
74
|
-
"rxjs": "^7.0.0",
|
|
75
|
-
"tss-react": "^4.4.1"
|
|
30
|
+
"@babel/runtime": "^7.28.4",
|
|
31
|
+
"@emotion/cache": "^11.14.0",
|
|
32
|
+
"@emotion/react": "^11.14.0",
|
|
33
|
+
"@emotion/styled": "^11.14.1",
|
|
34
|
+
"@jbrowse/mobx-state-tree": "^5.5.0",
|
|
35
|
+
"@mui/icons-material": "^7.3.6",
|
|
36
|
+
"@mui/material": "^7.3.6",
|
|
37
|
+
"mobx": "^6.15.0",
|
|
38
|
+
"mobx-react": "^9.2.1",
|
|
39
|
+
"rxjs": "^7.8.2",
|
|
40
|
+
"@jbrowse/embedded-core": "^4.0.0",
|
|
41
|
+
"@jbrowse/plugin-authentication": "^4.0.0",
|
|
42
|
+
"@jbrowse/core": "^4.0.0",
|
|
43
|
+
"@jbrowse/plugin-alignments": "^4.0.0",
|
|
44
|
+
"@jbrowse/plugin-arc": "^4.0.0",
|
|
45
|
+
"@jbrowse/plugin-bed": "^4.0.0",
|
|
46
|
+
"@jbrowse/plugin-config": "^4.0.0",
|
|
47
|
+
"@jbrowse/plugin-canvas": "^4.0.0",
|
|
48
|
+
"@jbrowse/plugin-data-management": "^4.0.0",
|
|
49
|
+
"@jbrowse/plugin-gff3": "^4.0.0",
|
|
50
|
+
"@jbrowse/plugin-legacy-jbrowse": "^4.0.0",
|
|
51
|
+
"@jbrowse/plugin-gccontent": "^4.0.0",
|
|
52
|
+
"@jbrowse/plugin-sequence": "^4.0.0",
|
|
53
|
+
"@jbrowse/plugin-variants": "^4.0.0",
|
|
54
|
+
"@jbrowse/plugin-trix": "^4.0.0",
|
|
55
|
+
"@jbrowse/plugin-wiggle": "^4.0.0",
|
|
56
|
+
"@jbrowse/plugin-linear-genome-view": "^4.0.0",
|
|
57
|
+
"@jbrowse/product-core": "^4.0.0"
|
|
76
58
|
},
|
|
77
59
|
"peerDependencies": {
|
|
78
60
|
"react": ">=18.0.0"
|
|
@@ -80,5 +62,15 @@
|
|
|
80
62
|
"publishConfig": {
|
|
81
63
|
"access": "public"
|
|
82
64
|
},
|
|
83
|
-
"
|
|
84
|
-
|
|
65
|
+
"sideEffects": false,
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "pnpm run /^build:/",
|
|
68
|
+
"build:esm": "tsc --build tsconfig.build.esm.json",
|
|
69
|
+
"build:webpack": "webpack",
|
|
70
|
+
"clean": "rimraf esm *.tsbuildinfo",
|
|
71
|
+
"storybook": "storybook dev --port 6006",
|
|
72
|
+
"storybook:build": "storybook build",
|
|
73
|
+
"prebuild": "pnpm clean"
|
|
74
|
+
},
|
|
75
|
+
"types": "esm/index.d.ts"
|
|
76
|
+
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
6
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
7
|
-
const embedded_core_1 = require("@jbrowse/embedded-core");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
11
|
-
const JBrowseLinearGenomeView = (0, mobx_react_1.observer)(function ({ viewState, }) {
|
|
12
|
-
const { session } = viewState;
|
|
13
|
-
const { view } = session;
|
|
14
|
-
const { pluginManager } = (0, mobx_state_tree_1.getEnv)(session);
|
|
15
|
-
const { ReactComponent } = pluginManager.getViewType(view.type);
|
|
16
|
-
const theme = (0, ui_1.createJBrowseTheme)((0, configuration_1.readConfObject)(viewState.config.configuration, 'theme'));
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.ThemeProvider, { theme: theme, children: [(0, jsx_runtime_1.jsx)(embedded_core_1.EmbeddedViewContainer, { view: view, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(ui_1.LoadingEllipses, {}), children: (0, jsx_runtime_1.jsx)(ReactComponent, { model: view, session: session }) }) }, `view-${view.id}`), (0, jsx_runtime_1.jsx)(embedded_core_1.ModalWidget, { session: session })] }));
|
|
18
|
-
});
|
|
19
|
-
exports.default = JBrowseLinearGenomeView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,77 +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
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("@testing-library/react");
|
|
8
|
-
const __1 = require("..");
|
|
9
|
-
const JBrowseLinearGenomeView_1 = __importDefault(require("./JBrowseLinearGenomeView"));
|
|
10
|
-
jest.mock('@jbrowse/react-linear-genome-view2/src/makeWorkerInstance', () => () => { });
|
|
11
|
-
const timeout = 30000;
|
|
12
|
-
const assembly = {
|
|
13
|
-
name: 'volvox',
|
|
14
|
-
sequence: {
|
|
15
|
-
type: 'ReferenceSequenceTrack',
|
|
16
|
-
trackId: 'volvox_refseq',
|
|
17
|
-
adapter: {
|
|
18
|
-
type: 'FromConfigSequenceAdapter',
|
|
19
|
-
features: [
|
|
20
|
-
{
|
|
21
|
-
refName: 'ctgA',
|
|
22
|
-
uniqueId: 'firstId',
|
|
23
|
-
start: 0,
|
|
24
|
-
end: 120,
|
|
25
|
-
seq: 'cattgttgcggagttgaacaACGGCATTAGGAACACTTCCGTCTCtcacttttatacgattatgattggttctttagccttggtttagattggtagtagtagcggcgctaatgctacctg',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const defaultSession = {
|
|
32
|
-
name: 'Test',
|
|
33
|
-
view: {
|
|
34
|
-
id: 'test_view',
|
|
35
|
-
type: 'LinearGenomeView',
|
|
36
|
-
bpPerPx: 0.05,
|
|
37
|
-
displayedRegions: [
|
|
38
|
-
{
|
|
39
|
-
refName: 'ctgA',
|
|
40
|
-
start: 0,
|
|
41
|
-
end: 120,
|
|
42
|
-
reversed: false,
|
|
43
|
-
assemblyName: 'volvox',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
tracks: [
|
|
47
|
-
{
|
|
48
|
-
type: 'ReferenceSequenceTrack',
|
|
49
|
-
configuration: 'volvox_refseq',
|
|
50
|
-
displays: [
|
|
51
|
-
{
|
|
52
|
-
type: 'LinearReferenceSequenceDisplay',
|
|
53
|
-
configuration: 'volvox_refseq-LinearReferenceSequenceDisplay',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
test('<JBrowseLinearGenomeView /> renders successfully', async () => {
|
|
61
|
-
const state = (0, __1.createViewState)({
|
|
62
|
-
assembly,
|
|
63
|
-
tracks: [],
|
|
64
|
-
defaultSession,
|
|
65
|
-
});
|
|
66
|
-
const { container, getAllByTestId, getByPlaceholderText } = (0, react_1.render)((0, jsx_runtime_1.jsx)(JBrowseLinearGenomeView_1.default, { viewState: state }));
|
|
67
|
-
const getInputValue = () => getByPlaceholderText('Search for location').value;
|
|
68
|
-
await (0, react_1.waitFor)(() => {
|
|
69
|
-
expect(getAllByTestId('sequence_track').length).toBe(2);
|
|
70
|
-
}, {
|
|
71
|
-
timeout,
|
|
72
|
-
});
|
|
73
|
-
await (0, react_1.waitFor)(() => {
|
|
74
|
-
expect(getInputValue()).toBe('ctgA:1..40');
|
|
75
|
-
}, { timeout });
|
|
76
|
-
expect(container).toMatchSnapshot();
|
|
77
|
-
}, 40000);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './JBrowseLinearGenomeView';
|
|
@@ -1,8 +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 = void 0;
|
|
7
|
-
var JBrowseLinearGenomeView_1 = require("./JBrowseLinearGenomeView");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(JBrowseLinearGenomeView_1).default; } });
|
package/dist/corePlugins.d.ts
DELETED
package/dist/corePlugins.js
DELETED
|
@@ -1,38 +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
|
-
const plugin_alignments_1 = __importDefault(require("@jbrowse/plugin-alignments"));
|
|
7
|
-
const plugin_arc_1 = __importDefault(require("@jbrowse/plugin-arc"));
|
|
8
|
-
const plugin_authentication_1 = __importDefault(require("@jbrowse/plugin-authentication"));
|
|
9
|
-
const plugin_bed_1 = __importDefault(require("@jbrowse/plugin-bed"));
|
|
10
|
-
const plugin_config_1 = __importDefault(require("@jbrowse/plugin-config"));
|
|
11
|
-
const plugin_data_management_1 = __importDefault(require("@jbrowse/plugin-data-management"));
|
|
12
|
-
const plugin_gccontent_1 = __importDefault(require("@jbrowse/plugin-gccontent"));
|
|
13
|
-
const plugin_gff3_1 = __importDefault(require("@jbrowse/plugin-gff3"));
|
|
14
|
-
const plugin_legacy_jbrowse_1 = __importDefault(require("@jbrowse/plugin-legacy-jbrowse"));
|
|
15
|
-
const plugin_linear_genome_view_1 = __importDefault(require("@jbrowse/plugin-linear-genome-view"));
|
|
16
|
-
const plugin_sequence_1 = __importDefault(require("@jbrowse/plugin-sequence"));
|
|
17
|
-
const plugin_svg_1 = __importDefault(require("@jbrowse/plugin-svg"));
|
|
18
|
-
const plugin_trix_1 = __importDefault(require("@jbrowse/plugin-trix"));
|
|
19
|
-
const plugin_variants_1 = __importDefault(require("@jbrowse/plugin-variants"));
|
|
20
|
-
const plugin_wiggle_1 = __importDefault(require("@jbrowse/plugin-wiggle"));
|
|
21
|
-
const corePlugins = [
|
|
22
|
-
plugin_svg_1.default,
|
|
23
|
-
plugin_alignments_1.default,
|
|
24
|
-
plugin_authentication_1.default,
|
|
25
|
-
plugin_bed_1.default,
|
|
26
|
-
plugin_config_1.default,
|
|
27
|
-
plugin_data_management_1.default,
|
|
28
|
-
plugin_gff3_1.default,
|
|
29
|
-
plugin_legacy_jbrowse_1.default,
|
|
30
|
-
plugin_linear_genome_view_1.default,
|
|
31
|
-
plugin_sequence_1.default,
|
|
32
|
-
plugin_variants_1.default,
|
|
33
|
-
plugin_wiggle_1.default,
|
|
34
|
-
plugin_gccontent_1.default,
|
|
35
|
-
plugin_trix_1.default,
|
|
36
|
-
plugin_arc_1.default,
|
|
37
|
-
];
|
|
38
|
-
exports.default = corePlugins;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AboutDialog as default } from '@jbrowse/product-core';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
var product_core_1 = require("@jbrowse/product-core");
|
|
5
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return product_core_1.AboutDialog; } });
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
import type { IAnyType } from 'mobx-state-tree';
|
|
3
|
-
export default function createConfigModel(pluginManager: PluginManager, assemblyConfigSchemasType: IAnyType): import("mobx-state-tree").IModelType<{
|
|
4
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
5
|
-
rpc: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
-
defaultDriver: {
|
|
7
|
-
type: string;
|
|
8
|
-
description: string;
|
|
9
|
-
defaultValue: string;
|
|
10
|
-
};
|
|
11
|
-
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]>;
|
|
12
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
13
|
-
highResolutionScaling: {
|
|
14
|
-
type: string;
|
|
15
|
-
defaultValue: number;
|
|
16
|
-
};
|
|
17
|
-
hierarchical: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
18
|
-
sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
19
|
-
trackNames: {
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue: boolean;
|
|
22
|
-
};
|
|
23
|
-
categories: {
|
|
24
|
-
type: string;
|
|
25
|
-
defaultValue: boolean;
|
|
26
|
-
};
|
|
27
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
28
|
-
defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
29
|
-
categoryNames: {
|
|
30
|
-
type: string;
|
|
31
|
-
defaultValue: never[];
|
|
32
|
-
};
|
|
33
|
-
topLevelCategories: {
|
|
34
|
-
type: string;
|
|
35
|
-
defaultValue: boolean;
|
|
36
|
-
};
|
|
37
|
-
subCategories: {
|
|
38
|
-
type: string;
|
|
39
|
-
defaultValue: boolean;
|
|
40
|
-
};
|
|
41
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
42
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
43
|
-
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
44
|
-
feature: {
|
|
45
|
-
type: string;
|
|
46
|
-
description: string;
|
|
47
|
-
defaultValue: {};
|
|
48
|
-
contextVariable: string[];
|
|
49
|
-
};
|
|
50
|
-
subfeatures: {
|
|
51
|
-
type: string;
|
|
52
|
-
description: string;
|
|
53
|
-
defaultValue: {};
|
|
54
|
-
contextVariable: string[];
|
|
55
|
-
};
|
|
56
|
-
depth: {
|
|
57
|
-
type: string;
|
|
58
|
-
defaultValue: number;
|
|
59
|
-
description: string;
|
|
60
|
-
};
|
|
61
|
-
maxDepth: {
|
|
62
|
-
type: string;
|
|
63
|
-
defaultValue: number;
|
|
64
|
-
description: string;
|
|
65
|
-
};
|
|
66
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
67
|
-
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
68
|
-
config: {
|
|
69
|
-
type: string;
|
|
70
|
-
description: string;
|
|
71
|
-
defaultValue: {};
|
|
72
|
-
contextVariable: string[];
|
|
73
|
-
};
|
|
74
|
-
hideUris: {
|
|
75
|
-
type: string;
|
|
76
|
-
defaultValue: boolean;
|
|
77
|
-
};
|
|
78
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
79
|
-
theme: {
|
|
80
|
-
type: string;
|
|
81
|
-
defaultValue: {};
|
|
82
|
-
};
|
|
83
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
-
assembly: IAnyType;
|
|
85
|
-
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
86
|
-
internetAccounts: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
87
|
-
connections: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
88
|
-
aggregateTextSearchAdapters: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
89
|
-
plugins: import("mobx-state-tree").IType<any, any, any>;
|
|
90
|
-
}, {
|
|
91
|
-
readonly assemblies: any[];
|
|
92
|
-
readonly assemblyName: string;
|
|
93
|
-
readonly rpcManager: any;
|
|
94
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,43 +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 = createConfigModel;
|
|
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
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
11
|
-
function createConfigModel(pluginManager, assemblyConfigSchemasType) {
|
|
12
|
-
return mobx_state_tree_1.types
|
|
13
|
-
.model('Configuration', {
|
|
14
|
-
configuration: (0, configuration_1.ConfigurationSchema)('Root', {
|
|
15
|
-
rpc: RpcManager_1.default.configSchema,
|
|
16
|
-
highResolutionScaling: {
|
|
17
|
-
type: 'number',
|
|
18
|
-
defaultValue: 2,
|
|
19
|
-
},
|
|
20
|
-
hierarchical: (0, product_core_1.HierarchicalConfigSchemaFactory)(),
|
|
21
|
-
formatDetails: (0, product_core_1.FormatDetailsConfigSchemaFactory)(),
|
|
22
|
-
formatAbout: (0, product_core_1.FormatAboutConfigSchemaFactory)(),
|
|
23
|
-
theme: { type: 'frozen', defaultValue: {} },
|
|
24
|
-
}),
|
|
25
|
-
assembly: assemblyConfigSchemasType,
|
|
26
|
-
tracks: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('track')),
|
|
27
|
-
internetAccounts: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('internet account')),
|
|
28
|
-
connections: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('connection')),
|
|
29
|
-
aggregateTextSearchAdapters: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('text search adapter')),
|
|
30
|
-
plugins: mobx_state_tree_1.types.frozen(),
|
|
31
|
-
})
|
|
32
|
-
.views(self => ({
|
|
33
|
-
get assemblies() {
|
|
34
|
-
return [self.assembly];
|
|
35
|
-
},
|
|
36
|
-
get assemblyName() {
|
|
37
|
-
return (0, configuration_1.readConfObject)(self.assembly, 'name');
|
|
38
|
-
},
|
|
39
|
-
get rpcManager() {
|
|
40
|
-
return (0, mobx_state_tree_1.getParent)(self).rpcManager;
|
|
41
|
-
},
|
|
42
|
-
}));
|
|
43
|
-
}
|