@jbrowse/plugin-grid-bookmark 3.5.0 → 3.6.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/dist/GridBookmarkWidget/components/BookmarkGrid.js +1 -1
- package/dist/GridBookmarkWidget/components/dialogs/ShareBookmarksDialog.js +2 -2
- package/esm/GridBookmarkWidget/components/BookmarkGrid.js +1 -1
- package/esm/GridBookmarkWidget/components/dialogs/ShareBookmarksDialog.js +1 -1
- package/package.json +5 -5
|
@@ -43,7 +43,7 @@ const BookmarkGrid = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
43
43
|
Math.max((0, util_1.measureText)('Assembly', 12) + 30, (0, util_1.measureGridWidth)(rows.map(row => row.assemblyName))),
|
|
44
44
|
100,
|
|
45
45
|
];
|
|
46
|
-
return ((0, jsx_runtime_1.jsx)(DataGridFlexContainer_1.default, { children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { density: "compact", rows: rows, columns: [
|
|
46
|
+
return ((0, jsx_runtime_1.jsx)(DataGridFlexContainer_1.default, { children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { density: "compact", disableRowSelectionOnClick: true, rows: rows, columns: [
|
|
47
47
|
{
|
|
48
48
|
...x_data_grid_1.GRID_CHECKBOX_SELECTION_COL_DEF,
|
|
49
49
|
width: widths[0],
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
-
const Icons_1 = require("@jbrowse/core/ui/Icons");
|
|
10
9
|
const util_1 = require("@jbrowse/core/util");
|
|
10
|
+
const ContentCopy_1 = __importDefault(require("@mui/icons-material/ContentCopy"));
|
|
11
11
|
const material_1 = require("@mui/material");
|
|
12
12
|
const copy_to_clipboard_1 = __importDefault(require("copy-to-clipboard"));
|
|
13
13
|
const mobx_react_1 = require("mobx-react");
|
|
@@ -68,7 +68,7 @@ const ShareBookmarksDialog = (0, mobx_react_1.observer)(function ({ onClose, mod
|
|
|
68
68
|
}, variant: "filled", fullWidth: true, onClick: event => {
|
|
69
69
|
const target = event.target;
|
|
70
70
|
target.select();
|
|
71
|
-
} })), (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: "The URL should be pasted into the \"Import from share link\" field in the \"Import\" form found in the \"Bookmarked regions\" drawer." })] }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { className: classes.flexItem, "data-testid": "dialogShare", variant: "contained", color: "primary", disabled: loading, startIcon: (0, jsx_runtime_1.jsx)(
|
|
71
|
+
} })), (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: "The URL should be pasted into the \"Import from share link\" field in the \"Import\" form found in the \"Bookmarked regions\" drawer." })] }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { className: classes.flexItem, "data-testid": "dialogShare", variant: "contained", color: "primary", disabled: loading, startIcon: (0, jsx_runtime_1.jsx)(ContentCopy_1.default, {}), onClick: async () => {
|
|
72
72
|
(0, copy_to_clipboard_1.default)(url);
|
|
73
73
|
session.notify('Copied to clipboard', 'success');
|
|
74
74
|
onClose();
|
|
@@ -38,7 +38,7 @@ const BookmarkGrid = observer(function ({ model, }) {
|
|
|
38
38
|
Math.max(measureText('Assembly', 12) + 30, measureGridWidth(rows.map(row => row.assemblyName))),
|
|
39
39
|
100,
|
|
40
40
|
];
|
|
41
|
-
return (_jsx(DataGridFlexContainer, { children: _jsx(DataGrid, { density: "compact", rows: rows, columns: [
|
|
41
|
+
return (_jsx(DataGridFlexContainer, { children: _jsx(DataGrid, { density: "compact", disableRowSelectionOnClick: true, rows: rows, columns: [
|
|
42
42
|
{
|
|
43
43
|
...GRID_CHECKBOX_SELECTION_COL_DEF,
|
|
44
44
|
width: widths[0],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { Dialog, ErrorMessage } from '@jbrowse/core/ui';
|
|
4
|
-
import { ContentCopy as ContentCopyIcon } from '@jbrowse/core/ui/Icons';
|
|
5
4
|
import { getSession, isSessionWithShareURL } from '@jbrowse/core/util';
|
|
5
|
+
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
|
|
6
6
|
import { Alert, Button, DialogActions, DialogContent, DialogContentText, TextField, Typography, } from '@mui/material';
|
|
7
7
|
import copy from 'copy-to-clipboard';
|
|
8
8
|
import { observer } from 'mobx-react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-grid-bookmark",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "JBrowse 2 grid bookmark widget",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jbrowse/core": "^3.
|
|
40
|
-
"@jbrowse/plugin-config": "^3.
|
|
41
|
-
"@jbrowse/plugin-linear-genome-view": "^3.
|
|
39
|
+
"@jbrowse/core": "^3.6.0",
|
|
40
|
+
"@jbrowse/plugin-config": "^3.6.0",
|
|
41
|
+
"@jbrowse/plugin-linear-genome-view": "^3.6.0",
|
|
42
42
|
"@mui/icons-material": "^7.0.0",
|
|
43
43
|
"@mui/material": "^7.0.0",
|
|
44
44
|
"@mui/x-data-grid": "^8.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"distModule": "esm/index.js",
|
|
60
60
|
"srcModule": "src/index.ts",
|
|
61
61
|
"module": "esm/index.js",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "133a68815ab348d156c18d83cffc997356c3cfbb"
|
|
63
63
|
}
|