@camunda/ccma-saas-frontend 0.3.1 → 0.5.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 +3 -3
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.js +90 -73
- 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/c4-advanced-search-filters.js +13 -13
- 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 +13 -2
- 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 +2 -2
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +31 -25
- 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/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-identity/c4-cluster-client-credentials-identity.d.ts +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-activity/c4-cluster-details-activity.js +11 -8
- 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 +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +21 -20
- 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 +1 -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-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +10 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +5 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.js +7 -1
- 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-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-cluster-tag-selector/c4-cluster-tag-selector.js +7 -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-data-table/c4-data-table.js +58 -4
- 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 +2 -47
- 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 +2 -2
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +9 -4
- 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 +2 -2
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -5
- 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-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 +2 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +2 -2
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +6 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +2 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +14 -8
- 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/recharts-tokens.d.ts +14 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +22 -1
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +14 -3
- 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 +19 -7
- package/lib/esm/runtime/c4-console-data-context.js +40 -15
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +6 -0
- package/lib/esm/runtime/c4-console-data-store.d.ts +12 -1
- package/lib/esm/runtime/c4-console-data-store.js +74 -34
- 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.js +11 -3
- package/lib/esm/runtime/to-api-config.d.ts +2 -2
- package/lib/esm/runtime/to-api-config.js +6 -0
- 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 +20 -0
- package/lib/esm/utils/role-labels.js +79 -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 +55 -2
- 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-connector-secrets-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +6 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +31 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +23 -8
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +5 -1
- 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 +115 -45
- 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 +2 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -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/connector-management/c4-connector-management.shared.js +12 -3
- 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 +25 -6
- 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 +142 -22
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +16 -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 +4 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +63 -87
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.js +29 -82
- package/package.json +50 -30
- 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 -71
- 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 -26
- 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-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -121
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -263
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -80
- 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
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4LLMUsageMeterProps } from './c4-llm-usage-meter.types';
|
|
2
|
+
import type { C4LLMUsageMeterProps } from './c4-llm-usage-meter.types.js';
|
|
3
3
|
export declare const C4LLMUsageMeter: ({ usage, limit, title, description, isLoading, hasError, urls, text, }: C4LLMUsageMeterProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { C4ManagementActivityProps } from './c4-management-activity.types';
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import type { C4ManagementActivityProps } from './c4-management-activity.types.js';
|
|
3
3
|
export declare const C4ManagementActivity: (props: C4ManagementActivityProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
2
3
|
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
3
4
|
import { Stack } from '../../ui/index.js';
|
|
4
5
|
import { useMenuButtonFamily } from '../../ui/families.js';
|
|
@@ -48,7 +49,10 @@ const compareByTimestamp = (a, b) => {
|
|
|
48
49
|
* existing (carbon) layout or its visual snapshots.
|
|
49
50
|
*/
|
|
50
51
|
const C4ManagementActivityDs = ({ activities, loading, downloading, onExportJSON, onExportCSV, exportLabel, exportingLabel, exportJSONLabel, exportCSVLabel, searchLabel = 'Search activity', nameColumnLabel = 'Name', timestampColumnLabel = 'Timestamp', auditColumnLabel = 'Audit', }) => {
|
|
51
|
-
|
|
52
|
+
// Memoized so the mapped+sorted array keeps a stable identity across parent
|
|
53
|
+
// re-renders; a fresh array would reset the data table's page (TanStack
|
|
54
|
+
// `autoResetPageIndex`) and re-run the O(n log n) sort every render.
|
|
55
|
+
const rows = useMemo(() => activities
|
|
52
56
|
.flatMap((activity) => activity.entries)
|
|
53
57
|
.map((entry, index) => ({
|
|
54
58
|
id: `activity-row-${index}`,
|
|
@@ -58,8 +62,9 @@ const C4ManagementActivityDs = ({ activities, loading, downloading, onExportJSON
|
|
|
58
62
|
timestamp: entry.timestamp,
|
|
59
63
|
audit: entry.entry,
|
|
60
64
|
}))
|
|
61
|
-
// Newest first by default, so the initial view matches the carbon
|
|
62
|
-
// ties keep their original order via the `originalIndex`
|
|
65
|
+
// Newest first by default, so the initial view matches the carbon
|
|
66
|
+
// layout; ties keep their original order via the `originalIndex`
|
|
67
|
+
// tie-breaker.
|
|
63
68
|
.sort((a, b) => {
|
|
64
69
|
if (a.timestamp !== b.timestamp) {
|
|
65
70
|
if (a.timestamp === undefined)
|
|
@@ -69,7 +74,7 @@ const C4ManagementActivityDs = ({ activities, loading, downloading, onExportJSON
|
|
|
69
74
|
return b.timestamp - a.timestamp;
|
|
70
75
|
}
|
|
71
76
|
return a.originalIndex - b.originalIndex;
|
|
72
|
-
});
|
|
77
|
+
}), [activities]);
|
|
73
78
|
const headers = [
|
|
74
79
|
{
|
|
75
80
|
key: 'name',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ManagementActivityProps, OrgActivity } from './c4-management-activity.types';
|
|
1
|
+
import type { C4ManagementActivityProps, OrgActivity } from './c4-management-activity.types.js';
|
|
2
2
|
export declare const mockActivities: OrgActivity[];
|
|
3
3
|
export declare const mockActivitiesEmpty: OrgActivity[];
|
|
4
4
|
export declare const defaultProps: C4ManagementActivityProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ManagementApiProps } from './c4-management-api.types';
|
|
2
|
+
import type { C4ManagementApiProps } from './c4-management-api.types.js';
|
|
3
3
|
export declare const C4ManagementApi: ({ clients, loading, showIpWhitelistColumn, showHotBackupColumn, text, urls, permissions, onShowDetails, onUpdateClient, onDeleteClient, onCreate, onOpenDocs, }: C4ManagementApiProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ManagementApiProps, CloudClientItem } from './c4-management-api.types';
|
|
1
|
+
import type { C4ManagementApiProps, CloudClientItem } from './c4-management-api.types.js';
|
|
2
2
|
export declare const mockClients: CloudClientItem[];
|
|
3
3
|
export declare const defaultText: {
|
|
4
4
|
title: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ManagementOverviewProps } from './c4-management-overview.types';
|
|
2
|
+
import type { C4ManagementOverviewProps } from './c4-management-overview.types.js';
|
|
3
3
|
export declare const C4ManagementOverview: ({ orgId, overviewItems, loading, }: C4ManagementOverviewProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { C4ManagementSettingsProps } from './c4-management-settings.types';
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import type { C4ManagementSettingsProps } from './c4-management-settings.types.js';
|
|
3
3
|
export declare const C4ManagementSettings: ({ orgId: _orgId, organizationName: _organizationName, hasAcceptedBetaTerms, suppressDropDisks, earlyAccessFeatures, recentlyAcceptedBeta, loading, error, permissions, onLeaveOrganization, onDeleteOrganization, onToggleSuppressDropDisks, onToggleEarlyAccessFeature, onOptInToBeta, onOpenFeatureOptIn, onShareFeedback, onRetry, text, earlyAccessDocsUrl, }: C4ManagementSettingsProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ConnectionSend, Renew, TrashCan } from '@carbon/react/icons/index.esm.js';
|
|
3
|
+
import { useMemo } from 'react';
|
|
3
4
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
4
5
|
import { Button, Link, Stack } from '../../ui/index.js';
|
|
5
6
|
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
@@ -77,14 +78,17 @@ export const C4ManagementSettings = ({ orgId: _orgId, organizationName: _organiz
|
|
|
77
78
|
},
|
|
78
79
|
},
|
|
79
80
|
];
|
|
81
|
+
// Transform early access features to include originalIndex for C3DataTable.
|
|
82
|
+
// Memoized (and kept above the loading guard so the hook runs unconditionally)
|
|
83
|
+
// so the array identity is stable across re-renders and does not reset the
|
|
84
|
+
// data table's page.
|
|
85
|
+
const tableData = useMemo(() => earlyAccessFeatures.map((feature, index) => ({
|
|
86
|
+
...feature,
|
|
87
|
+
originalIndex: index,
|
|
88
|
+
})), [earlyAccessFeatures]);
|
|
80
89
|
if (loading) {
|
|
81
90
|
return _jsx(C4StructuredListSkeleton, { rowCount: 6 });
|
|
82
91
|
}
|
|
83
|
-
// Transform early access features to include originalIndex for C3DataTable
|
|
84
|
-
const tableData = earlyAccessFeatures.map((feature, index) => ({
|
|
85
|
-
...feature,
|
|
86
|
-
originalIndex: index,
|
|
87
|
-
}));
|
|
88
92
|
const component = (_jsxs(Stack, { gap: 6, children: [permissions.mayLeaveOrganization && (_jsx("div", { style: { marginTop: '10px' }, children: _jsxs("div", { style: {
|
|
89
93
|
backgroundColor: 'var(--cds-layer)',
|
|
90
94
|
padding: '20px',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ManagementUsersProps } from './c4-management-users.types';
|
|
2
|
+
import type { C4ManagementUsersProps } from './c4-management-users.types.js';
|
|
3
3
|
export declare const C4ManagementUsers: ({ users, loading, headers, actions, toolbar, banner, }: C4ManagementUsersProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4MultiStepModalProps } from './c4-multi-step-modal.types';
|
|
2
|
+
import type { C4MultiStepModalProps } from './c4-multi-step-modal.types.js';
|
|
3
3
|
export declare const C4MultiStepModal: ({ title, subtitle, steps, isOpen, onClose, preventCloseOnClickOutside, }: C4MultiStepModalProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4MultiStepUglyModalProps } from './c4-multi-step-modal-ugly.types';
|
|
1
|
+
import type { C4MultiStepUglyModalProps } from './c4-multi-step-modal-ugly.types.js';
|
|
2
2
|
export declare const C4MultiStepUglyModal: ({ open, steps, onClose, size, }: C4MultiStepUglyModalProps) => import("react").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type C3NavigationProps } from '@camunda/camunda-composite-components';
|
|
2
2
|
import { type JSX, type ReactNode } from 'react';
|
|
3
|
-
import type { C4FeedbackPayload } from '../c4-feedback-modal/c4-feedback-modal';
|
|
4
|
-
import { type C4HelpCenterData } from '../c4-help-center/c4-help-center';
|
|
3
|
+
import type { C4FeedbackPayload } from '../c4-feedback-modal/c4-feedback-modal.js';
|
|
4
|
+
import { type C4HelpCenterData } from '../c4-help-center/c4-help-center.js';
|
|
5
5
|
export type C4NavigationProps = C3NavigationProps & {
|
|
6
6
|
/**
|
|
7
7
|
* ds-mode only: navigate to a cluster by uuid (the Cluster dropdown). Carbon
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4NumberInputProps } from './c4-number-input.types';
|
|
1
|
+
import type { C4NumberInputProps } from './c4-number-input.types.js';
|
|
2
2
|
export declare const C4NumberInput: ({ label, min, max, step, value, invalid, invalidText, disabled, onChange, }: C4NumberInputProps) => import("react").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4OldDashboardProps } from './c4-old-dashboard.types';
|
|
2
|
+
import type { C4OldDashboardProps } from './c4-old-dashboard.types.js';
|
|
3
3
|
export declare const C4OldDashboard: ({ usersAmount, invitationsAmount, clustersAmount, healthyClustersAmount, updateAvailable, permissions, actions, urls, texts, displayFirstCTA, }: C4OldDashboardProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4OptimizeActivationModalProps } from './c4-optimize-activation-modal.types';
|
|
2
|
+
import type { C4OptimizeActivationModalProps } from './c4-optimize-activation-modal.types.js';
|
|
3
3
|
export declare const C4OptimizeActivationModal: ({ open, description, onClose, onActivate, }: C4OptimizeActivationModalProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types';
|
|
2
|
-
import type { C4TabsProps } from '../c4-tabs/c4-tabs.types';
|
|
1
|
+
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types.js';
|
|
2
|
+
import type { C4TabsProps } from '../c4-tabs/c4-tabs.types.js';
|
|
3
3
|
type C4PageProps = {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
header?: {
|
|
@@ -19,11 +19,16 @@ type C4PageProps = {
|
|
|
19
19
|
kind: any;
|
|
20
20
|
title: any;
|
|
21
21
|
subtitle: any;
|
|
22
|
-
|
|
22
|
+
} & ({
|
|
23
|
+
action: {
|
|
23
24
|
label: string;
|
|
24
25
|
onClick: () => void;
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
onDismiss?: never;
|
|
28
|
+
} | {
|
|
29
|
+
action?: never;
|
|
30
|
+
onDismiss?: () => void;
|
|
31
|
+
});
|
|
27
32
|
children?: React.ReactNode;
|
|
28
33
|
};
|
|
29
34
|
declare const C4PageTemplate: ({ header, tabs, banner, children, loading, breadcrumbs, }: C4PageProps) => import("react").JSX.Element;
|
|
@@ -17,7 +17,7 @@ const gridColumnStyles = { marginInline: 0 };
|
|
|
17
17
|
const C4PageTemplate = ({ header, tabs, banner, children, loading = false, breadcrumbs = { elements: [] }, }) => {
|
|
18
18
|
const designSystem = useC4DesignSystem();
|
|
19
19
|
const inner = (_jsxs("div", { style: { display: 'flex', gap: '2rem', flexDirection: 'column' }, children: [(breadcrumbs.elements?.length || header) && (_jsx(C4Breadcrumb, { ...breadcrumbs, title: header?.title, menu: header?.menuItems, tag: header?.tag, indicator: header?.indicator, loading: loading, codeSnippet: header?.codeSnippet })), banner &&
|
|
20
|
-
(banner.action ? (_jsx(C4ActionableNotification, { appearance: 'banner', kind: banner.kind, title: banner.title, subtitle: banner.subtitle, actionButtonLabel: banner.action.label, onActionButtonClick: banner.action.onClick, lowContrast: true })) : (_jsx(C4InlineNotification, { kind: banner.kind, hideCloseButton:
|
|
20
|
+
(banner.action ? (_jsx(C4ActionableNotification, { appearance: 'banner', kind: banner.kind, title: banner.title, subtitle: banner.subtitle, actionButtonLabel: banner.action.label, onActionButtonClick: banner.action.onClick, lowContrast: true })) : (_jsx(C4InlineNotification, { kind: banner.kind, hideCloseButton: !banner.onDismiss, onCloseButtonClick: banner.onDismiss, title: banner.title, subtitle: banner.subtitle, lowContrast: true }))), tabs && (_jsx(Stack, { orientation: 'vertical', gap: 5, children: _jsx(C4Tabs, { tabs: tabs.list, desiredTabId: tabs?.desiredTabId, onTabChange: tabs?.onChange, loading: loading }) })), children] }));
|
|
21
21
|
// ds: the DS page container (padding + max width). carbon: the original
|
|
22
22
|
// Carbon grid. The inner header/tabs already switch via their own families.
|
|
23
23
|
if (designSystem === 'ds') {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4PermissionErrorPageProps } from './c4-permission-error-page.types';
|
|
2
|
+
import type { C4PermissionErrorPageProps } from './c4-permission-error-page.types.js';
|
|
3
3
|
export declare const C4PermissionErrorPage: ({ title, description, redirectUrl, redirectLabel, onRedirect, }: C4PermissionErrorPageProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4PricingProps } from './c4-pricing.types';
|
|
2
|
+
import type { C4PricingProps } from './c4-pricing.types.js';
|
|
3
3
|
export declare const C4Pricing: ({ title, notification, cards, loading, boxesToTheBottom, }: C4PricingProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4RenameOrganizationModalHandle, C4RenameOrganizationModalProps } from './c4-rename-organization-modal.types';
|
|
1
|
+
import type { C4RenameOrganizationModalHandle, C4RenameOrganizationModalProps } from './c4-rename-organization-modal.types.js';
|
|
2
2
|
export declare const C4RenameOrganizationModal: import("react").ForwardRefExoticComponent<C4RenameOrganizationModalProps & import("react").RefAttributes<C4RenameOrganizationModalHandle>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4SearchResultsProps } from './c4-search-results.types';
|
|
1
|
+
import type { C4SearchResultsProps } from './c4-search-results.types.js';
|
|
2
2
|
export declare const C4SearchResults: (props: C4SearchResultsProps) => import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4SearchProps } from './c4-search.types';
|
|
3
|
-
import type { SearchResults } from './c4-search-results.types';
|
|
2
|
+
import type { C4SearchProps } from './c4-search.types.js';
|
|
3
|
+
import type { SearchResults } from './c4-search-results.types.js';
|
|
4
4
|
export type SearchState = 'init' | 'search' | 'actions' | 'help';
|
|
5
5
|
export interface SearchHooks {
|
|
6
6
|
open: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SearchHooks } from './c4-search';
|
|
2
|
-
import type { C4SearchProps } from './c4-search.types';
|
|
3
|
-
import type { C4SearchResultsProps, SearchResultEntry, SearchResults } from './c4-search-results.types';
|
|
1
|
+
import type { SearchHooks } from './c4-search.js';
|
|
2
|
+
import type { C4SearchProps } from './c4-search.types.js';
|
|
3
|
+
import type { C4SearchResultsProps, SearchResultEntry, SearchResults } from './c4-search-results.types.js';
|
|
4
4
|
export declare class SearchUtils {
|
|
5
5
|
static getAllIdsByResults(results: SearchResults[]): string[];
|
|
6
6
|
static generateSearchResultProps(results: SearchResults[]): C4SearchResultsProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { ClusterDetailsAutomationComponentsProps } from './c4-sm-cluster-details.types';
|
|
2
|
+
import type { ClusterDetailsAutomationComponentsProps } from './c4-sm-cluster-details.types.js';
|
|
3
3
|
export declare const AutomationComponents: (props: ClusterDetailsAutomationComponentsProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4SmClusterDetailsProps } from './c4-sm-cluster-details.types';
|
|
2
|
+
import type { C4SmClusterDetailsProps } from './c4-sm-cluster-details.types.js';
|
|
3
3
|
export declare const C4SmClusterDetails: ({ details, customProperties, breadcrumb, automationComponents, jobDashboardEntryPoint, }: C4SmClusterDetailsProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types';
|
|
2
|
-
import type { ApplicationTileProps, ClusterStatus } from '../c4-cluster-overview/applications';
|
|
3
|
-
import type { C4JobDashboardEntryPointProps } from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types';
|
|
1
|
+
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types.js';
|
|
2
|
+
import type { ApplicationTileProps, ClusterStatus } from '../c4-cluster-overview/applications.js';
|
|
3
|
+
import type { C4JobDashboardEntryPointProps } from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.js';
|
|
4
4
|
export interface ClusterDetailsGeneralProps {
|
|
5
5
|
title: string;
|
|
6
6
|
entries: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { ClusterDetailsCustomPropertiesProps } from './c4-sm-cluster-details.types';
|
|
2
|
+
import type { ClusterDetailsCustomPropertiesProps } from './c4-sm-cluster-details.types.js';
|
|
3
3
|
export declare const CustomProperties: (props: ClusterDetailsCustomPropertiesProps) => JSX.Element | null;
|
|
4
4
|
export declare function customPropertiesAvailable(props: ClusterDetailsCustomPropertiesProps): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { ClusterDetailsGeneralProps } from './c4-sm-cluster-details.types';
|
|
2
|
+
import type { ClusterDetailsGeneralProps } from './c4-sm-cluster-details.types.js';
|
|
3
3
|
export declare const Details: (props: ClusterDetailsGeneralProps) => JSX.Element;
|
|
4
4
|
export declare const SLR: (props: {
|
|
5
5
|
label: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { ClusterDetailsZeebeComponentsProps } from './c4-sm-cluster-details.types';
|
|
2
|
+
import type { ClusterDetailsZeebeComponentsProps } from './c4-sm-cluster-details.types.js';
|
|
3
3
|
export declare const ZeebeComponentGroup: (props: ClusterDetailsZeebeComponentsProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4SmDashboardProps } from './c4-sm-dashboard.types';
|
|
2
|
+
import type { C4SmDashboardProps } from './c4-sm-dashboard.types.js';
|
|
3
3
|
export declare const C4SmDashboard: ({ automation, management, texts, explore, usage, actions, }: C4SmDashboardProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { type ClusterStatus } from '../c4-cluster-overview/applications';
|
|
2
|
+
import { type ClusterStatus } from '../c4-cluster-overview/applications.js';
|
|
3
3
|
export declare const HealthStatus: (props: {
|
|
4
4
|
status: ClusterStatus;
|
|
5
5
|
text?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4StatefulButtonProps } from './c4-stateful-button.types';
|
|
2
|
+
import type { C4StatefulButtonProps } from './c4-stateful-button.types.js';
|
|
3
3
|
export declare const C4StatefulButton: (options: C4StatefulButtonProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4TelemetryPageProps } from './c4-telemetry-page.types';
|
|
2
|
+
import type { C4TelemetryPageProps } from './c4-telemetry-page.types.js';
|
|
3
3
|
export declare const ID_UNSET_COMPONENT = "unset";
|
|
4
4
|
export declare const C4TelemetryPage: ({ intro, managementCluster, automationClusters, texts, theme, loading, }: C4TelemetryPageProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { type ClusterStatus } from '../c4-cluster-overview/applications';
|
|
3
|
-
import type { ComponentMetrics } from './component-metrics';
|
|
2
|
+
import { type ClusterStatus } from '../c4-cluster-overview/applications.js';
|
|
3
|
+
import type { ComponentMetrics } from './component-metrics.js';
|
|
4
4
|
export declare namespace TelemetryForComponent {
|
|
5
5
|
interface ChartProps {
|
|
6
6
|
id: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4TelemetryTeaserPageProps } from './c4-telemetry-teaser-page.types';
|
|
2
|
+
import type { C4TelemetryTeaserPageProps } from './c4-telemetry-teaser-page.types.js';
|
|
3
3
|
export declare const C4TelemetryTeaserPage: ({ hero, topics, teaserCards, footer, }: C4TelemetryTeaserPageProps) => JSX.Element;
|
|
@@ -9,7 +9,7 @@ import '../../themes/future-carbon-light.css';
|
|
|
9
9
|
import '../../themes/future-carbon.css';
|
|
10
10
|
import '../../themes/terminal-light.css';
|
|
11
11
|
import '../../themes/terminal.css';
|
|
12
|
-
import type { C4ThemeSwitcherProps } from './c4-theme-switcher.types';
|
|
12
|
+
import type { C4ThemeSwitcherProps } from './c4-theme-switcher.types.js';
|
|
13
13
|
declare global {
|
|
14
14
|
interface Window {
|
|
15
15
|
enableCamundaThemeSwitcher?: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4TileWithTitleAndActionProps } from './c4-tile-with-title-and-action.types';
|
|
2
|
+
import type { C4TileWithTitleAndActionProps } from './c4-tile-with-title-and-action.types.js';
|
|
3
3
|
export declare const C4TileWithTitleAndAction: ({ title, tooltip, description, descriptionTooltip, children, action, loading, options, }: C4TileWithTitleAndActionProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ToggleProps } from './c4-toggle.types';
|
|
2
|
+
import type { C4ToggleProps } from './c4-toggle.types.js';
|
|
3
3
|
export declare const C4Toggle: ({ id, enabled, notices, onClick, permissions, title, supported, unsupportedNotification, label, }: C4ToggleProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import type { C4TsugaLinksProps } from './c4-tsuga-links.types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Deep-link into the Tsuga log explorer, scoped to a cluster/user/org. Replaces
|
|
5
|
+
* the retired GCP Cloud Logging (Stackdriver) links now that CCMA logs live in
|
|
6
|
+
* Tsuga. Opened on click so the time window is fresh (see `buildTsugaLogsUrl`).
|
|
7
|
+
*/
|
|
8
|
+
export declare const C4TsugaLinks: ({ query }: C4TsugaLinksProps) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
3
|
+
import { buildTsugaLogsUrl } from './tsuga-logs-url.js';
|
|
4
|
+
/**
|
|
5
|
+
* Deep-link into the Tsuga log explorer, scoped to a cluster/user/org. Replaces
|
|
6
|
+
* the retired GCP Cloud Logging (Stackdriver) links now that CCMA logs live in
|
|
7
|
+
* Tsuga. Opened on click so the time window is fresh (see `buildTsugaLogsUrl`).
|
|
8
|
+
*/
|
|
9
|
+
export const C4TsugaLinks = ({ query }) => (_jsx(C4LinkButton, { inline: true, label: 'Logs', onClick: () => window.open(buildTsugaLogsUrl(searchTermOf(query)), '_blank', 'noopener,noreferrer') }));
|
|
10
|
+
function searchTermOf(query) {
|
|
11
|
+
if ('clusterId' in query) {
|
|
12
|
+
return query.clusterId;
|
|
13
|
+
}
|
|
14
|
+
if ('userId' in query) {
|
|
15
|
+
return query.userId;
|
|
16
|
+
}
|
|
17
|
+
return query.orgId;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface C4TsugaLinksProps {
|
|
2
|
+
query: C4TsugaQuery;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* What to scope the Tsuga log search to. The id is matched as a free-text term,
|
|
6
|
+
* so it finds the entity wherever it appears on a log line (message or the
|
|
7
|
+
* `cluster`/`user`/`org` fields).
|
|
8
|
+
*/
|
|
9
|
+
export type C4TsugaQuery = {
|
|
10
|
+
clusterId: string;
|
|
11
|
+
} | {
|
|
12
|
+
userId: string;
|
|
13
|
+
} | {
|
|
14
|
+
orgId: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
const TSUGA_EXPLORER_URL = 'https://app.tsuga.com/explorer';
|
|
7
|
+
/** CCMA logs are tagged with this owning team in Tsuga. */
|
|
8
|
+
const TSUGA_OWNER_TEAM = 'console';
|
|
9
|
+
/**
|
|
10
|
+
* The Tsuga workspace ("cluster") that stores CCMA's logs. This is a Tsuga
|
|
11
|
+
* concept, NOT a Camunda cluster id — it is constant for all CCMA log searches.
|
|
12
|
+
*/
|
|
13
|
+
const TSUGA_WORKSPACE_ID = '8v5j-x2k0n-dzk4';
|
|
14
|
+
/** Columns surfaced next to the message in the explorer. */
|
|
15
|
+
const TSUGA_EXTRA_COLUMNS = ['file', 'fn', 'service'];
|
|
16
|
+
/** Default look-back window (24h), ending at click time. */
|
|
17
|
+
const TSUGA_WINDOW_MS = 24 * 60 * 60 * 1000;
|
|
18
|
+
/**
|
|
19
|
+
* Builds a Tsuga log-explorer deep-link that free-text matches `searchTerm`
|
|
20
|
+
* (a cluster/user/org id) within CCMA's log streams over the last 24h.
|
|
21
|
+
*/
|
|
22
|
+
export function buildTsugaLogsUrl(searchTerm) {
|
|
23
|
+
const now = Date.now();
|
|
24
|
+
const params = new URLSearchParams({
|
|
25
|
+
query: `context.cloud.camunda.io/owner-team:${TSUGA_OWNER_TEAM} AND "${searchTerm}"`,
|
|
26
|
+
extraColumns: JSON.stringify(TSUGA_EXTRA_COLUMNS),
|
|
27
|
+
clusterId: TSUGA_WORKSPACE_ID,
|
|
28
|
+
timeRange: JSON.stringify({
|
|
29
|
+
type: 'absolute',
|
|
30
|
+
from: now - TSUGA_WINDOW_MS,
|
|
31
|
+
to: now,
|
|
32
|
+
}),
|
|
33
|
+
page: '0',
|
|
34
|
+
});
|
|
35
|
+
return `${TSUGA_EXPLORER_URL}?${params.toString()}`;
|
|
36
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4TutorialTileProps } from './c4-tutorial-tile.types';
|
|
2
|
+
import type { C4TutorialTileProps } from './c4-tutorial-tile.types.js';
|
|
3
3
|
export declare const C4TutorialTile: ({ title, img, description, cta, }: C4TutorialTileProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4UsageAlertUpdateModalProps } from './c4-usage-alert-update-modal.types';
|
|
2
|
+
import type { C4UsageAlertUpdateModalProps } from './c4-usage-alert-update-modal.types.js';
|
|
3
3
|
export declare const C4UsageAlertUpdateModal: ({ description, form, notification, }: C4UsageAlertUpdateModalProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { C4UsageHistoryProps } from './c4-usage-history.types';
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import type { C4UsageHistoryProps } from './c4-usage-history.types.js';
|
|
3
3
|
export declare const C4UsageHistory: ({ data, loading, }: C4UsageHistoryProps) => JSX.Element;
|
|
@@ -5,6 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { ChartLineData, TableSplit } from '@carbon/react/icons/index.esm.js';
|
|
8
|
+
import { useMemo } from 'react';
|
|
8
9
|
import { SkeletonPlaceholder, Stack } from '../../ui/index.js';
|
|
9
10
|
import { useTabsFamily } from '../../ui/tabs.js';
|
|
10
11
|
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
@@ -52,7 +53,9 @@ const SimpleHistory = ({ data, headers, displayingDataText, }) => {
|
|
|
52
53
|
label: headers.generalUsers,
|
|
53
54
|
},
|
|
54
55
|
];
|
|
55
|
-
|
|
56
|
+
// Memoized so the mapped array keeps a stable identity across re-renders and
|
|
57
|
+
// does not reset the data table's page.
|
|
58
|
+
const rows = useMemo(() => data.map((row, index) => {
|
|
56
59
|
return {
|
|
57
60
|
id: row.key,
|
|
58
61
|
originalIndex: index,
|
|
@@ -64,7 +67,7 @@ const SimpleHistory = ({ data, headers, displayingDataText, }) => {
|
|
|
64
67
|
taskUsers: row.taskUsers,
|
|
65
68
|
generalUsers: row.generalUsers,
|
|
66
69
|
};
|
|
67
|
-
});
|
|
70
|
+
}), [data]);
|
|
68
71
|
const displayingData = {
|
|
69
72
|
prefix: displayingDataText,
|
|
70
73
|
period: rows.length > 0
|