@jbrowse/plugin-grid-bookmark 3.6.3 → 3.6.5
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.
|
@@ -65,7 +65,7 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
65
65
|
});
|
|
66
66
|
const GridBookmarkWidget = (0, mobx_react_1.observer)(function GridBookmarkWidget({ model, }) {
|
|
67
67
|
const { classes } = useStyles();
|
|
68
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(material_1.Alert, { severity: "info", children: ["Click and type within the ", (0, jsx_runtime_1.jsx)("strong", { children: "label" }), " field to annotate your bookmark
|
|
68
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(material_1.Alert, { severity: "info", children: ["Click and type within the ", (0, jsx_runtime_1.jsx)("strong", { children: "label" }), " field to annotate your bookmark"] }), (0, jsx_runtime_1.jsxs)("div", { className: classes.flex, children: [(0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { "data-testid": "grid_bookmark_menu", menuItems: [
|
|
69
69
|
{
|
|
70
70
|
label: 'Export',
|
|
71
71
|
icon: GetApp_1.default,
|
package/dist/index.js
CHANGED
|
@@ -138,23 +138,29 @@ class GridBookmarkPlugin extends Plugin_1.default {
|
|
|
138
138
|
},
|
|
139
139
|
};
|
|
140
140
|
})
|
|
141
|
-
.actions(self =>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
141
|
+
.actions(self => {
|
|
142
|
+
const keydownListener = (e) => {
|
|
143
|
+
const activationSequence = (e.ctrlKey || e.metaKey) && e.shiftKey;
|
|
144
|
+
if (activationSequence && e.code === 'KeyD') {
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
self.activateBookmarkWidget();
|
|
147
|
+
self.bookmarkCurrentRegion();
|
|
148
|
+
(0, util_1.getSession)(self).notify('Bookmark created.', 'success');
|
|
149
|
+
}
|
|
150
|
+
if (activationSequence && e.code === 'KeyM') {
|
|
151
|
+
e.preventDefault();
|
|
152
|
+
self.navigateNewestBookmark();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
return {
|
|
156
|
+
afterCreate() {
|
|
157
|
+
document.addEventListener('keydown', keydownListener);
|
|
158
|
+
},
|
|
159
|
+
beforeDestroy() {
|
|
160
|
+
document.removeEventListener('keydown', keydownListener);
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
});
|
|
158
164
|
pluggableElement.stateModel = newStateModel;
|
|
159
165
|
}
|
|
160
166
|
return pluggableElement;
|
|
@@ -27,7 +27,7 @@ const useStyles = makeStyles()({
|
|
|
27
27
|
});
|
|
28
28
|
const GridBookmarkWidget = observer(function GridBookmarkWidget({ model, }) {
|
|
29
29
|
const { classes } = useStyles();
|
|
30
|
-
return (_jsxs("div", { children: [_jsxs(Alert, { severity: "info", children: ["Click and type within the ", _jsx("strong", { children: "label" }), " field to annotate your bookmark
|
|
30
|
+
return (_jsxs("div", { children: [_jsxs(Alert, { severity: "info", children: ["Click and type within the ", _jsx("strong", { children: "label" }), " field to annotate your bookmark"] }), _jsxs("div", { className: classes.flex, children: [_jsx(CascadingMenuButton, { "data-testid": "grid_bookmark_menu", menuItems: [
|
|
31
31
|
{
|
|
32
32
|
label: 'Export',
|
|
33
33
|
icon: GetApp,
|
package/esm/index.js
CHANGED
|
@@ -133,23 +133,29 @@ export default class GridBookmarkPlugin extends Plugin {
|
|
|
133
133
|
},
|
|
134
134
|
};
|
|
135
135
|
})
|
|
136
|
-
.actions(self =>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
.actions(self => {
|
|
137
|
+
const keydownListener = (e) => {
|
|
138
|
+
const activationSequence = (e.ctrlKey || e.metaKey) && e.shiftKey;
|
|
139
|
+
if (activationSequence && e.code === 'KeyD') {
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
self.activateBookmarkWidget();
|
|
142
|
+
self.bookmarkCurrentRegion();
|
|
143
|
+
getSession(self).notify('Bookmark created.', 'success');
|
|
144
|
+
}
|
|
145
|
+
if (activationSequence && e.code === 'KeyM') {
|
|
146
|
+
e.preventDefault();
|
|
147
|
+
self.navigateNewestBookmark();
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
return {
|
|
151
|
+
afterCreate() {
|
|
152
|
+
document.addEventListener('keydown', keydownListener);
|
|
153
|
+
},
|
|
154
|
+
beforeDestroy() {
|
|
155
|
+
document.removeEventListener('keydown', keydownListener);
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
});
|
|
153
159
|
pluggableElement.stateModel = newStateModel;
|
|
154
160
|
}
|
|
155
161
|
return pluggableElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-grid-bookmark",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5",
|
|
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.6.
|
|
40
|
-
"@jbrowse/plugin-config": "^3.6.
|
|
41
|
-
"@jbrowse/plugin-linear-genome-view": "^3.6.
|
|
39
|
+
"@jbrowse/core": "^3.6.5",
|
|
40
|
+
"@jbrowse/plugin-config": "^3.6.5",
|
|
41
|
+
"@jbrowse/plugin-linear-genome-view": "^3.6.5",
|
|
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": "354d0a87b757b4d84f824b47507662f6f3a1693f"
|
|
63
63
|
}
|