@jbrowse/plugin-grid-bookmark 1.4.1 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-grid-bookmark",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "JBrowse 2 grid bookmark widget",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -35,14 +35,16 @@
35
35
  "useSrc": "node ../../scripts/useSrc.js"
36
36
  },
37
37
  "dependencies": {
38
- "@material-ui/icons": "^4.9.1"
38
+ "@material-ui/icons": "^4.9.1",
39
+ "file-saver": "^2.0.0"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "@jbrowse/core": "^1.0.0",
42
43
  "@jbrowse/plugin-config": "^1.0.0",
44
+ "@jbrowse/plugin-linear-genome-view": "^1.4.4",
43
45
  "@material-ui/core": "^4.9.13",
44
- "@material-ui/data-grid": "^4.0.0-alpha.37",
45
46
  "@material-ui/lab": "^4.0.0-alpha.45",
47
+ "@mui/x-data-grid": "^4.0.1",
46
48
  "mobx-react": "^6.0.0",
47
49
  "mobx-state-tree": "3.14.1",
48
50
  "prop-types": "^15.0.0",
@@ -51,5 +53,5 @@
51
53
  "publishConfig": {
52
54
  "access": "public"
53
55
  },
54
- "gitHead": "42c7e1b98bb0d16fa440a8a8f500a1030607f16c"
56
+ "gitHead": "542025578a39bd170c8a166f2568ee7edbd54072"
55
57
  }
@@ -8,10 +8,10 @@ import GridBookmarkWidget from './GridBookmarkWidget'
8
8
 
9
9
  // need to mock out data grid and force all columns to render
10
10
  // https://github.com/mui-org/material-ui-x/issues/1151
11
- jest.mock('@material-ui/data-grid', () => {
12
- const { DataGrid } = jest.requireActual('@material-ui/data-grid')
11
+ jest.mock('@mui/x-data-grid', () => {
12
+ const { DataGrid } = jest.requireActual('@mui/x-data-grid')
13
13
  return {
14
- ...jest.requireActual('@material-ui/data-grid'),
14
+ ...jest.requireActual('@mui/x-data-grid'),
15
15
  DataGrid: props => {
16
16
  return <DataGrid {...props} columnBuffer={6} />
17
17
  },
@@ -7,7 +7,7 @@ import {
7
7
  Button,
8
8
  makeStyles,
9
9
  } from '@material-ui/core'
10
- import { DataGrid, GridCellParams } from '@material-ui/data-grid'
10
+ import { DataGrid, GridCellParams } from '@mui/x-data-grid'
11
11
  import { getSession, assembleLocString, measureText } from '@jbrowse/core/util'
12
12
  import DeleteIcon from '@material-ui/icons/Delete'
13
13
  import ViewCompactIcon from '@material-ui/icons/ViewCompact'
@@ -45,7 +45,7 @@ function ImportBookmarks({
45
45
  const { assemblyNames } = session
46
46
  const [dialogOpen, setDialogOpen] = useState(false)
47
47
  const [location, setLocation] = useState<FileLocation>()
48
- const [error, setError] = useState<Error>()
48
+ const [error, setError] = useState<unknown>()
49
49
  const [selectedAsm, setSelectedAsm] = useState(
50
50
  assemblyName || assemblyNames[0],
51
51
  )