@jbrowse/core 2.17.0 → 3.0.0
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/ArrayValue.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +7 -13
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +20 -25
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +2 -3
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +3 -7
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +5 -8
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +2 -3
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +7 -10
- package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +25 -55
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +3 -4
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +16 -34
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +2 -6
- package/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +2 -3
- package/BaseFeatureWidget/BaseFeatureDetail/Position.js +2 -5
- package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +3 -5
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.js +3 -5
- package/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +4 -5
- package/BaseFeatureWidget/BaseFeatureDetail/index.js +6 -14
- package/BaseFeatureWidget/BaseFeatureDetail/util.js +4 -13
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +10 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +48 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +3 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +33 -41
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +3 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +30 -29
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +8 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +28 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +2 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +11 -85
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +6 -25
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +3 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +11 -46
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +3 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +101 -96
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +2 -3
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +49 -53
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +2 -3
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +20 -55
- package/BaseFeatureWidget/SequenceFeatureDetails/hooks.d.ts +2 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/hooks.js +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +2 -56
- package/BaseFeatureWidget/SequenceFeatureDetails/model.js +4 -66
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +4 -5
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +6 -9
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +3 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +6 -7
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +3 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +5 -9
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +3 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +2 -4
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +2 -3
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +3 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +8 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/types.js +2 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/util.js +1 -5
- package/BaseFeatureWidget/stateModelFactory.d.ts +2 -93
- package/BaseFeatureWidget/stateModelFactory.js +3 -73
- package/BaseFeatureWidget/types.d.ts +3 -3
- package/BaseFeatureWidget/util.js +0 -4
- package/CorePlugin.d.ts +1 -1
- package/CorePlugin.js +19 -12
- package/Plugin.d.ts +2 -5
- package/Plugin.js +0 -3
- package/PluginLoader.d.ts +1 -1
- package/PluginLoader.js +2 -19
- package/PluginManager.d.ts +17 -32
- package/PluginManager.js +15 -41
- package/ReExports/DataGrid.js +0 -1
- package/ReExports/list.d.ts +0 -5
- package/ReExports/list.js +3 -5
- package/ReExports/modules.d.ts +26 -22
- package/ReExports/modules.js +45 -44
- package/TextSearch/BaseResults.d.ts +4 -4
- package/TextSearch/TextSearchManager.d.ts +4 -16
- package/TextSearch/TextSearchManager.js +1 -13
- package/assemblyManager/assembly.d.ts +5 -100
- package/assemblyManager/assembly.js +30 -146
- package/assemblyManager/assemblyConfigSchema.d.ts +1 -34
- package/assemblyManager/assemblyConfigSchema.js +12 -46
- package/assemblyManager/assemblyManager.d.ts +7 -57
- package/assemblyManager/assemblyManager.js +2 -57
- package/configuration/configurationSchema.d.ts +4 -4
- package/configuration/configurationSchema.js +2 -14
- package/configuration/configurationSlot.d.ts +2 -13
- package/configuration/configurationSlot.js +2 -32
- package/configuration/index.d.ts +2 -2
- package/configuration/index.js +2 -2
- package/configuration/types.d.ts +2 -3
- package/configuration/util.d.ts +1 -25
- package/configuration/util.js +19 -56
- package/data_adapters/BaseAdapter/BaseAdapter.d.ts +4 -14
- package/data_adapters/BaseAdapter/BaseAdapter.js +1 -10
- package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +5 -114
- package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +3 -79
- package/data_adapters/BaseAdapter/BaseOptions.d.ts +2 -2
- package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +2 -2
- package/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +3 -6
- package/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +3 -3
- package/data_adapters/BaseAdapter/RegionsAdapter.d.ts +3 -3
- package/data_adapters/BaseAdapter/index.d.ts +4 -4
- package/data_adapters/BaseAdapter/types.d.ts +2 -2
- package/data_adapters/BaseAdapter/util.d.ts +6 -6
- package/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +1 -1
- package/data_adapters/CytobandAdapter/CytobandAdapter.js +2 -6
- package/data_adapters/CytobandAdapter/configSchema.d.ts +0 -3
- package/data_adapters/CytobandAdapter/configSchema.js +1 -7
- package/data_adapters/CytobandAdapter/index.d.ts +1 -1
- package/data_adapters/CytobandAdapter/index.js +21 -8
- package/data_adapters/dataAdapterCache.d.ts +4 -22
- package/data_adapters/dataAdapterCache.js +2 -28
- package/data_adapters/util.d.ts +1 -0
- package/data_adapters/util.js +10 -0
- package/package.json +8 -11
- package/pluggableElementTypes/AdapterType.d.ts +2 -2
- package/pluggableElementTypes/AddTrackWorkflowType.d.ts +2 -2
- package/pluggableElementTypes/ConnectionType.d.ts +3 -3
- package/pluggableElementTypes/DisplayType.d.ts +3 -9
- package/pluggableElementTypes/InternetAccountType.d.ts +2 -2
- package/pluggableElementTypes/PluggableElementBase.d.ts +1 -1
- package/pluggableElementTypes/PluggableElementBase.js +2 -2
- package/pluggableElementTypes/RpcMethodType.d.ts +5 -11
- package/pluggableElementTypes/RpcMethodType.js +7 -19
- package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +9 -0
- package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +35 -0
- package/pluggableElementTypes/TextSearchAdapterType.d.ts +2 -2
- package/pluggableElementTypes/TrackType.d.ts +3 -3
- package/pluggableElementTypes/ViewType.d.ts +3 -3
- package/pluggableElementTypes/WidgetType.d.ts +4 -3
- package/pluggableElementTypes/index.d.ts +11 -11
- package/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +2 -29
- package/pluggableElementTypes/models/BaseConnectionModelFactory.js +1 -28
- package/pluggableElementTypes/models/BaseDisplayModel.d.ts +3 -83
- package/pluggableElementTypes/models/BaseDisplayModel.js +2 -69
- package/pluggableElementTypes/models/BaseTrackModel.d.ts +4 -46
- package/pluggableElementTypes/models/BaseTrackModel.js +9 -63
- package/pluggableElementTypes/models/BaseViewModel.d.ts +2 -42
- package/pluggableElementTypes/models/BaseViewModel.js +2 -38
- package/pluggableElementTypes/models/InternetAccountModel.d.ts +3 -119
- package/pluggableElementTypes/models/InternetAccountModel.js +3 -123
- package/pluggableElementTypes/models/baseConnectionConfig.d.ts +0 -6
- package/pluggableElementTypes/models/baseConnectionConfig.js +1 -13
- package/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +0 -15
- package/pluggableElementTypes/models/baseInternetAccountConfig.js +1 -23
- package/pluggableElementTypes/models/baseTrackConfig.d.ts +2 -53
- package/pluggableElementTypes/models/baseTrackConfig.js +1 -58
- package/pluggableElementTypes/renderers/BoxRendererType.d.ts +7 -15
- package/pluggableElementTypes/renderers/BoxRendererType.js +3 -14
- package/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +4 -4
- package/pluggableElementTypes/renderers/CircularChordRendererType.js +3 -8
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.d.ts +6 -21
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +2 -25
- package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +5 -47
- package/pluggableElementTypes/renderers/FeatureRendererType.js +15 -68
- package/pluggableElementTypes/renderers/RendererType.d.ts +5 -9
- package/pluggableElementTypes/renderers/RendererType.js +3 -7
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.d.ts +3 -4
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.js +11 -76
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.d.ts +2 -3
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +10 -74
- package/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +9 -49
- package/pluggableElementTypes/renderers/ServerSideRendererType.js +10 -60
- package/pluggableElementTypes/renderers/index.d.ts +1 -1
- package/pluggableElementTypes/renderers/util/serializableFilterChain.js +1 -3
- package/rpc/BaseRpcDriver.d.ts +3 -4
- package/rpc/BaseRpcDriver.js +20 -80
- package/rpc/MainThreadRpcDriver.d.ts +3 -7
- package/rpc/MainThreadRpcDriver.js +0 -5
- package/rpc/RpcManager.d.ts +3 -3
- package/rpc/RpcManager.js +2 -4
- package/rpc/WebWorkerRpcDriver.d.ts +3 -2
- package/rpc/WebWorkerRpcDriver.js +2 -13
- package/rpc/baseRpcConfig.d.ts +0 -3
- package/rpc/baseRpcConfig.js +1 -7
- package/rpc/configSchema.d.ts +0 -6
- package/rpc/configSchema.js +2 -11
- package/rpc/mainThreadRpcConfig.js +1 -7
- package/rpc/methods/CoreFreeResources.d.ts +0 -6
- package/rpc/methods/CoreFreeResources.js +2 -9
- package/rpc/methods/CoreGetFeatureDensityStats.d.ts +4 -5
- package/rpc/methods/CoreGetFeatureDensityStats.js +1 -1
- package/rpc/methods/CoreGetFeatureDetails.d.ts +2 -7
- package/rpc/methods/CoreGetFeatureDetails.js +0 -5
- package/rpc/methods/CoreGetFeatures.d.ts +5 -5
- package/rpc/methods/CoreGetFeatures.js +4 -5
- package/rpc/methods/CoreGetFileInfo.d.ts +1 -2
- package/rpc/methods/CoreGetFileInfo.js +1 -1
- package/rpc/methods/CoreGetMetadata.d.ts +1 -2
- package/rpc/methods/CoreGetMetadata.js +1 -1
- package/rpc/methods/CoreGetRefNames.d.ts +1 -2
- package/rpc/methods/CoreGetRefNames.js +1 -1
- package/rpc/methods/CoreRender.d.ts +2 -6
- package/rpc/methods/CoreRender.js +5 -7
- package/rpc/methods/util.d.ts +3 -3
- package/rpc/methods/util.js +0 -1
- package/rpc/webWorkerRpcConfig.js +1 -7
- package/stories/JBrowseCore.stories.d.ts +1 -1
- package/stories/JBrowseCore.stories.js +3 -3
- package/stories/examples/WithSequencePanel.d.ts +6 -7
- package/stories/examples/WithSequencePanel.js +9 -9
- package/tsconfig.build.tsbuildinfo +1 -1
- package/ui/AppLogo.d.ts +2 -3
- package/ui/AppLogo.js +2 -7
- package/ui/AssemblySelector.d.ts +5 -5
- package/ui/AssemblySelector.js +11 -36
- package/ui/BaseTooltip.d.ts +1 -2
- package/ui/BaseTooltip.js +10 -17
- package/ui/CascadingMenu.d.ts +3 -4
- package/ui/CascadingMenu.js +18 -57
- package/ui/CascadingMenuButton.d.ts +2 -3
- package/ui/CascadingMenuButton.js +18 -42
- package/ui/ColorPicker.d.ts +3 -4
- package/ui/ColorPicker.js +33 -37
- package/ui/Dialog.d.ts +2 -3
- package/ui/Dialog.js +15 -27
- package/ui/DraggableDialog.d.ts +5 -0
- package/ui/DraggableDialog.js +32 -0
- package/ui/DropDownMenu.d.ts +2 -3
- package/ui/DropDownMenu.js +10 -36
- package/ui/EditableTypography.d.ts +2 -3
- package/ui/EditableTypography.js +30 -59
- package/ui/ErrorBoundary.d.ts +3 -2
- package/ui/ErrorBoundary.js +3 -25
- package/ui/ErrorMessage.d.ts +1 -2
- package/ui/ErrorMessage.js +27 -34
- package/ui/ErrorMessageStackTraceDialog.d.ts +1 -2
- package/ui/ErrorMessageStackTraceDialog.js +13 -54
- package/ui/FactoryResetDialog.d.ts +1 -2
- package/ui/FactoryResetDialog.js +8 -13
- package/ui/FatalErrorDialog.d.ts +1 -2
- package/ui/FatalErrorDialog.js +11 -42
- package/ui/FileSelector/FileSelector.d.ts +5 -5
- package/ui/FileSelector/FileSelector.js +41 -80
- package/ui/FileSelector/LocalFileChooser.d.ts +2 -3
- package/ui/FileSelector/LocalFileChooser.js +17 -29
- package/ui/FileSelector/UrlChooser.d.ts +5 -5
- package/ui/FileSelector/UrlChooser.js +6 -7
- package/ui/Icons.d.ts +10 -11
- package/ui/Icons.js +10 -25
- package/ui/LoadingEllipses.d.ts +2 -3
- package/ui/LoadingEllipses.js +4 -7
- package/ui/Logo.d.ts +2 -3
- package/ui/Logo.js +5 -23
- package/ui/Menu.d.ts +3 -4
- package/ui/Menu.js +85 -122
- package/ui/MenuButton.d.ts +2 -3
- package/ui/MenuButton.js +11 -35
- package/ui/PrerenderedCanvas.d.ts +1 -2
- package/ui/PrerenderedCanvas.js +3 -25
- package/ui/RedErrorMessageBox.d.ts +1 -2
- package/ui/RedErrorMessageBox.js +2 -5
- package/ui/ResizeHandle.d.ts +1 -2
- package/ui/ResizeHandle.js +5 -27
- package/ui/ReturnToImportFormDialog.d.ts +1 -2
- package/ui/ReturnToImportFormDialog.js +8 -13
- package/ui/SanitizedHTML.d.ts +2 -3
- package/ui/SanitizedHTML.js +4 -24
- package/ui/Snackbar.d.ts +3 -4
- package/ui/Snackbar.js +41 -21
- package/ui/SnackbarContents.d.ts +5 -0
- package/ui/SnackbarContents.js +16 -0
- package/ui/SnackbarModel.d.ts +1 -26
- package/ui/SnackbarModel.js +22 -39
- package/ui/colors.d.ts +1 -1
- package/ui/colors.js +2 -2
- package/ui/index.d.ts +0 -2
- package/ui/index.js +1 -5
- package/ui/react-colorful.js +17 -10
- package/ui/theme.d.ts +1 -1
- package/ui/theme.js +7 -40
- package/util/Base1DUtils.d.ts +1 -1
- package/util/Base1DUtils.js +0 -12
- package/util/Base1DViewModel.d.ts +4 -81
- package/util/Base1DViewModel.js +4 -108
- package/util/QuickLRU.js +0 -9
- package/util/TimeTraveller.js +0 -4
- package/util/aborting.d.ts +0 -20
- package/util/aborting.js +0 -31
- package/util/analytics.js +1 -12
- package/util/blockTypes.d.ts +0 -11
- package/util/blockTypes.js +0 -13
- package/util/calculateDynamicBlocks.d.ts +1 -20
- package/util/calculateDynamicBlocks.js +1 -22
- package/util/calculateStaticBlocks.d.ts +2 -2
- package/util/calculateStaticBlocks.js +0 -2
- package/util/color/cssColorsLevel4.js +0 -1
- package/util/color/index.d.ts +0 -19
- package/util/color/index.js +0 -30
- package/util/compositeMap.js +0 -2
- package/util/dedupe.js +0 -1
- package/util/formatFastaStrings.d.ts +0 -13
- package/util/formatFastaStrings.js +0 -13
- package/util/idMaker.d.ts +1 -1
- package/util/idMaker.js +16 -12
- package/util/index.d.ts +27 -173
- package/util/index.js +53 -293
- package/util/io/RemoteFileWithRangeCache.d.ts +4 -5
- package/util/io/RemoteFileWithRangeCache.js +12 -14
- package/util/io/index.d.ts +3 -4
- package/util/io/index.js +5 -19
- package/util/jexl.js +3 -13
- package/util/jexlStrings.d.ts +0 -6
- package/util/jexlStrings.js +0 -8
- package/util/layouts/BaseLayout.d.ts +1 -1
- package/util/layouts/GranularRectLayout.d.ts +1 -17
- package/util/layouts/GranularRectLayout.js +4 -81
- package/util/layouts/MultiLayout.d.ts +1 -6
- package/util/layouts/MultiLayout.js +0 -6
- package/util/layouts/PrecomputedLayout.d.ts +1 -4
- package/util/layouts/PrecomputedLayout.js +0 -5
- package/util/layouts/PrecomputedMultiLayout.js +0 -2
- package/util/layouts/SceneGraph.d.ts +0 -12
- package/util/layouts/SceneGraph.js +0 -13
- package/util/makeAbortableReaction.d.ts +2 -0
- package/util/makeAbortableReaction.js +50 -0
- package/util/map-obj.js +0 -4
- package/util/mst-reflection.d.ts +1 -14
- package/util/mst-reflection.js +1 -28
- package/util/nanoid.d.ts +1 -1
- package/util/nanoid.js +0 -31
- package/util/nextTick.d.ts +1 -0
- package/util/nextTick.js +6 -0
- package/util/offscreenCanvasPonyfill.d.ts +0 -1
- package/util/offscreenCanvasPonyfill.js +1 -9
- package/util/offscreenCanvasUtils.d.ts +2 -3
- package/util/offscreenCanvasUtils.js +22 -21
- package/util/range.d.ts +0 -25
- package/util/range.js +0 -34
- package/util/rxjs.d.ts +3 -7
- package/util/rxjs.js +2 -9
- package/util/simpleFeature.d.ts +0 -50
- package/util/simpleFeature.js +0 -35
- package/util/stats.d.ts +3 -26
- package/util/stats.js +0 -25
- package/util/stopToken.d.ts +3 -0
- package/util/stopToken.js +29 -0
- package/util/tracks.d.ts +4 -26
- package/util/tracks.js +8 -33
- package/util/types/index.d.ts +14 -30
- package/util/types/index.js +5 -14
- package/util/types/mst.js +0 -9
- package/util/types/util.d.ts +2 -9
- package/util/useMeasure.d.ts +1 -1
- package/util/useMeasure.js +0 -1
- package/util/when.d.ts +1 -15
- package/util/when.js +3 -70
- package/rpc/remoteAbortSignals.d.ts +0 -36
- package/rpc/remoteAbortSignals.js +0 -79
package/ReExports/list.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/**
|
|
4
|
-
* Used by plugin build systems to determine if a module is provided by JBrowse
|
|
5
|
-
* globally and thus doesn't need to be bundled. A check in ./modules.tsx makes
|
|
6
|
-
* sure this is in sync with the re-exported modules.
|
|
7
|
-
*/
|
|
8
3
|
exports.default = [
|
|
9
4
|
'mobx',
|
|
10
5
|
'mobx-state-tree',
|
|
11
6
|
'react',
|
|
12
7
|
'react/jsx-runtime',
|
|
13
8
|
'react-dom',
|
|
9
|
+
'react-dom/client',
|
|
14
10
|
'mobx-react',
|
|
15
11
|
'@mui/x-data-grid',
|
|
16
12
|
'@mui/material/utils',
|
|
@@ -62,6 +58,7 @@ exports.default = [
|
|
|
62
58
|
'@material-ui/core/FormHelperText',
|
|
63
59
|
'@material-ui/core/FormGroup',
|
|
64
60
|
'@material-ui/core/Grid',
|
|
61
|
+
'@material-ui/core/Grid2',
|
|
65
62
|
'@material-ui/core/Grow',
|
|
66
63
|
'@material-ui/core/Icon',
|
|
67
64
|
'@material-ui/core/IconButton',
|
|
@@ -171,6 +168,7 @@ exports.default = [
|
|
|
171
168
|
'@mui/material/FormHelperText',
|
|
172
169
|
'@mui/material/FormGroup',
|
|
173
170
|
'@mui/material/Grid',
|
|
171
|
+
'@mui/material/Grid2',
|
|
174
172
|
'@mui/material/Grow',
|
|
175
173
|
'@mui/material/Icon',
|
|
176
174
|
'@mui/material/IconButton',
|
package/ReExports/modules.d.ts
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import * as mobx from 'mobx';
|
|
5
|
-
import * as mst from 'mobx-state-tree';
|
|
6
|
-
import * as mxreact from 'mobx-react';
|
|
1
|
+
import type { LazyExoticComponent } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useTheme } from '@mui/material';
|
|
7
4
|
import * as MUIStyles from '@mui/material/styles';
|
|
8
5
|
import * as MUIUtils from '@mui/material/utils';
|
|
9
6
|
import { useGridApiContext } from '@mui/x-data-grid';
|
|
7
|
+
import * as mobx from 'mobx';
|
|
8
|
+
import * as mxreact from 'mobx-react';
|
|
9
|
+
import * as mst from 'mobx-state-tree';
|
|
10
|
+
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
11
|
+
import * as ReactDom from 'react-dom';
|
|
12
|
+
import * as ReactDomClient from 'react-dom/client';
|
|
13
|
+
import Plugin from '../Plugin';
|
|
14
|
+
import * as Configuration from '../configuration';
|
|
10
15
|
import * as BaseAdapterExports from '../data_adapters/BaseAdapter';
|
|
11
16
|
import * as pluggableElementTypes from '../pluggableElementTypes';
|
|
12
17
|
import * as pluggableElementTypeModels from '../pluggableElementTypes/models';
|
|
13
|
-
import * as ServerSideRendererType from '../pluggableElementTypes/renderers/ServerSideRendererType';
|
|
14
18
|
import * as BoxRendererType from '../pluggableElementTypes/renderers/BoxRendererType';
|
|
15
19
|
import * as FeatureRendererType from '../pluggableElementTypes/renderers/FeatureRendererType';
|
|
16
20
|
import * as RendererType from '../pluggableElementTypes/renderers/RendererType';
|
|
17
|
-
import * as
|
|
18
|
-
import Plugin from '../Plugin';
|
|
21
|
+
import * as ServerSideRendererType from '../pluggableElementTypes/renderers/ServerSideRendererType';
|
|
19
22
|
import * as coreUi from '../ui';
|
|
20
23
|
import * as coreUtil from '../util';
|
|
21
24
|
import * as coreColor from '../util/color';
|
|
22
|
-
import * as coreLayouts from '../util/layouts';
|
|
23
|
-
import * as trackUtils from '../util/tracks';
|
|
24
25
|
import * as coreIo from '../util/io';
|
|
26
|
+
import * as coreLayouts from '../util/layouts';
|
|
25
27
|
import * as coreMstReflection from '../util/mst-reflection';
|
|
26
28
|
import * as rxjs from '../util/rxjs';
|
|
29
|
+
import * as trackUtils from '../util/tracks';
|
|
27
30
|
import * as mstTypes from '../util/types/mst';
|
|
28
31
|
declare const libs: {
|
|
29
|
-
'@material-ui/lab/ToggleButton':
|
|
30
|
-
'@material-ui/lab/ToggleButtonGroup':
|
|
31
|
-
'@material-ui/lab/Autocomplete':
|
|
32
|
-
'@material-ui/lab/Alert':
|
|
32
|
+
'@material-ui/lab/ToggleButton': LazyExoticComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").ToggleButtonTypeMap<{}, "button">>>;
|
|
33
|
+
'@material-ui/lab/ToggleButtonGroup': LazyExoticComponent<typeof import("@mui/material").ToggleButtonGroup>;
|
|
34
|
+
'@material-ui/lab/Autocomplete': LazyExoticComponent<typeof import("@mui/material").Autocomplete>;
|
|
35
|
+
'@material-ui/lab/Alert': LazyExoticComponent<typeof import("@mui/material").Alert>;
|
|
33
36
|
'@material-ui/lab': {
|
|
34
|
-
Alert:
|
|
35
|
-
Autocomplete:
|
|
36
|
-
ToggleButton:
|
|
37
|
-
ToggleButtonGroup:
|
|
37
|
+
Alert: LazyExoticComponent<typeof import("@mui/material").Alert>;
|
|
38
|
+
Autocomplete: LazyExoticComponent<typeof import("@mui/material").Autocomplete>;
|
|
39
|
+
ToggleButton: LazyExoticComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").ToggleButtonTypeMap<{}, "button">>>;
|
|
40
|
+
ToggleButtonGroup: LazyExoticComponent<typeof import("@mui/material").ToggleButtonGroup>;
|
|
38
41
|
};
|
|
39
42
|
'@jbrowse/core/Plugin': typeof Plugin;
|
|
40
43
|
'@jbrowse/core/pluggableElementTypes': typeof pluggableElementTypes;
|
|
@@ -124,10 +127,11 @@ declare const libs: {
|
|
|
124
127
|
react: typeof React;
|
|
125
128
|
'react/jsx-runtime': typeof ReactJSXRuntime;
|
|
126
129
|
'react-dom': typeof ReactDom;
|
|
130
|
+
'react-dom/client': typeof ReactDomClient;
|
|
127
131
|
'mobx-react': typeof mxreact;
|
|
128
132
|
'@mui/x-data-grid': {
|
|
129
133
|
useGridApiContext: typeof useGridApiContext;
|
|
130
|
-
useGridApiRef: <Api extends import("@mui/x-data-grid").GridApiCommon = import("@mui/x-data-grid/internals").GridApiCommunity>() =>
|
|
134
|
+
useGridApiRef: <Api extends import("@mui/x-data-grid").GridApiCommon = import("@mui/x-data-grid/internals").GridApiCommunity>() => import("@mui/x-internals/types").RefObject<Api>;
|
|
131
135
|
useGridRootProps: () => import("@mui/x-data-grid/internals").DataGridProcessedProps;
|
|
132
136
|
};
|
|
133
137
|
'@mui/material/utils': typeof MUIUtils;
|
|
@@ -147,13 +151,13 @@ declare const libs: {
|
|
|
147
151
|
};
|
|
148
152
|
};
|
|
149
153
|
'@material-ui/core': {
|
|
150
|
-
useTheme: typeof
|
|
154
|
+
useTheme: typeof useTheme;
|
|
151
155
|
alpha: typeof MUIStyles.alpha;
|
|
152
156
|
makeStyles: (args: any) => () => Record<string, string>;
|
|
153
157
|
};
|
|
154
158
|
'@mui/material': {
|
|
155
159
|
alpha: typeof MUIStyles.alpha;
|
|
156
|
-
useTheme: typeof
|
|
160
|
+
useTheme: typeof useTheme;
|
|
157
161
|
};
|
|
158
162
|
'@mui/material/styles': {
|
|
159
163
|
MUIStyles: typeof MUIStyles;
|
package/ReExports/modules.js
CHANGED
|
@@ -15,57 +15,67 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const react_1 =
|
|
32
|
-
const
|
|
33
|
-
const ReactDom = __importStar(require("react-dom"));
|
|
34
|
-
const mobx = __importStar(require("mobx"));
|
|
35
|
-
const mst = __importStar(require("mobx-state-tree"));
|
|
36
|
-
const mxreact = __importStar(require("mobx-react"));
|
|
37
|
-
const mui_1 = require("tss-react/mui");
|
|
39
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
+
const React = __importStar(require("react"));
|
|
41
|
+
const react_1 = require("react");
|
|
42
|
+
const material_1 = require("@mui/material");
|
|
38
43
|
const MUIStyles = __importStar(require("@mui/material/styles"));
|
|
39
44
|
const MUIUtils = __importStar(require("@mui/material/utils"));
|
|
40
|
-
const material_1 = require("@mui/material");
|
|
41
45
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
42
|
-
|
|
46
|
+
const mobx = __importStar(require("mobx"));
|
|
47
|
+
const mxreact = __importStar(require("mobx-react"));
|
|
48
|
+
const mst = __importStar(require("mobx-state-tree"));
|
|
49
|
+
const ReactJSXRuntime = __importStar(require("react/jsx-runtime"));
|
|
50
|
+
const ReactDom = __importStar(require("react-dom"));
|
|
51
|
+
const ReactDomClient = __importStar(require("react-dom/client"));
|
|
52
|
+
const mui_1 = require("tss-react/mui");
|
|
53
|
+
const Plugin_1 = __importDefault(require("../Plugin"));
|
|
54
|
+
const Configuration = __importStar(require("../configuration"));
|
|
43
55
|
const BaseAdapterExports = __importStar(require("../data_adapters/BaseAdapter"));
|
|
44
|
-
const Base1DViewModel_1 = __importDefault(require("../util/Base1DViewModel"));
|
|
45
56
|
const pluggableElementTypes = __importStar(require("../pluggableElementTypes"));
|
|
46
|
-
const
|
|
57
|
+
const list_1 = __importDefault(require("./list"));
|
|
47
58
|
const AdapterType_1 = __importDefault(require("../pluggableElementTypes/AdapterType"));
|
|
48
59
|
const DisplayType_1 = __importDefault(require("../pluggableElementTypes/DisplayType"));
|
|
49
60
|
const TrackType_1 = __importDefault(require("../pluggableElementTypes/TrackType"));
|
|
61
|
+
const ViewType_1 = __importDefault(require("../pluggableElementTypes/ViewType"));
|
|
50
62
|
const WidgetType_1 = __importDefault(require("../pluggableElementTypes/WidgetType"));
|
|
51
63
|
const pluggableElementTypeModels = __importStar(require("../pluggableElementTypes/models"));
|
|
52
|
-
const ServerSideRendererType = __importStar(require("../pluggableElementTypes/renderers/ServerSideRendererType"));
|
|
53
|
-
const CircularChordRendererType_1 = __importDefault(require("../pluggableElementTypes/renderers/CircularChordRendererType"));
|
|
54
64
|
const BoxRendererType = __importStar(require("../pluggableElementTypes/renderers/BoxRendererType"));
|
|
65
|
+
const CircularChordRendererType_1 = __importDefault(require("../pluggableElementTypes/renderers/CircularChordRendererType"));
|
|
55
66
|
const FeatureRendererType = __importStar(require("../pluggableElementTypes/renderers/FeatureRendererType"));
|
|
56
67
|
const RendererType = __importStar(require("../pluggableElementTypes/renderers/RendererType"));
|
|
57
|
-
const
|
|
58
|
-
const Plugin_1 = __importDefault(require("../Plugin"));
|
|
68
|
+
const ServerSideRendererType = __importStar(require("../pluggableElementTypes/renderers/ServerSideRendererType"));
|
|
59
69
|
const coreUi = __importStar(require("../ui"));
|
|
60
70
|
const coreUtil = __importStar(require("../util"));
|
|
71
|
+
const Base1DViewModel_1 = __importDefault(require("../util/Base1DViewModel"));
|
|
61
72
|
const coreColor = __importStar(require("../util/color"));
|
|
62
|
-
const coreLayouts = __importStar(require("../util/layouts"));
|
|
63
|
-
const trackUtils = __importStar(require("../util/tracks"));
|
|
64
73
|
const coreIo = __importStar(require("../util/io"));
|
|
74
|
+
const coreLayouts = __importStar(require("../util/layouts"));
|
|
65
75
|
const coreMstReflection = __importStar(require("../util/mst-reflection"));
|
|
66
76
|
const rxjs = __importStar(require("../util/rxjs"));
|
|
77
|
+
const trackUtils = __importStar(require("../util/tracks"));
|
|
67
78
|
const mstTypes = __importStar(require("../util/types/mst"));
|
|
68
|
-
const list_1 = __importDefault(require("./list"));
|
|
69
79
|
const Entries = {
|
|
70
80
|
Accordion: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/Accordion')))),
|
|
71
81
|
AccordionActions: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/AccordionActions')))),
|
|
@@ -109,6 +119,7 @@ const Entries = {
|
|
|
109
119
|
FormHelperText: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/FormHelperText')))),
|
|
110
120
|
FormGroup: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/FormGroup')))),
|
|
111
121
|
Grid: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/Grid')))),
|
|
122
|
+
Grid2: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/Grid2')))),
|
|
112
123
|
Grow: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/Grow')))),
|
|
113
124
|
Icon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/Icon')))),
|
|
114
125
|
IconButton: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/IconButton')))),
|
|
@@ -178,8 +189,7 @@ const Entries = {
|
|
|
178
189
|
Typography: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/material/Typography')))),
|
|
179
190
|
};
|
|
180
191
|
const LazyMUICore = Object.fromEntries(Object.entries(Entries).map(([key, ReactComponent]) => {
|
|
181
|
-
const Component = react_1.
|
|
182
|
-
react_1.default.createElement(ReactComponent, { ...props, ref: ref }))));
|
|
192
|
+
const Component = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(ReactComponent, { ...props, ref: ref }) })));
|
|
183
193
|
Component.displayName = key;
|
|
184
194
|
return [key, Component];
|
|
185
195
|
}));
|
|
@@ -346,26 +356,23 @@ const DataGridEntries = {
|
|
|
346
356
|
}))),
|
|
347
357
|
};
|
|
348
358
|
const LazyDataGridComponents = Object.fromEntries(Object.entries(DataGridEntries).map(([key, ReactComponent]) => {
|
|
349
|
-
const Component = react_1.
|
|
350
|
-
react_1.default.createElement(ReactComponent, { ...props, ref: ref }))));
|
|
359
|
+
const Component = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(ReactComponent, { ...props, ref: ref }) })));
|
|
351
360
|
Component.displayName = key;
|
|
352
361
|
return [key, Component];
|
|
353
362
|
}));
|
|
354
|
-
const LazyAttributes = react_1.
|
|
355
|
-
react_1.default.createElement(Attributes, { ...props, ref: ref }))));
|
|
363
|
+
const LazyAttributes = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(Attributes, { ...props, ref: ref }) })));
|
|
356
364
|
LazyAttributes.displayName = 'Attributes';
|
|
357
|
-
const LazyFeatureDetails = react_1.
|
|
358
|
-
react_1.default.createElement(FeatureDetails, { ...props, ref: ref }))));
|
|
365
|
+
const LazyFeatureDetails = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(FeatureDetails, { ...props, ref: ref }) })));
|
|
359
366
|
LazyFeatureDetails.displayName = 'FeatureDetails';
|
|
360
|
-
const LazyBaseCard = react_1.
|
|
361
|
-
react_1.default.createElement(BaseCard, { ...props, ref: ref }))));
|
|
367
|
+
const LazyBaseCard = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(BaseCard, { ...props, ref: ref }) })));
|
|
362
368
|
LazyBaseCard.displayName = 'BaseCard';
|
|
363
369
|
const libs = {
|
|
364
370
|
mobx,
|
|
365
371
|
'mobx-state-tree': mst,
|
|
366
|
-
react:
|
|
372
|
+
react: React,
|
|
367
373
|
'react/jsx-runtime': ReactJSXRuntime,
|
|
368
374
|
'react-dom': ReactDom,
|
|
375
|
+
'react-dom/client': ReactDomClient,
|
|
369
376
|
'mobx-react': mxreact,
|
|
370
377
|
'@mui/x-data-grid': {
|
|
371
378
|
useGridApiContext: x_data_grid_1.useGridApiContext,
|
|
@@ -373,7 +380,6 @@ const libs = {
|
|
|
373
380
|
useGridRootProps: x_data_grid_1.useGridRootProps,
|
|
374
381
|
...LazyDataGridComponents,
|
|
375
382
|
},
|
|
376
|
-
// special case so plugins can easily use @mui/icons-material; don't remove
|
|
377
383
|
'@mui/material/utils': MUIUtils,
|
|
378
384
|
'@material-ui/core/utils': MUIUtils,
|
|
379
385
|
'tss-react/mui': { makeStyles: mui_1.makeStyles },
|
|
@@ -391,8 +397,6 @@ const libs = {
|
|
|
391
397
|
alpha: MUIStyles.alpha,
|
|
392
398
|
useTheme: MUIStyles.useTheme,
|
|
393
399
|
},
|
|
394
|
-
// end special case
|
|
395
|
-
// material-ui subcomponents, should get rid of these
|
|
396
400
|
'@mui/material/styles': {
|
|
397
401
|
MUIStyles,
|
|
398
402
|
makeStyles: (args) => {
|
|
@@ -409,7 +413,6 @@ const libs = {
|
|
|
409
413
|
},
|
|
410
414
|
...MaterialPrefixMUI,
|
|
411
415
|
...MuiPrefixMUI,
|
|
412
|
-
// these are core in @mui/material, but used to be in @material-ui/lab
|
|
413
416
|
'@material-ui/lab/ToggleButton': Entries.ToggleButton,
|
|
414
417
|
'@material-ui/lab/ToggleButtonGroup': Entries.ToggleButtonGroup,
|
|
415
418
|
'@material-ui/lab/Autocomplete': Entries.Autocomplete,
|
|
@@ -452,8 +455,6 @@ const libs = {
|
|
|
452
455
|
'@jbrowse/core/data_adapters/BaseAdapter': BaseAdapterExports,
|
|
453
456
|
};
|
|
454
457
|
const libsList = Object.keys(libs);
|
|
455
|
-
// make sure that all the items in the ReExports/list array (used by build
|
|
456
|
-
// systems and such) are included here, and vice versa
|
|
457
458
|
const inLibsOnly = libsList.filter(mod => !list_1.default.includes(mod));
|
|
458
459
|
if (inLibsOnly.length > 0) {
|
|
459
460
|
throw new Error(`The following modules are in the modules libs, but not the re-exports list: ${inLibsOnly.join(', ')}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { SearchType } from '../data_adapters/BaseAdapter';
|
|
3
|
+
import type TextSearchAdapterType from '../pluggableElementTypes/TextSearchAdapterType';
|
|
4
4
|
export interface BaseResultArgs {
|
|
5
5
|
label: string;
|
|
6
6
|
displayString?: string;
|
|
@@ -30,7 +30,7 @@ export default class BaseResult {
|
|
|
30
30
|
constructor(args: BaseResultArgs);
|
|
31
31
|
getLabel(): string;
|
|
32
32
|
getDisplayString(): string;
|
|
33
|
-
getRenderingComponent(): React.ReactElement<
|
|
33
|
+
getRenderingComponent(): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
|
|
34
34
|
getTrackId(): string | undefined;
|
|
35
35
|
getScore(): number;
|
|
36
36
|
updateScore(newScore: number): number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import BaseResult from './BaseResults';
|
|
2
|
-
import PluginManager from '../PluginManager';
|
|
3
1
|
import QuickLRU from '../util/QuickLRU';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import type BaseResult from './BaseResults';
|
|
3
|
+
import type PluginManager from '../PluginManager';
|
|
4
|
+
import type { AnyConfigurationModel } from '../configuration';
|
|
5
|
+
import type { BaseTextSearchAdapter, BaseTextSearchArgs } from '../data_adapters/BaseAdapter';
|
|
6
6
|
export interface SearchScope {
|
|
7
7
|
includeAggregateIndexes: boolean;
|
|
8
8
|
assemblyName: string;
|
|
@@ -28,18 +28,6 @@ export default class TextSearchManager {
|
|
|
28
28
|
[x: string]: any;
|
|
29
29
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("../configuration").AnyConfigurationSchemaType>);
|
|
30
30
|
} & import("mobx-state-tree").IStateTreeNode<import("../configuration").AnyConfigurationSchemaType>)[];
|
|
31
|
-
/**
|
|
32
|
-
* Returns list of relevant results given a search query and options
|
|
33
|
-
*
|
|
34
|
-
* @param args - search options/arguments include: search query limit of
|
|
35
|
-
* results to return, searchType...prefix | full | exact", etc.
|
|
36
|
-
*/
|
|
37
31
|
search(args: BaseTextSearchArgs, searchScope: SearchScope, rankFn: (results: BaseResult[]) => BaseResult[]): Promise<BaseResult[]>;
|
|
38
|
-
/**
|
|
39
|
-
* Returns array of revelevant and sorted results
|
|
40
|
-
* @param results - array of results from all text search adapters
|
|
41
|
-
* @param rankFn - function that updates results scores
|
|
42
|
-
* based on more relevance
|
|
43
|
-
*/
|
|
44
32
|
sortResults(results: BaseResult[], rankFn: (results: BaseResult[]) => BaseResult[]): BaseResult[];
|
|
45
33
|
}
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const QuickLRU_1 = __importDefault(require("../util/QuickLRU"));
|
|
7
6
|
const configuration_1 = require("../configuration");
|
|
7
|
+
const QuickLRU_1 = __importDefault(require("../util/QuickLRU"));
|
|
8
8
|
class TextSearchManager {
|
|
9
9
|
constructor(pluginManager) {
|
|
10
10
|
this.pluginManager = pluginManager;
|
|
@@ -53,23 +53,11 @@ class TextSearchManager {
|
|
|
53
53
|
})
|
|
54
54
|
.map(conf => conf.textSearching.textSearchAdapter);
|
|
55
55
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Returns list of relevant results given a search query and options
|
|
58
|
-
*
|
|
59
|
-
* @param args - search options/arguments include: search query limit of
|
|
60
|
-
* results to return, searchType...prefix | full | exact", etc.
|
|
61
|
-
*/
|
|
62
56
|
async search(args, searchScope, rankFn) {
|
|
63
57
|
const adapters = await this.loadTextSearchAdapters(searchScope);
|
|
64
58
|
const results = await Promise.all(adapters.map(a => a.searchIndex(args)));
|
|
65
59
|
return this.sortResults(results.flat(), rankFn);
|
|
66
60
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Returns array of revelevant and sorted results
|
|
69
|
-
* @param results - array of results from all text search adapters
|
|
70
|
-
* @param rankFn - function that updates results scores
|
|
71
|
-
* based on more relevance
|
|
72
|
-
*/
|
|
73
61
|
sortResults(results, rankFn) {
|
|
74
62
|
return rankFn(results.sort((a, b) => -b.getLabel().localeCompare(a.getLabel()))).sort((r1, r2) => r1.getScore() - r2.getScore());
|
|
75
63
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseOptions } from '../data_adapters/BaseAdapter';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import type PluginManager from '../PluginManager';
|
|
2
|
+
import type { BaseOptions } from '../data_adapters/BaseAdapter';
|
|
3
|
+
import type RpcManager from '../rpc/RpcManager';
|
|
4
|
+
import type { Feature, Region } from '../util';
|
|
5
|
+
import type { IAnyType, Instance } from 'mobx-state-tree';
|
|
6
6
|
type AdapterConf = Record<string, unknown>;
|
|
7
7
|
type RefNameAliases = Record<string, string>;
|
|
8
8
|
export interface RefNameMap {
|
|
@@ -15,13 +15,7 @@ export interface BasicRegion {
|
|
|
15
15
|
refName: string;
|
|
16
16
|
assemblyName: string;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* #stateModel Assembly
|
|
20
|
-
*/
|
|
21
18
|
export default function assemblyFactory(assemblyConfigType: IAnyType, pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
22
|
-
/**
|
|
23
|
-
* #property
|
|
24
|
-
*/
|
|
25
19
|
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
26
20
|
}, {
|
|
27
21
|
error: unknown;
|
|
@@ -31,132 +25,43 @@ export default function assemblyFactory(assemblyConfigType: IAnyType, pluginMana
|
|
|
31
25
|
lowerCaseRefNameAliases: RefNameAliases | undefined;
|
|
32
26
|
cytobands: Feature[] | undefined;
|
|
33
27
|
} & {
|
|
34
|
-
/**
|
|
35
|
-
* #method
|
|
36
|
-
*/
|
|
37
28
|
getConf(arg: string): any;
|
|
38
29
|
} & {
|
|
39
|
-
/**
|
|
40
|
-
* #getter
|
|
41
|
-
*/
|
|
42
30
|
readonly initialized: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* #getter
|
|
45
|
-
*/
|
|
46
31
|
readonly name: string;
|
|
47
|
-
/**
|
|
48
|
-
* #getter
|
|
49
|
-
*/
|
|
50
32
|
readonly regions: BasicRegion[] | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* #getter
|
|
53
|
-
*/
|
|
54
33
|
readonly aliases: string[];
|
|
55
|
-
/**
|
|
56
|
-
* #getter
|
|
57
|
-
*/
|
|
58
34
|
readonly displayName: string | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* #getter
|
|
61
|
-
*/
|
|
62
35
|
hasName(name: string): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* #getter
|
|
65
|
-
*/
|
|
66
36
|
readonly allAliases: string[];
|
|
67
|
-
/**
|
|
68
|
-
* #getter
|
|
69
|
-
* note: lowerCaseRefNameAliases not included here: this allows the list
|
|
70
|
-
* of refnames to be just the "normal casing", but things like
|
|
71
|
-
* getCanonicalRefName can resolve a lower-case name if needed
|
|
72
|
-
*/
|
|
73
37
|
readonly allRefNames: string[] | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* #getter
|
|
76
|
-
*/
|
|
77
38
|
readonly lowerCaseRefNames: string[] | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* #getter
|
|
80
|
-
*/
|
|
81
39
|
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* #getter
|
|
84
|
-
*/
|
|
85
40
|
readonly rpcManager: RpcManager;
|
|
86
|
-
/**
|
|
87
|
-
* #getter
|
|
88
|
-
*/
|
|
89
41
|
readonly refNameColors: string[];
|
|
90
42
|
} & {
|
|
91
|
-
/**
|
|
92
|
-
* #getter
|
|
93
|
-
*/
|
|
94
43
|
readonly refNames: string[] | undefined;
|
|
95
44
|
} & {
|
|
96
|
-
/**
|
|
97
|
-
* #method
|
|
98
|
-
*/
|
|
99
45
|
getCanonicalRefName(refName: string): string | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* #method
|
|
102
|
-
*/
|
|
103
46
|
getRefNameColor(refName: string): string | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* #method
|
|
106
|
-
*/
|
|
107
47
|
isValidRefName(refName: string): boolean;
|
|
108
48
|
} & {
|
|
109
|
-
/**
|
|
110
|
-
* #action
|
|
111
|
-
*/
|
|
112
49
|
setLoaded({ regions, refNameAliases, lowerCaseRefNameAliases, cytobands, }: {
|
|
113
50
|
regions: Region[];
|
|
114
51
|
refNameAliases: RefNameAliases;
|
|
115
52
|
lowerCaseRefNameAliases: RefNameAliases;
|
|
116
53
|
cytobands: Feature[];
|
|
117
54
|
}): void;
|
|
118
|
-
/**
|
|
119
|
-
* #action
|
|
120
|
-
*/
|
|
121
55
|
setError(e: unknown): void;
|
|
122
|
-
/**
|
|
123
|
-
* #action
|
|
124
|
-
*/
|
|
125
56
|
setRegions(regions: Region[]): void;
|
|
126
|
-
/**
|
|
127
|
-
* #action
|
|
128
|
-
*/
|
|
129
57
|
setRefNameAliases(aliases: RefNameAliases, lowerCaseAliases: RefNameAliases): void;
|
|
130
|
-
/**
|
|
131
|
-
* #action
|
|
132
|
-
*/
|
|
133
58
|
setCytobands(cytobands: Feature[]): void;
|
|
134
|
-
/**
|
|
135
|
-
* #action
|
|
136
|
-
*/
|
|
137
59
|
setLoadingP(p?: Promise<void>): void;
|
|
138
|
-
/**
|
|
139
|
-
* #action
|
|
140
|
-
*/
|
|
141
60
|
load(): Promise<void>;
|
|
142
|
-
/**
|
|
143
|
-
* #action
|
|
144
|
-
*/
|
|
145
61
|
loadPre(): Promise<void>;
|
|
146
62
|
} & {
|
|
147
|
-
/**
|
|
148
|
-
* #method
|
|
149
|
-
*/
|
|
150
63
|
getAdapterMapEntry(adapterConf: AdapterConf, options: BaseOptions): Promise<RefNameMap>;
|
|
151
|
-
/**
|
|
152
|
-
* #method
|
|
153
|
-
* get Map of `canonical-name -> adapter-specific-name`
|
|
154
|
-
*/
|
|
155
64
|
getRefNameMapForAdapter(adapterConf: AdapterConf, opts: BaseOptions): Promise<RefNameAliases>;
|
|
156
|
-
/**
|
|
157
|
-
* #method
|
|
158
|
-
* get Map of `adapter-specific-name -> canonical-name`
|
|
159
|
-
*/
|
|
160
65
|
getReverseRefNameMapForAdapter(adapterConf: AdapterConf, opts: BaseOptions): Promise<RefNameAliases>;
|
|
161
66
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
162
67
|
export type AssemblyModel = ReturnType<typeof assemblyFactory>;
|