@jbrowse/core 1.4.1 → 1.5.2
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/BaseFeatureWidget/BaseFeatureDetail.d.ts +4 -4
- package/BaseFeatureWidget/BaseFeatureDetail.js +27 -8
- package/BaseFeatureWidget/SequenceFeatureDetails.js +10 -10
- package/BaseFeatureWidget/index.js +1 -1
- package/BaseFeatureWidget/types.d.ts +1 -1
- package/BaseFeatureWidget/util.js +3 -3
- package/CorePlugin.d.ts +0 -1
- package/CorePlugin.js +13 -1
- package/PluginLoader.d.ts +26 -4
- package/PluginLoader.js +337 -51
- package/PluginManager.d.ts +18 -11
- package/PluginManager.js +53 -31
- package/ReExports/list.js +1 -1
- package/ReExports/material-ui-colors.js +38 -38
- package/ReExports/modules.d.ts +19 -20
- package/ReExports/modules.js +10 -3
- package/TextSearch/BaseResults.d.ts +5 -14
- package/TextSearch/BaseResults.js +16 -58
- package/TextSearch/BaseResults.test.js +1 -11
- package/TextSearch/TextSearchManager.d.ts +3 -3
- package/TextSearch/TextSearchManager.js +1 -1
- package/assemblyManager/assembly.d.ts +21 -8
- package/assemblyManager/assembly.js +163 -120
- package/assemblyManager/assemblyConfigSchema.d.ts +3 -0
- package/assemblyManager/{assemblyConfigSchemas.js → assemblyConfigSchema.js} +35 -27
- package/assemblyManager/assemblyManager.d.ts +169 -60
- package/assemblyManager/index.d.ts +1 -1
- package/assemblyManager/index.js +5 -5
- package/configuration/configurationSchema.d.ts +3 -2
- package/configuration/configurationSchema.js +7 -10
- package/configuration/configurationSchema.test.js +4 -2
- package/configuration/configurationSlot.js +5 -4
- package/configuration/index.js +4 -4
- package/configuration/util.js +5 -5
- package/data_adapters/BaseAdapter.d.ts +5 -3
- package/data_adapters/BaseAdapter.js +7 -4
- package/data_adapters/BaseAdapter.test.js +4 -2
- package/data_adapters/CytobandAdapter.d.ts +8 -0
- package/data_adapters/CytobandAdapter.js +128 -0
- package/data_adapters/dataAdapterCache.js +3 -3
- package/package.json +7 -6
- package/pluggableElementTypes/AdapterType.d.ts +9 -1
- package/pluggableElementTypes/AdapterType.js +20 -0
- package/pluggableElementTypes/InternetAccountType.d.ts +12 -0
- package/pluggableElementTypes/InternetAccountType.js +64 -0
- package/pluggableElementTypes/PluggableElementBase.d.ts +1 -2
- package/pluggableElementTypes/PluggableElementBase.js +2 -3
- package/pluggableElementTypes/RpcMethodType.d.ts +3 -0
- package/pluggableElementTypes/RpcMethodType.js +269 -26
- package/pluggableElementTypes/RpcMethodType.test.d.ts +4 -0
- package/pluggableElementTypes/RpcMethodType.test.js +118 -0
- package/pluggableElementTypes/ViewType.d.ts +1 -1
- package/pluggableElementTypes/WidgetType.d.ts +1 -0
- package/pluggableElementTypes/index.d.ts +7 -3
- package/pluggableElementTypes/index.js +127 -1
- package/pluggableElementTypes/models/BaseDisplayModel.d.ts +6 -6
- package/pluggableElementTypes/models/BaseDisplayModel.js +1 -3
- package/pluggableElementTypes/models/BaseViewModel.js +13 -15
- package/pluggableElementTypes/models/InternetAccountModel.d.ts +24 -0
- package/pluggableElementTypes/models/InternetAccountModel.js +85 -0
- package/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +4 -0
- package/pluggableElementTypes/models/baseInternetAccountConfig.js +25 -0
- package/pluggableElementTypes/models/index.d.ts +3 -0
- package/pluggableElementTypes/models/index.js +24 -8
- package/pluggableElementTypes/renderers/BoxRendererType.js +1 -1
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.d.ts +1 -1
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +15 -6
- package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +3 -3
- package/pluggableElementTypes/renderers/FeatureRendererType.js +17 -8
- package/pluggableElementTypes/renderers/RendererType.d.ts +1 -0
- package/pluggableElementTypes/renderers/RendererType.js +4 -1
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +1 -1
- package/pluggableElementTypes/renderers/index.d.ts +9 -0
- package/pluggableElementTypes/renderers/index.js +63 -0
- package/rpc/BaseRpcDriver.js +5 -9
- package/rpc/BaseRpcDriver.test.js +6 -6
- package/rpc/RpcManager.d.ts +1 -1
- package/rpc/RpcManager.js +44 -16
- package/rpc/WebWorkerRpcDriver.js +3 -3
- package/rpc/coreRpcMethods.d.ts +2 -1
- package/rpc/coreRpcMethods.js +109 -75
- package/rpc/remoteAbortSignals.js +2 -2
- package/ui/App.d.ts +17 -4
- package/ui/App.js +55 -41
- package/ui/Drawer.d.ts +6 -14
- package/ui/Drawer.js +11 -12
- package/ui/DrawerWidget.d.ts +5 -3
- package/ui/DrawerWidget.js +100 -61
- package/ui/ErrorMessage.d.ts +5 -0
- package/ui/ErrorMessage.js +54 -0
- package/ui/FileSelector/FileSelector.d.ts +11 -0
- package/ui/FileSelector/FileSelector.js +198 -0
- package/ui/FileSelector/LocalFileChooser.d.ts +7 -0
- package/ui/FileSelector/LocalFileChooser.js +79 -0
- package/ui/FileSelector/UrlChooser.d.ts +9 -0
- package/ui/FileSelector/UrlChooser.js +41 -0
- package/ui/FileSelector/index.d.ts +2 -0
- package/ui/FileSelector/index.js +13 -0
- package/ui/Icons.d.ts +4 -0
- package/ui/Icons.js +34 -0
- package/ui/Logo.js +1 -1
- package/ui/PrerenderedCanvas.d.ts +1 -0
- package/ui/PrerenderedCanvas.js +4 -1
- package/ui/ResizeHandle.d.ts +2 -3
- package/ui/ResizeHandle.js +6 -7
- package/ui/SanitizedHTML.js +1 -1
- package/ui/Snackbar.js +4 -6
- package/ui/SnackbarModel.d.ts +16 -0
- package/ui/SnackbarModel.js +56 -0
- package/ui/Tooltip.d.ts +1 -1
- package/ui/index.js +24 -24
- package/ui/theme.js +5 -5
- package/util/QuickLRU.d.ts +1 -1
- package/util/QuickLRU.js +3 -3
- package/util/aborting.d.ts +1 -1
- package/util/aborting.js +10 -11
- package/util/analytics.d.ts +2 -2
- package/util/analytics.js +20 -7
- package/util/blockTypes.d.ts +11 -6
- package/util/blockTypes.js +7 -1
- package/util/color/cssColorsLevel4.js +1 -1
- package/util/color/index.js +5 -5
- package/util/compositeMap.js +3 -3
- package/util/index.d.ts +6 -16
- package/util/index.js +76 -100
- package/util/io/RemoteFileWithRangeCache.d.ts +17 -0
- package/util/io/RemoteFileWithRangeCache.js +266 -0
- package/util/io/index.d.ts +4 -2
- package/util/io/index.js +134 -25
- package/util/jexl.js +4 -1
- package/util/layouts/BaseLayout.d.ts +3 -0
- package/util/layouts/GranularRectLayout.d.ts +19 -10
- package/util/layouts/GranularRectLayout.js +459 -100
- package/util/layouts/GranularRectLayout.test.js +57 -10
- package/util/layouts/PrecomputedLayout.js +2 -1
- package/util/layouts/index.d.ts +7 -0
- package/util/layouts/index.js +68 -0
- package/util/mst-reflection.js +3 -3
- package/util/offscreenCanvasPonyfill.js +1 -1
- package/util/range.js +1 -1
- package/util/simpleFeature.js +1 -1
- package/util/stats.js +2 -2
- package/util/tracks.d.ts +31 -362
- package/util/tracks.js +74 -190
- package/util/types/index.d.ts +54 -10
- package/util/types/index.js +110 -8
- package/util/types/mst.d.ts +46 -2
- package/util/types/mst.js +56 -8
- package/util/types/util.d.ts +1 -1
- package/util/when.js +1 -1
- package/assemblyManager/assemblyConfigSchemas.d.ts +0 -7
- package/ui/FileSelector.d.ts +0 -9
- package/ui/FileSelector.js +0 -150
- package/util/io/LocalFile.d.ts +0 -18
- package/util/io/LocalFile.js +0 -220
- package/util/io/rangeFetcher.d.ts +0 -3
- package/util/io/rangeFetcher.js +0 -236
- package/value.d.ts +0 -1
- package/value.js +0 -10
package/ReExports/modules.d.ts
CHANGED
|
@@ -8,25 +8,21 @@ import * as MUIStyles from '@material-ui/core/styles';
|
|
|
8
8
|
import * as MUICore from '@material-ui/core';
|
|
9
9
|
import * as MUIUtils from '@material-ui/core/utils';
|
|
10
10
|
import * as MUILab from '@material-ui/lab';
|
|
11
|
-
import * as MUIDataGrid from '@
|
|
11
|
+
import * as MUIDataGrid from '@mui/x-data-grid';
|
|
12
12
|
import * as BaseAdapterExports from '../data_adapters/BaseAdapter';
|
|
13
13
|
import * as BaseFeatureDetail from '../BaseFeatureWidget/BaseFeatureDetail';
|
|
14
|
-
import
|
|
15
|
-
import AdapterType from '../pluggableElementTypes/AdapterType';
|
|
16
|
-
import DisplayType from '../pluggableElementTypes/DisplayType';
|
|
17
|
-
import TrackType from '../pluggableElementTypes/TrackType';
|
|
18
|
-
import WidgetType from '../pluggableElementTypes/WidgetType';
|
|
14
|
+
import * as pluggableElementTypes from '../pluggableElementTypes';
|
|
19
15
|
import * as pluggableElementTypeModels from '../pluggableElementTypes/models';
|
|
20
16
|
import * as ServerSideRendererType from '../pluggableElementTypes/renderers/ServerSideRendererType';
|
|
21
|
-
import CircularChordRendererType from '../pluggableElementTypes/renderers/CircularChordRendererType';
|
|
22
17
|
import * as BoxRendererType from '../pluggableElementTypes/renderers/BoxRendererType';
|
|
23
18
|
import * as FeatureRendererType from '../pluggableElementTypes/renderers/FeatureRendererType';
|
|
24
19
|
import * as RendererType from '../pluggableElementTypes/renderers/RendererType';
|
|
25
20
|
import * as Configuration from '../configuration';
|
|
26
|
-
import
|
|
21
|
+
import Plugin from '../Plugin';
|
|
27
22
|
import * as coreUi from '../ui';
|
|
28
23
|
import * as coreUtil from '../util';
|
|
29
24
|
import * as coreColor from '../util/color';
|
|
25
|
+
import * as coreLayouts from '../util/layouts';
|
|
30
26
|
import * as trackUtils from '../util/tracks';
|
|
31
27
|
import * as coreIo from '../util/io';
|
|
32
28
|
import * as coreMstReflection from '../util/mst-reflection';
|
|
@@ -44,6 +40,7 @@ declare const libs: {
|
|
|
44
40
|
'@material-ui/core/SvgIcon': import("@material-ui/core/OverridableComponent").OverridableComponent<MUICore.SvgIconTypeMap<{}, "svg">>;
|
|
45
41
|
'@material-ui/core/utils': typeof MUIUtils;
|
|
46
42
|
'@material-ui/lab': typeof MUILab;
|
|
43
|
+
'@mui/x-data-grid': typeof MUIDataGrid;
|
|
47
44
|
'@material-ui/data-grid': typeof MUIDataGrid;
|
|
48
45
|
'@material-ui/core/colors': typeof MUIColors;
|
|
49
46
|
'@material-ui/core/styles': typeof MUIStyles;
|
|
@@ -77,7 +74,7 @@ declare const libs: {
|
|
|
77
74
|
alignItems?: "center" | "flex-start" | undefined;
|
|
78
75
|
autoFocus?: boolean | undefined;
|
|
79
76
|
button?: boolean | undefined;
|
|
80
|
-
ContainerComponent?:
|
|
77
|
+
ContainerComponent?: React.ElementType<React.HTMLAttributes<HTMLDivElement>> | undefined;
|
|
81
78
|
ContainerProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
82
79
|
dense?: boolean | undefined;
|
|
83
80
|
disabled?: boolean | undefined;
|
|
@@ -86,8 +83,8 @@ declare const libs: {
|
|
|
86
83
|
focusVisibleClassName?: string | undefined;
|
|
87
84
|
selected?: boolean | undefined;
|
|
88
85
|
} & {
|
|
89
|
-
action?:
|
|
90
|
-
buttonRef?:
|
|
86
|
+
action?: React.Ref<MUICore.ButtonBaseActions> | undefined;
|
|
87
|
+
buttonRef?: React.Ref<unknown> | undefined;
|
|
91
88
|
centerRipple?: boolean | undefined;
|
|
92
89
|
children?: React.ReactNode;
|
|
93
90
|
disabled?: boolean | undefined;
|
|
@@ -95,14 +92,14 @@ declare const libs: {
|
|
|
95
92
|
disableTouchRipple?: boolean | undefined;
|
|
96
93
|
focusRipple?: boolean | undefined;
|
|
97
94
|
focusVisibleClassName?: string | undefined;
|
|
98
|
-
onFocusVisible?:
|
|
95
|
+
onFocusVisible?: React.FocusEventHandler<any> | undefined;
|
|
99
96
|
tabIndex?: string | number | undefined;
|
|
100
97
|
TouchRippleProps?: Partial<import("@material-ui/core/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
101
98
|
} & import("@material-ui/core/OverridableComponent").CommonProps<MUICore.ExtendButtonBaseTypeMap<MUICore.MenuItemTypeMap<{
|
|
102
99
|
button?: true | undefined;
|
|
103
|
-
}, "li">>> & Pick<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "
|
|
100
|
+
}, "li">>> & Pick<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
104
101
|
ref?: ((instance: HTMLAnchorElement | null) => void) | React.RefObject<HTMLAnchorElement> | null | undefined;
|
|
105
|
-
}, "id" | "
|
|
102
|
+
}, "id" | "is" | "color" | "type" | "defaultValue" | "key" | "prefix" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "href" | "download" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy">) => JSX.Element) & import("@material-ui/core/OverridableComponent").OverridableComponent<MUICore.ExtendButtonBaseTypeMap<MUICore.MenuItemTypeMap<{
|
|
106
103
|
button?: true | undefined;
|
|
107
104
|
}, "li">>>;
|
|
108
105
|
'@material-ui/core/RadioGroup': typeof MUICore.RadioGroup;
|
|
@@ -116,14 +113,15 @@ declare const libs: {
|
|
|
116
113
|
'@material-ui/lab/ToggleButton': MUICore.ExtendButtonBase<MUILab.ToggleButtonTypeMap<{}, "button">>;
|
|
117
114
|
'@material-ui/lab/ToggleButtonGroup': typeof MUILab.ToggleButtonGroup;
|
|
118
115
|
'@jbrowse/core/Plugin': typeof Plugin;
|
|
119
|
-
'@jbrowse/core/pluggableElementTypes
|
|
120
|
-
'@jbrowse/core/pluggableElementTypes/
|
|
121
|
-
'@jbrowse/core/pluggableElementTypes/
|
|
122
|
-
'@jbrowse/core/pluggableElementTypes/
|
|
123
|
-
'@jbrowse/core/pluggableElementTypes/
|
|
116
|
+
'@jbrowse/core/pluggableElementTypes': typeof pluggableElementTypes;
|
|
117
|
+
'@jbrowse/core/pluggableElementTypes/ViewType': typeof pluggableElementTypes.ViewType;
|
|
118
|
+
'@jbrowse/core/pluggableElementTypes/AdapterType': typeof pluggableElementTypes.AdapterType;
|
|
119
|
+
'@jbrowse/core/pluggableElementTypes/DisplayType': typeof pluggableElementTypes.DisplayType;
|
|
120
|
+
'@jbrowse/core/pluggableElementTypes/TrackType': typeof pluggableElementTypes.TrackType;
|
|
121
|
+
'@jbrowse/core/pluggableElementTypes/WidgetType': typeof pluggableElementTypes.WidgetType;
|
|
124
122
|
'@jbrowse/core/pluggableElementTypes/models': typeof pluggableElementTypeModels;
|
|
125
123
|
'@jbrowse/core/pluggableElementTypes/renderers/ServerSideRendererType': typeof ServerSideRendererType;
|
|
126
|
-
'@jbrowse/core/pluggableElementTypes/renderers/CircularChordRendererType': typeof CircularChordRendererType;
|
|
124
|
+
'@jbrowse/core/pluggableElementTypes/renderers/CircularChordRendererType': typeof pluggableElementTypes.CircularChordRendererType;
|
|
127
125
|
'@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType': typeof BoxRendererType;
|
|
128
126
|
'@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType': typeof FeatureRendererType;
|
|
129
127
|
'@jbrowse/core/pluggableElementTypes/renderers/RendererType': typeof RendererType;
|
|
@@ -132,6 +130,7 @@ declare const libs: {
|
|
|
132
130
|
'@jbrowse/core/ui': typeof coreUi;
|
|
133
131
|
'@jbrowse/core/util': typeof coreUtil;
|
|
134
132
|
'@jbrowse/core/util/color': typeof coreColor;
|
|
133
|
+
'@jbrowse/core/util/layouts': typeof coreLayouts;
|
|
135
134
|
'@jbrowse/core/util/tracks': typeof trackUtils;
|
|
136
135
|
'@jbrowse/core/util/Base1DViewModel': mst.IModelType<{
|
|
137
136
|
displayedRegions: mst.IArrayType<mst.IModelType<{
|
package/ReExports/modules.js
CHANGED
|
@@ -31,7 +31,7 @@ var _SvgIcon = _interopRequireDefault(require("@material-ui/core/SvgIcon"));
|
|
|
31
31
|
|
|
32
32
|
var MUILab = _interopRequireWildcard(require("@material-ui/lab"));
|
|
33
33
|
|
|
34
|
-
var MUIDataGrid = _interopRequireWildcard(require("@
|
|
34
|
+
var MUIDataGrid = _interopRequireWildcard(require("@mui/x-data-grid"));
|
|
35
35
|
|
|
36
36
|
var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
|
|
37
37
|
|
|
@@ -101,6 +101,8 @@ var BaseFeatureDetail = _interopRequireWildcard(require("../BaseFeatureWidget/Ba
|
|
|
101
101
|
|
|
102
102
|
var _Base1DViewModel = _interopRequireDefault(require("../util/Base1DViewModel"));
|
|
103
103
|
|
|
104
|
+
var pluggableElementTypes = _interopRequireWildcard(require("../pluggableElementTypes"));
|
|
105
|
+
|
|
104
106
|
var _ViewType = _interopRequireDefault(require("../pluggableElementTypes/ViewType"));
|
|
105
107
|
|
|
106
108
|
var _AdapterType = _interopRequireDefault(require("../pluggableElementTypes/AdapterType"));
|
|
@@ -125,7 +127,7 @@ var RendererType = _interopRequireWildcard(require("../pluggableElementTypes/ren
|
|
|
125
127
|
|
|
126
128
|
var Configuration = _interopRequireWildcard(require("../configuration"));
|
|
127
129
|
|
|
128
|
-
var
|
|
130
|
+
var _Plugin = _interopRequireDefault(require("../Plugin"));
|
|
129
131
|
|
|
130
132
|
var coreUi = _interopRequireWildcard(require("../ui"));
|
|
131
133
|
|
|
@@ -133,6 +135,8 @@ var coreUtil = _interopRequireWildcard(require("../util"));
|
|
|
133
135
|
|
|
134
136
|
var coreColor = _interopRequireWildcard(require("../util/color"));
|
|
135
137
|
|
|
138
|
+
var coreLayouts = _interopRequireWildcard(require("../util/layouts"));
|
|
139
|
+
|
|
136
140
|
var trackUtils = _interopRequireWildcard(require("../util/tracks"));
|
|
137
141
|
|
|
138
142
|
var coreIo = _interopRequireWildcard(require("../util/io"));
|
|
@@ -168,6 +172,7 @@ var libs = {
|
|
|
168
172
|
'@material-ui/core/utils': MUIUtils,
|
|
169
173
|
// end special case
|
|
170
174
|
'@material-ui/lab': MUILab,
|
|
175
|
+
'@mui/x-data-grid': MUIDataGrid,
|
|
171
176
|
'@material-ui/data-grid': MUIDataGrid,
|
|
172
177
|
// material-ui subcomponents, should get rid of these
|
|
173
178
|
'@material-ui/core/colors': MUIColors,
|
|
@@ -204,7 +209,8 @@ var libs = {
|
|
|
204
209
|
// @material-ui lab
|
|
205
210
|
'@material-ui/lab/ToggleButton': _ToggleButton.default,
|
|
206
211
|
'@material-ui/lab/ToggleButtonGroup': _ToggleButtonGroup.default,
|
|
207
|
-
'@jbrowse/core/Plugin':
|
|
212
|
+
'@jbrowse/core/Plugin': _Plugin.default,
|
|
213
|
+
'@jbrowse/core/pluggableElementTypes': pluggableElementTypes,
|
|
208
214
|
'@jbrowse/core/pluggableElementTypes/ViewType': _ViewType.default,
|
|
209
215
|
'@jbrowse/core/pluggableElementTypes/AdapterType': _AdapterType.default,
|
|
210
216
|
'@jbrowse/core/pluggableElementTypes/DisplayType': _DisplayType.default,
|
|
@@ -221,6 +227,7 @@ var libs = {
|
|
|
221
227
|
'@jbrowse/core/ui': coreUi,
|
|
222
228
|
'@jbrowse/core/util': coreUtil,
|
|
223
229
|
'@jbrowse/core/util/color': coreColor,
|
|
230
|
+
'@jbrowse/core/util/layouts': coreLayouts,
|
|
224
231
|
'@jbrowse/core/util/tracks': trackUtils,
|
|
225
232
|
'@jbrowse/core/util/Base1DViewModel': _Base1DViewModel.default,
|
|
226
233
|
'@jbrowse/core/util/io': coreIo,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import TextSearchAdapterType from '../pluggableElementTypes/TextSearchAdapterType';
|
|
3
3
|
import { SearchType } from '../data_adapters/BaseAdapter';
|
|
4
4
|
export interface BaseResultArgs {
|
|
5
5
|
label: string;
|
|
6
6
|
displayString?: string;
|
|
7
|
-
renderingComponent?:
|
|
7
|
+
renderingComponent?: React.ReactElement;
|
|
8
8
|
matchedAttribute?: string;
|
|
9
9
|
matchedObject?: object;
|
|
10
10
|
textSearchAdapter?: TextSearchAdapterType;
|
|
@@ -16,7 +16,7 @@ export interface BaseResultArgs {
|
|
|
16
16
|
}
|
|
17
17
|
export default class BaseResult {
|
|
18
18
|
label: string;
|
|
19
|
-
renderingComponent?:
|
|
19
|
+
renderingComponent?: React.ReactElement;
|
|
20
20
|
displayString?: string;
|
|
21
21
|
matchedAttribute?: string;
|
|
22
22
|
matchedObject?: object;
|
|
@@ -24,24 +24,15 @@ export default class BaseResult {
|
|
|
24
24
|
relevance?: SearchType;
|
|
25
25
|
trackId?: string;
|
|
26
26
|
score: number;
|
|
27
|
+
locString?: string;
|
|
27
28
|
constructor(args: BaseResultArgs);
|
|
28
29
|
getLabel(): string;
|
|
29
30
|
getDisplayString(): string;
|
|
30
|
-
|
|
31
|
-
getRenderingComponent(): JSX.Element | undefined;
|
|
31
|
+
getRenderingComponent(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
32
32
|
getTrackId(): string | undefined;
|
|
33
33
|
getScore(): number;
|
|
34
34
|
updateScore(newScore: number): number;
|
|
35
35
|
getId(): string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Future types of results
|
|
39
|
-
* e.g: reference sequence results, track results,
|
|
40
|
-
* feature results
|
|
41
|
-
*/
|
|
42
|
-
export declare class LocStringResult extends BaseResult {
|
|
43
|
-
locString: string;
|
|
44
|
-
constructor(args: BaseResultArgs);
|
|
45
36
|
getLocation(): string;
|
|
46
37
|
}
|
|
47
38
|
export declare class RefSequenceResult extends BaseResult {
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.RefSequenceResult = void 0;
|
|
9
9
|
|
|
10
10
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
11
|
|
|
@@ -37,7 +37,9 @@ var BaseResult = /*#__PURE__*/function () {
|
|
|
37
37
|
(0, _defineProperty2.default)(this, "relevance", void 0);
|
|
38
38
|
(0, _defineProperty2.default)(this, "trackId", void 0);
|
|
39
39
|
(0, _defineProperty2.default)(this, "score", void 0);
|
|
40
|
+
(0, _defineProperty2.default)(this, "locString", void 0);
|
|
40
41
|
this.label = args.label;
|
|
42
|
+
this.locString = args.locString;
|
|
41
43
|
this.renderingComponent = args.renderingComponent;
|
|
42
44
|
this.displayString = args.displayString;
|
|
43
45
|
this.matchedAttribute = args.matchedAttribute;
|
|
@@ -58,11 +60,6 @@ var BaseResult = /*#__PURE__*/function () {
|
|
|
58
60
|
value: function getDisplayString() {
|
|
59
61
|
return this.displayString || this.label;
|
|
60
62
|
}
|
|
61
|
-
}, {
|
|
62
|
-
key: "getLocation",
|
|
63
|
-
value: function getLocation() {
|
|
64
|
-
return this.label;
|
|
65
|
-
}
|
|
66
63
|
}, {
|
|
67
64
|
key: "getRenderingComponent",
|
|
68
65
|
value: function getRenderingComponent() {
|
|
@@ -89,71 +86,32 @@ var BaseResult = /*#__PURE__*/function () {
|
|
|
89
86
|
value: function getId() {
|
|
90
87
|
return "".concat(this.getLabel(), "-").concat(this.getLocation(), "-").concat(this.getTrackId());
|
|
91
88
|
}
|
|
92
|
-
}
|
|
93
|
-
return BaseResult;
|
|
94
|
-
}();
|
|
95
|
-
/**
|
|
96
|
-
* Future types of results
|
|
97
|
-
* e.g: reference sequence results, track results,
|
|
98
|
-
* feature results
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
exports.default = BaseResult;
|
|
103
|
-
|
|
104
|
-
var LocStringResult = /*#__PURE__*/function (_BaseResult) {
|
|
105
|
-
(0, _inherits2.default)(LocStringResult, _BaseResult);
|
|
106
|
-
|
|
107
|
-
var _super = _createSuper(LocStringResult);
|
|
108
|
-
|
|
109
|
-
function LocStringResult(args) {
|
|
110
|
-
var _args$locString;
|
|
111
|
-
|
|
112
|
-
var _this;
|
|
113
|
-
|
|
114
|
-
(0, _classCallCheck2.default)(this, LocStringResult);
|
|
115
|
-
_this = _super.call(this, args);
|
|
116
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "locString", void 0);
|
|
117
|
-
|
|
118
|
-
if (!args.locString) {
|
|
119
|
-
throw new Error('must provide locString');
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
_this.locString = (_args$locString = args.locString) !== null && _args$locString !== void 0 ? _args$locString : '';
|
|
123
|
-
return _this;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
(0, _createClass2.default)(LocStringResult, [{
|
|
89
|
+
}, {
|
|
127
90
|
key: "getLocation",
|
|
128
91
|
value: function getLocation() {
|
|
129
|
-
return this.locString;
|
|
92
|
+
return this.locString || this.label;
|
|
130
93
|
}
|
|
131
94
|
}]);
|
|
132
|
-
return
|
|
133
|
-
}(
|
|
95
|
+
return BaseResult;
|
|
96
|
+
}();
|
|
134
97
|
|
|
135
|
-
exports.
|
|
98
|
+
exports.default = BaseResult;
|
|
136
99
|
|
|
137
|
-
var RefSequenceResult = /*#__PURE__*/function (
|
|
138
|
-
(0, _inherits2.default)(RefSequenceResult,
|
|
100
|
+
var RefSequenceResult = /*#__PURE__*/function (_BaseResult) {
|
|
101
|
+
(0, _inherits2.default)(RefSequenceResult, _BaseResult);
|
|
139
102
|
|
|
140
|
-
var
|
|
103
|
+
var _super = _createSuper(RefSequenceResult);
|
|
141
104
|
|
|
142
105
|
function RefSequenceResult(args) {
|
|
143
106
|
var _args$refName;
|
|
144
107
|
|
|
145
|
-
var
|
|
108
|
+
var _this;
|
|
146
109
|
|
|
147
110
|
(0, _classCallCheck2.default)(this, RefSequenceResult);
|
|
148
|
-
|
|
149
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
throw new Error('must provide refName');
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
_this2.refName = (_args$refName = args.refName) !== null && _args$refName !== void 0 ? _args$refName : '';
|
|
156
|
-
return _this2;
|
|
111
|
+
_this = _super.call(this, args);
|
|
112
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "refName", void 0);
|
|
113
|
+
_this.refName = (_args$refName = args.refName) !== null && _args$refName !== void 0 ? _args$refName : '';
|
|
114
|
+
return _this;
|
|
157
115
|
}
|
|
158
116
|
|
|
159
117
|
(0, _createClass2.default)(RefSequenceResult, [{
|
|
@@ -16,7 +16,7 @@ test('create BaseResult', function () {
|
|
|
16
16
|
expect(baseResult.getLocation()).toEqual('chr1');
|
|
17
17
|
});
|
|
18
18
|
test('create LocationResult', function () {
|
|
19
|
-
var locationResult = new _BaseResults.
|
|
19
|
+
var locationResult = new _BaseResults.default({
|
|
20
20
|
label: 'location result',
|
|
21
21
|
locString: 'chr1:1-900'
|
|
22
22
|
});
|
|
@@ -39,14 +39,4 @@ test('can update score of result and throw appropriate errors', function () {
|
|
|
39
39
|
expect(refSeqResult.getScore()).toBe(1);
|
|
40
40
|
refSeqResult.updateScore(1000);
|
|
41
41
|
expect(refSeqResult.getScore()).toBe(1000);
|
|
42
|
-
expect(function () {
|
|
43
|
-
new _BaseResults.RefSequenceResult({
|
|
44
|
-
label: 'chromosome 1'
|
|
45
|
-
});
|
|
46
|
-
}).toThrow('must provide refName');
|
|
47
|
-
expect(function () {
|
|
48
|
-
new _BaseResults.LocStringResult({
|
|
49
|
-
label: 'chromosome 1'
|
|
50
|
-
});
|
|
51
|
-
}).toThrow('must provide locString');
|
|
52
42
|
});
|
|
@@ -4,8 +4,8 @@ import PluginManager from '../PluginManager';
|
|
|
4
4
|
import QuickLRU from '../util/QuickLRU';
|
|
5
5
|
import { SearchType, BaseTextSearchAdapter } from '../data_adapters/BaseAdapter';
|
|
6
6
|
export interface BaseArgs {
|
|
7
|
-
searchType: SearchType;
|
|
8
7
|
queryString: string;
|
|
8
|
+
searchType?: SearchType;
|
|
9
9
|
signal?: AbortSignal;
|
|
10
10
|
limit?: number;
|
|
11
11
|
pageNumber?: number;
|
|
@@ -28,10 +28,10 @@ export default class TextSearchManager {
|
|
|
28
28
|
* @param args - search options/arguments include: search query
|
|
29
29
|
*/
|
|
30
30
|
relevantAdapters(searchScope: SearchScope): (import("mobx-state-tree").ModelInstanceTypeProps<Record<string, any>> & {
|
|
31
|
-
setSubschema(slotName: string, data:
|
|
31
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
32
32
|
} & import("mobx-state-tree").IStateTreeNode<import("../configuration/configurationSchema").AnyConfigurationSchemaType>)[];
|
|
33
33
|
getAdaptersWithAssembly(asmName: string, adapterConfs: AnyConfigurationModel[]): (import("mobx-state-tree").ModelInstanceTypeProps<Record<string, any>> & {
|
|
34
|
-
setSubschema(slotName: string, data:
|
|
34
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
35
35
|
} & import("mobx-state-tree").IStateTreeNode<import("../configuration/configurationSchema").AnyConfigurationSchemaType>)[];
|
|
36
36
|
/**
|
|
37
37
|
* Returns list of relevant results given a search query and options
|
|
@@ -53,7 +53,7 @@ var TextSearchManager = /*#__PURE__*/function () {
|
|
|
53
53
|
var _this$pluginManager$g = _this.pluginManager.getTextSearchAdapterType(adapterConfig.type),
|
|
54
54
|
AdapterClass = _this$pluginManager$g.AdapterClass;
|
|
55
55
|
|
|
56
|
-
var adapter = new AdapterClass(adapterConfig);
|
|
56
|
+
var adapter = new AdapterClass(adapterConfig, undefined, _this.pluginManager);
|
|
57
57
|
|
|
58
58
|
_this.adapterCache.set(adapterId, adapter);
|
|
59
59
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Instance, IAnyType } from 'mobx-state-tree';
|
|
2
|
+
import { Feature } from '../util/simpleFeature';
|
|
2
3
|
import PluginManager from '../PluginManager';
|
|
3
4
|
import { Region } from '../util/types';
|
|
4
5
|
declare type RefNameAliases = Record<string, string>;
|
|
@@ -21,6 +22,7 @@ export default function assemblyFactory(assemblyConfigType: IAnyType, pluginMana
|
|
|
21
22
|
refNameAliases: {
|
|
22
23
|
[key: string]: string;
|
|
23
24
|
} | undefined;
|
|
25
|
+
cytobands: Feature[] | undefined;
|
|
24
26
|
} & {
|
|
25
27
|
readonly initialized: boolean;
|
|
26
28
|
readonly name: string;
|
|
@@ -37,27 +39,38 @@ export default function assemblyFactory(assemblyConfigType: IAnyType, pluginMana
|
|
|
37
39
|
isValidRefName(refName: string): boolean;
|
|
38
40
|
} & {
|
|
39
41
|
setLoading(): void;
|
|
40
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
42
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
41
43
|
adapterRegionsWithAssembly: Region[];
|
|
42
44
|
refNameAliases: RefNameAliases;
|
|
45
|
+
cytobands: Feature[];
|
|
43
46
|
}): void;
|
|
44
|
-
setError(
|
|
47
|
+
setError(e: Error): void;
|
|
45
48
|
setRegions(regions: Region[]): void;
|
|
46
49
|
setRefNameAliases(refNameAliases: RefNameAliases): void;
|
|
50
|
+
setCytobands(cytobands: Feature[]): void;
|
|
47
51
|
afterAttach(): void;
|
|
48
52
|
} & {
|
|
49
53
|
getAdapterMapEntry(adapterConf: unknown, options: BaseOptions): Promise<{
|
|
50
|
-
forwardMap:
|
|
51
|
-
|
|
54
|
+
forwardMap: {
|
|
55
|
+
[k: string]: string;
|
|
56
|
+
};
|
|
57
|
+
reverseMap: {
|
|
58
|
+
[k: string]: string;
|
|
59
|
+
};
|
|
52
60
|
}>;
|
|
53
61
|
/**
|
|
54
62
|
* get Map of `canonical-name -> adapter-specific-name`
|
|
55
63
|
*/
|
|
56
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: BaseOptions): Promise<
|
|
64
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: BaseOptions): Promise<{
|
|
65
|
+
[k: string]: string;
|
|
66
|
+
}>;
|
|
57
67
|
/**
|
|
58
68
|
* get Map of `adapter-specific-name -> canonical-name`
|
|
59
69
|
*/
|
|
60
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: BaseOptions): Promise<
|
|
70
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: BaseOptions): Promise<{
|
|
71
|
+
[k: string]: string;
|
|
72
|
+
}>;
|
|
61
73
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
62
|
-
export declare type
|
|
74
|
+
export declare type AssemblyModel = ReturnType<typeof assemblyFactory>;
|
|
75
|
+
export declare type Assembly = Instance<AssemblyModel>;
|
|
63
76
|
export {};
|