@devtron-labs/devtron-fe-common-lib 1.20.3-pre-2 → 1.20.3-pre-4

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,7 +1,7 @@
1
- import { j as n, aI as v, aK as W, aJ as K } from "./@vendor-DMIFbFhR.js";
1
+ import { j as n, aJ as v, aL as W, aK as K } from "./@vendor-DwGKptu5.js";
2
2
  import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
3
3
  import z, { getDefaultRegistry as Q } from "@rjsf/core";
4
- import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as I, e as ne } from "./@code-editor-B795B-vT.js";
4
+ import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-CeahPz46.js";
5
5
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
6
6
  import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
7
7
  import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
@@ -58,7 +58,7 @@ import './assets/@common-rjsf.css';const P = {
58
58
  r
59
59
  ]
60
60
  }
61
- ), R = ({ label: e, canAdd: t, onAddClick: s, disabled: r, readonly: a, uiSchema: i, registry: l }) => {
61
+ ), A = ({ label: e, canAdd: t, onAddClick: s, disabled: r, readonly: a, uiSchema: i, registry: l }) => {
62
62
  const {
63
63
  ButtonTemplates: { AddButton: o }
64
64
  } = l.templates;
@@ -97,7 +97,7 @@ import './assets/@common-rjsf.css';const P = {
97
97
  return /* @__PURE__ */ n.jsx(h, { ...p, children: _ }, x);
98
98
  }),
99
99
  /* @__PURE__ */ n.jsx(
100
- R,
100
+ A,
101
101
  {
102
102
  label: u,
103
103
  canAdd: e,
@@ -109,7 +109,7 @@ import './assets/@common-rjsf.css';const P = {
109
109
  }
110
110
  )
111
111
  ] }) : /* @__PURE__ */ n.jsx(w, { label: u, required: d, showLabel: !0, id: r.$id, children: /* @__PURE__ */ n.jsx(
112
- R,
112
+ A,
113
113
  {
114
114
  label: u,
115
115
  canAdd: e,
@@ -262,7 +262,7 @@ import './assets/@common-rjsf.css';const P = {
262
262
  return "";
263
263
  const t = e.trim(), r = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
264
264
  return /(\/(([^/~])|(~[01]))*)/g.test(r) ? r : "";
265
- }, A = {
265
+ }, I = {
266
266
  value: !1,
267
267
  path: ""
268
268
  }, ve = (e) => {
@@ -272,13 +272,13 @@ import './assets/@common-rjsf.css';const P = {
272
272
  return typeof t == "string" ? {
273
273
  value: !0,
274
274
  path: T(t)
275
- } : typeof t != "object" ? structuredClone(A) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
275
+ } : typeof t != "object" ? structuredClone(I) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
276
276
  value: t.condition,
277
277
  path: T(t.value)
278
278
  } : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
279
279
  value: t.value,
280
280
  path: T(t.path)
281
- } : structuredClone(A);
281
+ } : structuredClone(I);
282
282
  }, H = (e, t, s) => {
283
283
  e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([r, a]) => {
284
284
  H(a, `${t}/${r}`, s);
@@ -507,7 +507,7 @@ import './assets/@common-rjsf.css';const P = {
507
507
  Y(() => {
508
508
  _(ee(8));
509
509
  }, []);
510
- const y = (g) => s ? u.filter((b) => g.some((J) => I(J, b.value))) : u.find((b) => I(g, b.value));
510
+ const y = (g) => s ? u.filter((b) => g.some((J) => R(J, b.value))) : u.find((b) => R(g, b.value));
511
511
  return /* @__PURE__ */ n.jsx(
512
512
  te,
513
513
  {
@@ -527,10 +527,10 @@ import './assets/@common-rjsf.css';const P = {
527
527
  },
528
528
  j
529
529
  );
530
- }, Ie = {
530
+ }, Re = {
531
531
  CheckboxWidget: Ce,
532
532
  SelectWidget: Ee
533
- }, Re = {
533
+ }, Ae = {
534
534
  ArrayFieldItemTemplate: fe,
535
535
  ArrayFieldTemplate: he,
536
536
  BaseInputTemplate: xe,
@@ -540,7 +540,7 @@ import './assets/@common-rjsf.css';const P = {
540
540
  ObjectFieldTemplate: Oe,
541
541
  TitleFieldTemplate: C,
542
542
  WrapIfAdditionalTemplate: Pe
543
- }, Ae = z, De = ne, qe = G((e, t) => {
543
+ }, Ie = z, De = ne, qe = G((e, t) => {
544
544
  const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = E(() => {
545
545
  const o = Se(e.schema);
546
546
  return {
@@ -568,7 +568,7 @@ import './assets/@common-rjsf.css';const P = {
568
568
  };
569
569
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
570
570
  /* @__PURE__ */ n.jsx(
571
- Ae,
571
+ Ie,
572
572
  {
573
573
  noHtml5Validate: !0,
574
574
  showErrorList: !1,
@@ -582,11 +582,11 @@ import './assets/@common-rjsf.css';const P = {
582
582
  className: `rjsf-form-template__container ${e.className || ""}`,
583
583
  validator: De,
584
584
  templates: {
585
- ...Re,
585
+ ...Ae,
586
586
  ...e.templates
587
587
  },
588
588
  formContext: a,
589
- widgets: { ...Ie, ...e.widgets },
589
+ widgets: { ...Re, ...e.widgets },
590
590
  translateString: Te,
591
591
  ref: t
592
592
  }
@@ -1,4 +1,4 @@
1
- import { aU as m, aV as lt, aW as R, aX as Zr, aY as Le, aZ as oe, a_ as T, a$ as $e, b0 as at, b1 as Gt, b2 as Q, b3 as $r, b4 as oi, b5 as si, b6 as ui, b7 as li, b8 as fi, b9 as ci, ba as vi, bb as di, bc as qr, bd as pi, be as hi, bf as mi, bg as gi, bh as yi, bi as Jr, bj as Pt, bk as he, bl as X, bm as bi, bn as Qr, bo as z, bp as tn, bq as me, br as Z, bs as Pi, bt as Ot, bu as Vi, bv as Ti, bw as en, bx as Ft, by as O, bz as ge, bA as Si, bB as se, bC as xi, bD as Ci } from "./@vendor-DMIFbFhR.js";
1
+ import { aV as m, aW as lt, aX as R, aY as Zr, aZ as Le, a_ as oe, a$ as T, b0 as $e, b1 as at, b2 as Gt, b3 as Q, b4 as $r, b5 as oi, b6 as si, b7 as ui, b8 as li, b9 as fi, ba as ci, bb as vi, bc as di, bd as qr, be as pi, bf as hi, bg as mi, bh as gi, bi as yi, bj as Jr, bk as Pt, bl as he, bm as X, bn as bi, bo as Qr, bp as z, bq as tn, br as me, bs as Z, bt as Pi, bu as Ot, bv as Vi, bw as Ti, bx as en, by as Ft, bz as O, bA as ge, bB as Si, bC as se, bD as xi, bE as Ci } from "./@vendor-DwGKptu5.js";
2
2
  import * as Y from "react";
3
3
  import Re, { createContext as St, useContext as F, useLayoutEffect as Ai, useEffect as N, useState as De, useRef as $, useCallback as ye, useMemo as Vt, forwardRef as wi, createElement as Ei, cloneElement as Li, Children as Ri, isValidElement as Di } from "react";
4
4
  var qe = "production", Me = typeof process > "u" || process.env === void 0 ? qe : process.env.NODE_ENV || qe, tt = function(t) {
@@ -1,5 +1,5 @@
1
1
  import Te from "react";
2
- import { bE as he, bF as Ke, bG as we, bH as cn, bI as Le, bJ as Je, bK as tt, bL as at, bM as et, bN as lt, bO as nt, bP as so, bQ as fn, bR as uo, bS as bt, bT as ei, bU as hn, bV as co, bW as fo, bX as ho, bY as vn, bZ as Fe, b_ as pn, b$ as ti, c0 as wn, c1 as ai, c2 as ni, c3 as ri, c4 as Rt, c5 as oi, c6 as ii, c7 as li } from "./@vendor-DMIFbFhR.js";
2
+ import { bF as he, bG as Ke, bH as we, bI as cn, bJ as Le, bK as Je, bL as tt, bM as at, bN as et, bO as lt, bP as nt, bQ as so, bR as fn, bS as uo, bT as bt, bU as ei, bV as hn, bW as co, bX as fo, bY as ho, bZ as vn, b_ as Fe, b$ as pn, c0 as ti, c1 as wn, c2 as ai, c3 as ni, c4 as ri, c5 as Rt, c6 as oi, c7 as ii, c8 as li } from "./@vendor-DwGKptu5.js";
3
3
  import { r as Ne, h as si, g as di } from "./@moment-CGWt8tF2.js";
4
4
  import './assets/@react-dates.css';var Wt = {}, jt = {}, zt = {}, Nn;
5
5
  function Ve() {
@@ -1,4 +1,4 @@
1
- import { c8 as xt, c9 as v, bY as re, ca as h, c3 as f, cb as Y, cc as U, cd as xe, ce as Bt, cf as Ue, cg as Ft, ch as Vt, ci as Et, cj as yt, ck as Wt, cl as Xt, cm as ne, cn as Zt } from "./@vendor-DMIFbFhR.js";
1
+ import { c9 as xt, ca as v, bZ as re, cb as h, c4 as f, cc as Y, cd as U, ce as xe, cf as Bt, cg as Ue, ch as Ft, ci as Vt, cj as Et, ck as yt, cl as Wt, cm as Xt, cn as ne, co as Zt } from "./@vendor-DwGKptu5.js";
2
2
  import * as y from "react";
3
3
  import { useRef as j, useState as ee, useMemo as q, useCallback as D, createContext as Nt, useContext as St, Component as Rt, Fragment as Be, useEffect as Qe, forwardRef as Ht } from "react";
4
4
  import { createPortal as Tt } from "react-dom";
@@ -2,7 +2,7 @@ var v = Object.defineProperty;
2
2
  var E = (a, h, e) => h in a ? v(a, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[h] = e;
3
3
  var f = (a, h, e) => E(a, typeof h != "symbol" ? h + "" : h, e);
4
4
  import u, { createRef as k } from "react";
5
- import { co as x } from "./@vendor-DMIFbFhR.js";
5
+ import { cp as x } from "./@vendor-DwGKptu5.js";
6
6
  const b = () => typeof navigator < "u" && /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor) ? "-webkit-sticky" : "sticky";
7
7
  var g;
8
8
  (function(a) {