@devtron-labs/devtron-fe-common-lib 1.8.3 → 1.8.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.
Files changed (36) hide show
  1. package/dist/{@code-editor-n5LXKVDW.js → @code-editor-CECO9rTe.js} +11240 -10167
  2. package/dist/{@common-rjsf-DhBG-a7N.js → @common-rjsf-CAp5a9od.js} +21 -21
  3. package/dist/{@framer-motion-C9i0O6dh.js → @framer-motion-DrRBF6oz.js} +1 -1
  4. package/dist/{@react-dates-DEMedmhG.js → @react-dates-DTh8Zdbr.js} +343 -343
  5. package/dist/{@react-select-DD4GMsWv.js → @react-select-Bsomcqq-.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BlYAzsAg.js → @react-virtualized-sticky-tree-DjqdMMRP.js} +1 -1
  7. package/dist/@vendor-Bb3ljJxt.js +61891 -0
  8. package/dist/Common/CodeEditor/types.d.ts +6 -0
  9. package/dist/Common/CodeMirror/CodeEditor.constants.d.ts +1 -1
  10. package/dist/Common/CodeMirror/CodeEditor.theme.d.ts +4 -1
  11. package/dist/Common/CodeMirror/CodeEditorRenderer.d.ts +1 -1
  12. package/dist/Common/CodeMirror/Commands/findAndReplace.d.ts +7 -0
  13. package/dist/Common/CodeMirror/Commands/index.d.ts +1 -0
  14. package/dist/Common/CodeMirror/Extensions/index.d.ts +1 -0
  15. package/dist/Common/CodeMirror/Extensions/readOnlyTooltip.d.ts +1 -1
  16. package/dist/Common/CodeMirror/Extensions/yamlHighlight.d.ts +2 -0
  17. package/dist/Common/CodeMirror/index.d.ts +1 -1
  18. package/dist/Common/CodeMirror/types.d.ts +4 -2
  19. package/dist/Common/CodeMirror/utils.d.ts +1 -0
  20. package/dist/Common/Constants.d.ts +1 -0
  21. package/dist/Common/index.d.ts +1 -1
  22. package/dist/Shared/Components/CodeEditorWrapper/CodeEditorWrapper.d.ts +21 -0
  23. package/dist/Shared/Components/CodeEditorWrapper/index.d.ts +1 -0
  24. package/dist/Shared/Components/CodeEditorWrapper/types.d.ts +7 -0
  25. package/dist/Shared/Components/Icon/Icon.d.ts +1 -0
  26. package/dist/Shared/Components/index.d.ts +1 -0
  27. package/dist/assets/@code-editor.css +1 -1
  28. package/dist/assets/ic-arrow-right.06ad55f3.svg +3 -0
  29. package/dist/assets/ic-match-case.13b7a2fa.svg +19 -0
  30. package/dist/assets/ic-match-word.d92addc3.svg +19 -0
  31. package/dist/assets/ic-replace-all-text.a87fd342.svg +19 -0
  32. package/dist/assets/ic-replace-text.cc5433be.svg +19 -0
  33. package/dist/index.d.ts +5 -0
  34. package/dist/index.js +127 -126
  35. package/package.json +5 -3
  36. package/dist/@vendor-CIA81cZg.js +0 -22731
@@ -1,7 +1,7 @@
1
- import { j as n, J as y, e as k, b as W } from "./@vendor-CIA81cZg.js";
2
- import J, { forwardRef as V, useMemo as P } from "react";
1
+ import { j as n, ac as y, ae as k, ad as W } from "./@vendor-Bb3ljJxt.js";
2
+ import V, { forwardRef as J, useMemo as P } from "react";
3
3
  import K, { getDefaultRegistry as q } from "@rjsf/core";
4
- import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-n5LXKVDW.js";
4
+ import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-CECO9rTe.js";
5
5
  import Q, { components as D } from "react-select";
6
6
  import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
@@ -12,7 +12,7 @@ import './assets/@common-rjsf.css';const O = {
12
12
  SELECT: "Please select an option",
13
13
  INPUT: "Please enter an input",
14
14
  OBJECT_KEY: "Please enter a value for the key"
15
- }, ce = "Key not available", Ve = {
15
+ }, ce = "Key not available", Je = {
16
16
  "ui:submitButtonOptions": {
17
17
  norender: !0
18
18
  }
@@ -214,7 +214,7 @@ import './assets/@common-rjsf.css';const O = {
214
214
  );
215
215
  }, je = ({ errors: e = [], idSchema: t }) => {
216
216
  const s = ee(t);
217
- return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: e.filter((r) => !!r).map((r, a) => /* @__PURE__ */ n.jsxs(J.Fragment, { children: [
217
+ return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: e.filter((r) => !!r).map((r, a) => /* @__PURE__ */ n.jsxs(V.Fragment, { children: [
218
218
  /* @__PURE__ */ n.jsx("span", {}),
219
219
  /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
220
220
  /* @__PURE__ */ n.jsx(le, { className: "form__icon form__icon--error" }),
@@ -256,7 +256,7 @@ import './assets/@common-rjsf.css';const O = {
256
256
  default:
257
257
  return "null";
258
258
  }
259
- }, g = (e) => {
259
+ }, b = (e) => {
260
260
  if (!e)
261
261
  return "";
262
262
  const t = e.trim(), r = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
@@ -264,25 +264,25 @@ import './assets/@common-rjsf.css';const O = {
264
264
  }, R = {
265
265
  value: !1,
266
266
  path: ""
267
- }, be = (e) => {
267
+ }, ge = (e) => {
268
268
  if (!e)
269
269
  return null;
270
270
  const t = structuredClone(e);
271
271
  return typeof t == "string" ? {
272
272
  value: !0,
273
- path: g(t)
273
+ path: b(t)
274
274
  } : typeof t != "object" ? structuredClone(R) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
275
275
  value: t.condition,
276
- path: g(t.value)
276
+ path: b(t.value)
277
277
  } : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
278
278
  value: t.value,
279
- path: g(t.path)
279
+ path: b(t.path)
280
280
  } : structuredClone(R);
281
281
  }, H = (e, t, s) => {
282
282
  e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([r, a]) => {
283
283
  H(a, `${t}/${r}`, s);
284
- }), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (s[t] = g(e.updatePath ?? t)));
285
- }, ge = (e) => {
284
+ }), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (s[t] = b(e.updatePath ?? t)));
285
+ }, be = (e) => {
286
286
  const t = {};
287
287
  return H(e, "", t), t;
288
288
  }, M = (e, t, s) => {
@@ -371,16 +371,16 @@ import './assets/@common-rjsf.css';const O = {
371
371
  if (!h)
372
372
  return !0;
373
373
  try {
374
- const m = be(h);
374
+ const m = ge(h);
375
375
  if (!m.path)
376
376
  throw new Error("Empty path property of hidden descriptor field");
377
- const b = y({
377
+ const g = y({
378
378
  path: v(m.path),
379
379
  json: u,
380
380
  resultType: "value",
381
381
  wrap: !1
382
382
  });
383
- return !(b === void 0 || ae(m.value, b));
383
+ return !(g === void 0 || ae(m.value, g));
384
384
  } catch {
385
385
  return !0;
386
386
  }
@@ -509,7 +509,7 @@ import './assets/@common-rjsf.css';const O = {
509
509
  placeholder: u
510
510
  } = e, { enumOptions: f = [] } = r, p = s ? [] : "", _ = (h) => {
511
511
  c(s ? h.map((m) => m.value) : h.value);
512
- }, j = (h) => s ? f.filter((m) => h.some((b) => E(b, m.value))) : f.find((m) => E(h, m.value));
512
+ }, j = (h) => s ? f.filter((m) => h.some((g) => E(g, m.value))) : f.find((m) => E(h, m.value));
513
513
  return /* @__PURE__ */ n.jsx(
514
514
  Q,
515
515
  {
@@ -556,9 +556,9 @@ import './assets/@common-rjsf.css';const O = {
556
556
  ObjectFieldTemplate: we,
557
557
  TitleFieldTemplate: C,
558
558
  WrapIfAdditionalTemplate: Ne
559
- }, Ae = K, Re = G, Ye = V((e, t) => {
559
+ }, Ae = K, Re = G, Ye = J((e, t) => {
560
560
  const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = P(() => {
561
- const o = ge(e.schema);
561
+ const o = be(e.schema);
562
562
  return {
563
563
  schemaPathToUpdatePathMap: o,
564
564
  isUpdatePathKeywordPresent: Object.entries(o).some(([c, d]) => c !== d)
@@ -608,10 +608,10 @@ import './assets/@common-rjsf.css';const O = {
608
608
  );
609
609
  });
610
610
  export {
611
- Ve as H,
611
+ Je as H,
612
612
  Ye as R,
613
613
  Ke as a,
614
- ge as b,
615
- g as c,
614
+ be as b,
615
+ b as c,
616
616
  qe as g
617
617
  };
@@ -1,4 +1,4 @@
1
- import { g as ct, l as m, o as I, p as Yr, q as we, r as T, t as at, v as zt, w as ae, x as Xe, y as J, z as kr, B as Qn, C as Xr, E as ti, F as ei, G as ri, H as ni, I as ii, K as Wr, L as ai, M as oi, N as si, O as ui, P as li, S as fi, T as ci, U as yt, V as k, W as pe, X as Zr, Y as vi, Z as di, $ as W, a0 as $, a1 as pi, a2 as he, a3 as Dt, a4 as hi, a5 as mi, a6 as $r, a7 as Mt, a8 as O, a9 as me, aa as gi, ab as oe, ac as yi } from "./@vendor-CIA81cZg.js";
1
+ import { ah as ct, ai as m, aj as I, ak as Yr, al as we, am as T, an as at, ao as zt, ap as ae, aq as Xe, ar as J, as as kr, at as Qn, au as Xr, av as ti, aw as ei, ax as ri, ay as ni, az as ii, aA as Wr, aB as ai, aC as oi, aD as si, aE as ui, aF as li, aG as fi, aH as ci, aI as yt, aJ as k, aK as pe, aL as Zr, aM as vi, aN as di, aO as W, aP as $, aQ as pi, aR as he, aS as Dt, aT as hi, aU as mi, aV as $r, aW as Mt, aX as O, aY as me, aZ as gi, a_ as oe, a$ as yi } from "./@vendor-Bb3ljJxt.js";
2
2
  import * as K from "react";
3
3
  import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
4
4
  var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {