@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.
Files changed (36) hide show
  1. package/dist/HistoryManagement/index.js +5 -2
  2. package/dist/JBrowseConfig/index.d.ts +29 -18
  3. package/dist/JBrowseConfig/index.js +8 -47
  4. package/dist/JBrowseModel/index.d.ts +38 -9
  5. package/dist/ui/App/DrawerHeader.d.ts +7 -0
  6. package/dist/ui/App/DrawerHeader.js +114 -0
  7. package/dist/ui/App/DrawerWidget.js +2 -76
  8. package/esm/HistoryManagement/index.js +5 -2
  9. package/esm/JBrowseConfig/index.d.ts +29 -18
  10. package/esm/JBrowseConfig/index.js +8 -47
  11. package/esm/JBrowseModel/index.d.ts +38 -9
  12. package/esm/ui/App/DrawerHeader.d.ts +7 -0
  13. package/esm/ui/App/DrawerHeader.js +86 -0
  14. package/esm/ui/App/DrawerWidget.js +1 -75
  15. package/package.json +6 -7
  16. package/src/Assemblies/SessionAssembliesMixin.ts +0 -50
  17. package/src/Assemblies/TemporaryAssembliesMixin.ts +0 -51
  18. package/src/Assemblies/index.ts +0 -2
  19. package/src/HistoryManagement/index.ts +0 -56
  20. package/src/JBrowseConfig/index.ts +0 -173
  21. package/src/JBrowseModel/index.ts +0 -150
  22. package/src/RootMenu/index.ts +0 -157
  23. package/src/index.ts +0 -6
  24. package/src/ui/App/App.tsx +0 -117
  25. package/src/ui/App/AppFab.tsx +0 -45
  26. package/src/ui/App/AppToolbar.tsx +0 -89
  27. package/src/ui/App/DialogQueue.tsx +0 -22
  28. package/src/ui/App/Drawer.tsx +0 -56
  29. package/src/ui/App/DrawerWidget.tsx +0 -238
  30. package/src/ui/App/ViewContainer.tsx +0 -76
  31. package/src/ui/App/ViewContainerTitle.tsx +0 -55
  32. package/src/ui/App/ViewLauncher.tsx +0 -64
  33. package/src/ui/App/ViewMenu.tsx +0 -54
  34. package/src/ui/App/ViewPanel.tsx +0 -63
  35. package/src/ui/App/index.ts +0 -1
  36. package/src/ui/index.ts +0 -1
@@ -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
@@ -1 +0,0 @@
1
- export * from './App'
package/src/ui/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './App'