@camunda/play 5.0.1-rc.1 → 5.0.1
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/build/index.js +16 -10
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4021,14 +4021,14 @@ class hze {
|
|
|
4021
4021
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4022
4022
|
handleGetRequest = void 0;
|
|
4023
4023
|
authConfig = void 0;
|
|
4024
|
-
|
|
4024
|
+
shouldUseOrchestrationClusterAPI = !1;
|
|
4025
4025
|
init = ({
|
|
4026
4026
|
authConfig: e,
|
|
4027
4027
|
handlePostRequest: t,
|
|
4028
4028
|
handleGetRequest: n,
|
|
4029
|
-
|
|
4029
|
+
shouldUseOrchestrationClusterAPI: i
|
|
4030
4030
|
}) => {
|
|
4031
|
-
this.authConfig = e, this.handlePostRequest = t, this.handleGetRequest = n, this.
|
|
4031
|
+
this.authConfig = e, this.handlePostRequest = t, this.handleGetRequest = n, this.shouldUseOrchestrationClusterAPI = i;
|
|
4032
4032
|
};
|
|
4033
4033
|
async postWithErrorHandling(e, t) {
|
|
4034
4034
|
try {
|
|
@@ -4037,7 +4037,7 @@ class hze {
|
|
|
4037
4037
|
...t,
|
|
4038
4038
|
authType: this.authConfig?.type,
|
|
4039
4039
|
...this.authConfig?.config,
|
|
4040
|
-
|
|
4040
|
+
shouldUseOrchestrationClusterAPI: this.shouldUseOrchestrationClusterAPI
|
|
4041
4041
|
}
|
|
4042
4042
|
}) };
|
|
4043
4043
|
} catch (n) {
|
|
@@ -4079,7 +4079,7 @@ class hze {
|
|
|
4079
4079
|
return { success: !1 };
|
|
4080
4080
|
}
|
|
4081
4081
|
async deployResources(e) {
|
|
4082
|
-
if (this.
|
|
4082
|
+
if (this.shouldUseOrchestrationClusterAPI)
|
|
4083
4083
|
return this.deployResourcesC8(e);
|
|
4084
4084
|
const { response: t, success: n } = await this.postWithErrorHandling("/play/deploy-resources", { resources: e });
|
|
4085
4085
|
return {
|
|
@@ -7491,7 +7491,7 @@ const Zr = bHe({
|
|
|
7491
7491
|
areAIFeaturesEnabled: !1,
|
|
7492
7492
|
isSaveExampleDataEnabled: !1,
|
|
7493
7493
|
isReplayScenariosEnabled: !1,
|
|
7494
|
-
|
|
7494
|
+
shouldUseOrchestrationClusterAPI: !1
|
|
7495
7495
|
}
|
|
7496
7496
|
});
|
|
7497
7497
|
if (!st)
|
|
@@ -151443,7 +151443,7 @@ const dKt = we(xi)`
|
|
|
151443
151443
|
diagramId: k,
|
|
151444
151444
|
FeedbackButton: O
|
|
151445
151445
|
}) => {
|
|
151446
|
-
const V = localStorage.getItem("play-directAccess"), R = A?.
|
|
151446
|
+
const V = localStorage.getItem("play-directAccess"), R = A?.shouldUseOrchestrationClusterAPI, I = r?.type, P = r?.config?.operateBaseUrl, z = I === "saas" ? r.config.clusterId : void 0;
|
|
151447
151447
|
if (V) {
|
|
151448
151448
|
localStorage.removeItem("play-directAccess");
|
|
151449
151449
|
const ge = JSON.parse(V);
|
|
@@ -151478,9 +151478,15 @@ const dKt = we(xi)`
|
|
|
151478
151478
|
authConfig: r,
|
|
151479
151479
|
handlePostRequest: u,
|
|
151480
151480
|
handleGetRequest: d,
|
|
151481
|
-
|
|
151481
|
+
shouldUseOrchestrationClusterAPI: R
|
|
151482
151482
|
}), Ia.init(l));
|
|
151483
|
-
}, [
|
|
151483
|
+
}, [
|
|
151484
|
+
z,
|
|
151485
|
+
I,
|
|
151486
|
+
o,
|
|
151487
|
+
k,
|
|
151488
|
+
R
|
|
151489
|
+
]), $t(() => {
|
|
151484
151490
|
ct.init({
|
|
151485
151491
|
projectId: s,
|
|
151486
151492
|
processId: o,
|
|
@@ -151641,7 +151647,7 @@ const dKt = we(xi)`
|
|
|
151641
151647
|
areAIFeaturesEnabled: A?.areAIFeaturesEnabled ?? !1,
|
|
151642
151648
|
isSaveExampleDataEnabled: A?.isSaveExampleDataEnabled ?? !1,
|
|
151643
151649
|
isReplayScenariosEnabled: A?.isReplayScenariosEnabled ?? !1,
|
|
151644
|
-
|
|
151650
|
+
shouldUseOrchestrationClusterAPI: A?.shouldUseOrchestrationClusterAPI ?? !1
|
|
151645
151651
|
},
|
|
151646
151652
|
isUserOrgOwnerOrAdmin: y,
|
|
151647
151653
|
organizationManagementPageUrl: C
|