@jbrowse/core 3.7.0 → 4.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/esm/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +32 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +13 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +43 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.d.ts +8 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.js +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +17 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.js +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +20 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +24 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +57 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +11 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +42 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +24 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Position.js +14 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +14 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/UriField.js +22 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/index.js +24 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/types.d.ts +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/types.js +1 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/util.js +26 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +10 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +41 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +7 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +44 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +7 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +34 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +26 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +3 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +29 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/consts.js +6 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +11 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +40 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +105 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +5 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +64 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +6 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +48 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/index.d.ts +1 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/index.js +1 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +31 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/model.js +83 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +16 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +83 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +16 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +10 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +52 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +9 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +21 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +10 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +22 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.d.ts +80 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.js +583 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.d.ts +141 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.js +1116 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/types.js +1 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.d.ts +13 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.js +73 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/util.js +42 -0
- package/esm/BaseFeatureWidget/configSchema.d.ts +2 -0
- package/esm/BaseFeatureWidget/configSchema.js +3 -0
- package/esm/BaseFeatureWidget/index.d.ts +2 -0
- package/esm/BaseFeatureWidget/index.js +2 -0
- package/esm/BaseFeatureWidget/stateModelFactory.d.ts +101 -0
- package/esm/BaseFeatureWidget/stateModelFactory.js +96 -0
- package/esm/BaseFeatureWidget/types.d.ts +22 -0
- package/esm/BaseFeatureWidget/types.js +1 -0
- package/esm/BaseFeatureWidget/util.d.ts +51 -0
- package/esm/BaseFeatureWidget/util.js +95 -0
- package/esm/CorePlugin.d.ts +6 -0
- package/esm/CorePlugin.js +24 -0
- package/esm/PhasedScheduler.js +25 -0
- package/esm/Plugin.d.ts +13 -0
- package/esm/Plugin.js +9 -0
- package/esm/PluginLoader.d.ts +64 -0
- package/esm/PluginLoader.js +164 -0
- package/esm/PluginManager.d.ts +125 -0
- package/esm/PluginManager.js +414 -0
- package/esm/ReExports/BaseFeatureDetails.js +9 -0
- package/esm/ReExports/DataGrid.js +1 -0
- package/esm/ReExports/MuiDataGridReExports.js +131 -0
- package/esm/ReExports/MuiReExports.d.ts +134 -0
- package/esm/ReExports/MuiReExports.js +115 -0
- package/esm/ReExports/index.d.ts +1 -0
- package/esm/ReExports/index.js +1 -0
- package/esm/ReExports/lazify.js +10 -0
- package/esm/ReExports/list.js +275 -0
- package/esm/ReExports/modules.js +149 -0
- package/esm/TextSearch/BaseResults.d.ts +46 -0
- package/esm/TextSearch/BaseResults.js +67 -0
- package/esm/TextSearch/TextSearchManager.d.ts +48 -0
- package/esm/TextSearch/TextSearchManager.js +77 -0
- package/esm/assemblyManager/assembly.d.ts +75 -0
- package/esm/assemblyManager/assembly.js +328 -0
- package/esm/assemblyManager/assemblyConfigSchema.d.ts +27 -0
- package/esm/assemblyManager/assemblyConfigSchema.js +51 -0
- package/esm/assemblyManager/assemblyManager.d.ts +528 -0
- package/esm/assemblyManager/assemblyManager.js +131 -0
- package/esm/assemblyManager/index.d.ts +3 -0
- package/esm/assemblyManager/index.js +2 -0
- package/esm/configuration/configurationSchema.d.ts +37 -0
- package/esm/configuration/configurationSchema.js +230 -0
- package/esm/configuration/configurationSlot.d.ts +33 -0
- package/esm/configuration/configurationSlot.js +239 -0
- package/esm/configuration/index.d.ts +3 -0
- package/esm/configuration/index.js +2 -0
- package/esm/configuration/types.d.ts +14 -0
- package/esm/configuration/types.js +1 -0
- package/esm/configuration/util.d.ts +10 -0
- package/esm/configuration/util.js +123 -0
- package/esm/data_adapters/BaseAdapter/BaseAdapter.d.ts +16 -0
- package/esm/data_adapters/BaseAdapter/BaseAdapter.js +31 -0
- package/esm/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +24 -0
- package/esm/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +68 -0
- package/esm/data_adapters/BaseAdapter/BaseOptions.d.ts +18 -0
- package/esm/data_adapters/BaseAdapter/BaseOptions.js +1 -0
- package/esm/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +10 -0
- package/esm/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.js +1 -0
- package/esm/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +11 -0
- package/esm/data_adapters/BaseAdapter/BaseSequenceAdapter.js +12 -0
- package/esm/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +6 -0
- package/esm/data_adapters/BaseAdapter/BaseTextSearchAdapter.js +1 -0
- package/esm/data_adapters/BaseAdapter/RegionsAdapter.d.ts +6 -0
- package/esm/data_adapters/BaseAdapter/RegionsAdapter.js +1 -0
- package/esm/data_adapters/BaseAdapter/index.d.ts +13 -0
- package/esm/data_adapters/BaseAdapter/index.js +5 -0
- package/esm/data_adapters/BaseAdapter/stats.d.ts +10 -0
- package/esm/data_adapters/BaseAdapter/stats.js +48 -0
- package/esm/data_adapters/BaseAdapter/types.d.ts +23 -0
- package/esm/data_adapters/BaseAdapter/types.js +1 -0
- package/esm/data_adapters/BaseAdapter/util.d.ts +12 -0
- package/esm/data_adapters/BaseAdapter/util.js +15 -0
- package/esm/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +6 -0
- package/esm/data_adapters/CytobandAdapter/CytobandAdapter.js +28 -0
- package/esm/data_adapters/CytobandAdapter/configSchema.d.ts +9 -0
- package/esm/data_adapters/CytobandAdapter/configSchema.js +24 -0
- package/esm/data_adapters/CytobandAdapter/index.d.ts +2 -0
- package/esm/data_adapters/CytobandAdapter/index.js +12 -0
- package/esm/data_adapters/dataAdapterCache.d.ts +14 -0
- package/esm/data_adapters/dataAdapterCache.js +54 -0
- package/esm/data_adapters/util.js +4 -0
- package/esm/pluggableElementTypes/AdapterType.d.ts +25 -0
- package/esm/pluggableElementTypes/AdapterType.js +17 -0
- package/esm/pluggableElementTypes/AddTrackWorkflowType.d.ts +17 -0
- package/esm/pluggableElementTypes/AddTrackWorkflowType.js +10 -0
- package/esm/pluggableElementTypes/ConnectionType.d.ts +20 -0
- package/esm/pluggableElementTypes/ConnectionType.js +16 -0
- package/esm/pluggableElementTypes/DisplayType.d.ts +30 -0
- package/esm/pluggableElementTypes/DisplayType.js +20 -0
- package/esm/pluggableElementTypes/GlyphType.d.ts +43 -0
- package/esm/pluggableElementTypes/GlyphType.js +18 -0
- package/esm/pluggableElementTypes/InternetAccountType.d.ts +12 -0
- package/esm/pluggableElementTypes/InternetAccountType.js +10 -0
- package/esm/pluggableElementTypes/PluggableElementBase.js +11 -0
- package/esm/pluggableElementTypes/RpcMethodType.d.ts +19 -0
- package/esm/pluggableElementTypes/RpcMethodType.js +88 -0
- package/esm/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +11 -0
- package/esm/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +28 -0
- package/esm/pluggableElementTypes/TextSearchAdapterType.d.ts +18 -0
- package/esm/pluggableElementTypes/TextSearchAdapterType.js +15 -0
- package/esm/pluggableElementTypes/TrackType.d.ts +16 -0
- package/esm/pluggableElementTypes/TrackType.js +14 -0
- package/esm/pluggableElementTypes/ViewType.d.ts +29 -0
- package/esm/pluggableElementTypes/ViewType.js +18 -0
- package/esm/pluggableElementTypes/WidgetType.d.ts +27 -0
- package/esm/pluggableElementTypes/WidgetType.js +18 -0
- package/esm/pluggableElementTypes/index.d.ts +27 -0
- package/esm/pluggableElementTypes/index.js +14 -0
- package/esm/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +29 -0
- package/esm/pluggableElementTypes/models/BaseConnectionModelFactory.js +35 -0
- package/esm/pluggableElementTypes/models/BaseDisplayModel.d.ts +180 -0
- package/esm/pluggableElementTypes/models/BaseDisplayModel.js +104 -0
- package/esm/pluggableElementTypes/models/BaseTrackModel.d.ts +74 -0
- package/esm/pluggableElementTypes/models/BaseTrackModel.js +203 -0
- package/esm/pluggableElementTypes/models/BaseViewModel.d.ts +52 -0
- package/esm/pluggableElementTypes/models/BaseViewModel.js +42 -0
- package/esm/pluggableElementTypes/models/InternetAccountModel.d.ts +86 -0
- package/esm/pluggableElementTypes/models/InternetAccountModel.js +151 -0
- package/esm/pluggableElementTypes/models/baseConnectionConfig.d.ts +16 -0
- package/esm/pluggableElementTypes/models/baseConnectionConfig.js +18 -0
- package/esm/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +27 -0
- package/esm/pluggableElementTypes/models/baseInternetAccountConfig.js +32 -0
- package/esm/pluggableElementTypes/models/baseTrackConfig.d.ts +87 -0
- package/esm/pluggableElementTypes/models/baseTrackConfig.js +134 -0
- package/esm/pluggableElementTypes/models/components/SaveTrackData.d.ts +11 -0
- package/esm/pluggableElementTypes/models/components/SaveTrackData.js +158 -0
- package/esm/pluggableElementTypes/models/index.d.ts +14 -0
- package/esm/pluggableElementTypes/models/index.js +8 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/bed.d.ts +4 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/bed.js +9 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/fetchSequence.d.ts +5 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/fetchSequence.js +17 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/genbank.d.ts +7 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/genbank.js +108 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/gff3.d.ts +5 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/gff3.js +91 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/types.d.ts +11 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/types.js +1 -0
- package/esm/pluggableElementTypes/renderers/BoxRendererType.d.ts +52 -0
- package/esm/pluggableElementTypes/renderers/BoxRendererType.js +78 -0
- package/esm/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +4 -0
- package/esm/pluggableElementTypes/renderers/CircularChordRendererType.js +4 -0
- package/esm/pluggableElementTypes/renderers/FeatureRendererType.d.ts +58 -0
- package/esm/pluggableElementTypes/renderers/FeatureRendererType.js +77 -0
- package/esm/pluggableElementTypes/renderers/LayoutSession.d.ts +31 -0
- package/esm/pluggableElementTypes/renderers/LayoutSession.js +37 -0
- package/esm/pluggableElementTypes/renderers/RendererType.d.ts +28 -0
- package/esm/pluggableElementTypes/renderers/RendererType.js +20 -0
- package/esm/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +57 -0
- package/esm/pluggableElementTypes/renderers/ServerSideRendererType.js +113 -0
- package/esm/pluggableElementTypes/renderers/index.d.ts +6 -0
- package/esm/pluggableElementTypes/renderers/index.js +6 -0
- package/esm/pluggableElementTypes/renderers/util/serializableFilterChain.js +30 -0
- package/esm/pluggableElementTypes/renderers/util.d.ts +3 -0
- package/esm/pluggableElementTypes/renderers/util.js +14 -0
- package/esm/rpc/BaseRpcDriver.d.ts +40 -0
- package/esm/rpc/BaseRpcDriver.js +116 -0
- package/esm/rpc/MainThreadRpcDriver.d.ts +14 -0
- package/esm/rpc/MainThreadRpcDriver.js +33 -0
- package/esm/rpc/RpcManager.d.ts +35 -0
- package/esm/rpc/RpcManager.js +63 -0
- package/esm/rpc/WebWorkerRpcDriver.d.ts +31 -0
- package/esm/rpc/WebWorkerRpcDriver.js +77 -0
- package/esm/rpc/baseRpcConfig.d.ts +8 -0
- package/esm/rpc/baseRpcConfig.js +10 -0
- package/esm/rpc/configSchema.d.ts +9 -0
- package/esm/rpc/configSchema.js +22 -0
- package/esm/rpc/coreRpcMethods.d.ts +12 -0
- package/esm/rpc/coreRpcMethods.js +12 -0
- package/esm/rpc/mainThreadRpcConfig.d.ts +8 -0
- package/esm/rpc/mainThreadRpcConfig.js +8 -0
- package/esm/rpc/methods/CoreFreeResources.d.ts +6 -0
- package/esm/rpc/methods/CoreFreeResources.js +14 -0
- package/esm/rpc/methods/CoreGetExportData.d.ts +19 -0
- package/esm/rpc/methods/CoreGetExportData.js +18 -0
- package/esm/rpc/methods/CoreGetFeatureDensityStats.d.ts +17 -0
- package/esm/rpc/methods/CoreGetFeatureDensityStats.js +25 -0
- package/esm/rpc/methods/CoreGetFeatureDetails.d.ts +11 -0
- package/esm/rpc/methods/CoreGetFeatureDetails.js +24 -0
- package/esm/rpc/methods/CoreGetFeatures.d.ts +18 -0
- package/esm/rpc/methods/CoreGetFeatures.js +31 -0
- package/esm/rpc/methods/CoreGetFileInfo.d.ts +9 -0
- package/esm/rpc/methods/CoreGetFileInfo.js +15 -0
- package/esm/rpc/methods/CoreGetMetadata.d.ts +9 -0
- package/esm/rpc/methods/CoreGetMetadata.js +15 -0
- package/esm/rpc/methods/CoreGetRefNames.d.ts +10 -0
- package/esm/rpc/methods/CoreGetRefNames.js +19 -0
- package/esm/rpc/methods/CoreGetRegions.d.ts +8 -0
- package/esm/rpc/methods/CoreGetRegions.js +15 -0
- package/esm/rpc/methods/CoreGetSequence.d.ts +13 -0
- package/esm/rpc/methods/CoreGetSequence.js +17 -0
- package/esm/rpc/methods/CoreRender.d.ts +14 -0
- package/esm/rpc/methods/CoreRender.js +35 -0
- package/esm/rpc/methods/CoreSaveFeatureData.d.ts +16 -0
- package/esm/rpc/methods/CoreSaveFeatureData.js +32 -0
- package/esm/rpc/methods/util.d.ts +15 -0
- package/esm/rpc/methods/util.js +7 -0
- package/esm/rpc/webWorkerRpcConfig.d.ts +8 -0
- package/esm/rpc/webWorkerRpcConfig.js +8 -0
- package/esm/ui/AppLogo.d.ts +7 -0
- package/esm/ui/AppLogo.js +10 -0
- package/esm/ui/AssemblySelector.d.ts +13 -0
- package/esm/ui/AssemblySelector.js +39 -0
- package/esm/ui/BaseTooltip.js +42 -0
- package/esm/ui/CascadingMenu.d.ts +30 -0
- package/esm/ui/CascadingMenu.js +48 -0
- package/esm/ui/CascadingMenuButton.d.ts +26 -0
- package/esm/ui/CascadingMenuButton.js +24 -0
- package/esm/ui/CascadingMenuHelpDialog.d.ts +5 -0
- package/esm/ui/CascadingMenuHelpDialog.js +10 -0
- package/esm/ui/CascadingMenuHelpIconButton.d.ts +5 -0
- package/esm/ui/CascadingMenuHelpIconButton.js +15 -0
- package/esm/ui/ColorPicker.js +62 -0
- package/esm/ui/ConfirmDialog.js +13 -0
- package/esm/ui/DataGridFlexContainer.d.ts +5 -0
- package/esm/ui/DataGridFlexContainer.js +12 -0
- package/esm/ui/Dialog.d.ts +7 -0
- package/esm/ui/Dialog.js +45 -0
- package/esm/ui/DraggableDialog.js +27 -0
- package/esm/ui/DropDownMenu.d.ts +6 -0
- package/esm/ui/DropDownMenu.js +24 -0
- package/esm/ui/EditableTypography.js +60 -0
- package/esm/ui/ErrorBoundary.d.ts +17 -0
- package/esm/ui/ErrorBoundary.js +16 -0
- package/esm/ui/ErrorMessage.js +56 -0
- package/esm/ui/ErrorMessageStackTraceContents.d.ts +4 -0
- package/esm/ui/ErrorMessageStackTraceContents.js +25 -0
- package/esm/ui/ErrorMessageStackTraceDialog.js +108 -0
- package/esm/ui/ExternalLink.js +7 -0
- package/esm/ui/FactoryResetDialog.js +18 -0
- package/esm/ui/FatalErrorDialog.js +18 -0
- package/esm/ui/FileSelector/FileSelector.d.ts +11 -0
- package/esm/ui/FileSelector/FileSelector.js +52 -0
- package/esm/ui/FileSelector/LocalFileChooser.d.ts +6 -0
- package/esm/ui/FileSelector/LocalFileChooser.js +39 -0
- package/esm/ui/FileSelector/LocationInput.d.ts +9 -0
- package/esm/ui/FileSelector/LocationInput.js +15 -0
- package/esm/ui/FileSelector/SourceTypeSelector.d.ts +9 -0
- package/esm/ui/FileSelector/SourceTypeSelector.js +38 -0
- package/esm/ui/FileSelector/UrlChooser.d.ts +8 -0
- package/esm/ui/FileSelector/UrlChooser.js +17 -0
- package/esm/ui/FileSelector/index.d.ts +1 -0
- package/esm/ui/FileSelector/index.js +1 -0
- package/esm/ui/FileSelector/useInternetAccounts.d.ts +178 -0
- package/esm/ui/FileSelector/useInternetAccounts.js +18 -0
- package/esm/ui/HoverMenu.js +15 -0
- package/esm/ui/Icons.js +14 -0
- package/esm/ui/LoadingEllipses.js +31 -0
- package/esm/ui/Logo.js +42 -0
- package/esm/ui/Menu.d.ts +2 -0
- package/esm/ui/Menu.js +1 -0
- package/esm/ui/MenuButton.d.ts +1 -0
- package/esm/ui/MenuButton.js +1 -0
- package/esm/ui/MenuItems.d.ts +15 -0
- package/esm/ui/MenuItems.js +59 -0
- package/esm/ui/MenuTypes.d.ts +39 -0
- package/esm/ui/MenuTypes.js +1 -0
- package/esm/ui/PrerenderedCanvas.d.ts +10 -0
- package/esm/ui/PrerenderedCanvas.js +33 -0
- package/esm/ui/RedErrorMessageBox.js +16 -0
- package/esm/ui/ResizeHandle.js +67 -0
- package/esm/ui/ReturnToImportFormDialog.js +13 -0
- package/esm/ui/SanitizedHTML.js +61 -0
- package/esm/ui/Snackbar.d.ts +10 -0
- package/esm/ui/Snackbar.js +14 -0
- package/esm/ui/SnackbarContents.d.ts +5 -0
- package/esm/ui/SnackbarContents.js +11 -0
- package/esm/ui/SnackbarModel.d.ts +17 -0
- package/esm/ui/SnackbarModel.js +55 -0
- package/esm/ui/colors.js +67 -0
- package/esm/ui/index.d.ts +20 -0
- package/esm/ui/index.js +20 -0
- package/esm/ui/react-colorful.d.ts +3 -0
- package/esm/ui/react-colorful.js +416 -0
- package/esm/ui/theme.d.ts +58 -0
- package/esm/ui/theme.js +392 -0
- package/esm/ui/useEvent.js +10 -0
- package/esm/util/Base1DUtils.d.ts +38 -0
- package/esm/util/Base1DUtils.js +205 -0
- package/esm/util/Base1DViewModel.d.ts +61 -0
- package/esm/util/Base1DViewModel.js +129 -0
- package/esm/util/QuickLRU/index.d.ts +1 -0
- package/esm/util/QuickLRU/index.js +1 -0
- package/esm/util/TimeTraveller.d.ts +19 -0
- package/esm/util/TimeTraveller.js +94 -0
- package/esm/util/aborting.js +42 -0
- package/esm/util/analytics.js +80 -0
- package/esm/util/blobToDataURL.js +14 -0
- package/esm/util/blockTypes.d.ts +59 -0
- package/esm/util/blockTypes.js +119 -0
- package/esm/util/calculateDynamicBlocks.d.ts +3 -0
- package/esm/util/calculateDynamicBlocks.js +104 -0
- package/esm/util/calculateStaticBlocks.d.ts +13 -0
- package/esm/util/calculateStaticBlocks.js +106 -0
- package/esm/util/coarseStripHTML.d.ts +1 -0
- package/esm/util/coarseStripHTML.js +17 -0
- package/esm/util/color/cssColorsLevel4.js +156 -0
- package/esm/util/color/index.d.ts +5 -0
- package/esm/util/color/index.js +39 -0
- package/esm/util/colord.d.ts +9 -0
- package/esm/util/colord.js +14 -0
- package/esm/util/compositeMap.js +59 -0
- package/esm/util/convertCodingSequenceToPeptides.d.ts +6 -0
- package/esm/util/convertCodingSequenceToPeptides.js +9 -0
- package/esm/util/dedupe.js +12 -0
- package/esm/util/fetchSeq.d.ts +8 -0
- package/esm/util/fetchSeq.js +23 -0
- package/esm/util/flatbush/index.d.ts +25 -0
- package/esm/util/flatbush/index.js +423 -0
- package/esm/util/flatqueue/index.js +61 -0
- package/esm/util/formatFastaStrings.js +8 -0
- package/esm/util/idMaker.js +21 -0
- package/esm/util/index.d.ts +271 -0
- package/esm/util/index.js +873 -0
- package/esm/util/io/RemoteFileWithRangeCache.js +71 -0
- package/esm/util/io/index.d.ts +7 -0
- package/esm/util/io/index.js +92 -0
- package/esm/util/isWebWorker.d.ts +1 -0
- package/esm/util/isWebWorker.js +4 -0
- package/esm/util/jexl.d.ts +2 -0
- package/esm/util/jexl.js +49 -0
- package/esm/util/jexlStrings.js +17 -0
- package/esm/util/layouts/BaseLayout.d.ts +30 -0
- package/esm/util/layouts/BaseLayout.js +1 -0
- package/esm/util/layouts/GranularRectLayout.d.ts +37 -0
- package/esm/util/layouts/GranularRectLayout.js +418 -0
- package/esm/util/layouts/MultiLayout.d.ts +12 -0
- package/esm/util/layouts/MultiLayout.js +40 -0
- package/esm/util/layouts/PileupLayout.d.ts +41 -0
- package/esm/util/layouts/PileupLayout.js +202 -0
- package/esm/util/layouts/PrecomputedLayout.d.ts +30 -0
- package/esm/util/layouts/PrecomputedLayout.js +71 -0
- package/esm/util/layouts/SceneGraph.js +121 -0
- package/esm/util/layouts/index.d.ts +8 -0
- package/esm/util/layouts/index.js +6 -0
- package/esm/util/layouts/intervalUtils.d.ts +3 -0
- package/esm/util/layouts/intervalUtils.js +63 -0
- package/esm/util/librpc.d.ts +2 -0
- package/esm/util/librpc.js +1 -0
- package/esm/util/linkify.d.ts +1 -0
- package/esm/util/linkify.js +5 -0
- package/esm/util/locString.d.ts +9 -0
- package/esm/util/locString.js +62 -0
- package/esm/util/makeAbortableReaction.d.ts +3 -0
- package/esm/util/makeAbortableReaction.js +47 -0
- package/esm/util/map-obj/index.d.ts +13 -0
- package/esm/util/map-obj/index.js +92 -0
- package/esm/util/mst-reflection.d.ts +11 -0
- package/esm/util/mst-reflection.js +54 -0
- package/esm/util/nanoid.d.ts +5 -0
- package/esm/util/nanoid.js +36 -0
- package/esm/util/nextTick.js +3 -0
- package/esm/util/offscreenCanvasGetSerializingSvg.d.ts +5 -0
- package/esm/util/offscreenCanvasGetSerializingSvg.js +9 -0
- package/esm/util/offscreenCanvasPonyfill.d.ts +5 -0
- package/esm/util/offscreenCanvasPonyfill.js +57 -0
- package/esm/util/offscreenCanvasUtils.d.ts +12 -0
- package/esm/util/offscreenCanvasUtils.js +19 -0
- package/esm/util/parseLineByLine.js +22 -0
- package/esm/util/range.js +21 -0
- package/esm/util/renderToAbstractCanvas.d.ts +17 -0
- package/esm/util/renderToAbstractCanvas.js +53 -0
- package/esm/util/rpc.d.ts +2 -0
- package/esm/util/rpc.js +6 -0
- package/esm/util/rxjs.d.ts +4 -0
- package/esm/util/rxjs.js +16 -0
- package/esm/util/simpleFeature.d.ts +44 -0
- package/esm/util/simpleFeature.js +81 -0
- package/esm/util/stats.d.ts +23 -0
- package/esm/util/stats.js +72 -0
- package/esm/util/stopToken.d.ts +19 -0
- package/esm/util/stopToken.js +90 -0
- package/esm/util/tracks.d.ts +72 -0
- package/esm/util/tracks.js +214 -0
- package/esm/util/transferables.d.ts +2 -0
- package/esm/util/transferables.js +35 -0
- package/esm/util/tss-react/cssAndCx.d.ts +16 -0
- package/esm/util/tss-react/cssAndCx.js +97 -0
- package/esm/util/tss-react/index.d.ts +4 -0
- package/esm/util/tss-react/index.js +7 -0
- package/esm/util/tss-react/makeStyles.d.ts +15 -0
- package/esm/util/tss-react/makeStyles.js +38 -0
- package/esm/util/tss-react/mergeClasses.d.ts +2 -0
- package/esm/util/tss-react/mergeClasses.js +24 -0
- package/esm/util/tss-react/mui/index.d.ts +1 -0
- package/esm/util/tss-react/mui/index.js +1 -0
- package/esm/util/tss-react/mui/mui.d.ts +10 -0
- package/esm/util/tss-react/mui/mui.js +5 -0
- package/esm/util/tss-react/tools/classnames.d.ts +2 -0
- package/esm/util/tss-react/tools/classnames.js +44 -0
- package/esm/util/tss-react/tools/getDependencyArrayRef.d.ts +1 -0
- package/esm/util/tss-react/tools/getDependencyArrayRef.js +19 -0
- package/esm/util/tss-react/types.d.ts +13 -0
- package/esm/util/tss-react/types.js +6 -0
- package/esm/util/types/ElementId.d.ts +1 -0
- package/esm/util/types/ElementId.js +3 -0
- package/esm/util/types/index.d.ts +273 -0
- package/esm/util/types/index.js +131 -0
- package/esm/util/types/mst.d.ts +107 -0
- package/esm/util/types/mst.js +68 -0
- package/esm/util/types/util.d.ts +6 -0
- package/esm/util/types/util.js +1 -0
- package/esm/util/useFeatureSequence.d.ts +19 -0
- package/esm/util/useFeatureSequence.js +87 -0
- package/esm/util/useMeasure.js +30 -0
- package/esm/util/when.js +1 -0
- package/package.json +487 -38
- package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +0 -38
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +0 -13
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +0 -48
- package/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.d.ts +0 -8
- package/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.js +0 -13
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +0 -23
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.js +0 -13
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +0 -23
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +0 -30
- package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +0 -63
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +0 -11
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +0 -48
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +0 -27
- package/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/Position.js +0 -17
- package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +0 -20
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.js +0 -28
- package/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +0 -7
- package/BaseFeatureWidget/BaseFeatureDetail/index.js +0 -34
- package/BaseFeatureWidget/BaseFeatureDetail/types.d.ts +0 -7
- package/BaseFeatureWidget/BaseFeatureDetail/types.js +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/util.js +0 -32
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +0 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +0 -46
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +0 -7
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +0 -82
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +0 -7
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +0 -72
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +0 -28
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +0 -3
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +0 -34
- package/BaseFeatureWidget/SequenceFeatureDetails/consts.js +0 -9
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +0 -17
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +0 -50
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +0 -141
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +0 -5
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +0 -66
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +0 -6
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +0 -50
- package/BaseFeatureWidget/SequenceFeatureDetails/index.d.ts +0 -1
- package/BaseFeatureWidget/SequenceFeatureDetails/index.js +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +0 -31
- package/BaseFeatureWidget/SequenceFeatureDetails/model.js +0 -81
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +0 -16
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +0 -89
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +0 -21
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +0 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +0 -57
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +0 -9
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +0 -26
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +0 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +0 -25
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.d.ts +0 -80
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.js +0 -585
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.d.ts +0 -141
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.js +0 -1118
- package/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/types.js +0 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.d.ts +0 -13
- package/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.js +0 -67
- package/BaseFeatureWidget/SequenceFeatureDetails/util.js +0 -46
- package/BaseFeatureWidget/configSchema.d.ts +0 -2
- package/BaseFeatureWidget/configSchema.js +0 -6
- package/BaseFeatureWidget/index.d.ts +0 -2
- package/BaseFeatureWidget/index.js +0 -7
- package/BaseFeatureWidget/stateModelFactory.d.ts +0 -101
- package/BaseFeatureWidget/stateModelFactory.js +0 -99
- package/BaseFeatureWidget/types.d.ts +0 -22
- package/BaseFeatureWidget/types.js +0 -2
- package/BaseFeatureWidget/util.d.ts +0 -51
- package/BaseFeatureWidget/util.js +0 -106
- package/CorePlugin.d.ts +0 -6
- package/CorePlugin.js +0 -66
- package/PhasedScheduler.js +0 -28
- package/Plugin.d.ts +0 -13
- package/Plugin.js +0 -7
- package/PluginLoader.d.ts +0 -64
- package/PluginLoader.js +0 -174
- package/PluginManager.d.ts +0 -139
- package/PluginManager.js +0 -405
- package/ReExports/BaseFeatureDetails.js +0 -45
- package/ReExports/DataGrid.js +0 -5
- package/ReExports/MuiDataGridReExports.js +0 -167
- package/ReExports/MuiReExports.d.ts +0 -133
- package/ReExports/MuiReExports.js +0 -150
- package/ReExports/index.d.ts +0 -1
- package/ReExports/index.js +0 -8
- package/ReExports/lazify.js +0 -14
- package/ReExports/list.js +0 -273
- package/ReExports/material-ui-colors.d.ts +0 -1
- package/ReExports/material-ui-colors.js +0 -17
- package/ReExports/modules.js +0 -179
- package/TextSearch/BaseResults.d.ts +0 -46
- package/TextSearch/BaseResults.js +0 -61
- package/TextSearch/TextSearchManager.d.ts +0 -48
- package/TextSearch/TextSearchManager.js +0 -85
- package/assemblyManager/assembly.d.ts +0 -72
- package/assemblyManager/assembly.js +0 -307
- package/assemblyManager/assemblyConfigSchema.d.ts +0 -27
- package/assemblyManager/assemblyConfigSchema.js +0 -53
- package/assemblyManager/assemblyManager.d.ts +0 -507
- package/assemblyManager/assemblyManager.js +0 -138
- package/assemblyManager/index.d.ts +0 -3
- package/assemblyManager/index.js +0 -10
- package/configuration/configurationSchema.d.ts +0 -35
- package/configuration/configurationSchema.js +0 -174
- package/configuration/configurationSlot.d.ts +0 -31
- package/configuration/configurationSlot.js +0 -241
- package/configuration/index.d.ts +0 -3
- package/configuration/index.js +0 -21
- package/configuration/types.d.ts +0 -14
- package/configuration/types.js +0 -2
- package/configuration/util.d.ts +0 -10
- package/configuration/util.js +0 -123
- package/data_adapters/BaseAdapter/BaseAdapter.d.ts +0 -14
- package/data_adapters/BaseAdapter/BaseAdapter.js +0 -30
- package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +0 -24
- package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +0 -115
- package/data_adapters/BaseAdapter/BaseOptions.d.ts +0 -15
- package/data_adapters/BaseAdapter/BaseOptions.js +0 -2
- package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +0 -10
- package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.js +0 -2
- package/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +0 -10
- package/data_adapters/BaseAdapter/BaseSequenceAdapter.js +0 -10
- package/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +0 -6
- package/data_adapters/BaseAdapter/BaseTextSearchAdapter.js +0 -2
- package/data_adapters/BaseAdapter/RegionsAdapter.d.ts +0 -6
- package/data_adapters/BaseAdapter/RegionsAdapter.js +0 -2
- package/data_adapters/BaseAdapter/index.d.ts +0 -13
- package/data_adapters/BaseAdapter/index.js +0 -25
- package/data_adapters/BaseAdapter/types.d.ts +0 -21
- package/data_adapters/BaseAdapter/types.js +0 -2
- package/data_adapters/BaseAdapter/util.d.ts +0 -12
- package/data_adapters/BaseAdapter/util.js +0 -22
- package/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +0 -6
- package/data_adapters/CytobandAdapter/CytobandAdapter.js +0 -31
- package/data_adapters/CytobandAdapter/configSchema.d.ts +0 -9
- package/data_adapters/CytobandAdapter/configSchema.js +0 -26
- package/data_adapters/CytobandAdapter/index.d.ts +0 -2
- package/data_adapters/CytobandAdapter/index.js +0 -51
- package/data_adapters/dataAdapterCache.d.ts +0 -14
- package/data_adapters/dataAdapterCache.js +0 -60
- package/data_adapters/util.js +0 -10
- package/pluggableElementTypes/AdapterType.d.ts +0 -25
- package/pluggableElementTypes/AdapterType.js +0 -19
- package/pluggableElementTypes/AddTrackWorkflowType.d.ts +0 -17
- package/pluggableElementTypes/AddTrackWorkflowType.js +0 -14
- package/pluggableElementTypes/ConnectionType.d.ts +0 -20
- package/pluggableElementTypes/ConnectionType.js +0 -17
- package/pluggableElementTypes/DisplayType.d.ts +0 -28
- package/pluggableElementTypes/DisplayType.js +0 -18
- package/pluggableElementTypes/InternetAccountType.d.ts +0 -12
- package/pluggableElementTypes/InternetAccountType.js +0 -14
- package/pluggableElementTypes/PluggableElementBase.js +0 -12
- package/pluggableElementTypes/RpcMethodType.d.ts +0 -17
- package/pluggableElementTypes/RpcMethodType.js +0 -69
- package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +0 -11
- package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +0 -35
- package/pluggableElementTypes/TextSearchAdapterType.d.ts +0 -18
- package/pluggableElementTypes/TextSearchAdapterType.js +0 -18
- package/pluggableElementTypes/TrackType.d.ts +0 -16
- package/pluggableElementTypes/TrackType.js +0 -18
- package/pluggableElementTypes/ViewType.d.ts +0 -29
- package/pluggableElementTypes/ViewType.js +0 -21
- package/pluggableElementTypes/WidgetType.d.ts +0 -25
- package/pluggableElementTypes/WidgetType.js +0 -17
- package/pluggableElementTypes/index.d.ts +0 -26
- package/pluggableElementTypes/index.js +0 -44
- package/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +0 -29
- package/pluggableElementTypes/models/BaseConnectionModelFactory.js +0 -38
- package/pluggableElementTypes/models/BaseDisplayModel.d.ts +0 -68
- package/pluggableElementTypes/models/BaseDisplayModel.js +0 -81
- package/pluggableElementTypes/models/BaseTrackModel.d.ts +0 -53
- package/pluggableElementTypes/models/BaseTrackModel.js +0 -145
- package/pluggableElementTypes/models/BaseViewModel.d.ts +0 -42
- package/pluggableElementTypes/models/BaseViewModel.js +0 -35
- package/pluggableElementTypes/models/InternetAccountModel.d.ts +0 -86
- package/pluggableElementTypes/models/InternetAccountModel.js +0 -155
- package/pluggableElementTypes/models/baseConnectionConfig.d.ts +0 -16
- package/pluggableElementTypes/models/baseConnectionConfig.js +0 -20
- package/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +0 -27
- package/pluggableElementTypes/models/baseInternetAccountConfig.js +0 -35
- package/pluggableElementTypes/models/baseTrackConfig.d.ts +0 -82
- package/pluggableElementTypes/models/baseTrackConfig.js +0 -135
- package/pluggableElementTypes/models/index.d.ts +0 -13
- package/pluggableElementTypes/models/index.js +0 -22
- package/pluggableElementTypes/renderers/BoxRendererType.d.ts +0 -60
- package/pluggableElementTypes/renderers/BoxRendererType.js +0 -102
- package/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +0 -26
- package/pluggableElementTypes/renderers/CircularChordRendererType.js +0 -34
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.d.ts +0 -38
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +0 -65
- package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +0 -51
- package/pluggableElementTypes/renderers/FeatureRendererType.js +0 -85
- package/pluggableElementTypes/renderers/LayoutSession.d.ts +0 -25
- package/pluggableElementTypes/renderers/LayoutSession.js +0 -42
- package/pluggableElementTypes/renderers/RendererType.d.ts +0 -25
- package/pluggableElementTypes/renderers/RendererType.js +0 -23
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.d.ts +0 -9
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.js +0 -9
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.d.ts +0 -6
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +0 -8
- package/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +0 -49
- package/pluggableElementTypes/renderers/ServerSideRendererType.js +0 -81
- package/pluggableElementTypes/renderers/index.d.ts +0 -7
- package/pluggableElementTypes/renderers/index.js +0 -20
- package/pluggableElementTypes/renderers/util/serializableFilterChain.js +0 -32
- package/rpc/BaseRpcDriver.d.ts +0 -43
- package/rpc/BaseRpcDriver.js +0 -113
- package/rpc/MainThreadRpcDriver.d.ts +0 -14
- package/rpc/MainThreadRpcDriver.js +0 -32
- package/rpc/RpcManager.d.ts +0 -34
- package/rpc/RpcManager.js +0 -69
- package/rpc/WebWorkerRpcDriver.d.ts +0 -29
- package/rpc/WebWorkerRpcDriver.js +0 -65
- package/rpc/baseRpcConfig.d.ts +0 -8
- package/rpc/baseRpcConfig.js +0 -12
- package/rpc/configSchema.d.ts +0 -9
- package/rpc/configSchema.js +0 -27
- package/rpc/coreRpcMethods.d.ts +0 -9
- package/rpc/coreRpcMethods.js +0 -22
- package/rpc/mainThreadRpcConfig.d.ts +0 -8
- package/rpc/mainThreadRpcConfig.js +0 -13
- package/rpc/methods/CoreFreeResources.d.ts +0 -6
- package/rpc/methods/CoreFreeResources.js +0 -23
- package/rpc/methods/CoreGetFeatureDensityStats.d.ts +0 -17
- package/rpc/methods/CoreGetFeatureDensityStats.js +0 -36
- package/rpc/methods/CoreGetFeatureDetails.d.ts +0 -11
- package/rpc/methods/CoreGetFeatureDetails.js +0 -38
- package/rpc/methods/CoreGetFeatures.d.ts +0 -18
- package/rpc/methods/CoreGetFeatures.js +0 -40
- package/rpc/methods/CoreGetFileInfo.d.ts +0 -9
- package/rpc/methods/CoreGetFileInfo.js +0 -24
- package/rpc/methods/CoreGetMetadata.d.ts +0 -9
- package/rpc/methods/CoreGetMetadata.js +0 -24
- package/rpc/methods/CoreGetRefNames.d.ts +0 -9
- package/rpc/methods/CoreGetRefNames.js +0 -25
- package/rpc/methods/CoreRender.d.ts +0 -10
- package/rpc/methods/CoreRender.js +0 -46
- package/rpc/methods/util.d.ts +0 -15
- package/rpc/methods/util.js +0 -9
- package/rpc/webWorkerRpcConfig.d.ts +0 -8
- package/rpc/webWorkerRpcConfig.js +0 -13
- package/stories/JBrowseCore.stories.d.ts +0 -5
- package/stories/JBrowseCore.stories.js +0 -10
- package/stories/examples/WithSequencePanel.d.ts +0 -6
- package/stories/examples/WithSequencePanel.js +0 -42
- package/stories/examples/index.d.ts +0 -1
- package/stories/examples/index.js +0 -17
- package/stories/examples/util.d.ts +0 -33
- package/stories/examples/util.js +0 -235
- package/tsconfig.build.tsbuildinfo +0 -1
- package/ui/AppLogo.d.ts +0 -7
- package/ui/AppLogo.js +0 -12
- package/ui/AssemblySelector.d.ts +0 -13
- package/ui/AssemblySelector.js +0 -46
- package/ui/BaseTooltip.js +0 -46
- package/ui/CascadingMenu.d.ts +0 -9
- package/ui/CascadingMenu.js +0 -114
- package/ui/CascadingMenuButton.d.ts +0 -11
- package/ui/CascadingMenuButton.js +0 -29
- package/ui/ColorPicker.js +0 -101
- package/ui/ConfirmDialog.js +0 -18
- package/ui/DataGridFlexContainer.d.ts +0 -3
- package/ui/DataGridFlexContainer.js +0 -15
- package/ui/Dialog.d.ts +0 -7
- package/ui/Dialog.js +0 -50
- package/ui/DraggableDialog.js +0 -32
- package/ui/DropDownMenu.d.ts +0 -8
- package/ui/DropDownMenu.js +0 -37
- package/ui/EditableTypography.js +0 -65
- package/ui/ErrorBoundary.d.ts +0 -17
- package/ui/ErrorBoundary.js +0 -19
- package/ui/ErrorMessage.js +0 -94
- package/ui/ErrorMessageStackTraceDialog.js +0 -149
- package/ui/ExternalLink.js +0 -13
- package/ui/FactoryResetDialog.js +0 -24
- package/ui/FatalErrorDialog.js +0 -24
- package/ui/FileSelector/FileSelector.d.ts +0 -11
- package/ui/FileSelector/FileSelector.js +0 -102
- package/ui/FileSelector/LocalFileChooser.d.ts +0 -6
- package/ui/FileSelector/LocalFileChooser.js +0 -42
- package/ui/FileSelector/UrlChooser.d.ts +0 -8
- package/ui/FileSelector/UrlChooser.js +0 -19
- package/ui/FileSelector/index.d.ts +0 -1
- package/ui/FileSelector/index.js +0 -8
- package/ui/HoverMenu.js +0 -50
- package/ui/Icons.js +0 -23
- package/ui/LoadingEllipses.js +0 -35
- package/ui/Logo.js +0 -46
- package/ui/Menu.d.ts +0 -54
- package/ui/Menu.js +0 -233
- package/ui/MenuButton.d.ts +0 -10
- package/ui/MenuButton.js +0 -28
- package/ui/PrerenderedCanvas.d.ts +0 -10
- package/ui/PrerenderedCanvas.js +0 -34
- package/ui/RedErrorMessageBox.js +0 -19
- package/ui/ResizeHandle.js +0 -72
- package/ui/ReturnToImportFormDialog.js +0 -18
- package/ui/SanitizedHTML.js +0 -67
- package/ui/Snackbar.d.ts +0 -10
- package/ui/Snackbar.js +0 -49
- package/ui/SnackbarContents.d.ts +0 -5
- package/ui/SnackbarContents.js +0 -16
- package/ui/SnackbarModel.d.ts +0 -17
- package/ui/SnackbarModel.js +0 -96
- package/ui/colors.js +0 -78
- package/ui/hooks.d.ts +0 -66
- package/ui/hooks.js +0 -185
- package/ui/index.d.ts +0 -19
- package/ui/index.js +0 -56
- package/ui/react-colorful.d.ts +0 -17
- package/ui/react-colorful.js +0 -466
- package/ui/theme.d.ts +0 -59
- package/ui/theme.js +0 -381
- package/ui/useEvent.js +0 -47
- package/util/Base1DUtils.d.ts +0 -38
- package/util/Base1DUtils.js +0 -198
- package/util/Base1DViewModel.d.ts +0 -61
- package/util/Base1DViewModel.js +0 -135
- package/util/QuickLRU.d.ts +0 -32
- package/util/QuickLRU.js +0 -237
- package/util/TimeTraveller.d.ts +0 -19
- package/util/TimeTraveller.js +0 -90
- package/util/aborting.js +0 -48
- package/util/analytics.js +0 -86
- package/util/blobToDataURL.js +0 -17
- package/util/blockTypes.d.ts +0 -58
- package/util/blockTypes.js +0 -110
- package/util/calculateDynamicBlocks.d.ts +0 -3
- package/util/calculateDynamicBlocks.js +0 -100
- package/util/calculateStaticBlocks.d.ts +0 -13
- package/util/calculateStaticBlocks.js +0 -102
- package/util/cluster.d.ts +0 -17
- package/util/cluster.js +0 -102
- package/util/color/cssColorsLevel4.js +0 -160
- package/util/color/index.d.ts +0 -5
- package/util/color/index.js +0 -48
- package/util/colord.d.ts +0 -1
- package/util/colord.js +0 -13
- package/util/compositeMap.js +0 -61
- package/util/convertCodingSequenceToPeptides.d.ts +0 -6
- package/util/convertCodingSequenceToPeptides.js +0 -12
- package/util/dedupe.js +0 -15
- package/util/fetchSeq.d.ts +0 -8
- package/util/fetchSeq.js +0 -27
- package/util/flatbush/index.d.ts +0 -25
- package/util/flatbush/index.js +0 -362
- package/util/flatqueue/index.js +0 -66
- package/util/formatFastaStrings.js +0 -12
- package/util/idMaker.js +0 -24
- package/util/index.d.ts +0 -274
- package/util/index.js +0 -1052
- package/util/io/RemoteFileWithRangeCache.js +0 -76
- package/util/io/index.d.ts +0 -7
- package/util/io/index.js +0 -103
- package/util/jexl.d.ts +0 -4
- package/util/jexl.js +0 -55
- package/util/jexlStrings.js +0 -23
- package/util/layouts/BaseLayout.d.ts +0 -30
- package/util/layouts/BaseLayout.js +0 -2
- package/util/layouts/GranularRectLayout.d.ts +0 -37
- package/util/layouts/GranularRectLayout.js +0 -343
- package/util/layouts/MultiLayout.d.ts +0 -12
- package/util/layouts/MultiLayout.js +0 -42
- package/util/layouts/PrecomputedLayout.d.ts +0 -30
- package/util/layouts/PrecomputedLayout.js +0 -75
- package/util/layouts/PrecomputedMultiLayout.d.ts +0 -4
- package/util/layouts/PrecomputedMultiLayout.js +0 -21
- package/util/layouts/SceneGraph.js +0 -115
- package/util/layouts/index.d.ts +0 -7
- package/util/layouts/index.js +0 -31
- package/util/makeAbortableReaction.d.ts +0 -2
- package/util/makeAbortableReaction.js +0 -50
- package/util/map-obj.d.ts +0 -3
- package/util/map-obj.js +0 -37
- package/util/mst-reflection.d.ts +0 -11
- package/util/mst-reflection.js +0 -62
- package/util/nanoid.d.ts +0 -5
- package/util/nanoid.js +0 -43
- package/util/nextTick.js +0 -6
- package/util/offscreenCanvasPonyfill.d.ts +0 -7
- package/util/offscreenCanvasPonyfill.js +0 -65
- package/util/offscreenCanvasUtils.d.ts +0 -28
- package/util/offscreenCanvasUtils.js +0 -99
- package/util/parseLineByLine.js +0 -25
- package/util/range.js +0 -26
- package/util/rxjs.d.ts +0 -3
- package/util/rxjs.js +0 -21
- package/util/simpleFeature.d.ts +0 -44
- package/util/simpleFeature.js +0 -82
- package/util/stats.d.ts +0 -21
- package/util/stats.js +0 -78
- package/util/stopToken.d.ts +0 -3
- package/util/stopToken.js +0 -29
- package/util/tracks.d.ts +0 -55
- package/util/tracks.js +0 -168
- package/util/types/index.d.ts +0 -254
- package/util/types/index.js +0 -172
- package/util/types/mst.d.ts +0 -107
- package/util/types/mst.js +0 -72
- package/util/types/util.d.ts +0 -6
- package/util/types/util.js +0 -2
- package/util/useFeatureSequence.d.ts +0 -19
- package/util/useFeatureSequence.js +0 -90
- package/util/useMeasure.js +0 -33
- package/util/when.js +0 -5
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/ArrayValue.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/BasicValue.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/DataGridDetails.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/FieldName.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/SimpleField.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/UriField.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/util.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/consts.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/dialogs/HelpDialog.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/util.d.ts +0 -0
- /package/{PhasedScheduler.d.ts → esm/PhasedScheduler.d.ts} +0 -0
- /package/{ReExports → esm/ReExports}/BaseFeatureDetails.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/DataGrid.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/MuiDataGridReExports.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/lazify.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/list.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/modules.d.ts +0 -0
- /package/{data_adapters → esm/data_adapters}/util.d.ts +0 -0
- /package/{pluggableElementTypes → esm/pluggableElementTypes}/PluggableElementBase.d.ts +0 -0
- /package/{pluggableElementTypes → esm/pluggableElementTypes}/renderers/util/serializableFilterChain.d.ts +0 -0
- /package/{ui → esm/ui}/BaseTooltip.d.ts +0 -0
- /package/{ui → esm/ui}/ColorPicker.d.ts +0 -0
- /package/{ui → esm/ui}/ConfirmDialog.d.ts +0 -0
- /package/{ui → esm/ui}/DraggableDialog.d.ts +0 -0
- /package/{ui → esm/ui}/EditableTypography.d.ts +0 -0
- /package/{ui → esm/ui}/ErrorMessage.d.ts +0 -0
- /package/{ui → esm/ui}/ErrorMessageStackTraceDialog.d.ts +0 -0
- /package/{ui → esm/ui}/ExternalLink.d.ts +0 -0
- /package/{ui → esm/ui}/FactoryResetDialog.d.ts +0 -0
- /package/{ui → esm/ui}/FatalErrorDialog.d.ts +0 -0
- /package/{ui → esm/ui}/HoverMenu.d.ts +0 -0
- /package/{ui → esm/ui}/Icons.d.ts +0 -0
- /package/{ui → esm/ui}/LoadingEllipses.d.ts +0 -0
- /package/{ui → esm/ui}/Logo.d.ts +0 -0
- /package/{ui → esm/ui}/RedErrorMessageBox.d.ts +0 -0
- /package/{ui → esm/ui}/ResizeHandle.d.ts +0 -0
- /package/{ui → esm/ui}/ReturnToImportFormDialog.d.ts +0 -0
- /package/{ui → esm/ui}/SanitizedHTML.d.ts +0 -0
- /package/{ui → esm/ui}/colors.d.ts +0 -0
- /package/{ui → esm/ui}/useEvent.d.ts +0 -0
- /package/{util → esm/util}/aborting.d.ts +0 -0
- /package/{util → esm/util}/analytics.d.ts +0 -0
- /package/{util → esm/util}/blobToDataURL.d.ts +0 -0
- /package/{util → esm/util}/color/cssColorsLevel4.d.ts +0 -0
- /package/{util → esm/util}/compositeMap.d.ts +0 -0
- /package/{util → esm/util}/dedupe.d.ts +0 -0
- /package/{util → esm/util}/flatqueue/index.d.ts +0 -0
- /package/{util → esm/util}/formatFastaStrings.d.ts +0 -0
- /package/{util → esm/util}/idMaker.d.ts +0 -0
- /package/{util → esm/util}/io/RemoteFileWithRangeCache.d.ts +0 -0
- /package/{util → esm/util}/jexlStrings.d.ts +0 -0
- /package/{util → esm/util}/layouts/SceneGraph.d.ts +0 -0
- /package/{util → esm/util}/nextTick.d.ts +0 -0
- /package/{util → esm/util}/parseLineByLine.d.ts +0 -0
- /package/{util → esm/util}/range.d.ts +0 -0
- /package/{util → esm/util}/useMeasure.d.ts +0 -0
- /package/{util → esm/util}/when.d.ts +0 -0
package/util/tracks.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UNSUPPORTED = exports.UNKNOWN = void 0;
|
|
4
|
-
exports.getTrackAssemblyNames = getTrackAssemblyNames;
|
|
5
|
-
exports.getConfAssemblyNames = getConfAssemblyNames;
|
|
6
|
-
exports.getRpcSessionId = getRpcSessionId;
|
|
7
|
-
exports.getParentRenderProps = getParentRenderProps;
|
|
8
|
-
exports.getBlob = getBlob;
|
|
9
|
-
exports.getBlobMap = getBlobMap;
|
|
10
|
-
exports.setBlobMap = setBlobMap;
|
|
11
|
-
exports.storeBlobLocation = storeBlobLocation;
|
|
12
|
-
exports.makeIndex = makeIndex;
|
|
13
|
-
exports.makeIndexType = makeIndexType;
|
|
14
|
-
exports.getFileName = getFileName;
|
|
15
|
-
exports.guessAdapter = guessAdapter;
|
|
16
|
-
exports.guessTrackType = guessTrackType;
|
|
17
|
-
exports.generateUnsupportedTrackConf = generateUnsupportedTrackConf;
|
|
18
|
-
exports.generateUnknownTrackConf = generateUnknownTrackConf;
|
|
19
|
-
exports.getTrackName = getTrackName;
|
|
20
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
21
|
-
const index_1 = require("./index");
|
|
22
|
-
const configuration_1 = require("../configuration");
|
|
23
|
-
function getTrackAssemblyNames(track) {
|
|
24
|
-
return getConfAssemblyNames(track.configuration);
|
|
25
|
-
}
|
|
26
|
-
function getConfAssemblyNames(conf) {
|
|
27
|
-
const trackAssemblyNames = (0, configuration_1.readConfObject)(conf, 'assemblyNames');
|
|
28
|
-
if (!trackAssemblyNames) {
|
|
29
|
-
const parent = (0, mobx_state_tree_1.getParent)(conf);
|
|
30
|
-
if ('sequence' in parent) {
|
|
31
|
-
return [(0, configuration_1.readConfObject)(parent, 'name')];
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
throw new Error('unknown assembly names');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return trackAssemblyNames;
|
|
38
|
-
}
|
|
39
|
-
function getRpcSessionId(thisNode) {
|
|
40
|
-
let highestRpcSessionId;
|
|
41
|
-
for (let node = thisNode; !(0, mobx_state_tree_1.isRoot)(node); node = (0, mobx_state_tree_1.getParent)(node)) {
|
|
42
|
-
if ('rpcSessionId' in node) {
|
|
43
|
-
highestRpcSessionId = node.rpcSessionId;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if (!highestRpcSessionId) {
|
|
47
|
-
throw new Error('getRpcSessionId failed, no parent node in the state tree has an `rpcSessionId` attribute');
|
|
48
|
-
}
|
|
49
|
-
return highestRpcSessionId;
|
|
50
|
-
}
|
|
51
|
-
function getParentRenderProps(node) {
|
|
52
|
-
for (let currentNode = (0, mobx_state_tree_1.getParent)(node); !(0, mobx_state_tree_1.isRoot)(currentNode); currentNode = (0, mobx_state_tree_1.getParent)(currentNode)) {
|
|
53
|
-
if ('renderProps' in currentNode) {
|
|
54
|
-
return currentNode.renderProps();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return {};
|
|
58
|
-
}
|
|
59
|
-
exports.UNKNOWN = 'UNKNOWN';
|
|
60
|
-
exports.UNSUPPORTED = 'UNSUPPORTED';
|
|
61
|
-
let blobMap = {};
|
|
62
|
-
function getBlob(id) {
|
|
63
|
-
return blobMap[id];
|
|
64
|
-
}
|
|
65
|
-
function getBlobMap() {
|
|
66
|
-
return blobMap;
|
|
67
|
-
}
|
|
68
|
-
function setBlobMap(map) {
|
|
69
|
-
blobMap = map;
|
|
70
|
-
}
|
|
71
|
-
let counter = 0;
|
|
72
|
-
function storeBlobLocation(location) {
|
|
73
|
-
if ('blob' in location) {
|
|
74
|
-
const blobId = `b${Date.now()}-${counter++}`;
|
|
75
|
-
blobMap[blobId] = location.blob;
|
|
76
|
-
return { name: location.blob.name, blobId, locationType: 'BlobLocation' };
|
|
77
|
-
}
|
|
78
|
-
return location;
|
|
79
|
-
}
|
|
80
|
-
function makeIndex(location, suffix) {
|
|
81
|
-
if ('uri' in location) {
|
|
82
|
-
return {
|
|
83
|
-
uri: location.uri + suffix,
|
|
84
|
-
locationType: 'UriLocation',
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
else if ('localPath' in location) {
|
|
88
|
-
return {
|
|
89
|
-
localPath: location.localPath + suffix,
|
|
90
|
-
locationType: 'LocalPathLocation',
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return location;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function makeIndexType(name, typeA, typeB) {
|
|
98
|
-
return (name === null || name === void 0 ? void 0 : name.toUpperCase().endsWith(typeA)) ? typeA : typeB;
|
|
99
|
-
}
|
|
100
|
-
function getFileName(track) {
|
|
101
|
-
const uri = 'uri' in track ? track.uri : undefined;
|
|
102
|
-
const localPath = 'localPath' in track ? track.localPath : undefined;
|
|
103
|
-
const blob = 'blobId' in track ? track : undefined;
|
|
104
|
-
return ((blob === null || blob === void 0 ? void 0 : blob.name) ||
|
|
105
|
-
(uri === null || uri === void 0 ? void 0 : uri.slice(uri.lastIndexOf('/') + 1)) ||
|
|
106
|
-
(localPath === null || localPath === void 0 ? void 0 : localPath.slice(localPath.replace(/\\/g, '/').lastIndexOf('/') + 1)) ||
|
|
107
|
-
'');
|
|
108
|
-
}
|
|
109
|
-
function guessAdapter(file, index, adapterHint, model) {
|
|
110
|
-
if (model) {
|
|
111
|
-
const { pluginManager } = (0, index_1.getEnv)(model);
|
|
112
|
-
const adapterGuesser = pluginManager.evaluateExtensionPoint('Core-guessAdapterForLocation', (_file, _index, _adapterHint) => {
|
|
113
|
-
return undefined;
|
|
114
|
-
});
|
|
115
|
-
const adapter = adapterGuesser(file, index, adapterHint);
|
|
116
|
-
if (adapter) {
|
|
117
|
-
return adapter;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
type: exports.UNKNOWN,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function guessTrackType(adapterType, model) {
|
|
125
|
-
if (model) {
|
|
126
|
-
const session = (0, index_1.getSession)(model);
|
|
127
|
-
const trackTypeGuesser = (0, index_1.getEnv)(session).pluginManager.evaluateExtensionPoint('Core-guessTrackTypeForLocation', (_adapterName) => {
|
|
128
|
-
return undefined;
|
|
129
|
-
});
|
|
130
|
-
const trackType = trackTypeGuesser(adapterType);
|
|
131
|
-
if (trackType) {
|
|
132
|
-
return trackType;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return 'FeatureTrack';
|
|
136
|
-
}
|
|
137
|
-
function generateUnsupportedTrackConf(trackName, trackUrl, categories) {
|
|
138
|
-
const conf = {
|
|
139
|
-
type: 'FeatureTrack',
|
|
140
|
-
name: `${trackName} (Unsupported)`,
|
|
141
|
-
description: `Support not yet implemented for "${trackUrl}"`,
|
|
142
|
-
category: categories,
|
|
143
|
-
trackId: '',
|
|
144
|
-
};
|
|
145
|
-
conf.trackId = (0, index_1.objectHash)(conf);
|
|
146
|
-
return conf;
|
|
147
|
-
}
|
|
148
|
-
function generateUnknownTrackConf(trackName, trackUrl, categories) {
|
|
149
|
-
const conf = {
|
|
150
|
-
type: 'FeatureTrack',
|
|
151
|
-
name: `${trackName} (Unknown)`,
|
|
152
|
-
description: `Could not determine track type for "${trackUrl}"`,
|
|
153
|
-
category: categories,
|
|
154
|
-
trackId: '',
|
|
155
|
-
};
|
|
156
|
-
conf.trackId = (0, index_1.objectHash)(conf);
|
|
157
|
-
return conf;
|
|
158
|
-
}
|
|
159
|
-
function getTrackName(conf, session) {
|
|
160
|
-
const trackName = (0, configuration_1.readConfObject)(conf, 'name');
|
|
161
|
-
if (!trackName && (0, configuration_1.readConfObject)(conf, 'type') === 'ReferenceSequenceTrack') {
|
|
162
|
-
const asm = session.assemblies.find(a => a.sequence === conf);
|
|
163
|
-
return asm
|
|
164
|
-
? `Reference sequence (${(0, configuration_1.readConfObject)(asm, 'displayName') || (0, configuration_1.readConfObject)(asm, 'name')})`
|
|
165
|
-
: 'Reference sequence';
|
|
166
|
-
}
|
|
167
|
-
return trackName;
|
|
168
|
-
}
|
package/util/types/index.d.ts
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { BlobLocation as MUBlobLocation, LocalPathLocation as MULocalPathLocation, NoAssemblyRegion as MUNoAssemblyRegion, Region as MUIRegion, UriLocation as MUUriLocation } from './mst';
|
|
3
|
-
import type TextSearchManager from '../../TextSearch/TextSearchManager';
|
|
4
|
-
import type assemblyManager from '../../assemblyManager';
|
|
5
|
-
import type { AnyConfigurationModel } from '../../configuration';
|
|
6
|
-
import type { BaseInternetAccountModel } from '../../pluggableElementTypes/models';
|
|
7
|
-
import type RpcManager from '../../rpc/RpcManager';
|
|
8
|
-
import type { MenuItem } from '../../ui';
|
|
9
|
-
import type { Feature } from '../simpleFeature';
|
|
10
|
-
import type { ThemeOptions } from '@mui/material';
|
|
11
|
-
import type { IAnyStateTreeNode, IStateTreeNode, IType, Instance, SnapshotIn } from 'mobx-state-tree';
|
|
12
|
-
export * from './util';
|
|
13
|
-
export interface AbstractViewContainer extends IStateTreeNode<IType<any, any, any>> {
|
|
14
|
-
views: AbstractViewModel[];
|
|
15
|
-
removeView(view: AbstractViewModel): void;
|
|
16
|
-
addView(typeName: string, initialState?: Record<string, unknown>): AbstractViewModel;
|
|
17
|
-
}
|
|
18
|
-
export declare function isViewContainer(thing: unknown): thing is AbstractViewContainer;
|
|
19
|
-
export type NotificationLevel = 'error' | 'info' | 'warning' | 'success';
|
|
20
|
-
export interface SnackAction {
|
|
21
|
-
name: React.ReactElement | string;
|
|
22
|
-
onClick: () => void;
|
|
23
|
-
}
|
|
24
|
-
export type AssemblyManager = Instance<ReturnType<typeof assemblyManager>>;
|
|
25
|
-
export interface BasePlugin {
|
|
26
|
-
version?: string;
|
|
27
|
-
name: string;
|
|
28
|
-
url?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface JBrowsePlugin {
|
|
31
|
-
name: string;
|
|
32
|
-
authors: string[];
|
|
33
|
-
description: string;
|
|
34
|
-
location: string;
|
|
35
|
-
url?: string;
|
|
36
|
-
umdUrl?: string;
|
|
37
|
-
esmUrl?: string;
|
|
38
|
-
cjsUrl?: string;
|
|
39
|
-
license: string;
|
|
40
|
-
image?: string;
|
|
41
|
-
}
|
|
42
|
-
export type DialogComponentType = React.LazyExoticComponent<React.FC<any>> | React.FC<any>;
|
|
43
|
-
export interface AbstractSessionModel extends AbstractViewContainer {
|
|
44
|
-
jbrowse: IAnyStateTreeNode;
|
|
45
|
-
drawerPosition?: string;
|
|
46
|
-
configuration: AnyConfigurationModel;
|
|
47
|
-
rpcManager: RpcManager;
|
|
48
|
-
assemblyNames: string[];
|
|
49
|
-
assemblies: AnyConfigurationModel[];
|
|
50
|
-
selection?: unknown;
|
|
51
|
-
focusedViewId?: string;
|
|
52
|
-
themeName?: string;
|
|
53
|
-
hovered: unknown;
|
|
54
|
-
setHovered: (arg: unknown) => void;
|
|
55
|
-
setFocusedViewId?: (id: string) => void;
|
|
56
|
-
allThemes?: () => Record<string, ThemeOptions>;
|
|
57
|
-
setSelection: (feature: Feature) => void;
|
|
58
|
-
setSession?: (arg: {
|
|
59
|
-
name: string;
|
|
60
|
-
[key: string]: unknown;
|
|
61
|
-
}) => void;
|
|
62
|
-
clearSelection: () => void;
|
|
63
|
-
duplicateCurrentSession?: () => void;
|
|
64
|
-
notify: (message: string, level?: NotificationLevel, action?: SnackAction) => void;
|
|
65
|
-
notifyError: (message: string, error?: unknown, extra?: unknown) => void;
|
|
66
|
-
assemblyManager: AssemblyManager;
|
|
67
|
-
version: string;
|
|
68
|
-
getTrackActionMenuItems?: Function;
|
|
69
|
-
addAssembly?: Function;
|
|
70
|
-
removeAssembly?: Function;
|
|
71
|
-
textSearchManager?: TextSearchManager;
|
|
72
|
-
connections: AnyConfigurationModel[];
|
|
73
|
-
deleteConnection?: Function;
|
|
74
|
-
temporaryAssemblies?: unknown[];
|
|
75
|
-
addTemporaryAssembly?: (arg: Record<string, unknown>) => void;
|
|
76
|
-
removeTemporaryAssembly?: (arg: string) => void;
|
|
77
|
-
sessionConnections?: AnyConfigurationModel[];
|
|
78
|
-
sessionTracks?: AnyConfigurationModel[];
|
|
79
|
-
connectionInstances?: {
|
|
80
|
-
name: string;
|
|
81
|
-
tracks: AnyConfigurationModel[];
|
|
82
|
-
configuration: AnyConfigurationModel;
|
|
83
|
-
}[];
|
|
84
|
-
makeConnection?: Function;
|
|
85
|
-
breakConnection?: Function;
|
|
86
|
-
prepareToBreakConnection?: (arg: AnyConfigurationModel) => any;
|
|
87
|
-
adminMode?: boolean;
|
|
88
|
-
showWidget?: Function;
|
|
89
|
-
addWidget?: Function;
|
|
90
|
-
DialogComponent?: DialogComponentType;
|
|
91
|
-
DialogProps: any;
|
|
92
|
-
queueDialog<T extends DialogComponentType>(callback: (doneCallback: () => void) => [T, React.ComponentProps<T>]): void;
|
|
93
|
-
name: string;
|
|
94
|
-
id?: string;
|
|
95
|
-
tracks: AnyConfigurationModel[];
|
|
96
|
-
}
|
|
97
|
-
export declare function isSessionModel(thing: unknown): thing is AbstractSessionModel;
|
|
98
|
-
export interface SessionWithConfigEditing extends AbstractSessionModel {
|
|
99
|
-
editConfiguration(configuration: AnyConfigurationModel): void;
|
|
100
|
-
}
|
|
101
|
-
export declare function isSessionModelWithConfigEditing(t: unknown): t is SessionWithConfigEditing;
|
|
102
|
-
export interface SessionWithAddTracks extends AbstractSessionModel {
|
|
103
|
-
addTrackConf(configuration: AnyConfigurationModel | SnapshotIn<AnyConfigurationModel>): void;
|
|
104
|
-
}
|
|
105
|
-
export declare function isSessionWithAddTracks(t: unknown): t is SessionWithAddTracks;
|
|
106
|
-
export interface SessionWithShareURL extends AbstractSessionModel {
|
|
107
|
-
shareURL: string;
|
|
108
|
-
}
|
|
109
|
-
export declare function isSessionWithShareURL(thing: unknown): thing is SessionWithShareURL;
|
|
110
|
-
export interface Widget {
|
|
111
|
-
type: string;
|
|
112
|
-
id: string;
|
|
113
|
-
}
|
|
114
|
-
export interface SessionWithWidgets extends AbstractSessionModel {
|
|
115
|
-
minimized: boolean;
|
|
116
|
-
visibleWidget?: Widget;
|
|
117
|
-
widgets: Map<string | number, Widget>;
|
|
118
|
-
activeWidgets: Map<string | number, Widget>;
|
|
119
|
-
hideAllWidgets: () => void;
|
|
120
|
-
addWidget(typeName: string, id: string, initialState?: Record<string, unknown>, configuration?: {
|
|
121
|
-
type: string;
|
|
122
|
-
}): Widget;
|
|
123
|
-
showWidget(widget: unknown): void;
|
|
124
|
-
hideWidget(widget: unknown): void;
|
|
125
|
-
}
|
|
126
|
-
export interface SessionWithDrawerWidgets extends SessionWithWidgets {
|
|
127
|
-
drawerWidth: number;
|
|
128
|
-
resizeDrawer(arg: number): number;
|
|
129
|
-
minimizeWidgetDrawer(): void;
|
|
130
|
-
showWidgetDrawer: () => void;
|
|
131
|
-
drawerPosition: string;
|
|
132
|
-
setDrawerPosition(arg: string): void;
|
|
133
|
-
}
|
|
134
|
-
export declare function isSessionModelWithWidgets(thing: unknown): thing is SessionWithWidgets;
|
|
135
|
-
export interface SessionWithConnections {
|
|
136
|
-
makeConnection: (arg: AnyConfigurationModel) => void;
|
|
137
|
-
}
|
|
138
|
-
export declare function isSessionModelWithConnections(thing: unknown): thing is SessionWithConnections;
|
|
139
|
-
export interface SessionWithConnectionEditing {
|
|
140
|
-
addConnectionConf: (arg: AnyConfigurationModel) => void;
|
|
141
|
-
}
|
|
142
|
-
export declare function isSessionModelWithConnectionEditing(thing: unknown): thing is SessionWithConnectionEditing;
|
|
143
|
-
export interface SessionWithSessionPlugins extends AbstractSessionModel {
|
|
144
|
-
sessionPlugins: JBrowsePlugin[];
|
|
145
|
-
addSessionPlugin: Function;
|
|
146
|
-
removeSessionPlugin: Function;
|
|
147
|
-
}
|
|
148
|
-
export declare function isSessionWithSessionPlugins(thing: unknown): thing is SessionWithSessionPlugins;
|
|
149
|
-
export interface SelectionContainer extends AbstractSessionModel {
|
|
150
|
-
selection?: unknown;
|
|
151
|
-
setSelection(thing: unknown): void;
|
|
152
|
-
}
|
|
153
|
-
export declare function isSelectionContainer(thing: unknown): thing is SelectionContainer;
|
|
154
|
-
export interface SessionWithFocusedViewAndDrawerWidgets extends SessionWithDrawerWidgets {
|
|
155
|
-
focusedViewId: string | undefined;
|
|
156
|
-
setFocusedViewId(id: string): void;
|
|
157
|
-
}
|
|
158
|
-
export interface AbstractViewModel {
|
|
159
|
-
id: string;
|
|
160
|
-
type: string;
|
|
161
|
-
width: number;
|
|
162
|
-
minimized: boolean;
|
|
163
|
-
setWidth(width: number): void;
|
|
164
|
-
setMinimized(flag: boolean): void;
|
|
165
|
-
displayName: string | undefined;
|
|
166
|
-
setDisplayName: (arg: string) => void;
|
|
167
|
-
menuItems: () => MenuItem[];
|
|
168
|
-
}
|
|
169
|
-
export declare function isViewModel(thing: unknown): thing is AbstractViewModel;
|
|
170
|
-
export interface AbstractTrackModel {
|
|
171
|
-
id: string;
|
|
172
|
-
displays: AbstractDisplayModel[];
|
|
173
|
-
configuration: AnyConfigurationModel;
|
|
174
|
-
}
|
|
175
|
-
export declare function isTrackModel(thing: unknown): thing is AbstractTrackModel;
|
|
176
|
-
export interface AbstractDisplayModel {
|
|
177
|
-
id: string;
|
|
178
|
-
parentTrack: AbstractTrackModel;
|
|
179
|
-
renderDelay: number;
|
|
180
|
-
rendererType: any;
|
|
181
|
-
cannotBeRenderedReason?: string;
|
|
182
|
-
}
|
|
183
|
-
export declare function isDisplayModel(thing: unknown): thing is AbstractDisplayModel;
|
|
184
|
-
export interface TrackViewModel extends AbstractViewModel {
|
|
185
|
-
showTrack(trackId: string): void;
|
|
186
|
-
hideTrack(trackId: string): void;
|
|
187
|
-
}
|
|
188
|
-
export declare function isTrackViewModel(thing: unknown): thing is TrackViewModel;
|
|
189
|
-
export interface AbstractRootModel {
|
|
190
|
-
jbrowse: IAnyStateTreeNode;
|
|
191
|
-
session?: AbstractSessionModel;
|
|
192
|
-
setDefaultSession?(): void;
|
|
193
|
-
adminMode?: boolean;
|
|
194
|
-
error?: unknown;
|
|
195
|
-
}
|
|
196
|
-
export interface AppRootModel extends AbstractRootModel {
|
|
197
|
-
internetAccounts: BaseInternetAccountModel[];
|
|
198
|
-
findAppropriateInternetAccount(location: UriLocation): BaseInternetAccountModel | undefined;
|
|
199
|
-
}
|
|
200
|
-
export declare function isAppRootModel(thing: unknown): thing is AppRootModel;
|
|
201
|
-
export interface RootModelWithInternetAccounts extends AbstractRootModel {
|
|
202
|
-
internetAccounts: BaseInternetAccountModel[];
|
|
203
|
-
findAppropriateInternetAccount(location: UriLocation): BaseInternetAccountModel | undefined;
|
|
204
|
-
}
|
|
205
|
-
export declare function isRootModelWithInternetAccounts(thing: unknown): thing is RootModelWithInternetAccounts;
|
|
206
|
-
export interface AbstractMenuManager {
|
|
207
|
-
appendMenu(menuName: string): void;
|
|
208
|
-
insertMenu(menuName: string, position: number): number;
|
|
209
|
-
insertInMenu(menuName: string, menuItem: MenuItem, position: number): number;
|
|
210
|
-
appendToMenu(menuName: string, menuItem: MenuItem): number;
|
|
211
|
-
appendToSubMenu(menuPath: string[], menuItem: MenuItem): number;
|
|
212
|
-
insertInSubMenu(menuPath: string[], menuItem: MenuItem, position: number): number;
|
|
213
|
-
}
|
|
214
|
-
export declare function isAbstractMenuManager(thing: unknown): thing is AbstractMenuManager;
|
|
215
|
-
export interface NoAssemblyRegion extends SnapshotIn<typeof MUNoAssemblyRegion> {
|
|
216
|
-
}
|
|
217
|
-
export interface Region extends SnapshotIn<typeof MUIRegion> {
|
|
218
|
-
}
|
|
219
|
-
export interface AugmentedRegion extends Region {
|
|
220
|
-
originalRefName?: string;
|
|
221
|
-
}
|
|
222
|
-
export interface LocalPathLocation extends SnapshotIn<typeof MULocalPathLocation> {
|
|
223
|
-
}
|
|
224
|
-
export interface UriLocation extends SnapshotIn<typeof MUUriLocation> {
|
|
225
|
-
}
|
|
226
|
-
export declare function isUriLocation(location: unknown): location is UriLocation;
|
|
227
|
-
export declare function isLocalPathLocation(location: unknown): location is LocalPathLocation;
|
|
228
|
-
export declare function isBlobLocation(location: unknown): location is BlobLocation;
|
|
229
|
-
export declare class AuthNeededError extends Error {
|
|
230
|
-
message: string;
|
|
231
|
-
url: string;
|
|
232
|
-
constructor(message: string, url: string);
|
|
233
|
-
}
|
|
234
|
-
export declare class RetryError extends Error {
|
|
235
|
-
message: string;
|
|
236
|
-
internetAccountId: string;
|
|
237
|
-
constructor(message: string, internetAccountId: string);
|
|
238
|
-
}
|
|
239
|
-
export declare function isAuthNeededException(exception: unknown): exception is AuthNeededError;
|
|
240
|
-
export declare function isRetryException(exception: Error): boolean;
|
|
241
|
-
export interface BlobLocation extends SnapshotIn<typeof MUBlobLocation> {
|
|
242
|
-
}
|
|
243
|
-
export type FileLocation = LocalPathLocation | UriLocation | BlobLocation;
|
|
244
|
-
export interface PreUriLocation {
|
|
245
|
-
uri: string;
|
|
246
|
-
}
|
|
247
|
-
export interface PreLocalPathLocation {
|
|
248
|
-
localPath: string;
|
|
249
|
-
}
|
|
250
|
-
export interface PreBlobLocation {
|
|
251
|
-
blob: File;
|
|
252
|
-
}
|
|
253
|
-
export type PreFileLocation = PreUriLocation | PreLocalPathLocation | PreBlobLocation;
|
|
254
|
-
export { default as TextSearchManager } from '../../TextSearch/TextSearchManager';
|
package/util/types/index.js
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.TextSearchManager = exports.RetryError = exports.AuthNeededError = void 0;
|
|
21
|
-
exports.isViewContainer = isViewContainer;
|
|
22
|
-
exports.isSessionModel = isSessionModel;
|
|
23
|
-
exports.isSessionModelWithConfigEditing = isSessionModelWithConfigEditing;
|
|
24
|
-
exports.isSessionWithAddTracks = isSessionWithAddTracks;
|
|
25
|
-
exports.isSessionWithShareURL = isSessionWithShareURL;
|
|
26
|
-
exports.isSessionModelWithWidgets = isSessionModelWithWidgets;
|
|
27
|
-
exports.isSessionModelWithConnections = isSessionModelWithConnections;
|
|
28
|
-
exports.isSessionModelWithConnectionEditing = isSessionModelWithConnectionEditing;
|
|
29
|
-
exports.isSessionWithSessionPlugins = isSessionWithSessionPlugins;
|
|
30
|
-
exports.isSelectionContainer = isSelectionContainer;
|
|
31
|
-
exports.isViewModel = isViewModel;
|
|
32
|
-
exports.isTrackModel = isTrackModel;
|
|
33
|
-
exports.isDisplayModel = isDisplayModel;
|
|
34
|
-
exports.isTrackViewModel = isTrackViewModel;
|
|
35
|
-
exports.isAppRootModel = isAppRootModel;
|
|
36
|
-
exports.isRootModelWithInternetAccounts = isRootModelWithInternetAccounts;
|
|
37
|
-
exports.isAbstractMenuManager = isAbstractMenuManager;
|
|
38
|
-
exports.isUriLocation = isUriLocation;
|
|
39
|
-
exports.isLocalPathLocation = isLocalPathLocation;
|
|
40
|
-
exports.isBlobLocation = isBlobLocation;
|
|
41
|
-
exports.isAuthNeededException = isAuthNeededException;
|
|
42
|
-
exports.isRetryException = isRetryException;
|
|
43
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
44
|
-
__exportStar(require("./util"), exports);
|
|
45
|
-
function isViewContainer(thing) {
|
|
46
|
-
return ((0, mobx_state_tree_1.isStateTreeNode)(thing) &&
|
|
47
|
-
'removeView' in thing &&
|
|
48
|
-
'addView' in thing &&
|
|
49
|
-
'views' in thing);
|
|
50
|
-
}
|
|
51
|
-
function isSessionModel(thing) {
|
|
52
|
-
return (typeof thing === 'object' &&
|
|
53
|
-
thing !== null &&
|
|
54
|
-
'rpcManager' in thing &&
|
|
55
|
-
'configuration' in thing);
|
|
56
|
-
}
|
|
57
|
-
function isSessionModelWithConfigEditing(t) {
|
|
58
|
-
return isSessionModel(t) && 'editConfiguration' in t;
|
|
59
|
-
}
|
|
60
|
-
function isSessionWithAddTracks(t) {
|
|
61
|
-
return (isSessionModel(t) && 'addTrackConf' in t && !t.disableAddTracks);
|
|
62
|
-
}
|
|
63
|
-
function isSessionWithShareURL(thing) {
|
|
64
|
-
return isSessionModel(thing) && 'shareURL' in thing && !!thing.shareURL;
|
|
65
|
-
}
|
|
66
|
-
function isSessionModelWithWidgets(thing) {
|
|
67
|
-
return isSessionModel(thing) && 'widgets' in thing;
|
|
68
|
-
}
|
|
69
|
-
function isSessionModelWithConnections(thing) {
|
|
70
|
-
return isSessionModel(thing) && 'makeConnection' in thing;
|
|
71
|
-
}
|
|
72
|
-
function isSessionModelWithConnectionEditing(thing) {
|
|
73
|
-
return isSessionModel(thing) && 'addConnectionConf' in thing;
|
|
74
|
-
}
|
|
75
|
-
function isSessionWithSessionPlugins(thing) {
|
|
76
|
-
return isSessionModel(thing) && 'sessionPlugins' in thing;
|
|
77
|
-
}
|
|
78
|
-
function isSelectionContainer(thing) {
|
|
79
|
-
return (typeof thing === 'object' &&
|
|
80
|
-
thing !== null &&
|
|
81
|
-
'selection' in thing &&
|
|
82
|
-
'setSelection' in thing);
|
|
83
|
-
}
|
|
84
|
-
function isViewModel(thing) {
|
|
85
|
-
return (typeof thing === 'object' &&
|
|
86
|
-
thing !== null &&
|
|
87
|
-
'width' in thing &&
|
|
88
|
-
'setWidth' in thing);
|
|
89
|
-
}
|
|
90
|
-
function isTrackModel(thing) {
|
|
91
|
-
return (typeof thing === 'object' &&
|
|
92
|
-
thing !== null &&
|
|
93
|
-
'configuration' in thing &&
|
|
94
|
-
thing.configuration.trackId);
|
|
95
|
-
}
|
|
96
|
-
function isDisplayModel(thing) {
|
|
97
|
-
return (typeof thing === 'object' &&
|
|
98
|
-
thing !== null &&
|
|
99
|
-
'configuration' in thing &&
|
|
100
|
-
thing.configuration.displayId);
|
|
101
|
-
}
|
|
102
|
-
function isTrackViewModel(thing) {
|
|
103
|
-
return (typeof thing === 'object' &&
|
|
104
|
-
thing !== null &&
|
|
105
|
-
'showTrack' in thing &&
|
|
106
|
-
'hideTrack' in thing);
|
|
107
|
-
}
|
|
108
|
-
function isAppRootModel(thing) {
|
|
109
|
-
return (typeof thing === 'object' &&
|
|
110
|
-
thing !== null &&
|
|
111
|
-
'findAppropriateInternetAccount' in thing);
|
|
112
|
-
}
|
|
113
|
-
function isRootModelWithInternetAccounts(thing) {
|
|
114
|
-
return (typeof thing === 'object' &&
|
|
115
|
-
thing !== null &&
|
|
116
|
-
'internetAccounts' in thing &&
|
|
117
|
-
'findAppropriateInternetAccount' in thing);
|
|
118
|
-
}
|
|
119
|
-
function isAbstractMenuManager(thing) {
|
|
120
|
-
return (typeof thing === 'object' &&
|
|
121
|
-
thing !== null &&
|
|
122
|
-
'appendMenu' in thing &&
|
|
123
|
-
'appendToSubMenu' in thing);
|
|
124
|
-
}
|
|
125
|
-
function isUriLocation(location) {
|
|
126
|
-
return (typeof location === 'object' &&
|
|
127
|
-
location !== null &&
|
|
128
|
-
'uri' in location &&
|
|
129
|
-
!!location.uri);
|
|
130
|
-
}
|
|
131
|
-
function isLocalPathLocation(location) {
|
|
132
|
-
return (typeof location === 'object' &&
|
|
133
|
-
location !== null &&
|
|
134
|
-
'localPath' in location &&
|
|
135
|
-
!!location.localPath);
|
|
136
|
-
}
|
|
137
|
-
function isBlobLocation(location) {
|
|
138
|
-
return (typeof location === 'object' &&
|
|
139
|
-
location !== null &&
|
|
140
|
-
'blobId' in location &&
|
|
141
|
-
!!location.blobId);
|
|
142
|
-
}
|
|
143
|
-
class AuthNeededError extends Error {
|
|
144
|
-
constructor(message, url) {
|
|
145
|
-
super(message);
|
|
146
|
-
this.message = message;
|
|
147
|
-
this.url = url;
|
|
148
|
-
this.name = 'AuthNeededError';
|
|
149
|
-
Object.setPrototypeOf(this, AuthNeededError.prototype);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.AuthNeededError = AuthNeededError;
|
|
153
|
-
class RetryError extends Error {
|
|
154
|
-
constructor(message, internetAccountId) {
|
|
155
|
-
super(message);
|
|
156
|
-
this.message = message;
|
|
157
|
-
this.internetAccountId = internetAccountId;
|
|
158
|
-
this.name = 'RetryError';
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
exports.RetryError = RetryError;
|
|
162
|
-
function isAuthNeededException(exception) {
|
|
163
|
-
return (exception instanceof Error &&
|
|
164
|
-
(exception.name === 'AuthNeededError' ||
|
|
165
|
-
exception.url !== undefined));
|
|
166
|
-
}
|
|
167
|
-
function isRetryException(exception) {
|
|
168
|
-
return (exception.name === 'RetryError' ||
|
|
169
|
-
exception.internetAccountId !== undefined);
|
|
170
|
-
}
|
|
171
|
-
var TextSearchManager_1 = require("../../TextSearch/TextSearchManager");
|
|
172
|
-
Object.defineProperty(exports, "TextSearchManager", { enumerable: true, get: function () { return __importDefault(TextSearchManager_1).default; } });
|