@jbrowse/plugin-grid-bookmark 2.11.2 → 2.12.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.
|
@@ -37,9 +37,6 @@ const ColorPicker_1 = __importDefault(require("@jbrowse/core/ui/ColorPicker"));
|
|
|
37
37
|
const utils_1 = require("../utils");
|
|
38
38
|
const EditBookmarkLabelDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./dialogs/EditBookmarkLabelDialog'))));
|
|
39
39
|
const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
40
|
-
link: {
|
|
41
|
-
cursor: 'pointer',
|
|
42
|
-
},
|
|
43
40
|
cell: {
|
|
44
41
|
whiteSpace: 'nowrap',
|
|
45
42
|
overflow: 'hidden',
|
|
@@ -47,7 +44,7 @@ const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
|
47
44
|
},
|
|
48
45
|
}));
|
|
49
46
|
const BookmarkGrid = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
50
|
-
const { classes
|
|
47
|
+
const { classes } = useStyles();
|
|
51
48
|
const { bookmarks, bookmarksWithValidAssemblies, selectedAssemblies, selectedBookmarks, } = model;
|
|
52
49
|
const session = (0, util_1.getSession)(model);
|
|
53
50
|
const selectedSet = new Set(selectedAssemblies);
|
|
@@ -79,7 +76,7 @@ const BookmarkGrid = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
79
76
|
field: 'locString',
|
|
80
77
|
headerName: 'Bookmark link',
|
|
81
78
|
width: widths[1],
|
|
82
|
-
renderCell: ({ value, row }) => (react_1.default.createElement(material_1.Link, { className:
|
|
79
|
+
renderCell: ({ value, row }) => (react_1.default.createElement(material_1.Link, { className: classes.cell, href: "#", onClick: async (event) => {
|
|
83
80
|
event.preventDefault();
|
|
84
81
|
const { views } = session;
|
|
85
82
|
await (0, utils_1.navToBookmark)(value, row.assemblyName, views, model);
|
|
@@ -9,9 +9,6 @@ import ColorPicker from '@jbrowse/core/ui/ColorPicker';
|
|
|
9
9
|
import { navToBookmark } from '../utils';
|
|
10
10
|
const EditBookmarkLabelDialog = lazy(() => import('./dialogs/EditBookmarkLabelDialog'));
|
|
11
11
|
const useStyles = makeStyles()(() => ({
|
|
12
|
-
link: {
|
|
13
|
-
cursor: 'pointer',
|
|
14
|
-
},
|
|
15
12
|
cell: {
|
|
16
13
|
whiteSpace: 'nowrap',
|
|
17
14
|
overflow: 'hidden',
|
|
@@ -19,7 +16,7 @@ const useStyles = makeStyles()(() => ({
|
|
|
19
16
|
},
|
|
20
17
|
}));
|
|
21
18
|
const BookmarkGrid = observer(function ({ model, }) {
|
|
22
|
-
const { classes
|
|
19
|
+
const { classes } = useStyles();
|
|
23
20
|
const { bookmarks, bookmarksWithValidAssemblies, selectedAssemblies, selectedBookmarks, } = model;
|
|
24
21
|
const session = getSession(model);
|
|
25
22
|
const selectedSet = new Set(selectedAssemblies);
|
|
@@ -51,7 +48,7 @@ const BookmarkGrid = observer(function ({ model, }) {
|
|
|
51
48
|
field: 'locString',
|
|
52
49
|
headerName: 'Bookmark link',
|
|
53
50
|
width: widths[1],
|
|
54
|
-
renderCell: ({ value, row }) => (React.createElement(Link, { className:
|
|
51
|
+
renderCell: ({ value, row }) => (React.createElement(Link, { className: classes.cell, href: "#", onClick: async (event) => {
|
|
55
52
|
event.preventDefault();
|
|
56
53
|
const { views } = session;
|
|
57
54
|
await navToBookmark(value, row.assemblyName, views, model);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-grid-bookmark",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "JBrowse 2 grid bookmark widget",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -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": "935f2602d29abc737bb1f493a922b6218d023ae2"
|
|
63
63
|
}
|