jbrowse-plugin-msaview 2.0.4 → 2.0.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.
Files changed (59) hide show
  1. package/dist/AddHighlightModel/GenomeMouseoverHighlight.js +1 -1
  2. package/dist/AddHighlightModel/GenomeMouseoverHighlight.js.map +1 -1
  3. package/dist/AddHighlightModel/HighlightComponents.js +1 -1
  4. package/dist/AddHighlightModel/HighlightComponents.js.map +1 -1
  5. package/dist/AddHighlightModel/MsaToGenomeHighlight.js +2 -1
  6. package/dist/AddHighlightModel/MsaToGenomeHighlight.js.map +1 -1
  7. package/dist/AddHighlightModel/index.js.map +1 -1
  8. package/dist/AddHighlightModel/util.d.ts +2 -2
  9. package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js +1 -1
  10. package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js.map +1 -1
  11. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.js +5 -5
  12. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.js.map +1 -1
  13. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.js.map +1 -1
  14. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.js +1 -1
  15. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.js.map +1 -1
  16. package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js +3 -3
  17. package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js.map +1 -1
  18. package/dist/LaunchMsaView/components/TabUtils.js.map +1 -1
  19. package/dist/LaunchMsaView/index.js +2 -2
  20. package/dist/LaunchMsaView/index.js.map +1 -1
  21. package/dist/MsaViewPanel/components/LoadingBLAST.js +1 -1
  22. package/dist/MsaViewPanel/components/LoadingBLAST.js.map +1 -1
  23. package/dist/MsaViewPanel/components/MsaViewPanel.js.map +1 -1
  24. package/dist/MsaViewPanel/components/RIDLink.js.map +1 -1
  25. package/dist/MsaViewPanel/doLaunchBlast.js +1 -1
  26. package/dist/MsaViewPanel/doLaunchBlast.js.map +1 -1
  27. package/dist/MsaViewPanel/genomeToMSA.js.map +1 -1
  28. package/dist/MsaViewPanel/index.js.map +1 -1
  29. package/dist/MsaViewPanel/model.d.ts +23 -28
  30. package/dist/MsaViewPanel/model.js +4 -4
  31. package/dist/MsaViewPanel/model.js.map +1 -1
  32. package/dist/OpenInNewIcon.js.map +1 -1
  33. package/dist/TextField2.js.map +1 -1
  34. package/dist/index.js +2 -2
  35. package/dist/index.js.map +1 -1
  36. package/dist/jbrowse-plugin-msaview.umd.production.min.js +84 -30
  37. package/dist/jbrowse-plugin-msaview.umd.production.min.js.map +4 -4
  38. package/package.json +19 -17
  39. package/src/AddHighlightModel/GenomeMouseoverHighlight.tsx +4 -2
  40. package/src/AddHighlightModel/HighlightComponents.tsx +3 -2
  41. package/src/AddHighlightModel/MsaToGenomeHighlight.tsx +5 -4
  42. package/src/AddHighlightModel/index.tsx +1 -0
  43. package/src/LaunchMsaView/components/LaunchMsaViewDialog.tsx +3 -2
  44. package/src/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.tsx +10 -9
  45. package/src/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.ts +1 -0
  46. package/src/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.ts +1 -1
  47. package/src/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.tsx +13 -12
  48. package/src/LaunchMsaView/components/TabUtils.tsx +1 -0
  49. package/src/LaunchMsaView/index.ts +5 -4
  50. package/src/MsaViewPanel/components/LoadingBLAST.tsx +4 -2
  51. package/src/MsaViewPanel/components/MsaViewPanel.tsx +1 -0
  52. package/src/MsaViewPanel/components/RIDLink.tsx +2 -0
  53. package/src/MsaViewPanel/doLaunchBlast.ts +3 -3
  54. package/src/MsaViewPanel/genomeToMSA.ts +2 -1
  55. package/src/MsaViewPanel/index.ts +1 -0
  56. package/src/MsaViewPanel/model.ts +6 -5
  57. package/src/OpenInNewIcon.tsx +1 -0
  58. package/src/TextField2.tsx +1 -0
  59. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.4",
2
+ "version": "2.0.5",
3
3
  "license": "MIT",
4
4
  "name": "jbrowse-plugin-msaview",
5
5
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "scripts": {
26
26
  "clean": "rimraf dist",
27
- "start": "node esbuild.mjs",
27
+ "start": "node esbuild-watch.mjs",
28
28
  "format": "prettier --write .",
29
29
  "build": "tsc && NODE_ENV=production node esbuild.mjs",
30
30
  "prebuild": "npm run clean",
@@ -36,37 +36,39 @@
36
36
  "name": "MsaView"
37
37
  },
38
38
  "dependencies": {
39
+ "@emotion/styled": "^11.14.0",
39
40
  "g2p_mapper": "^1.0.4",
40
41
  "pako": "^2.1.0",
41
- "react-msaview": "^3.0.3"
42
+ "react-msaview": "^4.0.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@emotion/react": "^11.10.4",
45
46
  "@fal-works/esbuild-plugin-global-externals": "^2.1.2",
46
- "@jbrowse/core": "^2.10.1",
47
- "@jbrowse/plugin-linear-genome-view": "^2.7.0",
48
- "@mui/icons-material": "^5.15.6",
49
- "@mui/material": "^5.14.12",
50
- "@mui/system": "^5.14.12",
51
- "@mui/x-data-grid": "^7.13.0",
52
- "@types/node": "^20.8.6",
47
+ "@jbrowse/core": "^3.0.1",
48
+ "@jbrowse/plugin-linear-genome-view": "^3.0.1",
49
+ "@mui/icons-material": "^7.1.0",
50
+ "@mui/material": "^7.1.0",
51
+ "@mui/system": "^7.1.0",
52
+ "@mui/x-data-grid": "^8.2.0",
53
+ "@types/node": "^22.10.7",
53
54
  "@types/pako": "^2.0.1",
54
- "@types/react": "^18.2.28",
55
+ "@types/react": "^19.0.7",
55
56
  "@typescript-eslint/eslint-plugin": "^8.0.1",
56
57
  "@typescript-eslint/parser": "^8.0.1",
57
- "esbuild": "^0.23.0",
58
+ "esbuild": "^0.25.4",
58
59
  "eslint": "^9.0.0",
60
+ "eslint-plugin-import": "^2.31.0",
59
61
  "eslint-plugin-react": "^7.20.3",
60
- "eslint-plugin-react-hooks": "next",
62
+ "eslint-plugin-react-hooks": "^5.0.0",
61
63
  "eslint-plugin-react-refresh": "^0.4.9",
62
- "eslint-plugin-unicorn": "^55.0.0",
64
+ "eslint-plugin-unicorn": "^59.0.1",
63
65
  "mobx": "^6.10.2",
64
66
  "mobx-react": "^9.0.1",
65
67
  "mobx-state-tree": "^5.3.0",
66
68
  "prettier": "^3.0.3",
67
- "pretty-bytes": "^6.1.1",
68
- "react": "^18.2.0",
69
- "react-dom": "^18.2.0",
69
+ "pretty-bytes": "^7.0.0",
70
+ "react": "^19.0.0",
71
+ "react-dom": "^19.0.0",
70
72
  "rimraf": "^6.0.0",
71
73
  "rxjs": "^7.8.1",
72
74
  "tss-react": "^4.9.2",
@@ -1,7 +1,9 @@
1
1
  import React from 'react'
2
- import { observer } from 'mobx-react'
3
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
2
+
4
3
  import { getSession } from '@jbrowse/core/util'
4
+ import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
5
+ import { observer } from 'mobx-react'
6
+
5
7
  import { useStyles } from './util'
6
8
 
7
9
  const GenomeMouseoverHighlight = observer(function GenomeMouseoverHighlight2({
@@ -1,10 +1,11 @@
1
1
  import React from 'react'
2
- import { observer } from 'mobx-react'
2
+
3
3
  import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
4
+ import { observer } from 'mobx-react'
4
5
 
5
6
  // locals
6
- import MsaToGenomeHighlight from './MsaToGenomeHighlight'
7
7
  import GenomeMouseoverHighlight from './GenomeMouseoverHighlight'
8
+ import MsaToGenomeHighlight from './MsaToGenomeHighlight'
8
9
 
9
10
  type LGV = LinearGenomeViewModel
10
11
 
@@ -1,13 +1,14 @@
1
1
  import React from 'react'
2
- import { observer } from 'mobx-react'
3
- import { getSession } from '@jbrowse/core/util'
4
2
 
5
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
6
3
  import { Assembly } from '@jbrowse/core/assemblyManager/assembly'
4
+ import { getSession } from '@jbrowse/core/util'
5
+ import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
6
+ import { observer } from 'mobx-react'
7
+
7
8
 
8
9
  // locals
9
- import { JBrowsePluginMsaViewModel } from '../MsaViewPanel/model'
10
10
  import { useStyles } from './util'
11
+ import { JBrowsePluginMsaViewModel } from '../MsaViewPanel/model'
11
12
 
12
13
  type LGV = LinearGenomeViewModel
13
14
 
@@ -1,4 +1,5 @@
1
1
  import React from 'react'
2
+
2
3
  import PluginManager from '@jbrowse/core/PluginManager'
3
4
  import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
4
5
 
@@ -1,13 +1,14 @@
1
1
  import React, { useState } from 'react'
2
+
2
3
  import { Dialog } from '@jbrowse/core/ui'
3
- import { Box, Tab, Tabs } from '@mui/material'
4
4
  import { AbstractTrackModel, Feature } from '@jbrowse/core/util'
5
+ import { Box, Tab, Tabs } from '@mui/material'
5
6
 
6
7
  // locals
7
8
 
8
- import CustomTabPanel from './TabUtils'
9
9
  import NewNcbiBlastQueryPanel from './NewNCBIBlastQuery'
10
10
  import PreLoadedMSA from './PreLoadedMSA/PreLoadedMSADataPanel'
11
+ import CustomTabPanel from './TabUtils'
11
12
  import { a11yProps } from './tabUtil'
12
13
 
13
14
  export default function LaunchProteinViewDialog({
@@ -1,26 +1,27 @@
1
1
  import React, { useState } from 'react'
2
- import { observer } from 'mobx-react'
3
- import { Button, DialogActions, DialogContent, MenuItem } from '@mui/material'
4
- import { makeStyles } from 'tss-react/mui'
2
+
3
+ import { ErrorMessage } from '@jbrowse/core/ui'
5
4
  import {
6
5
  AbstractTrackModel,
7
6
  Feature,
8
7
  getContainingView,
9
8
  } from '@jbrowse/core/util'
10
- import { ErrorMessage } from '@jbrowse/core/ui'
11
9
  import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
10
+ import { Button, DialogActions, DialogContent, MenuItem } from '@mui/material'
11
+ import { observer } from 'mobx-react'
12
+ import { makeStyles } from 'tss-react/mui'
12
13
 
13
14
  // locals
15
+ import { getProteinSequence } from './calculateProteinSequence'
16
+ import { ncbiBlastLaunchView } from './ncbiBlastLaunchView'
17
+ import { useFeatureSequence } from './useFeatureSequence'
18
+ import TextField2 from '../../../TextField2'
14
19
  import {
20
+ getGeneDisplayName,
15
21
  getId,
16
22
  getTranscriptDisplayName,
17
23
  getTranscriptFeatures,
18
- getGeneDisplayName,
19
24
  } from '../../util'
20
- import { getProteinSequence } from './calculateProteinSequence'
21
- import { useFeatureSequence } from './useFeatureSequence'
22
- import TextField2 from '../../../TextField2'
23
- import { ncbiBlastLaunchView } from './ncbiBlastLaunchView'
24
25
 
25
26
  const useStyles = makeStyles()({
26
27
  dialogContent: {
@@ -1,5 +1,6 @@
1
1
  import { Feature, getSession } from '@jbrowse/core/util'
2
2
  import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
3
+
3
4
  // locals
4
5
  import { JBrowsePluginMsaViewModel } from '../../../MsaViewPanel/model'
5
6
 
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useState } from 'react'
2
2
 
3
- import { AbstractSessionModel, Feature, getSession } from '@jbrowse/core/util'
4
3
  import { getConf } from '@jbrowse/core/configuration'
4
+ import { AbstractSessionModel, Feature, getSession } from '@jbrowse/core/util'
5
5
 
6
6
  export interface SeqState {
7
7
  seq: string
@@ -1,6 +1,13 @@
1
1
  import React, { useEffect, useState } from 'react'
2
- import { observer } from 'mobx-react'
2
+
3
3
  import { ErrorMessage } from '@jbrowse/core/ui'
4
+ import {
5
+ AbstractTrackModel,
6
+ Feature,
7
+ getContainingView,
8
+ getSession,
9
+ } from '@jbrowse/core/util'
10
+ import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
4
11
  import {
5
12
  Button,
6
13
  DialogActions,
@@ -9,24 +16,18 @@ import {
9
16
  TextField,
10
17
  Typography,
11
18
  } from '@mui/material'
12
- import {
13
- AbstractTrackModel,
14
- Feature,
15
- getContainingView,
16
- getSession,
17
- } from '@jbrowse/core/util'
19
+ import { observer } from 'mobx-react'
18
20
  import { makeStyles } from 'tss-react/mui'
19
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
20
21
 
21
22
  // locals
23
+ import { fetchGeneList } from './fetchGeneList'
24
+ import { preCalculatedLaunchView } from './preCalculatedLaunchView'
22
25
  import {
23
- getTranscriptDisplayName,
26
+ getGeneDisplayName,
24
27
  getId,
28
+ getTranscriptDisplayName,
25
29
  getTranscriptFeatures,
26
- getGeneDisplayName,
27
30
  } from '../../util'
28
- import { fetchGeneList } from './fetchGeneList'
29
- import { preCalculatedLaunchView } from './preCalculatedLaunchView'
30
31
 
31
32
  const useStyles = makeStyles()({
32
33
  dialogContent: {
@@ -1,4 +1,5 @@
1
1
  import React from 'react'
2
+
2
3
  import { Box } from '@mui/material'
3
4
 
4
5
  interface TabPanelProps {
@@ -1,15 +1,16 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager'
2
- import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'
3
2
  import { PluggableElementType } from '@jbrowse/core/pluggableElementTypes'
3
+ import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'
4
+ import { MenuItem } from '@jbrowse/core/ui'
5
+ import { Feature, getContainingTrack, getSession } from '@jbrowse/core/util'
6
+ import AddIcon from '@mui/icons-material/Add'
4
7
  import { IAnyModelType } from 'mobx-state-tree'
5
- import { getSession, getContainingTrack, Feature } from '@jbrowse/core/util'
6
8
 
7
9
  // icons
8
- import AddIcon from '@mui/icons-material/Add'
9
10
 
10
11
  // locals
11
12
  import LaunchMsaViewDialog from './components/LaunchMsaViewDialog'
12
- import { MenuItem } from '@jbrowse/core/ui'
13
+
13
14
 
14
15
  function isDisplay(elt: { name: string }): elt is DisplayType {
15
16
  return elt.name === 'LinearBasicDisplay'
@@ -1,9 +1,11 @@
1
1
  import React from 'react'
2
- import { JBrowsePluginMsaViewModel } from '../model'
2
+
3
+ import { ErrorMessage, LoadingEllipses } from '@jbrowse/core/ui'
3
4
  import { Typography } from '@mui/material'
4
5
  import { observer } from 'mobx-react'
5
6
  import { makeStyles } from 'tss-react/mui'
6
- import { ErrorMessage, LoadingEllipses } from '@jbrowse/core/ui'
7
+
8
+ import { JBrowsePluginMsaViewModel } from '../model'
7
9
 
8
10
  // locals
9
11
  import RIDLink from './RIDLink'
@@ -1,4 +1,5 @@
1
1
  import React from 'react'
2
+
2
3
  import { observer } from 'mobx-react'
3
4
  import { MSAView } from 'react-msaview'
4
5
 
@@ -1,5 +1,7 @@
1
1
  import React from 'react'
2
+
2
3
  import { Link, Typography } from '@mui/material'
4
+
3
5
  // locals
4
6
  import OpenInNewIcon from '../../OpenInNewIcon'
5
7
  import { BLAST_URL } from '../../utils/ncbiBlast'
@@ -1,10 +1,10 @@
1
- import { launchMSA } from '../utils/msa'
2
- import { queryBlast } from '../utils/ncbiBlast'
1
+ import { JBrowsePluginMsaViewModel } from './model'
3
2
  import {
4
3
  makeId,
5
4
  strip,
6
5
  } from '../LaunchMsaView/components/NewNCBIBlastQuery/util'
7
- import { JBrowsePluginMsaViewModel } from './model'
6
+ import { launchMSA } from '../utils/msa'
7
+ import { queryBlast } from '../utils/ncbiBlast'
8
8
 
9
9
  export async function doLaunchBlast({
10
10
  self,
@@ -1,6 +1,7 @@
1
1
  import { getSession } from '@jbrowse/core/util'
2
- import { checkHovered } from './util'
2
+
3
3
  import { JBrowsePluginMsaViewModel } from './model'
4
+ import { checkHovered } from './util'
4
5
 
5
6
  export function genomeToMSA({ model }: { model: JBrowsePluginMsaViewModel }) {
6
7
  const { hovered } = getSession(model)
@@ -1,4 +1,5 @@
1
1
  import { lazy } from 'react'
2
+
2
3
  import PluginManager from '@jbrowse/core/PluginManager'
3
4
  import ViewType from '@jbrowse/core/pluggableElementTypes/ViewType'
4
5
 
@@ -1,15 +1,16 @@
1
- import { Instance, addDisposer, cast, types } from 'mobx-state-tree'
2
- import { autorun } from 'mobx'
3
- import { MSAModelF } from 'react-msaview'
1
+ import { BaseViewModel } from '@jbrowse/core/pluggableElementTypes'
4
2
  import { Feature, getSession } from '@jbrowse/core/util'
5
3
  import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
6
- import { BaseViewModel } from '@jbrowse/core/pluggableElementTypes'
4
+ import { genomeToTranscriptSeqMapping } from 'g2p_mapper'
5
+ import { autorun } from 'mobx'
6
+ import { Instance, addDisposer, cast, types } from 'mobx-state-tree'
7
+ import { MSAModelF } from 'react-msaview'
7
8
 
8
9
  // locals
9
10
  import { doLaunchBlast } from './doLaunchBlast'
10
11
  import { genomeToMSA } from './genomeToMSA'
11
12
  import { msaCoordToGenomeCoord } from './msaCoordToGenomeCoord'
12
- import { genomeToTranscriptSeqMapping } from 'g2p_mapper'
13
+
13
14
 
14
15
  type LGV = LinearGenomeViewModel
15
16
 
@@ -1,4 +1,5 @@
1
1
  import React from 'react'
2
+
2
3
  import { SvgIcon, SvgIconProps } from '@mui/material'
3
4
 
4
5
  export default function OpenInNewIcon(props: SvgIconProps) {
@@ -1,4 +1,5 @@
1
1
  import React from 'react'
2
+
2
3
  import { TextField, TextFieldProps } from '@mui/material'
3
4
 
4
5
  function TextField2({ children, ...rest }: TextFieldProps) {
package/src/index.ts CHANGED
@@ -7,9 +7,9 @@ import GridOn from '@mui/icons-material/GridOn'
7
7
 
8
8
  // locals
9
9
  import { version } from '../package.json'
10
- import MsaViewF from './MsaViewPanel'
11
- import LaunchMsaViewF from './LaunchMsaView'
12
10
  import AddHighlightModelF from './AddHighlightModel'
11
+ import LaunchMsaViewF from './LaunchMsaView'
12
+ import MsaViewF from './MsaViewPanel'
13
13
 
14
14
  export default class MsaViewPlugin extends Plugin {
15
15
  name = 'MsaViewPlugin'