@devtron-labs/devtron-fe-common-lib 1.6.13 → 1.7.0-beta-1
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-DKia2h7P.js +23493 -0
- package/dist/{@common-rjsf-BD3cf25o.js → @common-rjsf-DN4pFCn5.js} +36 -36
- package/dist/{@framer-motion-BFqoU0Z7.js → @framer-motion-C88ROIS4.js} +70 -70
- package/dist/@monaco-editor-CVagbUeH.js +138960 -0
- package/dist/{@react-dates-Dx7AjKDr.js → @react-dates-Ct1VA7V6.js} +14 -14
- package/dist/{@react-select-BfYm_1lF.js → @react-select-qU4oRypC.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BNk-_Tvs.js → @react-virtualized-sticky-tree-DmvoaDNw.js} +1 -1
- package/dist/@vendor-C6rSXA7p.js +22734 -0
- package/dist/Common/CodeEditor/CodeEditor.d.ts +3 -13
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +47 -3
- package/dist/Common/CodeEditor/index.d.ts +1 -1
- package/dist/Common/CodeEditor/types.d.ts +76 -83
- package/dist/Common/CodeEditor/utils.d.ts +3 -13
- package/dist/Common/CodeMirror/CodeEditor.d.ts +14 -0
- package/dist/Common/CodeMirror/CodeEditor.reducer.d.ts +4 -0
- package/dist/Common/CodeMirror/index.d.ts +2 -0
- package/dist/Common/CodeMirror/types.d.ts +107 -0
- package/dist/Common/CodeMirror/utils.d.ts +13 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -0
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@monaco-editor.css +1 -0
- package/dist/assets/codicon.ecfbfe4b.ttf +0 -0
- package/dist/assets/ic-environment.d241eccb.svg +20 -0
- package/dist/assets/{ic-github.bb1f1753.svg → ic-github.9d82ed09.svg} +16 -0
- package/dist/assets/ic-help-filled.b7ae284e.svg +20 -0
- package/dist/index.js +667 -664
- package/package.json +7 -1
- package/dist/@code-editor-BR2fcwFa.js +0 -42307
- package/dist/@vendor-CWh7bjwl.js +0 -42519
- package/dist/assets/ic-environment.e639b8f3.svg +0 -4
- package/dist/assets/ic-help-filled.4468cdf1.svg +0 -4
- package/dist/assets/ic-match-case.702186fe.svg +0 -3
- package/dist/assets/ic-match-word.991dea5a.svg +0 -3
- package/dist/assets/ic-replace-all-text.7ebbab01.svg +0 -3
- package/dist/assets/ic-replace-text.5de817d2.svg +0 -3
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.components.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.constants.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.context.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.theme.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditorRenderer.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/findAndReplace.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/index.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/readOnlyTooltip.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/yamlParseLinter.d.ts +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
import { j as t,
|
2
|
-
import
|
1
|
+
import { j as t, J as P } from "./@vendor-C6rSXA7p.js";
|
2
|
+
import R, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as D } from "@rjsf/core";
|
4
|
-
import { T as v, c as H, a as U, i as k, b as
|
5
|
-
import
|
4
|
+
import { T as v, c as H, a as U, i as k, b as y, d as S, S as J } from "./@code-editor-DKia2h7P.js";
|
5
|
+
import M, { components as A } from "react-select";
|
6
6
|
import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
|
-
import { getUiOptions as
|
7
|
+
import { getUiOptions as C, getTemplate as B, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as I, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
|
9
9
|
import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
|
10
10
|
import { ReactComponent as ee } from "./assets/ic-warning.a842ba2a.svg";
|
@@ -12,7 +12,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
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
|
-
}, te = "Key not available",
|
15
|
+
}, te = "Key not available", Pe = {
|
16
16
|
"ui:submitButtonOptions": {
|
17
17
|
norender: !0
|
18
18
|
}
|
@@ -36,7 +36,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
36
36
|
a
|
37
37
|
]
|
38
38
|
}
|
39
|
-
),
|
39
|
+
), F = ({ label: n, canAdd: e, onAddClick: s, disabled: a, readonly: r, uiSchema: o, registry: i }) => {
|
40
40
|
const {
|
41
41
|
ButtonTemplates: { AddButton: c }
|
42
42
|
} = i.templates;
|
@@ -63,7 +63,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
63
63
|
required: d,
|
64
64
|
title: x
|
65
65
|
}) => {
|
66
|
-
const p =
|
66
|
+
const p = C(r), h = B("ArrayFieldItemTemplate", l, p), u = p.title || x;
|
67
67
|
return /* @__PURE__ */ t.jsx("fieldset", { className: e, id: a.$id, children: o.length ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
68
68
|
o.map(({ key: j, ..._ }, f) => {
|
69
69
|
const m = {
|
@@ -75,7 +75,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
75
75
|
return /* @__PURE__ */ t.jsx(h, { ..._, children: m }, j);
|
76
76
|
}),
|
77
77
|
/* @__PURE__ */ t.jsx(
|
78
|
-
|
78
|
+
F,
|
79
79
|
{
|
80
80
|
label: u,
|
81
81
|
canAdd: n,
|
@@ -87,7 +87,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
87
87
|
}
|
88
88
|
)
|
89
89
|
] }) : /* @__PURE__ */ t.jsx(b, { label: u, required: d, showLabel: !0, id: a.$id, children: /* @__PURE__ */ t.jsx(
|
90
|
-
|
90
|
+
F,
|
91
91
|
{
|
92
92
|
label: u,
|
93
93
|
canAdd: n,
|
@@ -131,7 +131,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
131
131
|
...e,
|
132
132
|
className: "form__input cn-9 fs-13 lh-20 fw-4"
|
133
133
|
}
|
134
|
-
),
|
134
|
+
), E = ({
|
135
135
|
label: n,
|
136
136
|
icon: e,
|
137
137
|
iconType: s,
|
@@ -178,11 +178,11 @@ import './assets/@common-rjsf.css';const N = {
|
|
178
178
|
classNames: x,
|
179
179
|
schema: p,
|
180
180
|
rawDescription: h
|
181
|
-
} = n, u =
|
181
|
+
} = n, u = C(d), j = B(
|
182
182
|
"WrapIfAdditionalTemplate",
|
183
183
|
l,
|
184
184
|
u
|
185
|
-
), _ =
|
185
|
+
), _ = I in p, f = (c || p.type === "boolean") && !_, m = p.type === "array";
|
186
186
|
return o ? /* @__PURE__ */ t.jsx("div", { className: "hidden", children: a }) : (
|
187
187
|
// NOTE: need to override the margins of default rjsf css
|
188
188
|
/* @__PURE__ */ t.jsxs("div", { className: `${x} mb-0`, children: [
|
@@ -214,7 +214,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
214
214
|
);
|
215
215
|
}, ce = ({ errors: n = [], idSchema: e }) => {
|
216
216
|
const s = q(e);
|
217
|
-
return n.length > 0 && /* @__PURE__ */ t.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: n.filter((a) => !!a).map((a, r) => /* @__PURE__ */ t.jsxs(
|
217
|
+
return n.length > 0 && /* @__PURE__ */ t.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: n.filter((a) => !!a).map((a, r) => /* @__PURE__ */ t.jsxs(R.Fragment, { children: [
|
218
218
|
/* @__PURE__ */ t.jsx("span", {}),
|
219
219
|
/* @__PURE__ */ t.jsxs("span", { className: "form__error", children: [
|
220
220
|
/* @__PURE__ */ t.jsx(ee, { className: "form__icon form__icon--error" }),
|
@@ -228,7 +228,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
228
228
|
default:
|
229
229
|
return K(n, e);
|
230
230
|
}
|
231
|
-
},
|
231
|
+
}, Re = (n) => {
|
232
232
|
try {
|
233
233
|
const e = new URL(n).origin === window.location.origin;
|
234
234
|
return {
|
@@ -256,12 +256,12 @@ import './assets/@common-rjsf.css';const N = {
|
|
256
256
|
default:
|
257
257
|
return "null";
|
258
258
|
}
|
259
|
-
},
|
259
|
+
}, T = (n) => {
|
260
260
|
if (!n)
|
261
261
|
return "";
|
262
262
|
const e = n.trim();
|
263
263
|
return e.match(/^\w+(\/\w+)*$/g) ? `/${e}` : e.match(/^\w+(\.\w+)*$/g) ? `/${e.replaceAll(/\./g, "/")}` : e;
|
264
|
-
},
|
264
|
+
}, O = {
|
265
265
|
value: !1,
|
266
266
|
path: ""
|
267
267
|
}, pe = (n) => {
|
@@ -270,14 +270,14 @@ import './assets/@common-rjsf.css';const N = {
|
|
270
270
|
const e = structuredClone(n);
|
271
271
|
return typeof e == "string" ? {
|
272
272
|
value: !0,
|
273
|
-
path:
|
274
|
-
} : typeof e != "object" ? structuredClone(
|
273
|
+
path: T(e)
|
274
|
+
} : typeof e != "object" ? structuredClone(O) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
|
275
275
|
value: e.condition,
|
276
|
-
path:
|
276
|
+
path: T(e.value)
|
277
277
|
} : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
|
278
278
|
value: e.value,
|
279
|
-
path:
|
280
|
-
} : structuredClone(
|
279
|
+
path: T(e.path)
|
280
|
+
} : structuredClone(O);
|
281
281
|
}, me = ({
|
282
282
|
disabled: n,
|
283
283
|
formData: e,
|
@@ -293,7 +293,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
293
293
|
formContext: p
|
294
294
|
}) => {
|
295
295
|
const h = !!l.additionalProperties, u = G(l, x, e) && /* @__PURE__ */ t.jsx(
|
296
|
-
|
296
|
+
E,
|
297
297
|
{
|
298
298
|
label: d,
|
299
299
|
className: "object-property-expand",
|
@@ -312,7 +312,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
312
312
|
throw new Error("Empty path property of hidden descriptor field");
|
313
313
|
if (!m.path.match(/^\/\w+(\/\w+)*$/g))
|
314
314
|
throw new Error("Provided path is not a valid JSON pointer");
|
315
|
-
const g =
|
315
|
+
const g = P({
|
316
316
|
path: H(m.path),
|
317
317
|
json: p
|
318
318
|
})?.[0];
|
@@ -373,7 +373,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
373
373
|
uiSchema: l,
|
374
374
|
registry: d
|
375
375
|
}) => {
|
376
|
-
const { templates: x } = d, { RemoveButton: p } = x.ButtonTemplates, h =
|
376
|
+
const { templates: x } = d, { RemoveButton: p } = x.ButtonTemplates, h = I in i;
|
377
377
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: h ? /* @__PURE__ */ t.jsxs("div", { className: "dc__position-rel rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
|
378
378
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
379
379
|
"input",
|
@@ -430,7 +430,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
430
430
|
),
|
431
431
|
/* @__PURE__ */ t.jsx("span", { className: "dc__capitalize ml-8", children: x.toString() })
|
432
432
|
] });
|
433
|
-
}, xe = ({ children: n, ...e }) => /* @__PURE__ */ t.jsx(
|
433
|
+
}, xe = ({ children: n, ...e }) => /* @__PURE__ */ t.jsx(A.MenuList, { ...e, children: Array.isArray(n) ? n.slice(0, 20) : n }), _e = (n) => /* @__PURE__ */ t.jsx(A.DropdownIndicator, { ...n, children: /* @__PURE__ */ t.jsx(V, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), je = (n) => {
|
434
434
|
const {
|
435
435
|
id: e,
|
436
436
|
multiple: s = !1,
|
@@ -447,7 +447,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
447
447
|
l(s ? f.map((m) => m.value) : f.value);
|
448
448
|
}, _ = (f) => s ? h.filter((m) => f.some((g) => S(g, m.value))) : h.find((m) => S(f, m.value));
|
449
449
|
return /* @__PURE__ */ t.jsx(
|
450
|
-
|
450
|
+
M,
|
451
451
|
{
|
452
452
|
id: e,
|
453
453
|
name: e,
|
@@ -461,13 +461,13 @@ import './assets/@common-rjsf.css';const N = {
|
|
461
461
|
placeholder: p || N.SELECT,
|
462
462
|
isDisabled: o || i,
|
463
463
|
styles: {
|
464
|
-
...
|
464
|
+
...y,
|
465
465
|
control: (f, m) => ({
|
466
|
-
...
|
466
|
+
...y.control(f, m),
|
467
467
|
minHeight: "36px"
|
468
468
|
}),
|
469
469
|
multiValue: (f, m) => ({
|
470
|
-
...
|
470
|
+
...y.multiValue(f, m),
|
471
471
|
margin: "2px 8px 2px 2px"
|
472
472
|
})
|
473
473
|
},
|
@@ -486,21 +486,21 @@ import './assets/@common-rjsf.css';const N = {
|
|
486
486
|
ArrayFieldItemTemplate: se,
|
487
487
|
ArrayFieldTemplate: ne,
|
488
488
|
BaseInputTemplate: re,
|
489
|
-
ButtonTemplates: { AddButton:
|
489
|
+
ButtonTemplates: { AddButton: E, RemoveButton: oe, SubmitButton: ie },
|
490
490
|
FieldTemplate: le,
|
491
491
|
FieldErrorTemplate: ce,
|
492
492
|
ObjectFieldTemplate: ue,
|
493
493
|
TitleFieldTemplate: w,
|
494
494
|
WrapIfAdditionalTemplate: he
|
495
|
-
},
|
496
|
-
|
495
|
+
}, ye = L, Te = J, Le = $((n, e) => /* @__PURE__ */ t.jsx(
|
496
|
+
ye,
|
497
497
|
{
|
498
498
|
noHtml5Validate: !0,
|
499
499
|
showErrorList: !1,
|
500
500
|
autoComplete: "off",
|
501
501
|
...n,
|
502
502
|
className: `rjsf-form-template__container ${n.className || ""}`,
|
503
|
-
validator:
|
503
|
+
validator: Te,
|
504
504
|
templates: {
|
505
505
|
...be,
|
506
506
|
...n.templates
|
@@ -512,8 +512,8 @@ import './assets/@common-rjsf.css';const N = {
|
|
512
512
|
}
|
513
513
|
));
|
514
514
|
export {
|
515
|
-
|
515
|
+
Pe as H,
|
516
516
|
Le as R,
|
517
|
-
|
517
|
+
Re as a,
|
518
518
|
$e as g
|
519
519
|
};
|