@redocly/replay 0.21.0-next.1 → 0.21.0-next.2
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/dist/{replay-index-B417Bbvg.js → replay-index-BGr3xtXC.js} +454 -347
- package/dist/{replay-index-CaNAeFAS.js → replay-index-BLnEGhe2.js} +1 -1
- package/dist/{replay-index-CAxRCs0c.js → replay-index-BaSDK5wQ.js} +1 -1
- package/dist/{replay-index-C8NW7ybv.js → replay-index-C7rgR6tA.js} +1 -1
- package/dist/{replay-index-rUhsrwWF.js → replay-index-CTDJpsxA.js} +1 -1
- package/dist/{replay-index-61oQVMRV.js → replay-index-DtcuDB-d.js} +1 -1
- package/dist/{replay-index-BCr11WJ9.js → replay-index-KAC-k_b6.js} +1 -1
- package/dist/{replay-index-DsdmelDJ.js → replay-index-nUh5aT0a.js} +53 -53
- package/dist/{replay-tauri-path-7Hglu5Ug.js → replay-tauri-path-BaXWASVX.js} +2 -2
- package/dist/{replay-tauri-path-DccEjZ9I.js → replay-tauri-path-D8sHTXGr.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -36694,7 +36694,14 @@ class Q$e {
|
|
|
36694
36694
|
for (const [a, l] of Object.entries(s))
|
|
36695
36695
|
if (l !== void 0) {
|
|
36696
36696
|
const c = a.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
36697
|
-
|
|
36697
|
+
if (l !== null && typeof l == "object" && !Array.isArray(l)) {
|
|
36698
|
+
for (const [u, d] of Object.entries(l))
|
|
36699
|
+
if (d != null && typeof d != "object") {
|
|
36700
|
+
const p = u.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
36701
|
+
i[`cloudevents.event_data.${c}.${p}`] = d;
|
|
36702
|
+
}
|
|
36703
|
+
} else
|
|
36704
|
+
i[`cloudevents.event_data.${c}`] = l;
|
|
36698
36705
|
}
|
|
36699
36706
|
}
|
|
36700
36707
|
}
|
|
@@ -36838,12 +36845,12 @@ class Aa extends _$e {
|
|
|
36838
36845
|
static toErrorEvent(e, r) {
|
|
36839
36846
|
return {
|
|
36840
36847
|
type: "error",
|
|
36841
|
-
payload: {
|
|
36848
|
+
payload: [{
|
|
36842
36849
|
handler: r,
|
|
36843
36850
|
errorType: Aa.getErrorType(e),
|
|
36844
36851
|
message: Aa.getErrorMessage(e),
|
|
36845
36852
|
stack: Aa.getErrorStack(e)
|
|
36846
|
-
}
|
|
36853
|
+
}]
|
|
36847
36854
|
};
|
|
36848
36855
|
}
|
|
36849
36856
|
enable() {
|
|
@@ -37002,53 +37009,53 @@ class N$e {
|
|
|
37002
37009
|
sendError(e, r) {
|
|
37003
37010
|
this.config?.disabled || this.send(Aa.toErrorEvent(e, r).type, Aa.toErrorEvent(e, r).payload);
|
|
37004
37011
|
}
|
|
37005
|
-
sendTabChangeMessage() {
|
|
37006
|
-
this.send("tab.change");
|
|
37012
|
+
sendTabChangeMessage(e) {
|
|
37013
|
+
this.send("tab.change", e);
|
|
37007
37014
|
}
|
|
37008
|
-
sendButtonClickMessage() {
|
|
37009
|
-
this.send("button.click");
|
|
37015
|
+
sendButtonClickMessage(e) {
|
|
37016
|
+
this.send("button.click", e);
|
|
37010
37017
|
}
|
|
37011
|
-
sendChangeMessage() {
|
|
37012
|
-
this.send("change");
|
|
37018
|
+
sendChangeMessage(e) {
|
|
37019
|
+
this.send("change", e);
|
|
37013
37020
|
}
|
|
37014
|
-
sendContentCopyMessage() {
|
|
37015
|
-
this.send("content.copy");
|
|
37021
|
+
sendContentCopyMessage(e) {
|
|
37022
|
+
this.send("content.copy", e);
|
|
37016
37023
|
}
|
|
37017
|
-
sendRequestSendMessage() {
|
|
37018
|
-
this.send("request.send");
|
|
37024
|
+
sendRequestSendMessage(e) {
|
|
37025
|
+
this.send("request.send", e);
|
|
37019
37026
|
}
|
|
37020
|
-
sendTokenGenerateMessage() {
|
|
37021
|
-
this.send("token.generate");
|
|
37027
|
+
sendTokenGenerateMessage(e) {
|
|
37028
|
+
this.send("token.generate", e);
|
|
37022
37029
|
}
|
|
37023
|
-
sendAppLifecycleMessage() {
|
|
37024
|
-
this.send("app.lifecycle");
|
|
37030
|
+
sendAppLifecycleMessage(e) {
|
|
37031
|
+
this.send("app.lifecycle", e);
|
|
37025
37032
|
}
|
|
37026
|
-
sendEnvironmentManagementMessage() {
|
|
37027
|
-
this.send("environment.management");
|
|
37033
|
+
sendEnvironmentManagementMessage(e) {
|
|
37034
|
+
this.send("environment.management", e);
|
|
37028
37035
|
}
|
|
37029
|
-
sendServerManagementMessage() {
|
|
37030
|
-
this.send("server.management");
|
|
37036
|
+
sendServerManagementMessage(e) {
|
|
37037
|
+
this.send("server.management", e);
|
|
37031
37038
|
}
|
|
37032
|
-
sendInputManagementMessage() {
|
|
37033
|
-
this.send("input.management");
|
|
37039
|
+
sendInputManagementMessage(e) {
|
|
37040
|
+
this.send("input.management", e);
|
|
37034
37041
|
}
|
|
37035
|
-
sendNodeManagementMessage() {
|
|
37036
|
-
this.send("node.management");
|
|
37042
|
+
sendNodeManagementMessage(e) {
|
|
37043
|
+
this.send("node.management", e);
|
|
37037
37044
|
}
|
|
37038
|
-
sendHistoryManagementMessage() {
|
|
37039
|
-
this.send("history.management");
|
|
37045
|
+
sendHistoryManagementMessage(e) {
|
|
37046
|
+
this.send("history.management", e);
|
|
37040
37047
|
}
|
|
37041
|
-
sendCredentialManagementMessage() {
|
|
37042
|
-
this.send("credential.management");
|
|
37048
|
+
sendCredentialManagementMessage(e) {
|
|
37049
|
+
this.send("credential.management", e);
|
|
37043
37050
|
}
|
|
37044
|
-
sendPanelToggleMessage() {
|
|
37045
|
-
this.send("panel.toggle");
|
|
37051
|
+
sendPanelToggleMessage(e) {
|
|
37052
|
+
this.send("panel.toggle", e);
|
|
37046
37053
|
}
|
|
37047
37054
|
sendWorkflowRunClickMessage(e) {
|
|
37048
37055
|
this.send("workflow.run.click", e);
|
|
37049
37056
|
}
|
|
37050
|
-
sendWorkflowRunResultMessage() {
|
|
37051
|
-
this.send("workflow.run.result");
|
|
37057
|
+
sendWorkflowRunResultMessage(e) {
|
|
37058
|
+
this.send("workflow.run.result", e);
|
|
37052
37059
|
}
|
|
37053
37060
|
sendStorageReadMessage() {
|
|
37054
37061
|
this.send("storage.read");
|
|
@@ -37733,7 +37740,7 @@ const ake = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
37733
37740
|
class fr {
|
|
37734
37741
|
static utils = null;
|
|
37735
37742
|
static async getUtils() {
|
|
37736
|
-
return fr.utils || (fr.utils = nl() ? await import("./replay-tauri-path-
|
|
37743
|
+
return fr.utils || (fr.utils = nl() ? await import("./replay-tauri-path-BaXWASVX.js") : await Promise.resolve().then(() => Wne)), fr.utils;
|
|
37737
37744
|
}
|
|
37738
37745
|
static async dirname(e) {
|
|
37739
37746
|
return (await fr.getUtils()).dirname(e);
|
|
@@ -67912,7 +67919,7 @@ const _1 = jr({});
|
|
|
67912
67919
|
function Au() {
|
|
67913
67920
|
return Mt(_1) || {};
|
|
67914
67921
|
}
|
|
67915
|
-
const x3e = "0.21.0-next.
|
|
67922
|
+
const x3e = "0.21.0-next.2", S3e = {
|
|
67916
67923
|
version: x3e
|
|
67917
67924
|
};
|
|
67918
67925
|
class w3e {
|
|
@@ -71412,32 +71419,40 @@ function J4e({
|
|
|
71412
71419
|
onNewInput: i
|
|
71413
71420
|
}) {
|
|
71414
71421
|
const [o, s] = we(!1), [a, l] = we({}), c = !t?.value, { sendEvent: u } = dt(), d = () => {
|
|
71415
|
-
s(!0), u("input.management",
|
|
71416
|
-
|
|
71417
|
-
|
|
71418
|
-
|
|
71419
|
-
|
|
71420
|
-
|
|
71422
|
+
s(!0), u("input.management", [
|
|
71423
|
+
{
|
|
71424
|
+
action: "editor_opened",
|
|
71425
|
+
context: "environment",
|
|
71426
|
+
name: e,
|
|
71427
|
+
is_undefined: c
|
|
71428
|
+
}
|
|
71429
|
+
]);
|
|
71421
71430
|
}, p = () => {
|
|
71422
|
-
u("content.copy",
|
|
71423
|
-
|
|
71424
|
-
|
|
71425
|
-
|
|
71426
|
-
|
|
71431
|
+
u("content.copy", [
|
|
71432
|
+
{
|
|
71433
|
+
source: "environment_input",
|
|
71434
|
+
section: "value",
|
|
71435
|
+
name: e
|
|
71436
|
+
}
|
|
71437
|
+
]);
|
|
71427
71438
|
}, h = (I) => {
|
|
71428
|
-
s(!1), i(I), u("input.management",
|
|
71429
|
-
|
|
71430
|
-
|
|
71431
|
-
|
|
71432
|
-
|
|
71433
|
-
|
|
71439
|
+
s(!1), i(I), u("input.management", [
|
|
71440
|
+
{
|
|
71441
|
+
action: "saved",
|
|
71442
|
+
context: "environment",
|
|
71443
|
+
name: e,
|
|
71444
|
+
is_undefined: c
|
|
71445
|
+
}
|
|
71446
|
+
]);
|
|
71434
71447
|
}, m = () => {
|
|
71435
|
-
s(!1), u("input.management",
|
|
71436
|
-
|
|
71437
|
-
|
|
71438
|
-
|
|
71439
|
-
|
|
71440
|
-
|
|
71448
|
+
s(!1), u("input.management", [
|
|
71449
|
+
{
|
|
71450
|
+
action: "editor_closed",
|
|
71451
|
+
context: "environment",
|
|
71452
|
+
name: e,
|
|
71453
|
+
is_undefined: c
|
|
71454
|
+
}
|
|
71455
|
+
]);
|
|
71441
71456
|
}, g = (I, j) => {
|
|
71442
71457
|
l((R) => ({ ...R, [I]: j }));
|
|
71443
71458
|
}, O = (I) => {
|
|
@@ -77063,7 +77078,7 @@ function NLe({ collection: t }) {
|
|
|
77063
77078
|
}
|
|
77064
77079
|
function MLe({ collection: t, activeTabName: e }) {
|
|
77065
77080
|
const { sendEvent: r } = dt(), n = (i) => {
|
|
77066
|
-
e.set(i), r("tab.change", { source: "collection", name: i });
|
|
77081
|
+
e.set(i), r("tab.change", [{ source: "collection", name: i }]);
|
|
77067
77082
|
};
|
|
77068
77083
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
77069
77084
|
/* @__PURE__ */ f.jsx(
|
|
@@ -84966,11 +84981,13 @@ function m8e({
|
|
|
84966
84981
|
const m = t.data.isDraft;
|
|
84967
84982
|
m && t.tree.delete(t.id);
|
|
84968
84983
|
const g = t.data.type;
|
|
84969
|
-
l("node.management",
|
|
84970
|
-
|
|
84971
|
-
|
|
84972
|
-
|
|
84973
|
-
|
|
84984
|
+
l("node.management", [
|
|
84985
|
+
{
|
|
84986
|
+
node_type: g,
|
|
84987
|
+
action: m ? "creation_canceled" : "editing_canceled",
|
|
84988
|
+
name: n.trim()
|
|
84989
|
+
}
|
|
84990
|
+
]);
|
|
84974
84991
|
}
|
|
84975
84992
|
function p(h) {
|
|
84976
84993
|
i(h.target.value), s(r ? r(t, h.target.value.trim()) : "");
|
|
@@ -85545,13 +85562,13 @@ function Z8e({
|
|
|
85545
85562
|
}, g = (v) => {
|
|
85546
85563
|
switch (v) {
|
|
85547
85564
|
case "view_in_description":
|
|
85548
|
-
l("button.click", { source: "request", action: "view_in_description" }), m();
|
|
85565
|
+
l("button.click", [{ source: "request", action: "view_in_description" }]), m();
|
|
85549
85566
|
break;
|
|
85550
85567
|
case "manage_connection":
|
|
85551
|
-
l("button.click", { source: "request", action: "manage_connection" }), u();
|
|
85568
|
+
l("button.click", [{ source: "request", action: "manage_connection" }]), u();
|
|
85552
85569
|
break;
|
|
85553
85570
|
case "reset":
|
|
85554
|
-
l("button.click", { source: "request", action: "reset" }), r?.();
|
|
85571
|
+
l("button.click", [{ source: "request", action: "reset" }]), r?.();
|
|
85555
85572
|
break;
|
|
85556
85573
|
}
|
|
85557
85574
|
}, O = ke(
|
|
@@ -86842,7 +86859,9 @@ const AFe = (t) => t === 0 ? "No matches" : t > 1e3 ? "1000+ matches" : `${t} ${
|
|
|
86842
86859
|
}) => {
|
|
86843
86860
|
const { sendEvent: i } = dt(), [o, s] = we(""), a = H1(o, 100), [l, c] = we(0), u = Qe(e);
|
|
86844
86861
|
_e(() => {
|
|
86845
|
-
u.current !== e && (i("code_editor.search",
|
|
86862
|
+
u.current !== e && (i("code_editor.search", [
|
|
86863
|
+
{ editor_id: t, action: e ? "open" : "close" }
|
|
86864
|
+
]), u.current = e);
|
|
86846
86865
|
}, [e, i, t]), _e(() => {
|
|
86847
86866
|
if (!r || !a) {
|
|
86848
86867
|
c(0);
|
|
@@ -87234,10 +87253,10 @@ const qFe = k.div`
|
|
|
87234
87253
|
const { sendEvent: e } = dt(), [r, n] = we("curl"), { HTTPSnippet: i } = Au(), o = ke(() => LFe[r], [r]), s = ke(() => new i(t).convert(o.code, o.defaultTarget, o.defaultOptions), [t, o, i]), a = VFe.map((u) => ({ name: u, icon: /* @__PURE__ */ f.jsx(f.Fragment, {}) })), l = Pe((u) => {
|
|
87235
87254
|
n(u);
|
|
87236
87255
|
}, []), c = Pe(() => {
|
|
87237
|
-
e("content.copy", { source: "code_sample", section: "value", name: r });
|
|
87256
|
+
e("content.copy", [{ source: "code_sample", section: "value", name: r }]);
|
|
87238
87257
|
}, [r, e]);
|
|
87239
87258
|
return _e(() => {
|
|
87240
|
-
e("tab.change", { source: "code_sample", name: r });
|
|
87259
|
+
e("tab.change", [{ source: "code_sample", name: r }]);
|
|
87241
87260
|
}, [r, e]), /* @__PURE__ */ f.jsxs(FFe, { children: [
|
|
87242
87261
|
/* @__PURE__ */ f.jsxs(WFe, { children: [
|
|
87243
87262
|
/* @__PURE__ */ f.jsx(UFe, { activeTabName: r, tabs: a, onTabChange: l }),
|
|
@@ -87398,13 +87417,13 @@ const eBe = ({ onClose: t }) => {
|
|
|
87398
87417
|
if (c)
|
|
87399
87418
|
return r?.(c.operationId);
|
|
87400
87419
|
}, [r, c]), y = ke(() => l ? X1(l.get()) : "", [l]), v = () => {
|
|
87401
|
-
c && s.merge(MI(c)), p.set(!0), t("button.click", { source: "request", action: "reset" }), n?.();
|
|
87420
|
+
c && s.merge(MI(c)), p.set(!0), t("button.click", [{ source: "request", action: "reset" }]), n?.();
|
|
87402
87421
|
}, b = () => {
|
|
87403
|
-
m(!0), t("button.click", { source: "request", action: "code_generate" });
|
|
87422
|
+
m(!0), t("button.click", [{ source: "request", action: "code_generate" }]);
|
|
87404
87423
|
}, w = () => {
|
|
87405
|
-
t("button.click", { source: "request", action: "save_to_collection" });
|
|
87424
|
+
t("button.click", [{ source: "request", action: "save_to_collection" }]);
|
|
87406
87425
|
}, S = () => {
|
|
87407
|
-
t("button.click", { source: "request", action: "save_as" });
|
|
87426
|
+
t("button.click", [{ source: "request", action: "save_as" }]);
|
|
87408
87427
|
}, P = ke(() => g || d ? c ? c.name : "New Request" : s.stepId.get(), [c, g, d, s]);
|
|
87409
87428
|
return /* @__PURE__ */ f.jsxs($3e, { children: [
|
|
87410
87429
|
/* @__PURE__ */ f.jsxs(nBe, { children: [
|
|
@@ -87798,27 +87817,33 @@ function CBe({
|
|
|
87798
87817
|
showControlsOnHover: r
|
|
87799
87818
|
}) {
|
|
87800
87819
|
const [n, i] = we(!1), { sendEvent: o } = dt(), { name: s, value: a } = t.get(), { value: l, apiId: c } = e.get(), { enumValues: u } = qK(c, l, s), d = (m) => {
|
|
87801
|
-
o("input.management",
|
|
87802
|
-
|
|
87803
|
-
|
|
87804
|
-
|
|
87805
|
-
|
|
87806
|
-
|
|
87807
|
-
|
|
87820
|
+
o("input.management", [
|
|
87821
|
+
{
|
|
87822
|
+
action: "saved",
|
|
87823
|
+
context: "server_variable",
|
|
87824
|
+
api_id: c,
|
|
87825
|
+
name: s,
|
|
87826
|
+
changed: m.value !== a
|
|
87827
|
+
}
|
|
87828
|
+
]), t.set(m), i(!1);
|
|
87808
87829
|
}, p = () => {
|
|
87809
|
-
i(!1), o("input.management",
|
|
87810
|
-
|
|
87811
|
-
|
|
87812
|
-
|
|
87813
|
-
|
|
87814
|
-
|
|
87830
|
+
i(!1), o("input.management", [
|
|
87831
|
+
{
|
|
87832
|
+
action: "editing_canceled",
|
|
87833
|
+
context: "server_variable",
|
|
87834
|
+
api_id: c,
|
|
87835
|
+
name: s
|
|
87836
|
+
}
|
|
87837
|
+
]);
|
|
87815
87838
|
}, h = () => {
|
|
87816
|
-
i(!0), o("input.management",
|
|
87817
|
-
|
|
87818
|
-
|
|
87819
|
-
|
|
87820
|
-
|
|
87821
|
-
|
|
87839
|
+
i(!0), o("input.management", [
|
|
87840
|
+
{
|
|
87841
|
+
action: "editing_started",
|
|
87842
|
+
context: "server_variable",
|
|
87843
|
+
api_id: c,
|
|
87844
|
+
name: s
|
|
87845
|
+
}
|
|
87846
|
+
]);
|
|
87822
87847
|
};
|
|
87823
87848
|
return n ? /* @__PURE__ */ f.jsx(
|
|
87824
87849
|
$U,
|
|
@@ -88873,14 +88898,16 @@ const cYe = k(Re)`
|
|
|
88873
88898
|
h
|
|
88874
88899
|
)
|
|
88875
88900
|
]), w = ({ value: T }) => {
|
|
88876
|
-
r.xOperation.ornull?.method.set(T), t("change", { context: "method", source: "request", value: T });
|
|
88901
|
+
r.xOperation.ornull?.method.set(T), t("change", [{ context: "method", source: "request", value: T }]);
|
|
88877
88902
|
}, S = () => {
|
|
88878
|
-
y9e(c, r, l), t("request.send",
|
|
88879
|
-
|
|
88880
|
-
|
|
88881
|
-
|
|
88882
|
-
|
|
88883
|
-
|
|
88903
|
+
y9e(c, r, l), t("request.send", [
|
|
88904
|
+
{
|
|
88905
|
+
source: "request",
|
|
88906
|
+
url: d,
|
|
88907
|
+
method: u,
|
|
88908
|
+
resolved_url: Mn(d, c)
|
|
88909
|
+
}
|
|
88910
|
+
]);
|
|
88884
88911
|
}, P = (T) => {
|
|
88885
88912
|
const j = [
|
|
88886
88913
|
...k9e(T),
|
|
@@ -89153,11 +89180,13 @@ function pYe({
|
|
|
89153
89180
|
onNewInput: i
|
|
89154
89181
|
}) {
|
|
89155
89182
|
const { sendEvent: o } = dt(), [s, a] = we(!1), l = window.pageXOffset || document.documentElement.scrollTop, c = t.getBoundingClientRect(), u = () => {
|
|
89156
|
-
a(!0), o("input.management",
|
|
89157
|
-
|
|
89158
|
-
|
|
89159
|
-
|
|
89160
|
-
|
|
89183
|
+
a(!0), o("input.management", [
|
|
89184
|
+
{
|
|
89185
|
+
action: "creation_started",
|
|
89186
|
+
context: "new_input",
|
|
89187
|
+
name: e
|
|
89188
|
+
}
|
|
89189
|
+
]);
|
|
89161
89190
|
}, d = /* @__PURE__ */ f.jsx(ia, { onClickOutside: n, children: /* @__PURE__ */ f.jsx(gYe, { "data-input-id": r, children: s ? /* @__PURE__ */ f.jsx(
|
|
89162
89191
|
wA,
|
|
89163
89192
|
{
|
|
@@ -89371,13 +89400,15 @@ function jt({
|
|
|
89371
89400
|
const pe = de.target, Ie = sS(pe);
|
|
89372
89401
|
(!Ie || Ie !== m) && (y(!1), fe(!1, g.current));
|
|
89373
89402
|
}, B = (de) => {
|
|
89374
|
-
he(`${ZL}$inputs.${de.name}${SE}`), e.merge([de]), X("input.management",
|
|
89375
|
-
|
|
89376
|
-
|
|
89377
|
-
|
|
89378
|
-
|
|
89403
|
+
he(`${ZL}$inputs.${de.name}${SE}`), e.merge([de]), X("input.management", [
|
|
89404
|
+
{
|
|
89405
|
+
action: "creation_finished",
|
|
89406
|
+
context: "new_input",
|
|
89407
|
+
name: de.name
|
|
89408
|
+
}
|
|
89409
|
+
]);
|
|
89379
89410
|
}, ae = () => {
|
|
89380
|
-
V(null), X("input.management", { action: "creation_canceled", context: "new_input" });
|
|
89411
|
+
V(null), X("input.management", [{ action: "creation_canceled", context: "new_input" }]);
|
|
89381
89412
|
}, se = () => {
|
|
89382
89413
|
V(null);
|
|
89383
89414
|
}, fe = (de, pe) => {
|
|
@@ -91930,11 +91961,13 @@ const hGe = k.div`
|
|
|
91930
91961
|
}, yGe = Object.keys(rb);
|
|
91931
91962
|
function vGe({ successCriteria: t }) {
|
|
91932
91963
|
const { sendEvent: e } = dt(), r = (o) => {
|
|
91933
|
-
e("button.click",
|
|
91934
|
-
|
|
91935
|
-
|
|
91936
|
-
|
|
91937
|
-
|
|
91964
|
+
e("button.click", [
|
|
91965
|
+
{
|
|
91966
|
+
source: "workflow",
|
|
91967
|
+
action: "add_success_criteria",
|
|
91968
|
+
success_criteria_type: o
|
|
91969
|
+
}
|
|
91970
|
+
]), t.set((s) => [
|
|
91938
91971
|
...s || [],
|
|
91939
91972
|
{ ...JDe(o) }
|
|
91940
91973
|
]);
|
|
@@ -91944,12 +91977,14 @@ function vGe({ successCriteria: t }) {
|
|
|
91944
91977
|
),
|
|
91945
91978
|
[t]
|
|
91946
91979
|
), i = (o) => {
|
|
91947
|
-
e("button.click",
|
|
91948
|
-
|
|
91949
|
-
|
|
91950
|
-
|
|
91951
|
-
|
|
91952
|
-
|
|
91980
|
+
e("button.click", [
|
|
91981
|
+
{
|
|
91982
|
+
source: "workflow",
|
|
91983
|
+
action: "remove_success_criteria",
|
|
91984
|
+
success_criteria_type: o.get().type,
|
|
91985
|
+
condition: o.get().condition
|
|
91986
|
+
}
|
|
91987
|
+
]), o.set(vt);
|
|
91953
91988
|
};
|
|
91954
91989
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
91955
91990
|
/* @__PURE__ */ f.jsxs(Ka, { children: [
|
|
@@ -92064,7 +92099,7 @@ function SGe({
|
|
|
92064
92099
|
}, i = async () => {
|
|
92065
92100
|
if (nl())
|
|
92066
92101
|
try {
|
|
92067
|
-
const { open: a } = await import("./replay-index-
|
|
92102
|
+
const { open: a } = await import("./replay-index-DtcuDB-d.js"), l = await a({
|
|
92068
92103
|
multiple: !0
|
|
92069
92104
|
});
|
|
92070
92105
|
if (!l)
|
|
@@ -92396,7 +92431,7 @@ const XGe = ({ data: t }) => {
|
|
|
92396
92431
|
}, s = async (c) => {
|
|
92397
92432
|
if (c?.preventDefault(), nl())
|
|
92398
92433
|
try {
|
|
92399
|
-
const { open: u } = await import("./replay-index-
|
|
92434
|
+
const { open: u } = await import("./replay-index-DtcuDB-d.js"), d = await u();
|
|
92400
92435
|
if (!d)
|
|
92401
92436
|
return;
|
|
92402
92437
|
const p = await wm(d);
|
|
@@ -92521,14 +92556,14 @@ function rHe({ data: t, apiOperation: e, stateExtensions: r = [] }) {
|
|
|
92521
92556
|
), m = Pe(
|
|
92522
92557
|
(w) => {
|
|
92523
92558
|
const S = u.find((P) => P.key === w);
|
|
92524
|
-
S && (s.set(S.key), h(S.value, o.value), n("change", { context: "example", source: "request_body", value: S.name }));
|
|
92559
|
+
S && (s.set(S.key), h(S.value, o.value), n("change", [{ context: "example", source: "request_body", value: S.name }]));
|
|
92525
92560
|
},
|
|
92526
92561
|
[s, h, u, n, o.value]
|
|
92527
92562
|
), g = Pe(
|
|
92528
92563
|
({ value: w }) => {
|
|
92529
92564
|
o.set(w);
|
|
92530
92565
|
const [S] = ST(e?.body?.mediaTypes?.[w]);
|
|
92531
|
-
S && (s.set(S.key), h(S.value, w)), n("change", { context: "type", source: "request_body", value: w });
|
|
92566
|
+
S && (s.set(S.key), h(S.value, w)), n("change", [{ context: "type", source: "request_body", value: w }]);
|
|
92532
92567
|
},
|
|
92533
92568
|
[o, e, s, h, n]
|
|
92534
92569
|
), O = ke(() => [...fu[o.value]?.extensions || []], [o]), y = ke(() => [...fu[o.value]?.stateExtensions || [], ...r], [o, t]), v = Pe(() => {
|
|
@@ -92695,7 +92730,7 @@ function hHe({ securitySchemeVariants: t, onSelect: e }) {
|
|
|
92695
92730
|
value: o.id,
|
|
92696
92731
|
label: "Pick security schemes"
|
|
92697
92732
|
})), [t]), i = (o) => {
|
|
92698
|
-
r("change", { context: "scheme", source: "security", value: o }), e?.(o);
|
|
92733
|
+
r("change", [{ context: "scheme", source: "security", value: o }]), e?.(o);
|
|
92699
92734
|
};
|
|
92700
92735
|
return /* @__PURE__ */ f.jsx(
|
|
92701
92736
|
gHe,
|
|
@@ -92903,7 +92938,7 @@ function kHe(t) {
|
|
|
92903
92938
|
async function yz(t, e, r) {
|
|
92904
92939
|
const n = typeof t == "string" ? t : t.toString();
|
|
92905
92940
|
if (nl()) {
|
|
92906
|
-
const { openUrl: i } = await import("./replay-index-
|
|
92941
|
+
const { openUrl: i } = await import("./replay-index-C7rgR6tA.js");
|
|
92907
92942
|
await i(n);
|
|
92908
92943
|
return;
|
|
92909
92944
|
}
|
|
@@ -94393,12 +94428,12 @@ const pJe = ti(
|
|
|
94393
94428
|
`;
|
|
94394
94429
|
function vJe({ onGenerateTokenClick: t }) {
|
|
94395
94430
|
const [e, r] = we(null), [n, i] = we("loading"), { sendEvent: o } = dt(), s = Pe(() => {
|
|
94396
|
-
t(), i("loading"), o("token.generate", { source: "oauth2", action: "clicked" });
|
|
94431
|
+
t(), i("loading"), o("token.generate", [{ source: "oauth2", action: "clicked" }]);
|
|
94397
94432
|
}, [t, o]), a = Pe(() => {
|
|
94398
|
-
r(null), i("success"), o("token.generate", { source: "oauth2", action: "success" });
|
|
94433
|
+
r(null), i("success"), o("token.generate", [{ source: "oauth2", action: "success" }]);
|
|
94399
94434
|
}, [o]), l = Pe(
|
|
94400
94435
|
(c) => {
|
|
94401
|
-
r(c.message), i("error"), o("token.generate", { source: "oauth2", action: "error" }), console.log("❌ Error during token generation:", c);
|
|
94436
|
+
r(c.message), i("error"), o("token.generate", [{ source: "oauth2", action: "error" }]), console.log("❌ Error during token generation:", c);
|
|
94402
94437
|
},
|
|
94403
94438
|
[o]
|
|
94404
94439
|
);
|
|
@@ -94452,7 +94487,7 @@ function lee({
|
|
|
94452
94487
|
} = vJe({ onGenerateTokenClick: g.handleOpen }), { grantType: S } = l, P = S.get(), { accessToken: C } = l[P], T = (R) => {
|
|
94453
94488
|
C.set(R);
|
|
94454
94489
|
}, I = ({ value: R }) => {
|
|
94455
|
-
S.set(R), h("change", { context: "flow", source: "oauth2", value: R });
|
|
94490
|
+
S.set(R), h("change", [{ context: "flow", source: "oauth2", value: R }]);
|
|
94456
94491
|
}, j = CJe[P];
|
|
94457
94492
|
return /* @__PURE__ */ f.jsxs(us, { id: "oauth2-container", children: [
|
|
94458
94493
|
/* @__PURE__ */ f.jsxs(_t, { children: [
|
|
@@ -94813,12 +94848,14 @@ function Az({
|
|
|
94813
94848
|
l
|
|
94814
94849
|
), { location: p } = t[me.APIKey], h = WJe[o.get()], m = ({ value: v }) => {
|
|
94815
94850
|
const b = c.find((w) => v === w.securitySchemeId);
|
|
94816
|
-
b ? t.set(b) : (o.set(v), s.set(null)), a("change",
|
|
94817
|
-
|
|
94818
|
-
|
|
94819
|
-
|
|
94820
|
-
|
|
94821
|
-
|
|
94851
|
+
b ? t.set(b) : (o.set(v), s.set(null)), a("change", [
|
|
94852
|
+
{
|
|
94853
|
+
context: "type",
|
|
94854
|
+
source: "security",
|
|
94855
|
+
value: v,
|
|
94856
|
+
is_documented: !!b
|
|
94857
|
+
}
|
|
94858
|
+
]);
|
|
94822
94859
|
}, g = s.get(), O = o.get(), y = jJe(
|
|
94823
94860
|
O,
|
|
94824
94861
|
g,
|
|
@@ -94922,13 +94959,15 @@ function cee({
|
|
|
94922
94959
|
workflowId: o
|
|
94923
94960
|
}) {
|
|
94924
94961
|
const { sendEvent: s } = dt(), { openWorkflowTab: a } = bn(), [l, c] = we(!0), u = r ? aNe(r) : [], d = u.length, p = () => {
|
|
94925
|
-
s("button.click", { source: "security", action: "add" }), t.merge([ls()]);
|
|
94962
|
+
s("button.click", [{ source: "security", action: "add" }]), t.merge([ls()]);
|
|
94926
94963
|
}, h = (O) => {
|
|
94927
|
-
s("button.click",
|
|
94928
|
-
|
|
94929
|
-
|
|
94930
|
-
|
|
94931
|
-
|
|
94964
|
+
s("button.click", [
|
|
94965
|
+
{
|
|
94966
|
+
source: "security",
|
|
94967
|
+
action: "remove",
|
|
94968
|
+
security_type: O.securityType.get()
|
|
94969
|
+
}
|
|
94970
|
+
]), O.set(vt);
|
|
94932
94971
|
}, m = (O) => {
|
|
94933
94972
|
const y = u.find((v) => v.id === O);
|
|
94934
94973
|
y && t.set(y.security);
|
|
@@ -95052,7 +95091,7 @@ function KJe() {
|
|
|
95052
95091
|
);
|
|
95053
95092
|
}
|
|
95054
95093
|
const O = (y) => {
|
|
95055
|
-
s.set(y), l("tab.change", { source: "request", name: y });
|
|
95094
|
+
s.set(y), l("tab.change", [{ source: "request", name: y }]);
|
|
95056
95095
|
};
|
|
95057
95096
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
95058
95097
|
/* @__PURE__ */ f.jsx(cHe, { activeTabName: a, onChange: O }),
|
|
@@ -95434,9 +95473,9 @@ function pKe() {
|
|
|
95434
95473
|
a(hn.Text);
|
|
95435
95474
|
}, [p]);
|
|
95436
95475
|
const h = s === hn.JSON ? dee(i) : i, m = (y) => {
|
|
95437
|
-
a(y), n("change", { context: "type", source: "response_body", value: y });
|
|
95476
|
+
a(y), n("change", [{ context: "type", source: "response_body", value: y }]);
|
|
95438
95477
|
}, g = () => {
|
|
95439
|
-
n("content.copy", { source: "response_body", section: "value" });
|
|
95478
|
+
n("content.copy", [{ source: "response_body", section: "value" }]);
|
|
95440
95479
|
}, O = () => {
|
|
95441
95480
|
u.current?.triggerSearch();
|
|
95442
95481
|
};
|
|
@@ -95535,9 +95574,9 @@ function vKe() {
|
|
|
95535
95574
|
`),
|
|
95536
95575
|
[n]
|
|
95537
95576
|
), o = () => {
|
|
95538
|
-
r("content.copy", { source: "response", section: "header" });
|
|
95577
|
+
r("content.copy", [{ source: "response", section: "header" }]);
|
|
95539
95578
|
}, s = () => {
|
|
95540
|
-
r("content.copy", { source: "response", section: "all_headers" });
|
|
95579
|
+
r("content.copy", [{ source: "response", section: "all_headers" }]);
|
|
95541
95580
|
};
|
|
95542
95581
|
return /* @__PURE__ */ f.jsxs(bKe, { children: [
|
|
95543
95582
|
/* @__PURE__ */ f.jsxs(X2, { children: [
|
|
@@ -95630,7 +95669,7 @@ function QKe() {
|
|
|
95630
95669
|
if (!rn(t.get(), tt.Step) || r)
|
|
95631
95670
|
return null;
|
|
95632
95671
|
const n = (i) => {
|
|
95633
|
-
e("tab.change", { source: "response", name: i });
|
|
95672
|
+
e("tab.change", [{ source: "response", name: i }]);
|
|
95634
95673
|
};
|
|
95635
95674
|
return /* @__PURE__ */ f.jsx(DKe, { size: RKe.MEDIUM, initialTab: pt.BODY, children: kKe.map((i) => {
|
|
95636
95675
|
const o = jKe[i.name];
|
|
@@ -95983,7 +96022,7 @@ function tet({
|
|
|
95983
96022
|
project: { userFilesDir: r }
|
|
95984
96023
|
} = xt(), { certificates: n } = cs(), i = sr(), { getCollection: o } = Tm(), s = o(t), a = r.get(), { inputs: l, servers: c } = i.get(), u = s?.sourceDescriptions.get() ?? [];
|
|
95985
96024
|
return { execute: async (p) => {
|
|
95986
|
-
const h = `${a}/${t}`, m = new tG(), g = l.map((v) => JSON.stringify({ [v.name]: v.value })), O = ret(c, u), { run: y } = await import("./replay-index-
|
|
96025
|
+
const h = `${a}/${t}`, m = new tG(), g = l.map((v) => JSON.stringify({ [v.name]: v.value })), O = ret(c, u), { run: y } = await import("./replay-index-KAC-k_b6.js");
|
|
95987
96026
|
return await y({
|
|
95988
96027
|
files: [h],
|
|
95989
96028
|
workflow: e ? [e] : [],
|
|
@@ -96445,11 +96484,9 @@ function Vg({
|
|
|
96445
96484
|
const { sendEvent: o } = dt(), s = (a) => {
|
|
96446
96485
|
i && a.stopPropagation();
|
|
96447
96486
|
const l = !t;
|
|
96448
|
-
o("button.click",
|
|
96449
|
-
source: "workflow",
|
|
96450
|
-
|
|
96451
|
-
name: e
|
|
96452
|
-
}), r(l);
|
|
96487
|
+
o("button.click", [
|
|
96488
|
+
{ source: "workflow", action: l ? "reveal_secrets" : "hide_secrets", name: e }
|
|
96489
|
+
]), r(l);
|
|
96453
96490
|
};
|
|
96454
96491
|
return /* @__PURE__ */ f.jsx(
|
|
96455
96492
|
Re,
|
|
@@ -96478,7 +96515,7 @@ function Ox({
|
|
|
96478
96515
|
})), h = a === hn.JSON ? dee(typeof r == "string" ? r : String(r)) : typeof r == "string" ? r : String(r), m = GT(h, o), g = m && !c ? vet(h, o) : h, O = (v) => {
|
|
96479
96516
|
l(v);
|
|
96480
96517
|
}, y = () => {
|
|
96481
|
-
d("content.copy", { source: i, section: "value" });
|
|
96518
|
+
d("content.copy", [{ source: i, section: "value" }]);
|
|
96482
96519
|
};
|
|
96483
96520
|
return _e(() => {
|
|
96484
96521
|
if (e) {
|
|
@@ -96779,11 +96816,13 @@ function Aet({
|
|
|
96779
96816
|
revealMap: O,
|
|
96780
96817
|
setRevealMap: y,
|
|
96781
96818
|
onInlineToggle: (V, F) => {
|
|
96782
|
-
a("button.click",
|
|
96783
|
-
|
|
96784
|
-
|
|
96785
|
-
|
|
96786
|
-
|
|
96819
|
+
a("button.click", [
|
|
96820
|
+
{
|
|
96821
|
+
source: "workflow",
|
|
96822
|
+
action: F ? "reveal_secrets" : "hide_secrets",
|
|
96823
|
+
name: V
|
|
96824
|
+
}
|
|
96825
|
+
]);
|
|
96787
96826
|
}
|
|
96788
96827
|
}) })
|
|
96789
96828
|
] }, R))
|
|
@@ -96833,11 +96872,13 @@ function Aet({
|
|
|
96833
96872
|
revealMap: v,
|
|
96834
96873
|
setRevealMap: b,
|
|
96835
96874
|
onInlineToggle: (V, F) => {
|
|
96836
|
-
a("button.click",
|
|
96837
|
-
|
|
96838
|
-
|
|
96839
|
-
|
|
96840
|
-
|
|
96875
|
+
a("button.click", [
|
|
96876
|
+
{
|
|
96877
|
+
source: "workflow",
|
|
96878
|
+
action: F ? "reveal_secrets" : "hide_secrets",
|
|
96879
|
+
name: V
|
|
96880
|
+
}
|
|
96881
|
+
]);
|
|
96841
96882
|
}
|
|
96842
96883
|
}) })
|
|
96843
96884
|
] }, R))
|
|
@@ -96942,11 +96983,13 @@ function Iet({
|
|
|
96942
96983
|
revealMap: h,
|
|
96943
96984
|
setRevealMap: m,
|
|
96944
96985
|
onInlineToggle: (I, j) => {
|
|
96945
|
-
o("button.click",
|
|
96946
|
-
|
|
96947
|
-
|
|
96948
|
-
|
|
96949
|
-
|
|
96986
|
+
o("button.click", [
|
|
96987
|
+
{
|
|
96988
|
+
source: "workflow",
|
|
96989
|
+
action: j ? "reveal_secrets" : "hide_secrets",
|
|
96990
|
+
name: I
|
|
96991
|
+
}
|
|
96992
|
+
]);
|
|
96950
96993
|
}
|
|
96951
96994
|
}) })
|
|
96952
96995
|
] }, C))
|
|
@@ -96996,11 +97039,13 @@ function Iet({
|
|
|
96996
97039
|
revealMap: g,
|
|
96997
97040
|
setRevealMap: O,
|
|
96998
97041
|
onInlineToggle: (I, j) => {
|
|
96999
|
-
o("button.click",
|
|
97000
|
-
|
|
97001
|
-
|
|
97002
|
-
|
|
97003
|
-
|
|
97042
|
+
o("button.click", [
|
|
97043
|
+
{
|
|
97044
|
+
source: "workflow",
|
|
97045
|
+
action: j ? "reveal_secrets" : "hide_secrets",
|
|
97046
|
+
name: I
|
|
97047
|
+
}
|
|
97048
|
+
]);
|
|
97004
97049
|
}
|
|
97005
97050
|
}) })
|
|
97006
97051
|
] }, C))
|
|
@@ -97429,16 +97474,20 @@ function ott({ workflowId: t, collectionId: e, tabData: r }) {
|
|
|
97429
97474
|
]), m && jH(m, l, h), i(!0), s(null);
|
|
97430
97475
|
try {
|
|
97431
97476
|
const y = await a(d), { executedWorkflows: v, hasProblems: b, secretValues: w } = y[0], { ctx: S, ...P } = v[0];
|
|
97432
|
-
r.result.set(P), r.secretValues.set(w), c("workflow.run.result",
|
|
97433
|
-
|
|
97434
|
-
|
|
97435
|
-
|
|
97477
|
+
r.result.set(P), r.secretValues.set(w), c("workflow.run.result", [
|
|
97478
|
+
{
|
|
97479
|
+
workflow_id: t,
|
|
97480
|
+
result: b ? "failed" : "success"
|
|
97481
|
+
}
|
|
97482
|
+
]);
|
|
97436
97483
|
} catch (y) {
|
|
97437
|
-
console.error("Workflow execution failed:", y), s(y instanceof Error ? y.message : "Workflow execution failed"), c("workflow.run.result",
|
|
97438
|
-
|
|
97439
|
-
|
|
97440
|
-
|
|
97441
|
-
|
|
97484
|
+
console.error("Workflow execution failed:", y), s(y instanceof Error ? y.message : "Workflow execution failed"), c("workflow.run.result", [
|
|
97485
|
+
{
|
|
97486
|
+
workflow_id: t,
|
|
97487
|
+
result: "failed",
|
|
97488
|
+
error: y instanceof Error ? y.message : "Workflow execution failed"
|
|
97489
|
+
}
|
|
97490
|
+
]);
|
|
97442
97491
|
} finally {
|
|
97443
97492
|
i(!1);
|
|
97444
97493
|
}
|
|
@@ -98857,7 +98906,7 @@ const grt = [
|
|
|
98857
98906
|
];
|
|
98858
98907
|
function mrt({ workflow: t, collectionId: e, activeTabName: r }) {
|
|
98859
98908
|
const { sendEvent: n } = dt(), { parameters: i } = t, s = sp(e)?.components.parameters.get({ noproxy: !0 }), a = (l) => {
|
|
98860
|
-
r.set(l), n("tab.change", { source: "workflow", name: l });
|
|
98909
|
+
r.set(l), n("tab.change", [{ source: "workflow", name: l }]);
|
|
98861
98910
|
};
|
|
98862
98911
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
98863
98912
|
/* @__PURE__ */ f.jsx(
|
|
@@ -99326,16 +99375,16 @@ const Urt = ({
|
|
|
99326
99375
|
}) => {
|
|
99327
99376
|
const { environments: i, activeEnvironmentId: o, predefinedEnvironmentNames: s } = xt(), { sendEvent: a } = dt(), [l, c] = we(!1), u = (O) => {
|
|
99328
99377
|
const { name: y } = O.get();
|
|
99329
|
-
O.set(vt), n(y), a("environment.management", { action: "removed", name: y });
|
|
99378
|
+
O.set(vt), n(y), a("environment.management", [{ action: "removed", name: y }]);
|
|
99330
99379
|
}, d = (O) => {
|
|
99331
99380
|
const { name: y } = O.get();
|
|
99332
99381
|
o.set(y);
|
|
99333
99382
|
}, p = () => {
|
|
99334
99383
|
c(!0);
|
|
99335
99384
|
}, h = (O) => {
|
|
99336
|
-
a("environment.management", { action: "creation_finished", name: O }), c(!1), r?.(O);
|
|
99385
|
+
a("environment.management", [{ action: "creation_finished", name: O }]), c(!1), r?.(O);
|
|
99337
99386
|
}, m = () => {
|
|
99338
|
-
c(!1), a("environment.management", { action: "creation_canceled" });
|
|
99387
|
+
c(!1), a("environment.management", [{ action: "creation_canceled" }]);
|
|
99339
99388
|
}, g = (O) => {
|
|
99340
99389
|
const y = new Set(i.get().map((v) => v.name));
|
|
99341
99390
|
return ote(O, y);
|
|
@@ -99639,30 +99688,36 @@ const Urt = ({
|
|
|
99639
99688
|
}
|
|
99640
99689
|
O(w, S);
|
|
99641
99690
|
}, O = (w, S) => {
|
|
99642
|
-
o || (s("input.management",
|
|
99643
|
-
|
|
99644
|
-
|
|
99645
|
-
|
|
99646
|
-
|
|
99647
|
-
|
|
99691
|
+
o || (s("input.management", [
|
|
99692
|
+
{
|
|
99693
|
+
action: "saved",
|
|
99694
|
+
context: "environment",
|
|
99695
|
+
environment_name: a,
|
|
99696
|
+
name: u
|
|
99697
|
+
}
|
|
99698
|
+
]), i.set({ ...i.get(), [w]: S }));
|
|
99648
99699
|
}, y = () => {
|
|
99649
99700
|
if (!o) return;
|
|
99650
99701
|
l.name.trim() && t.inputs.merge([l]);
|
|
99651
99702
|
}, v = () => {
|
|
99652
|
-
o || (i.set(vt), s("input.management",
|
|
99653
|
-
|
|
99654
|
-
|
|
99655
|
-
|
|
99656
|
-
|
|
99657
|
-
|
|
99703
|
+
o || (i.set(vt), s("input.management", [
|
|
99704
|
+
{
|
|
99705
|
+
action: "removed",
|
|
99706
|
+
context: "environment",
|
|
99707
|
+
environment_name: a,
|
|
99708
|
+
name: u
|
|
99709
|
+
}
|
|
99710
|
+
]));
|
|
99658
99711
|
}, b = () => {
|
|
99659
|
-
o || s("input.management",
|
|
99660
|
-
|
|
99661
|
-
|
|
99662
|
-
|
|
99663
|
-
|
|
99664
|
-
|
|
99665
|
-
|
|
99712
|
+
o || s("input.management", [
|
|
99713
|
+
{
|
|
99714
|
+
action: "secret_toggled",
|
|
99715
|
+
context: "environment",
|
|
99716
|
+
environment_name: a,
|
|
99717
|
+
name: u,
|
|
99718
|
+
visible: !h
|
|
99719
|
+
}
|
|
99720
|
+
]), m(!h);
|
|
99666
99721
|
};
|
|
99667
99722
|
return /* @__PURE__ */ f.jsxs(Ug, { children: [
|
|
99668
99723
|
/* @__PURE__ */ f.jsx(Fz, { children: /* @__PURE__ */ f.jsxs("div", { children: [
|
|
@@ -99935,29 +99990,37 @@ function vnt({
|
|
|
99935
99990
|
environmentName: i
|
|
99936
99991
|
}) {
|
|
99937
99992
|
const { sendEvent: o } = dt(), [s, a] = we(!1), { apiId: l, value: c } = e.get(), { api: u } = l2(l), d = u?.info.title.get(), p = (y) => {
|
|
99938
|
-
e.set(y), a(!1), o("server.management",
|
|
99939
|
-
|
|
99940
|
-
|
|
99941
|
-
|
|
99942
|
-
|
|
99993
|
+
e.set(y), a(!1), o("server.management", [
|
|
99994
|
+
{
|
|
99995
|
+
action: "editing_finished",
|
|
99996
|
+
environment_name: i,
|
|
99997
|
+
api_id: l
|
|
99998
|
+
}
|
|
99999
|
+
]);
|
|
99943
100000
|
}, h = () => {
|
|
99944
|
-
o("server.management",
|
|
99945
|
-
|
|
99946
|
-
|
|
99947
|
-
|
|
99948
|
-
|
|
100001
|
+
o("server.management", [
|
|
100002
|
+
{
|
|
100003
|
+
action: "editing_canceled",
|
|
100004
|
+
environment_name: i,
|
|
100005
|
+
api_id: l
|
|
100006
|
+
}
|
|
100007
|
+
]), a(!1);
|
|
99949
100008
|
}, m = () => {
|
|
99950
|
-
o("server.management",
|
|
99951
|
-
|
|
99952
|
-
|
|
99953
|
-
|
|
99954
|
-
|
|
100009
|
+
o("server.management", [
|
|
100010
|
+
{
|
|
100011
|
+
action: "editing_started",
|
|
100012
|
+
environment_name: i,
|
|
100013
|
+
api_id: l
|
|
100014
|
+
}
|
|
100015
|
+
]), a(!0);
|
|
99955
100016
|
}, g = () => {
|
|
99956
|
-
o("server.management",
|
|
99957
|
-
|
|
99958
|
-
|
|
99959
|
-
|
|
99960
|
-
|
|
100017
|
+
o("server.management", [
|
|
100018
|
+
{
|
|
100019
|
+
action: "removed",
|
|
100020
|
+
environment_name: i,
|
|
100021
|
+
api_id: l
|
|
100022
|
+
}
|
|
100023
|
+
]), e.set(vt);
|
|
99961
100024
|
}, O = ke(() => {
|
|
99962
100025
|
const y = /* @__PURE__ */ new Set();
|
|
99963
100026
|
return (!n || !r) && y.add("edit"), r || y.add("remove"), y;
|
|
@@ -100131,21 +100194,27 @@ const bnt = k.div`
|
|
|
100131
100194
|
isPredefinedEnvironment: r
|
|
100132
100195
|
}) => {
|
|
100133
100196
|
const { apis: n } = Am(), { isApiBased: i } = cs(), o = n.length > 0, { sendEvent: s } = dt(), { name: a } = t.get(), [l, c] = we(!1), u = (g) => {
|
|
100134
|
-
g.stopPropagation(), c(!0), s("server.management",
|
|
100135
|
-
|
|
100136
|
-
|
|
100137
|
-
|
|
100197
|
+
g.stopPropagation(), c(!0), s("server.management", [
|
|
100198
|
+
{
|
|
100199
|
+
action: "creation_started",
|
|
100200
|
+
environment_name: a
|
|
100201
|
+
}
|
|
100202
|
+
]);
|
|
100138
100203
|
}, d = (g) => {
|
|
100139
|
-
t.servers.set((O) => [g, ...O]), c(!1), s("server.management",
|
|
100140
|
-
|
|
100141
|
-
|
|
100142
|
-
|
|
100143
|
-
|
|
100204
|
+
t.servers.set((O) => [g, ...O]), c(!1), s("server.management", [
|
|
100205
|
+
{
|
|
100206
|
+
action: "creation_finished",
|
|
100207
|
+
environment_name: a,
|
|
100208
|
+
api_id: g.apiId
|
|
100209
|
+
}
|
|
100210
|
+
]);
|
|
100144
100211
|
}, p = () => {
|
|
100145
|
-
c(!1), s("server.management",
|
|
100146
|
-
|
|
100147
|
-
|
|
100148
|
-
|
|
100212
|
+
c(!1), s("server.management", [
|
|
100213
|
+
{
|
|
100214
|
+
action: "creation_canceled",
|
|
100215
|
+
environment_name: a
|
|
100216
|
+
}
|
|
100217
|
+
]);
|
|
100149
100218
|
}, h = ke(() => new Set(t.servers.map((g) => g.apiId.get())), [t.servers]), m = ke(() => n.filter((g) => !h.has(g.id.get())).map((g) => g.id.get()), [n, h]);
|
|
100150
100219
|
return /* @__PURE__ */ f.jsx(
|
|
100151
100220
|
Ant,
|
|
@@ -100257,16 +100326,16 @@ const bnt = k.div`
|
|
|
100257
100326
|
activeEnvironmentId: a,
|
|
100258
100327
|
environments: l
|
|
100259
100328
|
} = xt(), { name: c, state: u } = t.get(), d = i.get().has(c), p = (w) => {
|
|
100260
|
-
n("environment.management", { action: "edited", name: c, new_name: w }), t.state.set(Wt.Normal), w.length && (t.name.set(w), r(w, c));
|
|
100329
|
+
n("environment.management", [{ action: "edited", name: c, new_name: w }]), t.state.set(Wt.Normal), w.length && (t.name.set(w), r(w, c));
|
|
100261
100330
|
}, h = () => {
|
|
100262
|
-
t.state.set(Wt.Normal), n("environment.management", { action: "editing_canceled", name: c });
|
|
100331
|
+
t.state.set(Wt.Normal), n("environment.management", [{ action: "editing_canceled", name: c }]);
|
|
100263
100332
|
}, m = (w) => {
|
|
100264
100333
|
const S = new Set(
|
|
100265
100334
|
l.get().map((P) => P.name).filter((P) => P !== c)
|
|
100266
100335
|
);
|
|
100267
100336
|
return ote(w, S);
|
|
100268
100337
|
}, g = () => {
|
|
100269
|
-
t.state.set(Wt.Edit), n("environment.management", { action: "editing_started", name: c });
|
|
100338
|
+
t.state.set(Wt.Edit), n("environment.management", [{ action: "editing_started", name: c }]);
|
|
100270
100339
|
}, O = () => {
|
|
100271
100340
|
e();
|
|
100272
100341
|
}, v = !(c === um) && !d, b = u === Wt.Edit || u === Wt.Draft;
|
|
@@ -100448,10 +100517,12 @@ function nR() {
|
|
|
100448
100517
|
handleOpen: i,
|
|
100449
100518
|
handleClose: o
|
|
100450
100519
|
} = ll(), s = sr(), a = (l) => {
|
|
100451
|
-
r.set(l), t("environment.management",
|
|
100452
|
-
|
|
100453
|
-
|
|
100454
|
-
|
|
100520
|
+
r.set(l), t("environment.management", [
|
|
100521
|
+
{
|
|
100522
|
+
action: "selected",
|
|
100523
|
+
name: l
|
|
100524
|
+
}
|
|
100525
|
+
]);
|
|
100455
100526
|
};
|
|
100456
100527
|
return /* @__PURE__ */ f.jsxs(Gnt, { children: [
|
|
100457
100528
|
/* @__PURE__ */ f.jsx(
|
|
@@ -101409,14 +101480,14 @@ function Vit() {
|
|
|
101409
101480
|
e(m);
|
|
101410
101481
|
}, d = Pe(
|
|
101411
101482
|
(m) => {
|
|
101412
|
-
n.find((g) => g.get().id === m)?.set(vt), i("history.management", { action: "item_removed" });
|
|
101483
|
+
n.find((g) => g.get().id === m)?.set(vt), i("history.management", [{ action: "item_removed" }]);
|
|
101413
101484
|
},
|
|
101414
101485
|
[n, i]
|
|
101415
101486
|
), p = Pe(() => {
|
|
101416
|
-
n.set([]), i("history.management", { action: "all_items_removed" });
|
|
101487
|
+
n.set([]), i("history.management", [{ action: "all_items_removed" }]);
|
|
101417
101488
|
}, [n, i]), h = Pe(
|
|
101418
101489
|
(m) => {
|
|
101419
|
-
r(m.id), i("history.management", { action: "item_clicked" }), s("Request");
|
|
101490
|
+
r(m.id), i("history.management", [{ action: "item_clicked" }]), s("Request");
|
|
101420
101491
|
},
|
|
101421
101492
|
[i, s, r]
|
|
101422
101493
|
);
|
|
@@ -101631,13 +101702,15 @@ const Xit = k.div`
|
|
|
101631
101702
|
`;
|
|
101632
101703
|
function iL({ name: t, value: e }) {
|
|
101633
101704
|
const [r, n] = we(!1), { sendEvent: i } = dt(), o = () => {
|
|
101634
|
-
n(!r), i("credential.management",
|
|
101635
|
-
|
|
101636
|
-
|
|
101637
|
-
|
|
101638
|
-
|
|
101705
|
+
n(!r), i("credential.management", [
|
|
101706
|
+
{
|
|
101707
|
+
action: "visibility_toggled",
|
|
101708
|
+
name: t,
|
|
101709
|
+
visible: !r
|
|
101710
|
+
}
|
|
101711
|
+
]);
|
|
101639
101712
|
}, s = () => {
|
|
101640
|
-
i("credential.management", { action: "copied", name: t });
|
|
101713
|
+
i("credential.management", [{ action: "copied", name: t }]);
|
|
101641
101714
|
};
|
|
101642
101715
|
return /* @__PURE__ */ f.jsxs(Jit, { children: [
|
|
101643
101716
|
/* @__PURE__ */ f.jsxs(Kit, { children: [
|
|
@@ -101757,7 +101830,7 @@ function iot({ tab: t, credential: e, number: r, step: n }) {
|
|
|
101757
101830
|
const O = m[me.OpenIDConnect], { grantType: y } = O;
|
|
101758
101831
|
g(y, O);
|
|
101759
101832
|
}
|
|
101760
|
-
o("credential.management", { action: "use_key_clicked", number: r });
|
|
101833
|
+
o("credential.management", [{ action: "use_key_clicked", number: r }]);
|
|
101761
101834
|
};
|
|
101762
101835
|
return /* @__PURE__ */ f.jsxs(oot, { children: [
|
|
101763
101836
|
/* @__PURE__ */ f.jsxs(sot, { children: [
|
|
@@ -101842,7 +101915,7 @@ function hot() {
|
|
|
101842
101915
|
const [t, e] = we(""), {
|
|
101843
101916
|
apps: { apps: r, apiId: n, appsLoadingState: i }
|
|
101844
101917
|
} = xt(), { MobileHeader: o } = na(), { sendEvent: s } = dt(), a = () => {
|
|
101845
|
-
window.open("/apps", "_blank"), s("credential.management", { action: "request_access_clicked" });
|
|
101918
|
+
window.open("/apps", "_blank"), s("credential.management", [{ action: "request_access_clicked" }]);
|
|
101846
101919
|
};
|
|
101847
101920
|
_e(() => ((i.get() === Ts.Idle || i.get() === Ts.Error) && (i.set(Ts.Loading), Va(`/api/api-keys/api-products/${n.get()}/access?expand=0`).then((u) => u.json().then((d) => {
|
|
101848
101921
|
u.ok ? (r.set(d.apps || []), i.set(Ts.Success)) : i.set(Ts.Error);
|
|
@@ -101992,7 +102065,7 @@ const vot = k.div`
|
|
|
101992
102065
|
`;
|
|
101993
102066
|
async function fte(t, e, r) {
|
|
101994
102067
|
try {
|
|
101995
|
-
const { join: n, dirname: i } = await Promise.resolve().then(() => ake), { exists: o } = await Promise.resolve().then(() => rke), { revealItemInDir: s, openPath: a } = await import("./replay-index-
|
|
102068
|
+
const { join: n, dirname: i } = await Promise.resolve().then(() => ake), { exists: o } = await Promise.resolve().then(() => rke), { revealItemInDir: s, openPath: a } = await import("./replay-index-C7rgR6tA.js"), l = await n(t, e);
|
|
101996
102069
|
if (r || !await o(l)) {
|
|
101997
102070
|
const c = await i(l);
|
|
101998
102071
|
await a(c);
|
|
@@ -102014,10 +102087,12 @@ function kot({ node: t }) {
|
|
|
102014
102087
|
try {
|
|
102015
102088
|
if (t.data.type === "api") {
|
|
102016
102089
|
const l = t.data.api.id.get({ noproxy: !0 }), c = r.userFilesDir.get({ noproxy: !0 });
|
|
102017
|
-
await fte(c, l), i("node.management",
|
|
102018
|
-
|
|
102019
|
-
|
|
102020
|
-
|
|
102090
|
+
await fte(c, l), i("node.management", [
|
|
102091
|
+
{
|
|
102092
|
+
action: "reveal_in_folder",
|
|
102093
|
+
node_type: "api"
|
|
102094
|
+
}
|
|
102095
|
+
]);
|
|
102021
102096
|
}
|
|
102022
102097
|
} catch (l) {
|
|
102023
102098
|
console.error("Failed to reveal API in folder:", l);
|
|
@@ -102464,20 +102539,22 @@ function Yot({
|
|
|
102464
102539
|
a.stopPropagation(), t.tree.create({
|
|
102465
102540
|
parentId: t.id,
|
|
102466
102541
|
index: t.children?.length
|
|
102467
|
-
}), e("node.management", { action: "creation_started", node_type: "workflow" });
|
|
102542
|
+
}), e("node.management", [{ action: "creation_started", node_type: "workflow" }]);
|
|
102468
102543
|
}, o = async (a) => {
|
|
102469
102544
|
a.stopPropagation();
|
|
102470
102545
|
try {
|
|
102471
102546
|
const l = t.data.collection.id.get({ noproxy: !0 }), c = r.userFilesDir.get({ noproxy: !0 }), u = t.data.isDraft;
|
|
102472
|
-
await fte(c, l, u), e("node.management",
|
|
102473
|
-
|
|
102474
|
-
|
|
102475
|
-
|
|
102547
|
+
await fte(c, l, u), e("node.management", [
|
|
102548
|
+
{
|
|
102549
|
+
action: "reveal_in_folder",
|
|
102550
|
+
node_type: "collection"
|
|
102551
|
+
}
|
|
102552
|
+
]);
|
|
102476
102553
|
} catch (l) {
|
|
102477
102554
|
console.error("Failed to reveal collection in folder:", l);
|
|
102478
102555
|
}
|
|
102479
102556
|
}, s = (a) => {
|
|
102480
|
-
a.stopPropagation(), t.tree.delete(t.id), e("node.management", { action: "removed", node_type: "collection" });
|
|
102557
|
+
a.stopPropagation(), t.tree.delete(t.id), e("node.management", [{ action: "removed", node_type: "collection" }]);
|
|
102481
102558
|
};
|
|
102482
102559
|
return /* @__PURE__ */ f.jsxs(Got, { children: [
|
|
102483
102560
|
/* @__PURE__ */ f.jsx(pr, { content: "New Workflow", placement: "topRight", children: /* @__PURE__ */ f.jsx(Re, { variant: "text", size: "small", icon: /* @__PURE__ */ f.jsx(Kn, {}), onClick: i }) }),
|
|
@@ -102495,10 +102572,12 @@ function Yot({
|
|
|
102495
102572
|
Hn,
|
|
102496
102573
|
{
|
|
102497
102574
|
onClick: (a) => {
|
|
102498
|
-
a.stopPropagation(), e("node.management",
|
|
102499
|
-
|
|
102500
|
-
|
|
102501
|
-
|
|
102575
|
+
a.stopPropagation(), e("node.management", [
|
|
102576
|
+
{
|
|
102577
|
+
action: "editing_started",
|
|
102578
|
+
node_type: "collection"
|
|
102579
|
+
}
|
|
102580
|
+
]), t.edit();
|
|
102502
102581
|
},
|
|
102503
102582
|
children: [
|
|
102504
102583
|
/* @__PURE__ */ f.jsx(mi, { size: "14px" }),
|
|
@@ -102626,11 +102705,13 @@ function lst({
|
|
|
102626
102705
|
}, g = () => {
|
|
102627
102706
|
o(!1);
|
|
102628
102707
|
}, O = (v) => {
|
|
102629
|
-
v.stopPropagation(), d("button.click",
|
|
102630
|
-
|
|
102631
|
-
|
|
102632
|
-
|
|
102633
|
-
|
|
102708
|
+
v.stopPropagation(), d("button.click", [
|
|
102709
|
+
{
|
|
102710
|
+
source: "collections",
|
|
102711
|
+
action: "manage_connection",
|
|
102712
|
+
type: p
|
|
102713
|
+
}
|
|
102714
|
+
]), a(), o(!1);
|
|
102634
102715
|
}, y = ke(() => {
|
|
102635
102716
|
switch (p) {
|
|
102636
102717
|
case In.Connected:
|
|
@@ -102723,7 +102804,7 @@ function gst({
|
|
|
102723
102804
|
node: t
|
|
102724
102805
|
}) {
|
|
102725
102806
|
const { sendEvent: e } = dt(), r = (n) => {
|
|
102726
|
-
n.stopPropagation(), t.tree.delete(t.id), e("node.management", { action: "removed", node_type: "step" });
|
|
102807
|
+
n.stopPropagation(), t.tree.delete(t.id), e("node.management", [{ action: "removed", node_type: "step" }]);
|
|
102727
102808
|
};
|
|
102728
102809
|
return /* @__PURE__ */ f.jsxs(mst, { children: [
|
|
102729
102810
|
/* @__PURE__ */ f.jsx(pr, { content: "Rename", placement: "topRight", children: /* @__PURE__ */ f.jsx(
|
|
@@ -102732,7 +102813,7 @@ function gst({
|
|
|
102732
102813
|
variant: "text",
|
|
102733
102814
|
size: "small",
|
|
102734
102815
|
onClick: (n) => {
|
|
102735
|
-
n.stopPropagation(), e("node.management", { action: "editing_started", node_type: "step" }), t.edit();
|
|
102816
|
+
n.stopPropagation(), e("node.management", [{ action: "editing_started", node_type: "step" }]), t.edit();
|
|
102736
102817
|
},
|
|
102737
102818
|
icon: /* @__PURE__ */ f.jsx(mi, {})
|
|
102738
102819
|
}
|
|
@@ -102790,17 +102871,19 @@ function xst({
|
|
|
102790
102871
|
s.stopPropagation(), t.tree.create({
|
|
102791
102872
|
parentId: t.id,
|
|
102792
102873
|
index: t.children?.length
|
|
102793
|
-
}), r("node.management", { action: "creation_started", node_type: "step" });
|
|
102874
|
+
}), r("node.management", [{ action: "creation_started", node_type: "step" }]);
|
|
102794
102875
|
}, i = (s) => {
|
|
102795
102876
|
s.stopPropagation(), e({
|
|
102796
102877
|
collectionId: t.data.collectionId,
|
|
102797
102878
|
workflowId: t.data.workflowId
|
|
102798
102879
|
});
|
|
102799
102880
|
}, o = (s) => {
|
|
102800
|
-
s.stopPropagation(), t.tree.delete(t.id), r("node.management",
|
|
102801
|
-
|
|
102802
|
-
|
|
102803
|
-
|
|
102881
|
+
s.stopPropagation(), t.tree.delete(t.id), r("node.management", [
|
|
102882
|
+
{
|
|
102883
|
+
action: "removed",
|
|
102884
|
+
node_type: "workflow"
|
|
102885
|
+
}
|
|
102886
|
+
]);
|
|
102804
102887
|
};
|
|
102805
102888
|
return /* @__PURE__ */ f.jsxs(Sst, { children: [
|
|
102806
102889
|
t.data.workflow.steps.length > 0 && /* @__PURE__ */ f.jsx(pr, { content: "Run Workflow", placement: "topRight", children: /* @__PURE__ */ f.jsx(
|
|
@@ -102835,10 +102918,12 @@ function xst({
|
|
|
102835
102918
|
Hn,
|
|
102836
102919
|
{
|
|
102837
102920
|
onClick: (s) => {
|
|
102838
|
-
s.stopPropagation(), r("node.management",
|
|
102839
|
-
|
|
102840
|
-
|
|
102841
|
-
|
|
102921
|
+
s.stopPropagation(), r("node.management", [
|
|
102922
|
+
{
|
|
102923
|
+
action: "editing_started",
|
|
102924
|
+
node_type: "workflow"
|
|
102925
|
+
}
|
|
102926
|
+
]), t.edit();
|
|
102842
102927
|
},
|
|
102843
102928
|
children: [
|
|
102844
102929
|
/* @__PURE__ */ f.jsx(mi, { size: "14px" }),
|
|
@@ -103182,10 +103267,12 @@ function zst({ isOpen: t, onClose: e, onImport: r }) {
|
|
|
103182
103267
|
a(m);
|
|
103183
103268
|
return;
|
|
103184
103269
|
}
|
|
103185
|
-
n("button.click",
|
|
103186
|
-
|
|
103187
|
-
|
|
103188
|
-
|
|
103270
|
+
n("button.click", [
|
|
103271
|
+
{
|
|
103272
|
+
source: "import_curl_modal",
|
|
103273
|
+
action: "import"
|
|
103274
|
+
}
|
|
103275
|
+
]), r(h), o(""), a(null), e();
|
|
103189
103276
|
}, [i, s, r, e, n]), u = Pe(() => {
|
|
103190
103277
|
o(""), a(null), e();
|
|
103191
103278
|
}, [e]), d = i.trim() && !s, p = ke(() => GZ("curl https://api.example.com/users"), []);
|
|
@@ -103327,17 +103414,21 @@ function Fst() {
|
|
|
103327
103414
|
case "collection":
|
|
103328
103415
|
if (ne.data.collection.info.title.set(U), ne.data.isDraft) {
|
|
103329
103416
|
const X = aJ({ name: U, collections: l });
|
|
103330
|
-
ne.data.collection.merge({ id: X, state: Wt.Normal }), u("node.management",
|
|
103331
|
-
|
|
103332
|
-
|
|
103333
|
-
|
|
103334
|
-
|
|
103417
|
+
ne.data.collection.merge({ id: X, state: Wt.Normal }), u("node.management", [
|
|
103418
|
+
{
|
|
103419
|
+
action: "creation_finished",
|
|
103420
|
+
node_type: "collection",
|
|
103421
|
+
name: U
|
|
103422
|
+
}
|
|
103423
|
+
]);
|
|
103335
103424
|
} else
|
|
103336
|
-
u("node.management",
|
|
103337
|
-
|
|
103338
|
-
|
|
103339
|
-
|
|
103340
|
-
|
|
103425
|
+
u("node.management", [
|
|
103426
|
+
{
|
|
103427
|
+
action: "editing_finished",
|
|
103428
|
+
node_type: "collection",
|
|
103429
|
+
name: U
|
|
103430
|
+
}
|
|
103431
|
+
]);
|
|
103341
103432
|
break;
|
|
103342
103433
|
case "workflow":
|
|
103343
103434
|
if (ne.data.workflow.summary.set(U), ne.data.isDraft) {
|
|
@@ -103349,17 +103440,21 @@ function Fst() {
|
|
|
103349
103440
|
collectionId: ne.data.collectionId,
|
|
103350
103441
|
workflowId: ne.data.workflowId
|
|
103351
103442
|
});
|
|
103352
|
-
A && A.data.workflowId.set(M), ne.data.workflow.workflowId.set(M), ne.data.workflow.state.set(Wt.Normal), u("node.management",
|
|
103353
|
-
|
|
103354
|
-
|
|
103355
|
-
|
|
103356
|
-
|
|
103443
|
+
A && A.data.workflowId.set(M), ne.data.workflow.workflowId.set(M), ne.data.workflow.state.set(Wt.Normal), u("node.management", [
|
|
103444
|
+
{
|
|
103445
|
+
action: "creation_finished",
|
|
103446
|
+
node_type: "workflow",
|
|
103447
|
+
name: U
|
|
103448
|
+
}
|
|
103449
|
+
]);
|
|
103357
103450
|
} else
|
|
103358
|
-
u("node.management",
|
|
103359
|
-
|
|
103360
|
-
|
|
103361
|
-
|
|
103362
|
-
|
|
103451
|
+
u("node.management", [
|
|
103452
|
+
{
|
|
103453
|
+
action: "editing_finished",
|
|
103454
|
+
node_type: "workflow",
|
|
103455
|
+
name: U
|
|
103456
|
+
}
|
|
103457
|
+
]);
|
|
103363
103458
|
break;
|
|
103364
103459
|
case "step":
|
|
103365
103460
|
const N = a({
|
|
@@ -103369,15 +103464,19 @@ function Fst() {
|
|
|
103369
103464
|
stepId: ne.data.stepId,
|
|
103370
103465
|
historyId: null
|
|
103371
103466
|
})?.data, D = U.replaceAll(" ", "-");
|
|
103372
|
-
N && N.stepId.set(D), ne.data.step.stepId.set(D), ne.data.isDraft ? (ne.data.step.state.set(Wt.Normal), u("node.management",
|
|
103373
|
-
|
|
103374
|
-
|
|
103375
|
-
|
|
103376
|
-
|
|
103377
|
-
|
|
103378
|
-
|
|
103379
|
-
|
|
103380
|
-
|
|
103467
|
+
N && N.stepId.set(D), ne.data.step.stepId.set(D), ne.data.isDraft ? (ne.data.step.state.set(Wt.Normal), u("node.management", [
|
|
103468
|
+
{
|
|
103469
|
+
action: "creation_finished",
|
|
103470
|
+
node_type: "step",
|
|
103471
|
+
name: U
|
|
103472
|
+
}
|
|
103473
|
+
])) : u("node.management", [
|
|
103474
|
+
{
|
|
103475
|
+
action: "editing_finished",
|
|
103476
|
+
node_type: "step",
|
|
103477
|
+
name: U
|
|
103478
|
+
}
|
|
103479
|
+
]);
|
|
103381
103480
|
break;
|
|
103382
103481
|
}
|
|
103383
103482
|
}, P = ({ parentNode: U, index: ne }) => {
|
|
@@ -103406,19 +103505,25 @@ function Fst() {
|
|
|
103406
103505
|
), T = Pe(
|
|
103407
103506
|
(U) => {
|
|
103408
103507
|
for (const ne of U)
|
|
103409
|
-
C(ne), ne.data.type === "collection" && (ne.data.collection.set(vt), u("node.management",
|
|
103410
|
-
|
|
103411
|
-
|
|
103412
|
-
|
|
103413
|
-
|
|
103414
|
-
|
|
103415
|
-
|
|
103416
|
-
|
|
103417
|
-
|
|
103418
|
-
|
|
103419
|
-
|
|
103420
|
-
|
|
103421
|
-
|
|
103508
|
+
C(ne), ne.data.type === "collection" && (ne.data.collection.set(vt), u("node.management", [
|
|
103509
|
+
{
|
|
103510
|
+
action: "removed",
|
|
103511
|
+
node_type: "collection",
|
|
103512
|
+
name: ne.data.name
|
|
103513
|
+
}
|
|
103514
|
+
])), ne.data.type === "workflow" && (ne.data.workflow.set(vt), u("node.management", [
|
|
103515
|
+
{
|
|
103516
|
+
action: "removed",
|
|
103517
|
+
node_type: "workflow",
|
|
103518
|
+
name: ne.data.name
|
|
103519
|
+
}
|
|
103520
|
+
])), ne.data.type === "step" && (ne.data.step.set(vt), u("node.management", [
|
|
103521
|
+
{
|
|
103522
|
+
action: "removed",
|
|
103523
|
+
node_type: "step",
|
|
103524
|
+
name: ne.data.name
|
|
103525
|
+
}
|
|
103526
|
+
]));
|
|
103422
103527
|
},
|
|
103423
103528
|
[u, C]
|
|
103424
103529
|
), { onDelete: I, getDialogProps: j } = gte({
|
|
@@ -103427,13 +103532,15 @@ function Fst() {
|
|
|
103427
103532
|
getNodeTypeLabel: (U) => U.data.type
|
|
103428
103533
|
});
|
|
103429
103534
|
function R({ index: U }) {
|
|
103430
|
-
c.current?.create({ parentId: null, index: U }), u("node.management", { action: "creation_started", node_type: "collection" });
|
|
103535
|
+
c.current?.create({ parentId: null, index: U }), u("node.management", [{ action: "creation_started", node_type: "collection" }]);
|
|
103431
103536
|
}
|
|
103432
103537
|
function q() {
|
|
103433
|
-
u("button.click",
|
|
103434
|
-
|
|
103435
|
-
|
|
103436
|
-
|
|
103538
|
+
u("button.click", [
|
|
103539
|
+
{
|
|
103540
|
+
source: "collections_plus_button",
|
|
103541
|
+
action: "import_curl"
|
|
103542
|
+
}
|
|
103543
|
+
]), y();
|
|
103437
103544
|
}
|
|
103438
103545
|
function V(U) {
|
|
103439
103546
|
U.data.type === "collection" && n({
|
|
@@ -103684,7 +103791,7 @@ const Bst = () => {
|
|
|
103684
103791
|
document.documentElement.clientWidth < Jn
|
|
103685
103792
|
), { tabsParams: s } = mS(r.get(), i), [a, l] = we("Request"), c = Pe(
|
|
103686
103793
|
(d) => {
|
|
103687
|
-
n("tab.change", { source: "mobile", name: d });
|
|
103794
|
+
n("tab.change", [{ source: "mobile", name: d }]);
|
|
103688
103795
|
},
|
|
103689
103796
|
[n]
|
|
103690
103797
|
), u = s.map((d) => ({
|
|
@@ -103922,7 +104029,7 @@ function cL({ children: t }) {
|
|
|
103922
104029
|
apps: { apiId: e }
|
|
103923
104030
|
} = xt(), { sendEvent: r } = dt(), { tabsParams: n } = mS(e.get(), !1), [i, o] = we(n[0]?.key || null), s = Pe(
|
|
103924
104031
|
(l) => {
|
|
103925
|
-
o(l), r("tab.change", { source: "side_panel", name: l });
|
|
104032
|
+
o(l), r("tab.change", [{ source: "side_panel", name: l }]);
|
|
103926
104033
|
},
|
|
103927
104034
|
[r]
|
|
103928
104035
|
), a = {
|
|
@@ -104075,14 +104182,14 @@ function Zat(t) {
|
|
|
104075
104182
|
}
|
|
104076
104183
|
function bat({ onClose: t, onLoad: e, onRequestChange: r }) {
|
|
104077
104184
|
const { sendEvent: n } = dt(), i = xt(), o = Qe(!1), s = Pe(() => {
|
|
104078
|
-
o.current || (o.current = !0, r && r(_9e(i)), n("app.lifecycle", { action: "close" }), t());
|
|
104185
|
+
o.current || (o.current = !0, r && r(_9e(i)), n("app.lifecycle", [{ action: "close" }]), t());
|
|
104079
104186
|
}, [r, n, t, i]);
|
|
104080
104187
|
_e(() => {
|
|
104081
104188
|
e?.();
|
|
104082
104189
|
const l = () => {
|
|
104083
|
-
o.current || n("app.lifecycle", { action: "close" });
|
|
104190
|
+
o.current || n("app.lifecycle", [{ action: "close" }]);
|
|
104084
104191
|
};
|
|
104085
|
-
return window.addEventListener("beforeunload", l), n("app.lifecycle", { action: "open" }), () => {
|
|
104192
|
+
return window.addEventListener("beforeunload", l), n("app.lifecycle", [{ action: "open" }]), () => {
|
|
104086
104193
|
window.removeEventListener("beforeunload", l);
|
|
104087
104194
|
};
|
|
104088
104195
|
}, []);
|