Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra re-exports for default modules #2288

Merged
merged 4 commits into from
Oct 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/core/ReExports/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default [
'@mui/x-data-grid',

'@jbrowse/core/Plugin',
'@jbrowse/core/pluggableElementTypes',
'@jbrowse/core/pluggableElementTypes/ViewType',
'@jbrowse/core/pluggableElementTypes/AdapterType',
'@jbrowse/core/pluggableElementTypes/DisplayType',
Expand Down
4 changes: 3 additions & 1 deletion packages/core/ReExports/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import * as BaseAdapterExports from '../data_adapters/BaseAdapter'
import * as BaseFeatureDetail from '../BaseFeatureWidget/BaseFeatureDetail'

import Base1DView from '../util/Base1DViewModel'
import * as pluggableElementTypes from '../pluggableElementTypes'
import ViewType from '../pluggableElementTypes/ViewType'
import AdapterType from '../pluggableElementTypes/AdapterType'
import DisplayType from '../pluggableElementTypes/DisplayType'
Expand All @@ -67,7 +68,7 @@ import * as FeatureRendererType from '../pluggableElementTypes/renderers/Feature
import * as RendererType from '../pluggableElementTypes/renderers/RendererType'

import * as Configuration from '../configuration'
import * as Plugin from '../Plugin'
import Plugin from '../Plugin'
import * as coreUi from '../ui'
import * as coreUtil from '../util'
import * as coreColor from '../util/color'
Expand Down Expand Up @@ -136,6 +137,7 @@ const libs = {
'@material-ui/lab/ToggleButtonGroup': ToggleButtonGroup,

'@jbrowse/core/Plugin': Plugin,
'@jbrowse/core/pluggableElementTypes': pluggableElementTypes,
'@jbrowse/core/pluggableElementTypes/ViewType': ViewType,
'@jbrowse/core/pluggableElementTypes/AdapterType': AdapterType,
'@jbrowse/core/pluggableElementTypes/DisplayType': DisplayType,
Expand Down
20 changes: 17 additions & 3 deletions packages/core/pluggableElementTypes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@ import DisplayType from './DisplayType'
import ViewType from './ViewType'
import RpcMethodType from './RpcMethodType'
import InternetAccountType from './InternetAccountType'
import TextSearchAdapter from './TextSearchAdapterType'
import TextSearchAdapterType from './TextSearchAdapterType'

export * from './renderers'

export {
AdapterType,
ConnectionType,
RendererType,
WidgetType,
TrackType,
DisplayType,
ViewType,
RpcMethodType,
TextSearchAdapterType,
}

export type PluggableElementType =
| AdapterType
Expand All @@ -19,7 +33,7 @@ export type PluggableElementType =
| ViewType
| RpcMethodType
| InternetAccountType
| TextSearchAdapter
| TextSearchAdapterType

export type PluggableElementMember =
| keyof AdapterType
Expand All @@ -31,4 +45,4 @@ export type PluggableElementMember =
| keyof ViewType
| keyof RpcMethodType
| keyof InternetAccountType
| keyof TextSearchAdapter
| keyof TextSearchAdapterType
17 changes: 17 additions & 0 deletions packages/core/pluggableElementTypes/renderers/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import BoxRendererType from './BoxRendererType'
import CircularChordRendererType from './CircularChordRendererType'
import ComparativeServerSideRendererType from './ComparativeServerSideRendererType'
import FeatureRendererType from './FeatureRendererType'
import RendererType from './RendererType'
import ServerSideRenderedContent from './ServerSideRenderedContent'
import ServerSideRendererType from './ServerSideRendererType'

export {
BoxRendererType,
CircularChordRendererType,
ComparativeServerSideRendererType,
FeatureRendererType,
RendererType,
ServerSideRenderedContent,
ServerSideRendererType,
}
1 change: 1 addition & 0 deletions packages/core/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { isAbortException, checkAbortSignal } from './aborting'
export * from './types'
export * from './aborting'
export * from './when'
export * from './range'

export * from './offscreenCanvasPonyfill'
export * from './offscreenCanvasUtils'
Expand Down