@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,20 +1,20 @@
|
|
|
1
|
-
import { jsx as s, jsxs as T, Fragment as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import { useParams as
|
|
5
|
-
import { Box as
|
|
6
|
-
import { Rocket as
|
|
7
|
-
import {
|
|
1
|
+
import { jsx as s, jsxs as T, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { c as H } from "react/compiler-runtime";
|
|
3
|
+
import J from "react";
|
|
4
|
+
import { useParams as Q } from "react-router-dom";
|
|
5
|
+
import { Box as U, Skeleton as V, Alert as B } from "@wso2/oxygen-ui";
|
|
6
|
+
import { Rocket as W, ShieldCheck as X } from "@wso2/oxygen-ui-icons-react";
|
|
7
|
+
import { o as Z, c as ee, a0 as te, a1 as ne, a2 as oe, P as F, N as ae } from "./index-ByEInFlf.js";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
|
-
import { E as G } from "./EnvironmentSelector-
|
|
9
|
+
import { E as G } from "./EnvironmentSelector-D8S6nO9u.js";
|
|
10
10
|
import { A as se } from "./APIKeysManager-C0phJriD.js";
|
|
11
11
|
const M = () => {
|
|
12
|
-
const e =
|
|
12
|
+
const e = H(38), {
|
|
13
13
|
orgId: t,
|
|
14
14
|
projectId: n,
|
|
15
15
|
agentId: o,
|
|
16
16
|
envId: a
|
|
17
|
-
} =
|
|
17
|
+
} = Q();
|
|
18
18
|
let l;
|
|
19
19
|
e[0] !== o || e[1] !== t || e[2] !== n ? (l = {
|
|
20
20
|
orgName: t,
|
|
@@ -24,7 +24,7 @@ const M = () => {
|
|
|
24
24
|
const {
|
|
25
25
|
data: O,
|
|
26
26
|
isLoading: j
|
|
27
|
-
} =
|
|
27
|
+
} = Z(l);
|
|
28
28
|
let m;
|
|
29
29
|
e[4] !== o || e[5] !== t || e[6] !== n ? (m = {
|
|
30
30
|
orgName: t,
|
|
@@ -32,9 +32,9 @@ const M = () => {
|
|
|
32
32
|
agentName: o
|
|
33
33
|
}, e[4] = o, e[5] = t, e[6] = n, e[7] = m) : m = e[7];
|
|
34
34
|
const {
|
|
35
|
-
data:
|
|
35
|
+
data: q,
|
|
36
36
|
isLoading: _
|
|
37
|
-
} = ee(m), d = O?.configurations?.enableApiKeySecurity ?? !0, x = (a ?
|
|
37
|
+
} = ee(m), d = O?.configurations?.enableApiKeySecurity ?? !0, x = (a ? q?.[a] : void 0)?.status === "active", c = !j && !_ && x && d && !!a, A = c ? t : void 0, v = c ? n : void 0, I = c ? o : void 0, b = c ? a : void 0;
|
|
38
38
|
let y;
|
|
39
39
|
e[8] !== A || e[9] !== v || e[10] !== I || e[11] !== b ? (y = {
|
|
40
40
|
orgName: A,
|
|
@@ -44,20 +44,20 @@ const M = () => {
|
|
|
44
44
|
}, e[8] = A, e[9] = v, e[10] = I, e[11] = b, e[12] = y) : y = e[12];
|
|
45
45
|
const {
|
|
46
46
|
data: N,
|
|
47
|
-
isLoading:
|
|
47
|
+
isLoading: Y,
|
|
48
48
|
isError: k
|
|
49
|
-
} = te(y), g = j || _ || c &&
|
|
49
|
+
} = te(y), g = j || _ || c && Y, {
|
|
50
50
|
mutateAsync: P,
|
|
51
51
|
isPending: K
|
|
52
52
|
} = ne(), {
|
|
53
53
|
mutate: L,
|
|
54
54
|
isPending: w
|
|
55
|
-
} = oe(), [S, R] =
|
|
55
|
+
} = oe(), [S, R] = J.useState(!1);
|
|
56
56
|
let p;
|
|
57
57
|
e[13] !== o || e[14] !== P || e[15] !== a || e[16] !== t || e[17] !== n ? (p = async (i) => {
|
|
58
58
|
const {
|
|
59
59
|
displayName: r,
|
|
60
|
-
expiresAt:
|
|
60
|
+
expiresAt: $
|
|
61
61
|
} = i, E = await P({
|
|
62
62
|
params: {
|
|
63
63
|
orgName: t,
|
|
@@ -67,7 +67,7 @@ const M = () => {
|
|
|
67
67
|
},
|
|
68
68
|
body: {
|
|
69
69
|
displayName: r,
|
|
70
|
-
expiresAt:
|
|
70
|
+
expiresAt: $
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
return R(E.gatewayConnected === !1), E.apiKey;
|
|
@@ -88,12 +88,12 @@ const M = () => {
|
|
|
88
88
|
let i;
|
|
89
89
|
e[25] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ s(G, {}), e[25] = i) : i = e[25];
|
|
90
90
|
let r;
|
|
91
|
-
return e[26] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(F, { title: "API Keys", disableIcon: !0, actions: i, children: /* @__PURE__ */ s(
|
|
91
|
+
return e[26] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(F, { title: "API Keys", disableIcon: !0, actions: i, children: /* @__PURE__ */ s(U, { height: "50vh", display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ s(ae, { iconElement: W, disableBackground: !0, message: "Agent is not deployed", subtitle: "Deploy your agent to manage API keys. You can deploy your agent by clicking the deploy button in the deploy tab." }) }) }), e[26] = r) : r = e[26], r;
|
|
92
92
|
}
|
|
93
93
|
let f;
|
|
94
94
|
e[27] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(G, {}), e[27] = f) : f = e[27];
|
|
95
95
|
let h;
|
|
96
|
-
return e[28] !== S || e[29] !== C || e[30] !== D || e[31] !== K || e[32] !== k || e[33] !== g || e[34] !== w || e[35] !== N || e[36] !== d ? (h = /* @__PURE__ */ s(F, { title: "API Keys", disableIcon: !0, actions: f, children: g ? /* @__PURE__ */ s(
|
|
96
|
+
return e[28] !== S || e[29] !== C || e[30] !== D || e[31] !== K || e[32] !== k || e[33] !== g || e[34] !== w || e[35] !== N || e[36] !== d ? (h = /* @__PURE__ */ s(F, { title: "API Keys", disableIcon: !0, actions: f, children: g ? /* @__PURE__ */ s(V, { variant: "rectangular", width: "100%", height: 200 }) : d ? /* @__PURE__ */ T(z, { children: [
|
|
97
97
|
S && /* @__PURE__ */ s(B, { severity: "warning", onClose: () => R(!1), sx: {
|
|
98
98
|
mb: 2
|
|
99
99
|
}, children: "The gateway is not connected to the control plane right now. The API key has been stored but will only work once the gateway reconnects." }),
|
|
@@ -106,7 +106,7 @@ const M = () => {
|
|
|
106
106
|
}, he = {
|
|
107
107
|
title: "Security",
|
|
108
108
|
description: "Manage API keys for agent endpoint authentication",
|
|
109
|
-
icon:
|
|
109
|
+
icon: X,
|
|
110
110
|
path: "/security",
|
|
111
111
|
component: M,
|
|
112
112
|
levels: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as gt from "react";
|
|
2
2
|
import to, { useState as W9, useEffect as vc, useRef as K9 } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { r as Gi, a as wn, b as xn, c as pn, e as H9, f as of, g as uf, h as J9, d as G9 } from "./debounce-
|
|
3
|
+
import { ar as pt, aq as _i } from "./index-ByEInFlf.js";
|
|
4
|
+
import { r as Gi, a as wn, b as xn, c as pn, e as H9, f as of, g as uf, h as J9, d as G9 } from "./debounce-D17ObVdG.js";
|
|
5
5
|
import * as Y9 from "react-dom";
|
|
6
6
|
import { h as X9 } from "./highlight-BsUzxSR3.js";
|
|
7
7
|
function T$(t, e) {
|