@jbrowse/plugin-data-management 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/AddConnectionWidget/components/AddConnectionWidget.d.ts +1 -1
- package/esm/AddConnectionWidget/components/AddConnectionWidget.js +5 -5
- package/esm/AddConnectionWidget/components/ConfigureConnection.js +1 -1
- package/esm/AddConnectionWidget/index.js +2 -2
- package/esm/AddConnectionWidget/model.d.ts +4 -4
- package/esm/AddConnectionWidget/model.js +1 -1
- package/esm/AddTrackWidget/components/AddTrackStatusMessage.js +2 -2
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +1 -1
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +2 -2
- package/esm/AddTrackWidget/components/AddTrackWidget.d.ts +1 -1
- package/esm/AddTrackWidget/components/AddTrackWidget.js +3 -3
- package/esm/AddTrackWidget/components/ConfirmTrack.d.ts +1 -1
- package/esm/AddTrackWidget/components/ConfirmTrack.js +10 -10
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +1 -1
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.js +6 -9
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.d.ts +2 -2
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.js +2 -2
- package/esm/AddTrackWidget/components/TextIndexingConfig.d.ts +1 -1
- package/esm/AddTrackWidget/components/TextIndexingConfig.js +2 -2
- package/esm/AddTrackWidget/components/TrackAdapterSelector.d.ts +2 -2
- package/esm/AddTrackWidget/components/TrackAdapterSelector.js +4 -4
- package/esm/AddTrackWidget/components/TrackSourceSelect.d.ts +1 -1
- package/esm/AddTrackWidget/components/TrackSourceSelect.js +3 -3
- package/esm/AddTrackWidget/components/TrackTypeSelector.d.ts +1 -1
- package/esm/AddTrackWidget/components/TrackTypeSelector.js +1 -1
- package/esm/AddTrackWidget/components/Unsupported.js +1 -1
- package/esm/AddTrackWidget/components/doSubmit.d.ts +1 -1
- package/esm/AddTrackWidget/components/doSubmit.js +2 -3
- package/esm/AddTrackWidget/components/util.js +1 -2
- package/esm/AddTrackWidget/index.js +2 -2
- package/esm/AddTrackWidget/model.d.ts +8 -11
- package/esm/AddTrackWidget/model.js +10 -25
- package/esm/AssemblyManager/AssemblyAddForm.js +6 -6
- package/esm/AssemblyManager/AssemblyEditor.js +2 -2
- package/esm/AssemblyManager/AssemblyManager.js +4 -4
- package/esm/AssemblyManager/AssemblyTable.js +1 -1
- package/esm/AssemblyManager/index.d.ts +1 -1
- package/esm/AssemblyManager/index.js +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/AutoSizer.d.ts +8 -0
- package/esm/HierarchicalTrackSelectorWidget/components/AutoSizer.js +24 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ClearableSearchField.d.ts +6 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ClearableSearchField.js +27 -0
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +9 -9
- package/esm/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +4 -5
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +1 -2
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +3 -3
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +4 -5
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +5 -6
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +39 -58
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +6 -12
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +7 -7
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/computeInitialWidths.d.ts +6 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/computeInitialWidths.js +18 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/util.js +1 -2
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +3 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +13 -32
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +7 -8
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +11 -22
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +2 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +42 -59
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +13 -29
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +7 -6
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +86 -92
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +8 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +28 -15
- package/{dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts → esm/HierarchicalTrackSelectorWidget/components/tree/TrackSelectorTrackMenu.d.ts} +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/{TrackLabelMenu.js → TrackSelectorTrackMenu.js} +13 -7
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TreeItem.d.ts +9 -0
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TreeItem.js +49 -0
- package/esm/HierarchicalTrackSelectorWidget/components/tree/trackListStyles.d.ts +21 -0
- package/esm/HierarchicalTrackSelectorWidget/components/tree/trackListStyles.js +29 -0
- package/esm/HierarchicalTrackSelectorWidget/components/util.d.ts +1 -20
- package/esm/HierarchicalTrackSelectorWidget/components/util.js +1 -10
- package/esm/HierarchicalTrackSelectorWidget/configSchema.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.d.ts +24 -30
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.js +34 -23
- package/esm/HierarchicalTrackSelectorWidget/facetedUtil.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.d.ts +3 -7
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.js +13 -11
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +2 -28
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.js +34 -59
- package/esm/HierarchicalTrackSelectorWidget/index.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/index.js +5 -5
- package/esm/HierarchicalTrackSelectorWidget/model.d.ts +67 -87
- package/esm/HierarchicalTrackSelectorWidget/model.js +90 -23
- package/esm/HierarchicalTrackSelectorWidget/sortUtils.d.ts +2 -0
- package/esm/HierarchicalTrackSelectorWidget/sortUtils.js +28 -0
- package/esm/HierarchicalTrackSelectorWidget/types.d.ts +23 -0
- package/esm/HierarchicalTrackSelectorWidget/types.js +1 -0
- package/esm/HierarchicalTrackSelectorWidget/util.js +1 -1
- package/esm/JB2TrackHubConnection/configSchema.d.ts +3 -3
- package/esm/JB2TrackHubConnection/doConnect.js +3 -4
- package/esm/JB2TrackHubConnection/index.js +2 -2
- package/esm/JB2TrackHubConnection/model.d.ts +18 -26
- package/esm/JB2TrackHubConnection/model.js +3 -3
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +1 -1
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.js +3 -3
- package/esm/PluginStoreWidget/components/InstalledPlugin.d.ts +1 -1
- package/esm/PluginStoreWidget/components/InstalledPlugin.js +5 -5
- package/esm/PluginStoreWidget/components/InstalledPluginsList.d.ts +1 -1
- package/esm/PluginStoreWidget/components/InstalledPluginsList.js +2 -2
- package/esm/PluginStoreWidget/components/PluginCard.d.ts +1 -1
- package/esm/PluginStoreWidget/components/PluginCard.js +1 -5
- package/esm/PluginStoreWidget/components/PluginStoreWidget.d.ts +1 -1
- package/esm/PluginStoreWidget/components/PluginStoreWidget.js +22 -10
- package/esm/PluginStoreWidget/components/util.js +1 -1
- package/esm/PluginStoreWidget/index.js +2 -2
- package/esm/PluginStoreWidget/model.d.ts +7 -7
- package/esm/PluginStoreWidget/model.js +1 -1
- package/esm/UCSCTrackHubConnection/configSchema.d.ts +3 -3
- package/esm/UCSCTrackHubConnection/doConnect.js +3 -9
- package/esm/UCSCTrackHubConnection/index.js +2 -2
- package/esm/UCSCTrackHubConnection/model.d.ts +18 -26
- package/esm/UCSCTrackHubConnection/model.js +3 -3
- package/esm/UCSCTrackHubConnection/ucscTrackHub.d.ts +1 -8
- package/esm/UCSCTrackHubConnection/ucscTrackHub.js +6 -10
- package/esm/index.d.ts +2 -2
- package/esm/index.js +11 -14
- package/package.json +28 -37
- package/dist/AddConnectionWidget/components/AddConnectionWidget.d.ts +0 -4
- package/dist/AddConnectionWidget/components/AddConnectionWidget.js +0 -66
- package/dist/AddConnectionWidget/components/ConfigureConnection.d.ts +0 -9
- package/dist/AddConnectionWidget/components/ConfigureConnection.js +0 -12
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.d.ts +0 -7
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.js +0 -19
- package/dist/AddConnectionWidget/index.d.ts +0 -2
- package/dist/AddConnectionWidget/index.js +0 -55
- package/dist/AddConnectionWidget/model.d.ts +0 -5
- package/dist/AddConnectionWidget/model.js +0 -8
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.d.ts +0 -9
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.js +0 -16
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +0 -4
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +0 -20
- package/dist/AddTrackWidget/components/AddTrackWidget.d.ts +0 -5
- package/dist/AddTrackWidget/components/AddTrackWidget.js +0 -28
- package/dist/AddTrackWidget/components/ConfirmTrack.d.ts +0 -5
- package/dist/AddTrackWidget/components/ConfirmTrack.js +0 -73
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +0 -5
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.js +0 -74
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.d.ts +0 -5
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.js +0 -53
- package/dist/AddTrackWidget/components/TextIndexingConfig.d.ts +0 -5
- package/dist/AddTrackWidget/components/TextIndexingConfig.js +0 -76
- package/dist/AddTrackWidget/components/TrackAdapterSelector.d.ts +0 -5
- package/dist/AddTrackWidget/components/TrackAdapterSelector.js +0 -26
- package/dist/AddTrackWidget/components/TrackSourceSelect.d.ts +0 -5
- package/dist/AddTrackWidget/components/TrackSourceSelect.js +0 -22
- package/dist/AddTrackWidget/components/TrackTypeSelector.d.ts +0 -5
- package/dist/AddTrackWidget/components/TrackTypeSelector.js +0 -21
- package/dist/AddTrackWidget/components/Unsupported.d.ts +0 -1
- package/dist/AddTrackWidget/components/Unsupported.js +0 -16
- package/dist/AddTrackWidget/components/doSubmit.d.ts +0 -4
- package/dist/AddTrackWidget/components/doSubmit.js +0 -55
- package/dist/AddTrackWidget/components/util.d.ts +0 -2
- package/dist/AddTrackWidget/components/util.js +0 -15
- package/dist/AddTrackWidget/index.d.ts +0 -2
- package/dist/AddTrackWidget/index.js +0 -55
- package/dist/AddTrackWidget/model.d.ts +0 -64
- package/dist/AddTrackWidget/model.js +0 -190
- package/dist/AssemblyManager/AssemblyAddForm.d.ts +0 -6
- package/dist/AssemblyManager/AssemblyAddForm.js +0 -94
- package/dist/AssemblyManager/AssemblyEditor.d.ts +0 -6
- package/dist/AssemblyManager/AssemblyEditor.js +0 -20
- package/dist/AssemblyManager/AssemblyManager.d.ts +0 -6
- package/dist/AssemblyManager/AssemblyManager.js +0 -30
- package/dist/AssemblyManager/AssemblyTable.d.ts +0 -9
- package/dist/AssemblyManager/AssemblyTable.js +0 -53
- package/dist/AssemblyManager/index.d.ts +0 -1
- package/dist/AssemblyManager/index.js +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +0 -47
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +0 -10
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +0 -26
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +0 -52
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +0 -16
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.d.ts +0 -11
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +0 -17
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +0 -34
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +0 -47
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +0 -52
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +0 -10
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +0 -51
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +0 -75
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +0 -15
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +0 -4
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +0 -67
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +0 -11
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +0 -75
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/util.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/util.js +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +0 -11
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +0 -34
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +0 -45
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +0 -196
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +0 -38
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +0 -68
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +0 -42
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +0 -117
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +0 -10
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +0 -49
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.js +0 -56
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +0 -42
- package/dist/HierarchicalTrackSelectorWidget/components/util.d.ts +0 -23
- package/dist/HierarchicalTrackSelectorWidget/components/util.js +0 -22
- package/dist/HierarchicalTrackSelectorWidget/configSchema.d.ts +0 -2
- package/dist/HierarchicalTrackSelectorWidget/configSchema.js +0 -5
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.d.ts +0 -82
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.js +0 -114
- package/dist/HierarchicalTrackSelectorWidget/facetedUtil.d.ts +0 -2
- package/dist/HierarchicalTrackSelectorWidget/facetedUtil.js +0 -12
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.d.ts +0 -18
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.js +0 -31
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +0 -36
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.js +0 -90
- package/dist/HierarchicalTrackSelectorWidget/index.d.ts +0 -4
- package/dist/HierarchicalTrackSelectorWidget/index.js +0 -59
- package/dist/HierarchicalTrackSelectorWidget/model.d.ts +0 -244
- package/dist/HierarchicalTrackSelectorWidget/model.js +0 -339
- package/dist/HierarchicalTrackSelectorWidget/util.d.ts +0 -12
- package/dist/HierarchicalTrackSelectorWidget/util.js +0 -50
- package/dist/JB2TrackHubConnection/addRelativeUris.d.ts +0 -1
- package/dist/JB2TrackHubConnection/addRelativeUris.js +0 -15
- package/dist/JB2TrackHubConnection/configSchema.d.ts +0 -27
- package/dist/JB2TrackHubConnection/configSchema.js +0 -34
- package/dist/JB2TrackHubConnection/doConnect.d.ts +0 -5
- package/dist/JB2TrackHubConnection/doConnect.js +0 -34
- package/dist/JB2TrackHubConnection/index.d.ts +0 -2
- package/dist/JB2TrackHubConnection/index.js +0 -21
- package/dist/JB2TrackHubConnection/model.d.ts +0 -75
- package/dist/JB2TrackHubConnection/model.js +0 -56
- package/dist/JB2TrackHubConnection/util.d.ts +0 -22
- package/dist/JB2TrackHubConnection/util.js +0 -41
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +0 -6
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.js +0 -65
- package/dist/PluginStoreWidget/components/DeletePluginDialog.d.ts +0 -4
- package/dist/PluginStoreWidget/components/DeletePluginDialog.js +0 -17
- package/dist/PluginStoreWidget/components/InstalledPlugin.d.ts +0 -7
- package/dist/PluginStoreWidget/components/InstalledPlugin.js +0 -92
- package/dist/PluginStoreWidget/components/InstalledPluginsList.d.ts +0 -7
- package/dist/PluginStoreWidget/components/InstalledPluginsList.js +0 -18
- package/dist/PluginStoreWidget/components/PluginCard.d.ts +0 -7
- package/dist/PluginStoreWidget/components/PluginCard.js +0 -58
- package/dist/PluginStoreWidget/components/PluginStoreWidget.d.ts +0 -5
- package/dist/PluginStoreWidget/components/PluginStoreWidget.js +0 -104
- package/dist/PluginStoreWidget/components/util.d.ts +0 -6
- package/dist/PluginStoreWidget/components/util.js +0 -35
- package/dist/PluginStoreWidget/index.d.ts +0 -2
- package/dist/PluginStoreWidget/index.js +0 -55
- package/dist/PluginStoreWidget/model.d.ts +0 -13
- package/dist/PluginStoreWidget/model.js +0 -22
- package/dist/UCSCTrackHubConnection/configSchema.d.ts +0 -27
- package/dist/UCSCTrackHubConnection/configSchema.js +0 -34
- package/dist/UCSCTrackHubConnection/doConnect.d.ts +0 -5
- package/dist/UCSCTrackHubConnection/doConnect.js +0 -152
- package/dist/UCSCTrackHubConnection/index.d.ts +0 -2
- package/dist/UCSCTrackHubConnection/index.js +0 -21
- package/dist/UCSCTrackHubConnection/model.d.ts +0 -75
- package/dist/UCSCTrackHubConnection/model.js +0 -56
- package/dist/UCSCTrackHubConnection/ucscAssemblies.d.ts +0 -2
- package/dist/UCSCTrackHubConnection/ucscAssemblies.js +0 -199
- package/dist/UCSCTrackHubConnection/ucscTrackHub.d.ts +0 -182
- package/dist/UCSCTrackHubConnection/ucscTrackHub.js +0 -162
- package/dist/UCSCTrackHubConnection/util.d.ts +0 -22
- package/dist/UCSCTrackHubConnection/util.js +0 -41
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -68
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts +0 -11
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +0 -9
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +0 -36
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __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 () {
|
|
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
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.default = JB2TrackHubConnection;
|
|
40
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
41
|
-
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
42
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
43
|
-
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
44
|
-
function JB2TrackHubConnection(pluginManager) {
|
|
45
|
-
return mobx_state_tree_1.types
|
|
46
|
-
.compose('JB2TrackHubConnection', (0, models_1.BaseConnectionModelFactory)(pluginManager), mobx_state_tree_1.types.model({
|
|
47
|
-
configuration: (0, configuration_1.ConfigurationReference)(configSchema_1.default),
|
|
48
|
-
type: mobx_state_tree_1.types.literal('JB2TrackHubConnection'),
|
|
49
|
-
}))
|
|
50
|
-
.actions(self => ({
|
|
51
|
-
async connect() {
|
|
52
|
-
const { doConnect } = await Promise.resolve().then(() => __importStar(require('./doConnect')));
|
|
53
|
-
doConnect(self);
|
|
54
|
-
},
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { GenomesFile, TrackDbFile } from '@gmod/ucsc-hub';
|
|
2
|
-
import type { FileLocation } from '@jbrowse/core/util';
|
|
3
|
-
export declare function fetchGenomesFile(genomesLoc: FileLocation): Promise<GenomesFile>;
|
|
4
|
-
export declare function fetchTrackDbFile(trackDbLoc: FileLocation): Promise<TrackDbFile>;
|
|
5
|
-
export declare function makeLoc(first: string, base: {
|
|
6
|
-
uri: string;
|
|
7
|
-
baseUri?: string;
|
|
8
|
-
}): {
|
|
9
|
-
uri: string;
|
|
10
|
-
locationType: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function makeLocAlt(first: string, alt: string, base: {
|
|
13
|
-
uri: string;
|
|
14
|
-
}): {
|
|
15
|
-
uri: string;
|
|
16
|
-
locationType: string;
|
|
17
|
-
};
|
|
18
|
-
export declare function makeLoc2(first: string, alt?: string): {
|
|
19
|
-
uri: string | undefined;
|
|
20
|
-
locationType: string;
|
|
21
|
-
};
|
|
22
|
-
export declare function resolve(uri: string, baseUri: string): string;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchGenomesFile = fetchGenomesFile;
|
|
4
|
-
exports.fetchTrackDbFile = fetchTrackDbFile;
|
|
5
|
-
exports.makeLoc = makeLoc;
|
|
6
|
-
exports.makeLocAlt = makeLocAlt;
|
|
7
|
-
exports.makeLoc2 = makeLoc2;
|
|
8
|
-
exports.resolve = resolve;
|
|
9
|
-
const ucsc_hub_1 = require("@gmod/ucsc-hub");
|
|
10
|
-
const io_1 = require("@jbrowse/core/util/io");
|
|
11
|
-
async function fetchGenomesFile(genomesLoc) {
|
|
12
|
-
const genomesFileText = await (0, io_1.openLocation)(genomesLoc).readFile('utf8');
|
|
13
|
-
return new ucsc_hub_1.GenomesFile(genomesFileText);
|
|
14
|
-
}
|
|
15
|
-
async function fetchTrackDbFile(trackDbLoc) {
|
|
16
|
-
const text = await (0, io_1.openLocation)(trackDbLoc).readFile('utf8');
|
|
17
|
-
return new ucsc_hub_1.TrackDbFile(text);
|
|
18
|
-
}
|
|
19
|
-
function makeLoc(first, base) {
|
|
20
|
-
return {
|
|
21
|
-
uri: new URL(first, new URL(base.uri, base.baseUri)).href,
|
|
22
|
-
locationType: 'UriLocation',
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function makeLocAlt(first, alt, base) {
|
|
26
|
-
return first ? makeLoc(first, base) : makeLoc(alt, base);
|
|
27
|
-
}
|
|
28
|
-
function makeLoc2(first, alt) {
|
|
29
|
-
return first
|
|
30
|
-
? {
|
|
31
|
-
uri: first,
|
|
32
|
-
locationType: 'LocalPath',
|
|
33
|
-
}
|
|
34
|
-
: {
|
|
35
|
-
uri: alt,
|
|
36
|
-
locationType: 'UriLocation',
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function resolve(uri, baseUri) {
|
|
40
|
-
return new URL(uri, baseUri).href;
|
|
41
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
-
const util_1 = require("@jbrowse/core/util");
|
|
10
|
-
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
13
|
-
const mobx_react_1 = require("mobx-react");
|
|
14
|
-
const mui_1 = require("tss-react/mui");
|
|
15
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
16
|
-
dialogContent: {
|
|
17
|
-
display: 'flex',
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
},
|
|
20
|
-
expand: {
|
|
21
|
-
transform: 'rotate(0deg)',
|
|
22
|
-
marginLeft: 'auto',
|
|
23
|
-
transition: theme.transitions.create('transform', {
|
|
24
|
-
duration: theme.transitions.duration.shortest,
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
expandOpen: {
|
|
28
|
-
transform: 'rotate(180deg)',
|
|
29
|
-
},
|
|
30
|
-
}));
|
|
31
|
-
const AddCustomPluginDialog = (0, mobx_react_1.observer)(function ({ onClose, model, }) {
|
|
32
|
-
const { classes, cx } = useStyles();
|
|
33
|
-
const [umdPluginName, setUMDPluginName] = (0, react_1.useState)('');
|
|
34
|
-
const [umdPluginUrl, setUMDPluginUrl] = (0, react_1.useState)('');
|
|
35
|
-
const [esmPluginUrl, setESMPluginUrl] = (0, react_1.useState)('');
|
|
36
|
-
const [cjsPluginUrl, setCJSPluginUrl] = (0, react_1.useState)('');
|
|
37
|
-
const [advancedOptionsOpen, setAdvancedOptionsOpen] = (0, react_1.useState)(false);
|
|
38
|
-
const { jbrowse } = (0, util_1.getSession)(model);
|
|
39
|
-
const ready = Boolean((umdPluginName && umdPluginUrl) || esmPluginUrl || cjsPluginUrl);
|
|
40
|
-
function handleSubmit() {
|
|
41
|
-
if (umdPluginName && umdPluginUrl) {
|
|
42
|
-
jbrowse.addPlugin({ name: umdPluginName, umdUrl: umdPluginUrl });
|
|
43
|
-
}
|
|
44
|
-
else if (esmPluginUrl) {
|
|
45
|
-
jbrowse.addPlugin({ esmUrl: esmPluginUrl });
|
|
46
|
-
}
|
|
47
|
-
else if (cjsPluginUrl) {
|
|
48
|
-
jbrowse.addPlugin({ cjsUrl: cjsPluginUrl });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Dialog, { open: true, onClose: onClose, title: "Add custom plugin", children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: handleSubmit, children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.dialogContent, children: [(0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: "Enter the name of the plugin and its URL. The name should match what is defined in the plugin's build." }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Plugin name", variant: "outlined", value: umdPluginName, onChange: event => {
|
|
52
|
-
setUMDPluginName(event.target.value);
|
|
53
|
-
} }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Plugin URL", variant: "outlined", value: umdPluginUrl, onChange: event => {
|
|
54
|
-
setUMDPluginUrl(event.target.value);
|
|
55
|
-
} }), (0, jsx_runtime_1.jsxs)(material_1.DialogContentText, { onClick: () => {
|
|
56
|
-
setAdvancedOptionsOpen(!advancedOptionsOpen);
|
|
57
|
-
}, children: [(0, jsx_runtime_1.jsx)(IconButton_1.default, { className: cx(classes.expand, {
|
|
58
|
-
[classes.expandOpen]: advancedOptionsOpen,
|
|
59
|
-
}), "aria-expanded": advancedOptionsOpen, "aria-label": "show more", children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }), "Advanced options"] }), (0, jsx_runtime_1.jsx)(material_1.Collapse, { in: advancedOptionsOpen, children: (0, jsx_runtime_1.jsxs)("div", { className: classes.dialogContent, children: [(0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: "The above fields assume that the plugin is built in UMD format. If your plugin is in another format, or you have additional builds you want to add (such as a CJS build for using NodeJS APIs in desktop), you can enter the URLs for those builds below." }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "ESM build URL", variant: "outlined", value: esmPluginUrl, onChange: event => {
|
|
60
|
-
setESMPluginUrl(event.target.value);
|
|
61
|
-
} }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "CJS build URL", variant: "outlined", value: cjsPluginUrl, onChange: event => {
|
|
62
|
-
setCJSPluginUrl(event.target.value);
|
|
63
|
-
} })] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: onClose, children: "Cancel" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", onClick: handleSubmit, disabled: !ready, children: "Submit" })] })] }) }));
|
|
64
|
-
});
|
|
65
|
-
exports.default = AddCustomPluginDialog;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = DeletePluginDialog;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
function DeletePluginDialog({ onClose, plugin, }) {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: true, title: `Remove ${plugin}`, onClose: () => {
|
|
9
|
-
onClose();
|
|
10
|
-
}, children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["Please confirm that you want to remove ", plugin, "."] }), (0, jsx_runtime_1.jsx)(material_1.Typography, { color: "error", children: "Note: if any resources in this session still use this plugin, it may cause your session to crash" })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", onClick: () => {
|
|
11
|
-
window.setTimeout(() => {
|
|
12
|
-
onClose(plugin);
|
|
13
|
-
}, 500);
|
|
14
|
-
}, children: "Confirm" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
15
|
-
onClose();
|
|
16
|
-
}, children: "Cancel" })] })] }));
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PluginStoreModel } from '../model';
|
|
2
|
-
import type { BasePlugin } from '@jbrowse/core/util/types';
|
|
3
|
-
declare const InstalledPlugin: ({ plugin, model, }: {
|
|
4
|
-
plugin: BasePlugin;
|
|
5
|
-
model: PluginStoreModel;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default InstalledPlugin;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __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 () {
|
|
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
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
-
const react_1 = require("react");
|
|
41
|
-
const util_1 = require("@jbrowse/core/util");
|
|
42
|
-
const types_1 = require("@jbrowse/core/util/types");
|
|
43
|
-
const Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
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");
|
|
48
|
-
const util_2 = require("./util");
|
|
49
|
-
const DeletePluginDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./DeletePluginDialog'))));
|
|
50
|
-
const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
51
|
-
iconMargin: {
|
|
52
|
-
marginRight: '0.5rem',
|
|
53
|
-
},
|
|
54
|
-
}));
|
|
55
|
-
function LockedPluginIconButton() {
|
|
56
|
-
const { classes } = useStyles();
|
|
57
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { className: classes.iconMargin, title: "This plugin was installed by an administrator, you cannot remove it.", children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { disabled: true, children: (0, jsx_runtime_1.jsx)(Lock_1.default, {}) }) }) }));
|
|
58
|
-
}
|
|
59
|
-
const UninstallPluginIconButton = (0, mobx_react_1.observer)(function ({ plugin, model, }) {
|
|
60
|
-
const { classes } = useStyles();
|
|
61
|
-
const { pluginManager } = (0, util_1.getEnv)(model);
|
|
62
|
-
const session = (0, util_1.getSession)(model);
|
|
63
|
-
const { jbrowse, adminMode } = session;
|
|
64
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { className: classes.iconMargin, title: "Uninstall plugin", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "data-testid": `removePlugin-${plugin.name}`, onClick: () => {
|
|
65
|
-
session.queueDialog(onClose => [
|
|
66
|
-
DeletePluginDialog,
|
|
67
|
-
{
|
|
68
|
-
plugin: plugin.name,
|
|
69
|
-
onClose: (name) => {
|
|
70
|
-
if (name) {
|
|
71
|
-
const pluginMetadata = pluginManager.pluginMetadata[plugin.name];
|
|
72
|
-
if (adminMode) {
|
|
73
|
-
jbrowse.removePlugin(pluginMetadata);
|
|
74
|
-
}
|
|
75
|
-
else if ((0, types_1.isSessionWithSessionPlugins)(session)) {
|
|
76
|
-
session.removeSessionPlugin(pluginMetadata);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
onClose();
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
]);
|
|
83
|
-
}, children: (0, jsx_runtime_1.jsx)(Delete_1.default, {}) }) }));
|
|
84
|
-
});
|
|
85
|
-
const InstalledPlugin = (0, mobx_react_1.observer)(function ({ plugin, model, }) {
|
|
86
|
-
const session = (0, util_1.getSession)(model);
|
|
87
|
-
const { adminMode } = session;
|
|
88
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.ListItem, { children: [adminMode || (0, util_2.isSessionPlugin)(plugin, session) ? ((0, jsx_runtime_1.jsx)(UninstallPluginIconButton, { plugin: plugin, model: model })) : ((0, jsx_runtime_1.jsx)(LockedPluginIconButton, {})), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: [plugin.name, plugin.version ? `(v${plugin.version})` : '']
|
|
89
|
-
.filter(f => !!f)
|
|
90
|
-
.join(' ') })] }, plugin.name));
|
|
91
|
-
});
|
|
92
|
-
exports.default = InstalledPlugin;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PluginStoreModel } from '../model';
|
|
2
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
declare const InstalledPluginsList: ({ pluginManager, model, }: {
|
|
4
|
-
pluginManager: PluginManager;
|
|
5
|
-
model: PluginStoreModel;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default InstalledPluginsList;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const mobx_react_1 = require("mobx-react");
|
|
9
|
-
const InstalledPlugin_1 = __importDefault(require("./InstalledPlugin"));
|
|
10
|
-
const InstalledPluginsList = (0, mobx_react_1.observer)(function InstalledPluginsList({ pluginManager, model, }) {
|
|
11
|
-
const { plugins } = pluginManager;
|
|
12
|
-
const { filterText } = model;
|
|
13
|
-
const externalPlugins = plugins.filter(p => { var _a; return !((_a = pluginManager.pluginMetadata[p.name]) === null || _a === void 0 ? void 0 : _a.isCore); });
|
|
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
|
-
});
|
|
18
|
-
exports.default = InstalledPluginsList;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PluginStoreModel } from '../model';
|
|
2
|
-
import type { JBrowsePlugin } from '@jbrowse/core/util/types';
|
|
3
|
-
declare const PluginCard: ({ plugin, model, }: {
|
|
4
|
-
plugin: JBrowsePlugin;
|
|
5
|
-
model: PluginStoreModel;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PluginCard;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
-
const util_1 = require("@jbrowse/core/util");
|
|
10
|
-
const types_1 = require("@jbrowse/core/util/types");
|
|
11
|
-
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
12
|
-
const Check_1 = __importDefault(require("@mui/icons-material/Check"));
|
|
13
|
-
const Person_1 = __importDefault(require("@mui/icons-material/Person"));
|
|
14
|
-
const material_1 = require("@mui/material");
|
|
15
|
-
const mobx_react_1 = require("mobx-react");
|
|
16
|
-
const mui_1 = require("tss-react/mui");
|
|
17
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
18
|
-
card: {
|
|
19
|
-
margin: '0.5em',
|
|
20
|
-
},
|
|
21
|
-
icon: {
|
|
22
|
-
marginLeft: '0.5em',
|
|
23
|
-
marginRight: '0.5em',
|
|
24
|
-
},
|
|
25
|
-
bold: {
|
|
26
|
-
fontWeight: 600,
|
|
27
|
-
},
|
|
28
|
-
dataField: {
|
|
29
|
-
display: 'flex',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
},
|
|
32
|
-
mr: {
|
|
33
|
-
marginRight: '0.5em',
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
const PluginCard = (0, mobx_react_1.observer)(function PluginCard({ plugin, model, }) {
|
|
37
|
-
const { classes } = useStyles();
|
|
38
|
-
const session = (0, util_1.getSession)(model);
|
|
39
|
-
const { pluginManager } = (0, util_1.getEnv)(model);
|
|
40
|
-
const { runtimePluginDefinitions } = pluginManager;
|
|
41
|
-
const isInstalled = runtimePluginDefinitions.some(d => 'url' in d && d.url === plugin.url);
|
|
42
|
-
const [tempDisabled, setTempDisabled] = (0, react_1.useState)(false);
|
|
43
|
-
const { adminMode, jbrowse } = session;
|
|
44
|
-
const { name, authors, description } = plugin;
|
|
45
|
-
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)(ui_1.ExternalLink, { href: `${plugin.location}#readme`, 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: () => {
|
|
46
|
-
if (adminMode) {
|
|
47
|
-
jbrowse.addPlugin(plugin);
|
|
48
|
-
}
|
|
49
|
-
else if ((0, types_1.isSessionWithSessionPlugins)(session)) {
|
|
50
|
-
session.addSessionPlugin(plugin);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
session.notify('No way to install plugin');
|
|
54
|
-
}
|
|
55
|
-
setTempDisabled(true);
|
|
56
|
-
}, children: isInstalled ? 'Installed' : 'Install' }) })] }, name));
|
|
57
|
-
});
|
|
58
|
-
exports.default = PluginCard;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __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 () {
|
|
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
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
-
const react_1 = require("react");
|
|
41
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
42
|
-
const util_1 = require("@jbrowse/core/util");
|
|
43
|
-
const Clear_1 = __importDefault(require("@mui/icons-material/Clear"));
|
|
44
|
-
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
45
|
-
const InfoOutlined_1 = __importDefault(require("@mui/icons-material/InfoOutlined"));
|
|
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");
|
|
50
|
-
const InstalledPluginsList_1 = __importDefault(require("./InstalledPluginsList"));
|
|
51
|
-
const PluginCard_1 = __importDefault(require("./PluginCard"));
|
|
52
|
-
const util_2 = require("./util");
|
|
53
|
-
const AddCustomPluginDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./AddCustomPluginDialog'))));
|
|
54
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
55
|
-
expandIcon: {
|
|
56
|
-
color: theme.palette.tertiary.contrastText,
|
|
57
|
-
},
|
|
58
|
-
adminBadge: {
|
|
59
|
-
borderRadius: 3,
|
|
60
|
-
backgroundColor: theme.palette.quaternary.main,
|
|
61
|
-
padding: '1em',
|
|
62
|
-
display: 'flex',
|
|
63
|
-
alignContent: 'center',
|
|
64
|
-
},
|
|
65
|
-
customPluginButton: {
|
|
66
|
-
margin: '1em auto',
|
|
67
|
-
display: 'flex',
|
|
68
|
-
},
|
|
69
|
-
mr: {
|
|
70
|
-
marginRight: '0.3em',
|
|
71
|
-
},
|
|
72
|
-
m: {
|
|
73
|
-
margin: '1em',
|
|
74
|
-
},
|
|
75
|
-
}));
|
|
76
|
-
const PluginStoreWidget = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
77
|
-
const { classes } = useStyles();
|
|
78
|
-
const { plugins, error } = (0, util_2.useFetchPlugins)();
|
|
79
|
-
const { filterText } = model;
|
|
80
|
-
const session = (0, util_1.getSession)(model);
|
|
81
|
-
const { adminMode } = session;
|
|
82
|
-
const { pluginManager } = (0, mobx_state_tree_1.getEnv)(model);
|
|
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, {}))] })] }));
|
|
103
|
-
});
|
|
104
|
-
exports.default = PluginStoreWidget;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { AbstractSessionModel, BasePlugin, JBrowsePlugin } from '@jbrowse/core/util/types';
|
|
2
|
-
export declare function useFetchPlugins(): {
|
|
3
|
-
plugins: JBrowsePlugin[] | undefined;
|
|
4
|
-
error: unknown;
|
|
5
|
-
};
|
|
6
|
-
export declare function isSessionPlugin(plugin: BasePlugin, session: AbstractSessionModel): boolean;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFetchPlugins = useFetchPlugins;
|
|
4
|
-
exports.isSessionPlugin = isSessionPlugin;
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const util_1 = require("@jbrowse/core/util");
|
|
7
|
-
function useFetchPlugins() {
|
|
8
|
-
const [plugins, setPlugins] = (0, react_1.useState)();
|
|
9
|
-
const [error, setError] = (0, react_1.useState)();
|
|
10
|
-
(0, react_1.useEffect)(() => {
|
|
11
|
-
;
|
|
12
|
-
(async () => {
|
|
13
|
-
try {
|
|
14
|
-
const res = await fetch('https://jbrowse.org/plugin-store/plugins.json');
|
|
15
|
-
if (!res.ok) {
|
|
16
|
-
const err = await res.text();
|
|
17
|
-
throw new Error(`HTTP ${res.status} fetching plugins: ${err}`);
|
|
18
|
-
}
|
|
19
|
-
const array = await res.json();
|
|
20
|
-
setPlugins(array.plugins);
|
|
21
|
-
}
|
|
22
|
-
catch (e) {
|
|
23
|
-
console.error(e);
|
|
24
|
-
setError(e);
|
|
25
|
-
}
|
|
26
|
-
})();
|
|
27
|
-
}, []);
|
|
28
|
-
return { plugins, error };
|
|
29
|
-
}
|
|
30
|
-
function isSessionPlugin(plugin, session) {
|
|
31
|
-
const { pluginManager } = (0, util_1.getEnv)(session);
|
|
32
|
-
return (0, util_1.isSessionWithSessionPlugins)(session)
|
|
33
|
-
? session.sessionPlugins.some(p => { var _a; return ((_a = pluginManager.pluginMetadata[plugin.name]) === null || _a === void 0 ? void 0 : _a.url) === p.url; })
|
|
34
|
-
: false;
|
|
35
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __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 () {
|
|
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
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.default = PluginStoreWidgetF;
|
|
40
|
-
const react_1 = require("react");
|
|
41
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
42
|
-
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
43
|
-
const model_1 = __importDefault(require("./model"));
|
|
44
|
-
const configSchema = (0, configuration_1.ConfigurationSchema)('PluginStoreWidget', {});
|
|
45
|
-
function PluginStoreWidgetF(pluginManager) {
|
|
46
|
-
pluginManager.addWidgetType(() => {
|
|
47
|
-
return new pluggableElementTypes_1.WidgetType({
|
|
48
|
-
name: 'PluginStoreWidget',
|
|
49
|
-
heading: 'Plugin store',
|
|
50
|
-
configSchema,
|
|
51
|
-
stateModel: (0, model_1.default)(pluginManager),
|
|
52
|
-
ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/PluginStoreWidget')))),
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
}
|