@devtron-labs/devtron-fe-common-lib 1.4.0-patch-2 → 1.4.0-patch-3

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.
@@ -1,19 +1,19 @@
1
- import { j as n, J as A } from "./@vendor-QI4m26H1.js";
2
- import E, { forwardRef as $ } from "react";
1
+ import { j as n, J as $ } from "./@vendor-QI4m26H1.js";
2
+ import A, { forwardRef as E } from "react";
3
3
  import L, { getDefaultRegistry as k } from "@rjsf/core";
4
4
  import D from "@rjsf/validator-ajv8";
5
- import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-BUeWAeVm.js";
5
+ import { T as N, c as H, a as U, i as J, d as w } from "./@code-editor-BUeWAeVm.js";
6
6
  import M, { components as O } from "react-select";
7
7
  import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as P, errorId as V, englishStringTranslator as q, TranslatableString as K, titleId as Y, canExpand as z, deepEquals as G } from "@rjsf/utils";
8
8
  import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
9
9
  import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
10
10
  import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
11
11
  import { ReactComponent as ee } from "./assets/ic-warning.10bcf8bd.svg";
12
- import './assets/@common-rjsf.css';const N = {
12
+ import './assets/@common-rjsf.css';const y = {
13
13
  SELECT: "Please select an option",
14
14
  INPUT: "Please enter an input",
15
15
  OBJECT_KEY: "Please enter a value for the key"
16
- }, te = "Key not available", $e = {
16
+ }, te = "Key not available", Ee = {
17
17
  "ui:submitButtonOptions": {
18
18
  norender: !0
19
19
  }
@@ -31,7 +31,7 @@ import './assets/@common-rjsf.css';const N = {
31
31
  className: t ? `display-grid dc__gap-12 rjsf-form-template__field ${i ? "flex-align-center" : ""}` : "",
32
32
  children: [
33
33
  t && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: r, children: [
34
- /* @__PURE__ */ n.jsx(y, { alwaysShowTippyOnHover: !!a, content: a, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${a ? "text-underline-dashed-300" : ""}`, children: e || te }) }),
34
+ /* @__PURE__ */ n.jsx(N, { alwaysShowTippyOnHover: !!a, content: a, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${a ? "text-underline-dashed-300" : ""}`, children: e || te }) }),
35
35
  s && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
36
36
  ] }),
37
37
  o
@@ -128,7 +128,7 @@ import './assets/@common-rjsf.css';const N = {
128
128
  } = k(), re = ({ placeholder: t, ...e }) => /* @__PURE__ */ n.jsx(
129
129
  oe,
130
130
  {
131
- placeholder: t || N.INPUT,
131
+ placeholder: t || y.INPUT,
132
132
  ...e,
133
133
  className: "form__input cn-9 fs-13 lh-20 fw-4"
134
134
  }
@@ -150,7 +150,7 @@ import './assets/@common-rjsf.css';const N = {
150
150
  title: "Add",
151
151
  children: [
152
152
  /* @__PURE__ */ n.jsx(X, { className: "icon-dim-16 fcb-5" }),
153
- /* @__PURE__ */ n.jsx(y, { placement: "right", content: i, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: i }) })
153
+ /* @__PURE__ */ n.jsx(N, { placement: "right", content: i, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: i }) })
154
154
  ]
155
155
  }
156
156
  ) });
@@ -162,8 +162,8 @@ import './assets/@common-rjsf.css';const N = {
162
162
  title: e,
163
163
  required: s,
164
164
  description: o
165
- }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border py-9 mb-0", id: t, children: [
166
- /* @__PURE__ */ n.jsx(y, { alwaysShowTippyOnHover: !!o, content: o, children: /* @__PURE__ */ n.jsx("span", { className: `${o ? "text-underline-dashed-300" : ""}`, children: e }) }),
165
+ }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: t, children: [
166
+ /* @__PURE__ */ n.jsx(N, { alwaysShowTippyOnHover: !!o, content: o, children: /* @__PURE__ */ n.jsx("span", { className: `${o ? "text-underline-dashed-300" : ""}`, children: e }) }),
167
167
  s && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
168
168
  ] }), le = (t) => {
169
169
  const {
@@ -215,7 +215,7 @@ import './assets/@common-rjsf.css';const N = {
215
215
  );
216
216
  }, ce = ({ errors: t = [], idSchema: e }) => {
217
217
  const s = V(e);
218
- return t.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: t.filter((o) => !!o).map((o, r) => /* @__PURE__ */ n.jsxs(E.Fragment, { children: [
218
+ return t.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: t.filter((o) => !!o).map((o, r) => /* @__PURE__ */ n.jsxs(A.Fragment, { children: [
219
219
  /* @__PURE__ */ n.jsx("span", {}),
220
220
  /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
221
221
  /* @__PURE__ */ n.jsx(ee, { className: "form__icon form__icon--error" }),
@@ -367,7 +367,7 @@ import './assets/@common-rjsf.css';const N = {
367
367
  throw new Error("Empty path property of hidden descriptor field");
368
368
  if (!h.path.match(/^\/\w+(\/\w+)*$/g))
369
369
  throw new Error("Provided path is not a valid JSON pointer");
370
- const _ = A({
370
+ const _ = $({
371
371
  path: H(h.path),
372
372
  json: p
373
373
  })?.[0];
@@ -411,7 +411,7 @@ import './assets/@common-rjsf.css';const N = {
411
411
  /* @__PURE__ */ n.jsx(
412
412
  "div",
413
413
  {
414
- className: `${r.properties && !l && e.$id !== "root" ? "dc__border-left pl-12" : ""} flexbox-col dc__gap-8`,
414
+ className: `${r.properties && !l && e.$id !== "root" ? "dc__border-left pl-12" : ""} ${e.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
415
415
  children: /* @__PURE__ */ n.jsx(ue, { ...t })
416
416
  }
417
417
  )
@@ -437,7 +437,7 @@ import './assets/@common-rjsf.css';const N = {
437
437
  className: "form__input cn-9 fs-13 lh-20 fw-4",
438
438
  id: `${t}-key`,
439
439
  onBlur: (m) => o(m.target.value),
440
- placeholder: N.OBJECT_KEY,
440
+ placeholder: y.OBJECT_KEY,
441
441
  defaultValue: s
442
442
  }
443
443
  ) }),
@@ -513,7 +513,7 @@ import './assets/@common-rjsf.css';const N = {
513
513
  options: u,
514
514
  onBlur: () => d(e, r),
515
515
  onFocus: () => f(e, r),
516
- placeholder: p || N.SELECT,
516
+ placeholder: p || y.SELECT,
517
517
  isDisabled: a || i,
518
518
  styles: {
519
519
  ...C,
@@ -544,15 +544,15 @@ import './assets/@common-rjsf.css';const N = {
544
544
  ObjectFieldTemplate: he,
545
545
  TitleFieldTemplate: T,
546
546
  WrapIfAdditionalTemplate: fe
547
- }, ye = L, Ne = D, De = $((t, e) => /* @__PURE__ */ n.jsx(
548
- ye,
547
+ }, Ne = L, ye = D, De = E((t, e) => /* @__PURE__ */ n.jsx(
548
+ Ne,
549
549
  {
550
550
  noHtml5Validate: !0,
551
551
  showErrorList: !1,
552
552
  autoComplete: "off",
553
553
  ...t,
554
554
  className: `rjsf-form-template__container ${t.className || ""}`,
555
- validator: Ne,
555
+ validator: ye,
556
556
  templates: {
557
557
  ...ve,
558
558
  ...t.templates
@@ -564,7 +564,7 @@ import './assets/@common-rjsf.css';const N = {
564
564
  }
565
565
  ));
566
566
  export {
567
- $e as H,
567
+ Ee as H,
568
568
  De as R,
569
569
  Le as a,
570
570
  ke as g
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { iH as s, _ as t, dR as i, e8 as r, jn as o, jf as n, eB as l, a9 as T, iZ as g, Q as p, jb as S, iR as d, f0 as E, cS as c, aH as _, aI as A, iz as u, hv as I, f8 as D, jW as C, jw as y, jd as O, d4 as R, fl as f, im as m, cE as P, au as L, av as N, eX as M, gl as b, fh as h, js as U, dE as F, dM as B, dH as v, dP as V, dB as G, dN as j, dQ as K, dG as H, dF as Y, dL as W, dD as k, eQ as x, eU as w, B as X, S as z, e as q, dA as J, db as Q, dp as Z, d9 as $, da as aa, de as ea, dr as sa, dq as ta, dw as ia, dd as ra, dz as oa, dc as na, ds as la, du as Ta, dt as ga, L as pa, dv as Sa, eL as da, eO as Ea, eR as ca, eN as _a, hd as Aa, hg as ua, hf as Ia, he as Da, f9 as Ca, fa as ya, h9 as Oa, fj as Ra, aB as fa, aA as ma, az as Pa, iu as La, ar as Na, jj as Ma, ap as ba, cB as ha, it as Ua, eV as Fa, jz as Ba, iF as va, jl as Va, eq as Ga, dK as ja, n as Ka, cp as Ha, f_ as Ya, c1 as Wa, C as ka, e9 as xa, ea as wa, d1 as Xa, d3 as za, d2 as qa, g$ as Ja, gL as Qa, gj as Za, eK as $a, ei as ae, jg as ee, cx as se, aR as te, em as ie, jA as re, ep as oe, iE as ne, bU as le, hm as Te, hn as ge, cG as pe, cU as Se, c5 as de, gh as Ee, gg as ce, af as _e, iY as Ae, Y as ue, ae as Ie, r as De, jm as Ce, gD as ye, gB as Oe, gC as Re, dC as fe, i_ as me, w as Pe, g8 as Le, dS as Ne, dT as Me, j5 as be, j7 as he, $ as Ue, ht as Fe, jt as Be, e4 as ve, q as Ve, s as Ge, o as je, p as Ke, ef as He, g4 as Ye, k as We, ip as ke, D as xe, bW as we, iB as Xe, aD as ze, gM as qe, gN as Je, fm as Qe, fZ as Ze, fY as $e, as, bT as es, j0 as ss, fk as ts, j1 as is, bH as rs, gY as os, cR as ns, bX as ls, bY as Ts, ho as gs, jy as ps, jx as Ss, cW as ds, cX as Es, cV as cs, bI as _s, bw as As, ej as us, hp as Is, hq as Ds, j4 as Cs, z as ys, x as Os, a8 as Rs, iW as fs, j6 as ms, g_ as Ps, f5 as Ls, hl as Ns, iI as Ms, jC as bs, ik as hs, fb as Us, j2 as Fs, g1 as Bs, E as vs, b as Vs, eZ as Gs, F as js, a2 as Ks, ff as Hs, fe as Ys, fp as Ws, ez as ks, cz as xs, hu as ws, e$ as Xs, aE as zs, gG as qs, aw as Js, bV as Qs, eg as Zs, eA as $s, c_ as at, G as et, h as st, f1 as tt, fP as it, g0 as rt, iA as ot, aj as nt, l as lt, eG as Tt, f7 as gt, fo as pt, H as St, iV as dt, dU as Et, ew as ct, ex as _t, ai as At, gn as ut, eW as It, eY as Dt, gk as Ct, ay as yt, ir as Ot, iL as Rt, iN as ft, cI as mt, cH as Pt, aq as Lt, fd as Nt, jR as Mt, I as bt, f4 as ht, cD as Ut, hj as Ft, hh as Bt, je as vt, K as Vt, f2 as Gt, f3 as jt, gE as Kt, ad as Ht, eF as Yt, fN as Wt, fn as kt, jc as xt, ac as wt, V as Xt, c$ as zt, hw as qt, Z as Jt, O as Qt, ge as Zt, g7 as $t, iK as ai, at as ei, cZ as si, ax as ti, gm as ii, eI as ri, bJ as oi, fc as ni, iX as li, is as Ti, g5 as gi, cw as pi, eJ as Si, c3 as di, b$ as Ei, c0 as ci, c2 as _i, dI as Ai, ft as ui, dx as Ii, fs as Di, il as Ci, hk as yi, jo as Oi, bZ as Ri, eo as fi, ed as mi, t as Pi, jh as Li, ab as Ni, dJ as Mi, fr as bi, ja as hi, f6 as Ui, cY as Fi, i$ as Bi, gs as vi, aF as Vi, gr as Gi, gq as ji, go as Ki, cF as Hi, gz as Yi, gp as Wi, cu as ki, ix as xi, P as wi, bG as Xi, iC as zi, bN as qi, en as Ji, jq as Qi, M as Zi, v as $i, f as ar, g as er, a6 as sr, cy as tr, ct as ir, io as rr, et as or, R as nr, N as lr, bS as Tr, cJ as gr, iv as pr, iw as Sr, iG as dr, iU as Er, iT as cr, W as _r, eS as Ar, ag as ur, aa as Ir, ju as Dr, iS as Cr, fu as yr, e_ as Or, e1 as Rr, cv as fr, fO as mr, cq as Pr, h3 as Lr, h0 as Nr, d0 as Mr, d8 as br, d7 as hr, m as Ur, eP as Fr, ji as Br, eE as vr, gF as Vr, gI as Gr, gJ as jr, am as Kr, an as Hr, iq as Yr, gK as Wr, fg as kr, g3 as xr, b_ as wr, cr as Xr, X as zr, c7 as qr, fv as Jr, f$ as Qr, j as Zr, ey as $r, jr as ao, dO as eo, fq as so, j3 as to, a4 as io, gf as ro, y as oo, A as no, d6 as lo, jk as To, gZ as go, bQ as po, bR as So, hr as Eo, jB as co, g6 as _o, bM as Ao, ao as uo, jJ as Io, jK as Do, jL as Co, a as yo, dy as Oo, T as Ro, aC as fo, fX as mo, fi as Po, J as Lo, al as No, jv as Mo, iD as bo, U as ho, dV as Uo, cP as Fo, iP as Bo, dY as vo, d$ as Vo, d_ as Go, dZ as jo, dW as Ko, jp as Ho, ah as Yo, eh as Wo, cA as ko, bK as xo, bL as wo, h1 as Xo, a1 as zo, cC as qo, iy as Jo, aG as Qo, bq as Zo, a7 as $o, aO as an, i2 as en, bm as sn, a0 as tn, by as rn, fS as on, bi as nn, fA as ln, fB as Tn, bo as gn, ij as pn, b8 as Sn, b6 as dn, eH as En, br as cn, e2 as _n, c as An, b9 as un, cf as In, ec as Dn, e7 as Cn, gd as yn, be as On, bn as Rn, i3 as fn, d as mn, gV as Pn, gX as Ln, gU as Nn, gW as Mn, hO as bn, ce as hn, cg as Un, bl as Fn, cd as Bn, aM as vn, e5 as Vn, aX as Gn, jF as jn, gR as Kn, jE as Hn, gv as Yn, bB as Wn, dn as kn, dg as xn, dm as wn, dl as Xn, jD as zn, hb as qn, cj as Jn, eC as Qn, jG as Zn, b2 as $n, eD as al, ch as el, gc as sl, ic as tl, gS as il, fK as rl, fF as ol, fE as nl, ek as ll, ee as Tl, fC as gl, gO as pl, gP as Sl, aY as dl, hs as El, ci as cl, i6 as _l, bf as Al, ak as ul, b4 as Il, cn as Dl, hT as Cl, co as yl, bF as Ol, e3 as Rl, ib as fl, bD as ml, eT as Pl, hi as Ll, ia as Nl, i9 as Ml, hS as bl, aP as hl, eb as Ul, e6 as Fl, h$ as Bl, fW as vl, ig as Vl, fD as Gl, fM as jl, cl as Kl, ie as Hl, a3 as Yl, gw as Wl, fR as kl, dj as xl, gu as wl, gt as Xl, jQ as zl, jP as ql, jI as Jl, h8 as Ql, aW as Zl, bj as $l, el as aT, jH as eT, ck as sT, bC as tT, hc as iT, ha as rT, h4 as oT, gH as nT, h7 as lT, h2 as TT, fU as gT, bE as pT, fz as ST, c6 as dT, i5 as ET, a5 as cT, g9 as _T, h5 as AT, dk as uT, fy as IT, fL as DT, fQ as CT, fV as yT, ii as OT, gA as RT, bc as fT, dX as mT, e0 as PT, c8 as LT, ih as NT, hX as MT, cm as bT, jO as hT, jM as UT, id as FT, cT as BT, h_ as vT, bp as VT, b3 as GT, es as jT, er as KT, hP as HT, i as YT, i4 as WT, bh as kT, bd as xT, bx as wT, gQ as XT, c4 as zT, aZ as qT, a_ as JT, hV as QT, h6 as ZT, di as $T, gx as ag, cb as eg, aL as sg, gy as tg, aJ as ig, bk as rg, bz as og, fI as ng, fG as lg, fJ as Tg, fH as gg, hQ as pg, aU as Sg, hR as dg, cc as Eg, bb as cg, i1 as _g, aK as Ag, gi as ug, bg as Ig, jN as Dg, a$ as Cg, gT as yg, g2 as Og, fT as Rg, i0 as fg, b0 as mg, hz as Pg, i8 as Lg, i7 as Ng, ca as Mg, c9 as bg, bs as hg, aQ as Ug, aS as Fg, j9 as Bg, j8 as vg, fx as Vg, aT as Gg, hU as jg, fw as Kg, bA as Hg, aN as Yg, d5 as Wg, gb as kg, ga as xg, eu as wg, ev as Xg, dh as zg, ba as qg, u as Jg, df as Qg, eM as Zg, cL as $g, jU as ap, b1 as ep, jV as sp, jT as tp, iM as ip, hZ as rp, bt as op, b7 as np, bv as lp, iJ as Tp, jS as gp, cO as pp, cs as Sp, bu as dp, b5 as Ep, cQ as cp, cK as _p, aV as Ap, cN as up, iO as Ip, cM as Dp, hM as Cp, hB as yp, hK as Op, hH as Rp, hN as fp, hL as mp, hy as Pp, hx as Lp, hA as Np, hG as Mp, hE as bp, hD as hp, hJ as Up, hC as Fp, bO as Bp, bP as vp, hF as Vp, hI as Gp, hW as jp, iQ as Kp, hY as Hp } from "./@code-editor-BUeWAeVm.js";
2
- import { H as Wp, R as kp, g as xp, a as wp } from "./@common-rjsf-iLDhh23o.js";
2
+ import { H as Wp, R as kp, g as xp, a as wp } from "./@common-rjsf-CWohU_Db.js";
3
3
  export {
4
4
  s as ACCESS_TYPE_MAP,
5
5
  t as ACTION_STATE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.4.0-patch-2",
3
+ "version": "1.4.0-patch-3",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",