@camunda/ccma-saas-frontend 0.31.1 → 0.32.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.
@@ -7,9 +7,13 @@ import { type TwoPhaseUpgradeMode, type TwoPhaseUpgradeStateDto } from '@camunda
7
7
  * `refreshKey` changes when the cluster status or generation changes, and the
8
8
  * hook then reads the state again. An answer for another cluster or an older
9
9
  * request never replaces the current state.
10
+ *
11
+ * The caller gives `orgId`: a host such as console-frontend sets no `orgId`
12
+ * in the runtime config.
10
13
  */
11
- export declare function useC4TwoPhaseUpgradeMockup({ enabled, clusterId, refreshKey, }: {
14
+ export declare function useC4TwoPhaseUpgradeMockup({ enabled, orgId, clusterId, refreshKey, }: {
12
15
  enabled: boolean;
16
+ orgId: string;
13
17
  clusterId: string;
14
18
  refreshKey: string;
15
19
  }): {
@@ -22,10 +22,12 @@ const AUTO_PENDING_POLL_MS = 5000;
22
22
  * `refreshKey` changes when the cluster status or generation changes, and the
23
23
  * hook then reads the state again. An answer for another cluster or an older
24
24
  * request never replaces the current state.
25
+ *
26
+ * The caller gives `orgId`: a host such as console-frontend sets no `orgId`
27
+ * in the runtime config.
25
28
  */
26
- export function useC4TwoPhaseUpgradeMockup({ enabled, clusterId, refreshKey, }) {
29
+ export function useC4TwoPhaseUpgradeMockup({ enabled, orgId, clusterId, refreshKey, }) {
27
30
  const runtime = useC4ConsoleRuntime();
28
- const { orgId } = runtime;
29
31
  const [state, setState] = useState();
30
32
  // Counts every request. An answer counts only if it is still the latest.
31
33
  const latest = useRef(0);
@@ -58,6 +58,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
58
58
  const [commitAutomatically, setCommitAutomatically] = useState(true);
59
59
  const twoPhase = useC4TwoPhaseUpgradeMockup({
60
60
  enabled: twoPhaseMockupOn,
61
+ orgId,
61
62
  clusterId,
62
63
  refreshKey: `${cluster?.generation?.uuid}|${cluster?.status?.ready}`,
63
64
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/ccma-saas-frontend",
3
- "version": "0.31.1",
3
+ "version": "0.32.0",
4
4
  "description": "Camunda Composite Components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/camunda/camunda-cloud-management-apps/issues"