@jbrowse/product-core 2.16.0 → 2.17.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.
|
@@ -34,7 +34,9 @@ const material_1 = require("@mui/material");
|
|
|
34
34
|
const mui_1 = require("tss-react/mui");
|
|
35
35
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
36
36
|
const util_1 = require("@jbrowse/core/util");
|
|
37
|
-
const
|
|
37
|
+
const Attributes_1 = __importDefault(require("@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/Attributes"));
|
|
38
|
+
const BaseCard_1 = __importDefault(require("@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/BaseCard"));
|
|
39
|
+
// locals
|
|
38
40
|
const FileInfoPanel_1 = __importDefault(require("./FileInfoPanel"));
|
|
39
41
|
const RefNameInfoDialog_1 = __importDefault(require("./RefNameInfoDialog"));
|
|
40
42
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
@@ -74,7 +76,7 @@ const AboutDialogContents = (0, mobx_react_1.observer)(function ({ config, }) {
|
|
|
74
76
|
}, { session, config });
|
|
75
77
|
const ExtraPanel = pluginManager.evaluateExtensionPoint('Core-extraAboutPanel', null, { session, config });
|
|
76
78
|
return (react_1.default.createElement("div", { className: classes.content },
|
|
77
|
-
react_1.default.createElement(
|
|
79
|
+
react_1.default.createElement(BaseCard_1.default, { title: "Configuration" },
|
|
78
80
|
!hideUris ? (react_1.default.createElement("span", { className: classes.button },
|
|
79
81
|
react_1.default.createElement(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
80
82
|
setShowRefNames(true);
|
|
@@ -87,8 +89,8 @@ const AboutDialogContents = (0, mobx_react_1.observer)(function ({ config, }) {
|
|
|
87
89
|
setCopied(false);
|
|
88
90
|
}, 1000);
|
|
89
91
|
} }, copied ? 'Copied to clipboard!' : 'Copy config'))) : null,
|
|
90
|
-
react_1.default.createElement(
|
|
91
|
-
ExtraPanel ? (react_1.default.createElement(
|
|
92
|
+
react_1.default.createElement(Attributes_1.default, { attributes: confPostExt, omit: ['displays', 'baseUri', 'refNames', 'formatAbout'], hideUris: hideUris })),
|
|
93
|
+
ExtraPanel ? (react_1.default.createElement(BaseCard_1.default, { title: ExtraPanel.name },
|
|
92
94
|
react_1.default.createElement(ExtraPanel.Component, { config: config }))) : null,
|
|
93
95
|
react_1.default.createElement(FileInfoPanel_1.default, { config: config }),
|
|
94
96
|
showRefNames ? (react_1.default.createElement(RefNameInfoDialog_1.default, { config: config, onClose: () => {
|
package/dist/ui/FileInfoPanel.js
CHANGED
|
@@ -22,12 +22,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.default = FileInfoPanel;
|
|
27
30
|
const react_1 = __importStar(require("react"));
|
|
28
31
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
29
32
|
const util_1 = require("@jbrowse/core/util");
|
|
30
|
-
const
|
|
33
|
+
const Attributes_1 = __importDefault(require("@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/Attributes"));
|
|
34
|
+
const BaseCard_1 = __importDefault(require("@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/BaseCard"));
|
|
31
35
|
const ui_1 = require("@jbrowse/core/ui");
|
|
32
36
|
function FileInfoPanel({ config, }) {
|
|
33
37
|
const [error, setError] = (0, react_1.useState)();
|
|
@@ -58,5 +62,5 @@ function FileInfoPanel({ config, }) {
|
|
|
58
62
|
.replaceAll('>', '>')}</pre>`,
|
|
59
63
|
}
|
|
60
64
|
: info || {};
|
|
61
|
-
return (react_1.default.createElement(
|
|
65
|
+
return (react_1.default.createElement(BaseCard_1.default, { title: "File info" }, error ? (react_1.default.createElement(ui_1.ErrorMessage, { error: error })) : info === undefined ? (react_1.default.createElement(ui_1.LoadingEllipses, { message: "Loading file data" })) : (react_1.default.createElement(Attributes_1.default, { attributes: details }))));
|
|
62
66
|
}
|
|
@@ -6,7 +6,9 @@ import { Button } from '@mui/material';
|
|
|
6
6
|
import { makeStyles } from 'tss-react/mui';
|
|
7
7
|
import { getConf, readConfObject, } from '@jbrowse/core/configuration';
|
|
8
8
|
import { getSession, getEnv } from '@jbrowse/core/util';
|
|
9
|
-
import
|
|
9
|
+
import Attributes from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/Attributes';
|
|
10
|
+
import BaseCard from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/BaseCard';
|
|
11
|
+
// locals
|
|
10
12
|
import FileInfoPanel from './FileInfoPanel';
|
|
11
13
|
import RefNameInfoDialog from './RefNameInfoDialog';
|
|
12
14
|
const useStyles = makeStyles()({
|
package/esm/ui/FileInfoPanel.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { readConfObject, } from '@jbrowse/core/configuration';
|
|
3
3
|
import { getSession } from '@jbrowse/core/util';
|
|
4
|
-
import
|
|
4
|
+
import Attributes from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/Attributes';
|
|
5
|
+
import BaseCard from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/BaseCard';
|
|
5
6
|
import { ErrorMessage, LoadingEllipses } from '@jbrowse/core/ui';
|
|
6
7
|
export default function FileInfoPanel({ config, }) {
|
|
7
8
|
const [error, setError] = useState();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/product-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "JBrowse 2 code shared between products but not used by plugins",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.16.3",
|
|
46
|
-
"@jbrowse/core": "^2.
|
|
46
|
+
"@jbrowse/core": "^2.17.0",
|
|
47
47
|
"@mui/icons-material": "^6.0.0",
|
|
48
48
|
"@mui/material": "^6.0.0",
|
|
49
49
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "eed30b5e671f8f7823652d7cecc51aa89226de46"
|
|
66
66
|
}
|