@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "JBrowse 2 core libraries used by plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -30,16 +30,14 @@
|
|
|
30
30
|
"build": "tsc -b tsconfig.build.json && cp package.json README.md ../../LICENSE dist/"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@
|
|
33
|
+
"@floating-ui/react": "^0.27.0",
|
|
34
34
|
"@gmod/abortable-promise-cache": "^2.0.0",
|
|
35
|
-
"@gmod/bgzf-filehandle": "^
|
|
36
|
-
"@gmod/http-range-fetcher": "^
|
|
35
|
+
"@gmod/bgzf-filehandle": "^2.0.1",
|
|
36
|
+
"@gmod/http-range-fetcher": "^4.0.0",
|
|
37
37
|
"@mui/icons-material": "^6.0.0",
|
|
38
38
|
"@mui/x-data-grid": "^7.0.0",
|
|
39
|
-
"@types/clone": "^2.0.0",
|
|
40
39
|
"canvas-sequencer": "^3.1.0",
|
|
41
40
|
"canvas2svg": "^1.0.16",
|
|
42
|
-
"clone": "^2.1.2",
|
|
43
41
|
"colord": "^2.9.3",
|
|
44
42
|
"copy-to-clipboard": "^3.3.1",
|
|
45
43
|
"deepmerge": "^4.2.2",
|
|
@@ -47,16 +45,15 @@
|
|
|
47
45
|
"dompurify": "^3.2.0",
|
|
48
46
|
"escape-html": "^1.0.3",
|
|
49
47
|
"fast-deep-equal": "^3.1.3",
|
|
50
|
-
"generic-
|
|
51
|
-
"is-object": "^1.0.1",
|
|
48
|
+
"generic-filehandle2": "^1.0.0",
|
|
52
49
|
"jexl": "^2.3.0",
|
|
53
50
|
"librpc-web-mod": "^1.1.5",
|
|
54
51
|
"load-script": "^2.0.0",
|
|
55
52
|
"material-ui-popup-state": "^5.0.0",
|
|
56
53
|
"rbush": "^3.0.1",
|
|
54
|
+
"react-draggable": "^4.4.5",
|
|
57
55
|
"serialize-error": "^8.0.0",
|
|
58
|
-
"source-map-js": "^1.0.2"
|
|
59
|
-
"svg-path-generator": "^1.1.0"
|
|
56
|
+
"source-map-js": "^1.0.2"
|
|
60
57
|
},
|
|
61
58
|
"peerDependencies": {
|
|
62
59
|
"@mui/material": "^6.0.0",
|
|
@@ -72,5 +69,5 @@
|
|
|
72
69
|
"access": "public",
|
|
73
70
|
"directory": "dist"
|
|
74
71
|
},
|
|
75
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "2c6897f1fa732b1db5b094d1dca197e333e95319"
|
|
76
73
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
2
|
-
import { AnyConfigurationSchemaType } from '../configuration';
|
|
3
|
-
import { AnyAdapter } from '../data_adapters/BaseAdapter';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '../configuration';
|
|
3
|
+
import type { AnyAdapter } from '../data_adapters/BaseAdapter';
|
|
4
4
|
export interface AdapterMetadata {
|
|
5
5
|
category?: string;
|
|
6
6
|
hiddenFromGUI?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IAnyModelType } from 'mobx-state-tree';
|
|
1
|
+
import type React from 'react';
|
|
3
2
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
+
import type { IAnyModelType } from 'mobx-state-tree';
|
|
4
4
|
type BasicComponent = React.ComponentType<{
|
|
5
5
|
model: any;
|
|
6
6
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IAnyModelType } from 'mobx-state-tree';
|
|
2
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
-
import { AnyConfigurationSchemaType } from '../configuration';
|
|
4
|
-
import { AnyReactComponentType } from '../util';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '../configuration';
|
|
3
|
+
import type { AnyReactComponentType } from '../util';
|
|
4
|
+
import type { IAnyModelType } from 'mobx-state-tree';
|
|
5
5
|
export default class ConnectionType extends PluggableElementBase {
|
|
6
6
|
stateModel: IAnyModelType;
|
|
7
7
|
configSchema: AnyConfigurationSchemaType;
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import { IAnyModelType } from 'mobx-state-tree';
|
|
2
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '../configuration';
|
|
3
|
+
import type { AnyReactComponentType } from '../util';
|
|
4
|
+
import type { IAnyModelType } from 'mobx-state-tree';
|
|
5
5
|
export default class DisplayType extends PluggableElementBase {
|
|
6
6
|
stateModel: IAnyModelType;
|
|
7
7
|
configSchema: AnyConfigurationSchemaType;
|
|
8
8
|
ReactComponent: AnyReactComponentType;
|
|
9
|
-
/**
|
|
10
|
-
* The track type the display is associated with
|
|
11
|
-
*/
|
|
12
9
|
trackType: string;
|
|
13
10
|
subDisplay?: {
|
|
14
11
|
type: string;
|
|
15
12
|
[key: string]: unknown;
|
|
16
13
|
};
|
|
17
|
-
/**
|
|
18
|
-
* The view type the display is associated with
|
|
19
|
-
*/
|
|
20
14
|
viewType: string;
|
|
21
15
|
constructor(stuff: {
|
|
22
16
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAnyModelType } from 'mobx-state-tree';
|
|
2
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
-
import { AnyConfigurationSchemaType } from '../configuration/types';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '../configuration/types';
|
|
3
|
+
import type { IAnyModelType } from 'mobx-state-tree';
|
|
4
4
|
export default class InternetAccountType extends PluggableElementBase {
|
|
5
5
|
stateModel: IAnyModelType;
|
|
6
6
|
configSchema: AnyConfigurationSchemaType;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class PluggableElementBase {
|
|
4
4
|
constructor(args) {
|
|
5
|
-
this.name = args.name || 'UNKNOWN';
|
|
6
|
-
this.maybeDisplayName = args.displayName;
|
|
5
|
+
this.name = (args === null || args === void 0 ? void 0 : args.name) || 'UNKNOWN';
|
|
6
|
+
this.maybeDisplayName = args === null || args === void 0 ? void 0 : args.displayName;
|
|
7
7
|
}
|
|
8
8
|
get displayName() {
|
|
9
9
|
return this.maybeDisplayName || this.name;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import PluginManager from '../PluginManager';
|
|
2
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
interface SerializedArgs {
|
|
6
|
-
signal?: RemoteAbortSignal;
|
|
7
|
-
blobMap?: Record<string, File>;
|
|
8
|
-
}
|
|
2
|
+
import type PluginManager from '../PluginManager';
|
|
3
|
+
import type { UriLocation } from '../util/types';
|
|
9
4
|
export type RpcMethodConstructor = new (pm: PluginManager) => RpcMethodType;
|
|
10
5
|
export default abstract class RpcMethodType extends PluggableElementBase {
|
|
11
6
|
pluginManager: PluginManager;
|
|
12
7
|
constructor(pluginManager: PluginManager);
|
|
13
8
|
serializeArguments(args: Record<string, unknown>, rpcDriverClassName: string): Promise<Record<string, unknown>>;
|
|
14
9
|
serializeNewAuthArguments(loc: UriLocation, rpcDriverClassName: string): Promise<UriLocation>;
|
|
15
|
-
deserializeArguments<T
|
|
16
|
-
|
|
17
|
-
}>;
|
|
10
|
+
deserializeArguments<T>(args: T & {
|
|
11
|
+
blobMap?: Record<string, File>;
|
|
12
|
+
}, _rpcDriverClassName: string): Promise<T>;
|
|
18
13
|
abstract execute(serializedArgs: unknown, rpcDriverClassName: string): Promise<unknown>;
|
|
19
14
|
serializeReturn(originalReturn: unknown, _args: unknown, _rpcDriverClassName: string): Promise<unknown>;
|
|
20
15
|
deserializeReturn(serializedReturn: unknown, _args: unknown, _rpcDriverClassName: string): Promise<unknown>;
|
|
21
16
|
private augmentLocationObjects;
|
|
22
17
|
}
|
|
23
|
-
export {};
|
|
@@ -3,14 +3,13 @@ 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 map_obj_1 = __importDefault(require("../util/map-obj"));
|
|
7
6
|
const PluggableElementBase_1 = __importDefault(require("./PluggableElementBase"));
|
|
7
|
+
const map_obj_1 = __importDefault(require("../util/map-obj"));
|
|
8
8
|
const tracks_1 = require("../util/tracks");
|
|
9
9
|
const types_1 = require("../util/types");
|
|
10
|
-
const remoteAbortSignals_1 = require("../rpc/remoteAbortSignals");
|
|
11
10
|
class RpcMethodType extends PluggableElementBase_1.default {
|
|
12
11
|
constructor(pluginManager) {
|
|
13
|
-
super(
|
|
12
|
+
super();
|
|
14
13
|
this.pluginManager = pluginManager;
|
|
15
14
|
}
|
|
16
15
|
async serializeArguments(args, rpcDriverClassName) {
|
|
@@ -20,30 +19,21 @@ class RpcMethodType extends PluggableElementBase_1.default {
|
|
|
20
19
|
}
|
|
21
20
|
async serializeNewAuthArguments(loc, rpcDriverClassName) {
|
|
22
21
|
const rootModel = this.pluginManager.rootModel;
|
|
23
|
-
// args dont need auth or already have auth
|
|
24
22
|
if (!(0, types_1.isAppRootModel)(rootModel) || loc.internetAccountPreAuthorization) {
|
|
25
23
|
return loc;
|
|
26
24
|
}
|
|
27
25
|
const account = rootModel.findAppropriateInternetAccount(loc);
|
|
28
|
-
// mutating loc object is not allowed in MainThreadRpcDriver, and is only
|
|
29
|
-
// needed for web worker RPC
|
|
30
26
|
if (account && rpcDriverClassName !== 'MainThreadRpcDriver') {
|
|
31
27
|
loc.internetAccountPreAuthorization =
|
|
32
28
|
await account.getPreAuthorizationInformation(loc);
|
|
33
29
|
}
|
|
34
30
|
return loc;
|
|
35
31
|
}
|
|
36
|
-
async deserializeArguments(
|
|
37
|
-
if (
|
|
38
|
-
(0, tracks_1.setBlobMap)(
|
|
32
|
+
async deserializeArguments(args, _rpcDriverClassName) {
|
|
33
|
+
if (args.blobMap) {
|
|
34
|
+
(0, tracks_1.setBlobMap)(args.blobMap);
|
|
39
35
|
}
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
...serializedArgs,
|
|
43
|
-
signal: (0, remoteAbortSignals_1.isRemoteAbortSignal)(signal)
|
|
44
|
-
? (0, remoteAbortSignals_1.deserializeAbortSignal)(signal)
|
|
45
|
-
: undefined,
|
|
46
|
-
};
|
|
36
|
+
return args;
|
|
47
37
|
}
|
|
48
38
|
async serializeReturn(originalReturn, _args, _rpcDriverClassName) {
|
|
49
39
|
return originalReturn;
|
|
@@ -56,8 +46,7 @@ class RpcMethodType extends PluggableElementBase_1.default {
|
|
|
56
46
|
}
|
|
57
47
|
catch (error) {
|
|
58
48
|
if ((0, types_1.isAuthNeededException)(error)) {
|
|
59
|
-
const retryAccount =
|
|
60
|
-
(_a = this.pluginManager.rootModel) === null || _a === void 0 ? void 0 : _a.createEphemeralInternetAccount(`HTTPBasicInternetAccount-${new URL(error.url).origin}`, {}, error.url);
|
|
49
|
+
const retryAccount = (_a = this.pluginManager.rootModel) === null || _a === void 0 ? void 0 : _a.createEphemeralInternetAccount(`HTTPBasicInternetAccount-${new URL(error.url).origin}`, {}, error.url);
|
|
61
50
|
throw new types_1.RetryError('Retrying with created internet account', retryAccount.internetAccountId);
|
|
62
51
|
}
|
|
63
52
|
throw error;
|
|
@@ -66,7 +55,6 @@ class RpcMethodType extends PluggableElementBase_1.default {
|
|
|
66
55
|
}
|
|
67
56
|
async augmentLocationObjects(thing, rpcDriverClassName) {
|
|
68
57
|
const uris = [];
|
|
69
|
-
// using map-obj avoids cycles, seen in circular view svg export
|
|
70
58
|
(0, map_obj_1.default)(thing, val => {
|
|
71
59
|
if ((0, types_1.isUriLocation)(val)) {
|
|
72
60
|
uris.push(val);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import RpcMethodType from './RpcMethodType';
|
|
2
|
+
import type { RenderArgs } from '@jbrowse/core/rpc/coreRpcMethods';
|
|
3
|
+
export default abstract class RpcMethodTypeWithFiltersAndRenameRegions extends RpcMethodType {
|
|
4
|
+
deserializeArguments(args: any, rpcDriverClassName: string): Promise<any>;
|
|
5
|
+
serializeArguments(args: RenderArgs & {
|
|
6
|
+
stopToken?: string;
|
|
7
|
+
statusCallback?: (arg: string) => void;
|
|
8
|
+
}, rpcDriverClassName: string): Promise<Record<string, unknown>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const RpcMethodType_1 = __importDefault(require("./RpcMethodType"));
|
|
7
|
+
const util_1 = require("../util");
|
|
8
|
+
const serializableFilterChain_1 = __importDefault(require("./renderers/util/serializableFilterChain"));
|
|
9
|
+
class RpcMethodTypeWithFiltersAndRenameRegions extends RpcMethodType_1.default {
|
|
10
|
+
async deserializeArguments(args, rpcDriverClassName) {
|
|
11
|
+
const l = await super.deserializeArguments(args, rpcDriverClassName);
|
|
12
|
+
return {
|
|
13
|
+
...l,
|
|
14
|
+
filters: args.filters
|
|
15
|
+
? new serializableFilterChain_1.default({
|
|
16
|
+
filters: args.filters,
|
|
17
|
+
})
|
|
18
|
+
: undefined,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
async serializeArguments(args, rpcDriverClassName) {
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
const pm = this.pluginManager;
|
|
24
|
+
const assemblyManager = (_b = (_a = pm.rootModel) === null || _a === void 0 ? void 0 : _a.session) === null || _b === void 0 ? void 0 : _b.assemblyManager;
|
|
25
|
+
if (!assemblyManager) {
|
|
26
|
+
throw new Error('no assembly manager');
|
|
27
|
+
}
|
|
28
|
+
const renamedArgs = await (0, util_1.renameRegionsIfNeeded)(assemblyManager, {
|
|
29
|
+
...args,
|
|
30
|
+
filters: (_c = args.filters) === null || _c === void 0 ? void 0 : _c.toJSON().filters,
|
|
31
|
+
});
|
|
32
|
+
return super.serializeArguments(renamedArgs, rpcDriverClassName);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = RpcMethodTypeWithFiltersAndRenameRegions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
2
|
-
import { AnyConfigurationSchemaType } from '../configuration';
|
|
3
|
-
import { AnyAdapter } from '../data_adapters/BaseAdapter';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '../configuration';
|
|
3
|
+
import type { AnyAdapter } from '../data_adapters/BaseAdapter';
|
|
4
4
|
export default class TextSearchAdapterType extends PluggableElementBase {
|
|
5
5
|
getAdapterClass: () => Promise<AnyAdapter>;
|
|
6
6
|
configSchema: AnyConfigurationSchemaType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IAnyModelType } from 'mobx-state-tree';
|
|
2
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
-
import { AnyConfigurationSchemaType } from '../configuration';
|
|
4
|
-
import DisplayType from './DisplayType';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '../configuration';
|
|
3
|
+
import type DisplayType from './DisplayType';
|
|
4
|
+
import type { IAnyModelType } from 'mobx-state-tree';
|
|
5
5
|
export default class TrackType extends PluggableElementBase {
|
|
6
6
|
stateModel: IAnyModelType;
|
|
7
7
|
configSchema: AnyConfigurationSchemaType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IAnyModelType, IAnyStateTreeNode } from 'mobx-state-tree';
|
|
1
|
+
import type React from 'react';
|
|
3
2
|
import PluggableElementBase from './PluggableElementBase';
|
|
4
|
-
import DisplayType from './DisplayType';
|
|
3
|
+
import type DisplayType from './DisplayType';
|
|
4
|
+
import type { IAnyModelType, IAnyStateTreeNode } from 'mobx-state-tree';
|
|
5
5
|
type BasicView = React.ComponentType<{
|
|
6
6
|
model: any;
|
|
7
7
|
session?: IAnyStateTreeNode;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { ComponentType, LazyExoticComponent } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
3
|
import PluggableElementBase from './PluggableElementBase';
|
|
4
|
-
import { AnyConfigurationSchemaType } from '../configuration';
|
|
4
|
+
import type { AnyConfigurationSchemaType } from '../configuration';
|
|
5
|
+
import type { IAnyModelType, IAnyStateTreeNode } from 'mobx-state-tree';
|
|
5
6
|
type WidgetComponentType = LazyExoticComponent<React.FC<any>> | React.FC<any>;
|
|
6
7
|
type HeadingComponentType = ComponentType<{
|
|
7
8
|
model: IAnyStateTreeNode;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import AdapterType from './AdapterType';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
1
|
+
import type AdapterType from './AdapterType';
|
|
2
|
+
import type AddTrackWorkflowType from './AddTrackWorkflowType';
|
|
3
|
+
import type ConnectionType from './ConnectionType';
|
|
4
|
+
import type DisplayType from './DisplayType';
|
|
5
|
+
import type InternetAccountType from './InternetAccountType';
|
|
6
|
+
import type RpcMethodType from './RpcMethodType';
|
|
7
|
+
import type TextSearchAdapterType from './TextSearchAdapterType';
|
|
8
|
+
import type TrackType from './TrackType';
|
|
9
|
+
import type ViewType from './ViewType';
|
|
10
|
+
import type WidgetType from './WidgetType';
|
|
11
|
+
import type RendererType from './renderers/RendererType';
|
|
12
12
|
export * from './renderers';
|
|
13
13
|
export * from './models';
|
|
14
14
|
export type PluggableElementType = AdapterType | ConnectionType | RendererType | WidgetType | TrackType | DisplayType | ViewType | RpcMethodType | InternetAccountType | TextSearchAdapterType | AddTrackWorkflowType;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type PluginManager from '../../PluginManager';
|
|
2
|
+
import type { AnyConfigurationModel } from '../../configuration';
|
|
3
3
|
type TrackConf = AnyConfigurationModel | Record<string, unknown>;
|
|
4
|
-
/**
|
|
5
|
-
* #stateModel BaseConnectionModel
|
|
6
|
-
*/
|
|
7
4
|
declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
8
|
-
/**
|
|
9
|
-
* #property
|
|
10
|
-
*/
|
|
11
5
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
12
|
-
/**
|
|
13
|
-
* #property
|
|
14
|
-
*/
|
|
15
6
|
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
16
|
-
/**
|
|
17
|
-
* #property
|
|
18
|
-
*/
|
|
19
7
|
configuration: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
20
8
|
name: {
|
|
21
9
|
type: string;
|
|
@@ -29,27 +17,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
29
17
|
};
|
|
30
18
|
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
31
19
|
}, {
|
|
32
|
-
/**
|
|
33
|
-
* #action
|
|
34
|
-
*/
|
|
35
20
|
connect(_arg: AnyConfigurationModel): void;
|
|
36
21
|
} & {
|
|
37
22
|
afterAttach(): void;
|
|
38
|
-
/**
|
|
39
|
-
* #action
|
|
40
|
-
*/
|
|
41
23
|
addTrackConf(trackConf: TrackConf): any;
|
|
42
|
-
/**
|
|
43
|
-
* #action
|
|
44
|
-
*/
|
|
45
24
|
addTrackConfs(trackConfs: TrackConf[]): void;
|
|
46
|
-
/**
|
|
47
|
-
* #action
|
|
48
|
-
*/
|
|
49
25
|
setTrackConfs(trackConfs: AnyConfigurationModel[]): void;
|
|
50
|
-
/**
|
|
51
|
-
* #action
|
|
52
|
-
*/
|
|
53
26
|
clear(): void;
|
|
54
27
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
55
28
|
export type BaseConnectionModel = ReturnType<typeof stateModelFactory>;
|
|
@@ -4,31 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
7
|
-
const configuration_1 = require("../../configuration");
|
|
8
7
|
const baseConnectionConfig_1 = __importDefault(require("./baseConnectionConfig"));
|
|
9
|
-
|
|
10
|
-
* #stateModel BaseConnectionModel
|
|
11
|
-
*/
|
|
8
|
+
const configuration_1 = require("../../configuration");
|
|
12
9
|
function stateModelFactory(pluginManager) {
|
|
13
10
|
return mobx_state_tree_1.types
|
|
14
11
|
.model('Connection', {
|
|
15
|
-
/**
|
|
16
|
-
* #property
|
|
17
|
-
*/
|
|
18
12
|
name: mobx_state_tree_1.types.identifier,
|
|
19
|
-
/**
|
|
20
|
-
* #property
|
|
21
|
-
*/
|
|
22
13
|
tracks: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('track')),
|
|
23
|
-
/**
|
|
24
|
-
* #property
|
|
25
|
-
*/
|
|
26
14
|
configuration: (0, configuration_1.ConfigurationReference)(baseConnectionConfig_1.default),
|
|
27
15
|
})
|
|
28
16
|
.actions(() => ({
|
|
29
|
-
/**
|
|
30
|
-
* #action
|
|
31
|
-
*/
|
|
32
17
|
connect(_arg) { },
|
|
33
18
|
}))
|
|
34
19
|
.actions(self => ({
|
|
@@ -37,28 +22,16 @@ function stateModelFactory(pluginManager) {
|
|
|
37
22
|
self.connect(self.configuration);
|
|
38
23
|
}
|
|
39
24
|
},
|
|
40
|
-
/**
|
|
41
|
-
* #action
|
|
42
|
-
*/
|
|
43
25
|
addTrackConf(trackConf) {
|
|
44
26
|
const length = self.tracks.push(trackConf);
|
|
45
27
|
return self.tracks[length - 1];
|
|
46
28
|
},
|
|
47
|
-
/**
|
|
48
|
-
* #action
|
|
49
|
-
*/
|
|
50
29
|
addTrackConfs(trackConfs) {
|
|
51
30
|
self.tracks.push(...trackConfs);
|
|
52
31
|
},
|
|
53
|
-
/**
|
|
54
|
-
* #action
|
|
55
|
-
*/
|
|
56
32
|
setTrackConfs(trackConfs) {
|
|
57
33
|
self.tracks = (0, mobx_state_tree_1.cast)(trackConfs);
|
|
58
34
|
},
|
|
59
|
-
/**
|
|
60
|
-
* #action
|
|
61
|
-
*/
|
|
62
35
|
clear() { },
|
|
63
36
|
}));
|
|
64
37
|
}
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MenuItem } from '../../ui';
|
|
3
|
+
import type { Instance } from 'mobx-state-tree';
|
|
4
4
|
export declare const BaseDisplay: import("mobx-state-tree").IModelType<{
|
|
5
|
-
/**
|
|
6
|
-
* #property
|
|
7
|
-
*/
|
|
8
5
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
9
|
-
/**
|
|
10
|
-
* #property
|
|
11
|
-
*/
|
|
12
6
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
13
|
-
/**
|
|
14
|
-
* #property
|
|
15
|
-
*/
|
|
16
7
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
17
8
|
}, {
|
|
18
9
|
rendererTypeName: string;
|
|
19
10
|
error: unknown;
|
|
20
11
|
message: string | undefined;
|
|
21
12
|
} & {
|
|
22
|
-
/**
|
|
23
|
-
* #getter
|
|
24
|
-
*/
|
|
25
13
|
readonly RenderingComponent: React.FC<{
|
|
26
14
|
model: {
|
|
27
15
|
id: string;
|
|
@@ -32,17 +20,8 @@ export declare const BaseDisplay: import("mobx-state-tree").IModelType<{
|
|
|
32
20
|
error: unknown;
|
|
33
21
|
message: string | undefined;
|
|
34
22
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
35
|
-
/**
|
|
36
|
-
* #property
|
|
37
|
-
*/
|
|
38
23
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
39
|
-
/**
|
|
40
|
-
* #property
|
|
41
|
-
*/
|
|
42
24
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
43
|
-
/**
|
|
44
|
-
* #property
|
|
45
|
-
*/
|
|
46
25
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
47
26
|
}, {
|
|
48
27
|
rendererTypeName: string;
|
|
@@ -52,9 +31,6 @@ export declare const BaseDisplay: import("mobx-state-tree").IModelType<{
|
|
|
52
31
|
onHorizontalScroll?: () => void;
|
|
53
32
|
blockState?: Record<string, any>;
|
|
54
33
|
}>;
|
|
55
|
-
/**
|
|
56
|
-
* #getter
|
|
57
|
-
*/
|
|
58
34
|
readonly DisplayBlurb: React.FC<{
|
|
59
35
|
model: {
|
|
60
36
|
id: string;
|
|
@@ -65,17 +41,8 @@ export declare const BaseDisplay: import("mobx-state-tree").IModelType<{
|
|
|
65
41
|
error: unknown;
|
|
66
42
|
message: string | undefined;
|
|
67
43
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
68
|
-
/**
|
|
69
|
-
* #property
|
|
70
|
-
*/
|
|
71
44
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
72
|
-
/**
|
|
73
|
-
* #property
|
|
74
|
-
*/
|
|
75
45
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
76
|
-
/**
|
|
77
|
-
* #property
|
|
78
|
-
*/
|
|
79
46
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
80
47
|
}, {
|
|
81
48
|
rendererTypeName: string;
|
|
@@ -83,65 +50,18 @@ export declare const BaseDisplay: import("mobx-state-tree").IModelType<{
|
|
|
83
50
|
message: string | undefined;
|
|
84
51
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
85
52
|
}> | null;
|
|
86
|
-
/**
|
|
87
|
-
* #getter
|
|
88
|
-
*/
|
|
89
53
|
readonly adapterConfig: any;
|
|
90
|
-
/**
|
|
91
|
-
* #getter
|
|
92
|
-
*/
|
|
93
54
|
readonly parentTrack: any;
|
|
94
|
-
/**
|
|
95
|
-
* #method
|
|
96
|
-
* the react props that are passed to the Renderer when data
|
|
97
|
-
* is rendered in this display
|
|
98
|
-
*/
|
|
99
55
|
renderProps(): any;
|
|
100
|
-
/**
|
|
101
|
-
* #getter
|
|
102
|
-
* the pluggable element type object for this display's renderer
|
|
103
|
-
*/
|
|
104
56
|
readonly rendererType: import("..").RendererType;
|
|
105
|
-
/**
|
|
106
|
-
* #getter
|
|
107
|
-
* if a display-level message should be displayed instead, make this
|
|
108
|
-
* return a react component
|
|
109
|
-
*/
|
|
110
57
|
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
111
|
-
/**
|
|
112
|
-
* #method
|
|
113
|
-
*/
|
|
114
58
|
trackMenuItems(): MenuItem[];
|
|
115
|
-
/**
|
|
116
|
-
* #getter
|
|
117
|
-
*/
|
|
118
59
|
readonly viewMenuActions: MenuItem[];
|
|
119
|
-
/**
|
|
120
|
-
* #method
|
|
121
|
-
* @param region -
|
|
122
|
-
* @returns falsy if the region is fine to try rendering. Otherwise,
|
|
123
|
-
* return a react node + string of text. string of text describes why it
|
|
124
|
-
* cannot be rendered react node allows user to force load at current
|
|
125
|
-
* setting
|
|
126
|
-
*/
|
|
127
60
|
regionCannotBeRendered(): null;
|
|
128
61
|
} & {
|
|
129
|
-
/**
|
|
130
|
-
* #action
|
|
131
|
-
*/
|
|
132
62
|
setMessage(arg?: string): void;
|
|
133
|
-
/**
|
|
134
|
-
* #action
|
|
135
|
-
*/
|
|
136
63
|
setError(error?: unknown): void;
|
|
137
|
-
/**
|
|
138
|
-
* #action
|
|
139
|
-
*/
|
|
140
64
|
setRpcDriverName(rpcDriverName: string): void;
|
|
141
|
-
/**
|
|
142
|
-
* #action
|
|
143
|
-
* base display reload does nothing, see specialized displays for details
|
|
144
|
-
*/
|
|
145
65
|
reload(): void;
|
|
146
66
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
147
67
|
export type BaseDisplayStateModel = typeof BaseDisplay;
|