@camunda/ccma-saas-frontend 0.7.1 → 0.8.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.
Files changed (167) hide show
  1. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +1 -1
  2. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +9 -5
  3. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.types.d.ts +6 -0
  4. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -1
  5. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +9 -0
  6. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +6 -3
  7. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +3 -0
  8. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +9 -0
  9. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +2 -0
  10. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +2 -0
  11. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
  12. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +19 -21
  13. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +19 -2
  14. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +4 -3
  15. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +2 -1
  16. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  17. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +6 -4
  18. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  19. package/lib/esm/components/c4-cluster-overview/applications.d.ts +20 -0
  20. package/lib/esm/components/c4-cluster-overview/applications.js +37 -24
  21. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
  22. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +5 -5
  23. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +6 -1
  24. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +15 -2
  25. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +10 -0
  26. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +7 -0
  27. package/lib/esm/components/c4-cluster-overview/cluster-details.js +5 -2
  28. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +8 -0
  29. package/lib/esm/components/c4-cluster-overview/cluster-load.js +20 -8
  30. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  31. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +4 -2
  32. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  33. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +3 -1
  34. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +7 -3
  35. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -1
  36. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +9 -1
  37. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +69 -12
  38. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +10 -1
  39. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +16 -2
  40. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.d.ts +14 -0
  41. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.js +12 -0
  42. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.d.ts +15 -0
  43. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +10 -0
  44. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +2 -1
  45. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +4 -2
  46. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +24 -3
  47. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
  48. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +1 -0
  49. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +2 -0
  50. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
  51. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +2 -2
  52. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +10 -5
  53. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +10 -0
  54. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -1
  55. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -2
  56. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -2
  57. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
  58. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +7 -2
  59. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +8 -0
  60. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
  61. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
  62. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +10 -5
  63. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +10 -0
  64. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +3 -2
  65. package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
  66. package/lib/esm/components/c4-link-button/c4-link-button.js +2 -2
  67. package/lib/esm/components/c4-link-button/c4-link-button.types.d.ts +6 -0
  68. package/lib/esm/components/c4-page-template/c4-page-template.d.ts +13 -1
  69. package/lib/esm/components/c4-page-template/c4-page-template.js +3 -3
  70. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  71. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts +5 -0
  72. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +2 -1
  73. package/lib/esm/externalUrls.const.d.ts +1 -1
  74. package/lib/esm/externalUrls.const.js +1 -1
  75. package/lib/esm/i18n/c4-console-i18n.js +6 -0
  76. package/lib/esm/i18n/en/pages/clusterdetails.json +28 -3
  77. package/lib/esm/i18n/en/pages/job-dashboard.json +2 -0
  78. package/lib/esm/index.d.ts +13 -3
  79. package/lib/esm/index.js +7 -3
  80. package/lib/esm/runtime/build-cluster-sso-callback-url.d.ts +34 -0
  81. package/lib/esm/runtime/build-cluster-sso-callback-url.js +49 -0
  82. package/lib/esm/runtime/build-cluster-swagger-url.d.ts +7 -2
  83. package/lib/esm/runtime/build-cluster-swagger-url.js +20 -5
  84. package/lib/esm/runtime/index.d.ts +2 -0
  85. package/lib/esm/runtime/index.js +2 -0
  86. package/lib/esm/ui/families.d.ts +4 -0
  87. package/lib/esm/ui/families.js +22 -2
  88. package/lib/esm/utils/safe-translate.d.ts +27 -0
  89. package/lib/esm/utils/safe-translate.js +56 -0
  90. package/lib/esm/utils/section-heading-style.d.ts +13 -0
  91. package/lib/esm/utils/section-heading-style.js +25 -0
  92. package/lib/esm/widgets/c4-widget-scope.types.d.ts +20 -0
  93. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +16 -1
  94. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +92 -74
  95. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +27 -0
  96. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
  97. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +81 -13
  98. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +24 -0
  99. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +3 -2
  100. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +10 -1
  101. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +8 -13
  102. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +42 -2
  103. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +38 -23
  104. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +7 -0
  105. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +26 -5
  106. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +16 -1
  107. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +50 -18
  108. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +174 -3
  109. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.d.ts +13 -0
  110. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.js +29 -0
  111. package/lib/esm/widgets/cluster-health-override.d.ts +16 -0
  112. package/lib/esm/widgets/cluster-health-override.js +33 -0
  113. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  114. package/lib/esm/widgets/clusters/c4-clusters-page.js +10 -10
  115. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +7 -0
  116. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
  117. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +10 -5
  118. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.types.d.ts +9 -0
  119. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
  120. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +10 -5
  121. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.types.d.ts +9 -0
  122. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
  123. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +10 -5
  124. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +9 -0
  125. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  126. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +10 -5
  127. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +10 -0
  128. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  129. package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.d.ts +5 -0
  130. package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.js +66 -0
  131. package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.types.d.ts +21 -0
  132. package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.d.ts +5 -0
  133. package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.js +59 -0
  134. package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.types.d.ts +22 -0
  135. package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.types.js +6 -0
  136. package/lib/esm/widgets/environment/use-cluster-api-clients.d.ts +26 -0
  137. package/lib/esm/widgets/environment/use-cluster-api-clients.js +48 -0
  138. package/lib/esm/widgets/environment/use-cluster-swagger-url.d.ts +22 -0
  139. package/lib/esm/widgets/environment/use-cluster-swagger-url.js +47 -0
  140. package/lib/esm/widgets/environment/use-cluster-version-flags.d.ts +16 -0
  141. package/lib/esm/widgets/environment/use-cluster-version-flags.js +40 -0
  142. package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
  143. package/lib/esm/widgets/job-worker/c4-job-worker-details-page.js +34 -25
  144. package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
  145. package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.js +26 -21
  146. package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +12 -0
  147. package/lib/esm/widgets/job-worker/c4-job-worker.helpers.js +6 -0
  148. package/lib/esm/widgets/job-worker/c4-job-worker.types.d.ts +19 -0
  149. package/package.json +25 -25
  150. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +0 -16
  151. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +0 -40
  152. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.d.ts +0 -16
  153. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +0 -142
  154. package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +0 -14
  155. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +0 -136
  156. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +0 -13
  157. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +0 -58
  158. package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +0 -16
  159. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +0 -118
  160. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +0 -3
  161. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +0 -408
  162. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.d.ts +0 -32
  163. package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +0 -14
  164. package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +0 -5
  165. package/lib/esm/components/c4-advanced-search-filters/utils.js +0 -58
  166. /package/lib/esm/{components/c4-advanced-search-filters/c4-advanced-search-filters.types.js → widgets/c4-widget-scope.types.js} +0 -0
  167. /package/lib/esm/{components/c4-advanced-search-filters/state.types.js → widgets/environment/c4-cluster-api-clients-widget.types.js} +0 -0
@@ -50,6 +50,8 @@
50
50
  "title": "API",
51
51
  "dataTableTitle": "Client credentials",
52
52
  "dataTableSubTitle": "Open a set of credentials to see the base URLs, connection information, and more.",
53
+ "subtitleIdentityPrefix": "To set up permissions, copy the client ID over to the cluster's Admin and configure the required access and roles. Learn more about",
54
+ "subtitleIdentityPrefix_environment": "To set up permissions, copy the client ID over to the environment's Admin and configure the required access and roles. Learn more about",
53
55
  "createButton": "Create new client",
54
56
  "createFirstClient": "Create your first client",
55
57
  "header": {
@@ -68,6 +70,10 @@
68
70
  "title": "Use our secure, scalable API",
69
71
  "text": "Click <strong>Create your first client</strong> to deploy processes, start instances, and interact with them programmatically."
70
72
  },
73
+ "forbidden": {
74
+ "title": "You don't have access to client credentials",
75
+ "description": "You don't have permission to view client credentials for this cluster. Contact an organization owner or admin for access."
76
+ },
71
77
  "details": {
72
78
  "general": "General",
73
79
  "clientId": "Client Id",
@@ -77,7 +83,9 @@
77
83
  "createdBy": "Created by",
78
84
  "lastUsed": "Last used",
79
85
  "connectionInformation": "Connection information",
80
- "connectionInformationDocs": "To connect to this cluster, check the client configuration <0>documentation</0> to learn what information is needed from below.",
86
+ "connectionInformationDocs": {
87
+ "link": "Learn more in the documentation"
88
+ },
81
89
  "clusterId": "Cluster Id",
82
90
  "regionId": "Region Id",
83
91
  "clusterUrl": "Cluster URL",
@@ -116,6 +124,10 @@
116
124
  "button": "Create new secret",
117
125
  "link": "View the secrets documentation"
118
126
  },
127
+ "forbidden": {
128
+ "title": "You don't have access to connector secrets",
129
+ "description": "You don't have permission to view connector secrets for this cluster. Contact an organization owner or admin for access."
130
+ },
119
131
  "errorMessage": {
120
132
  "title": "Oh snap!",
121
133
  "text": "This is embarrassing, we currently can't load your secrets."
@@ -130,9 +142,14 @@
130
142
  "title": "Cluster secrets",
131
143
  "emptyIconAltText": "Cluster secrets icon",
132
144
  "infoText": "Secrets can be used to reference encrypted authentication credentials in your cluster. See the <0>secrets</0> documentation for more details.",
145
+ "infoText_environment": "Secrets can be used to reference encrypted authentication credentials in your environment. See the <0>secrets</0> documentation for more details.",
133
146
  "noSecrets": {
134
147
  "title": "Store credentials safely using Camunda cluster secrets",
135
148
  "description": "Accessing an external system requires authentication with credentials. To ensure the credentials are secure, use the Camunda secrets vault to store usernames, passwords, or API credentials without exposing sensitive information in your BPMN processes."
149
+ },
150
+ "forbidden": {
151
+ "title": "You don't have access to cluster secrets",
152
+ "description": "You don't have permission to view cluster secrets for this cluster. Contact an organization owner or admin for access."
136
153
  }
137
154
  },
138
155
  "hotbackups": {
@@ -325,7 +342,8 @@
325
342
  "operate": "Monitor and troubleshoot workflows",
326
343
  "optimize": "Get insights to improve your processes",
327
344
  "connectors": "Integrate with external systems",
328
- "identity": "Manage authentication and authorization"
345
+ "identity": "Manage authentication and authorization",
346
+ "connectivity": "Public access to your cluster"
329
347
  },
330
348
  "optimize": {
331
349
  "disabled": {
@@ -454,7 +472,8 @@
454
472
  },
455
473
  "current": "Current",
456
474
  "tooltip": "Cluster load: Indicates how much of the cluster's resources are in use.",
457
- "docs": "Learn more about cluster load"
475
+ "docs": "Learn more about cluster load",
476
+ "reload": "Reload"
458
477
  }
459
478
  },
460
479
  "auditLog": {
@@ -655,6 +674,12 @@
655
674
  "msTeamsLinkText": "Microsoft Teams",
656
675
  "descriptionDisabled": "When disabled, you can still use App Integrations, but they work with reduced functionality."
657
676
  },
677
+ "optionalTelemetry": {
678
+ "tileTitle": "Optional telemetry",
679
+ "description": "Camunda collects optional usage data from this cluster to improve our products. When disabled, Camunda still collects contractual telemetry, which is required and can't be turned off.",
680
+ "title": "Enable optional telemetry",
681
+ "confirmBody": "Turning off optional telemetry restarts your cluster. Your cluster is briefly unavailable while it restarts. Camunda still collects contractual telemetry, which is required and can't be turned off."
682
+ },
658
683
  "tasklistMode": {
659
684
  "title": "Upgrade to Tasklist v2",
660
685
  "warning": "This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput.",
@@ -2,6 +2,7 @@
2
2
  "overview": {
3
3
  "title": "Job types",
4
4
  "description": "View all Job types running against the cluster.",
5
+ "description_environment": "View all job types running against the environment.",
5
6
  "learnMoreLabel": "See more information about job types here.",
6
7
  "search": {
7
8
  "label": "Search"
@@ -80,6 +81,7 @@
80
81
  "empty": {
81
82
  "title": "No data available.",
82
83
  "description": "No data was found for this cluster.",
84
+ "description_environment": "No data was found for this environment.",
83
85
  "learnMoreLabel": "Learn more about jobs and job workers"
84
86
  },
85
87
  "generalError": {
@@ -3,8 +3,6 @@ export { C4ActionableNotification } from './components/c4-actionable-notificatio
3
3
  export type { C4ActionableNotificationProps } from './components/c4-actionable-notification/c4-actionable-notification.types.js';
4
4
  export { C4ActivityGraph } from './components/c4-activity-graph/c4-activity-graph.js';
5
5
  export type { C4ActivityGraphProps } from './components/c4-activity-graph/c4-activity-graph.types.js';
6
- export { C4AdvancedSearchFilters } from './components/c4-advanced-search-filters/c4-advanced-search-filters.js';
7
- export type { AdvancedFilterOperator, C4AdvancedSearchFiltersProps, FieldSpec, FieldSpecMap, FilterPayload, } from './components/c4-advanced-search-filters/c4-advanced-search-filters.types.js';
8
6
  export { C4AiUsage } from './components/c4-ai-usage/c4-ai-usage.js';
9
7
  export type { C4AiUsageProps } from './components/c4-ai-usage/c4-ai-usage.types.js';
10
8
  export { C4AlphaClusterAtCheckout } from './components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js';
@@ -200,7 +198,10 @@ export { openC4CreateConsoleApiClientModal, setC4CreateConsoleApiClientModalHand
200
198
  export { openC4InviteUserToOrganizationModal, setC4InviteUserToOrganizationModalHandle, } from './modals/c4-invite-user-to-organization-modal-handle.js';
201
199
  export { openC4RenameOrganizationModal, setC4RenameOrganizationModalHandle, } from './modals/c4-rename-organization-modal-handle.js';
202
200
  export type { AccountsPermissions, AddC4ConsoleNotificationOptions, C4BreadcrumbCrumb, C4BreadcrumbDropdownItem, C4ClusterNavAppEntry, C4ClusterNavEntry, C4ConsoleAuthzFeatures, C4ConsoleAuthzState, C4ConsoleDataState, C4ConsoleEventsProviderProps, C4ConsoleNotification, C4ConsoleNotificationAction, C4ConsoleNotificationKind, C4ConsoleNotificationsState, C4ConsoleRuntimeConfig, C4ConsoleVisibilities, C4ResolvedTheme, C4ThemePreference, C4UserNotificationsProviderProps, C4UserNotificationsState, C4UserThemeState, CacheState, CamundaWebApp, ConsoleAuth, ConsoleBackendUrls, ConsoleClickwrapConfig, ConsoleClusterDto, ConsolePermissions, ConsolePublicUrls, ConsoleStage, ConsoleTelemetry, ConsoleUser, ExternalClusterDto, ExternalOrganizationDto, NotificationDto, OrganizationPermissions, OrganizationRole, OrgCache, SseEntity, UpgradableGenerationsDto, UseC4ClusterNavEntriesOptions, UseC4WebappBreadcrumbDataOptions, } from './runtime/index.js';
203
- export { addC4ConsoleNotification, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4DesignSystem, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
201
+ export { addC4ConsoleNotification, buildClusterSsoCallbackUrl, buildClusterSwaggerUrl, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4DesignSystem, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
202
+ export type { TranslateFn } from './utils/safe-translate.js';
203
+ export { ENVIRONMENT_KEY_SUFFIX, safeTranslate, scopedTranslate, } from './utils/safe-translate.js';
204
+ export type { C4WidgetScope } from './widgets/c4-widget-scope.types.js';
204
205
  export { C4ClusterClientDetailsApp } from './widgets/cluster-client-details/c4-cluster-client-details-app.js';
205
206
  export type { C4ClusterClientDetailsAppProps } from './widgets/cluster-client-details/c4-cluster-client-details-app.types.js';
206
207
  export { C4ClusterDetailsApp } from './widgets/cluster-details/c4-cluster-details-app.js';
@@ -222,6 +223,15 @@ export { C4CreateClusterPage } from './widgets/create-cluster/c4-create-cluster-
222
223
  export type { C4CreateClusterExternalLinks, C4CreateClusterNavigateEvent, C4CreateClusterPageProps, } from './widgets/create-cluster/c4-create-cluster-page.types.js';
223
224
  export { C4DashboardApp } from './widgets/dashboard/c4-dashboard-app.js';
224
225
  export type { C4DashboardAppProps, C4DashboardNavigateEvent, } from './widgets/dashboard/c4-dashboard-app.types.js';
226
+ export { C4ClusterApiClientsWidget } from './widgets/environment/c4-cluster-api-clients-widget.js';
227
+ export type { C4ClusterApiClientsWidgetProps } from './widgets/environment/c4-cluster-api-clients-widget.types.js';
228
+ export { C4ClusterConnectorSecretsWidget } from './widgets/environment/c4-cluster-connector-secrets-widget.js';
229
+ export type { C4ClusterConnectorSecretsWidgetProps } from './widgets/environment/c4-cluster-connector-secrets-widget.types.js';
230
+ export type { ClusterApiClientsState } from './widgets/environment/use-cluster-api-clients.js';
231
+ export { useClusterApiClients } from './widgets/environment/use-cluster-api-clients.js';
232
+ export { useClusterSwaggerUrl } from './widgets/environment/use-cluster-swagger-url.js';
233
+ export type { ClusterVersionFlags } from './widgets/environment/use-cluster-version-flags.js';
234
+ export { useClusterVersionFlags } from './widgets/environment/use-cluster-version-flags.js';
225
235
  export { C4GroupDetailsPage } from './widgets/group-details/c4-group-details-page.js';
226
236
  export type { C4GroupDetailsExternalLinks, C4GroupDetailsNavigateEvent, C4GroupDetailsPageProps, } from './widgets/group-details/c4-group-details-page.types.js';
227
237
  export type { C4JobWorkerDetailsPageProps, C4JobWorkerNavigateEvent, C4JobWorkerOverviewPageProps, } from './widgets/job-worker/c4-job-worker.types.js';
package/lib/esm/index.js CHANGED
@@ -6,8 +6,6 @@
6
6
  export { C4_ASSET_URLS } from './assetUrls.js';
7
7
  export { C4ActionableNotification } from './components/c4-actionable-notification/c4-actionable-notification.js';
8
8
  export { C4ActivityGraph } from './components/c4-activity-graph/c4-activity-graph.js';
9
- // Re-export chart definition types for consumers
10
- export { C4AdvancedSearchFilters } from './components/c4-advanced-search-filters/c4-advanced-search-filters.js';
11
9
  export { C4AiUsage } from './components/c4-ai-usage/c4-ai-usage.js';
12
10
  export { C4AlphaClusterAtCheckout } from './components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js';
13
11
  export { C4AppTeaserCard } from './components/c4-app-teaser-card/c4-app-teaster-card.js';
@@ -114,7 +112,8 @@ export { openC4RenameOrganizationModal, setC4RenameOrganizationModalHandle, } fr
114
112
  // re-listed per module, so the package root and the
115
113
  // `@camunda/ccma-saas-frontend/runtime` subpath expose one identical surface.
116
114
  // Add runtime exports in `src/runtime/index.ts` and mirror them here.
117
- export { addC4ConsoleNotification, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4DesignSystem, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
115
+ export { addC4ConsoleNotification, buildClusterSsoCallbackUrl, buildClusterSwaggerUrl, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4DesignSystem, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
116
+ export { ENVIRONMENT_KEY_SUFFIX, safeTranslate, scopedTranslate, } from './utils/safe-translate.js';
118
117
  export { C4ClusterClientDetailsApp } from './widgets/cluster-client-details/c4-cluster-client-details-app.js';
119
118
  export { C4ClusterDetailsApp } from './widgets/cluster-details/c4-cluster-details-app.js';
120
119
  export { C4ClusterDetailsPage } from './widgets/cluster-details/c4-cluster-details-page.js';
@@ -126,6 +125,11 @@ export { C4ConnectorManagementOutboundDetailsPage } from './widgets/connector-ma
126
125
  export { C4ConnectorManagementPage } from './widgets/connector-management/c4-connector-management-page.js';
127
126
  export { C4CreateClusterPage } from './widgets/create-cluster/c4-create-cluster-page.js';
128
127
  export { C4DashboardApp } from './widgets/dashboard/c4-dashboard-app.js';
128
+ export { C4ClusterApiClientsWidget } from './widgets/environment/c4-cluster-api-clients-widget.js';
129
+ export { C4ClusterConnectorSecretsWidget } from './widgets/environment/c4-cluster-connector-secrets-widget.js';
130
+ export { useClusterApiClients } from './widgets/environment/use-cluster-api-clients.js';
131
+ export { useClusterSwaggerUrl } from './widgets/environment/use-cluster-swagger-url.js';
132
+ export { useClusterVersionFlags } from './widgets/environment/use-cluster-version-flags.js';
129
133
  export { C4GroupDetailsPage } from './widgets/group-details/c4-group-details-page.js';
130
134
  export { C4JobWorkerDetailsPage } from './widgets/job-worker/c4-job-worker-details-page.js';
131
135
  export { C4JobWorkerOverviewPage } from './widgets/job-worker/c4-job-worker-overview-page.js';
@@ -0,0 +1,34 @@
1
+ import type { ConsoleClusterDto } from '@camunda/ccma-shared-types';
2
+ import type { ConsoleStage } from './c4-console-runtime.types.js';
3
+ /**
4
+ * Builds the OIDC callback URL an admin registers with their own identity
5
+ * provider (#9866).
6
+ *
7
+ * The path is Spring's default (`{baseUrl}/sso-callback`) and is not
8
+ * configurable, so an admin had no way to find this out from Console and had to
9
+ * be told out of band. This is not the `post_logout_redirect_uri`, which is a
10
+ * different URL used only during logout.
11
+ *
12
+ * Shape: `https://{regionId}.api.{domain}/sso-callback?uuid={clusterId}`, for
13
+ * example `https://bru-2.api.camunda.io/sso-callback?uuid={clusterId}`.
14
+ *
15
+ * The region id comes from the first label of the operator-written
16
+ * `status.operateUrl`, the same source `buildClusterSwaggerUrl` uses. Console
17
+ * does not hold the region slug itself: `K8sContext.region` carries the cloud
18
+ * region (`us-east-1`) and `K8sContext.name` a display label, so the operator's
19
+ * own hostname is the only place the slug appears.
20
+ *
21
+ * Returns `undefined` when the URL cannot be built for certain:
22
+ * - The cluster status carries no `operateUrl` yet, because the cluster is
23
+ * still in creation.
24
+ * - The `operateUrl` does not parse, or carries no region label.
25
+ *
26
+ * A wrong redirect URI fails at login, and it fails inside the customer's
27
+ * identity provider where Console cannot see it. So this returns nothing rather
28
+ * than a guess, and the caller shows nothing rather than something to copy.
29
+ */
30
+ export declare function buildClusterSsoCallbackUrl(params: {
31
+ cluster: Pick<ConsoleClusterDto, 'status'> | undefined;
32
+ clusterId: string;
33
+ stage: ConsoleStage;
34
+ }): string | undefined;
@@ -0,0 +1,49 @@
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
+ */
5
+ import { toServiceDomain } from './to-api-domain.js';
6
+ /**
7
+ * Builds the OIDC callback URL an admin registers with their own identity
8
+ * provider (#9866).
9
+ *
10
+ * The path is Spring's default (`{baseUrl}/sso-callback`) and is not
11
+ * configurable, so an admin had no way to find this out from Console and had to
12
+ * be told out of band. This is not the `post_logout_redirect_uri`, which is a
13
+ * different URL used only during logout.
14
+ *
15
+ * Shape: `https://{regionId}.api.{domain}/sso-callback?uuid={clusterId}`, for
16
+ * example `https://bru-2.api.camunda.io/sso-callback?uuid={clusterId}`.
17
+ *
18
+ * The region id comes from the first label of the operator-written
19
+ * `status.operateUrl`, the same source `buildClusterSwaggerUrl` uses. Console
20
+ * does not hold the region slug itself: `K8sContext.region` carries the cloud
21
+ * region (`us-east-1`) and `K8sContext.name` a display label, so the operator's
22
+ * own hostname is the only place the slug appears.
23
+ *
24
+ * Returns `undefined` when the URL cannot be built for certain:
25
+ * - The cluster status carries no `operateUrl` yet, because the cluster is
26
+ * still in creation.
27
+ * - The `operateUrl` does not parse, or carries no region label.
28
+ *
29
+ * A wrong redirect URI fails at login, and it fails inside the customer's
30
+ * identity provider where Console cannot see it. So this returns nothing rather
31
+ * than a guess, and the caller shows nothing rather than something to copy.
32
+ */
33
+ export function buildClusterSsoCallbackUrl(params) {
34
+ const operateUrl = params.cluster?.status?.operateUrl;
35
+ if (!operateUrl)
36
+ return undefined;
37
+ let regionId;
38
+ try {
39
+ regionId = new URL(operateUrl).hostname.split('.')[0];
40
+ }
41
+ catch {
42
+ return undefined;
43
+ }
44
+ // A hostname with no label before the first dot, or one that is the bare
45
+ // domain, gives nothing to build on.
46
+ if (!regionId || regionId === operateUrl)
47
+ return undefined;
48
+ return `https://${regionId}.${toServiceDomain(params.stage, 'api')}/sso-callback?uuid=${params.clusterId}`;
49
+ }
@@ -3,8 +3,13 @@ import type { ConsoleStage } from './c4-console-runtime.types.js';
3
3
  /**
4
4
  * Builds the cluster-specific Swagger UI URL.
5
5
  *
6
- * Returns `undefined` when the swagger feature is disabled or when the cluster
7
- * status does not yet carry an operateUrl (e.g. cluster is still being created).
6
+ * Returns `undefined` in these cases:
7
+ * - The cluster's Zeebe version is older than `SWAGGER_MIN_VERSION`, or the
8
+ * version is missing or invalid.
9
+ * - The swagger feature is disabled for the cluster.
10
+ * - The cluster status carries no operateUrl yet, because the cluster is still
11
+ * in creation.
12
+ * - The operateUrl does not parse as a valid URL.
8
13
  *
9
14
  * URL format depends on the cluster generation version:
10
15
  * - Camunda 8.8.x: https://{regionId}.operate.{domain}/{clusterId}/swagger-ui/index.html
@@ -3,13 +3,18 @@
3
3
  * under one or more contributor license agreements. Licensed under a commercial license.
4
4
  * You may not use this file except in compliance with the commercial license.
5
5
  */
6
- import { checkVersion, SWAGGER_URL_8_9_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
6
+ import { checkVersion, SWAGGER_MIN_VERSION, SWAGGER_URL_8_9_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
7
7
  import { toServiceDomain } from './to-api-domain.js';
8
8
  /**
9
9
  * Builds the cluster-specific Swagger UI URL.
10
10
  *
11
- * Returns `undefined` when the swagger feature is disabled or when the cluster
12
- * status does not yet carry an operateUrl (e.g. cluster is still being created).
11
+ * Returns `undefined` in these cases:
12
+ * - The cluster's Zeebe version is older than `SWAGGER_MIN_VERSION`, or the
13
+ * version is missing or invalid.
14
+ * - The swagger feature is disabled for the cluster.
15
+ * - The cluster status carries no operateUrl yet, because the cluster is still
16
+ * in creation.
17
+ * - The operateUrl does not parse as a valid URL.
13
18
  *
14
19
  * URL format depends on the cluster generation version:
15
20
  * - Camunda 8.8.x: https://{regionId}.operate.{domain}/{clusterId}/swagger-ui/index.html
@@ -18,7 +23,18 @@ import { toServiceDomain } from './to-api-domain.js';
18
23
  export function buildClusterSwaggerUrl(params) {
19
24
  const swaggerEnabled = params.cluster.externalMetadata?.swagger ?? true;
20
25
  const operateUrl = params.cluster?.status?.operateUrl;
21
- if (!swaggerEnabled || !operateUrl) {
26
+ const zeebeVersion = params.cluster.generation?.versions?.zeebe;
27
+ // A cluster older than this floor serves no Swagger UI at either URL shape.
28
+ // Without this gate the function still builds a correct 8.8 URL for it. A
29
+ // caller that only tests for `undefined` then shows a dead "Open Swagger UI".
30
+ const supportsSwagger = checkVersion({
31
+ possiblyVersionOrDockerPath: zeebeVersion,
32
+ trueForSnapshot: true,
33
+ trueOnInvalidVersion: false,
34
+ versionToCompareTo: SWAGGER_MIN_VERSION,
35
+ operator: VersionCheckOperator.GreaterThanOrEqual,
36
+ });
37
+ if (!supportsSwagger || !swaggerEnabled || !operateUrl) {
22
38
  return undefined;
23
39
  }
24
40
  let regionId;
@@ -28,7 +44,6 @@ export function buildClusterSwaggerUrl(params) {
28
44
  catch {
29
45
  return undefined;
30
46
  }
31
- const zeebeVersion = params.cluster.generation?.versions?.zeebe;
32
47
  const is89OrHigher = checkVersion({
33
48
  possiblyVersionOrDockerPath: zeebeVersion,
34
49
  trueForSnapshot: true,
@@ -21,6 +21,8 @@
21
21
  */
22
22
  export type { AccountsPermissions, CamundaWebApp, ConsoleClusterDto, ConsolePermissions, ExternalClusterDto, ExternalOrganizationDto, NotificationDto, OrganizationPermissions, OrganizationRole, SseEntity, UpgradableGenerationsDto, } from '@camunda/ccma-shared-types';
23
23
  export { addC4ConsoleNotification, removeC4ConsoleNotificationById, setC4ConsoleNotificationsHandle, } from '../notifications/c4-console-notifications-handle.js';
24
+ export { buildClusterSsoCallbackUrl } from './build-cluster-sso-callback-url.js';
25
+ export { buildClusterSwaggerUrl } from './build-cluster-swagger-url.js';
24
26
  export type { C4ConsoleAuthzFeatures, C4ConsoleAuthzState, C4ConsoleVisibilities, } from './c4-console-authz.js';
25
27
  export { useC4ConsoleAuthz } from './c4-console-authz.js';
26
28
  export { C4ConsoleDataProvider, useC4ConsoleData, } from './c4-console-data-context.js';
@@ -7,6 +7,8 @@
7
7
  // request failures, and a host app calls `setC4ConsoleNotificationsHandle` to
8
8
  // receive them. The module itself is a dependency-free leaf.
9
9
  export { addC4ConsoleNotification, removeC4ConsoleNotificationById, setC4ConsoleNotificationsHandle, } from '../notifications/c4-console-notifications-handle.js';
10
+ export { buildClusterSsoCallbackUrl } from './build-cluster-sso-callback-url.js';
11
+ export { buildClusterSwaggerUrl } from './build-cluster-swagger-url.js';
10
12
  export { useC4ConsoleAuthz } from './c4-console-authz.js';
11
13
  export { C4ConsoleDataProvider, useC4ConsoleData, } from './c4-console-data-context.js';
12
14
  export { C4ConsoleEventsProvider, useC4ConsoleEventsState, } from './c4-console-events-context.js';
@@ -40,3 +40,7 @@ export declare const useBreadcrumbFamily: () => {
40
40
  Breadcrumb: import("react").ForwardRefExoticComponent<import("@carbon/react").BreadcrumbProps & import("react").RefAttributes<HTMLElement>>;
41
41
  BreadcrumbItem: import("react").ForwardRefExoticComponent<import("@carbon/react").BreadcrumbItemProps & import("react").RefAttributes<HTMLLIElement>>;
42
42
  };
43
+ export declare const useDatePickerFamily: () => {
44
+ DatePicker: import("react").ForwardRefExoticComponent<import("@carbon/react").DatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
45
+ DatePickerInput: import("react").ForwardRefExoticComponent<import("@carbon/react").DatePickerInputProps & import("react").RefAttributes<HTMLDivElement>>;
46
+ };
@@ -3,8 +3,9 @@
3
3
  * under one or more contributor license agreements. Licensed under a commercial license.
4
4
  * You may not use this file except in compliance with the commercial license.
5
5
  */
6
- import { Breadcrumb as DsBreadcrumb, BreadcrumbItem as DsBreadcrumbItem, ContentSwitcher as DsContentSwitcher, MenuButton as DsMenuButton, MenuItem as DsMenuItem, RadioButton as DsRadioButton, RadioButtonGroup as DsRadioButtonGroup, Select as DsSelect, SelectItem as DsSelectItem, Switch as DsSwitch, } from '@camunda/design-system/carbon-compat';
7
- import { Breadcrumb as CarbonBreadcrumb, BreadcrumbItem as CarbonBreadcrumbItem, ContentSwitcher as CarbonContentSwitcher, MenuButton as CarbonMenuButton, MenuItem as CarbonMenuItem, RadioButton as CarbonRadioButton, RadioButtonGroup as CarbonRadioButtonGroup, Select as CarbonSelect, SelectItem as CarbonSelectItem, Switch as CarbonSwitch, } from '@carbon/react';
6
+ import { Breadcrumb as DsBreadcrumb, BreadcrumbItem as DsBreadcrumbItem, ContentSwitcher as DsContentSwitcher, DatePicker as DsDatePicker, DatePickerInput as DsDatePickerInput, MenuButton as DsMenuButton, MenuItem as DsMenuItem, RadioButton as DsRadioButton, RadioButtonGroup as DsRadioButtonGroup, Select as DsSelect, SelectItem as DsSelectItem, Switch as DsSwitch, } from '@camunda/design-system/carbon-compat';
7
+ import { Breadcrumb as CarbonBreadcrumb, BreadcrumbItem as CarbonBreadcrumbItem, ContentSwitcher as CarbonContentSwitcher, DatePicker as CarbonDatePicker, DatePickerInput as CarbonDatePickerInput, MenuButton as CarbonMenuButton, MenuItem as CarbonMenuItem, RadioButton as CarbonRadioButton, RadioButtonGroup as CarbonRadioButtonGroup, Select as CarbonSelect, SelectItem as CarbonSelectItem, Switch as CarbonSwitch, } from '@carbon/react';
8
+ import { createElement } from 'react';
8
9
  import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
9
10
  /**
10
11
  * Compound-family switching for c4.
@@ -44,3 +45,22 @@ export const useBreadcrumbFamily = makeFamily({ Breadcrumb: CarbonBreadcrumb, Br
44
45
  Breadcrumb: DsBreadcrumb,
45
46
  BreadcrumbItem: DsBreadcrumbItem,
46
47
  });
48
+ /**
49
+ * DS renders a date range as ONE control, so it composes the trigger label from
50
+ * the two `DatePickerInput` `labelText`s and joins them with a separator. The
51
+ * upstream default is the word "to", which reads badly for the relational
52
+ * labels our call sites pass ("From" + "To" -> "From to To"). An en dash reads
53
+ * better, so the label becomes "From" en dash "To".
54
+ *
55
+ * The separator goes after the spread, so a call site cannot set it: the prop
56
+ * has no Carbon equivalent, and Carbon puts props it does not know on its
57
+ * wrapper element. Call sites keep the Carbon props, which is why they can not
58
+ * name it in the first place.
59
+ */
60
+ function DsRangeLabelDatePicker(props) {
61
+ return createElement(DsDatePicker, { ...props, rangeLabelSeparator: '\u2013' });
62
+ }
63
+ export const useDatePickerFamily = makeFamily({ DatePicker: CarbonDatePicker, DatePickerInput: CarbonDatePickerInput }, {
64
+ DatePicker: DsRangeLabelDatePicker,
65
+ DatePickerInput: DsDatePickerInput,
66
+ });
@@ -0,0 +1,27 @@
1
+ import type { C4WidgetScope } from '../widgets/c4-widget-scope.types.js';
2
+ export type TranslateFn = (key: string) => string;
3
+ /**
4
+ * Key suffix carrying the environment-scoped wording of a copy string. Follows
5
+ * the i18next context convention so both wordings can be translated
6
+ * independently.
7
+ */
8
+ export declare const ENVIRONMENT_KEY_SUFFIX = "_environment";
9
+ /**
10
+ * A translation lookup that always yields something renderable: the fallback
11
+ * when there is no `t`, when `t` echoes the key back untranslated (with or
12
+ * without its namespace), when it returns an empty string, or when it throws.
13
+ *
14
+ * c4 widgets take `t` from the host runtime, which may not have the c4 bundles
15
+ * registered at all, so every lookup needs a built-in English fallback.
16
+ */
17
+ export declare function safeTranslate(t: TranslateFn | undefined, key: string, fallback: string): string;
18
+ /**
19
+ * Resolves a copy string that reads differently per scope: `key` in `'cluster'`
20
+ * scope, `<key>_environment` in `'environment'` scope, each with its own English
21
+ * fallback.
22
+ *
23
+ * Only use this for copy that actually *describes the surface* ("…running
24
+ * against the cluster"). A product feature name is not scoped copy — see
25
+ * `docs/environment-embedding.md`.
26
+ */
27
+ export declare function scopedTranslate(t: TranslateFn | undefined, scope: C4WidgetScope, key: string, clusterFallback: string, environmentFallback: string): string;
@@ -0,0 +1,56 @@
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
+ /**
7
+ * Key suffix carrying the environment-scoped wording of a copy string. Follows
8
+ * the i18next context convention so both wordings can be translated
9
+ * independently.
10
+ */
11
+ export const ENVIRONMENT_KEY_SUFFIX = '_environment';
12
+ /**
13
+ * A translation lookup that always yields something renderable: the fallback
14
+ * when there is no `t`, when `t` echoes the key back untranslated (with or
15
+ * without its namespace), when it returns an empty string, or when it throws.
16
+ *
17
+ * c4 widgets take `t` from the host runtime, which may not have the c4 bundles
18
+ * registered at all, so every lookup needs a built-in English fallback.
19
+ */
20
+ export function safeTranslate(t, key, fallback) {
21
+ if (!t)
22
+ return fallback;
23
+ let translated;
24
+ try {
25
+ translated = t(key);
26
+ }
27
+ catch {
28
+ return fallback;
29
+ }
30
+ if (!translated || translated === key) {
31
+ return fallback;
32
+ }
33
+ // i18next can return the key *without* the namespace when the namespace is
34
+ // missing: `clusterdetails:searchLabel` -> `searchLabel`. That is a miss too.
35
+ if (key.includes(':')) {
36
+ const withoutNamespace = key.split(':').slice(1).join(':');
37
+ if (translated === withoutNamespace) {
38
+ return fallback;
39
+ }
40
+ }
41
+ return translated;
42
+ }
43
+ /**
44
+ * Resolves a copy string that reads differently per scope: `key` in `'cluster'`
45
+ * scope, `<key>_environment` in `'environment'` scope, each with its own English
46
+ * fallback.
47
+ *
48
+ * Only use this for copy that actually *describes the surface* ("…running
49
+ * against the cluster"). A product feature name is not scoped copy — see
50
+ * `docs/environment-embedding.md`.
51
+ */
52
+ export function scopedTranslate(t, scope, key, clusterFallback, environmentFallback) {
53
+ return scope === 'environment'
54
+ ? safeTranslate(t, `${key}${ENVIRONMENT_KEY_SUFFIX}`, environmentFallback)
55
+ : safeTranslate(t, key, clusterFallback);
56
+ }
@@ -0,0 +1,13 @@
1
+ import type { CSSProperties } from 'react';
2
+ /**
3
+ * A card's own internal title (e.g. a sub-section heading inside a Tile),
4
+ * pinned to an explicit size/weight so it can't inherit a host's ambient
5
+ * heading styles when this widget is embedded outside Console — the same bug
6
+ * a blanket tag-based CSS rule couldn't fix without also shrinking
7
+ * `C4Breadcrumb`'s page title, which uses the same bare tag for a different
8
+ * purpose. Bare h2-h4 elements are pinned individually at their own source
9
+ * with this style instead — see `c4-ui.css`.
10
+ */
11
+ export declare const SECTION_HEADING_STYLE: CSSProperties;
12
+ /** A heading nested a level deeper than `SECTION_HEADING_STYLE`, inside another section's own title. */
13
+ export declare const SECTION_SUBHEADING_STYLE: CSSProperties;
@@ -0,0 +1,25 @@
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
+ /**
7
+ * A card's own internal title (e.g. a sub-section heading inside a Tile),
8
+ * pinned to an explicit size/weight so it can't inherit a host's ambient
9
+ * heading styles when this widget is embedded outside Console — the same bug
10
+ * a blanket tag-based CSS rule couldn't fix without also shrinking
11
+ * `C4Breadcrumb`'s page title, which uses the same bare tag for a different
12
+ * purpose. Bare h2-h4 elements are pinned individually at their own source
13
+ * with this style instead — see `c4-ui.css`.
14
+ */
15
+ export const SECTION_HEADING_STYLE = {
16
+ margin: 0,
17
+ fontSize: '16px',
18
+ fontWeight: 600,
19
+ };
20
+ /** A heading nested a level deeper than `SECTION_HEADING_STYLE`, inside another section's own title. */
21
+ export const SECTION_SUBHEADING_STYLE = {
22
+ margin: 0,
23
+ fontSize: '14px',
24
+ fontWeight: 600,
25
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The surface a widget is rendered on.
3
+ *
4
+ * On SaaS a cluster hosts exactly one environment, so several surfaces (job
5
+ * workers, connectors, API clients, connector secrets) are reachable from both a
6
+ * cluster page and an environment page. The scope tells the widget which wording
7
+ * to use and whether it owns its own chrome.
8
+ *
9
+ * - `'cluster'` (default) — the widget is the cluster-scoped page. It uses
10
+ * cluster wording and renders its own `Clusters → <cluster>` breadcrumb and
11
+ * page padding. This is the only behaviour that existed before the prop, and
12
+ * it stays byte-identical.
13
+ * - `'environment'` — the widget is embedded in a host's environment page. It
14
+ * renders **no breadcrumb of its own** and **no page padding**, because the
15
+ * host page owns navigation and spacing, and it uses environment wording for
16
+ * copy that actually describes the surface. A widget whose copy is
17
+ * scope-neutral has no scoped keys; there the only effects are the suppressed
18
+ * breadcrumb and padding. See each widget's `scope` prop for what it does.
19
+ */
20
+ export type C4WidgetScope = 'cluster' | 'environment';
@@ -1,7 +1,22 @@
1
- import { type HdpPrometheusDataCapacityDataPoint } from '@camunda/ccma-shared-types';
1
+ import { type ConsoleClusterDto, deriveSecondaryStorageStatus, type HdpPrometheusDataCapacityDataPoint } from '@camunda/ccma-shared-types';
2
2
  import { type JSX } from 'react';
3
3
  import type { C4ClusterDetailsAppProps } from './c4-cluster-details-app.types.js';
4
4
  export declare function mergeNestedSnapshot<T>(previous: T | undefined, next: T): T;
5
+ /**
6
+ * True when this is a dual-region BYOK cluster and the secondary region's
7
+ * key is not accessible. Exported (and kept pure) so both the header
8
+ * indicator and the Encryption tab's own warning read the same computation,
9
+ * and so this can be tested without rendering the full component.
10
+ *
11
+ * Gated on `encryption === 'External'` to match the Encryption tab's own
12
+ * visibility (`tab.visible` below) — otherwise the header indicator could
13
+ * tell the customer to click through to a tab that is not shown.
14
+ */
15
+ export declare function computeSecondaryReplicationNotReady(cluster: Pick<ConsoleClusterDto, 'encryption' | 'backupRegionCodes'> & {
16
+ status?: {
17
+ conditions?: Parameters<typeof deriveSecondaryStorageStatus>[0];
18
+ };
19
+ }): boolean;
5
20
  export declare function ensureClusterLoadPerDay(perDay: HdpPrometheusDataCapacityDataPoint[]): HdpPrometheusDataCapacityDataPoint[];
6
21
  export declare function ensureClusterLoad24h(last24h: HdpPrometheusDataCapacityDataPoint[]): HdpPrometheusDataCapacityDataPoint[];
7
22
  export declare const C4ClusterDetailsApp: ((props: C4ClusterDetailsAppProps) => JSX.Element) & {