@jbrowse/embedded-core 2.6.3 → 2.7.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/dist/ui/ModalWidget.d.ts +2 -2
- package/dist/ui/ModalWidget.js +2 -1
- package/dist/ui/ViewMenu.d.ts +1 -1
- package/dist/ui/ViewMenu.js +1 -1
- package/dist/ui/ViewTitle.d.ts +2 -2
- package/dist/ui/ViewTitle.js +2 -1
- package/esm/ui/ModalWidget.d.ts +2 -2
- package/esm/ui/ModalWidget.js +2 -1
- package/esm/ui/ViewMenu.d.ts +1 -1
- package/esm/ui/ViewMenu.js +1 -1
- package/esm/ui/ViewTitle.d.ts +2 -2
- package/esm/ui/ViewTitle.js +2 -1
- package/package.json +7 -8
package/dist/ui/ModalWidget.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SessionWithWidgets } from '@jbrowse/core/util';
|
|
3
|
-
declare const
|
|
3
|
+
declare const ModalWidget: ({ session, }: {
|
|
4
4
|
session: SessionWithWidgets;
|
|
5
5
|
}) => React.JSX.Element | null;
|
|
6
|
-
export default
|
|
6
|
+
export default ModalWidget;
|
package/dist/ui/ModalWidget.js
CHANGED
|
@@ -34,7 +34,7 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
34
34
|
overflow: 'auto',
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
const ModalWidget = (0, mobx_react_1.observer)(function ({ session, }) {
|
|
38
38
|
const { classes } = useStyles();
|
|
39
39
|
const { visibleWidget } = session;
|
|
40
40
|
const { pluginManager } = (0, mobx_state_tree_1.getEnv)(session);
|
|
@@ -56,3 +56,4 @@ exports.default = (0, mobx_react_1.observer)(function ({ session, }) {
|
|
|
56
56
|
width: 800,
|
|
57
57
|
} })))) : null));
|
|
58
58
|
});
|
|
59
|
+
exports.default = ModalWidget;
|
package/dist/ui/ViewMenu.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconButtonProps as IconButtonPropsType, SvgIconProps } from '@mui/material';
|
|
3
3
|
import { IBaseViewModel } from '@jbrowse/core/pluggableElementTypes/models/BaseViewModel';
|
|
4
|
-
declare const ViewMenu: ({ model,
|
|
4
|
+
declare const ViewMenu: ({ model, IconProps, }: {
|
|
5
5
|
model: IBaseViewModel;
|
|
6
6
|
IconButtonProps: IconButtonPropsType;
|
|
7
7
|
IconProps: SvgIconProps;
|
package/dist/ui/ViewMenu.js
CHANGED
|
@@ -8,7 +8,7 @@ const CascadingMenuButton_1 = __importDefault(require("@jbrowse/core/ui/Cascadin
|
|
|
8
8
|
const mobx_react_1 = require("mobx-react");
|
|
9
9
|
// icons
|
|
10
10
|
const Menu_1 = __importDefault(require("@mui/icons-material/Menu"));
|
|
11
|
-
const ViewMenu = (0, mobx_react_1.observer)(function ({ model,
|
|
11
|
+
const ViewMenu = (0, mobx_react_1.observer)(function ({ model, IconProps, }) {
|
|
12
12
|
const items = model.menuItems();
|
|
13
13
|
return items.length ? (react_1.default.createElement(CascadingMenuButton_1.default, { menuItems: items, "data-testid": "view_menu_icon" },
|
|
14
14
|
react_1.default.createElement(Menu_1.default, { ...IconProps }))) : null;
|
package/dist/ui/ViewTitle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseViewModel } from '@jbrowse/core/pluggableElementTypes/models/BaseViewModel';
|
|
3
|
-
declare const
|
|
3
|
+
declare const ViewTitle: ({ view }: {
|
|
4
4
|
view: IBaseViewModel;
|
|
5
5
|
}) => React.JSX.Element;
|
|
6
|
-
export default
|
|
6
|
+
export default ViewTitle;
|
package/dist/ui/ViewTitle.js
CHANGED
|
@@ -55,7 +55,7 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
}));
|
|
58
|
-
|
|
58
|
+
const ViewTitle = (0, mobx_react_1.observer)(({ view }) => {
|
|
59
59
|
const { classes } = useStyles();
|
|
60
60
|
const { displayName } = view;
|
|
61
61
|
const [dlgOpen, setDlgOpen] = (0, react_1.useState)(false);
|
|
@@ -74,3 +74,4 @@ exports.default = (0, mobx_react_1.observer)(({ view }) => {
|
|
|
74
74
|
dlgOpen ? (react_1.default.createElement(react_1.Suspense, { fallback: react_1.default.createElement("div", null) },
|
|
75
75
|
react_1.default.createElement(VersionAboutDialog, { open: true, onClose: () => setDlgOpen(false), version: session.version }))) : null));
|
|
76
76
|
});
|
|
77
|
+
exports.default = ViewTitle;
|
package/esm/ui/ModalWidget.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SessionWithWidgets } from '@jbrowse/core/util';
|
|
3
|
-
declare const
|
|
3
|
+
declare const ModalWidget: ({ session, }: {
|
|
4
4
|
session: SessionWithWidgets;
|
|
5
5
|
}) => React.JSX.Element | null;
|
|
6
|
-
export default
|
|
6
|
+
export default ModalWidget;
|
package/esm/ui/ModalWidget.js
CHANGED
|
@@ -9,7 +9,7 @@ const useStyles = makeStyles()({
|
|
|
9
9
|
overflow: 'auto',
|
|
10
10
|
},
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
const ModalWidget = observer(function ({ session, }) {
|
|
13
13
|
const { classes } = useStyles();
|
|
14
14
|
const { visibleWidget } = session;
|
|
15
15
|
const { pluginManager } = getEnv(session);
|
|
@@ -31,3 +31,4 @@ export default observer(function ({ session, }) {
|
|
|
31
31
|
width: 800,
|
|
32
32
|
} })))) : null));
|
|
33
33
|
});
|
|
34
|
+
export default ModalWidget;
|
package/esm/ui/ViewMenu.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconButtonProps as IconButtonPropsType, SvgIconProps } from '@mui/material';
|
|
3
3
|
import { IBaseViewModel } from '@jbrowse/core/pluggableElementTypes/models/BaseViewModel';
|
|
4
|
-
declare const ViewMenu: ({ model,
|
|
4
|
+
declare const ViewMenu: ({ model, IconProps, }: {
|
|
5
5
|
model: IBaseViewModel;
|
|
6
6
|
IconButtonProps: IconButtonPropsType;
|
|
7
7
|
IconProps: SvgIconProps;
|
package/esm/ui/ViewMenu.js
CHANGED
|
@@ -3,7 +3,7 @@ import CascadingMenuButton from '@jbrowse/core/ui/CascadingMenuButton';
|
|
|
3
3
|
import { observer } from 'mobx-react';
|
|
4
4
|
// icons
|
|
5
5
|
import MenuIcon from '@mui/icons-material/Menu';
|
|
6
|
-
const ViewMenu = observer(function ({ model,
|
|
6
|
+
const ViewMenu = observer(function ({ model, IconProps, }) {
|
|
7
7
|
const items = model.menuItems();
|
|
8
8
|
return items.length ? (React.createElement(CascadingMenuButton, { menuItems: items, "data-testid": "view_menu_icon" },
|
|
9
9
|
React.createElement(MenuIcon, { ...IconProps }))) : null;
|
package/esm/ui/ViewTitle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseViewModel } from '@jbrowse/core/pluggableElementTypes/models/BaseViewModel';
|
|
3
|
-
declare const
|
|
3
|
+
declare const ViewTitle: ({ view }: {
|
|
4
4
|
view: IBaseViewModel;
|
|
5
5
|
}) => React.JSX.Element;
|
|
6
|
-
export default
|
|
6
|
+
export default ViewTitle;
|
package/esm/ui/ViewTitle.js
CHANGED
|
@@ -27,7 +27,7 @@ const useStyles = makeStyles()(theme => ({
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
}));
|
|
30
|
-
|
|
30
|
+
const ViewTitle = observer(({ view }) => {
|
|
31
31
|
const { classes } = useStyles();
|
|
32
32
|
const { displayName } = view;
|
|
33
33
|
const [dlgOpen, setDlgOpen] = useState(false);
|
|
@@ -46,3 +46,4 @@ export default observer(({ view }) => {
|
|
|
46
46
|
dlgOpen ? (React.createElement(Suspense, { fallback: React.createElement("div", null) },
|
|
47
47
|
React.createElement(VersionAboutDialog, { open: true, onClose: () => setDlgOpen(false), version: session.version }))) : null));
|
|
48
48
|
});
|
|
49
|
+
export default ViewTitle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/embedded-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "JBrowse 2 code shared between embedded products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -42,24 +42,23 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@babel/runtime": "^7.16.3",
|
|
45
|
-
"@jbrowse/product-core": "^2.
|
|
45
|
+
"@jbrowse/product-core": "^2.7.1",
|
|
46
46
|
"@mui/icons-material": "^5.0.0",
|
|
47
47
|
"@mui/material": "^5.10.17",
|
|
48
48
|
"copy-to-clipboard": "^3.3.1",
|
|
49
|
-
"react-error-boundary": "^4.0.3"
|
|
50
|
-
"shortid": "^2.2.15"
|
|
49
|
+
"react-error-boundary": "^4.0.3"
|
|
51
50
|
},
|
|
52
51
|
"peerDependencies": {
|
|
53
52
|
"mobx": "^6.0.0",
|
|
54
|
-
"mobx-react": "^
|
|
53
|
+
"mobx-react": "^9.0.0",
|
|
55
54
|
"mobx-state-tree": "^5.0.0",
|
|
56
|
-
"react": "
|
|
57
|
-
"react-dom": "
|
|
55
|
+
"react": ">=17.0.0",
|
|
56
|
+
"react-dom": ">=17.0.0",
|
|
58
57
|
"rxjs": "^7.0.0",
|
|
59
58
|
"tss-react": "^4.0.0"
|
|
60
59
|
},
|
|
61
60
|
"publishConfig": {
|
|
62
61
|
"access": "public"
|
|
63
62
|
},
|
|
64
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "2cda1611eebd12517f2a3cfc1b612face27005d4"
|
|
65
64
|
}
|