@jbrowse/app-core 2.6.1 → 2.6.3
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/HistoryManagement/index.js +5 -2
- package/dist/JBrowseConfig/index.d.ts +29 -18
- package/dist/JBrowseConfig/index.js +8 -47
- package/dist/JBrowseModel/index.d.ts +38 -9
- package/dist/ui/App/DrawerHeader.d.ts +7 -0
- package/dist/ui/App/DrawerHeader.js +114 -0
- package/dist/ui/App/DrawerWidget.js +2 -76
- package/esm/HistoryManagement/index.js +5 -2
- package/esm/JBrowseConfig/index.d.ts +29 -18
- package/esm/JBrowseConfig/index.js +8 -47
- package/esm/JBrowseModel/index.d.ts +38 -9
- package/esm/ui/App/DrawerHeader.d.ts +7 -0
- package/esm/ui/App/DrawerHeader.js +86 -0
- package/esm/ui/App/DrawerWidget.js +1 -75
- package/package.json +6 -7
- package/src/Assemblies/SessionAssembliesMixin.ts +0 -50
- package/src/Assemblies/TemporaryAssembliesMixin.ts +0 -51
- package/src/Assemblies/index.ts +0 -2
- package/src/HistoryManagement/index.ts +0 -56
- package/src/JBrowseConfig/index.ts +0 -173
- package/src/JBrowseModel/index.ts +0 -150
- package/src/RootMenu/index.ts +0 -157
- package/src/index.ts +0 -6
- package/src/ui/App/App.tsx +0 -117
- package/src/ui/App/AppFab.tsx +0 -45
- package/src/ui/App/AppToolbar.tsx +0 -89
- package/src/ui/App/DialogQueue.tsx +0 -22
- package/src/ui/App/Drawer.tsx +0 -56
- package/src/ui/App/DrawerWidget.tsx +0 -238
- package/src/ui/App/ViewContainer.tsx +0 -76
- package/src/ui/App/ViewContainerTitle.tsx +0 -55
- package/src/ui/App/ViewLauncher.tsx +0 -64
- package/src/ui/App/ViewMenu.tsx +0 -54
- package/src/ui/App/ViewPanel.tsx +0 -63
- package/src/ui/App/index.ts +0 -1
- package/src/ui/index.ts +0 -1
package/src/ui/App/ViewPanel.tsx
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React, { Suspense } from 'react'
|
|
2
|
-
import { ErrorBoundary } from 'react-error-boundary'
|
|
3
|
-
import { observer } from 'mobx-react'
|
|
4
|
-
|
|
5
|
-
// locals
|
|
6
|
-
import {
|
|
7
|
-
getEnv,
|
|
8
|
-
AbstractViewModel,
|
|
9
|
-
SessionWithDrawerWidgets,
|
|
10
|
-
} from '@jbrowse/core/util'
|
|
11
|
-
import { SnackbarMessage } from '@jbrowse/core/ui/SnackbarModel'
|
|
12
|
-
|
|
13
|
-
// ui elements
|
|
14
|
-
import ErrorMessage from '@jbrowse/core/ui/ErrorMessage'
|
|
15
|
-
import LoadingEllipses from '@jbrowse/core/ui/LoadingEllipses'
|
|
16
|
-
import { MenuItem as JBMenuItem } from '@jbrowse/core/ui/Menu'
|
|
17
|
-
|
|
18
|
-
// locals
|
|
19
|
-
import ViewContainer from './ViewContainer'
|
|
20
|
-
|
|
21
|
-
type AppSession = SessionWithDrawerWidgets & {
|
|
22
|
-
savedSessionNames: string[]
|
|
23
|
-
menus: { label: string; menuItems: JBMenuItem[] }[]
|
|
24
|
-
snackbarMessages: SnackbarMessage[]
|
|
25
|
-
renameCurrentSession: (arg: string) => void
|
|
26
|
-
popSnackbarMessage: () => unknown
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const ViewPanel = observer(function ({
|
|
30
|
-
view,
|
|
31
|
-
session,
|
|
32
|
-
}: {
|
|
33
|
-
view: AbstractViewModel
|
|
34
|
-
session: AppSession
|
|
35
|
-
}) {
|
|
36
|
-
const { pluginManager } = getEnv(session)
|
|
37
|
-
const viewType = pluginManager.getViewType(view.type)
|
|
38
|
-
if (!viewType) {
|
|
39
|
-
throw new Error(`unknown view type ${view.type}`)
|
|
40
|
-
}
|
|
41
|
-
const { ReactComponent } = viewType
|
|
42
|
-
return (
|
|
43
|
-
<ViewContainer
|
|
44
|
-
view={view}
|
|
45
|
-
onClose={() => session.removeView(view)}
|
|
46
|
-
onMinimize={() => view.setMinimized(!view.minimized)}
|
|
47
|
-
>
|
|
48
|
-
{!view.minimized ? (
|
|
49
|
-
<ErrorBoundary
|
|
50
|
-
FallbackComponent={({ error }) => <ErrorMessage error={error} />}
|
|
51
|
-
>
|
|
52
|
-
<Suspense fallback={<LoadingEllipses variant="h6" />}>
|
|
53
|
-
<ReactComponent model={view} session={session} />
|
|
54
|
-
</Suspense>
|
|
55
|
-
</ErrorBoundary>
|
|
56
|
-
) : (
|
|
57
|
-
false
|
|
58
|
-
)}
|
|
59
|
-
</ViewContainer>
|
|
60
|
-
)
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
export default ViewPanel
|
package/src/ui/App/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './App'
|
package/src/ui/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './App'
|