@jbrowse/plugin-data-management 2.17.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AddConnectionWidget/components/AddConnectionWidget.d.ts +1 -2
- package/dist/AddConnectionWidget/components/AddConnectionWidget.js +31 -62
- package/dist/AddConnectionWidget/components/ConfigureConnection.d.ts +4 -5
- package/dist/AddConnectionWidget/components/ConfigureConnection.js +5 -28
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.d.ts +2 -3
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.js +6 -32
- package/dist/AddConnectionWidget/index.d.ts +1 -1
- package/dist/AddConnectionWidget/index.js +18 -8
- package/dist/AddConnectionWidget/model.js +1 -1
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.d.ts +9 -0
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.js +16 -0
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +4 -0
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +19 -0
- package/dist/AddTrackWidget/components/AddTrackWidget.d.ts +2 -3
- package/dist/AddTrackWidget/components/AddTrackWidget.js +7 -35
- package/dist/AddTrackWidget/components/ConfirmTrack.d.ts +2 -3
- package/dist/AddTrackWidget/components/ConfirmTrack.js +38 -97
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +2 -3
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.js +24 -107
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.d.ts +2 -3
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.js +31 -51
- package/dist/AddTrackWidget/components/TextIndexingConfig.d.ts +2 -3
- package/dist/AddTrackWidget/components/TextIndexingConfig.js +38 -76
- package/dist/AddTrackWidget/components/TrackAdapterSelector.d.ts +2 -3
- package/dist/AddTrackWidget/components/TrackAdapterSelector.js +13 -40
- package/dist/AddTrackWidget/components/TrackSourceSelect.d.ts +2 -3
- package/dist/AddTrackWidget/components/TrackSourceSelect.js +4 -10
- package/dist/AddTrackWidget/components/TrackTypeSelector.d.ts +3 -4
- package/dist/AddTrackWidget/components/TrackTypeSelector.js +8 -17
- package/dist/AddTrackWidget/components/Unsupported.d.ts +1 -0
- package/dist/AddTrackWidget/components/Unsupported.js +15 -0
- package/dist/AddTrackWidget/components/doSubmit.d.ts +4 -0
- package/dist/AddTrackWidget/components/doSubmit.js +50 -0
- package/dist/AddTrackWidget/components/util.d.ts +2 -0
- package/dist/AddTrackWidget/components/util.js +15 -0
- package/dist/AddTrackWidget/index.d.ts +1 -1
- package/dist/AddTrackWidget/index.js +18 -8
- package/dist/AddTrackWidget/model.d.ts +16 -84
- package/dist/AddTrackWidget/model.js +46 -94
- package/dist/AssemblyManager/AssemblyAddForm.d.ts +5 -6
- package/dist/AssemblyManager/AssemblyAddForm.js +82 -128
- package/dist/AssemblyManager/AssemblyEditor.d.ts +4 -4
- package/dist/AssemblyManager/AssemblyEditor.js +7 -7
- package/dist/AssemblyManager/AssemblyManager.d.ts +5 -5
- package/dist/AssemblyManager/AssemblyManager.js +19 -55
- package/dist/AssemblyManager/AssemblyTable.d.ts +8 -12
- package/dist/AssemblyManager/AssemblyTable.js +42 -35
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +22 -50
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +7 -35
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +21 -11
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.d.ts +1 -2
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +8 -19
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +9 -17
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +14 -27
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +10 -19
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +21 -58
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +22 -26
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +9 -0
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +71 -0
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +3 -5
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +47 -82
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +17 -112
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +4 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +7 -32
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +5 -9
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +124 -124
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +8 -17
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +5 -40
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +6 -10
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +46 -78
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +19 -15
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.js +6 -8
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +6 -19
- package/dist/HierarchicalTrackSelectorWidget/components/util.d.ts +4 -4
- package/dist/HierarchicalTrackSelectorWidget/components/util.js +1 -4
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.d.ts +2 -61
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.js +14 -76
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.d.ts +1 -1
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +2 -2
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.js +0 -13
- package/dist/HierarchicalTrackSelectorWidget/index.d.ts +1 -1
- package/dist/HierarchicalTrackSelectorWidget/index.js +20 -10
- package/dist/HierarchicalTrackSelectorWidget/model.d.ts +3 -177
- package/dist/HierarchicalTrackSelectorWidget/model.js +3 -183
- package/dist/HierarchicalTrackSelectorWidget/util.d.ts +2 -2
- package/dist/HierarchicalTrackSelectorWidget/util.js +0 -3
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +2 -3
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.js +19 -59
- package/dist/PluginStoreWidget/components/DeletePluginDialog.d.ts +1 -2
- package/dist/PluginStoreWidget/components/DeletePluginDialog.js +10 -23
- package/dist/PluginStoreWidget/components/InstalledPlugin.d.ts +3 -4
- package/dist/PluginStoreWidget/components/InstalledPlugin.js +45 -37
- package/dist/PluginStoreWidget/components/InstalledPluginsList.d.ts +3 -4
- package/dist/PluginStoreWidget/components/InstalledPluginsList.js +5 -5
- package/dist/PluginStoreWidget/components/PluginCard.d.ts +4 -6
- package/dist/PluginStoreWidget/components/PluginCard.js +25 -55
- package/dist/PluginStoreWidget/components/PluginStoreWidget.d.ts +2 -3
- package/dist/PluginStoreWidget/components/PluginStoreWidget.js +53 -61
- package/dist/PluginStoreWidget/components/util.d.ts +1 -1
- package/dist/PluginStoreWidget/components/util.js +0 -1
- package/dist/PluginStoreWidget/index.d.ts +1 -1
- package/dist/PluginStoreWidget/index.js +18 -8
- package/dist/PluginStoreWidget/model.d.ts +2 -8
- package/dist/PluginStoreWidget/model.js +1 -19
- package/dist/{ucsc-trackhub → UCSCTrackHub}/configSchema.d.ts +0 -6
- package/dist/{ucsc-trackhub → UCSCTrackHub}/configSchema.js +2 -14
- package/{esm/ucsc-trackhub → dist/UCSCTrackHub}/doConnect.d.ts +1 -1
- package/dist/{ucsc-trackhub → UCSCTrackHub}/doConnect.js +19 -15
- package/dist/{ucsc-trackhub → UCSCTrackHub}/index.d.ts +1 -1
- package/dist/{ucsc-trackhub → UCSCTrackHub}/index.js +11 -9
- package/dist/{ucsc-trackhub → UCSCTrackHub}/model.d.ts +1 -14
- package/dist/{ucsc-trackhub → UCSCTrackHub}/model.js +18 -23
- package/dist/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.js +0 -3
- package/dist/{ucsc-trackhub → UCSCTrackHub}/ucscTrackHub.d.ts +54 -37
- package/dist/UCSCTrackHub/ucscTrackHub.js +170 -0
- package/dist/UCSCTrackHub/util.d.ts +22 -0
- package/dist/UCSCTrackHub/util.js +41 -0
- package/dist/index.d.ts +11 -11
- package/dist/index.js +21 -11
- package/esm/AddConnectionWidget/components/AddConnectionWidget.d.ts +1 -2
- package/esm/AddConnectionWidget/components/AddConnectionWidget.js +31 -39
- package/esm/AddConnectionWidget/components/ConfigureConnection.d.ts +4 -5
- package/esm/AddConnectionWidget/components/ConfigureConnection.js +5 -5
- package/esm/AddConnectionWidget/components/ConnectionTypeSelect.d.ts +2 -3
- package/esm/AddConnectionWidget/components/ConnectionTypeSelect.js +6 -9
- package/esm/AddConnectionWidget/index.d.ts +1 -1
- package/esm/AddConnectionWidget/index.js +1 -1
- package/esm/AddConnectionWidget/model.js +1 -1
- package/esm/AddTrackWidget/components/AddTrackStatusMessage.d.ts +9 -0
- package/esm/AddTrackWidget/components/AddTrackStatusMessage.js +13 -0
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +4 -0
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +13 -0
- package/esm/AddTrackWidget/components/AddTrackWidget.d.ts +2 -3
- package/esm/AddTrackWidget/components/AddTrackWidget.js +7 -12
- package/esm/AddTrackWidget/components/ConfirmTrack.d.ts +2 -3
- package/esm/AddTrackWidget/components/ConfirmTrack.js +39 -75
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +2 -3
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.js +25 -85
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.d.ts +2 -3
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.js +31 -28
- package/esm/AddTrackWidget/components/TextIndexingConfig.d.ts +2 -3
- package/esm/AddTrackWidget/components/TextIndexingConfig.js +39 -54
- package/esm/AddTrackWidget/components/TrackAdapterSelector.d.ts +2 -3
- package/esm/AddTrackWidget/components/TrackAdapterSelector.js +13 -37
- package/esm/AddTrackWidget/components/TrackSourceSelect.d.ts +2 -3
- package/esm/AddTrackWidget/components/TrackSourceSelect.js +4 -7
- package/esm/AddTrackWidget/components/TrackTypeSelector.d.ts +3 -4
- package/esm/AddTrackWidget/components/TrackTypeSelector.js +8 -14
- package/esm/AddTrackWidget/components/Unsupported.d.ts +1 -0
- package/esm/AddTrackWidget/components/Unsupported.js +12 -0
- package/esm/AddTrackWidget/components/doSubmit.d.ts +4 -0
- package/esm/AddTrackWidget/components/doSubmit.js +47 -0
- package/esm/AddTrackWidget/components/util.d.ts +2 -0
- package/esm/AddTrackWidget/components/util.js +12 -0
- package/esm/AddTrackWidget/index.d.ts +1 -1
- package/esm/AddTrackWidget/index.js +1 -1
- package/esm/AddTrackWidget/model.d.ts +16 -84
- package/esm/AddTrackWidget/model.js +43 -94
- package/esm/AssemblyManager/AssemblyAddForm.d.ts +5 -6
- package/esm/AssemblyManager/AssemblyAddForm.js +82 -102
- package/esm/AssemblyManager/AssemblyEditor.d.ts +4 -4
- package/esm/AssemblyManager/AssemblyEditor.js +7 -4
- package/esm/AssemblyManager/AssemblyManager.d.ts +5 -5
- package/esm/AssemblyManager/AssemblyManager.js +19 -32
- package/esm/AssemblyManager/AssemblyTable.d.ts +8 -12
- package/esm/AssemblyManager/AssemblyTable.js +43 -36
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +22 -27
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +7 -12
- package/esm/HierarchicalTrackSelectorWidget/components/ShoppingCart.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +21 -11
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.d.ts +1 -2
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +8 -16
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +9 -14
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +14 -27
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +10 -16
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +21 -35
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +22 -26
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +9 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +69 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +3 -5
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +47 -59
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +17 -89
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +4 -5
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +7 -9
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +5 -9
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +108 -118
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +8 -17
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +5 -17
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +6 -10
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +46 -55
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +19 -15
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.js +6 -8
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +6 -19
- package/esm/HierarchicalTrackSelectorWidget/components/util.d.ts +4 -4
- package/esm/HierarchicalTrackSelectorWidget/components/util.js +1 -4
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.d.ts +2 -61
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.js +12 -74
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.js +1 -1
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.js +1 -14
- package/esm/HierarchicalTrackSelectorWidget/index.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/index.js +3 -3
- package/esm/HierarchicalTrackSelectorWidget/model.d.ts +3 -177
- package/esm/HierarchicalTrackSelectorWidget/model.js +4 -184
- package/esm/HierarchicalTrackSelectorWidget/util.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/util.js +1 -4
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +2 -3
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.js +19 -36
- package/esm/PluginStoreWidget/components/DeletePluginDialog.d.ts +1 -2
- package/esm/PluginStoreWidget/components/DeletePluginDialog.js +10 -20
- package/esm/PluginStoreWidget/components/InstalledPlugin.d.ts +3 -4
- package/esm/PluginStoreWidget/components/InstalledPlugin.js +28 -30
- package/esm/PluginStoreWidget/components/InstalledPluginsList.d.ts +3 -4
- package/esm/PluginStoreWidget/components/InstalledPluginsList.js +5 -5
- package/esm/PluginStoreWidget/components/PluginCard.d.ts +4 -6
- package/esm/PluginStoreWidget/components/PluginCard.js +27 -34
- package/esm/PluginStoreWidget/components/PluginStoreWidget.d.ts +2 -3
- package/esm/PluginStoreWidget/components/PluginStoreWidget.js +36 -54
- package/esm/PluginStoreWidget/components/util.d.ts +1 -1
- package/esm/PluginStoreWidget/components/util.js +1 -2
- package/esm/PluginStoreWidget/index.d.ts +1 -1
- package/esm/PluginStoreWidget/index.js +1 -1
- package/esm/PluginStoreWidget/model.d.ts +2 -8
- package/esm/PluginStoreWidget/model.js +1 -19
- package/esm/{ucsc-trackhub → UCSCTrackHub}/configSchema.d.ts +0 -6
- package/esm/{ucsc-trackhub → UCSCTrackHub}/configSchema.js +2 -14
- package/{dist/ucsc-trackhub → esm/UCSCTrackHub}/doConnect.d.ts +1 -1
- package/esm/{ucsc-trackhub → UCSCTrackHub}/doConnect.js +12 -8
- package/esm/{ucsc-trackhub → UCSCTrackHub}/index.d.ts +1 -1
- package/esm/UCSCTrackHub/index.js +15 -0
- package/esm/{ucsc-trackhub → UCSCTrackHub}/model.d.ts +1 -14
- package/esm/{ucsc-trackhub → UCSCTrackHub}/model.js +1 -16
- package/esm/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.js +0 -3
- package/esm/{ucsc-trackhub → UCSCTrackHub}/ucscTrackHub.d.ts +54 -37
- package/esm/UCSCTrackHub/ucscTrackHub.js +162 -0
- package/esm/UCSCTrackHub/util.d.ts +22 -0
- package/esm/UCSCTrackHub/util.js +33 -0
- package/esm/index.d.ts +11 -11
- package/esm/index.js +3 -3
- package/package.json +4 -3
- package/dist/ucsc-trackhub/ucscTrackHub.js +0 -208
- package/esm/ucsc-trackhub/index.js +0 -13
- package/esm/ucsc-trackhub/ucscTrackHub.js +0 -195
- /package/dist/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.d.ts +0 -0
- /package/esm/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.d.ts +0 -0
|
@@ -15,26 +15,36 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const material_1 = require("@mui/material");
|
|
32
|
-
const mui_1 = require("tss-react/mui");
|
|
33
|
-
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
34
|
-
const Lock_1 = __importDefault(require("@mui/icons-material/Lock"));
|
|
39
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
+
const react_1 = require("react");
|
|
35
41
|
const util_1 = require("@jbrowse/core/util");
|
|
36
42
|
const types_1 = require("@jbrowse/core/util/types");
|
|
37
|
-
|
|
43
|
+
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
44
|
+
const Lock_1 = __importDefault(require("@mui/icons-material/Lock"));
|
|
45
|
+
const material_1 = require("@mui/material");
|
|
46
|
+
const mobx_react_1 = require("mobx-react");
|
|
47
|
+
const mui_1 = require("tss-react/mui");
|
|
38
48
|
const DeletePluginDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./DeletePluginDialog'))));
|
|
39
49
|
const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
40
50
|
lockedPluginTooltip: {
|
|
@@ -43,36 +53,34 @@ const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
|
43
53
|
}));
|
|
44
54
|
function LockedPlugin() {
|
|
45
55
|
const { classes } = useStyles();
|
|
46
|
-
return (
|
|
47
|
-
react_1.default.createElement(Lock_1.default, null)));
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { className: classes.lockedPluginTooltip, title: "This plugin was installed by an administrator, you cannot remove it.", children: (0, jsx_runtime_1.jsx)(Lock_1.default, {}) }));
|
|
48
57
|
}
|
|
49
58
|
const InstalledPlugin = (0, mobx_react_1.observer)(function ({ plugin, model, }) {
|
|
50
|
-
const [dialogPlugin, setDialogPlugin] = (0, react_1.useState)();
|
|
51
59
|
const { pluginManager } = (0, util_1.getEnv)(model);
|
|
52
60
|
const session = (0, util_1.getSession)(model);
|
|
53
61
|
const { jbrowse, adminMode } = session;
|
|
54
62
|
const isSessionPlugin = (0, types_1.isSessionWithSessionPlugins)(session)
|
|
55
63
|
? session.sessionPlugins.some(p => { var _a; return ((_a = pluginManager.pluginMetadata[plugin.name]) === null || _a === void 0 ? void 0 : _a.url) === p.url; })
|
|
56
64
|
: false;
|
|
57
|
-
return (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.ListItem, { children: [adminMode || isSessionPlugin ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, { "data-testid": `removePlugin-${plugin.name}`, onClick: () => {
|
|
66
|
+
session.queueDialog(onClose => [
|
|
67
|
+
DeletePluginDialog,
|
|
68
|
+
{
|
|
69
|
+
plugin: plugin.name,
|
|
70
|
+
onClose: (name) => {
|
|
71
|
+
if (name) {
|
|
72
|
+
const pluginMetadata = pluginManager.pluginMetadata[plugin.name];
|
|
73
|
+
if (adminMode) {
|
|
74
|
+
jbrowse.removePlugin(pluginMetadata);
|
|
75
|
+
}
|
|
76
|
+
else if ((0, types_1.isSessionWithSessionPlugins)(session)) {
|
|
77
|
+
session.removeSessionPlugin(pluginMetadata);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
onClose();
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
]);
|
|
84
|
+
}, children: (0, jsx_runtime_1.jsx)(Close_1.default, {}) })) : ((0, jsx_runtime_1.jsx)(LockedPlugin, {})), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: plugin.name })] }, plugin.name));
|
|
77
85
|
});
|
|
78
86
|
exports.default = InstalledPlugin;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
import { PluginStoreModel } from '../model';
|
|
1
|
+
import type { PluginStoreModel } from '../model';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
4
3
|
declare const InstalledPluginsList: ({ pluginManager, model, }: {
|
|
5
4
|
pluginManager: PluginManager;
|
|
6
5
|
model: PluginStoreModel;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default InstalledPluginsList;
|
|
@@ -3,16 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
7
|
-
const mobx_react_1 = require("mobx-react");
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
7
|
const material_1 = require("@mui/material");
|
|
8
|
+
const mobx_react_1 = require("mobx-react");
|
|
9
9
|
const InstalledPlugin_1 = __importDefault(require("./InstalledPlugin"));
|
|
10
10
|
const InstalledPluginsList = (0, mobx_react_1.observer)(function InstalledPluginsList({ pluginManager, model, }) {
|
|
11
11
|
const { plugins } = pluginManager;
|
|
12
12
|
const { filterText } = model;
|
|
13
13
|
const externalPlugins = plugins.filter(p => { var _a; return !((_a = pluginManager.pluginMetadata[p.name]) === null || _a === void 0 ? void 0 : _a.isCore); });
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(material_1.List, { children: externalPlugins.length > 0 ? (externalPlugins
|
|
15
|
+
.filter(p => p.name.toLowerCase().includes(filterText.toLowerCase()))
|
|
16
|
+
.map(p => (0, jsx_runtime_1.jsx)(InstalledPlugin_1.default, { plugin: p, model: model }, p.name))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { children: "No plugins currently installed" })) }));
|
|
17
17
|
});
|
|
18
18
|
exports.default = InstalledPluginsList;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { JBrowsePlugin } from '@jbrowse/core/util/types';
|
|
3
|
-
|
|
4
|
-
declare const PluginCard: ({ plugin, model, adminMode, }: {
|
|
1
|
+
import type { PluginStoreModel } from '../model';
|
|
2
|
+
import type { JBrowsePlugin } from '@jbrowse/core/util/types';
|
|
3
|
+
declare const PluginCard: ({ plugin, model, }: {
|
|
5
4
|
plugin: JBrowsePlugin;
|
|
6
5
|
model: PluginStoreModel;
|
|
7
|
-
|
|
8
|
-
}) => React.JSX.Element;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
export default PluginCard;
|
|
@@ -1,42 +1,18 @@
|
|
|
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
32
8
|
const util_1 = require("@jbrowse/core/util");
|
|
33
9
|
const types_1 = require("@jbrowse/core/util/types");
|
|
34
|
-
const material_1 = require("@mui/material");
|
|
35
|
-
const mui_1 = require("tss-react/mui");
|
|
36
|
-
// icons
|
|
37
|
-
const Person_1 = __importDefault(require("@mui/icons-material/Person"));
|
|
38
10
|
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
39
11
|
const Check_1 = __importDefault(require("@mui/icons-material/Check"));
|
|
12
|
+
const Person_1 = __importDefault(require("@mui/icons-material/Person"));
|
|
13
|
+
const material_1 = require("@mui/material");
|
|
14
|
+
const mobx_react_1 = require("mobx-react");
|
|
15
|
+
const mui_1 = require("tss-react/mui");
|
|
40
16
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
41
17
|
card: {
|
|
42
18
|
margin: '0.5em',
|
|
@@ -52,36 +28,30 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
52
28
|
display: 'flex',
|
|
53
29
|
alignItems: 'center',
|
|
54
30
|
},
|
|
31
|
+
mr: {
|
|
32
|
+
marginRight: '0.5em',
|
|
33
|
+
},
|
|
55
34
|
});
|
|
56
|
-
const PluginCard = (0, mobx_react_1.observer)(function PluginCard({ plugin, model,
|
|
35
|
+
const PluginCard = (0, mobx_react_1.observer)(function PluginCard({ plugin, model, }) {
|
|
57
36
|
const { classes } = useStyles();
|
|
58
37
|
const session = (0, util_1.getSession)(model);
|
|
59
38
|
const { pluginManager } = (0, util_1.getEnv)(model);
|
|
60
39
|
const { runtimePluginDefinitions } = pluginManager;
|
|
61
|
-
|
|
62
|
-
const isInstalled = runtimePluginDefinitions.some(d => d.url === plugin.url);
|
|
40
|
+
const isInstalled = runtimePluginDefinitions.some(d => 'url' in d && d.url === plugin.url);
|
|
63
41
|
const [tempDisabled, setTempDisabled] = (0, react_1.useState)(false);
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (adminMode) {
|
|
79
|
-
jbrowse.addPlugin({ name: plugin.name, url: plugin.url });
|
|
80
|
-
}
|
|
81
|
-
else if ((0, types_1.isSessionWithSessionPlugins)(session)) {
|
|
82
|
-
session.addSessionPlugin(plugin);
|
|
83
|
-
}
|
|
84
|
-
setTempDisabled(true);
|
|
85
|
-
} }, isInstalled ? 'Installed' : 'Install'))));
|
|
42
|
+
const { adminMode, jbrowse } = session;
|
|
43
|
+
const { name, authors, description } = plugin;
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Card, { variant: "outlined", className: classes.card, children: [(0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", children: (0, jsx_runtime_1.jsx)(material_1.Link, { href: `${plugin.location}#readme`, target: "_blank", rel: "noopener", children: plugin.name }) }), (0, jsx_runtime_1.jsxs)("div", { className: classes.dataField, children: [(0, jsx_runtime_1.jsx)(Person_1.default, { className: classes.mr }), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: authors.join(', ') })] }), (0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.bold, children: "Description:" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: description })] }), (0, jsx_runtime_1.jsx)(material_1.CardActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", disabled: isInstalled || tempDisabled, startIcon: isInstalled ? (0, jsx_runtime_1.jsx)(Check_1.default, {}) : (0, jsx_runtime_1.jsx)(Add_1.default, {}), onClick: () => {
|
|
45
|
+
if (adminMode) {
|
|
46
|
+
jbrowse.addPlugin(plugin);
|
|
47
|
+
}
|
|
48
|
+
else if ((0, types_1.isSessionWithSessionPlugins)(session)) {
|
|
49
|
+
session.addSessionPlugin(plugin);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
session.notify('No way to install plugin');
|
|
53
|
+
}
|
|
54
|
+
setTempDisabled(true);
|
|
55
|
+
}, children: isInstalled ? 'Installed' : 'Install' }) })] }, name));
|
|
86
56
|
});
|
|
87
57
|
exports.default = PluginCard;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PluginStoreModel } from '../model';
|
|
1
|
+
import type { PluginStoreModel } from '../model';
|
|
3
2
|
declare const PluginStoreWidget: ({ model, }: {
|
|
4
3
|
model: PluginStoreModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default PluginStoreWidget;
|
|
@@ -15,33 +15,41 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const mui_1 = require("tss-react/mui");
|
|
32
|
-
const mobx_react_1 = require("mobx-react");
|
|
33
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
39
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
+
const react_1 = require("react");
|
|
34
41
|
const ui_1 = require("@jbrowse/core/ui");
|
|
35
42
|
const util_1 = require("@jbrowse/core/util");
|
|
36
|
-
// icons
|
|
37
|
-
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
38
43
|
const Clear_1 = __importDefault(require("@mui/icons-material/Clear"));
|
|
44
|
+
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
39
45
|
const InfoOutlined_1 = __importDefault(require("@mui/icons-material/InfoOutlined"));
|
|
40
|
-
|
|
46
|
+
const material_1 = require("@mui/material");
|
|
47
|
+
const mobx_react_1 = require("mobx-react");
|
|
48
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
49
|
+
const mui_1 = require("tss-react/mui");
|
|
41
50
|
const InstalledPluginsList_1 = __importDefault(require("./InstalledPluginsList"));
|
|
42
51
|
const PluginCard_1 = __importDefault(require("./PluginCard"));
|
|
43
52
|
const util_2 = require("./util");
|
|
44
|
-
// lazies
|
|
45
53
|
const AddCustomPluginDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./AddCustomPluginDialog'))));
|
|
46
54
|
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
47
55
|
expandIcon: {
|
|
@@ -58,55 +66,39 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
58
66
|
margin: '1em auto',
|
|
59
67
|
display: 'flex',
|
|
60
68
|
},
|
|
69
|
+
mr: {
|
|
70
|
+
marginRight: '0.3em',
|
|
71
|
+
},
|
|
72
|
+
m: {
|
|
73
|
+
margin: '1em',
|
|
74
|
+
},
|
|
61
75
|
}));
|
|
62
76
|
const PluginStoreWidget = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
63
77
|
const { classes } = useStyles();
|
|
64
78
|
const { plugins, error } = (0, util_2.useFetchPlugins)();
|
|
65
|
-
const
|
|
66
|
-
const
|
|
79
|
+
const { filterText } = model;
|
|
80
|
+
const session = (0, util_1.getSession)(model);
|
|
81
|
+
const { adminMode } = session;
|
|
67
82
|
const { pluginManager } = (0, mobx_state_tree_1.getEnv)(model);
|
|
68
|
-
return (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
model.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
react_1.default.createElement(material_1.IconButton, { onClick: () => {
|
|
89
|
-
model.clearFilterText();
|
|
90
|
-
} },
|
|
91
|
-
react_1.default.createElement(Clear_1.default, null)))),
|
|
92
|
-
},
|
|
93
|
-
} }),
|
|
94
|
-
react_1.default.createElement(material_1.Accordion, { defaultExpanded: true },
|
|
95
|
-
react_1.default.createElement(material_1.AccordionSummary, { expandIcon: react_1.default.createElement(ExpandMore_1.default, { className: classes.expandIcon }) },
|
|
96
|
-
react_1.default.createElement(material_1.Typography, { variant: "h5" }, "Installed plugins")),
|
|
97
|
-
react_1.default.createElement("div", { style: { margin: '1em' } },
|
|
98
|
-
react_1.default.createElement(InstalledPluginsList_1.default, { pluginManager: pluginManager, model: model }))),
|
|
99
|
-
react_1.default.createElement(material_1.Accordion, { defaultExpanded: true },
|
|
100
|
-
react_1.default.createElement(material_1.AccordionSummary, { expandIcon: react_1.default.createElement(ExpandMore_1.default, { className: classes.expandIcon }) },
|
|
101
|
-
react_1.default.createElement(material_1.Typography, { variant: "h5" }, "Available plugins")),
|
|
102
|
-
error ? (react_1.default.createElement(material_1.Typography, { color: "error" }, `${error}`)) : plugins ? (plugins
|
|
103
|
-
.filter(plugin => {
|
|
104
|
-
// If plugin only has cjsUrl, don't display outside desktop
|
|
105
|
-
return (!(util_1.isElectron && plugin.cjsUrl) &&
|
|
106
|
-
plugin.name
|
|
107
|
-
.toLowerCase()
|
|
108
|
-
.includes(model.filterText.toLowerCase()));
|
|
109
|
-
})
|
|
110
|
-
.map(plugin => (react_1.default.createElement(PluginCard_1.default, { key: plugin.name, plugin: plugin, model: model, adminMode: !!adminMode })))) : (react_1.default.createElement(ui_1.LoadingEllipses, null)))));
|
|
83
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [adminMode && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!util_1.isElectron && ((0, jsx_runtime_1.jsxs)("div", { className: classes.adminBadge, children: [(0, jsx_runtime_1.jsx)(InfoOutlined_1.default, { className: classes.mr }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["You are using the ", (0, jsx_runtime_1.jsx)("code", { children: "admin-server" }), ". Any changes you make will be saved to your configuration file. You also have the ability to add custom plugins that are not in the store."] })] })), (0, jsx_runtime_1.jsx)(material_1.Button, { className: classes.customPluginButton, variant: "contained", onClick: () => {
|
|
84
|
+
session.queueDialog(onClose => [
|
|
85
|
+
AddCustomPluginDialog,
|
|
86
|
+
{
|
|
87
|
+
model,
|
|
88
|
+
onClose,
|
|
89
|
+
},
|
|
90
|
+
]);
|
|
91
|
+
}, children: "Add custom plugin" })] })), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Filter plugins", value: filterText, onChange: event => {
|
|
92
|
+
model.setFilterText(event.target.value);
|
|
93
|
+
}, fullWidth: true, slotProps: {
|
|
94
|
+
input: {
|
|
95
|
+
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => {
|
|
96
|
+
model.clearFilterText();
|
|
97
|
+
}, children: (0, jsx_runtime_1.jsx)(Clear_1.default, {}) }) })),
|
|
98
|
+
},
|
|
99
|
+
} }), (0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: true, children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, { className: classes.expandIcon }), children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", children: "Installed plugins" }) }), (0, jsx_runtime_1.jsx)("div", { className: classes.m, children: (0, jsx_runtime_1.jsx)(InstalledPluginsList_1.default, { pluginManager: pluginManager, model: model }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: true, children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, { className: classes.expandIcon }), children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", children: "Available plugins" }) }), error ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { color: "error", children: `${error}` })) : plugins ? (plugins
|
|
100
|
+
.filter(plugin => !(util_1.isElectron && plugin.cjsUrl) &&
|
|
101
|
+
plugin.name.toLowerCase().includes(filterText.toLowerCase()))
|
|
102
|
+
.map(plugin => ((0, jsx_runtime_1.jsx)(PluginCard_1.default, { plugin: plugin, model: model }, plugin.name)))) : ((0, jsx_runtime_1.jsx)(ui_1.LoadingEllipses, {}))] })] }));
|
|
111
103
|
});
|
|
112
104
|
exports.default = PluginStoreWidget;
|
|
@@ -6,7 +6,6 @@ function useFetchPlugins() {
|
|
|
6
6
|
const [plugins, setPlugins] = (0, react_1.useState)();
|
|
7
7
|
const [error, setError] = (0, react_1.useState)();
|
|
8
8
|
(0, react_1.useEffect)(() => {
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
10
9
|
;
|
|
11
10
|
(async () => {
|
|
12
11
|
try {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function PluginStoreWidgetF(pluginManager: PluginManager): void;
|
|
@@ -15,21 +15,31 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.default = PluginStoreWidgetF;
|
|
40
|
+
const react_1 = require("react");
|
|
30
41
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
31
42
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
32
|
-
const react_1 = require("react");
|
|
33
43
|
const model_1 = __importDefault(require("./model"));
|
|
34
44
|
const configSchema = (0, configuration_1.ConfigurationSchema)('PluginStoreWidget', {});
|
|
35
45
|
function PluginStoreWidgetF(pluginManager) {
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type { Instance } from 'mobx-state-tree';
|
|
3
3
|
export default function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
4
4
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
5
|
type: import("mobx-state-tree").ISimpleType<"PluginStoreWidget">;
|
|
6
6
|
filterText: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
7
7
|
view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
8
8
|
}, {
|
|
9
|
-
/**
|
|
10
|
-
* #action
|
|
11
|
-
*/
|
|
12
9
|
clearFilterText(): void;
|
|
13
|
-
/**
|
|
14
|
-
* #action
|
|
15
|
-
*/
|
|
16
10
|
setFilterText(newText: string): void;
|
|
17
11
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
18
12
|
export type PluginStoreStateModel = ReturnType<typeof stateModelFactory>;
|
|
@@ -1,38 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = stateModelFactory;
|
|
4
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
4
|
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
5
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
6
|
function stateModelFactory(pluginManager) {
|
|
7
7
|
return mobx_state_tree_1.types
|
|
8
8
|
.model('PluginStoreModel', {
|
|
9
|
-
/**
|
|
10
|
-
* #property
|
|
11
|
-
*/
|
|
12
9
|
id: mst_1.ElementId,
|
|
13
|
-
/**
|
|
14
|
-
* #property
|
|
15
|
-
*/
|
|
16
10
|
type: mobx_state_tree_1.types.literal('PluginStoreWidget'),
|
|
17
|
-
/**
|
|
18
|
-
* #property
|
|
19
|
-
*/
|
|
20
11
|
filterText: '',
|
|
21
|
-
/**
|
|
22
|
-
* #property
|
|
23
|
-
*/
|
|
24
12
|
view: mobx_state_tree_1.types.safeReference(pluginManager.pluggableMstType('view', 'stateModel')),
|
|
25
13
|
})
|
|
26
14
|
.actions(self => ({
|
|
27
|
-
/**
|
|
28
|
-
* #action
|
|
29
|
-
*/
|
|
30
15
|
clearFilterText() {
|
|
31
16
|
self.filterText = '';
|
|
32
17
|
},
|
|
33
|
-
/**
|
|
34
|
-
* #action
|
|
35
|
-
*/
|
|
36
18
|
setFilterText(newText) {
|
|
37
19
|
self.filterText = newText;
|
|
38
20
|
},
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare const UCSCTrackHubConnection: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
hubTxtLocation: {
|
|
6
3
|
type: string;
|
|
7
4
|
defaultValue: {
|
|
@@ -10,9 +7,6 @@ declare const UCSCTrackHubConnection: import("@jbrowse/core/configuration/config
|
|
|
10
7
|
};
|
|
11
8
|
description: string;
|
|
12
9
|
};
|
|
13
|
-
/**
|
|
14
|
-
* #slot
|
|
15
|
-
*/
|
|
16
10
|
assemblyNames: {
|
|
17
11
|
type: string;
|
|
18
12
|
defaultValue: never[];
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
4
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
|
+
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
|
+
function x() { }
|
|
9
6
|
const UCSCTrackHubConnection = (0, configuration_1.ConfigurationSchema)('UCSCTrackHubConnection', {
|
|
10
|
-
/**
|
|
11
|
-
* #slot
|
|
12
|
-
*/
|
|
13
7
|
hubTxtLocation: {
|
|
14
8
|
type: 'fileLocation',
|
|
15
9
|
defaultValue: {
|
|
@@ -18,18 +12,12 @@ const UCSCTrackHubConnection = (0, configuration_1.ConfigurationSchema)('UCSCTra
|
|
|
18
12
|
},
|
|
19
13
|
description: 'location of the hub file (usually called hub.txt)',
|
|
20
14
|
},
|
|
21
|
-
/**
|
|
22
|
-
* #slot
|
|
23
|
-
*/
|
|
24
15
|
assemblyNames: {
|
|
25
16
|
type: 'stringArray',
|
|
26
17
|
defaultValue: [],
|
|
27
18
|
description: 'optional list of genomes to import from this track hub, if empty all genomes will be imported',
|
|
28
19
|
},
|
|
29
20
|
}, {
|
|
30
|
-
/**
|
|
31
|
-
* #baseConfiguration
|
|
32
|
-
*/
|
|
33
21
|
baseConfiguration: models_1.baseConnectionConfig,
|
|
34
22
|
});
|
|
35
23
|
exports.default = UCSCTrackHubConnection;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
1
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
2
|
export declare function doConnect(self: {
|
|
3
3
|
configuration: AnyConfigurationModel;
|
|
4
4
|
addTrackConfs: (arg: Record<string, unknown>[]) => void;
|