@camunda/ccma-saas-frontend 0.4.0 → 0.6.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/README.md +24 -1
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +1 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +1 -1
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +4 -4
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +4 -3
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +6 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +1 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +1 -1
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +2 -2
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +24 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +14 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +22 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +4 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +2 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +29 -11
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +6 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +10 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +8 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +11 -11
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +1 -1
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +26 -5
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +1 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +16 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +5 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +1 -1
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +1 -1
- package/lib/esm/components/c4-external-link/c4-external-link.d.ts +1 -1
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +1 -1
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +15 -53
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +1 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +2 -2
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +1 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +1 -1
- package/lib/esm/components/c4-management-users/c4-management-users.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +2 -2
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +1 -1
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +9 -4
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -1
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.types.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search.d.ts +2 -2
- package/lib/esm/components/c4-search/c4-search.types.d.ts +1 -1
- package/lib/esm/components/c4-search/search.utils.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +2 -2
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +1 -1
- package/lib/esm/components/c4-stat/c4-stat.d.ts +1 -1
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +1 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -1
- package/lib/esm/components/c4-tabs/c4-tabs.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +2 -2
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +1 -1
- package/lib/esm/components/c4-toggle/c4-toggle.d.ts +1 -1
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.d.ts +8 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.js +18 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.types.d.ts +15 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.d.ts +5 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.js +36 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +1 -1
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +3 -3
- package/lib/esm/components/shared-charts/ds-line-chart.js +2 -2
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +29 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +54 -6
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +28 -0
- package/lib/esm/i18n/en/modals/backups.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +15 -3
- package/lib/esm/i18n/en/pages/clusters.json +4 -1
- package/lib/esm/i18n/en/pages/dashboard.json +1 -0
- package/lib/esm/i18n/en/pages/orgmanagement.json +8 -0
- package/lib/esm/icons/c4-icons.d.ts +1 -1
- package/lib/esm/index.d.ts +237 -253
- package/lib/esm/index.js +6 -11
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +1 -1
- package/lib/esm/notifications/c4-console-notifications-handle.d.ts +1 -1
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +1 -1
- package/lib/esm/runtime/c4-console-data-context.d.ts +2 -2
- package/lib/esm/runtime/c4-console-data-store.d.ts +1 -1
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/index.d.ts +40 -0
- package/lib/esm/runtime/index.js +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +39 -15
- package/lib/esm/runtime/to-api-config.d.ts +1 -1
- package/lib/esm/runtime/to-api-domain.d.ts +1 -1
- package/lib/esm/runtime/to-identity-api-base-url.d.ts +1 -1
- package/lib/esm/ui/c4-modal-dialog.js +16 -3
- package/lib/esm/ui/index.d.ts +2 -2
- package/lib/esm/ui/index.js +28 -2
- package/lib/esm/utils/role-labels.d.ts +38 -0
- package/lib/esm/utils/role-labels.js +160 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +66 -4
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +4 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +5 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +4 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +16 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +20 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +134 -63
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +21 -7
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +111 -47
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.d.ts +36 -0
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.js +58 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +20 -3
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +5 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +1 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.d.ts +2 -2
- package/lib/esm/widgets/management/c4-management-app.js +157 -55
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +18 -1
- package/lib/esm/widgets/management/c4-management-page.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +3 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +5 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +98 -93
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +2 -2
- package/lib/esm/widgets/user-details/c4-user-details-page.js +46 -85
- package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +2 -0
- package/package.json +46 -29
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +0 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +0 -43
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.d.ts +0 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +0 -67
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.js +0 -132
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.js +0 -87
- package/lib/esm/components/c4-cluster-overview/applications.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +0 -58
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +0 -38
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +0 -93
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +0 -50
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +0 -42
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +0 -120
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +0 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +0 -40
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +0 -83
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +0 -350
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +0 -122
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +0 -151
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +0 -33
- package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +0 -1
- package/lib/esm/components/c4-page-template/c4-page-template.spec.js +0 -58
- package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +0 -6
- package/lib/esm/components/c4-page-template/c4-page-template.stories.js +0 -73
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +0 -3
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +0 -25
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +0 -12
- package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +0 -1
- package/lib/esm/components/c4-tabs/c4-tabs.spec.js +0 -97
- package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +0 -6
- package/lib/esm/components/c4-tabs/c4-tabs.stories.js +0 -35
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +0 -1
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +0 -47
- package/lib/esm/externalUrls.const.spec.d.ts +0 -1
- package/lib/esm/externalUrls.const.spec.js +0 -102
- package/lib/esm/runtime/c4-console-authz.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +0 -202
- package/lib/esm/runtime/c4-console-data-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-context.spec.js +0 -354
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -122
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -409
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -82
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/camunda-apps.spec.js +0 -90
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +0 -91
- package/lib/esm/setupTests.d.ts +0 -1
- package/lib/esm/setupTests.js +0 -37
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +0 -49
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +0 -471
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +0 -95
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +0 -33
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.js +0 -72
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.js +0 -85
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.js +0 -105
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +0 -226
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +0 -179
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +0 -1255
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +0 -397
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +0 -488
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +0 -34
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +0 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +0 -502
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +0 -226
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +0 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +0 -191
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +0 -35
- package/lib/esm/widgets/management/c4-management-app.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-app.spec.js +0 -509
- package/lib/esm/widgets/management/c4-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-page.spec.js +0 -40
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/management/management-tabs.spec.js +0 -28
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.js +0 -246
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +0 -225
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +0 -1
- package/lib/esm/widgets/use-extend-trial.spec.js +0 -79
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +0 -65
- /package/lib/esm/components/{c4-stackdriver-links/c4-stackdriver-links.types.js → c4-tsuga-links/c4-tsuga-links.types.js} +0 -0
package/README.md
CHANGED
|
@@ -24,7 +24,9 @@ Pushing to `main` will update the storybook available under [cloudflare page](ht
|
|
|
24
24
|
|
|
25
25
|
## Usage
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
The package has two entry points.
|
|
28
|
+
|
|
29
|
+
### `@camunda/ccma-saas-frontend` — components and widgets
|
|
28
30
|
|
|
29
31
|
```tsx
|
|
30
32
|
import { C4WorkflowInformation } from '@camunda/ccma-saas-frontend'
|
|
@@ -38,3 +40,24 @@ return (
|
|
|
38
40
|
/>
|
|
39
41
|
)
|
|
40
42
|
```
|
|
43
|
+
|
|
44
|
+
### `@camunda/ccma-saas-frontend/runtime` — the headless data layer
|
|
45
|
+
|
|
46
|
+
Providers, hooks, SSE and Camunda entity logic, with no presentational
|
|
47
|
+
dependencies — 14 modules instead of 287, and no Carbon, `lucide-react`,
|
|
48
|
+
`recharts` or `react-markdown` in the graph. This is the entry point for
|
|
49
|
+
external consumers that only need the data (e.g. feeding the Camunda Design
|
|
50
|
+
System navigation components).
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
import { useC4ClusterNavEntries } from '@camunda/ccma-saas-frontend/runtime'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Every runtime name is exported from both entry points, so importing from the
|
|
57
|
+
package root still works exactly as before. See
|
|
58
|
+
[`docs/runtime.md`](./docs/runtime.md) for the integration guide and for what
|
|
59
|
+
the subpath does and does not shrink.
|
|
60
|
+
|
|
61
|
+
Deep imports (`@camunda/ccma-saas-frontend/lib/esm/…`) still resolve, but are a
|
|
62
|
+
deprecated compatibility shim scheduled for removal in the next major — they
|
|
63
|
+
hard-code unversioned internal paths. Use one of the two entry points above.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ActivityGraphProps } from './c4-activity-graph.types';
|
|
2
|
+
import type { C4ActivityGraphProps } from './c4-activity-graph.types.js';
|
|
3
3
|
export declare const C4ActivityGraph: import("react").MemoExoticComponent<({ dataPoints, options, }: C4ActivityGraphProps) => JSX.Element>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
4
|
-
import type { FilterFieldState } from './state.types';
|
|
3
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
4
|
+
import type { FilterFieldState } from './state.types.js';
|
|
5
5
|
interface ArrayFieldContainerProps {
|
|
6
6
|
fieldName: string;
|
|
7
7
|
spec: FieldSpec;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
3
|
-
import type { FilterFieldState } from './state.types';
|
|
2
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
3
|
+
import type { FilterFieldState } from './state.types.js';
|
|
4
4
|
interface FieldRowProps {
|
|
5
5
|
field: FilterFieldState;
|
|
6
6
|
spec: FieldSpec;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
4
|
-
import type { FilterFieldState } from './state.types';
|
|
3
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
4
|
+
import type { FilterFieldState } from './state.types.js';
|
|
5
5
|
interface FiltersSectionProps {
|
|
6
6
|
fields: Record<string, FieldSpec>;
|
|
7
7
|
filterFields: FilterFieldState[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
4
|
-
import type { FilterFieldState } from './state.types';
|
|
3
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
4
|
+
import type { FilterFieldState } from './state.types.js';
|
|
5
5
|
interface OrSectionProps {
|
|
6
6
|
sectionId: string;
|
|
7
7
|
fieldsConfig: Record<string, FieldSpec>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4AdvancedSearchFiltersProps } from './c4-advanced-search-filters.types';
|
|
2
|
+
import type { C4AdvancedSearchFiltersProps } from './c4-advanced-search-filters.types.js';
|
|
3
3
|
export declare const C4AdvancedSearchFilters: ({ fields, onFilterChange, }: C4AdvancedSearchFiltersProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AdvancedFilterOperator, FieldDataType, FieldSpec } from './c4-advanced-search-filters.types';
|
|
1
|
+
import type { AdvancedFilterOperator, FieldDataType, FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
2
2
|
export declare const validateComparisonOperatorValue: (value: string | number | boolean | Date, operator: AdvancedFilterOperator, fieldType?: FieldDataType) => string | undefined;
|
|
3
3
|
export declare const isArrayOperator: (operator?: AdvancedFilterOperator) => boolean;
|
|
4
4
|
export declare const convertDateToISOString: (value: unknown) => unknown;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AiUsageProps } from './c4-ai-usage.types';
|
|
2
|
+
import type { C4AiUsageProps } from './c4-ai-usage.types.js';
|
|
3
3
|
export declare const C4AiUsage: ({ usage, limit, isLoading, hasError, emptyStateIconPath, text, urls, onViewBlueprints, onLearnMore, }: C4AiUsageProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AlphaClusterAtCheckoutProps } from './c4-alpha-cluster-at-checkout.types';
|
|
2
|
+
import type { C4AlphaClusterAtCheckoutProps } from './c4-alpha-cluster-at-checkout.types.js';
|
|
3
3
|
export declare const C4AlphaClusterAtCheckout: (props: C4AlphaClusterAtCheckoutProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4AppTeaserCardsProps } from './c4-app-teaser-cards.types';
|
|
1
|
+
import type { C4AppTeaserCardsProps } from './c4-app-teaser-cards.types.js';
|
|
2
2
|
export declare const C4AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: C4AppTeaserCardsProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AppTeaserCardProps } from '../c4-app-teaser-card/c4-app-teaster-card.types';
|
|
2
|
+
import type { C4AppTeaserCardProps } from '../c4-app-teaser-card/c4-app-teaster-card.types.js';
|
|
3
3
|
export interface C4AppTeaserCardsProps {
|
|
4
4
|
title: string;
|
|
5
5
|
subtitle: JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4AsyncModalProps } from './c4-async-modal.types';
|
|
2
|
+
import type { C4AsyncModalProps } from './c4-async-modal.types.js';
|
|
3
3
|
export declare const C4AsyncModal: ({ open, loadingText, modalHeading, onRequestClose, onRequestSubmit, primaryButtonText, secondaryButtonText, children, danger, primaryButtonDisabled, size, preventCloseOnClickOutside, }: C4AsyncModalProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AuditLogProps } from './c4-audit-log.types';
|
|
2
|
+
import type { C4AuditLogProps } from './c4-audit-log.types.js';
|
|
3
3
|
export declare const C4AuditLog: ({ enabled, userCategories, clientCategories, onUpdate, onEnable, onDisable, learnMoreUrl, permissions, }: C4AuditLogProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4BillingPageProps } from './c4-billing-page.types';
|
|
1
|
+
import type { C4BillingPageProps } from './c4-billing-page.types.js';
|
|
2
2
|
export declare const enterpriseProps: C4BillingPageProps;
|
|
3
3
|
export declare const enterpriseLicensingModel2025Props: C4BillingPageProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ClusterReservationsProps } from './elements/cluster-reservations';
|
|
2
|
-
import type { CurrentUsageMetricsProps } from './elements/current-usage-metrics';
|
|
3
|
-
import type { PlanDetailsProps } from './elements/plan-details';
|
|
4
|
-
import type { UsageAlertsProps } from './elements/usage-alerts';
|
|
1
|
+
import type { ClusterReservationsProps } from './elements/cluster-reservations.js';
|
|
2
|
+
import type { CurrentUsageMetricsProps } from './elements/current-usage-metrics.js';
|
|
3
|
+
import type { PlanDetailsProps } from './elements/plan-details.js';
|
|
4
|
+
import type { UsageAlertsProps } from './elements/usage-alerts.js';
|
|
5
5
|
export interface C4BillingPageProps {
|
|
6
6
|
title?: string;
|
|
7
7
|
subheading?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import { type ValueMetricProps } from './value-metric';
|
|
3
|
-
export type MetricsOrder = 'tu' | 'gu' | 'pi' | 'di';
|
|
2
|
+
import { type ValueMetricProps } from './value-metric.js';
|
|
3
|
+
export type MetricsOrder = 'tu' | 'gu' | 'pi' | 'di' | 'tenants';
|
|
4
4
|
export interface CurrentUsageMetricsProps {
|
|
5
5
|
title: JSX.Element;
|
|
6
6
|
description: string;
|
|
@@ -10,7 +10,8 @@ export interface CurrentUsageMetricsProps {
|
|
|
10
10
|
generalUsers: ValueMetricProps;
|
|
11
11
|
processInstances: ValueMetricProps;
|
|
12
12
|
decisionInstances: ValueMetricProps;
|
|
13
|
+
tenants?: ValueMetricProps;
|
|
13
14
|
}
|
|
14
|
-
export declare const CurrentUsageMetrics: ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, isEnterpriseOrg, }: CurrentUsageMetricsProps) => JSX.Element;
|
|
15
|
+
export declare const CurrentUsageMetrics: ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, tenants, isEnterpriseOrg, }: CurrentUsageMetricsProps) => JSX.Element;
|
|
15
16
|
export type MediaSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
16
17
|
export declare function mediaSizeByWidth(width: number): MediaSize;
|
|
@@ -10,7 +10,7 @@ import { Stack } from '../../../ui/index.js';
|
|
|
10
10
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
11
11
|
import { STYLES } from '../c4-billing-page.js';
|
|
12
12
|
import { ValueMetric } from './value-metric.js';
|
|
13
|
-
export const CurrentUsageMetrics = ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, isEnterpriseOrg = false, }) => {
|
|
13
|
+
export const CurrentUsageMetrics = ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, tenants, isEnterpriseOrg = false, }) => {
|
|
14
14
|
const [mediaSize, setMediaSize] = useState(mediaSizeByWidth(window.innerWidth));
|
|
15
15
|
useEffect(() => {
|
|
16
16
|
let frame = 0;
|
|
@@ -43,6 +43,11 @@ export const CurrentUsageMetrics = ({ title, decisionInstances, description, gen
|
|
|
43
43
|
case 'di':
|
|
44
44
|
metrics.push(_jsx(ValueMetric, { ...decisionInstances, isEnterpriseOrg: isEnterpriseOrg }));
|
|
45
45
|
break;
|
|
46
|
+
case 'tenants':
|
|
47
|
+
if (tenants) {
|
|
48
|
+
metrics.push(_jsx(ValueMetric, { ...tenants, isEnterpriseOrg: isEnterpriseOrg }));
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
const component = (_jsx(C4TileWithTitleAndAction, { title: title, description: description, children: ['sm', 'md'].includes(mediaSize) ? (_jsx(Stack, { gap: 5, children: Array.from({ length: Math.ceil(metrics.length / 2) }, (_, rowIndex) => (_jsx(Grid, { style: { ...STYLES.grid }, children: metrics
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4BreadcrumbProps } from './c4-breadcrumb.types';
|
|
2
|
+
import type { C4BreadcrumbProps } from './c4-breadcrumb.types.js';
|
|
3
3
|
export declare const C4Breadcrumb: ({ loading, noTrailingSlash, elements, title, menu, tag, indicator, codeSnippet, }: C4BreadcrumbProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ChartsDashboardProps } from './c4-charts-dashboard.types';
|
|
2
|
+
import type { C4ChartsDashboardProps } from './c4-charts-dashboard.types.js';
|
|
3
3
|
export declare const C4ChartsDashboard: ({ charts, theme, title, menuItems, isLoading, }: C4ChartsDashboardProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4AlluvialChartDefinition } from '../c4-charts-dashboard.types';
|
|
2
|
+
import type { C4AlluvialChartDefinition } from '../c4-charts-dashboard.types.js';
|
|
3
3
|
export type C4AlluvialChartProps = C4AlluvialChartDefinition & {
|
|
4
4
|
theme: 'g10' | 'g100';
|
|
5
5
|
};
|
|
@@ -8,7 +8,7 @@ import { BarChart } from '@camunda/design-system';
|
|
|
8
8
|
import { GroupedBarChart, SimpleBarChart, StackedBarChart, } from '@carbon/charts-react';
|
|
9
9
|
import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
|
|
10
10
|
import { Stack, Tile } from '../../../ui/index.js';
|
|
11
|
-
import {
|
|
11
|
+
import { getDsSeriesToken } from '../../shared-charts/recharts-tokens.js';
|
|
12
12
|
/** Pivots flat {group, key, value} rows into one row per key, keyed by group. */
|
|
13
13
|
function pivotByKey(dataPoints) {
|
|
14
14
|
const groupSet = new Set();
|
|
@@ -37,7 +37,7 @@ export const C4BarChart = ({ title, dataPoints, axes, stacked = false, mode, hei
|
|
|
37
37
|
const { rows, groups } = pivotByKey(dataPoints);
|
|
38
38
|
const config = Object.fromEntries(groups.map((group, index) => [
|
|
39
39
|
group,
|
|
40
|
-
{ label: group, color:
|
|
40
|
+
{ label: group, color: getDsSeriesToken(index) },
|
|
41
41
|
]));
|
|
42
42
|
return (_jsx(Tile, { children: _jsx(Stack, { children: _jsxs("div", { children: [title && (_jsx("div", { style: {
|
|
43
43
|
fontWeight: 600,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4LineChartDefinition } from '../c4-charts-dashboard.types';
|
|
2
|
+
import type { C4LineChartDefinition } from '../c4-charts-dashboard.types.js';
|
|
3
3
|
type C4LineChartProps = C4LineChartDefinition & {
|
|
4
4
|
theme: 'g10' | 'g100';
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterByomClientsProps } from './c4-cluster-byom-clients.types';
|
|
2
|
+
import type { C4ClusterByomClientsProps } from './c4-cluster-byom-clients.types.js';
|
|
3
3
|
export declare const C4ClusterByomClients: ({ clients, isLoading, hasError, text, urls, permissions, onActivateEndpoint, onCreateClient, onRotatePassword, onDeleteClient, onRefresh, onOpenDocs, }: C4ClusterByomClientsProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterClientCredentialProps, C4ClusterClientCredentialVariantCodeSnippetProps, C4ClusterClientCredentialVariantItemsProps } from './c4-cluster-client-credentials.types';
|
|
1
|
+
import type { C4ClusterClientCredentialProps, C4ClusterClientCredentialVariantCodeSnippetProps, C4ClusterClientCredentialVariantItemsProps } from './c4-cluster-client-credentials.types.js';
|
|
2
2
|
export declare const C4ClusterClientCredentialsModal: (props: C4ClusterClientCredentialProps) => import("react").JSX.Element;
|
|
3
3
|
export declare const C4ClusterClientCredentialsVariantCodeSnippet: (props: C4ClusterClientCredentialVariantCodeSnippetProps) => import("react").JSX.Element;
|
|
4
4
|
export declare const C4ClusterClientCredentialsVariantItems: (props: C4ClusterClientCredentialVariantItemsProps) => import("react").JSX.Element;
|
|
@@ -13,7 +13,7 @@ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notifi
|
|
|
13
13
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
14
14
|
export const C4ClusterClientCredentialsModal = (props) => {
|
|
15
15
|
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
16
|
-
return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, size: '
|
|
16
|
+
return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, size: 'lg', children: _jsxs(Stack, { gap: 6, children: [_jsx("div", { children: props.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
|
|
17
17
|
const { key, ...variantProps } = variant;
|
|
18
18
|
return (_jsxs(TabPanel, { children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsVariantItems, { ...variantProps }))] }, key));
|
|
19
19
|
}) })] })] }) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterClientCredentialsIdentityProps, C4ClusterClientCredentialsIdentityVariantCodeSnippetProps, C4ClusterClientCredentialsIdentityVariantItemsProps } from './c4-cluster-client-credentials-identity.types';
|
|
1
|
+
import type { C4ClusterClientCredentialsIdentityProps, C4ClusterClientCredentialsIdentityVariantCodeSnippetProps, C4ClusterClientCredentialsIdentityVariantItemsProps } from './c4-cluster-client-credentials-identity.types.js';
|
|
2
2
|
export declare const C4ClusterClientCredentialsIdentityModal: (props: C4ClusterClientCredentialsIdentityProps) => import("react").JSX.Element;
|
|
3
3
|
export declare const C4ClusterClientCredentialsIdentitysVariantCodeSnippet: (props: C4ClusterClientCredentialsIdentityVariantCodeSnippetProps) => import("react").JSX.Element;
|
|
4
4
|
export declare const C4ClusterClientCredentialsIdentitysVariantItems: (props: C4ClusterClientCredentialsIdentityVariantItemsProps) => import("react").JSX.Element;
|
|
@@ -14,7 +14,7 @@ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notifi
|
|
|
14
14
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
15
15
|
export const C4ClusterClientCredentialsIdentityModal = (props) => {
|
|
16
16
|
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
17
|
-
return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, preventCloseOnClickOutside: true, selectorPrimaryFocus: '.cds--btn--tertiary', size: '
|
|
17
|
+
return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, preventCloseOnClickOutside: true, selectorPrimaryFocus: '.cds--btn--tertiary', size: 'lg', children: _jsxs(Stack, { gap: 4, children: [_jsx("strong", { children: props.step1Header }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', contained: true, children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
|
|
18
18
|
const { key, ...variantProps } = variant;
|
|
19
19
|
return (_jsxs(TabPanel, { style: { marginTop: '-12px', padding: '1rem' }, children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsIdentitysVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsIdentitysVariantItems, { ...variantProps }))] }, key));
|
|
20
20
|
}) })] }), _jsx(C4Divider, {}), _jsx("strong", { children: props.step2Header }), _jsx("div", { children: props.step2Description }), _jsxs(Stack, { gap: 2, children: [_jsx("p", { style: { color: 'var(--cds-text-helper)', alignSelf: 'end' }, children: "Client ID" }), _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.clientId })] }), _jsx(Button, { kind: 'primary', size: 'md', onClick: () => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsActivityProps } from './c4-cluster-details-activity.types';
|
|
2
|
+
import type { C4ClusterDetailsActivityProps } from './c4-cluster-details-activity.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsActivity: ({ activityGroups, isLoading, hasError, text, onRefresh, }: C4ClusterDetailsActivityProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types';
|
|
2
|
+
import type { C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsAlerts: ({ alerts, isLoading, text, permissions, onCreateAlert, onUpdateAlert, onDeleteAlert, onNoAlertsDocsClick, }: C4ClusterDetailsAlertsProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Alert, C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types';
|
|
1
|
+
import type { Alert, C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types.js';
|
|
2
2
|
export declare const mockText: C4ClusterDetailsAlertsProps['text'];
|
|
3
3
|
export declare const mockPermissions: C4ClusterDetailsAlertsProps['permissions'];
|
|
4
4
|
export declare const mockAlerts: Alert[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsClientsProps } from './c4-cluster-details-clients.types';
|
|
2
|
+
import type { C4ClusterDetailsClientsProps } from './c4-cluster-details-clients.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsClients: ({ clients, isLoading, hasError, hasIdentityIntegration, hasIdentityAuthorization, hasZeebeUrl, text, urls, permissions, onNavigateToClient, onCreateClient, onUpdateClient, onDeleteClient, onRefresh, onOpenIdentity, onOpenDocs, }: C4ClusterDetailsClientsProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterDetailsClientsProps, ClientItem } from './c4-cluster-details-clients.types';
|
|
1
|
+
import type { C4ClusterDetailsClientsProps, ClientItem } from './c4-cluster-details-clients.types.js';
|
|
2
2
|
export declare const defaultText: C4ClusterDetailsClientsProps['text'];
|
|
3
3
|
export declare const defaultUrls: C4ClusterDetailsClientsProps['urls'];
|
|
4
4
|
export declare const defaultPermissions: C4ClusterDetailsClientsProps['permissions'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsConnectorSecretsProps } from './c4-cluster-details-connector-secrets.types';
|
|
2
|
+
import type { C4ClusterDetailsConnectorSecretsProps } from './c4-cluster-details-connector-secrets.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsConnectorSecrets: ({ secrets, isLoading, hasError, hasImportFromClusterFeature, hasExportFeature, text, urls, permissions, onCreateSecret, onBulkImportSecrets, onImportFromCluster, onExportSecrets, onRevealSecret, onUpdateSecret, onDeleteSecret, onRefresh, onOpenDocs, }: C4ClusterDetailsConnectorSecretsProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4ClusterDetailsConnectorSecretsProps, ConnectorSecret } from './c4-cluster-details-connector-secrets.types';
|
|
1
|
+
import type { C4ClusterDetailsConnectorSecretsProps, ConnectorSecret } from './c4-cluster-details-connector-secrets.types.js';
|
|
2
2
|
export declare const mockSecrets: ConnectorSecret[];
|
|
3
3
|
export declare const withSecretsProps: C4ClusterDetailsConnectorSecretsProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsEncryptionProps } from './c4-cluster-details-encryption.types';
|
|
3
|
-
export declare const C4ClusterDetailsEncryption: ({ cluster, encryption, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled, }: C4ClusterDetailsEncryptionProps) => JSX.Element;
|
|
2
|
+
import type { C4ClusterDetailsEncryptionProps } from './c4-cluster-details-encryption.types.js';
|
|
3
|
+
export declare const C4ClusterDetailsEncryption: ({ cluster, encryption, failoverKeyPolicy, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled, }: C4ClusterDetailsEncryptionProps) => JSX.Element;
|
|
@@ -11,7 +11,7 @@ import { Button, CodeSnippet, Link, Stack, TextInput, Tile } from '../../ui/inde
|
|
|
11
11
|
import { useTabsFamily } from '../../ui/tabs.js';
|
|
12
12
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
13
13
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
14
|
-
export const C4ClusterDetailsEncryption = ({ cluster, encryption, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled = false, }) => {
|
|
14
|
+
export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPolicy, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled = false, }) => {
|
|
15
15
|
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
16
16
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
17
17
|
const handleTabChange = (evt) => {
|
|
@@ -109,6 +109,29 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, scripts, text,
|
|
|
109
109
|
if (cluster.status === 'Ready') {
|
|
110
110
|
return (_jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.primaryEncryptionKeyId }) })] }), cluster.isDualRegion && cluster.secondaryEncryptionKeyId && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.secondaryEncryptionKeyId }) })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "Key Policy" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, className: 'cds--layer-two', children: scripts.keyPolicy }) })] })] }) }) })] }));
|
|
111
111
|
}
|
|
112
|
+
// A failed-over cluster already has its keys set (they are reversed from the
|
|
113
|
+
// source at failover time), so the "create a new key" flow below would be
|
|
114
|
+
// actively misleading — the customer's key already exists, it just has to
|
|
115
|
+
// grant access to the new region's principals. Show that instead. Once the
|
|
116
|
+
// operator reports the key as usable the `Ready` branch above wins, so this
|
|
117
|
+
// is reached only while the key policy is still missing the new principals.
|
|
118
|
+
if (failoverKeyPolicy) {
|
|
119
|
+
const roles = [
|
|
120
|
+
{
|
|
121
|
+
label: text.failoverKeyPolicyCloneRole,
|
|
122
|
+
value: failoverKeyPolicy.cloneRole,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: text.failoverKeyPolicyClusterRole,
|
|
126
|
+
value: failoverKeyPolicy.clusterRole,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
label: text.failoverKeyPolicyReplicationRole,
|
|
130
|
+
value: failoverKeyPolicy.replicationRole,
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
return (_jsxs(_Fragment, { children: [_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%', marginBottom: '24px' }, lowContrast: true, kind: 'warning', title: text.failoverKeyPolicyTitle, subtitle: text.failoverKeyPolicyText, hideCloseButton: true }), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { children: text.title }), _jsxs("p", { children: [text.failoverKeyPolicyInstruction, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', rel: 'noopener noreferrer', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsx(Tile, { children: _jsx(Stack, { gap: 4, children: roles.map((role) => (_jsxs(Stack, { gap: 2, children: [_jsx("strong", { children: role.label }), _jsx(CodeSnippet, { type: 'single', children: role.value })] }, role.value))) }) })] })] }));
|
|
134
|
+
}
|
|
112
135
|
return (_jsxs(_Fragment, { children: [encryption.actionRequired && (_jsx(C4InlineNotification, { style: {
|
|
113
136
|
maxWidth: '100%',
|
|
114
137
|
width: '100%',
|
package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import type { EncryptionStatus } from '@camunda/ccma-shared-types';
|
|
1
|
+
import type { EncryptionStatus, FailoverKeyPolicyPrincipals } from '@camunda/ccma-shared-types';
|
|
2
2
|
export interface C4ClusterDetailsEncryptionProps {
|
|
3
3
|
cluster: ClusterEncryptionData;
|
|
4
4
|
encryption: EncryptionFormData;
|
|
5
|
+
/**
|
|
6
|
+
* Set only for a failed-over cluster whose keys are already configured but
|
|
7
|
+
* whose key policy still has to grant the failover region's principals.
|
|
8
|
+
* When set (and encryption is not yet `Ready`), the key-policy guidance
|
|
9
|
+
* replaces the create-a-new-key flow.
|
|
10
|
+
*/
|
|
11
|
+
failoverKeyPolicy?: FailoverKeyPolicyPrincipals;
|
|
5
12
|
scripts: {
|
|
6
13
|
cliScript: string;
|
|
7
14
|
keyPolicy: string;
|
|
@@ -40,6 +47,12 @@ export interface C4ClusterDetailsEncryptionProps {
|
|
|
40
47
|
confirmEncryptionBothRegions: string;
|
|
41
48
|
downloadCliScript: string;
|
|
42
49
|
downloadKeyPolicy: string;
|
|
50
|
+
failoverKeyPolicyTitle: string;
|
|
51
|
+
failoverKeyPolicyText: string;
|
|
52
|
+
failoverKeyPolicyInstruction: string;
|
|
53
|
+
failoverKeyPolicyCloneRole: string;
|
|
54
|
+
failoverKeyPolicyClusterRole: string;
|
|
55
|
+
failoverKeyPolicyReplicationRole: string;
|
|
43
56
|
};
|
|
44
57
|
urls: {
|
|
45
58
|
byokMain: string;
|
package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types';
|
|
2
|
+
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsHotBackups: ({ backups, backupSchedule, isLoading, hasError, showTeaser, canCreateBackup, canCreateBackupBasedOnTime, clusterSupportsHotBackups, restoreInProgress, text, urls, permissions, restoreError, onCreateBackup, onDeleteBackup, onRestoreBackup, onCreateSchedule, onUpdateSchedule, onDeleteSchedule, onRefresh, onOpenDocs, onTalkToExpert, onGiveFeedback, }: C4ClusterDetailsHotBackupsProps) => JSX.Element;
|
|
@@ -8,6 +8,7 @@ import { C3ResponsiveStack, } from '@camunda/camunda-composite-components';
|
|
|
8
8
|
import { Add, Chat, Edit, EventSchedule, Renew } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import styled from 'styled-components';
|
|
10
10
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
|
+
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
11
12
|
import { Button, Stack, Tile } from '../../ui/index.js';
|
|
12
13
|
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
13
14
|
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
@@ -46,10 +47,16 @@ const getStatusIndicator = (status) => {
|
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading, hasError, showTeaser, canCreateBackup, canCreateBackupBasedOnTime, clusterSupportsHotBackups, restoreInProgress, text, urls, permissions, restoreError, onCreateBackup, onDeleteBackup, onRestoreBackup, onCreateSchedule, onUpdateSchedule, onDeleteSchedule, onRefresh, onOpenDocs, onTalkToExpert, onGiveFeedback, }) => {
|
|
50
|
+
const designSystem = useC4DesignSystem();
|
|
49
51
|
const expandedRow = (row) => {
|
|
50
52
|
const backup = backups.find((b) => b.id === row.id);
|
|
51
53
|
return (_jsx("div", { style: {
|
|
52
|
-
|
|
54
|
+
// Carbon's TableExpandedRow insets its content by the expand-toggle
|
|
55
|
+
// column width; the negative margin pulls the labels back to align
|
|
56
|
+
// with the first data column. The DS DataTable's expansion region has
|
|
57
|
+
// no such inset, so the same offset would push the content off the
|
|
58
|
+
// left edge and clip it — keep the offset Carbon-only.
|
|
59
|
+
marginLeft: designSystem === 'ds' ? undefined : '-38px',
|
|
53
60
|
fontSize: '12px',
|
|
54
61
|
marginTop: '16px',
|
|
55
62
|
marginBottom: '16px',
|
|
@@ -213,6 +220,19 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
213
220
|
!clusterSupportsHotBackups ||
|
|
214
221
|
isRestoring, kind: 'tertiary', children: text.scheduleTileButton })] }), _jsx("div", { children: text.infoText })] })] })] })] }) })] }));
|
|
215
222
|
}
|
|
223
|
+
// Default sort: newest "Started at" first (descending). Backups without a
|
|
224
|
+
// start date sort to the bottom. This only sets the initial display order —
|
|
225
|
+
// clicking any column header still re-sorts via the header `sorting`
|
|
226
|
+
// comparators above.
|
|
227
|
+
const sortedBackups = [...backups].sort((a, b) => {
|
|
228
|
+
if (a.started === '-' && b.started === '-')
|
|
229
|
+
return 0;
|
|
230
|
+
if (a.started === '-')
|
|
231
|
+
return 1;
|
|
232
|
+
if (b.started === '-')
|
|
233
|
+
return -1;
|
|
234
|
+
return b.started.getTime() - a.started.getTime();
|
|
235
|
+
});
|
|
216
236
|
return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.restoreInProgressTitle.replace('{backupName}', restoreInProgress.backupName), subtitle: text.restoreInProgressText, hideCloseButton: true })), restoreError && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'error', lowContrast: true, title: text.restoreErrorTitle, subtitle: text.restoreErrorMessage.replace('{backupName}', restoreError.backupName), onClose: restoreError.onDismiss, onCloseButtonClick: restoreError.onDismiss })), !canCreateBackupBasedOnTime && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.backupsUnavailableTitle, subtitle: text.backupsUnavailableText, hideCloseButton: true })), !backupSchedule ? (_jsx(BackupScheduleWrapper, { children: _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: text.scheduleTileTitle }), _jsx("p", { children: text.scheduleTileDescription }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, size: 'sm', onClick: onCreateSchedule, kind: 'tertiary', renderIcon: EventSchedule, children: text.scheduleTileButton })] }) }) })) : (_jsx(Tile, { style: { width: '450px' }, children: _jsx(Stack, { gap: 2, children: _jsxs("div", { style: {
|
|
217
237
|
display: 'grid',
|
|
218
238
|
gridTemplateColumns: '1fr 1fr',
|
|
@@ -224,7 +244,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
224
244
|
gap: '2rem',
|
|
225
245
|
maxWidth: 'calc(100vw - 64px)',
|
|
226
246
|
width: '100%',
|
|
227
|
-
}, children: _jsx(C4DataTable, { title: text.title, headers: headerData, data:
|
|
247
|
+
}, children: _jsx(C4DataTable, { title: text.title, headers: headerData, data: sortedBackups.map((item) => {
|
|
228
248
|
return { ...item, expansion: expandedRow(item) };
|
|
229
249
|
}), toolbar: toolbar, actions: actions, options: {
|
|
230
250
|
actionsUseOverflowMenuMinItems: 3,
|
package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types';
|
|
1
|
+
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types.js';
|
|
2
2
|
export declare const defaultText: {
|
|
3
3
|
title: string;
|
|
4
4
|
teaserHeading: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsHotBackupsRestoreProps } from './c4-cluster-details-hot-backups-restore.types';
|
|
3
|
-
export declare const C4ClusterDetailsHotBackupsRestore: ({ open, backup, currentClusterVersion, onRequestClose, onConfirm, text, }: C4ClusterDetailsHotBackupsRestoreProps) => JSX.Element;
|
|
2
|
+
import type { C4ClusterDetailsHotBackupsRestoreProps } from './c4-cluster-details-hot-backups-restore.types.js';
|
|
3
|
+
export declare const C4ClusterDetailsHotBackupsRestore: ({ open, backup, currentClusterVersion, isSubmitting, onRequestClose, onConfirm, text, }: C4ClusterDetailsHotBackupsRestoreProps) => JSX.Element;
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
7
7
|
import { useState } from 'react';
|
|
8
8
|
import { Checkbox, Modal, Stack } from '../../ui/index.js';
|
|
9
9
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
10
|
-
export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentClusterVersion, onRequestClose, onConfirm, text, }) => {
|
|
10
|
+
export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentClusterVersion, isSubmitting, onRequestClose, onConfirm, text, }) => {
|
|
11
11
|
const isVersionMismatch = backup.version !== currentClusterVersion;
|
|
12
12
|
const [acknowledged, setAcknowledged] = useState(false);
|
|
13
13
|
const handleRequestSubmit = () => {
|
|
@@ -17,6 +17,8 @@ export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentCluster
|
|
|
17
17
|
onConfirm(backup.id);
|
|
18
18
|
};
|
|
19
19
|
const handleRequestClose = () => {
|
|
20
|
+
if (isSubmitting)
|
|
21
|
+
return;
|
|
20
22
|
setAcknowledged(false);
|
|
21
23
|
onRequestClose();
|
|
22
24
|
};
|
|
@@ -37,7 +39,7 @@ export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentCluster
|
|
|
37
39
|
hour12: false,
|
|
38
40
|
});
|
|
39
41
|
};
|
|
40
|
-
return (_jsx(Modal, { id: 'c4-cluster-details-hot-backups-restore', open: open, modalHeading: text.title, primaryButtonText: text.confirmButton, secondaryButtonText: text.cancelButton, primaryButtonDisabled: isVersionMismatch && !acknowledged, onRequestSubmit: handleRequestSubmit, onRequestClose: handleRequestClose, size: 'sm', preventCloseOnClickOutside: true,
|
|
42
|
+
return (_jsx(Modal, { id: 'c4-cluster-details-hot-backups-restore', open: open, modalHeading: text.title, primaryButtonText: text.confirmButton, secondaryButtonText: text.cancelButton, primaryButtonDisabled: isSubmitting || (isVersionMismatch && !acknowledged), onRequestSubmit: handleRequestSubmit, onRequestClose: handleRequestClose, size: 'sm', preventCloseOnClickOutside: true,
|
|
41
43
|
// Restore is irreversible — per project spec, initial keyboard focus
|
|
42
44
|
// lands on Cancel rather than the destructive primary action.
|
|
43
45
|
selectorPrimaryFocus: '.cds--btn--secondary', children: _jsxs(Stack, { gap: 5, children: [_jsxs("dl", { style: {
|
|
@@ -7,6 +7,8 @@ export interface C4ClusterDetailsHotBackupsRestoreProps {
|
|
|
7
7
|
completedAt: Date | string;
|
|
8
8
|
};
|
|
9
9
|
currentClusterVersion: string;
|
|
10
|
+
/** Disables the primary action and blocks dismissal while a restore request is in flight. */
|
|
11
|
+
isSubmitting: boolean;
|
|
10
12
|
onRequestClose: () => void;
|
|
11
13
|
onConfirm: (backupId: string) => void;
|
|
12
14
|
text: {
|
package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsIpWhitelistProps } from './c4-cluster-details-ip-whitelist.types';
|
|
2
|
+
import type { C4ClusterDetailsIpWhitelistProps } from './c4-cluster-details-ip-whitelist.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsIpWhitelist: ({ ipWhitelist, isLoading, text, urls, permissions, onCreateIpWhitelist, onUpdateIpWhitelist, onDeleteIpWhitelist, onOpenDocs, }: C4ClusterDetailsIpWhitelistProps) => JSX.Element;
|