@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRef } from 'react';
|
|
3
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react';
|
|
4
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
5
|
+
import { Dialog, DialogTitle, Divider, IconButton, Paper, ScopedCssBaseline, } from '@mui/material';
|
|
6
|
+
import { observer } from 'mobx-react';
|
|
7
|
+
import Draggable from 'react-draggable';
|
|
8
|
+
const useStyles = makeStyles()(theme => ({
|
|
9
|
+
closeButton: {
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
right: theme.spacing(1),
|
|
12
|
+
top: theme.spacing(1),
|
|
13
|
+
color: theme.palette.grey[500],
|
|
14
|
+
},
|
|
15
|
+
}));
|
|
16
|
+
function PaperComponent(props) {
|
|
17
|
+
const ref = useRef(null);
|
|
18
|
+
return (_jsx(Draggable, { nodeRef: ref, cancel: '[class*="MuiDialogContent-root"]', onStart: arg => `${arg.target?.className}`.includes('MuiDialogTitle'), children: _jsx(Paper, { ref: ref, ...props }) }));
|
|
19
|
+
}
|
|
20
|
+
const DraggableDialog = observer(function DraggableDialog(props) {
|
|
21
|
+
const { classes } = useStyles();
|
|
22
|
+
const { title, children, onClose } = props;
|
|
23
|
+
return (_jsx(Dialog, { ...props, PaperComponent: PaperComponent, children: _jsxs(ScopedCssBaseline, { children: [_jsxs(DialogTitle, { style: { cursor: 'move' }, children: [title, onClose ? (_jsx(IconButton, { className: classes.closeButton, onClick: () => {
|
|
24
|
+
onClose();
|
|
25
|
+
}, children: _jsx(CloseIcon, {}) })) : null] }), _jsx(Divider, {}), children] }) }));
|
|
26
|
+
});
|
|
27
|
+
export default DraggableDialog;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react';
|
|
3
|
+
import ArrowDropDown from '@mui/icons-material/ArrowDropDown';
|
|
4
|
+
import { Button, alpha } from '@mui/material';
|
|
5
|
+
import { observer } from 'mobx-react';
|
|
6
|
+
import CascadingMenuButton from "./CascadingMenuButton.js";
|
|
7
|
+
const useStyles = makeStyles()(theme => ({
|
|
8
|
+
buttonRoot: {
|
|
9
|
+
'&:hover': {
|
|
10
|
+
backgroundColor: alpha(theme.palette.primary.contrastText, theme.palette.action.hoverOpacity),
|
|
11
|
+
'@media (hover: none)': {
|
|
12
|
+
backgroundColor: 'transparent',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}));
|
|
17
|
+
function ButtonComponent(props) {
|
|
18
|
+
const { classes } = useStyles();
|
|
19
|
+
return (_jsx(Button, { ...props, className: classes.buttonRoot, children: props.children }));
|
|
20
|
+
}
|
|
21
|
+
const DropDownMenu = observer(function DropDownMenu({ menuTitle, menuItems, }) {
|
|
22
|
+
return (_jsxs(CascadingMenuButton, { menuItems: menuItems, color: "inherit", ButtonComponent: ButtonComponent, children: [menuTitle, _jsx(ArrowDropDown, {})] }));
|
|
23
|
+
});
|
|
24
|
+
export default DropDownMenu;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useState } from 'react';
|
|
3
|
+
import useMeasure from '@jbrowse/core/util/useMeasure';
|
|
4
|
+
import { InputBase, Typography, useTheme } from '@mui/material';
|
|
5
|
+
import { makeStyles } from "../util/tss-react/index.js";
|
|
6
|
+
const useStyles = makeStyles()(theme => ({
|
|
7
|
+
input: {},
|
|
8
|
+
inputBase: {},
|
|
9
|
+
typography: {
|
|
10
|
+
top: 6,
|
|
11
|
+
left: 2,
|
|
12
|
+
position: 'absolute',
|
|
13
|
+
whiteSpace: 'nowrap',
|
|
14
|
+
visibility: 'hidden',
|
|
15
|
+
},
|
|
16
|
+
inputRoot: {
|
|
17
|
+
padding: theme.spacing(0.5),
|
|
18
|
+
},
|
|
19
|
+
inputFocused: {
|
|
20
|
+
borderStyle: 'solid',
|
|
21
|
+
borderWidth: 2,
|
|
22
|
+
},
|
|
23
|
+
}));
|
|
24
|
+
const EditableTypography = forwardRef(function EditableTypography2(props, ref) {
|
|
25
|
+
const { value, setValue, variant, ...other } = props;
|
|
26
|
+
const [ref2, { width }] = useMeasure();
|
|
27
|
+
const [editedValue, setEditedValue] = useState();
|
|
28
|
+
const [inputNode, setInputNode] = useState(null);
|
|
29
|
+
const { classes } = useStyles(props, { props });
|
|
30
|
+
const theme = useTheme();
|
|
31
|
+
const val = editedValue === undefined ? value : editedValue;
|
|
32
|
+
return (_jsxs("div", { ...other, ref: ref, children: [_jsx("div", { style: { position: 'relative' }, children: _jsx(Typography, { ref: ref2, component: "span", variant: variant, className: classes.typography, children: val }) }), _jsx(InputBase, { inputRef: node => {
|
|
33
|
+
setInputNode(node);
|
|
34
|
+
}, className: classes.inputBase, inputProps: {
|
|
35
|
+
style: {
|
|
36
|
+
width,
|
|
37
|
+
...(variant && variant !== 'inherit'
|
|
38
|
+
? theme.typography[variant]
|
|
39
|
+
: {}),
|
|
40
|
+
},
|
|
41
|
+
}, classes: {
|
|
42
|
+
input: classes.input,
|
|
43
|
+
root: classes.inputRoot,
|
|
44
|
+
focused: classes.inputFocused,
|
|
45
|
+
}, value: val, onChange: event => {
|
|
46
|
+
setEditedValue(event.target.value);
|
|
47
|
+
}, onKeyDown: event => {
|
|
48
|
+
if (event.key === 'Enter') {
|
|
49
|
+
inputNode?.blur();
|
|
50
|
+
}
|
|
51
|
+
else if (event.key === 'Escape') {
|
|
52
|
+
setEditedValue(undefined);
|
|
53
|
+
inputNode?.blur();
|
|
54
|
+
}
|
|
55
|
+
}, onBlur: () => {
|
|
56
|
+
setValue(editedValue || value || '');
|
|
57
|
+
setEditedValue(undefined);
|
|
58
|
+
} })] }));
|
|
59
|
+
});
|
|
60
|
+
export default EditableTypography;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ErrorInfo } from 'react';
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
FallbackComponent: React.FC<{
|
|
6
|
+
error: unknown;
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
interface State {
|
|
10
|
+
error: unknown;
|
|
11
|
+
}
|
|
12
|
+
declare class ErrorBoundary extends Component<Props, State> {
|
|
13
|
+
constructor(props: Props);
|
|
14
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
15
|
+
render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | null | undefined;
|
|
16
|
+
}
|
|
17
|
+
export { ErrorBoundary };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
class ErrorBoundary extends Component {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super(props);
|
|
6
|
+
this.state = { error: undefined };
|
|
7
|
+
}
|
|
8
|
+
componentDidCatch(error, errorInfo) {
|
|
9
|
+
console.error('ErrorBoundary caught an error:', error, errorInfo);
|
|
10
|
+
this.setState({ error });
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return this.state.error ? (_jsx(this.props.FallbackComponent, { error: this.state.error })) : (this.props.children);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export { ErrorBoundary };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense, lazy, useState } from 'react';
|
|
3
|
+
import RefreshIcon from '@mui/icons-material/Refresh';
|
|
4
|
+
import ReportIcon from '@mui/icons-material/Report';
|
|
5
|
+
import { IconButton, Tooltip } from '@mui/material';
|
|
6
|
+
import RedErrorMessageBox from "./RedErrorMessageBox.js";
|
|
7
|
+
import { makeStyles } from "../util/tss-react/index.js";
|
|
8
|
+
const ErrorMessageStackTraceDialog = lazy(() => import("./ErrorMessageStackTraceDialog.js"));
|
|
9
|
+
const useStyles = makeStyles()(theme => ({
|
|
10
|
+
bg: {
|
|
11
|
+
background: theme.palette.divider,
|
|
12
|
+
border: '1px solid black',
|
|
13
|
+
margin: 20,
|
|
14
|
+
},
|
|
15
|
+
iconFloat: {
|
|
16
|
+
float: 'right',
|
|
17
|
+
marginLeft: 100,
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
20
|
+
function parseError(str) {
|
|
21
|
+
let snapshotError = '';
|
|
22
|
+
const findStr = 'is not assignable';
|
|
23
|
+
const idx = str.indexOf(findStr);
|
|
24
|
+
if (idx !== -1) {
|
|
25
|
+
const trim = str.slice(0, idx + findStr.length);
|
|
26
|
+
const match = /.*at path "(.*)" snapshot `(.*)` is not assignable/m.exec(trim);
|
|
27
|
+
if (match) {
|
|
28
|
+
str = `Failed to load element at ${match[1]}...Failed element had snapshot`;
|
|
29
|
+
snapshotError = match[2];
|
|
30
|
+
}
|
|
31
|
+
const match2 = /.*snapshot `(.*)` is not assignable/.exec(trim);
|
|
32
|
+
if (match2) {
|
|
33
|
+
str = 'Failed to load element...Failed element had snapshot';
|
|
34
|
+
snapshotError = match2[1];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return snapshotError;
|
|
38
|
+
}
|
|
39
|
+
function ErrorButtons({ error, onReset, }) {
|
|
40
|
+
const { classes } = useStyles();
|
|
41
|
+
const [showStack, setShowStack] = useState(false);
|
|
42
|
+
return (_jsxs("div", { className: classes.iconFloat, children: [typeof error === 'object' && error && 'stack' in error ? (_jsx(Tooltip, { title: "Get stack trace", children: _jsx(IconButton, { onClick: () => {
|
|
43
|
+
setShowStack(true);
|
|
44
|
+
}, color: "primary", children: _jsx(ReportIcon, {}) }) })) : null, onReset ? (_jsx(Tooltip, { title: "Retry", children: _jsx(IconButton, { onClick: onReset, color: "primary", children: _jsx(RefreshIcon, {}) }) })) : null, showStack ? (_jsx(Suspense, { fallback: null, children: _jsx(ErrorMessageStackTraceDialog, { error: error, onClose: () => {
|
|
45
|
+
setShowStack(false);
|
|
46
|
+
} }) })) : null] }));
|
|
47
|
+
}
|
|
48
|
+
function ErrorMessage({ error, onReset, }) {
|
|
49
|
+
const { classes } = useStyles();
|
|
50
|
+
const str = `${error}`;
|
|
51
|
+
const str2 = str.indexOf('expected an instance of');
|
|
52
|
+
const str3 = str2 !== -1 ? str.slice(0, str2) : str;
|
|
53
|
+
const snapshotError = parseError(str);
|
|
54
|
+
return (_jsxs(RedErrorMessageBox, { children: [str3.slice(0, 10000), _jsx(ErrorButtons, { error: error, onReset: onReset }), snapshotError ? (_jsx("pre", { className: classes.bg, children: JSON.stringify(JSON.parse(snapshotError), null, 2) })) : null] }));
|
|
55
|
+
}
|
|
56
|
+
export default ErrorMessage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Typography, alpha } from '@mui/material';
|
|
3
|
+
import ExternalLink from "./ExternalLink.js";
|
|
4
|
+
import { makeStyles } from "../util/tss-react/index.js";
|
|
5
|
+
const EMAIL = 'jbrowse2@berkeley.edu';
|
|
6
|
+
const useStyles = makeStyles()(theme => ({
|
|
7
|
+
pre: {
|
|
8
|
+
background: alpha(theme.palette.error.main, 0.2),
|
|
9
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
10
|
+
overflow: 'auto',
|
|
11
|
+
margin: 20,
|
|
12
|
+
maxHeight: 300,
|
|
13
|
+
},
|
|
14
|
+
}));
|
|
15
|
+
export default function ErrorMessageStackTraceContents({ text, extra, }) {
|
|
16
|
+
const { classes } = useStyles();
|
|
17
|
+
const extraStr = extra
|
|
18
|
+
? `supporting data: ${JSON.stringify(extra, null, 2)}`
|
|
19
|
+
: '';
|
|
20
|
+
const displayText = [text, extraStr].filter(Boolean).join('\n');
|
|
21
|
+
const issueBody = encodeURIComponent(`I got this error from JBrowse, here is the stack trace:\n\n\`\`\`\n${text}\n\`\`\`\n${extraStr}\n`);
|
|
22
|
+
const githubLink = `https://github.com/GMOD/jbrowse-components/issues/new?labels=bug&title=JBrowse+issue&body=${issueBody}`;
|
|
23
|
+
const emailLink = `mailto:${EMAIL}?subject=JBrowse%202%20error&body=${issueBody}`;
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Typography, { children: ["Post a new issue at", ' ', _jsx(ExternalLink, { href: githubLink, children: "GitHub" }), " or send an email to ", _jsx(ExternalLink, { href: emailLink, children: EMAIL })] }), _jsx("pre", { className: classes.pre, children: displayText })] }));
|
|
25
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
4
|
+
import { Button, Dialog, DialogActions, DialogContent, DialogTitle, IconButton, } from '@mui/material';
|
|
5
|
+
import { SourceMapConsumer } from 'source-map-js';
|
|
6
|
+
import ErrorMessageStackTraceContents from "./ErrorMessageStackTraceContents.js";
|
|
7
|
+
import LoadingEllipses from "./LoadingEllipses.js";
|
|
8
|
+
async function myfetchtext(uri) {
|
|
9
|
+
const res = await fetch(uri);
|
|
10
|
+
if (!res.ok) {
|
|
11
|
+
throw new Error(`HTTP ${res.status} fetching ${uri}: ${await res.text()}`);
|
|
12
|
+
}
|
|
13
|
+
return res.text();
|
|
14
|
+
}
|
|
15
|
+
async function myfetchjson(uri) {
|
|
16
|
+
return JSON.parse(await myfetchtext(uri));
|
|
17
|
+
}
|
|
18
|
+
const sourceMaps = {};
|
|
19
|
+
const sourceMappingUrlRe = /\/\/# sourceMappingURL=(.*)/;
|
|
20
|
+
const stackLineRe = /(.*)((?:https?|file):\/\/.*):(\d+):(\d+)/;
|
|
21
|
+
async function getSourceMapFromUri(uri) {
|
|
22
|
+
if (sourceMaps[uri]) {
|
|
23
|
+
return sourceMaps[uri];
|
|
24
|
+
}
|
|
25
|
+
const uriQuery = new URL(uri).search;
|
|
26
|
+
const currentScriptContent = await myfetchtext(uri);
|
|
27
|
+
const mapUri = sourceMappingUrlRe.exec(currentScriptContent)?.[1] ?? '';
|
|
28
|
+
const data = await myfetchjson(new URL(mapUri, uri).href + uriQuery);
|
|
29
|
+
const map = new SourceMapConsumer(data);
|
|
30
|
+
sourceMaps[uri] = map;
|
|
31
|
+
return map;
|
|
32
|
+
}
|
|
33
|
+
async function mapStackTrace(stack) {
|
|
34
|
+
const mappedStack = [];
|
|
35
|
+
for (const line of stack.split('\n')) {
|
|
36
|
+
const match = stackLineRe.exec(line);
|
|
37
|
+
if (!match) {
|
|
38
|
+
mappedStack.push(line);
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
const uri = match[2];
|
|
42
|
+
const consumer = await getSourceMapFromUri(uri);
|
|
43
|
+
const pos = consumer.originalPositionFor({
|
|
44
|
+
line: +match[3],
|
|
45
|
+
column: +match[4],
|
|
46
|
+
});
|
|
47
|
+
if (!pos.source || !pos.line || !pos.column) {
|
|
48
|
+
mappedStack.push(line);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
mappedStack.push(`${pos.source}:${pos.line}:${pos.column + 1} (${match[1].trim()})`);
|
|
52
|
+
}
|
|
53
|
+
return mappedStack.join('\n');
|
|
54
|
+
}
|
|
55
|
+
const MAX_ERR_LEN = 10_000;
|
|
56
|
+
function stripMessage(trace, error) {
|
|
57
|
+
return trace.startsWith('Error:') ? trace.slice(`${error}`.length) : trace;
|
|
58
|
+
}
|
|
59
|
+
function getStackTrace(error) {
|
|
60
|
+
return typeof error === 'object' && error !== null && 'stack' in error
|
|
61
|
+
? `${error.stack}`
|
|
62
|
+
: '';
|
|
63
|
+
}
|
|
64
|
+
export default function ErrorMessageStackTraceDialog({ error, onClose, extra, }) {
|
|
65
|
+
const [mappedStackTrace, setMappedStackTrace] = useState();
|
|
66
|
+
const [secondaryError, setSecondaryError] = useState();
|
|
67
|
+
const [clicked, setClicked] = useState(false);
|
|
68
|
+
const errorText = error ? `${error}` : '';
|
|
69
|
+
const stackTrace = stripMessage(getStackTrace(error), errorText);
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
;
|
|
72
|
+
(async () => {
|
|
73
|
+
try {
|
|
74
|
+
setMappedStackTrace(await mapStackTrace(stackTrace));
|
|
75
|
+
}
|
|
76
|
+
catch (e) {
|
|
77
|
+
console.error(e);
|
|
78
|
+
setMappedStackTrace(stackTrace);
|
|
79
|
+
setSecondaryError(e);
|
|
80
|
+
}
|
|
81
|
+
})();
|
|
82
|
+
}, [stackTrace]);
|
|
83
|
+
const version = window.JBrowseSession?.version;
|
|
84
|
+
const errorBoxText = [
|
|
85
|
+
secondaryError
|
|
86
|
+
? 'Error loading source map, showing raw stack trace below:'
|
|
87
|
+
: '',
|
|
88
|
+
errorText.length > MAX_ERR_LEN
|
|
89
|
+
? `${errorText.slice(0, MAX_ERR_LEN)}...`
|
|
90
|
+
: errorText,
|
|
91
|
+
mappedStackTrace || 'No stack trace available',
|
|
92
|
+
version ? `JBrowse ${version}` : '',
|
|
93
|
+
]
|
|
94
|
+
.filter(Boolean)
|
|
95
|
+
.join('\n');
|
|
96
|
+
return (_jsxs(Dialog, { open: true, onClose: onClose, maxWidth: "xl", children: [_jsxs(DialogTitle, { children: ["Stack trace", _jsx(IconButton, { onClick: onClose, sx: {
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
right: 8,
|
|
99
|
+
top: 8,
|
|
100
|
+
}, children: _jsx(CloseIcon, {}) })] }), _jsx(DialogContent, { children: mappedStackTrace === undefined ? (_jsx(LoadingEllipses, { variant: "h6" })) : (_jsx(ErrorMessageStackTraceContents, { text: errorBoxText, extra: extra })) }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "secondary", onClick: async () => {
|
|
101
|
+
const { default: copy } = await import('copy-to-clipboard');
|
|
102
|
+
copy(errorBoxText);
|
|
103
|
+
setClicked(true);
|
|
104
|
+
setTimeout(() => {
|
|
105
|
+
setClicked(false);
|
|
106
|
+
}, 1000);
|
|
107
|
+
}, children: clicked ? 'Copied!' : 'Copy stack trace to clipboard' }), _jsx(Button, { variant: "contained", color: "primary", onClick: onClose, children: "Close" })] })] }));
|
|
108
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
|
|
3
|
+
import { Link } from '@mui/material';
|
|
4
|
+
export default function ExternalLink(props) {
|
|
5
|
+
const { children, ...rest } = props;
|
|
6
|
+
return (_jsxs(Link, { ...rest, target: "_blank", rel: "noopener noreferrer", children: [children, " ", _jsx(OpenInNewIcon, { fontSize: "small" })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, DialogActions, DialogContent, DialogContentText, } from '@mui/material';
|
|
3
|
+
import Dialog from "./Dialog.js";
|
|
4
|
+
export default function FactoryResetDialog({ onClose, open, onFactoryReset, }) {
|
|
5
|
+
function handleDialogClose(action) {
|
|
6
|
+
if (action === 'reset') {
|
|
7
|
+
onFactoryReset();
|
|
8
|
+
}
|
|
9
|
+
onClose();
|
|
10
|
+
}
|
|
11
|
+
return (_jsxs(Dialog, { title: "Reset", onClose: () => {
|
|
12
|
+
handleDialogClose();
|
|
13
|
+
}, open: open, children: [_jsx(DialogContent, { children: _jsx(DialogContentText, { children: "Are you sure you want to reset? This will restore the default configuration." }) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: () => {
|
|
14
|
+
handleDialogClose();
|
|
15
|
+
}, color: "primary", children: "Cancel" }), _jsx(Button, { onClick: () => {
|
|
16
|
+
handleDialogClose('reset');
|
|
17
|
+
}, color: "primary", variant: "contained", children: "OK" })] })] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Button, Dialog, DialogActions, DialogContent, DialogTitle, } from '@mui/material';
|
|
4
|
+
import ErrorMessage from "./ErrorMessage.js";
|
|
5
|
+
import FactoryResetDialog from "./FactoryResetDialog.js";
|
|
6
|
+
const ResetComponent = ({ onFactoryReset, resetButtonText, }) => {
|
|
7
|
+
const [dialogOpen, setDialogOpen] = useState(false);
|
|
8
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { "data-testid": "fatal-error", color: "primary", variant: "contained", onClick: () => {
|
|
9
|
+
setDialogOpen(true);
|
|
10
|
+
}, children: resetButtonText }), _jsx(FactoryResetDialog, { onClose: () => {
|
|
11
|
+
setDialogOpen(false);
|
|
12
|
+
}, open: dialogOpen, onFactoryReset: onFactoryReset })] }));
|
|
13
|
+
};
|
|
14
|
+
export default function FatalErrorDialog({ componentStack, error = 'No error message provided', onFactoryReset, resetButtonText = 'Factory Reset', }) {
|
|
15
|
+
return (_jsxs(Dialog, { maxWidth: "xl", open: true, children: [_jsx(DialogTitle, { children: "Fatal error" }), _jsxs(DialogContent, { children: [_jsx(ErrorMessage, { error: error }), _jsx("pre", { children: componentStack })] }), _jsxs(DialogActions, { children: [_jsx(Button, { color: "secondary", variant: "contained", onClick: () => {
|
|
16
|
+
window.location.reload();
|
|
17
|
+
}, children: "Refresh" }), _jsx(ResetComponent, { onFactoryReset: onFactoryReset, resetButtonText: resetButtonText })] })] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AbstractRootModel, FileLocation } from '../../util/types/index.ts';
|
|
2
|
+
declare const FileSelector: ({ inline, location, name, description, rootModel, setLocation, }: {
|
|
3
|
+
location?: FileLocation;
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
inline?: boolean;
|
|
7
|
+
rootModel?: AbstractRootModel;
|
|
8
|
+
setLocation: (param: FileLocation) => void;
|
|
9
|
+
setName?: (str: string) => void;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default FileSelector;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
3
|
+
import { Box, FormGroup, FormHelperText, InputLabel } from '@mui/material';
|
|
4
|
+
import { observer } from 'mobx-react';
|
|
5
|
+
import LocationInput from "./LocationInput.js";
|
|
6
|
+
import SourceTypeSelector from "./SourceTypeSelector.js";
|
|
7
|
+
import useInternetAccounts from "./useInternetAccounts.js";
|
|
8
|
+
import { notEmpty } from "../../util/index.js";
|
|
9
|
+
import { isUriLocation } from "../../util/types/index.js";
|
|
10
|
+
function getInitialToggleValue(location) {
|
|
11
|
+
if (location &&
|
|
12
|
+
'internetAccountId' in location &&
|
|
13
|
+
location.internetAccountId) {
|
|
14
|
+
return location.internetAccountId;
|
|
15
|
+
}
|
|
16
|
+
return !location || isUriLocation(location) ? 'url' : 'file';
|
|
17
|
+
}
|
|
18
|
+
const FileSelector = observer(function FileSelector({ inline, location, name, description, rootModel, setLocation, }) {
|
|
19
|
+
const [toggleButtonValue, setToggleButtonValue] = useState(() => getInitialToggleValue(location));
|
|
20
|
+
const { accountMap, shownAccountIds, hiddenAccountIds, recentlyUsed, setRecentlyUsed, } = useInternetAccounts(rootModel);
|
|
21
|
+
const selectedAccount = accountMap[toggleButtonValue];
|
|
22
|
+
const setLocationWithAccount = useCallback((loc) => {
|
|
23
|
+
setLocation({
|
|
24
|
+
...loc,
|
|
25
|
+
...(selectedAccount && isUriLocation(loc)
|
|
26
|
+
? { internetAccountId: selectedAccount.internetAccountId }
|
|
27
|
+
: {}),
|
|
28
|
+
});
|
|
29
|
+
}, [setLocation, selectedAccount]);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (selectedAccount &&
|
|
32
|
+
isUriLocation(location) &&
|
|
33
|
+
location.internetAccountId !== selectedAccount.internetAccountId) {
|
|
34
|
+
setLocationWithAccount(location);
|
|
35
|
+
}
|
|
36
|
+
}, [location, selectedAccount, setLocationWithAccount]);
|
|
37
|
+
const selectSourceType = useCallback((newValue) => {
|
|
38
|
+
setRecentlyUsed([
|
|
39
|
+
...new Set([newValue, ...recentlyUsed].filter(notEmpty)),
|
|
40
|
+
]);
|
|
41
|
+
if (newValue) {
|
|
42
|
+
setToggleButtonValue(newValue);
|
|
43
|
+
}
|
|
44
|
+
if (isUriLocation(location)) {
|
|
45
|
+
setLocationWithAccount(location);
|
|
46
|
+
}
|
|
47
|
+
}, [location, recentlyUsed, setRecentlyUsed, setLocationWithAccount]);
|
|
48
|
+
return (_jsxs(_Fragment, { children: [_jsx(Box, { display: "flex", children: _jsx(InputLabel, { shrink: true, children: name }) }), _jsx(FormGroup, { children: _jsxs(Box, { display: "flex", flexDirection: inline ? 'row' : 'column', gap: 0.5, children: [_jsx(SourceTypeSelector, { value: toggleButtonValue, shownAccountIds: shownAccountIds, hiddenAccountIds: hiddenAccountIds, accountMap: accountMap, onChange: (_event, newValue) => {
|
|
49
|
+
selectSourceType(newValue);
|
|
50
|
+
}, onHiddenAccountSelect: selectSourceType }), _jsx(LocationInput, { toggleButtonValue: toggleButtonValue, selectedAccount: selectedAccount, location: location, inline: inline, setLocation: setLocationWithAccount })] }) }), _jsx(FormHelperText, { children: description })] }));
|
|
51
|
+
});
|
|
52
|
+
export default FileSelector;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FileLocation } from '../../util/types/index.ts';
|
|
2
|
+
declare function LocalFileChooser({ location, setLocation, }: {
|
|
3
|
+
location?: FileLocation;
|
|
4
|
+
setLocation: (arg: FileLocation) => void;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default LocalFileChooser;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, FormControl, Typography } from '@mui/material';
|
|
3
|
+
import { isElectron } from "../../util/index.js";
|
|
4
|
+
import { getBlob, storeBlobLocation } from "../../util/tracks.js";
|
|
5
|
+
import { makeStyles } from "../../util/tss-react/index.js";
|
|
6
|
+
function isLocalPathLocation(loc) {
|
|
7
|
+
return 'localPath' in loc;
|
|
8
|
+
}
|
|
9
|
+
function isBlobLocation(loc) {
|
|
10
|
+
return 'blobId' in loc;
|
|
11
|
+
}
|
|
12
|
+
const useStyles = makeStyles()(theme => ({
|
|
13
|
+
filename: {
|
|
14
|
+
marginLeft: theme.spacing(1),
|
|
15
|
+
},
|
|
16
|
+
}));
|
|
17
|
+
function LocalFileChooser({ location, setLocation, }) {
|
|
18
|
+
const { classes } = useStyles();
|
|
19
|
+
const filename = location &&
|
|
20
|
+
((isBlobLocation(location) && location.name) ||
|
|
21
|
+
(isLocalPathLocation(location) && location.localPath));
|
|
22
|
+
const needToReload = location && isBlobLocation(location) && !getBlob(location.blobId);
|
|
23
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [_jsx(Box, { children: _jsx(FormControl, { fullWidth: true, children: _jsxs(Button, { variant: "outlined", component: "label", children: ["Choose File", _jsx("input", { type: "file", hidden: true, onChange: ({ target }) => {
|
|
24
|
+
const file = target.files?.[0];
|
|
25
|
+
if (file) {
|
|
26
|
+
if (isElectron) {
|
|
27
|
+
const { webUtils } = window.require('electron');
|
|
28
|
+
setLocation({
|
|
29
|
+
localPath: webUtils.getPathForFile(file),
|
|
30
|
+
locationType: 'LocalPathLocation',
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
setLocation(storeBlobLocation({ blob: file }));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
} })] }) }) }), _jsxs(Box, { children: [_jsx(Typography, { component: "span", className: classes.filename, color: filename ? 'initial' : 'textSecondary', children: filename || 'No file chosen' }), needToReload ? (_jsx(Typography, { color: "error", children: "(need to reload)" })) : null] })] }));
|
|
38
|
+
}
|
|
39
|
+
export default LocalFileChooser;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BaseInternetAccountModel } from '../../pluggableElementTypes/index.ts';
|
|
2
|
+
import type { FileLocation } from '../../util/types/index.ts';
|
|
3
|
+
export default function LocationInput({ toggleButtonValue, selectedAccount, location, inline, setLocation, }: {
|
|
4
|
+
toggleButtonValue: string;
|
|
5
|
+
selectedAccount?: BaseInternetAccountModel;
|
|
6
|
+
location?: FileLocation;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
setLocation: (arg: FileLocation) => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import LocalFileChooser from "./LocalFileChooser.js";
|
|
3
|
+
import UrlChooser from "./UrlChooser.js";
|
|
4
|
+
export default function LocationInput({ toggleButtonValue, selectedAccount, location, inline, setLocation, }) {
|
|
5
|
+
if (selectedAccount?.SelectorComponent) {
|
|
6
|
+
return (_jsx(selectedAccount.SelectorComponent, { setLocation: setLocation, selectedAccount: selectedAccount }));
|
|
7
|
+
}
|
|
8
|
+
if (toggleButtonValue === 'url') {
|
|
9
|
+
return (_jsx(UrlChooser, { location: location, setLocation: setLocation, label: selectedAccount?.selectorLabel, style: inline ? { margin: 0 } : undefined }));
|
|
10
|
+
}
|
|
11
|
+
if (toggleButtonValue === 'file') {
|
|
12
|
+
return _jsx(LocalFileChooser, { location: location, setLocation: setLocation });
|
|
13
|
+
}
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BaseInternetAccountModel } from '../../pluggableElementTypes/index.ts';
|
|
2
|
+
export default function SourceTypeSelector({ value, shownAccountIds, hiddenAccountIds, accountMap, onChange, onHiddenAccountSelect, }: {
|
|
3
|
+
value: string;
|
|
4
|
+
shownAccountIds: string[];
|
|
5
|
+
hiddenAccountIds: string[];
|
|
6
|
+
accountMap: Record<string, BaseInternetAccountModel>;
|
|
7
|
+
onChange: (event: React.MouseEvent, newValue: string | null) => void;
|
|
8
|
+
onHiddenAccountSelect: (id: string) => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
|
|
4
|
+
import { Menu, MenuItem, ToggleButton, ToggleButtonGroup, Tooltip, } from '@mui/material';
|
|
5
|
+
function shorten(str, len) {
|
|
6
|
+
return str.length > len ? `${str.slice(0, len)}…` : str;
|
|
7
|
+
}
|
|
8
|
+
function ToggleButtonWithTooltip(props) {
|
|
9
|
+
const { title, children, ...other } = props;
|
|
10
|
+
return (_jsx(Tooltip, { title: title || '', children: _jsx(ToggleButton, { ...other, children: children }) }));
|
|
11
|
+
}
|
|
12
|
+
const isAdminMode = () => new URLSearchParams(window.location.search).get('adminKey') !== null;
|
|
13
|
+
function HiddenAccountsMenu({ anchorEl, hiddenAccountIds, accountMap, onClose, onSelect, }) {
|
|
14
|
+
if (!anchorEl) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return (_jsx(Menu, { open: true, anchorEl: anchorEl, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, onClose: onClose, children: hiddenAccountIds.map(id => (_jsx(MenuItem, { value: id, onClick: () => {
|
|
18
|
+
onSelect(id);
|
|
19
|
+
}, children: accountMap[id].name }, id))) }));
|
|
20
|
+
}
|
|
21
|
+
export default function SourceTypeSelector({ value, shownAccountIds, hiddenAccountIds, accountMap, onChange, onHiddenAccountSelect, }) {
|
|
22
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
23
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ToggleButtonGroup, { value: value, exclusive: true, size: "small", onChange: onChange, "aria-label": "file, url, or account picker", children: [isAdminMode() ? null : (_jsx(ToggleButton, { size: "small", value: "file", "aria-label": "local file", children: "File" })), _jsx(ToggleButton, { size: "small", value: "url", "aria-label": "url", children: "URL" }), shownAccountIds.map(id => {
|
|
24
|
+
const account = accountMap[id];
|
|
25
|
+
const { toggleContents, name: accountName } = account;
|
|
26
|
+
const label = typeof toggleContents === 'string'
|
|
27
|
+
? shorten(toggleContents, 5)
|
|
28
|
+
: toggleContents || shorten(accountName, 5);
|
|
29
|
+
return (_jsx(ToggleButtonWithTooltip, { value: id, title: accountName, children: label }, id));
|
|
30
|
+
}), hiddenAccountIds.length > 0 ? (_jsxs(ToggleButton, { value: "more", onClick: event => {
|
|
31
|
+
setAnchorEl(event.target);
|
|
32
|
+
}, selected: false, children: ["More", _jsx(ArrowDropDownIcon, {})] })) : null] }), _jsx(HiddenAccountsMenu, { anchorEl: anchorEl, hiddenAccountIds: hiddenAccountIds, accountMap: accountMap, onClose: () => {
|
|
33
|
+
setAnchorEl(null);
|
|
34
|
+
}, onSelect: id => {
|
|
35
|
+
onHiddenAccountSelect(id);
|
|
36
|
+
setAnchorEl(null);
|
|
37
|
+
} })] }));
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FileLocation } from '../../util/types/index.ts';
|
|
2
|
+
declare const UrlChooser: ({ location, label, style, setLocation, }: {
|
|
3
|
+
location?: FileLocation;
|
|
4
|
+
label?: string;
|
|
5
|
+
style?: Record<string, unknown>;
|
|
6
|
+
setLocation: (arg: FileLocation) => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default UrlChooser;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
3
|
+
import { observer } from 'mobx-react';
|
|
4
|
+
import { isUriLocation } from "../../util/types/index.js";
|
|
5
|
+
const UrlChooser = observer(function UrlChooser({ location, label, style, setLocation, }) {
|
|
6
|
+
return (_jsx(TextField, { variant: "outlined", fullWidth: true, defaultValue: location && isUriLocation(location) ? location.uri : '', label: label || 'Enter URL', style: style, onChange: event => {
|
|
7
|
+
setLocation({
|
|
8
|
+
uri: event.target.value.trim(),
|
|
9
|
+
locationType: 'UriLocation',
|
|
10
|
+
});
|
|
11
|
+
}, slotProps: {
|
|
12
|
+
htmlInput: {
|
|
13
|
+
'data-testid': 'urlInput',
|
|
14
|
+
},
|
|
15
|
+
} }));
|
|
16
|
+
});
|
|
17
|
+
export default UrlChooser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './FileSelector.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FileSelector.js";
|