@wso2/am-core-ui 0.0.19 → 0.0.20
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/CatalogKindListing-DvUuZEpc.js +137 -0
- package/dist/{CodeBlock-mB_Loq7I.js → CodeBlock-B2Ecl916.js} +1 -1
- package/dist/EnvironmentCard-CIXhDhlZ.js +319 -0
- package/dist/{EnvironmentSelector-B7Bl93s2.js → EnvironmentSelector-D8S6nO9u.js} +1 -1
- package/dist/IsolationTierIndicator-cf90kgjL.js +81 -0
- package/dist/LabelChips-7rA7_yre.js +139 -0
- package/dist/PolicyListSection-D6aVSKwP.js +1143 -0
- package/dist/{ResourceListShell-Cx6mdeqv.js → ResourceListShell-DFisKftq.js} +1 -1
- package/dist/{SwaggerSpecViewer-BvkhoKsi.js → SwaggerSpecViewer-DzjR6U6W.js} +1 -1
- package/dist/{debounce-BV83M53b.js → debounce-D17ObVdG.js} +1 -1
- package/dist/{format-BEZZRyE2.js → format-wlHhWjGo.js} +1 -1
- package/dist/{formatDistanceToNow-TErllcH8.js → formatDistanceToNow-DyjnT7l9.js} +11 -11
- package/dist/{gatewayScripts-D8O45W8u.js → gatewayScripts-D4ZDEDPS.js} +1 -1
- package/dist/{index-sr-mWz4T.js → index-3K-zqdp-.js} +32 -32
- package/dist/{index-KRsV2L4V.js → index-6liAPSDn.js} +160 -160
- package/dist/{index-B52h3RHg.js → index-B3ASENUJ.js} +109 -109
- package/dist/index-B7Pf4oPq.js +3069 -0
- package/dist/index-BNO3FhZK.js +2304 -0
- package/dist/index-BUZSfCl5.js +335 -0
- package/dist/index-BXiG1r_o.js +1409 -0
- package/dist/{index-_0Pj_ZtW.js → index-BYy7Iaam.js} +40 -40
- package/dist/{index-BfjzUWDa.js → index-BbB_yx4V.js} +103 -103
- package/dist/index-BjWJ95lH.js +2728 -0
- package/dist/{index-B_Z0MwXk.js → index-ByEInFlf.js} +10916 -9520
- package/dist/index-C8WIhzyz.js +123 -0
- package/dist/index-CnzvaT6b.js +2368 -0
- package/dist/index-CrnCf-hJ.js +763 -0
- package/dist/{index-CgCWbWzN.js → index-Cvsho9xg.js} +381 -377
- package/dist/{index-UqDmyMSA.js → index-CxnAo1_c.js} +21 -21
- package/dist/{index-BnV-PkwM.js → index-Cz7-AZwE.js} +2 -2
- package/dist/{index-BP5drcF2.js → index-DBdRFjxm.js} +232 -233
- package/dist/{index-BZ4vxviI.js → index-DFsSvmMZ.js} +5 -5
- package/dist/index-DslzOSGN.js +2549 -0
- package/dist/{index-DD4qF7gq.js → index-DvpYvchM.js} +101 -100
- package/dist/index.d.ts +784 -163
- package/dist/index.js +532 -454
- package/dist/js-yaml-CvhD-clg.js +1335 -0
- package/dist/{llmProviderPayload-CzihkdNa.js → llmProviderPayload-BPzWDy7n.js} +2 -2
- package/package.json +1 -1
- package/dist/CatalogKindListing-DtFI2YMG.js +0 -118
- package/dist/EnvironmentCard-09h1XRxx.js +0 -310
- package/dist/PolicyListSection-o4k9e8XO.js +0 -2475
- package/dist/index-CGDYgUCH.js +0 -711
- package/dist/index-COt7nJIf.js +0 -2286
- package/dist/index-CWZjOy1h.js +0 -2247
- package/dist/index-CezvogTQ.js +0 -116
- package/dist/index-CjCkcuuI.js +0 -322
- package/dist/index-CjXvuf9m.js +0 -1354
- package/dist/index-DeQ-9KTC.js +0 -737
- package/dist/index-Df6OBy4E.js +0 -3041
- package/dist/index-PUuASE1F.js +0 -2507
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as ft, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as H } from "react/compiler-runtime";
|
|
3
|
-
import { useTheme as er, alpha as Sr, CircularProgress as Je, Stack as oe, Typography as V, Alert as Ct, Box as U, Skeleton as ne, FormControl as sr, InputLabel as Pr, Select as or, MenuItem as gt, Chip as cr, FormHelperText as
|
|
4
|
-
import { ChevronRight as Br, Clock as ur, X as Ir, Check as Dr, FileText as Ar, Logs as Nr, Wrench as bt, XCircle as
|
|
5
|
-
import {
|
|
3
|
+
import { useTheme as er, alpha as Sr, CircularProgress as Je, Stack as oe, Typography as V, Alert as Ct, Box as U, Skeleton as ne, FormControl as sr, InputLabel as Pr, Select as or, MenuItem as gt, Chip as cr, FormHelperText as Kt, Button as K, Grid as le, StatCard as Zt, DataGrid as dr, ListingTable as E, TablePagination as xr, Form as se, TextField as Xt, DialogContent as vr, DialogTitle as Tr, DialogActions as wr, Dialog as _r, Card as ht, CardContent as mt, Divider as kr, Collapse as pt } from "@wso2/oxygen-ui";
|
|
4
|
+
import { ChevronRight as Br, Clock as ur, X as Ir, Check as Dr, FileText as Ar, Logs as Nr, Wrench as bt, XCircle as Qt, CheckCircle as yt, TrendingUp as Lr, Rocket as ir, Circle as hr, Plus as Rr, Settings as mr } from "@wso2/oxygen-ui-icons-react";
|
|
5
|
+
import { S as zr, U as Ur, M as Fr, D as tr, V as Mr, s as rr, W as Wr, o as pr, X as Er, p as nr, h as jr, B as Vr, g as Or, t as ar, O as $r, y as fr, Y as Gr, Z as qr, x as Hr, _ as Zr, n as re, $ as Xr, P as Yr } from "./index-ByEInFlf.js";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
7
|
import { useState as ee, useMemo as Ye, useCallback as Yt, useEffect as Jr } from "react";
|
|
8
|
-
import { useParams as St, useSearchParams as gr, Link as
|
|
9
|
-
import { f as en } from "./formatDistanceToNow-
|
|
8
|
+
import { useParams as St, useSearchParams as gr, Link as Kr, generatePath as Qr } from "react-router-dom";
|
|
9
|
+
import { f as en } from "./formatDistanceToNow-DyjnT7l9.js";
|
|
10
10
|
import { o as br, s as G, u as tn, _ as rn, n as nn, a as an } from "./schemas-DFScWdSL.js";
|
|
11
11
|
const ln = (t) => {
|
|
12
12
|
switch (t.status) {
|
|
@@ -174,23 +174,23 @@ function un(t) {
|
|
|
174
174
|
e[29] !== R ? (o = !!R && /* @__PURE__ */ r(Ct, { severity: "error", children: Fr(R) }), e[29] = R, e[30] = o) : o = e[30];
|
|
175
175
|
let M;
|
|
176
176
|
e[31] !== w ? (M = w && /* @__PURE__ */ r(dn, {}), e[31] = w, e[32] = M) : M = e[32];
|
|
177
|
-
let
|
|
178
|
-
e[33] !== f ? (
|
|
177
|
+
let j;
|
|
178
|
+
e[33] !== f ? (j = f && /* @__PURE__ */ r(cn, { build: f }), e[33] = f, e[34] = j) : j = e[34];
|
|
179
179
|
let W;
|
|
180
180
|
e[35] !== P || e[36] !== C || e[37] !== T || e[38] !== k ? (W = /* @__PURE__ */ r(Mr, { logs: k, isLoading: C, error: P, showSearch: !1, showTimestamp: !1, showLogLevel: !1, maxHeight: "calc(100vh - 172px)", emptyState: T }), e[35] = P, e[36] = C, e[37] = T, e[38] = k, e[39] = W) : W = e[39];
|
|
181
181
|
let L;
|
|
182
|
-
e[40] !== x || e[41] !== o || e[42] !== M || e[43] !==
|
|
182
|
+
e[40] !== x || e[41] !== o || e[42] !== M || e[43] !== j || e[44] !== W ? (L = /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ u(oe, { direction: "column", gap: 2, height: "calc(100vh - 72px)", children: [
|
|
183
183
|
x,
|
|
184
184
|
o,
|
|
185
185
|
M,
|
|
186
|
-
|
|
186
|
+
j,
|
|
187
187
|
W
|
|
188
|
-
] }) }), e[40] = x, e[41] = o, e[42] = M, e[43] =
|
|
189
|
-
let
|
|
190
|
-
return e[46] !== L || e[47] !== n ? (
|
|
188
|
+
] }) }), e[40] = x, e[41] = o, e[42] = M, e[43] = j, e[44] = W, e[45] = L) : L = e[45];
|
|
189
|
+
let $;
|
|
190
|
+
return e[46] !== L || e[47] !== n ? ($ = /* @__PURE__ */ u(oe, { direction: "column", height: "100%", children: [
|
|
191
191
|
n,
|
|
192
192
|
L
|
|
193
|
-
] }), e[46] = L, e[47] = n, e[48] =
|
|
193
|
+
] }), e[46] = L, e[47] = n, e[48] = $) : $ = e[48], $;
|
|
194
194
|
}
|
|
195
195
|
function hn(t) {
|
|
196
196
|
if (!t) return null;
|
|
@@ -229,7 +229,7 @@ function mn({
|
|
|
229
229
|
data: f,
|
|
230
230
|
isLoading: w,
|
|
231
231
|
isError: R
|
|
232
|
-
} =
|
|
232
|
+
} = Er({
|
|
233
233
|
owner: b?.owner || "",
|
|
234
234
|
repo: b?.repo || "",
|
|
235
235
|
branch: S || void 0,
|
|
@@ -295,11 +295,11 @@ function mn({
|
|
|
295
295
|
] }),
|
|
296
296
|
/* @__PURE__ */ r(V, { variant: "caption", color: "text.secondary", children: C.shortSha })
|
|
297
297
|
] }) }, C.sha)) }),
|
|
298
|
-
/* @__PURE__ */ r(
|
|
298
|
+
/* @__PURE__ */ r(Kt, { children: "Select the commit to build" })
|
|
299
299
|
] }) }),
|
|
300
300
|
/* @__PURE__ */ u(U, { display: "flex", gap: 1, justifyContent: "flex-end", width: "100%", children: [
|
|
301
|
-
/* @__PURE__ */ r(
|
|
302
|
-
/* @__PURE__ */ r(
|
|
301
|
+
/* @__PURE__ */ r(K, { variant: "outlined", color: "primary", onClick: t, children: "Cancel" }),
|
|
302
|
+
/* @__PURE__ */ r(K, { variant: "contained", color: "primary", onClick: D, startIcon: /* @__PURE__ */ r(bt, { size: 16 }), disabled: m || I || !S, children: "Trigger Build" })
|
|
303
303
|
] })
|
|
304
304
|
] })
|
|
305
305
|
] });
|
|
@@ -368,7 +368,7 @@ const bn = () => {
|
|
|
368
368
|
}
|
|
369
369
|
const b = d?.builds.length ?? 0, p = I / Math.max(1, I + S), f = h === "Pending" || h === "Running";
|
|
370
370
|
let w;
|
|
371
|
-
t[5] !== f || t[6] !== m || t[7] !== h ? (w = m ? f ? /* @__PURE__ */ r(Je, { size: 24 }) : h === "Failed" ? /* @__PURE__ */ r(
|
|
371
|
+
t[5] !== f || t[6] !== m || t[7] !== h ? (w = m ? f ? /* @__PURE__ */ r(Je, { size: 24 }) : h === "Failed" ? /* @__PURE__ */ r(Qt, { size: 24 }) : /* @__PURE__ */ r(yt, { size: 24 }) : /* @__PURE__ */ r(Qt, { size: 24 }), t[5] = f, t[6] = m, t[7] = h, t[8] = w) : w = t[8];
|
|
372
372
|
const R = w;
|
|
373
373
|
let _;
|
|
374
374
|
t[9] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
@@ -428,7 +428,7 @@ const {
|
|
|
428
428
|
case "warning":
|
|
429
429
|
return /* @__PURE__ */ r(Je, { size: 14, color: "warning" });
|
|
430
430
|
case "error":
|
|
431
|
-
return /* @__PURE__ */ r(
|
|
431
|
+
return /* @__PURE__ */ r(Qt, { size: 16 });
|
|
432
432
|
default:
|
|
433
433
|
return /* @__PURE__ */ r(hr, { size: 16 });
|
|
434
434
|
}
|
|
@@ -467,9 +467,9 @@ function vn() {
|
|
|
467
467
|
s.delete("selectedBuild"), s.delete("panel"), a(s);
|
|
468
468
|
}, [e, a]);
|
|
469
469
|
return /* @__PURE__ */ u(ft, { children: [
|
|
470
|
-
/* @__PURE__ */ r(
|
|
470
|
+
/* @__PURE__ */ r(E.Provider, { sortField: S, sortDirection: p, onSortChange: F, page: w, rowsPerPage: _, totalCount: k.length, onPageChange: R, onRowsPerPageChange: (s) => {
|
|
471
471
|
D(s), R(0);
|
|
472
|
-
}, children: /* @__PURE__ */ r(
|
|
472
|
+
}, children: /* @__PURE__ */ r(E.Container, { children: C ? /* @__PURE__ */ r(Sn, { rows: [], columns: [{
|
|
473
473
|
field: "branch",
|
|
474
474
|
headerName: "Branch",
|
|
475
475
|
flex: 1
|
|
@@ -490,25 +490,25 @@ function vn() {
|
|
|
490
490
|
headerName: "",
|
|
491
491
|
flex: 1
|
|
492
492
|
}], loading: !0, hideFooter: !0 }) : k.length > 0 ? /* @__PURE__ */ u(ft, { children: [
|
|
493
|
-
/* @__PURE__ */ u(
|
|
494
|
-
/* @__PURE__ */ r(
|
|
495
|
-
/* @__PURE__ */ r(
|
|
496
|
-
/* @__PURE__ */ r(
|
|
497
|
-
/* @__PURE__ */ r(
|
|
498
|
-
/* @__PURE__ */ r(
|
|
499
|
-
/* @__PURE__ */ r(
|
|
493
|
+
/* @__PURE__ */ u(E, { children: [
|
|
494
|
+
/* @__PURE__ */ r(E.Head, { children: /* @__PURE__ */ u(E.Row, { children: [
|
|
495
|
+
/* @__PURE__ */ r(E.Cell, { width: "15%", children: /* @__PURE__ */ r(E.SortLabel, { field: "branch", children: "Branch" }) }),
|
|
496
|
+
/* @__PURE__ */ r(E.Cell, { width: "15%", children: /* @__PURE__ */ r(E.SortLabel, { field: "title", children: "Build Name" }) }),
|
|
497
|
+
/* @__PURE__ */ r(E.Cell, { width: "15%", children: /* @__PURE__ */ r(E.SortLabel, { field: "startedAt", children: "Started At" }) }),
|
|
498
|
+
/* @__PURE__ */ r(E.Cell, { width: "12%", children: /* @__PURE__ */ r(E.SortLabel, { field: "status", children: "Status" }) }),
|
|
499
|
+
/* @__PURE__ */ r(E.Cell, { width: "10%", align: "right" })
|
|
500
500
|
] }) }),
|
|
501
|
-
/* @__PURE__ */ r(
|
|
502
|
-
/* @__PURE__ */ r(
|
|
503
|
-
/* @__PURE__ */ r(
|
|
504
|
-
/* @__PURE__ */ r(
|
|
505
|
-
/* @__PURE__ */ r(
|
|
501
|
+
/* @__PURE__ */ r(E.Body, { children: N.map((s) => /* @__PURE__ */ u(E.Row, { hover: !0, children: [
|
|
502
|
+
/* @__PURE__ */ r(E.Cell, { children: /* @__PURE__ */ r(V, { noWrap: !0, variant: "body2", children: `${s.branch} : ${s.commit.substring(0, 7)}` }) }),
|
|
503
|
+
/* @__PURE__ */ r(E.Cell, { children: /* @__PURE__ */ r(V, { noWrap: !0, variant: "body2", color: "text.primary", children: s.title }) }),
|
|
504
|
+
/* @__PURE__ */ r(E.Cell, { children: /* @__PURE__ */ r(V, { noWrap: !0, variant: "body2", color: "text.secondary", children: jr(new Date(s.startedAt), "dd/MM/yyyy HH:mm:ss") }) }),
|
|
505
|
+
/* @__PURE__ */ r(E.Cell, { children: xn({
|
|
506
506
|
color: Vr[s.status],
|
|
507
507
|
label: s.status
|
|
508
508
|
}, t) }),
|
|
509
|
-
/* @__PURE__ */ r(
|
|
510
|
-
/* @__PURE__ */ r(
|
|
511
|
-
/* @__PURE__ */ r(
|
|
509
|
+
/* @__PURE__ */ r(E.Cell, { align: "right", children: /* @__PURE__ */ u(U, { display: "flex", justifyContent: "flex-end", gap: 1, children: [
|
|
510
|
+
/* @__PURE__ */ r(K, { variant: "text", color: "primary", onClick: () => z(s.title, "logs"), size: "small", children: "Details" }),
|
|
511
|
+
/* @__PURE__ */ r(K, { variant: "outlined", color: "primary", disabled: s.status === "Pending" || s.status === "Running" || s.status === "Failed", component: Kr, to: `${Qr(Or.children.org.children.projects.children.agents.children.deployment.path, {
|
|
512
512
|
orgId: d,
|
|
513
513
|
projectId: c,
|
|
514
514
|
agentId: m
|
|
@@ -519,7 +519,7 @@ function vn() {
|
|
|
519
519
|
/* @__PURE__ */ r(xr, { rowsPerPageOptions: [5, 10, 25], component: "div", count: k.length, rowsPerPage: _, page: w, onPageChange: (s, n) => R(n), onRowsPerPageChange: (s) => {
|
|
520
520
|
D(parseInt(s.target.value, 10)), R(0);
|
|
521
521
|
} })
|
|
522
|
-
] }) : /* @__PURE__ */ r(
|
|
522
|
+
] }) : /* @__PURE__ */ r(E.EmptyState, { illustration: /* @__PURE__ */ r(ir, { size: 64 }), title: "No builds yet", description: "Trigger a build to see it listed here" }) }) }),
|
|
523
523
|
/* @__PURE__ */ r(ar, { open: !!l, onClose: T, fullscreen: h, children: i === "logs" && l && /* @__PURE__ */ r(un, { onClose: T, onFullscreenChange: I, orgName: d || "", projName: c || "", agentName: m || "", buildName: l }) })
|
|
524
524
|
] });
|
|
525
525
|
}
|
|
@@ -585,7 +585,7 @@ const wn = () => {
|
|
|
585
585
|
return t[4] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ r(Tn, {}), t[4] = m) : m = t[4], m;
|
|
586
586
|
}
|
|
587
587
|
let c;
|
|
588
|
-
return t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ r(
|
|
588
|
+
return t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ r($r, { children: /* @__PURE__ */ u(oe, { gap: 4, flexDirection: "column", children: [
|
|
589
589
|
/* @__PURE__ */ r(bn, {}),
|
|
590
590
|
/* @__PURE__ */ r(vn, {})
|
|
591
591
|
] }) }), t[5] = c) : c = t[5], c;
|
|
@@ -617,11 +617,11 @@ const wn = () => {
|
|
|
617
617
|
reset: R
|
|
618
618
|
} = Gr();
|
|
619
619
|
let _;
|
|
620
|
-
e[0] !== b ? (_ = (
|
|
620
|
+
e[0] !== b ? (_ = (q, de) => {
|
|
621
621
|
m((ae) => ({
|
|
622
622
|
...ae,
|
|
623
|
-
[
|
|
624
|
-
})), b(
|
|
623
|
+
[q]: de
|
|
624
|
+
})), b(q);
|
|
625
625
|
}, e[0] = b, e[1] = _) : _ = e[1];
|
|
626
626
|
const D = _;
|
|
627
627
|
let P;
|
|
@@ -659,20 +659,20 @@ const wn = () => {
|
|
|
659
659
|
let z;
|
|
660
660
|
e[15] !== w ? (z = !!w && /* @__PURE__ */ r(Ct, { severity: "error", children: "Failed to create git secret. Please try again." }), e[15] = w, e[16] = z) : z = e[16];
|
|
661
661
|
let T;
|
|
662
|
-
e[17] !== D ? (T = (
|
|
662
|
+
e[17] !== D ? (T = (q) => D("name", q.target.value), e[17] = D, e[18] = T) : T = e[18];
|
|
663
663
|
const s = !!h.name, n = h.name || "A unique name for this secret";
|
|
664
664
|
let x;
|
|
665
665
|
e[19] !== c.name || e[20] !== n || e[21] !== T || e[22] !== s ? (x = /* @__PURE__ */ r(se.ElementWrapper, { label: "Secret Name", name: "name", children: /* @__PURE__ */ r(Xt, { id: "name", placeholder: "e.g., my-github-pat", value: c.name, onChange: T, error: s, helperText: n, fullWidth: !0 }) }), e[19] = c.name, e[20] = n, e[21] = T, e[22] = s, e[23] = x) : x = e[23];
|
|
666
666
|
let o;
|
|
667
|
-
e[24] !== D ? (o = (
|
|
668
|
-
const M = !!h.username,
|
|
667
|
+
e[24] !== D ? (o = (q) => D("username", q.target.value), e[24] = D, e[25] = o) : o = e[25];
|
|
668
|
+
const M = !!h.username, j = h.username || "Your Git username";
|
|
669
669
|
let W;
|
|
670
|
-
e[26] !== c.username || e[27] !== o || e[28] !== M || e[29] !==
|
|
670
|
+
e[26] !== c.username || e[27] !== o || e[28] !== M || e[29] !== j ? (W = /* @__PURE__ */ r(se.ElementWrapper, { label: "Username", name: "username", children: /* @__PURE__ */ r(Xt, { id: "username", placeholder: "e.g., your-github-username", value: c.username, onChange: o, error: M, helperText: j, fullWidth: !0 }) }), e[26] = c.username, e[27] = o, e[28] = M, e[29] = j, e[30] = W) : W = e[30];
|
|
671
671
|
let L;
|
|
672
|
-
e[31] !== D ? (L = (
|
|
673
|
-
const
|
|
672
|
+
e[31] !== D ? (L = (q) => D("password", q.target.value), e[31] = D, e[32] = L) : L = e[32];
|
|
673
|
+
const $ = !!h.password, g = h.password || "Your personal access token (PAT) with repo access";
|
|
674
674
|
let Z;
|
|
675
|
-
e[33] !== c.password || e[34] !== L || e[35] !==
|
|
675
|
+
e[33] !== c.password || e[34] !== L || e[35] !== $ || e[36] !== g ? (Z = /* @__PURE__ */ r(se.ElementWrapper, { label: "Personal Access Token", name: "password", children: /* @__PURE__ */ r(Xt, { id: "password", placeholder: "ghp_xxxxxxxxxxxx", type: "password", value: c.password, onChange: L, error: $, helperText: g, fullWidth: !0 }) }), e[33] = c.password, e[34] = L, e[35] = $, e[36] = g, e[37] = Z) : Z = e[37];
|
|
676
676
|
let X;
|
|
677
677
|
e[38] !== x || e[39] !== W || e[40] !== Z || e[41] !== z ? (X = /* @__PURE__ */ r(vr, { children: /* @__PURE__ */ u(se.Stack, { spacing: 3, sx: A, children: [
|
|
678
678
|
N,
|
|
@@ -682,21 +682,21 @@ const wn = () => {
|
|
|
682
682
|
Z
|
|
683
683
|
] }) }), e[38] = x, e[39] = W, e[40] = Z, e[41] = z, e[42] = X) : X = e[42];
|
|
684
684
|
let Y;
|
|
685
|
-
e[43] !== k || e[44] !== f ? (Y = /* @__PURE__ */ r(
|
|
685
|
+
e[43] !== k || e[44] !== f ? (Y = /* @__PURE__ */ r(K, { onClick: k, disabled: f, children: "Cancel" }), e[43] = k, e[44] = f, e[45] = Y) : Y = e[45];
|
|
686
686
|
const B = f ? "Creating..." : "Create Secret";
|
|
687
687
|
let J;
|
|
688
|
-
e[46] !== C || e[47] !== f || e[48] !== B ? (J = /* @__PURE__ */ r(
|
|
689
|
-
let
|
|
690
|
-
e[50] !== Y || e[51] !== J ? (
|
|
688
|
+
e[46] !== C || e[47] !== f || e[48] !== B ? (J = /* @__PURE__ */ r(K, { variant: "contained", onClick: C, disabled: f, children: B }), e[46] = C, e[47] = f, e[48] = B, e[49] = J) : J = e[49];
|
|
689
|
+
let Q;
|
|
690
|
+
e[50] !== Y || e[51] !== J ? (Q = /* @__PURE__ */ u(wr, { children: [
|
|
691
691
|
Y,
|
|
692
692
|
J
|
|
693
|
-
] }), e[50] = Y, e[51] = J, e[52] =
|
|
693
|
+
] }), e[50] = Y, e[51] = J, e[52] = Q) : Q = e[52];
|
|
694
694
|
let te;
|
|
695
|
-
return e[53] !== k || e[54] !== a || e[55] !== X || e[56] !==
|
|
695
|
+
return e[53] !== k || e[54] !== a || e[55] !== X || e[56] !== Q ? (te = /* @__PURE__ */ u(_r, { open: a, onClose: k, maxWidth: "sm", fullWidth: !0, children: [
|
|
696
696
|
F,
|
|
697
697
|
X,
|
|
698
|
-
|
|
699
|
-
] }), e[53] = k, e[54] = a, e[55] = X, e[56] =
|
|
698
|
+
Q
|
|
699
|
+
] }), e[53] = k, e[54] = a, e[55] = X, e[56] = Q, e[57] = te) : te = e[57], te;
|
|
700
700
|
}, Bn = (t) => {
|
|
701
701
|
const e = H(37), {
|
|
702
702
|
orgId: a,
|
|
@@ -717,18 +717,18 @@ const wn = () => {
|
|
|
717
717
|
data: b,
|
|
718
718
|
isLoading: p,
|
|
719
719
|
refetch: f
|
|
720
|
-
} =
|
|
720
|
+
} = qr(I, S);
|
|
721
721
|
let w;
|
|
722
722
|
e[3] !== b?.secrets ? (w = b?.secrets || [], e[3] = b?.secrets, e[4] = w) : w = e[4];
|
|
723
723
|
const R = w;
|
|
724
724
|
let _;
|
|
725
725
|
e[5] !== i ? (_ = (L) => {
|
|
726
|
-
const
|
|
727
|
-
if (
|
|
726
|
+
const $ = L.target.value;
|
|
727
|
+
if ($ === "__create_new__") {
|
|
728
728
|
h(!0);
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
|
-
i(
|
|
731
|
+
i($ || void 0);
|
|
732
732
|
}, e[5] = i, e[6] = _) : _ = e[6];
|
|
733
733
|
const D = _;
|
|
734
734
|
let P;
|
|
@@ -751,7 +751,7 @@ const wn = () => {
|
|
|
751
751
|
let T;
|
|
752
752
|
e[14] !== R ? (T = R.map(In), e[14] = R, e[15] = T) : T = e[15];
|
|
753
753
|
let s;
|
|
754
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(gt, { value: "__create_new__", children: /* @__PURE__ */ r(oe, { direction: "row", spacing: 1, alignItems: "center", children: /* @__PURE__ */ r(
|
|
754
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(gt, { value: "__create_new__", children: /* @__PURE__ */ r(oe, { direction: "row", spacing: 1, alignItems: "center", children: /* @__PURE__ */ r(K, { variant: "text", size: "small", startIcon: /* @__PURE__ */ r(Rr, { size: 16 }), sx: {
|
|
755
755
|
textTransform: "none",
|
|
756
756
|
p: 0
|
|
757
757
|
}, children: "Create new git secret" }) }) }), e[16] = s) : s = e[16];
|
|
@@ -762,7 +762,7 @@ const wn = () => {
|
|
|
762
762
|
s
|
|
763
763
|
] }), e[17] = D, e[18] = N, e[19] = T, e[20] = F, e[21] = A, e[22] = n) : n = e[22];
|
|
764
764
|
let x;
|
|
765
|
-
e[23] !== d ? (x = d ? /* @__PURE__ */ r(
|
|
765
|
+
e[23] !== d ? (x = d ? /* @__PURE__ */ r(Kt, { error: !0, children: d }) : /* @__PURE__ */ r(Kt, { children: "Select a git secret for private repository authentication" }), e[23] = d, e[24] = x) : x = e[24];
|
|
766
766
|
let o;
|
|
767
767
|
e[25] !== n || e[26] !== x || e[27] !== k ? (o = /* @__PURE__ */ u(U, { children: [
|
|
768
768
|
v,
|
|
@@ -773,13 +773,13 @@ const wn = () => {
|
|
|
773
773
|
] }), e[25] = n, e[26] = x, e[27] = k, e[28] = o) : o = e[28];
|
|
774
774
|
let M;
|
|
775
775
|
e[29] === Symbol.for("react.memo_cache_sentinel") ? (M = () => h(!1), e[29] = M) : M = e[29];
|
|
776
|
-
let
|
|
777
|
-
e[30] !== C || e[31] !== m || e[32] !== a ? (
|
|
776
|
+
let j;
|
|
777
|
+
e[30] !== C || e[31] !== m || e[32] !== a ? (j = /* @__PURE__ */ r(kn, { open: m, onClose: M, onSecretCreated: C, orgId: a }), e[30] = C, e[31] = m, e[32] = a, e[33] = j) : j = e[33];
|
|
778
778
|
let W;
|
|
779
|
-
return e[34] !== o || e[35] !==
|
|
779
|
+
return e[34] !== o || e[35] !== j ? (W = /* @__PURE__ */ u(ft, { children: [
|
|
780
780
|
o,
|
|
781
|
-
|
|
782
|
-
] }), e[34] = o, e[35] =
|
|
781
|
+
j
|
|
782
|
+
] }), e[34] = o, e[35] = j, e[36] = W) : W = e[36], W;
|
|
783
783
|
};
|
|
784
784
|
function In(t) {
|
|
785
785
|
return /* @__PURE__ */ r(gt, { value: t.name, children: /* @__PURE__ */ r(V, { children: t.name }) }, t.name);
|
|
@@ -878,11 +878,11 @@ function Ln(t) {
|
|
|
878
878
|
const s = T, [n, x] = ee(s), {
|
|
879
879
|
errors: o,
|
|
880
880
|
validateField: M,
|
|
881
|
-
validateForm:
|
|
881
|
+
validateForm: j,
|
|
882
882
|
clearErrors: W,
|
|
883
883
|
setFieldError: L
|
|
884
884
|
} = fr(Dn), {
|
|
885
|
-
mutate:
|
|
885
|
+
mutate: $,
|
|
886
886
|
isPending: g
|
|
887
887
|
} = Zr();
|
|
888
888
|
let Z, X;
|
|
@@ -927,10 +927,10 @@ function Ln(t) {
|
|
|
927
927
|
L("interfaceType", ce);
|
|
928
928
|
}
|
|
929
929
|
}, e[21] = L, e[22] = M, e[23] = J) : J = e[23];
|
|
930
|
-
const
|
|
930
|
+
const Q = J;
|
|
931
931
|
let te;
|
|
932
|
-
e[24] !== i.agentType || e[25] !== i.name || e[26] !== i.provisioning || e[27] !== W || e[28] !== n || e[29] !== l || e[30] !== d || e[31] !== c || e[32] !==
|
|
933
|
-
if (y.preventDefault(), !
|
|
932
|
+
e[24] !== i.agentType || e[25] !== i.name || e[26] !== i.provisioning || e[27] !== W || e[28] !== n || e[29] !== l || e[30] !== d || e[31] !== c || e[32] !== $ || e[33] !== j ? (te = (y) => {
|
|
933
|
+
if (y.preventDefault(), !j(n))
|
|
934
934
|
return;
|
|
935
935
|
const O = i.agentType ? {
|
|
936
936
|
...i.agentType,
|
|
@@ -978,7 +978,7 @@ function Ln(t) {
|
|
|
978
978
|
} : {}
|
|
979
979
|
}
|
|
980
980
|
};
|
|
981
|
-
|
|
981
|
+
$({
|
|
982
982
|
params: {
|
|
983
983
|
orgName: d,
|
|
984
984
|
projName: c,
|
|
@@ -990,18 +990,18 @@ function Ln(t) {
|
|
|
990
990
|
W(), l();
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
|
-
}, e[24] = i.agentType, e[25] = i.name, e[26] = i.provisioning, e[27] = W, e[28] = n, e[29] = l, e[30] = d, e[31] = c, e[32] =
|
|
994
|
-
const
|
|
993
|
+
}, e[24] = i.agentType, e[25] = i.name, e[26] = i.provisioning, e[27] = W, e[28] = n, e[29] = l, e[30] = d, e[31] = c, e[32] = $, e[33] = j, e[34] = te) : te = e[34];
|
|
994
|
+
const q = te;
|
|
995
995
|
let de;
|
|
996
996
|
e[35] === Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ r(mr, { size: 24 }), e[35] = de) : de = e[35];
|
|
997
997
|
let ae;
|
|
998
998
|
e[36] !== l ? (ae = /* @__PURE__ */ r(tr, { icon: de, title: "Configure Build", onClose: l }), e[36] = l, e[37] = ae) : ae = e[37];
|
|
999
|
-
let
|
|
1000
|
-
e[38] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
999
|
+
let Ke, Qe;
|
|
1000
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (Ke = {
|
|
1001
1001
|
gap: 1,
|
|
1002
1002
|
display: "flex",
|
|
1003
1003
|
flexDirection: "column"
|
|
1004
|
-
},
|
|
1004
|
+
}, Qe = /* @__PURE__ */ r(V, { variant: "h5", children: "Repository Details" }), e[38] = Ke, e[39] = Qe) : (Ke = e[38], Qe = e[39]);
|
|
1005
1005
|
let ue;
|
|
1006
1006
|
e[40] !== B ? (ue = (y) => B("repositoryUrl", y.target.value), e[40] = B, e[41] = ue) : ue = e[41];
|
|
1007
1007
|
const Pt = !!o.repositoryUrl;
|
|
@@ -1025,8 +1025,8 @@ function Ln(t) {
|
|
|
1025
1025
|
be
|
|
1026
1026
|
] }), e[70] = fe, e[71] = be, e[72] = ye) : ye = e[72];
|
|
1027
1027
|
let Ce;
|
|
1028
|
-
e[73] !== he || e[74] !== me || e[75] !== ye ? (Ce = /* @__PURE__ */ r(ht, { variant: "outlined", children: /* @__PURE__ */ u(mt, { sx:
|
|
1029
|
-
|
|
1028
|
+
e[73] !== he || e[74] !== me || e[75] !== ye ? (Ce = /* @__PURE__ */ r(ht, { variant: "outlined", children: /* @__PURE__ */ u(mt, { sx: Ke, children: [
|
|
1029
|
+
Qe,
|
|
1030
1030
|
/* @__PURE__ */ u(U, { display: "flex", flexDirection: "column", gap: 1, children: [
|
|
1031
1031
|
he,
|
|
1032
1032
|
me,
|
|
@@ -1091,7 +1091,7 @@ function Ln(t) {
|
|
|
1091
1091
|
flexDirection: "column"
|
|
1092
1092
|
}, nt = /* @__PURE__ */ r(V, { variant: "h5", children: "Agent Interface" }), at = /* @__PURE__ */ r(V, { variant: "body2", color: "text.secondary", children: "How your agent receives requests" }), e[121] = rt, e[122] = nt, e[123] = at) : (rt = e[121], nt = e[122], at = e[123]);
|
|
1093
1093
|
let Ne;
|
|
1094
|
-
e[124] !== n.interfaceType || e[125] !==
|
|
1094
|
+
e[124] !== n.interfaceType || e[125] !== Q || e[126] !== m ? (Ne = Nn.map((y) => /* @__PURE__ */ r(ht, { variant: "outlined", onClick: () => Q(y.value), sx: {
|
|
1095
1095
|
maxWidth: 500,
|
|
1096
1096
|
cursor: "pointer",
|
|
1097
1097
|
flexGrow: 1,
|
|
@@ -1113,7 +1113,7 @@ function Ln(t) {
|
|
|
1113
1113
|
/* @__PURE__ */ r(V, { variant: "h6", children: y.label }),
|
|
1114
1114
|
/* @__PURE__ */ r(V, { variant: "caption", children: y.description })
|
|
1115
1115
|
] })
|
|
1116
|
-
] }) }) }, y.value)), e[124] = n.interfaceType, e[125] =
|
|
1116
|
+
] }) }) }, y.value)), e[124] = n.interfaceType, e[125] = Q, e[126] = m, e[127] = Ne) : Ne = e[127];
|
|
1117
1117
|
let Le;
|
|
1118
1118
|
e[128] !== Ne ? (Le = /* @__PURE__ */ r(U, { display: "flex", flexDirection: "row", gap: 1, children: Ne }), e[128] = Ne, e[129] = Le) : Le = e[129];
|
|
1119
1119
|
const Nt = n.interfaceType === "DEFAULT";
|
|
@@ -1153,29 +1153,29 @@ function Ln(t) {
|
|
|
1153
1153
|
const O = y.target.value;
|
|
1154
1154
|
/^\d*$/.test(O) && B("port", O === "" ? void 0 : Number(O));
|
|
1155
1155
|
}, e[147] = B, e[148] = Fe) : Fe = e[148];
|
|
1156
|
-
const
|
|
1156
|
+
const Et = !!o.port, jt = o.port || (n.port ? void 0 : "Port is required");
|
|
1157
1157
|
let Me;
|
|
1158
|
-
e[149] !== g || e[150] !== Mt || e[151] !== Wt || e[152] !== Fe || e[153] !==
|
|
1158
|
+
e[149] !== g || e[150] !== Mt || e[151] !== Wt || e[152] !== Fe || e[153] !== Et || e[154] !== jt ? (Me = /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r(re, { label: "Port", placeholder: "8080", required: Mt, value: Wt, onChange: Fe, size: "small", type: "number", error: Et, helperText: jt, disabled: g }) }), e[149] = g, e[150] = Mt, e[151] = Wt, e[152] = Fe, e[153] = Et, e[154] = jt, e[155] = Me) : Me = e[155];
|
|
1159
1159
|
let We;
|
|
1160
1160
|
e[156] !== Ue || e[157] !== Me ? (We = /* @__PURE__ */ u(U, { display: "flex", flexDirection: "row", gap: 1, children: [
|
|
1161
1161
|
Ue,
|
|
1162
1162
|
Me
|
|
1163
1163
|
] }), e[156] = Ue, e[157] = Me, e[158] = We) : We = e[158];
|
|
1164
1164
|
const Vt = n.interfaceType === "CUSTOM", Ot = n.basePath || "";
|
|
1165
|
-
let je;
|
|
1166
|
-
e[159] !== B ? (je = (y) => B("basePath", y.target.value), e[159] = B, e[160] = je) : je = e[160];
|
|
1167
|
-
const qt = !!o.basePath, Gt = o.basePath || "API base path (e.g., / or /api/v1)";
|
|
1168
1165
|
let Ee;
|
|
1169
|
-
e[
|
|
1166
|
+
e[159] !== B ? (Ee = (y) => B("basePath", y.target.value), e[159] = B, e[160] = Ee) : Ee = e[160];
|
|
1167
|
+
const $t = !!o.basePath, Gt = o.basePath || "API base path (e.g., / or /api/v1)";
|
|
1168
|
+
let je;
|
|
1169
|
+
e[161] !== g || e[162] !== Vt || e[163] !== Ot || e[164] !== Ee || e[165] !== $t || e[166] !== Gt ? (je = /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r(re, { label: "Base Path", placeholder: "/", required: Vt, fullWidth: !0, size: "small", value: Ot, onChange: Ee, error: $t, helperText: Gt, disabled: g }) }), e[161] = g, e[162] = Vt, e[163] = Ot, e[164] = Ee, e[165] = $t, e[166] = Gt, e[167] = je) : je = e[167];
|
|
1170
1170
|
let Ve;
|
|
1171
|
-
e[168] !== We || e[169] !==
|
|
1171
|
+
e[168] !== We || e[169] !== je ? (Ve = /* @__PURE__ */ u(U, { display: "flex", flexDirection: "column", gap: 1, children: [
|
|
1172
1172
|
We,
|
|
1173
|
-
|
|
1174
|
-
] }), e[168] = We, e[169] =
|
|
1173
|
+
je
|
|
1174
|
+
] }), e[168] = We, e[169] = je, e[170] = Ve) : Ve = e[170];
|
|
1175
1175
|
let Oe;
|
|
1176
1176
|
e[171] !== Lt || e[172] !== Ve ? (Oe = /* @__PURE__ */ r(pt, { in: Lt, children: Ve }), e[171] = Lt, e[172] = Ve, e[173] = Oe) : Oe = e[173];
|
|
1177
|
-
let
|
|
1178
|
-
e[174] !== Le || e[175] !== Re || e[176] !== Oe ? (
|
|
1177
|
+
let $e;
|
|
1178
|
+
e[174] !== Le || e[175] !== Re || e[176] !== Oe ? ($e = /* @__PURE__ */ r(ht, { variant: "outlined", children: /* @__PURE__ */ u(mt, { sx: rt, children: [
|
|
1179
1179
|
nt,
|
|
1180
1180
|
at,
|
|
1181
1181
|
/* @__PURE__ */ u(U, { display: "flex", flexDirection: "column", gap: 1, children: [
|
|
@@ -1183,26 +1183,26 @@ function Ln(t) {
|
|
|
1183
1183
|
Re,
|
|
1184
1184
|
Oe
|
|
1185
1185
|
] })
|
|
1186
|
-
] }) }), e[174] = Le, e[175] = Re, e[176] = Oe, e[177] =
|
|
1186
|
+
] }) }), e[174] = Le, e[175] = Re, e[176] = Oe, e[177] = $e) : $e = e[177];
|
|
1187
1187
|
let Ge;
|
|
1188
|
-
e[178] !== g || e[179] !== l ? (Ge = /* @__PURE__ */ r(
|
|
1189
|
-
const
|
|
1190
|
-
let
|
|
1191
|
-
e[181] !== g || e[182] !==
|
|
1188
|
+
e[178] !== g || e[179] !== l ? (Ge = /* @__PURE__ */ r(K, { variant: "outlined", color: "inherit", onClick: l, disabled: g, children: "Cancel" }), e[178] = g, e[179] = l, e[180] = Ge) : Ge = e[180];
|
|
1189
|
+
const qt = g ? "Updating..." : "Update Build Configuration";
|
|
1190
|
+
let qe;
|
|
1191
|
+
e[181] !== g || e[182] !== qt ? (qe = /* @__PURE__ */ r(K, { type: "submit", variant: "contained", color: "primary", disabled: g, children: qt }), e[181] = g, e[182] = qt, e[183] = qe) : qe = e[183];
|
|
1192
1192
|
let He;
|
|
1193
|
-
e[184] !== Ge || e[185] !==
|
|
1193
|
+
e[184] !== Ge || e[185] !== qe ? (He = /* @__PURE__ */ u(U, { display: "flex", justifyContent: "flex-end", gap: 1, mt: 2, children: [
|
|
1194
1194
|
Ge,
|
|
1195
|
-
|
|
1196
|
-
] }), e[184] = Ge, e[185] =
|
|
1195
|
+
qe
|
|
1196
|
+
] }), e[184] = Ge, e[185] = qe, e[186] = He) : He = e[186];
|
|
1197
1197
|
let Ze;
|
|
1198
|
-
e[187] !== Ce || e[188] !== Ae || e[189] !==
|
|
1198
|
+
e[187] !== Ce || e[188] !== Ae || e[189] !== $e || e[190] !== He ? (Ze = /* @__PURE__ */ u(U, { display: "flex", flexDirection: "column", gap: 2, flexGrow: 1, children: [
|
|
1199
1199
|
Ce,
|
|
1200
1200
|
Ae,
|
|
1201
|
-
|
|
1201
|
+
$e,
|
|
1202
1202
|
He
|
|
1203
|
-
] }), e[187] = Ce, e[188] = Ae, e[189] =
|
|
1203
|
+
] }), e[187] = Ce, e[188] = Ae, e[189] = $e, e[190] = He, e[191] = Ze) : Ze = e[191];
|
|
1204
1204
|
let Xe;
|
|
1205
|
-
e[192] !==
|
|
1205
|
+
e[192] !== q || e[193] !== Ze ? (Xe = /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ r("form", { onSubmit: q, children: Ze }) }), e[192] = q, e[193] = Ze, e[194] = Xe) : Xe = e[194];
|
|
1206
1206
|
let ut;
|
|
1207
1207
|
return e[195] !== l || e[196] !== a || e[197] !== ae || e[198] !== Xe ? (ut = /* @__PURE__ */ u(ar, { open: a, onClose: l, children: [
|
|
1208
1208
|
ae,
|
|
@@ -1249,11 +1249,11 @@ const lr = () => {
|
|
|
1249
1249
|
}, t[13] = e, t[14] = a, t[15] = _) : _ = t[15];
|
|
1250
1250
|
const D = _;
|
|
1251
1251
|
let P;
|
|
1252
|
-
t[16] !== I?.provisioning.type || t[17] !== D ? (P = I?.provisioning.type === "internal" && /* @__PURE__ */ r(
|
|
1252
|
+
t[16] !== I?.provisioning.type || t[17] !== D ? (P = I?.provisioning.type === "internal" && /* @__PURE__ */ r(K, { onClick: D, variant: "outlined", color: "primary", startIcon: /* @__PURE__ */ r(mr, { size: 16 }), children: "Configure Build" }), t[16] = I?.provisioning.type, t[17] = D, t[18] = P) : P = t[18];
|
|
1253
1253
|
let C;
|
|
1254
1254
|
t[19] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ r(bt, { size: 16 }), t[19] = C) : C = t[19];
|
|
1255
1255
|
let v;
|
|
1256
|
-
t[20] !== f ? (v = /* @__PURE__ */ r(
|
|
1256
|
+
t[20] !== f ? (v = /* @__PURE__ */ r(K, { onClick: f, variant: "contained", color: "primary", startIcon: C, children: "Trigger a Build" }), t[20] = f, t[21] = v) : v = t[21];
|
|
1257
1257
|
let k;
|
|
1258
1258
|
t[22] !== P || t[23] !== v ? (k = /* @__PURE__ */ u(U, { display: "flex", gap: 1, children: [
|
|
1259
1259
|
P,
|
|
@@ -1274,7 +1274,7 @@ const lr = () => {
|
|
|
1274
1274
|
s,
|
|
1275
1275
|
n
|
|
1276
1276
|
] }), t[41] = s, t[42] = n, t[43] = k, t[44] = x) : x = t[44], x;
|
|
1277
|
-
},
|
|
1277
|
+
}, $n = {
|
|
1278
1278
|
title: "Build",
|
|
1279
1279
|
description: "A page component for Build",
|
|
1280
1280
|
icon: bt,
|
|
@@ -1286,5 +1286,5 @@ const lr = () => {
|
|
|
1286
1286
|
};
|
|
1287
1287
|
export {
|
|
1288
1288
|
lr as BuildComponent,
|
|
1289
|
-
|
|
1289
|
+
$n as metaData
|
|
1290
1290
|
};
|