@massdriver/backstage-plugin 1.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/LICENSE +202 -0
- package/README.md +196 -0
- package/dist/MassdriverRouter.esm.js +78 -0
- package/dist/MassdriverRouter.esm.js.map +1 -0
- package/dist/api.esm.js +119 -0
- package/dist/api.esm.js.map +1 -0
- package/dist/assets/massdriver-logo-dark.svg +55 -0
- package/dist/assets/massdriver-logo-light.svg +50 -0
- package/dist/components/AttributesColumn.esm.js +95 -0
- package/dist/components/AttributesColumn.esm.js.map +1 -0
- package/dist/components/AttributesSummaryCell.esm.js +103 -0
- package/dist/components/AttributesSummaryCell.esm.js.map +1 -0
- package/dist/components/AuthedIcon.esm.js +26 -0
- package/dist/components/AuthedIcon.esm.js.map +1 -0
- package/dist/components/ConditionsCell.esm.js +48 -0
- package/dist/components/ConditionsCell.esm.js.map +1 -0
- package/dist/components/DisabledAction.esm.js +30 -0
- package/dist/components/DisabledAction.esm.js.map +1 -0
- package/dist/components/EntityMassdriverContent/EntityMassdriverContent.esm.js +80 -0
- package/dist/components/EntityMassdriverContent/EntityMassdriverContent.esm.js.map +1 -0
- package/dist/components/EntityMassdriverContent/index.esm.js +6 -0
- package/dist/components/EntityMassdriverContent/index.esm.js.map +1 -0
- package/dist/components/EntityMassdriverOverviewCard/EntityMassdriverOverviewCard.esm.js +75 -0
- package/dist/components/EntityMassdriverOverviewCard/EntityMassdriverOverviewCard.esm.js.map +1 -0
- package/dist/components/EntityMassdriverOverviewCard/index.esm.js +6 -0
- package/dist/components/EntityMassdriverOverviewCard/index.esm.js.map +1 -0
- package/dist/components/ForkPill.esm.js +84 -0
- package/dist/components/ForkPill.esm.js.map +1 -0
- package/dist/components/InstanceStatusIndicator.esm.js +21 -0
- package/dist/components/InstanceStatusIndicator.esm.js.map +1 -0
- package/dist/components/InstanceStatusPill.esm.js +67 -0
- package/dist/components/InstanceStatusPill.esm.js.map +1 -0
- package/dist/components/MassdriverIcon.esm.js +13 -0
- package/dist/components/MassdriverIcon.esm.js.map +1 -0
- package/dist/components/MassdriverSidebarItem.esm.js +45 -0
- package/dist/components/MassdriverSidebarItem.esm.js.map +1 -0
- package/dist/components/NotFound.esm.js +44 -0
- package/dist/components/NotFound.esm.js.map +1 -0
- package/dist/components/OpenInMassdriverButton.esm.js +24 -0
- package/dist/components/OpenInMassdriverButton.esm.js.map +1 -0
- package/dist/components/PageLayout.esm.js +88 -0
- package/dist/components/PageLayout.esm.js.map +1 -0
- package/dist/components/RouterLinkAdapter.esm.js +12 -0
- package/dist/components/RouterLinkAdapter.esm.js.map +1 -0
- package/dist/components/VersionBadge.esm.js +57 -0
- package/dist/components/VersionBadge.esm.js.map +1 -0
- package/dist/components/grantColumns.esm.js +56 -0
- package/dist/components/grantColumns.esm.js.map +1 -0
- package/dist/components/icons/BundleIcon.esm.js +7 -0
- package/dist/components/icons/BundleIcon.esm.js.map +1 -0
- package/dist/components/icons/FolderOutlinedIcon.esm.js +7 -0
- package/dist/components/icons/FolderOutlinedIcon.esm.js.map +1 -0
- package/dist/components/icons/TokenIcon.esm.js +7 -0
- package/dist/components/icons/TokenIcon.esm.js.map +1 -0
- package/dist/entity.esm.js +23 -0
- package/dist/entity.esm.js.map +1 -0
- package/dist/features/environment/CompareDeploymentsDialog/CompareDeploymentsDialog.esm.js +115 -0
- package/dist/features/environment/CompareDeploymentsDialog/CompareDeploymentsDialog.esm.js.map +1 -0
- package/dist/features/environment/CompareDeploymentsDialog/ResultsStep.esm.js +165 -0
- package/dist/features/environment/CompareDeploymentsDialog/ResultsStep.esm.js.map +1 -0
- package/dist/features/environment/CompareDeploymentsDialog/SelectStep.esm.js +216 -0
- package/dist/features/environment/CompareDeploymentsDialog/SelectStep.esm.js.map +1 -0
- package/dist/features/environment/CompareDeploymentsDialog/compareColumns.esm.js +86 -0
- package/dist/features/environment/CompareDeploymentsDialog/compareColumns.esm.js.map +1 -0
- package/dist/features/environment/CompareDeploymentsDialog/flattenDeploymentComparison.esm.js +57 -0
- package/dist/features/environment/CompareDeploymentsDialog/flattenDeploymentComparison.esm.js.map +1 -0
- package/dist/features/environment/CompareDeploymentsDialog/queries.esm.js +53 -0
- package/dist/features/environment/CompareDeploymentsDialog/queries.esm.js.map +1 -0
- package/dist/features/environment/CompareEnvironmentsDialog/CompareEnvironmentsDialog.esm.js +94 -0
- package/dist/features/environment/CompareEnvironmentsDialog/CompareEnvironmentsDialog.esm.js.map +1 -0
- package/dist/features/environment/CompareEnvironmentsDialog/ComparisonValueCell.esm.js +67 -0
- package/dist/features/environment/CompareEnvironmentsDialog/ComparisonValueCell.esm.js.map +1 -0
- package/dist/features/environment/CompareEnvironmentsDialog/ResultsStep.esm.js +202 -0
- package/dist/features/environment/CompareEnvironmentsDialog/ResultsStep.esm.js.map +1 -0
- package/dist/features/environment/CompareEnvironmentsDialog/SelectStep.esm.js +183 -0
- package/dist/features/environment/CompareEnvironmentsDialog/SelectStep.esm.js.map +1 -0
- package/dist/features/environment/CompareEnvironmentsDialog/compareColumns.esm.js +73 -0
- package/dist/features/environment/CompareEnvironmentsDialog/compareColumns.esm.js.map +1 -0
- package/dist/features/environment/CompareEnvironmentsDialog/flattenComparison.esm.js +70 -0
- package/dist/features/environment/CompareEnvironmentsDialog/flattenComparison.esm.js.map +1 -0
- package/dist/features/environment/CompareEnvironmentsDialog/queries.esm.js +32 -0
- package/dist/features/environment/CompareEnvironmentsDialog/queries.esm.js.map +1 -0
- package/dist/features/environment/EnvironmentGraphPage.esm.js +131 -0
- package/dist/features/environment/EnvironmentGraphPage.esm.js.map +1 -0
- package/dist/features/environment/GraphHeader/EnvironmentDefaults.esm.js +252 -0
- package/dist/features/environment/GraphHeader/EnvironmentDefaults.esm.js.map +1 -0
- package/dist/features/environment/GraphHeader/GraphHeader.esm.js +247 -0
- package/dist/features/environment/GraphHeader/GraphHeader.esm.js.map +1 -0
- package/dist/features/environment/GraphHeader/HeaderActions.esm.js +127 -0
- package/dist/features/environment/GraphHeader/HeaderActions.esm.js.map +1 -0
- package/dist/features/environment/GraphHeader/Switcher.esm.js +75 -0
- package/dist/features/environment/GraphHeader/Switcher.esm.js.map +1 -0
- package/dist/features/environment/GraphHeader/queries.esm.js +60 -0
- package/dist/features/environment/GraphHeader/queries.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/AlarmCard.esm.js +151 -0
- package/dist/features/environment/InstanceDrawer/AlarmCard.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/InstanceDrawer.esm.js +165 -0
- package/dist/features/environment/InstanceDrawer/InstanceDrawer.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/InstanceDrawerHeader.esm.js +241 -0
- package/dist/features/environment/InstanceDrawer/InstanceDrawerHeader.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/InstanceTabs.esm.js +119 -0
- package/dist/features/environment/InstanceDrawer/InstanceTabs.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/TabState.esm.js +30 -0
- package/dist/features/environment/InstanceDrawer/TabState.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/formsDataSource.esm.js +25 -0
- package/dist/features/environment/InstanceDrawer/formsDataSource.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/helpers.esm.js +282 -0
- package/dist/features/environment/InstanceDrawer/helpers.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/queries.esm.js +281 -0
- package/dist/features/environment/InstanceDrawer/queries.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/ConfigTab.esm.js +170 -0
- package/dist/features/environment/InstanceDrawer/tabs/ConfigTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/DependenciesTab.esm.js +413 -0
- package/dist/features/environment/InstanceDrawer/tabs/DependenciesTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/DeploymentLogsPanel.esm.js +191 -0
- package/dist/features/environment/InstanceDrawer/tabs/DeploymentLogsPanel.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/DeploymentReadOnlyActions.esm.js +63 -0
- package/dist/features/environment/InstanceDrawer/tabs/DeploymentReadOnlyActions.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/GuideTab.esm.js +48 -0
- package/dist/features/environment/InstanceDrawer/tabs/GuideTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/HistoryTab.esm.js +446 -0
- package/dist/features/environment/InstanceDrawer/tabs/HistoryTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/MonitorTab.esm.js +146 -0
- package/dist/features/environment/InstanceDrawer/tabs/MonitorTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/OverviewTab.esm.js +572 -0
- package/dist/features/environment/InstanceDrawer/tabs/OverviewTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/ResourcesTab.esm.js +471 -0
- package/dist/features/environment/InstanceDrawer/tabs/ResourcesTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/SecretsTab.esm.js +109 -0
- package/dist/features/environment/InstanceDrawer/tabs/SecretsTab.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/ViewDeploymentDetails.esm.js +384 -0
- package/dist/features/environment/InstanceDrawer/tabs/ViewDeploymentDetails.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/tabs/flattenParams.esm.js +23 -0
- package/dist/features/environment/InstanceDrawer/tabs/flattenParams.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/useInstanceApiQuery.esm.js +6 -0
- package/dist/features/environment/InstanceDrawer/useInstanceApiQuery.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/useOverflowMeasure.esm.js +55 -0
- package/dist/features/environment/InstanceDrawer/useOverflowMeasure.esm.js.map +1 -0
- package/dist/features/environment/InstanceDrawer/useResizableWidth.esm.js +44 -0
- package/dist/features/environment/InstanceDrawer/useResizableWidth.esm.js.map +1 -0
- package/dist/features/environment/components/InstanceStatusPill.esm.js +54 -0
- package/dist/features/environment/components/InstanceStatusPill.esm.js.map +1 -0
- package/dist/features/environment/graph/Diagram.esm.js +143 -0
- package/dist/features/environment/graph/Diagram.esm.js.map +1 -0
- package/dist/features/environment/graph/DiagramNode.constants.esm.js +5 -0
- package/dist/features/environment/graph/DiagramNode.constants.esm.js.map +1 -0
- package/dist/features/environment/graph/DiagramNode.esm.js +221 -0
- package/dist/features/environment/graph/DiagramNode.esm.js.map +1 -0
- package/dist/features/environment/graph/NodeMeta.esm.js +182 -0
- package/dist/features/environment/graph/NodeMeta.esm.js.map +1 -0
- package/dist/features/environment/graph/NodeVersionBadges.esm.js +150 -0
- package/dist/features/environment/graph/NodeVersionBadges.esm.js.map +1 -0
- package/dist/features/environment/graph/diagramFactory.esm.js +151 -0
- package/dist/features/environment/graph/diagramFactory.esm.js.map +1 -0
- package/dist/features/environment/graph/handles/ExpandableHandleWrapper.esm.js +174 -0
- package/dist/features/environment/graph/handles/ExpandableHandleWrapper.esm.js.map +1 -0
- package/dist/features/environment/graph/handles/NodeHandle.esm.js +45 -0
- package/dist/features/environment/graph/handles/NodeHandle.esm.js.map +1 -0
- package/dist/features/environment/graph/handles/NodeHandleTooltip.esm.js +134 -0
- package/dist/features/environment/graph/handles/NodeHandleTooltip.esm.js.map +1 -0
- package/dist/features/environment/graph/handles/handleTypes.esm.js +170 -0
- package/dist/features/environment/graph/handles/handleTypes.esm.js.map +1 -0
- package/dist/features/environment/graph/handles/useAnimationFrameSync.esm.js +19 -0
- package/dist/features/environment/graph/handles/useAnimationFrameSync.esm.js.map +1 -0
- package/dist/features/environment/graph/handles/useRadialPositions.esm.js +37 -0
- package/dist/features/environment/graph/handles/useRadialPositions.esm.js.map +1 -0
- package/dist/features/environment/graph/handles/useTransitionLifecycle.esm.js +19 -0
- package/dist/features/environment/graph/handles/useTransitionLifecycle.esm.js.map +1 -0
- package/dist/features/environment/graph/hasUndeployedPlan.esm.js +43 -0
- package/dist/features/environment/graph/hasUndeployedPlan.esm.js.map +1 -0
- package/dist/features/environment/graph/queries.esm.js +103 -0
- package/dist/features/environment/graph/queries.esm.js.map +1 -0
- package/dist/features/environment/graph/useDiagramSnapshot.esm.js +43 -0
- package/dist/features/environment/graph/useDiagramSnapshot.esm.js.map +1 -0
- package/dist/features/environment/realtime/RealtimeProvider.esm.js +43 -0
- package/dist/features/environment/realtime/RealtimeProvider.esm.js.map +1 -0
- package/dist/features/environment/realtime/queries.esm.js +76 -0
- package/dist/features/environment/realtime/queries.esm.js.map +1 -0
- package/dist/features/environment/realtime/useLiveRelayQuery.esm.js +36 -0
- package/dist/features/environment/realtime/useLiveRelayQuery.esm.js.map +1 -0
- package/dist/features/project/ProjectDetailsPage.esm.js +101 -0
- package/dist/features/project/ProjectDetailsPage.esm.js.map +1 -0
- package/dist/features/project/tabs/ComponentsTab.esm.js +149 -0
- package/dist/features/project/tabs/ComponentsTab.esm.js.map +1 -0
- package/dist/features/project/tabs/EnvStatus.esm.js +149 -0
- package/dist/features/project/tabs/EnvStatus.esm.js.map +1 -0
- package/dist/features/project/tabs/EnvironmentsTab.esm.js +199 -0
- package/dist/features/project/tabs/EnvironmentsTab.esm.js.map +1 -0
- package/dist/features/project/tabs/OverviewTab.esm.js +420 -0
- package/dist/features/project/tabs/OverviewTab.esm.js.map +1 -0
- package/dist/features/projects/ProjectsListPage.esm.js +50 -0
- package/dist/features/projects/ProjectsListPage.esm.js.map +1 -0
- package/dist/features/projects/ProjectsListPageLazy.esm.js +12 -0
- package/dist/features/projects/ProjectsListPageLazy.esm.js.map +1 -0
- package/dist/features/projects/projectColumns.esm.js +38 -0
- package/dist/features/projects/projectColumns.esm.js.map +1 -0
- package/dist/features/projects/useProjects.esm.js +48 -0
- package/dist/features/projects/useProjects.esm.js.map +1 -0
- package/dist/features/repo/DeploymentLogsDrawer.esm.js +213 -0
- package/dist/features/repo/DeploymentLogsDrawer.esm.js.map +1 -0
- package/dist/features/repo/DeploymentLogsDrawer.loading.esm.js +43 -0
- package/dist/features/repo/DeploymentLogsDrawer.loading.esm.js.map +1 -0
- package/dist/features/repo/FileTree.esm.js +179 -0
- package/dist/features/repo/FileTree.esm.js.map +1 -0
- package/dist/features/repo/FileViewer.esm.js +115 -0
- package/dist/features/repo/FileViewer.esm.js.map +1 -0
- package/dist/features/repo/FileViewer.helpers.esm.js +54 -0
- package/dist/features/repo/FileViewer.helpers.esm.js.map +1 -0
- package/dist/features/repo/RepoDetailsPage.esm.js +127 -0
- package/dist/features/repo/RepoDetailsPage.esm.js.map +1 -0
- package/dist/features/repo/RepoEmptyState.esm.js +58 -0
- package/dist/features/repo/RepoEmptyState.esm.js.map +1 -0
- package/dist/features/repo/RepoNoVersionsState.esm.js +29 -0
- package/dist/features/repo/RepoNoVersionsState.esm.js.map +1 -0
- package/dist/features/repo/RepoTabHeader.esm.js +30 -0
- package/dist/features/repo/RepoTabHeader.esm.js.map +1 -0
- package/dist/features/repo/RepoTabLayout.esm.js +18 -0
- package/dist/features/repo/RepoTabLayout.esm.js.map +1 -0
- package/dist/features/repo/RepoVersionSelect.esm.js +176 -0
- package/dist/features/repo/RepoVersionSelect.esm.js.map +1 -0
- package/dist/features/repo/ViewDeploymentDetailsDialog.esm.js +427 -0
- package/dist/features/repo/ViewDeploymentDetailsDialog.esm.js.map +1 -0
- package/dist/features/repo/deploymentHelpers.esm.js +74 -0
- package/dist/features/repo/deploymentHelpers.esm.js.map +1 -0
- package/dist/features/repo/fileTreeHelpers.esm.js +45 -0
- package/dist/features/repo/fileTreeHelpers.esm.js.map +1 -0
- package/dist/features/repo/flattenParams.esm.js +23 -0
- package/dist/features/repo/flattenParams.esm.js.map +1 -0
- package/dist/features/repo/queries.esm.js +239 -0
- package/dist/features/repo/queries.esm.js.map +1 -0
- package/dist/features/repo/repoFilter.esm.js +9 -0
- package/dist/features/repo/repoFilter.esm.js.map +1 -0
- package/dist/features/repo/repoTabs.esm.js +22 -0
- package/dist/features/repo/repoTabs.esm.js.map +1 -0
- package/dist/features/repo/resolveVersion.esm.js +22 -0
- package/dist/features/repo/resolveVersion.esm.js.map +1 -0
- package/dist/features/repo/tabs/DeploymentRow.esm.js +201 -0
- package/dist/features/repo/tabs/DeploymentRow.esm.js.map +1 -0
- package/dist/features/repo/tabs/DeploymentsTab.esm.js +188 -0
- package/dist/features/repo/tabs/DeploymentsTab.esm.js.map +1 -0
- package/dist/features/repo/tabs/DeploymentsTab.helpers.esm.js +46 -0
- package/dist/features/repo/tabs/DeploymentsTab.helpers.esm.js.map +1 -0
- package/dist/features/repo/tabs/DeploymentsTab.loading.esm.js +37 -0
- package/dist/features/repo/tabs/DeploymentsTab.loading.esm.js.map +1 -0
- package/dist/features/repo/tabs/FilesTab.esm.js +142 -0
- package/dist/features/repo/tabs/FilesTab.esm.js.map +1 -0
- package/dist/features/repo/tabs/InstanceRow.esm.js +121 -0
- package/dist/features/repo/tabs/InstanceRow.esm.js.map +1 -0
- package/dist/features/repo/tabs/InstancesTab.esm.js +147 -0
- package/dist/features/repo/tabs/InstancesTab.esm.js.map +1 -0
- package/dist/features/repo/tabs/InstancesTab.helpers.esm.js +44 -0
- package/dist/features/repo/tabs/InstancesTab.helpers.esm.js.map +1 -0
- package/dist/features/repo/tabs/InstancesTab.loading.esm.js +33 -0
- package/dist/features/repo/tabs/InstancesTab.loading.esm.js.map +1 -0
- package/dist/features/repo/tabs/OverviewTab.esm.js +77 -0
- package/dist/features/repo/tabs/OverviewTab.esm.js.map +1 -0
- package/dist/features/repo/tabs/PermissionsTab.esm.js +56 -0
- package/dist/features/repo/tabs/PermissionsTab.esm.js.map +1 -0
- package/dist/features/repo/tabs/VersionsTab.esm.js +152 -0
- package/dist/features/repo/tabs/VersionsTab.esm.js.map +1 -0
- package/dist/features/repo/useInfiniteRelayList.esm.js +92 -0
- package/dist/features/repo/useInfiniteRelayList.esm.js.map +1 -0
- package/dist/features/repo/useInfiniteScroll.esm.js +21 -0
- package/dist/features/repo/useInfiniteScroll.esm.js.map +1 -0
- package/dist/features/repos/ReposListPage.esm.js +53 -0
- package/dist/features/repos/ReposListPage.esm.js.map +1 -0
- package/dist/features/repos/queries.esm.js +40 -0
- package/dist/features/repos/queries.esm.js.map +1 -0
- package/dist/features/repos/repoColumns.esm.js +121 -0
- package/dist/features/repos/repoColumns.esm.js.map +1 -0
- package/dist/features/repos/useRepos.esm.js +22 -0
- package/dist/features/repos/useRepos.esm.js.map +1 -0
- package/dist/features/resource/OriginChip.esm.js +42 -0
- package/dist/features/resource/OriginChip.esm.js.map +1 -0
- package/dist/features/resource/ResourceDetailsPage.esm.js +167 -0
- package/dist/features/resource/ResourceDetailsPage.esm.js.map +1 -0
- package/dist/features/resource/queries.esm.js +141 -0
- package/dist/features/resource/queries.esm.js.map +1 -0
- package/dist/features/resource/tabs/GeneralTab.esm.js +247 -0
- package/dist/features/resource/tabs/GeneralTab.esm.js.map +1 -0
- package/dist/features/resource/tabs/GeneralTab.loading.esm.js +76 -0
- package/dist/features/resource/tabs/GeneralTab.loading.esm.js.map +1 -0
- package/dist/features/resource/tabs/PermissionsTab.esm.js +57 -0
- package/dist/features/resource/tabs/PermissionsTab.esm.js.map +1 -0
- package/dist/features/resource/tabs/SettingsTabLayout.esm.js +18 -0
- package/dist/features/resource/tabs/SettingsTabLayout.esm.js.map +1 -0
- package/dist/features/resource/tabs/TabHeader.esm.js +30 -0
- package/dist/features/resource/tabs/TabHeader.esm.js.map +1 -0
- package/dist/features/resource/tabs/UsagePanel.esm.js +35 -0
- package/dist/features/resource/tabs/UsagePanel.esm.js.map +1 -0
- package/dist/features/resource/tabs/UsageTab.esm.js +91 -0
- package/dist/features/resource/tabs/UsageTab.esm.js.map +1 -0
- package/dist/features/resource/tabs/UsageTab.helpers.esm.js +168 -0
- package/dist/features/resource/tabs/UsageTab.helpers.esm.js.map +1 -0
- package/dist/features/resources/ResourcesEmptyState.esm.js +148 -0
- package/dist/features/resources/ResourcesEmptyState.esm.js.map +1 -0
- package/dist/features/resources/ResourcesListPage.esm.js +115 -0
- package/dist/features/resources/ResourcesListPage.esm.js.map +1 -0
- package/dist/features/resources/queries.esm.js +50 -0
- package/dist/features/resources/queries.esm.js.map +1 -0
- package/dist/features/resources/resourceColumns.esm.js +158 -0
- package/dist/features/resources/resourceColumns.esm.js.map +1 -0
- package/dist/features/resources/resourceConstants.esm.js +7 -0
- package/dist/features/resources/resourceConstants.esm.js.map +1 -0
- package/dist/features/resources/toResourceRow.esm.js +29 -0
- package/dist/features/resources/toResourceRow.esm.js.map +1 -0
- package/dist/hooks/useAuthedSvg.esm.js +34 -0
- package/dist/hooks/useAuthedSvg.esm.js.map +1 -0
- package/dist/hooks/useCursorPagination.esm.js +40 -0
- package/dist/hooks/useCursorPagination.esm.js.map +1 -0
- package/dist/hooks/useMassdriverSubscription.esm.js +61 -0
- package/dist/hooks/useMassdriverSubscription.esm.js.map +1 -0
- package/dist/hooks/usePaginatedRelayQuery.esm.js +68 -0
- package/dist/hooks/usePaginatedRelayQuery.esm.js.map +1 -0
- package/dist/index.d.ts +256 -0
- package/dist/index.esm.js +8 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/internalRoutes.esm.js +29 -0
- package/dist/internalRoutes.esm.js.map +1 -0
- package/dist/plugin.esm.js +57 -0
- package/dist/plugin.esm.js.map +1 -0
- package/dist/queries.esm.js +54 -0
- package/dist/queries.esm.js.map +1 -0
- package/dist/routes.esm.js +6 -0
- package/dist/routes.esm.js.map +1 -0
- package/dist/shell/MassdriverHeader.esm.js +37 -0
- package/dist/shell/MassdriverHeader.esm.js.map +1 -0
- package/dist/shell/MassdriverShell.esm.js +30 -0
- package/dist/shell/MassdriverShell.esm.js.map +1 -0
- package/dist/theme/MassdriverThemeScope.esm.js +30 -0
- package/dist/theme/MassdriverThemeScope.esm.js.map +1 -0
- package/dist/theme/ThemeModeContext.esm.js +35 -0
- package/dist/theme/ThemeModeContext.esm.js.map +1 -0
- package/dist/theme/muiClassNameAudit.esm.js +11 -0
- package/dist/theme/muiClassNameAudit.esm.js.map +1 -0
- package/dist/useInstances.esm.js +39 -0
- package/dist/useInstances.esm.js.map +1 -0
- package/dist/utils/attributes.esm.js +28 -0
- package/dist/utils/attributes.esm.js.map +1 -0
- package/dist/utils/conditions.esm.js +20 -0
- package/dist/utils/conditions.esm.js.map +1 -0
- package/dist/utils/formatRelativeTime.esm.js +40 -0
- package/dist/utils/formatRelativeTime.esm.js.map +1 -0
- package/dist/utils/instanceStatuses.esm.js +74 -0
- package/dist/utils/instanceStatuses.esm.js.map +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverviewTab.esm.js","sources":["../../../../../src/features/environment/InstanceDrawer/tabs/OverviewTab.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport Box from '@massdriver/ui/Box';\nimport Typography from '@massdriver/ui/Typography';\nimport CopyButton from '@massdriver/ui/CopyButton';\nimport CodeBlock from '@massdriver/ui/CodeBlock';\nimport TextField from '@massdriver/ui/TextField';\nimport InputAdornment from '@massdriver/ui/InputAdornment';\nimport IconButton from '@massdriver/ui/IconButton';\nimport Tooltip from '@massdriver/ui/Tooltip';\nimport SearchIcon from '@massdriver/ui/icons/SearchIcon';\nimport ChevronLeftIcon from '@massdriver/ui/icons/ChevronLeftIcon';\nimport ChevronRightIcon from '@massdriver/ui/icons/ChevronRightIcon';\nimport ExpandCircleDownOutlinedIcon from '@massdriver/ui/icons/ExpandCircleDownOutlinedIcon';\nimport OpenInNewIcon from '@massdriver/ui/icons/OpenInNewIcon';\nimport AlertBanner from '@massdriver/ui/AlertBanner';\nimport stylin from '@massdriver/ui/stylin';\nimport { useApi } from '@backstage/frontend-plugin-api';\nimport {\n instanceTabUrl,\n repoVersionOverviewUrl,\n} from '@massdriver/backstage-plugin-common';\nimport { massdriverApiRef } from '../../../../api';\nimport { TabState } from '../TabState';\nimport AlarmCard from '../AlarmCard';\nimport { OVERVIEW_QUERY } from '../queries';\nimport { useInstanceApiQuery } from '../useInstanceApiQuery';\nimport {\n filterAndPaginateProperties,\n formatAttributeValue,\n formatPropertyValue,\n getFiringAlerts,\n getReleaseChannel,\n parseMap,\n} from '../helpers';\nimport type { Alarm, Bundle, InstanceProperty } from '../types';\nimport { outlinedInputClasses } from '../../../../theme/muiClasses';\n\ninterface OverviewInstance {\n id: string;\n name?: string | null;\n status?: string | null;\n version?: string | null;\n resolvedVersion?: string | null;\n availableUpgrade?: string | null;\n effectiveAttributes?: unknown;\n bundle?: Bundle | null;\n properties?: (InstanceProperty | null)[] | null;\n alarms?: { items?: (Alarm | null)[] | null } | null;\n}\n\n/** Read-only Overview tab: firing alerts, identifiers, version, attributes, properties. */\nexport const OverviewTab = ({ instanceId }: { instanceId: string | null }) => {\n const api = useApi(massdriverApiRef);\n const { value, loading, error } = useInstanceApiQuery<{\n instance: OverviewInstance | null;\n }>(OVERVIEW_QUERY, instanceId);\n const instance = value?.instance;\n\n // Editing the version is a mutation — link out to the instance's overview in\n // Massdriver (where the change-version dialog lives). The bundle links to its\n // version overview in the repository.\n const changeVersionUrl =\n instanceId && api.appUrl\n ? instanceTabUrl(api.appUrl, api.organizationId, instanceId, 'overview')\n : '';\n const repoUrl =\n instance?.bundle?.name && instance?.resolvedVersion && api.appUrl\n ? repoVersionOverviewUrl(\n api.appUrl,\n api.organizationId,\n instance.bundle.name,\n instance.resolvedVersion,\n )\n : '';\n\n const [search, setSearch] = useState('');\n const [page, setPage] = useState(1);\n\n const firingAlerts = useMemo(\n () => getFiringAlerts(instance?.alarms?.items),\n [instance?.alarms],\n );\n const releaseChannel = getReleaseChannel(\n instance?.version,\n instance?.resolvedVersion,\n );\n const properties = (instance?.properties ?? []).filter(\n Boolean,\n ) as InstanceProperty[];\n const propertiesView = useMemo(\n () => filterAndPaginateProperties(properties, { search, page }),\n [properties, search, page],\n );\n\n return (\n <TabState loading={loading} error={error}>\n {instance ? (\n <Root>\n {firingAlerts.length ? (\n <Section>\n <Header>Firing Alerts</Header>\n <AlertList>\n {firingAlerts.map(alarm => (\n <AlarmCard key={alarm.id} alarm={alarm} />\n ))}\n </AlertList>\n </Section>\n ) : null}\n\n <Section>\n <Header>Identifiers</Header>\n <IdGrid>\n <Field>\n <Label>Instance ID</Label>\n <ValueRow>\n <Value title={instance.id}>{instance.id}</Value>\n <CopyButton text={instance.id} tooltip=\"Copy instance ID\" />\n </ValueRow>\n </Field>\n <Field>\n <Label>Name</Label>\n <ValueRow>\n <Value title={instance.name ?? '—'}>\n {instance.name ?? '—'}\n </Value>\n {instance.name ? (\n <CopyButton text={instance.name} tooltip=\"Copy name\" />\n ) : null}\n </ValueRow>\n </Field>\n </IdGrid>\n {instance.bundle?.description ? (\n <Field>\n <Label>Description</Label>\n <Description>{instance.bundle.description}</Description>\n </Field>\n ) : null}\n </Section>\n\n <Section>\n <SectionHeaderRow>\n <Header>Version</Header>\n {changeVersionUrl && instance.status !== 'EXTERNAL' ? (\n <Tooltip\n arrow\n title=\"Change version in Massdriver\"\n placement=\"top\"\n >\n <HeaderLink\n href={changeVersionUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"Change version in Massdriver\"\n >\n <LinkIcon />\n </HeaderLink>\n </Tooltip>\n ) : null}\n </SectionHeaderRow>\n <Card>\n {instance.status === 'EXTERNAL' ? (\n <ExternalNote>\n You cannot edit the version of a remote reference instance.\n </ExternalNote>\n ) : (\n <>\n {instance.bundle?.name ? (\n <RowLine>\n <RowLabel>Bundle</RowLabel>\n <RowValueGroup>\n <RowValue>{instance.bundle.name}</RowValue>\n {repoUrl ? (\n <Tooltip\n arrow\n title=\"View bundle in repository\"\n placement=\"top\"\n >\n <RepoLink\n href={repoUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"View bundle in repository\"\n >\n <LinkIcon />\n </RepoLink>\n </Tooltip>\n ) : null}\n </RowValueGroup>\n </RowLine>\n ) : null}\n <RowLine>\n <RowLabel>Version</RowLabel>\n <RowValueGroup>\n <RowValue>\n {instance.resolvedVersion\n ? `v${instance.resolvedVersion}`\n : '—'}\n </RowValue>\n {instance.availableUpgrade ? (\n <Tooltip\n arrow\n title={`Upgrade available: v${instance.availableUpgrade}`}\n >\n <UpgradeBadge>\n <UpArrow />\n </UpgradeBadge>\n </Tooltip>\n ) : null}\n </RowValueGroup>\n </RowLine>\n {releaseChannel ? (\n <RowLine>\n <RowLabel>Release channel</RowLabel>\n <RowValue>{releaseChannel.channel}</RowValue>\n </RowLine>\n ) : null}\n </>\n )}\n </Card>\n </Section>\n\n <AttributesSection attributes={instance.effectiveAttributes} />\n\n <PropertiesSection\n status={instance.status}\n hasAnyProperties={properties.length > 0}\n view={propertiesView}\n search={search}\n onSearchChange={value2 => {\n setSearch(value2);\n setPage(1);\n }}\n onPrevPage={() => setPage(current => Math.max(1, current - 1))}\n onNextPage={() =>\n setPage(current =>\n Math.min(propertiesView.totalPages, current + 1),\n )\n }\n />\n </Root>\n ) : null}\n </TabState>\n );\n};\n\nexport default OverviewTab;\n\nconst AttributesSection = ({ attributes }: { attributes: unknown }) => {\n const parsed = parseMap(attributes);\n const entries = parsed ? Object.entries(parsed) : [];\n return (\n <Section>\n <Header>Instance attributes</Header>\n <Card>\n {entries.length === 0 ? (\n <EmptyNote>No effective attributes.</EmptyNote>\n ) : (\n entries.map(([key, value]) => (\n <RowLine key={key}>\n <MonoLabel title={key}>{key}</MonoLabel>\n <MonoValue title={formatAttributeValue(value)}>\n {formatAttributeValue(value)}\n </MonoValue>\n </RowLine>\n ))\n )}\n </Card>\n </Section>\n );\n};\n\nconst PropertiesSection = ({\n status,\n hasAnyProperties,\n view,\n search,\n onSearchChange,\n onPrevPage,\n onNextPage,\n}: {\n status?: string | null;\n hasAnyProperties: boolean;\n view: { items: InstanceProperty[]; totalPages: number; page: number };\n search: string;\n onSearchChange: (value: string) => void;\n onPrevPage: () => void;\n onNextPage: () => void;\n}) => {\n const isInitialized = status === 'INITIALIZED';\n const isEmpty = view.items.length === 0;\n\n return (\n <Section>\n <Header>Resource properties</Header>\n {status === 'EXTERNAL' ? (\n <AlertBanner\n severity=\"info\"\n description=\"These are properties of the remote reference resources.\"\n />\n ) : null}\n {isInitialized ? (\n <EmptyNote>\n You must provision this instance to see its created properties.\n </EmptyNote>\n ) : !hasAnyProperties ? (\n <EmptyNote>\n This instance has no properties because it does not produce any\n resources.\n </EmptyNote>\n ) : (\n <Card>\n <SearchField\n fullWidth\n size=\"small\"\n placeholder=\"Search properties…\"\n value={search}\n onChange={(event: any) => onSearchChange(event.target.value)}\n InputProps={{\n startAdornment: (\n <InputAdornment position=\"start\">\n <SearchAdornmentIcon />\n </InputAdornment>\n ),\n }}\n />\n {isEmpty ? (\n <EmptyNote>No properties match your search.</EmptyNote>\n ) : (\n <PropList>\n {view.items.map((property, index) => (\n <PropertyItem\n key={`${property.name}-${property.path ?? index}`}\n name={property.name}\n path={property.path}\n value={property.value}\n isLast={index === view.items.length - 1}\n />\n ))}\n </PropList>\n )}\n {view.totalPages > 1 ? (\n <Pagination>\n <PageInfo>\n Page {view.page} of {view.totalPages}\n </PageInfo>\n <PaginationButtons>\n <PageButton\n size=\"small\"\n onClick={onPrevPage}\n disabled={view.page === 1}\n aria-label=\"Previous page\"\n >\n <ChevronLeftIcon fontSize=\"small\" />\n </PageButton>\n <PageButton\n size=\"small\"\n onClick={onNextPage}\n disabled={view.page === view.totalPages}\n aria-label=\"Next page\"\n >\n <ChevronRightIcon fontSize=\"small\" />\n </PageButton>\n </PaginationButtons>\n </Pagination>\n ) : null}\n </Card>\n )}\n </Section>\n );\n};\n\nconst PropertyItem = ({\n name,\n path,\n value,\n isLast,\n}: {\n name: string;\n path?: string | null;\n value: unknown;\n isLast: boolean;\n}) => {\n const [expanded, setExpanded] = useState(false);\n const formatted = formatPropertyValue(value);\n const isMultiline = formatted.includes('\\n') || formatted.length > 160;\n\n return (\n <PropContainer isLast={isLast}>\n <PropHeader>\n <PropContent>\n <PropName title={name}>{name}</PropName>\n {!expanded ? (\n <PropValueText title={formatted}>{formatted}</PropValueText>\n ) : null}\n {path ? <PropPath title={path}>{path}</PropPath> : null}\n </PropContent>\n <PropActions>\n {value != null ? (\n <CopyButton text={formatted} tooltip=\"Copy value\" />\n ) : null}\n {isMultiline ? (\n <ExpandToggle\n expanded={expanded}\n onClick={() => setExpanded(prev => !prev)}\n size=\"small\"\n aria-label={expanded ? 'Collapse value' : 'Expand value'}\n >\n <ExpandIcon fontSize=\"inherit\" />\n </ExpandToggle>\n ) : null}\n </PropActions>\n </PropHeader>\n {expanded && isMultiline ? (\n <PropExpanded>\n <CodeBlock>{formatted}</CodeBlock>\n </PropExpanded>\n ) : null}\n </PropContainer>\n );\n};\n\nconst Root = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n flexDirection: 'column',\n padding: theme.spacing(1),\n}));\n\nconst Section = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(2),\n marginBottom: theme.spacing(4),\n}));\n\nconst Header = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(14),\n fontWeight: theme.typography.fontWeightBold,\n color: theme.palette.text.primary,\n}));\n\nconst SectionHeaderRow = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(1),\n}));\n\nconst HeaderLink = stylin('a')(({ theme }: { theme: any }) => ({\n display: 'inline-flex',\n alignItems: 'center',\n color: theme.palette.text.secondary,\n '&:hover': { color: theme.palette.primary.main },\n}));\n\nconst RepoLink = stylin('a')(({ theme }: { theme: any }) => ({\n display: 'inline-flex',\n alignItems: 'center',\n color: theme.palette.text.secondary,\n '&:hover': { color: theme.palette.primary.main },\n}));\n\nconst LinkIcon = stylin(OpenInNewIcon)({\n fontSize: 15,\n});\n\nconst AlertList = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(2),\n}));\n\nconst IdGrid = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'grid',\n gridTemplateColumns: '1fr',\n [theme.breakpoints.up('sm')]: {\n gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',\n },\n gap: theme.spacing(2),\n}));\n\nconst Field = stylin(Box)(({ theme }: { theme: any }) => ({\n border: `1px solid ${theme.palette.divider}`,\n borderRadius: 1,\n padding: theme.spacing(1),\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(0.5),\n minWidth: 0,\n}));\n\nconst Label = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(11),\n fontWeight: 600,\n textTransform: 'uppercase',\n letterSpacing: '0.5px',\n color: theme.palette.text.secondary,\n}));\n\nconst ValueRow = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(0.5),\n minWidth: 0,\n}));\n\nconst Value = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(12),\n color: theme.palette.text.primary,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n flex: 1,\n minWidth: 0,\n}));\n\nconst Description = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(12),\n color: theme.palette.text.primary,\n whiteSpace: 'pre-wrap',\n}));\n\nconst Card = stylin(Box)(({ theme }: { theme: any }) => ({\n border: `1px solid ${theme.palette.divider}`,\n borderRadius: 1,\n padding: theme.spacing(1),\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(0.5),\n overflow: 'hidden',\n}));\n\nconst RowLine = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(1),\n flexWrap: 'wrap',\n minWidth: 0,\n}));\n\nconst RowValueGroup = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(0.5),\n}));\n\nconst RowLabel = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(11),\n color: theme.palette.text.secondary,\n minWidth: 110,\n}));\n\nconst RowValue = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(12),\n color: theme.palette.text.primary,\n fontFamily: theme.typography.fontFamilyMono,\n}));\n\nconst MonoLabel = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(11),\n color: theme.palette.text.secondary,\n minWidth: 110,\n fontFamily: theme.typography.fontFamilyMono,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst MonoValue = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(12),\n color: theme.palette.text.primary,\n fontFamily: theme.typography.fontFamilyMono,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n flex: 1,\n minWidth: 0,\n}));\n\nconst ExternalNote = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(12),\n color: theme.palette.text.secondary,\n fontStyle: 'italic',\n}));\n\nconst UpgradeBadge = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 16,\n height: 16,\n color: theme.palette.success.main,\n}));\n\nconst UpArrow = stylin(ExpandCircleDownOutlinedIcon)({\n width: 16,\n height: 16,\n transform: 'rotate(180deg)',\n});\n\nconst EmptyNote = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(12),\n color: theme.palette.text.secondary,\n fontStyle: 'italic',\n}));\n\nconst SearchField = stylin(TextField)(({ theme }: { theme: any }) => ({\n [`.${outlinedInputClasses.root}`]: {\n fontSize: theme.typography.pxToRem(12),\n borderRadius: 0,\n '& fieldset': {\n border: 'none',\n borderBottom: `1px solid ${theme.palette.divider}`,\n },\n '&:hover fieldset': { borderBottom: `1px solid ${theme.palette.divider}` },\n '&.Mui-focused fieldset': {\n borderBottom: `1px solid ${theme.palette.divider}`,\n },\n },\n [`.${outlinedInputClasses.input}`]: {\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n paddingRight: theme.spacing(1.5),\n paddingLeft: 0,\n },\n}));\n\nconst SearchAdornmentIcon = stylin(SearchIcon)(({ theme }: { theme: any }) => ({\n fontSize: 18,\n color: theme.palette.text.disabled,\n}));\n\nconst PropList = stylin(Box)({\n display: 'flex',\n flexDirection: 'column',\n});\n\nconst Pagination = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: theme.spacing(1, 1.5),\n borderTop: `1px solid ${theme.palette.divider}`,\n backgroundColor: theme.palette.action.hover,\n}));\n\nconst PageInfo = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(11),\n color: theme.palette.text.secondary,\n}));\n\nconst PaginationButtons = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(0.5),\n}));\n\nconst PageButton = stylin(IconButton)(({ theme }: { theme: any }) => ({\n padding: theme.spacing(0.25),\n border: `1px solid ${theme.palette.divider}`,\n borderRadius: 0.5,\n color: theme.palette.text.secondary,\n}));\n\nconst PropContainer = stylin(Box, ['isLast'])(\n ({ theme, isLast }: { theme: any; isLast: boolean }) => ({\n borderBottom: isLast ? 'none' : `1px solid ${theme.palette.divider}`,\n }),\n);\n\nconst PropHeader = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(1),\n padding: theme.spacing(1, 1, 1, 1.5),\n minHeight: 48,\n}));\n\nconst PropContent = stylin(Box)({\n flex: 1,\n minWidth: 0,\n overflow: 'hidden',\n});\n\nconst PropName = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(12),\n fontWeight: 500,\n lineHeight: 1.4,\n color: theme.palette.text.primary,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst PropValueText = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(11),\n lineHeight: 1.4,\n marginTop: theme.spacing(0.25),\n color: theme.palette.text.secondary,\n fontFamily: theme.typography.fontFamilyMono,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst PropPath = stylin(Typography)(({ theme }: { theme: any }) => ({\n fontSize: theme.typography.pxToRem(10),\n lineHeight: 1.4,\n color: theme.palette.text.disabled,\n fontFamily: theme.typography.fontFamilyMono,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst PropActions = stylin(Box)({\n display: 'flex',\n alignItems: 'center',\n flexShrink: 0,\n});\n\nconst ExpandToggle = stylin(IconButton, ['expanded'])(\n ({ theme, expanded }: { theme: any; expanded: boolean }) => ({\n padding: theme.spacing(0.75),\n color: theme.palette.text.disabled,\n transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)',\n transition: 'transform 150ms ease',\n }),\n);\n\nconst ExpandIcon = stylin(ExpandCircleDownOutlinedIcon)({\n width: 18,\n height: 18,\n});\n\nconst PropExpanded = stylin(Box)(({ theme }: { theme: any }) => ({\n padding: theme.spacing(0, 1, 1, 1.5),\n}));\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDO,MAAM,WAAA,GAAc,CAAC,EAAE,UAAA,EAAW,KAAqC;AAC5E,EAAA,MAAM,GAAA,GAAM,OAAO,gBAAgB,CAAA;AACnC,EAAA,MAAM,EAAE,KAAA,EAAO,OAAA,EAAS,OAAM,GAAI,mBAAA,CAE/B,gBAAgB,UAAU,CAAA;AAC7B,EAAA,MAAM,WAAW,KAAA,EAAO,QAAA;AAKxB,EAAA,MAAM,gBAAA,GACJ,UAAA,IAAc,GAAA,CAAI,MAAA,GACd,cAAA,CAAe,GAAA,CAAI,MAAA,EAAQ,GAAA,CAAI,cAAA,EAAgB,UAAA,EAAY,UAAU,CAAA,GAC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,GAAG,CAAA,CAAE;AAAA,EAC9B,OAAA,EAAS,MAAA;AAAA,EACT,UAAA,EAAY,QAAA;AAAA,EACZ,UAAA,EAAY;AACd,CAAC,CAAA;AAED,MAAM,YAAA,GAAe,MAAA,CAAO,UAAA,EAAY,CAAC,UAAU,CAAC,CAAA;AAAA,EAClD,CAAC,EAAE,KAAA,EAAO,QAAA,EAAS,MAA0C;AAAA,IAC3D,OAAA,EAAS,KAAA,CAAM,OAAA,CAAQ,IAAI,CAAA;AAAA,IAC3B,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,QAAA;AAAA,IAC1B,SAAA,EAAW,WAAW,gBAAA,GAAmB,cAAA;AAAA,IACzC,UAAA,EAAY;AAAA,GACd;AACF,CAAA;AAEA,MAAM,UAAA,GAAa,MAAA,CAAO,4BAA4B,CAAA,CAAE;AAAA,EACtD,KAAA,EAAO,EAAA;AAAA,EACP,MAAA,EAAQ;AACV,CAAC,CAAA;AAED,MAAM,eAAe,MAAA,CAAO,GAAG,EAAE,CAAC,EAAE,OAAM,MAAuB;AAAA,EAC/D,SAAS,KAAA,CAAM,OAAA,CAAQ,CAAA,EAAG,CAAA,EAAG,GAAG,GAAG;AACrC,CAAA,CAAE,CAAA;;;;"}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useMemo, useState, Fragment as Fragment$1 } from 'react';
|
|
3
|
+
import { useApi } from '@backstage/frontend-plugin-api';
|
|
4
|
+
import { resourceUrl, parseInstanceId, parseEnvironmentId, composeEnvironmentId } from '@massdriver/backstage-plugin-common';
|
|
5
|
+
import Box from '@massdriver/ui/Box';
|
|
6
|
+
import Typography from '@massdriver/ui/Typography';
|
|
7
|
+
import Tooltip from '@massdriver/ui/Tooltip';
|
|
8
|
+
import Collapse from '@massdriver/ui/Collapse';
|
|
9
|
+
import CodeBlock from '@massdriver/ui/CodeBlock';
|
|
10
|
+
import CopyButton from '@massdriver/ui/CopyButton';
|
|
11
|
+
import Chip from '@massdriver/ui/Chip';
|
|
12
|
+
import IconButton from '@massdriver/ui/IconButton';
|
|
13
|
+
import HelpOutlineIcon from '@massdriver/ui/icons/HelpOutlineIcon';
|
|
14
|
+
import ExpandMoreIcon from '@massdriver/ui/icons/ExpandMoreIcon';
|
|
15
|
+
import ExpandLessIcon from '@massdriver/ui/icons/ExpandLessIcon';
|
|
16
|
+
import DownloadIcon from '@massdriver/ui/icons/DownloadIcon';
|
|
17
|
+
import stylin from '@massdriver/ui/stylin';
|
|
18
|
+
import { massdriverApiRef } from '../../../../api.esm.js';
|
|
19
|
+
import { RouterLinkAdapter } from '../../../../components/RouterLinkAdapter.esm.js';
|
|
20
|
+
import { internalRoutes } from '../../../../internalRoutes.esm.js';
|
|
21
|
+
import { useLiveRelayQuery } from '../../realtime/useLiveRelayQuery.esm.js';
|
|
22
|
+
import { TabState } from '../TabState.esm.js';
|
|
23
|
+
import { RESOURCES_QUERY, RESOURCE_CONSUMERS_QUERY } from '../queries.esm.js';
|
|
24
|
+
import { useInstanceApiQuery } from '../useInstanceApiQuery.esm.js';
|
|
25
|
+
import { buildResourceRows, RESOURCE_STATE, formatPayload, formatGrantConditions } from '../helpers.esm.js';
|
|
26
|
+
import { chipClasses } from '@mui/material/Chip';
|
|
27
|
+
import '@mui/material/Drawer';
|
|
28
|
+
import '@mui/material/OutlinedInput';
|
|
29
|
+
import '@mui/material/Select';
|
|
30
|
+
import '@mui/material/ToggleButton';
|
|
31
|
+
|
|
32
|
+
const ResourcesTab = ({ instanceId }) => {
|
|
33
|
+
const { value, loading, error } = useInstanceApiQuery(RESOURCES_QUERY, instanceId);
|
|
34
|
+
const rows = useMemo(
|
|
35
|
+
() => buildResourceRows(
|
|
36
|
+
value?.instance?.bundle?.resources,
|
|
37
|
+
value?.instance?.resources
|
|
38
|
+
),
|
|
39
|
+
[value?.instance]
|
|
40
|
+
);
|
|
41
|
+
return /* @__PURE__ */ jsx(TabState, { loading, error, children: /* @__PURE__ */ jsx(Root, { children: rows.length === 0 ? /* @__PURE__ */ jsx(EmptyNote, { children: "This instance does not produce any resources." }) : /* @__PURE__ */ jsx(List, { children: rows.map(
|
|
42
|
+
(row) => row.state === RESOURCE_STATE.CREATED ? /* @__PURE__ */ jsx(CreatedResourceCard, { row }, row.field) : /* @__PURE__ */ jsx(UncreatedResourceCard, { row }, row.field)
|
|
43
|
+
) }) }) });
|
|
44
|
+
};
|
|
45
|
+
const instanceHref = (id) => {
|
|
46
|
+
if (!id) return null;
|
|
47
|
+
const { projectId, scopedEnvironmentId, scopedComponentId } = parseInstanceId(id);
|
|
48
|
+
if (!projectId || !scopedEnvironmentId || !scopedComponentId) return null;
|
|
49
|
+
return internalRoutes.instance(
|
|
50
|
+
projectId,
|
|
51
|
+
scopedEnvironmentId,
|
|
52
|
+
scopedComponentId
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
const environmentHref = (id) => {
|
|
56
|
+
if (!id) return null;
|
|
57
|
+
const { projectId, scopedEnvironmentId } = parseEnvironmentId(id);
|
|
58
|
+
if (!projectId || !scopedEnvironmentId) return null;
|
|
59
|
+
return internalRoutes.environment(
|
|
60
|
+
projectId,
|
|
61
|
+
composeEnvironmentId(projectId, scopedEnvironmentId)
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
const CreatedResourceCard = ({ row }) => {
|
|
65
|
+
const api = useApi(massdriverApiRef);
|
|
66
|
+
const [payloadOpen, setPayloadOpen] = useState(false);
|
|
67
|
+
const resource = row.resource;
|
|
68
|
+
const { value: consumersResult, error: consumersError } = useLiveRelayQuery(RESOURCE_CONSUMERS_QUERY, resource?.id ? { id: resource.id } : null);
|
|
69
|
+
const consumers = consumersResult?.resource ?? null;
|
|
70
|
+
const grants = (consumers?.grants?.items ?? []).filter(Boolean);
|
|
71
|
+
const connectionItems = (consumers?.connections?.items ?? []).filter(
|
|
72
|
+
Boolean
|
|
73
|
+
);
|
|
74
|
+
const remoteReferenceItems = (consumers?.remoteReferences?.items ?? []).filter(Boolean);
|
|
75
|
+
const environmentDefaultItems = (consumers?.environmentDefaults?.items ?? []).filter(Boolean);
|
|
76
|
+
const payloadString = formatPayload(resource?.payload);
|
|
77
|
+
const resourceName = resource?.name || "\u2014";
|
|
78
|
+
const resHref = resource?.id && api.appUrl ? resourceUrl(api.appUrl, api.organizationId, resource.id) : "";
|
|
79
|
+
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
80
|
+
/* @__PURE__ */ jsxs(HeaderRow, { children: [
|
|
81
|
+
/* @__PURE__ */ jsxs(TitleRow, { children: [
|
|
82
|
+
/* @__PURE__ */ jsx(CardTitle, { title: row.field, children: row.field }),
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
Tooltip,
|
|
85
|
+
{
|
|
86
|
+
placement: "top",
|
|
87
|
+
arrow: true,
|
|
88
|
+
title: /* @__PURE__ */ jsxs(TooltipBody, { children: [
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
90
|
+
/* @__PURE__ */ jsx("strong", { children: "Type:" }),
|
|
91
|
+
" The resource type produced by this instance output."
|
|
92
|
+
] }),
|
|
93
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
94
|
+
/* @__PURE__ */ jsx("strong", { children: "Resource:" }),
|
|
95
|
+
" The name of the produced resource."
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
98
|
+
/* @__PURE__ */ jsx("strong", { children: "Connections / Remote refs / Env defaults:" }),
|
|
99
|
+
" ",
|
|
100
|
+
"Other instances or environments that consume this resource."
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
103
|
+
/* @__PURE__ */ jsx("strong", { children: "Resource data:" }),
|
|
104
|
+
" The redacted payload."
|
|
105
|
+
] })
|
|
106
|
+
] }),
|
|
107
|
+
children: /* @__PURE__ */ jsx(HelpIcon, {})
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ jsxs(HeaderActions, { children: [
|
|
112
|
+
/* @__PURE__ */ jsx(ResourceGrantsChip, { grants }),
|
|
113
|
+
resource?.id ? /* @__PURE__ */ jsx(
|
|
114
|
+
CopyButton,
|
|
115
|
+
{
|
|
116
|
+
text: resource.id,
|
|
117
|
+
tooltip: "Copy resource ID",
|
|
118
|
+
size: "small"
|
|
119
|
+
}
|
|
120
|
+
) : null,
|
|
121
|
+
/* @__PURE__ */ jsx(
|
|
122
|
+
Tooltip,
|
|
123
|
+
{
|
|
124
|
+
title: "This view is read-only. Open in Massdriver to download resource data.",
|
|
125
|
+
placement: "top",
|
|
126
|
+
children: /* @__PURE__ */ jsx(DownloadWrap, { children: /* @__PURE__ */ jsx(
|
|
127
|
+
IconButton,
|
|
128
|
+
{
|
|
129
|
+
size: "small",
|
|
130
|
+
disabled: true,
|
|
131
|
+
"aria-label": "Download resource data",
|
|
132
|
+
children: /* @__PURE__ */ jsx(DownloadIcon, { fontSize: "small" })
|
|
133
|
+
}
|
|
134
|
+
) })
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] })
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ jsxs(DetailColumn, { children: [
|
|
140
|
+
/* @__PURE__ */ jsxs(DetailRow, { children: [
|
|
141
|
+
/* @__PURE__ */ jsx(Label, { children: "Type:" }),
|
|
142
|
+
/* @__PURE__ */ jsx(Detail, { title: row.resourceType?.name || "\u2014", children: row.resourceType?.name || "\u2014" })
|
|
143
|
+
] }),
|
|
144
|
+
/* @__PURE__ */ jsxs(DetailRow, { children: [
|
|
145
|
+
/* @__PURE__ */ jsx(Label, { children: "Resource:" }),
|
|
146
|
+
resHref ? /* @__PURE__ */ jsx(
|
|
147
|
+
ResourceLink,
|
|
148
|
+
{
|
|
149
|
+
href: resHref,
|
|
150
|
+
target: "_blank",
|
|
151
|
+
rel: "noopener noreferrer",
|
|
152
|
+
title: resourceName,
|
|
153
|
+
children: resourceName
|
|
154
|
+
}
|
|
155
|
+
) : /* @__PURE__ */ jsx(Detail, { title: resourceName, children: resourceName })
|
|
156
|
+
] }),
|
|
157
|
+
connectionItems.length > 0 ? /* @__PURE__ */ jsxs(DetailRow, { children: [
|
|
158
|
+
/* @__PURE__ */ jsx(Label, { children: "Connections:" }),
|
|
159
|
+
/* @__PURE__ */ jsx(ListValue, { children: /* @__PURE__ */ jsx(
|
|
160
|
+
ConsumerList,
|
|
161
|
+
{
|
|
162
|
+
items: connectionItems.map((connection) => ({
|
|
163
|
+
key: connection.id,
|
|
164
|
+
label: connection.toInstance?.name ?? "instance",
|
|
165
|
+
href: instanceHref(connection.toInstance?.id)
|
|
166
|
+
}))
|
|
167
|
+
}
|
|
168
|
+
) })
|
|
169
|
+
] }) : null,
|
|
170
|
+
remoteReferenceItems.length > 0 ? /* @__PURE__ */ jsxs(DetailRow, { children: [
|
|
171
|
+
/* @__PURE__ */ jsx(Label, { children: "Remote refs:" }),
|
|
172
|
+
/* @__PURE__ */ jsx(ListValue, { children: /* @__PURE__ */ jsx(
|
|
173
|
+
ConsumerList,
|
|
174
|
+
{
|
|
175
|
+
items: remoteReferenceItems.map((reference) => ({
|
|
176
|
+
key: reference.id,
|
|
177
|
+
label: reference.instance?.name ?? "instance",
|
|
178
|
+
href: instanceHref(reference.instance?.id)
|
|
179
|
+
}))
|
|
180
|
+
}
|
|
181
|
+
) })
|
|
182
|
+
] }) : null,
|
|
183
|
+
environmentDefaultItems.length > 0 ? /* @__PURE__ */ jsxs(DetailRow, { children: [
|
|
184
|
+
/* @__PURE__ */ jsx(Label, { children: "Env defaults:" }),
|
|
185
|
+
/* @__PURE__ */ jsx(ListValue, { children: /* @__PURE__ */ jsx(
|
|
186
|
+
ConsumerList,
|
|
187
|
+
{
|
|
188
|
+
items: environmentDefaultItems.map((envDefault) => {
|
|
189
|
+
const projectName = envDefault.environment?.project?.name;
|
|
190
|
+
const envName = envDefault.environment?.name ?? "environment";
|
|
191
|
+
return {
|
|
192
|
+
key: envDefault.id,
|
|
193
|
+
label: projectName ? `${projectName} / ${envName}` : envName,
|
|
194
|
+
href: environmentHref(envDefault.environment?.id)
|
|
195
|
+
};
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
) })
|
|
199
|
+
] }) : null,
|
|
200
|
+
consumersError ? /* @__PURE__ */ jsxs(DetailRow, { children: [
|
|
201
|
+
/* @__PURE__ */ jsx(Label, { children: "Consumers:" }),
|
|
202
|
+
/* @__PURE__ */ jsx(Detail, { title: consumersError.message, children: "Couldn't load consumers" })
|
|
203
|
+
] }) : null
|
|
204
|
+
] }),
|
|
205
|
+
/* @__PURE__ */ jsxs(PayloadSection, { children: [
|
|
206
|
+
/* @__PURE__ */ jsxs(
|
|
207
|
+
PayloadToggle,
|
|
208
|
+
{
|
|
209
|
+
type: "button",
|
|
210
|
+
onClick: () => setPayloadOpen((open) => !open),
|
|
211
|
+
"aria-expanded": payloadOpen,
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ jsx(PayloadToggleLabel, { children: "Resource data" }),
|
|
214
|
+
payloadOpen ? /* @__PURE__ */ jsx(ExpandLessIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx(ExpandMoreIcon, { fontSize: "small" })
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
/* @__PURE__ */ jsx(Collapse, { in: payloadOpen, unmountOnExit: true, children: /* @__PURE__ */ jsx(PayloadInner, { children: payloadString ? /* @__PURE__ */ jsx(PayloadCodeBlock, { children: payloadString }) : /* @__PURE__ */ jsx(EmptyPayload, { children: "No payload available." }) }) })
|
|
219
|
+
] })
|
|
220
|
+
] });
|
|
221
|
+
};
|
|
222
|
+
const UncreatedResourceCard = ({ row }) => /* @__PURE__ */ jsxs(Card, { pending: true, children: [
|
|
223
|
+
/* @__PURE__ */ jsx(HeaderRow, { children: /* @__PURE__ */ jsxs(TitleRow, { children: [
|
|
224
|
+
/* @__PURE__ */ jsx(CardTitle, { title: row.field, children: row.field }),
|
|
225
|
+
/* @__PURE__ */ jsx(
|
|
226
|
+
Tooltip,
|
|
227
|
+
{
|
|
228
|
+
placement: "top",
|
|
229
|
+
arrow: true,
|
|
230
|
+
title: /* @__PURE__ */ jsx(TooltipBody, { children: /* @__PURE__ */ jsx("div", { children: "This resource has not been produced yet. Once the instance is deployed successfully, it will be created and details will appear here." }) }),
|
|
231
|
+
children: /* @__PURE__ */ jsx(HelpIcon, {})
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
] }) }),
|
|
235
|
+
/* @__PURE__ */ jsx(DetailColumn, { children: /* @__PURE__ */ jsxs(DetailRow, { children: [
|
|
236
|
+
/* @__PURE__ */ jsx(Label, { children: "Type:" }),
|
|
237
|
+
/* @__PURE__ */ jsx(Detail, { title: row.resourceType?.name || "\u2014", children: row.resourceType?.name || "\u2014" })
|
|
238
|
+
] }) })
|
|
239
|
+
] });
|
|
240
|
+
const ConsumerList = ({
|
|
241
|
+
items
|
|
242
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
243
|
+
index > 0 ? /* @__PURE__ */ jsx(Comma, { children: ", " }) : null,
|
|
244
|
+
item.href ? /* @__PURE__ */ jsx(ConsumerAnchor, { href: item.href, title: item.label, children: item.label }) : /* @__PURE__ */ jsx(ConsumerText, { title: item.label, children: item.label })
|
|
245
|
+
] }, item.key)) });
|
|
246
|
+
const ResourceGrantsChip = ({ grants }) => {
|
|
247
|
+
if (!grants || grants.length === 0) return null;
|
|
248
|
+
return /* @__PURE__ */ jsx(
|
|
249
|
+
Tooltip,
|
|
250
|
+
{
|
|
251
|
+
placement: "top",
|
|
252
|
+
arrow: true,
|
|
253
|
+
title: /* @__PURE__ */ jsxs(TooltipBody, { children: [
|
|
254
|
+
/* @__PURE__ */ jsxs(TooltipTitle, { children: [
|
|
255
|
+
"Shared with ",
|
|
256
|
+
grants.length,
|
|
257
|
+
" grant",
|
|
258
|
+
grants.length === 1 ? "" : "s"
|
|
259
|
+
] }),
|
|
260
|
+
grants.map((grant) => /* @__PURE__ */ jsxs(GrantRow, { children: [
|
|
261
|
+
/* @__PURE__ */ jsx(GrantAction, { children: grant.action }),
|
|
262
|
+
/* @__PURE__ */ jsx(GrantConditions, { children: formatGrantConditions(grant.recipientConditions) })
|
|
263
|
+
] }, grant.id))
|
|
264
|
+
] }),
|
|
265
|
+
children: /* @__PURE__ */ jsx(SharedChip, { label: "Shared", size: "small", color: "info", variant: "outlined" })
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
};
|
|
269
|
+
const Root = stylin(Box)(({ theme }) => ({
|
|
270
|
+
display: "flex",
|
|
271
|
+
flexDirection: "column",
|
|
272
|
+
gap: theme.spacing(4),
|
|
273
|
+
padding: theme.spacing(1)
|
|
274
|
+
}));
|
|
275
|
+
const List = stylin(Box)(({ theme }) => ({
|
|
276
|
+
display: "flex",
|
|
277
|
+
flexDirection: "column",
|
|
278
|
+
gap: theme.spacing(2)
|
|
279
|
+
}));
|
|
280
|
+
const EmptyNote = stylin(Typography)(({ theme }) => ({
|
|
281
|
+
fontSize: theme.typography.pxToRem(12),
|
|
282
|
+
color: theme.palette.text.secondary,
|
|
283
|
+
fontStyle: "italic"
|
|
284
|
+
}));
|
|
285
|
+
const Card = stylin(Box, ["pending"])(
|
|
286
|
+
({ theme, pending }) => ({
|
|
287
|
+
position: "relative",
|
|
288
|
+
border: `1px ${pending ? "dashed" : "solid"} ${theme.palette.divider}`,
|
|
289
|
+
backgroundColor: theme.palette.background.paper,
|
|
290
|
+
borderRadius: "4px",
|
|
291
|
+
padding: theme.spacing(1, 1.75),
|
|
292
|
+
display: "flex",
|
|
293
|
+
flexDirection: "column",
|
|
294
|
+
gap: theme.spacing(0.5)
|
|
295
|
+
})
|
|
296
|
+
);
|
|
297
|
+
const HeaderRow = stylin(Box)(({ theme }) => ({
|
|
298
|
+
display: "flex",
|
|
299
|
+
alignItems: "center",
|
|
300
|
+
justifyContent: "space-between",
|
|
301
|
+
gap: theme.spacing(0.5),
|
|
302
|
+
minWidth: 0
|
|
303
|
+
}));
|
|
304
|
+
const TitleRow = stylin(Box)({
|
|
305
|
+
display: "flex",
|
|
306
|
+
alignItems: "center",
|
|
307
|
+
gap: "2px",
|
|
308
|
+
minWidth: 0,
|
|
309
|
+
flex: 1
|
|
310
|
+
});
|
|
311
|
+
const CardTitle = stylin(Typography)(({ theme }) => ({
|
|
312
|
+
fontSize: theme.typography.pxToRem(14),
|
|
313
|
+
color: theme.palette.text.primary,
|
|
314
|
+
whiteSpace: "nowrap",
|
|
315
|
+
overflow: "hidden",
|
|
316
|
+
textOverflow: "ellipsis",
|
|
317
|
+
minWidth: 0
|
|
318
|
+
}));
|
|
319
|
+
const HeaderActions = stylin(Box)(({ theme }) => ({
|
|
320
|
+
display: "flex",
|
|
321
|
+
alignItems: "center",
|
|
322
|
+
gap: theme.spacing(0.25),
|
|
323
|
+
flexShrink: 0
|
|
324
|
+
}));
|
|
325
|
+
const DownloadWrap = stylin("span")({
|
|
326
|
+
display: "inline-flex"
|
|
327
|
+
});
|
|
328
|
+
const ResourceLink = stylin("a")(({ theme }) => ({
|
|
329
|
+
fontSize: theme.typography.pxToRem(11),
|
|
330
|
+
color: theme.palette.primary.main,
|
|
331
|
+
textDecoration: "underline",
|
|
332
|
+
whiteSpace: "nowrap",
|
|
333
|
+
overflow: "hidden",
|
|
334
|
+
textOverflow: "ellipsis",
|
|
335
|
+
minWidth: 0,
|
|
336
|
+
"&:hover": { color: theme.palette.primary.dark }
|
|
337
|
+
}));
|
|
338
|
+
const HelpIcon = stylin(HelpOutlineIcon)(({ theme }) => ({
|
|
339
|
+
width: 15,
|
|
340
|
+
height: 15,
|
|
341
|
+
color: theme.palette.text.secondary,
|
|
342
|
+
flexShrink: 0,
|
|
343
|
+
"&:hover": { color: theme.palette.primary.main }
|
|
344
|
+
}));
|
|
345
|
+
const DetailColumn = stylin(Box)(({ theme }) => ({
|
|
346
|
+
display: "flex",
|
|
347
|
+
flexDirection: "column",
|
|
348
|
+
gap: "2px",
|
|
349
|
+
marginLeft: theme.spacing(1.5)
|
|
350
|
+
}));
|
|
351
|
+
const DetailRow = stylin(Box)(({ theme }) => ({
|
|
352
|
+
display: "flex",
|
|
353
|
+
flexDirection: "row",
|
|
354
|
+
alignItems: "center",
|
|
355
|
+
gap: theme.spacing(0.5),
|
|
356
|
+
minWidth: 0
|
|
357
|
+
}));
|
|
358
|
+
const Label = stylin(Typography)(({ theme }) => ({
|
|
359
|
+
fontSize: theme.typography.pxToRem(11),
|
|
360
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
361
|
+
whiteSpace: "nowrap",
|
|
362
|
+
flexShrink: 0
|
|
363
|
+
}));
|
|
364
|
+
const Detail = stylin(Typography)(({ theme }) => ({
|
|
365
|
+
fontSize: theme.typography.pxToRem(11),
|
|
366
|
+
color: theme.palette.text.primary,
|
|
367
|
+
whiteSpace: "nowrap",
|
|
368
|
+
overflow: "hidden",
|
|
369
|
+
textOverflow: "ellipsis"
|
|
370
|
+
}));
|
|
371
|
+
const ListValue = stylin(Box)({
|
|
372
|
+
display: "flex",
|
|
373
|
+
flexDirection: "row",
|
|
374
|
+
flexWrap: "wrap",
|
|
375
|
+
alignItems: "baseline",
|
|
376
|
+
minWidth: 0
|
|
377
|
+
});
|
|
378
|
+
const Comma = stylin("span")(({ theme }) => ({
|
|
379
|
+
fontSize: theme.typography.pxToRem(11),
|
|
380
|
+
color: theme.palette.text.primary,
|
|
381
|
+
marginRight: "2px"
|
|
382
|
+
}));
|
|
383
|
+
const ConsumerAnchor = stylin(RouterLinkAdapter)(
|
|
384
|
+
({ theme }) => ({
|
|
385
|
+
fontSize: theme.typography.pxToRem(11),
|
|
386
|
+
color: theme.palette.primary.main,
|
|
387
|
+
textDecoration: "underline",
|
|
388
|
+
whiteSpace: "nowrap",
|
|
389
|
+
"&:hover": { color: theme.palette.primary.dark }
|
|
390
|
+
})
|
|
391
|
+
);
|
|
392
|
+
const ConsumerText = stylin(Typography)(({ theme }) => ({
|
|
393
|
+
fontSize: theme.typography.pxToRem(11),
|
|
394
|
+
color: theme.palette.text.primary,
|
|
395
|
+
whiteSpace: "nowrap"
|
|
396
|
+
}));
|
|
397
|
+
const TooltipBody = stylin(Box)(({ theme }) => ({
|
|
398
|
+
display: "flex",
|
|
399
|
+
flexDirection: "column",
|
|
400
|
+
gap: "2px",
|
|
401
|
+
fontSize: theme.typography.pxToRem(12),
|
|
402
|
+
lineHeight: 1.4,
|
|
403
|
+
maxWidth: 320
|
|
404
|
+
}));
|
|
405
|
+
const TooltipTitle = stylin(Typography)(({ theme }) => ({
|
|
406
|
+
fontSize: theme.typography.pxToRem(12),
|
|
407
|
+
fontWeight: theme.typography.fontWeightBold
|
|
408
|
+
}));
|
|
409
|
+
const GrantRow = stylin(Box)({
|
|
410
|
+
display: "flex",
|
|
411
|
+
flexDirection: "column",
|
|
412
|
+
gap: "2px"
|
|
413
|
+
});
|
|
414
|
+
const GrantAction = stylin("span")(({ theme }) => ({
|
|
415
|
+
fontFamily: "monospace",
|
|
416
|
+
fontSize: theme.typography.pxToRem(11)
|
|
417
|
+
}));
|
|
418
|
+
const GrantConditions = stylin("span")(({ theme }) => ({
|
|
419
|
+
fontSize: theme.typography.pxToRem(11),
|
|
420
|
+
opacity: 0.9
|
|
421
|
+
}));
|
|
422
|
+
const SharedChip = stylin(Chip)(({ theme }) => ({
|
|
423
|
+
height: 18,
|
|
424
|
+
fontSize: theme.typography.pxToRem(11),
|
|
425
|
+
[`& .${chipClasses.label}`]: { paddingLeft: "6px", paddingRight: "6px" }
|
|
426
|
+
}));
|
|
427
|
+
const PayloadSection = stylin(Box)(({ theme }) => ({
|
|
428
|
+
display: "flex",
|
|
429
|
+
flexDirection: "column",
|
|
430
|
+
marginTop: theme.spacing(1),
|
|
431
|
+
marginLeft: `-${theme.spacing(1.75)}`,
|
|
432
|
+
marginRight: `-${theme.spacing(1.75)}`,
|
|
433
|
+
marginBottom: `-${theme.spacing(1)}`
|
|
434
|
+
}));
|
|
435
|
+
const PayloadToggle = stylin("button")(({ theme }) => ({
|
|
436
|
+
border: "none",
|
|
437
|
+
borderTop: `1px solid ${theme.palette.divider}`,
|
|
438
|
+
background: "transparent",
|
|
439
|
+
padding: theme.spacing(0.75, 1.75),
|
|
440
|
+
display: "flex",
|
|
441
|
+
alignItems: "center",
|
|
442
|
+
justifyContent: "space-between",
|
|
443
|
+
cursor: "pointer",
|
|
444
|
+
color: theme.palette.text.secondary,
|
|
445
|
+
fontFamily: "inherit",
|
|
446
|
+
borderRadius: 0,
|
|
447
|
+
"&:hover": {
|
|
448
|
+
backgroundColor: theme.palette.action.hover,
|
|
449
|
+
color: theme.palette.primary.main
|
|
450
|
+
}
|
|
451
|
+
}));
|
|
452
|
+
const PayloadToggleLabel = stylin(Typography)(({ theme }) => ({
|
|
453
|
+
fontSize: theme.typography.pxToRem(11),
|
|
454
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
455
|
+
color: "inherit"
|
|
456
|
+
}));
|
|
457
|
+
const PayloadInner = stylin(Box)(({ theme }) => ({
|
|
458
|
+
padding: theme.spacing(1.75)
|
|
459
|
+
}));
|
|
460
|
+
const PayloadCodeBlock = stylin(CodeBlock)(({ theme }) => ({
|
|
461
|
+
fontSize: theme.typography.pxToRem(11),
|
|
462
|
+
padding: theme.spacing(1)
|
|
463
|
+
}));
|
|
464
|
+
const EmptyPayload = stylin(Typography)(({ theme }) => ({
|
|
465
|
+
fontSize: theme.typography.pxToRem(11),
|
|
466
|
+
color: theme.palette.text.secondary,
|
|
467
|
+
fontStyle: "italic"
|
|
468
|
+
}));
|
|
469
|
+
|
|
470
|
+
export { ResourcesTab, ResourcesTab as default };
|
|
471
|
+
//# sourceMappingURL=ResourcesTab.esm.js.map
|