@jbrowse/embedded-core 3.5.0 → 3.5.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.
@@ -5,13 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const jsx_runtime_1 = require("react/jsx-runtime");
7
7
  const ui_1 = require("@jbrowse/core/ui");
8
+ const hooks_1 = require("@jbrowse/core/ui/hooks");
8
9
  const Menu_1 = __importDefault(require("@mui/icons-material/Menu"));
9
10
  const material_1 = require("@mui/material");
10
- const hooks_1 = require("material-ui-popup-state/hooks");
11
11
  const mobx_react_1 = require("mobx-react");
12
12
  const ViewMenu = (0, mobx_react_1.observer)(function ({ model, IconButtonProps, IconProps, }) {
13
13
  const popupState = (0, hooks_1.usePopupState)({
14
- popupId: 'viewMenu',
15
14
  variant: 'popover',
16
15
  });
17
16
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { ...IconButtonProps, ...(0, hooks_1.bindTrigger)(popupState), "data-testid": "view_menu_icon", children: (0, jsx_runtime_1.jsx)(Menu_1.default, { ...IconProps }) }), (0, jsx_runtime_1.jsx)(ui_1.CascadingMenu, { ...(0, hooks_1.bindPopover)(popupState), onMenuItemClick: (_event, callback) => {
@@ -1,12 +1,11 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CascadingMenu } from '@jbrowse/core/ui';
3
+ import { bindPopover, bindTrigger, usePopupState } from '@jbrowse/core/ui/hooks';
3
4
  import MenuIcon from '@mui/icons-material/Menu';
4
5
  import { IconButton } from '@mui/material';
5
- import { bindPopover, bindTrigger, usePopupState, } from 'material-ui-popup-state/hooks';
6
6
  import { observer } from 'mobx-react';
7
7
  const ViewMenu = observer(function ({ model, IconButtonProps, IconProps, }) {
8
8
  const popupState = usePopupState({
9
- popupId: 'viewMenu',
10
9
  variant: 'popover',
11
10
  });
12
11
  return (_jsxs(_Fragment, { children: [_jsx(IconButton, { ...IconButtonProps, ...bindTrigger(popupState), "data-testid": "view_menu_icon", children: _jsx(MenuIcon, { ...IconProps }) }), _jsx(CascadingMenu, { ...bindPopover(popupState), onMenuItemClick: (_event, callback) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/embedded-core",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "JBrowse 2 code shared between embedded products",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -42,8 +42,8 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@babel/runtime": "^7.16.3",
45
- "@jbrowse/core": "^3.5.0",
46
- "@jbrowse/product-core": "^3.5.0",
45
+ "@jbrowse/core": "^3.5.1",
46
+ "@jbrowse/product-core": "^3.5.1",
47
47
  "@mui/icons-material": "^7.0.0",
48
48
  "@mui/material": "^7.0.0",
49
49
  "copy-to-clipboard": "^3.3.1",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "8a8aa0aab2229dece106a5715a767e649e2fe92b"
63
+ "gitHead": "cb8859da9d838ad2594964777c5c54f385d98f5e"
64
64
  }