@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/esm/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseAssemblyConfigSchema } from '@jbrowse/core/assemblyManager';
|
|
2
|
-
import type { SnapshotIn } from 'mobx-state-tree';
|
|
2
|
+
import type { SnapshotIn } from '@jbrowse/mobx-state-tree';
|
|
3
3
|
interface TextSearchAdapterConfig {
|
|
4
4
|
textSearchAdapterId: string;
|
|
5
5
|
[key: string]: unknown;
|
package/esm/util.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAnyStateTreeNode, IAnyType } from 'mobx-state-tree';
|
|
1
|
+
import type { IAnyStateTreeNode, IAnyType } from '@jbrowse/mobx-state-tree';
|
|
2
2
|
export declare function b64PadSuffix(b64: string): string;
|
|
3
3
|
export declare function fromUrlSafeB64(b64: string): Promise<string>;
|
|
4
4
|
export declare function toUrlSafeB64(str: string): Promise<string>;
|
|
5
|
-
export declare function filterSessionInPlace(node: IAnyStateTreeNode
|
|
5
|
+
export declare function filterSessionInPlace(node: IAnyStateTreeNode, type: IAnyType): void;
|
package/esm/util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getChildType, getPropertyMembers, isArrayType, isMapType, isModelType, isReferenceType, isValidReference, } from 'mobx-state-tree';
|
|
1
|
+
import { getChildType, getPropertyMembers, isArrayType, isMapType, isModelType, isReferenceType, isValidReference, } from '@jbrowse/mobx-state-tree';
|
|
2
2
|
export function b64PadSuffix(b64) {
|
|
3
3
|
let num = 0;
|
|
4
4
|
const mo = b64.length % 4;
|
|
@@ -20,16 +20,16 @@ export function b64PadSuffix(b64) {
|
|
|
20
20
|
export async function fromUrlSafeB64(b64) {
|
|
21
21
|
const originalB64 = b64PadSuffix(b64.replaceAll('-', '+').replaceAll('_', '/'));
|
|
22
22
|
const { toByteArray } = await import('base64-js');
|
|
23
|
-
const { inflate } = await import('pako');
|
|
23
|
+
const { inflate } = await import('pako-esm2');
|
|
24
24
|
const bytes = toByteArray(originalB64);
|
|
25
|
-
const inflated = inflate(bytes);
|
|
25
|
+
const inflated = inflate(bytes, undefined);
|
|
26
26
|
return new TextDecoder().decode(inflated);
|
|
27
27
|
}
|
|
28
28
|
export async function toUrlSafeB64(str) {
|
|
29
29
|
const bytes = new TextEncoder().encode(str);
|
|
30
|
-
const { deflate } = await import('pako');
|
|
30
|
+
const { deflate } = await import('pako-esm2');
|
|
31
31
|
const { fromByteArray } = await import('base64-js');
|
|
32
|
-
const deflated = deflate(bytes);
|
|
32
|
+
const deflated = deflate(bytes, undefined);
|
|
33
33
|
const encoded = fromByteArray(deflated);
|
|
34
34
|
const pos = encoded.indexOf('=');
|
|
35
35
|
return pos > 0
|
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version
|
|
1
|
+
export declare const version = "4.0.1";
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '
|
|
1
|
+
export const version = '4.0.1';
|
package/esm/webpack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { default as JBrowseApp } from './JBrowseApp';
|
|
3
|
-
export { default as createModel } from './createModel';
|
|
4
|
-
export { default as createViewState } from './createViewState';
|
|
5
|
-
export { default as loadPlugins } from './loadPlugins';
|
|
2
|
+
export { default as JBrowseApp } from './JBrowseApp/index.ts';
|
|
3
|
+
export { default as createModel } from './createModel.ts';
|
|
4
|
+
export { default as createViewState } from './createViewState.ts';
|
|
5
|
+
export { default as loadPlugins } from './loadPlugins.ts';
|
|
6
6
|
export * from 'react-dom/client';
|
|
7
7
|
export { React };
|
package/esm/webpack.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { default as JBrowseApp } from
|
|
3
|
-
export { default as createModel } from
|
|
4
|
-
export { default as createViewState } from
|
|
5
|
-
export { default as loadPlugins } from
|
|
2
|
+
export { default as JBrowseApp } from "./JBrowseApp/index.js";
|
|
3
|
+
export { default as createModel } from "./createModel.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-app2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "JBrowse 2 app React component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -15,82 +15,63 @@
|
|
|
15
15
|
"directory": "products/jbrowse-react-app"
|
|
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
|
-
"@
|
|
46
|
-
"@emotion/
|
|
47
|
-
"@emotion/
|
|
48
|
-
"@
|
|
49
|
-
"
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"@
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"@jbrowse/
|
|
59
|
-
"@jbrowse/plugin-
|
|
60
|
-
"@jbrowse/plugin-
|
|
61
|
-
"@jbrowse/plugin-
|
|
62
|
-
"@jbrowse/plugin-
|
|
63
|
-
"@jbrowse/plugin-
|
|
64
|
-
"@jbrowse/
|
|
65
|
-
"@jbrowse/plugin-
|
|
66
|
-
"@jbrowse/plugin-
|
|
67
|
-
"@jbrowse/plugin-
|
|
68
|
-
"@jbrowse/plugin-
|
|
69
|
-
"@jbrowse/plugin-
|
|
70
|
-
"@jbrowse/plugin-
|
|
71
|
-
"@jbrowse/plugin-
|
|
72
|
-
"@jbrowse/plugin-
|
|
73
|
-
"@jbrowse/plugin-
|
|
74
|
-
"@jbrowse/plugin-
|
|
75
|
-
"@jbrowse/plugin-
|
|
76
|
-
"@jbrowse/plugin-
|
|
77
|
-
"@jbrowse/plugin-
|
|
78
|
-
"@jbrowse/plugin-
|
|
79
|
-
"@jbrowse/
|
|
80
|
-
"@jbrowse/
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"pako": "^1.0.0",
|
|
91
|
-
"rxjs": "^7.0.0",
|
|
92
|
-
"tss-react": "^4.4.1",
|
|
93
|
-
"use-query-params": "^2.0.0"
|
|
30
|
+
"@emotion/cache": "^11.14.0",
|
|
31
|
+
"@emotion/react": "^11.14.0",
|
|
32
|
+
"@emotion/styled": "^11.14.1",
|
|
33
|
+
"@jbrowse/mobx-state-tree": "^5.5.0",
|
|
34
|
+
"dockview-core": "^4.13.1",
|
|
35
|
+
"@mui/icons-material": "^7.3.6",
|
|
36
|
+
"@mui/material": "^7.3.6",
|
|
37
|
+
"base64-js": "^1.5.1",
|
|
38
|
+
"@types/file-saver-es": "^2.0.3",
|
|
39
|
+
"file-saver-es": "^2.0.5",
|
|
40
|
+
"mobx": "^6.15.0",
|
|
41
|
+
"mobx-react": "^9.2.1",
|
|
42
|
+
"pako-esm2": "^2.0.2",
|
|
43
|
+
"@jbrowse/core": "^4.0.1",
|
|
44
|
+
"@jbrowse/plugin-alignments": "^4.0.1",
|
|
45
|
+
"@jbrowse/plugin-arc": "^4.0.1",
|
|
46
|
+
"@jbrowse/plugin-authentication": "^4.0.1",
|
|
47
|
+
"@jbrowse/plugin-bed": "^4.0.1",
|
|
48
|
+
"@jbrowse/plugin-breakpoint-split-view": "^4.0.1",
|
|
49
|
+
"@jbrowse/app-core": "^4.0.1",
|
|
50
|
+
"@jbrowse/plugin-canvas": "^4.0.1",
|
|
51
|
+
"@jbrowse/plugin-circular-view": "^4.0.1",
|
|
52
|
+
"@jbrowse/plugin-config": "^4.0.1",
|
|
53
|
+
"@jbrowse/plugin-data-management": "^4.0.1",
|
|
54
|
+
"@jbrowse/plugin-dotplot-view": "^4.0.1",
|
|
55
|
+
"@jbrowse/plugin-comparative-adapters": "^4.0.1",
|
|
56
|
+
"@jbrowse/plugin-gccontent": "^4.0.1",
|
|
57
|
+
"@jbrowse/plugin-gff3": "^4.0.1",
|
|
58
|
+
"@jbrowse/plugin-grid-bookmark": "^4.0.1",
|
|
59
|
+
"@jbrowse/plugin-gtf": "^4.0.1",
|
|
60
|
+
"@jbrowse/plugin-legacy-jbrowse": "^4.0.1",
|
|
61
|
+
"@jbrowse/plugin-hic": "^4.0.1",
|
|
62
|
+
"@jbrowse/plugin-linear-comparative-view": "^4.0.1",
|
|
63
|
+
"@jbrowse/plugin-linear-genome-view": "^4.0.1",
|
|
64
|
+
"@jbrowse/plugin-menus": "^4.0.1",
|
|
65
|
+
"@jbrowse/plugin-lollipop": "^4.0.1",
|
|
66
|
+
"@jbrowse/plugin-sequence": "^4.0.1",
|
|
67
|
+
"@jbrowse/plugin-rdf": "^4.0.1",
|
|
68
|
+
"@jbrowse/plugin-spreadsheet-view": "^4.0.1",
|
|
69
|
+
"@jbrowse/plugin-sv-inspector": "^4.0.1",
|
|
70
|
+
"@jbrowse/plugin-variants": "^4.0.1",
|
|
71
|
+
"@jbrowse/plugin-trix": "^4.0.1",
|
|
72
|
+
"@jbrowse/plugin-wiggle": "^4.0.1",
|
|
73
|
+
"@jbrowse/product-core": "^4.0.1",
|
|
74
|
+
"@jbrowse/web-core": "^4.0.1"
|
|
94
75
|
},
|
|
95
76
|
"peerDependencies": {
|
|
96
77
|
"react": ">=18.0.0"
|
|
@@ -98,5 +79,15 @@
|
|
|
98
79
|
"publishConfig": {
|
|
99
80
|
"access": "public"
|
|
100
81
|
},
|
|
101
|
-
"
|
|
102
|
-
|
|
82
|
+
"sideEffects": false,
|
|
83
|
+
"scripts": {
|
|
84
|
+
"build": "pnpm run /^build:/",
|
|
85
|
+
"build:esm": "tsc --build tsconfig.build.esm.json",
|
|
86
|
+
"build:webpack": "webpack",
|
|
87
|
+
"clean": "rimraf esm *.tsbuildinfo",
|
|
88
|
+
"storybook": "storybook dev --port 6006",
|
|
89
|
+
"storybook:build": "storybook build",
|
|
90
|
+
"prebuild": "pnpm clean"
|
|
91
|
+
},
|
|
92
|
+
"types": "esm/index.d.ts"
|
|
93
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { App as default } from '@jbrowse/app-core';
|
|
@@ -1,55 +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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
37
|
-
const react_1 = require("react");
|
|
38
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
39
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
40
|
-
const material_1 = require("@mui/material");
|
|
41
|
-
const mobx_react_1 = require("mobx-react");
|
|
42
|
-
const mui_1 = require("tss-react/mui");
|
|
43
|
-
const App = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./AppReExport'))));
|
|
44
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
45
|
-
avoidParentStyle: {
|
|
46
|
-
all: 'initial',
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
const JBrowseApp = (0, mobx_react_1.observer)(function ({ viewState }) {
|
|
50
|
-
const { classes } = useStyles();
|
|
51
|
-
const session = viewState.session;
|
|
52
|
-
const theme = (0, ui_1.createJBrowseTheme)((0, configuration_1.getConf)(viewState.jbrowse, 'theme'));
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(material_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)("div", { className: classes.avoidParentStyle, children: (0, jsx_runtime_1.jsx)(material_1.ScopedCssBaseline, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(ui_1.LoadingEllipses, {}), children: (0, jsx_runtime_1.jsx)(App, { session: session }) }) }) }) }));
|
|
54
|
-
});
|
|
55
|
-
exports.default = JBrowseApp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './JBrowseApp';
|
package/dist/JBrowseApp/index.js
DELETED
|
@@ -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 JBrowseApp_1 = require("./JBrowseApp");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(JBrowseApp_1).default; } });
|
|
@@ -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,14 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material';
|
|
2
|
-
declare const PreferencesDialog: ({ handleClose, session, }: {
|
|
3
|
-
handleClose: () => void;
|
|
4
|
-
session: {
|
|
5
|
-
allThemes: () => Record<string, ThemeOptions & {
|
|
6
|
-
name?: string;
|
|
7
|
-
}>;
|
|
8
|
-
themeName?: string;
|
|
9
|
-
stickyViewHeaders: boolean;
|
|
10
|
-
setStickyViewHeaders(sticky: boolean): void;
|
|
11
|
-
setThemeName: (arg: string) => void;
|
|
12
|
-
};
|
|
13
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default PreferencesDialog;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const mobx_react_1 = require("mobx-react");
|
|
7
|
-
const mui_1 = require("tss-react/mui");
|
|
8
|
-
const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
9
|
-
container: {
|
|
10
|
-
width: 800,
|
|
11
|
-
},
|
|
12
|
-
}));
|
|
13
|
-
const PreferencesDialog = (0, mobx_react_1.observer)(function ({ handleClose, session, }) {
|
|
14
|
-
const { classes } = useStyles();
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { title: "Preferences", open: true, onClose: handleClose, maxWidth: "xl", children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.container, children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { select: true, label: "Theme", value: session.themeName, onChange: event => {
|
|
16
|
-
session.setThemeName(event.target.value);
|
|
17
|
-
}, children: Object.entries(session.allThemes()).map(([key, val]) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: key, children: val.name || '(Unknown name)' }, key))) }), (0, jsx_runtime_1.jsx)(material_1.FormGroup, { children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: session.stickyViewHeaders }), onChange: (_, checked) => {
|
|
18
|
-
session.setStickyViewHeaders(checked);
|
|
19
|
-
}, label: "Keep view header visible" }) })] }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClose, children: "Close" }) })] }));
|
|
20
|
-
});
|
|
21
|
-
exports.default = PreferencesDialog;
|
package/dist/corePlugins.d.ts
DELETED
package/dist/corePlugins.js
DELETED
|
@@ -1,64 +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_breakpoint_split_view_1 = __importDefault(require("@jbrowse/plugin-breakpoint-split-view"));
|
|
11
|
-
const plugin_circular_view_1 = __importDefault(require("@jbrowse/plugin-circular-view"));
|
|
12
|
-
const plugin_comparative_adapters_1 = __importDefault(require("@jbrowse/plugin-comparative-adapters"));
|
|
13
|
-
const plugin_config_1 = __importDefault(require("@jbrowse/plugin-config"));
|
|
14
|
-
const plugin_data_management_1 = __importDefault(require("@jbrowse/plugin-data-management"));
|
|
15
|
-
const plugin_dotplot_view_1 = __importDefault(require("@jbrowse/plugin-dotplot-view"));
|
|
16
|
-
const plugin_gccontent_1 = __importDefault(require("@jbrowse/plugin-gccontent"));
|
|
17
|
-
const plugin_gff3_1 = __importDefault(require("@jbrowse/plugin-gff3"));
|
|
18
|
-
const plugin_grid_bookmark_1 = __importDefault(require("@jbrowse/plugin-grid-bookmark"));
|
|
19
|
-
const plugin_gtf_1 = __importDefault(require("@jbrowse/plugin-gtf"));
|
|
20
|
-
const plugin_hic_1 = __importDefault(require("@jbrowse/plugin-hic"));
|
|
21
|
-
const plugin_legacy_jbrowse_1 = __importDefault(require("@jbrowse/plugin-legacy-jbrowse"));
|
|
22
|
-
const plugin_linear_comparative_view_1 = __importDefault(require("@jbrowse/plugin-linear-comparative-view"));
|
|
23
|
-
const plugin_linear_genome_view_1 = __importDefault(require("@jbrowse/plugin-linear-genome-view"));
|
|
24
|
-
const plugin_lollipop_1 = __importDefault(require("@jbrowse/plugin-lollipop"));
|
|
25
|
-
const plugin_menus_1 = __importDefault(require("@jbrowse/plugin-menus"));
|
|
26
|
-
const plugin_rdf_1 = __importDefault(require("@jbrowse/plugin-rdf"));
|
|
27
|
-
const plugin_sequence_1 = __importDefault(require("@jbrowse/plugin-sequence"));
|
|
28
|
-
const plugin_spreadsheet_view_1 = __importDefault(require("@jbrowse/plugin-spreadsheet-view"));
|
|
29
|
-
const plugin_sv_inspector_1 = __importDefault(require("@jbrowse/plugin-sv-inspector"));
|
|
30
|
-
const plugin_svg_1 = __importDefault(require("@jbrowse/plugin-svg"));
|
|
31
|
-
const plugin_trix_1 = __importDefault(require("@jbrowse/plugin-trix"));
|
|
32
|
-
const plugin_variants_1 = __importDefault(require("@jbrowse/plugin-variants"));
|
|
33
|
-
const plugin_wiggle_1 = __importDefault(require("@jbrowse/plugin-wiggle"));
|
|
34
|
-
const corePlugins = [
|
|
35
|
-
plugin_svg_1.default,
|
|
36
|
-
plugin_linear_genome_view_1.default,
|
|
37
|
-
plugin_alignments_1.default,
|
|
38
|
-
plugin_authentication_1.default,
|
|
39
|
-
plugin_bed_1.default,
|
|
40
|
-
plugin_circular_view_1.default,
|
|
41
|
-
plugin_config_1.default,
|
|
42
|
-
plugin_data_management_1.default,
|
|
43
|
-
plugin_dotplot_view_1.default,
|
|
44
|
-
plugin_gtf_1.default,
|
|
45
|
-
plugin_gff3_1.default,
|
|
46
|
-
plugin_legacy_jbrowse_1.default,
|
|
47
|
-
plugin_linear_comparative_view_1.default,
|
|
48
|
-
plugin_lollipop_1.default,
|
|
49
|
-
plugin_menus_1.default,
|
|
50
|
-
plugin_rdf_1.default,
|
|
51
|
-
plugin_sequence_1.default,
|
|
52
|
-
plugin_variants_1.default,
|
|
53
|
-
plugin_wiggle_1.default,
|
|
54
|
-
plugin_gccontent_1.default,
|
|
55
|
-
plugin_spreadsheet_view_1.default,
|
|
56
|
-
plugin_sv_inspector_1.default,
|
|
57
|
-
plugin_breakpoint_split_view_1.default,
|
|
58
|
-
plugin_hic_1.default,
|
|
59
|
-
plugin_trix_1.default,
|
|
60
|
-
plugin_grid_bookmark_1.default,
|
|
61
|
-
plugin_comparative_adapters_1.default,
|
|
62
|
-
plugin_arc_1.default,
|
|
63
|
-
];
|
|
64
|
-
exports.default = corePlugins;
|