@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.
- package/dist/{@code-editor-n5LXKVDW.js → @code-editor-CECO9rTe.js} +11240 -10167
- package/dist/{@common-rjsf-DhBG-a7N.js → @common-rjsf-CAp5a9od.js} +21 -21
- package/dist/{@framer-motion-C9i0O6dh.js → @framer-motion-DrRBF6oz.js} +1 -1
- package/dist/{@react-dates-DEMedmhG.js → @react-dates-DTh8Zdbr.js} +343 -343
- package/dist/{@react-select-DD4GMsWv.js → @react-select-Bsomcqq-.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BlYAzsAg.js → @react-virtualized-sticky-tree-DjqdMMRP.js} +1 -1
- package/dist/@vendor-Bb3ljJxt.js +61891 -0
- package/dist/Common/CodeEditor/types.d.ts +6 -0
- package/dist/Common/CodeMirror/CodeEditor.constants.d.ts +1 -1
- package/dist/Common/CodeMirror/CodeEditor.theme.d.ts +4 -1
- package/dist/Common/CodeMirror/CodeEditorRenderer.d.ts +1 -1
- package/dist/Common/CodeMirror/Commands/findAndReplace.d.ts +7 -0
- package/dist/Common/CodeMirror/Commands/index.d.ts +1 -0
- package/dist/Common/CodeMirror/Extensions/index.d.ts +1 -0
- package/dist/Common/CodeMirror/Extensions/readOnlyTooltip.d.ts +1 -1
- package/dist/Common/CodeMirror/Extensions/yamlHighlight.d.ts +2 -0
- package/dist/Common/CodeMirror/index.d.ts +1 -1
- package/dist/Common/CodeMirror/types.d.ts +4 -2
- package/dist/Common/CodeMirror/utils.d.ts +1 -0
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Common/index.d.ts +1 -1
- package/dist/Shared/Components/CodeEditorWrapper/CodeEditorWrapper.d.ts +21 -0
- package/dist/Shared/Components/CodeEditorWrapper/index.d.ts +1 -0
- package/dist/Shared/Components/CodeEditorWrapper/types.d.ts +7 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-arrow-right.06ad55f3.svg +3 -0
- package/dist/assets/ic-match-case.13b7a2fa.svg +19 -0
- package/dist/assets/ic-match-word.d92addc3.svg +19 -0
- package/dist/assets/ic-replace-all-text.a87fd342.svg +19 -0
- package/dist/assets/ic-replace-text.cc5433be.svg +19 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +127 -126
- package/package.json +5 -3
- package/dist/@vendor-CIA81cZg.js +0 -22731
@@ -1,7 +1,7 @@
|
|
1
|
-
import { j as n,
|
2
|
-
import
|
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-
|
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",
|
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(
|
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
|
-
},
|
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
|
-
},
|
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:
|
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:
|
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:
|
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] =
|
285
|
-
},
|
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 =
|
374
|
+
const m = ge(h);
|
375
375
|
if (!m.path)
|
376
376
|
throw new Error("Empty path property of hidden descriptor field");
|
377
|
-
const
|
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 !(
|
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((
|
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 =
|
559
|
+
}, Ae = K, Re = G, Ye = J((e, t) => {
|
560
560
|
const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = P(() => {
|
561
|
-
const o =
|
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
|
-
|
611
|
+
Je as H,
|
612
612
|
Ye as R,
|
613
613
|
Ke as a,
|
614
|
-
|
615
|
-
|
614
|
+
be as b,
|
615
|
+
b as c,
|
616
616
|
qe as g
|
617
617
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
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) {
|