@devtron-labs/devtron-fe-common-lib 1.3.5 → 1.3.7

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 (30) hide show
  1. package/dist/{@code-editor-BDxmatp-.js → @code-editor-C3MBFLv8.js} +6582 -6320
  2. package/dist/{@common-rjsf-B6zYxyaW.js → @common-rjsf-CliHDEO9.js} +63 -63
  3. package/dist/{@framer-motion-DHzxZlAx.js → @framer-motion-CFzS2_A_.js} +1 -1
  4. package/dist/{@react-dates-BZU5RIqe.js → @react-dates-C-VeMZT9.js} +1 -1
  5. package/dist/{@react-select-Dx53b3Wk.js → @react-select-S88iwOBa.js} +1 -1
  6. package/dist/{@vendor-BG3OpQCq.js → @vendor-RA_nL1Ml.js} +135 -133
  7. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +1 -1
  8. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  9. package/dist/Common/CustomTagSelector/ValidationRules.d.ts +2 -4
  10. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
  11. package/dist/Common/Types.d.ts +29 -8
  12. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +2 -2
  13. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +2 -2
  14. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
  15. package/dist/Pages/GlobalConfigurations/BuildInfra/UseBuildInfraForm.d.ts +3 -0
  16. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +21 -9
  17. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +4 -0
  18. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +3 -5
  19. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +212 -88
  20. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +6 -16
  21. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  22. package/dist/Shared/Components/Button/types.d.ts +6 -0
  23. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  24. package/dist/Shared/Helpers.d.ts +11 -0
  25. package/dist/Shared/constants.d.ts +2 -0
  26. package/dist/Shared/validations.d.ts +5 -0
  27. package/dist/assets/@code-editor.css +1 -1
  28. package/dist/assets/ic-spray-can.44e87582.svg +3 -0
  29. package/dist/index.js +684 -657
  30. package/package.json +5 -5
@@ -1,19 +1,19 @@
1
- import { j as n, J as A } from "./@vendor-BG3OpQCq.js";
1
+ import { j as n, J as A } from "./@vendor-RA_nL1Ml.js";
2
2
  import E, { forwardRef as $ } 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 J, d as w } from "./@code-editor-BDxmatp-.js";
5
+ import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-C3MBFLv8.js";
6
6
  import M, { components as O } from "react-select";
7
- import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as U, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as V, TranslatableString as q, titleId as K, canExpand as Y, deepEquals as z } from "@rjsf/utils";
8
- import { ReactComponent as G } from "./assets/ic-chevron-down.fc70d7a7.svg";
9
- import { ReactComponent as Q } from "./assets/ic-add.cfaa779b.svg";
10
- import { ReactComponent as X } from "./assets/ic-cross.01e03666.svg";
11
- import { ReactComponent as Z } from "./assets/ic-warning.10bcf8bd.svg";
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
+ import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
9
+ import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
10
+ import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
11
+ import { ReactComponent as ee } from "./assets/ic-warning.10bcf8bd.svg";
12
12
  import './assets/@common-rjsf.css';const N = {
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
- }, ee = "Key not available", Ee = {
16
+ }, te = "Key not available", $e = {
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 || ee }) }),
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 }) }),
35
35
  s && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
36
36
  ] }),
37
37
  o
@@ -51,7 +51,7 @@ import './assets/@common-rjsf.css';const N = {
51
51
  registry: i
52
52
  }
53
53
  );
54
- }, te = ({
54
+ }, ne = ({
55
55
  canAdd: t,
56
56
  className: e,
57
57
  disabled: s,
@@ -99,7 +99,7 @@ import './assets/@common-rjsf.css';const N = {
99
99
  registry: l
100
100
  }
101
101
  ) }) });
102
- }, ne = ({
102
+ }, se = ({
103
103
  children: t,
104
104
  disabled: e,
105
105
  hasToolbar: s,
@@ -124,9 +124,9 @@ import './assets/@common-rjsf.css';const N = {
124
124
  ) })
125
125
  ] });
126
126
  }, {
127
- templates: { BaseInputTemplate: se }
128
- } = k(), oe = ({ placeholder: t, ...e }) => /* @__PURE__ */ n.jsx(
129
- se,
127
+ templates: { BaseInputTemplate: oe }
128
+ } = k(), re = ({ placeholder: t, ...e }) => /* @__PURE__ */ n.jsx(
129
+ oe,
130
130
  {
131
131
  placeholder: t || N.INPUT,
132
132
  ...e,
@@ -149,13 +149,13 @@ import './assets/@common-rjsf.css';const N = {
149
149
  className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor dc__mxw-250",
150
150
  title: "Add",
151
151
  children: [
152
- /* @__PURE__ */ n.jsx(Q, { className: "icon-dim-16 fcb-5" }),
152
+ /* @__PURE__ */ n.jsx(X, { className: "icon-dim-16 fcb-5" }),
153
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 }) })
154
154
  ]
155
155
  }
156
156
  ) });
157
- }, re = ({ icon: t, iconType: e, registry: s, uiSchema: o, ...r }) => /* @__PURE__ */ n.jsx("button", { ...r, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(X, { className: "icon-dim-16 fcn-6" }) }), ae = ({ uiSchema: t }) => {
158
- const { submitText: e, norender: s, props: o = {} } = U(t);
157
+ }, ae = ({ icon: t, iconType: e, registry: s, uiSchema: o, ...r }) => /* @__PURE__ */ n.jsx("button", { ...r, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(Z, { className: "icon-dim-16 fcn-6" }) }), ie = ({ uiSchema: t }) => {
158
+ const { submitText: e, norender: s, props: o = {} } = W(t);
159
159
  return s ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...o, className: `cta ${o.className || ""}`, children: e }) });
160
160
  }, T = ({
161
161
  id: t,
@@ -165,7 +165,7 @@ import './assets/@common-rjsf.css';const N = {
165
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
166
  /* @__PURE__ */ n.jsx(y, { 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
- ] }), ie = (t) => {
168
+ ] }), le = (t) => {
169
169
  const {
170
170
  id: e,
171
171
  label: s,
@@ -213,23 +213,23 @@ import './assets/@common-rjsf.css';const N = {
213
213
  r
214
214
  ] })
215
215
  );
216
- }, le = ({ errors: t = [], idSchema: e }) => {
217
- const s = W(e);
216
+ }, ce = ({ errors: t = [], idSchema: e }) => {
217
+ const s = V(e);
218
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: [
219
219
  /* @__PURE__ */ n.jsx("span", {}),
220
220
  /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
221
- /* @__PURE__ */ n.jsx(Z, { className: "form__icon form__icon--error" }),
221
+ /* @__PURE__ */ n.jsx(ee, { className: "form__icon form__icon--error" }),
222
222
  o
223
223
  ] })
224
224
  ] }, r)) });
225
- }, ce = (t, e) => {
225
+ }, de = (t, e) => {
226
226
  switch (t) {
227
- case q.NewStringDefault:
227
+ case K.NewStringDefault:
228
228
  return "";
229
229
  default:
230
- return V(t, e);
230
+ return q(t, e);
231
231
  }
232
- }, de = (t = {}) => ({
232
+ }, pe = (t = {}) => ({
233
233
  menuList: (e) => ({
234
234
  ...e,
235
235
  paddingTop: 0,
@@ -283,7 +283,7 @@ import './assets/@common-rjsf.css';const N = {
283
283
  fontSize: "12px"
284
284
  }),
285
285
  ...t
286
- }), $e = (t) => {
286
+ }), Le = (t) => {
287
287
  try {
288
288
  const e = new URL(t).origin === window.location.origin;
289
289
  return {
@@ -299,7 +299,7 @@ import './assets/@common-rjsf.css';const N = {
299
299
  url: `${t} (Invalid URL)`
300
300
  };
301
301
  }
302
- }, Le = (t) => {
302
+ }, ke = (t) => {
303
303
  const e = typeof t;
304
304
  switch (e) {
305
305
  case "boolean":
@@ -319,7 +319,7 @@ import './assets/@common-rjsf.css';const N = {
319
319
  }, F = {
320
320
  value: !1,
321
321
  path: ""
322
- }, pe = (t) => {
322
+ }, me = (t) => {
323
323
  if (!t)
324
324
  return null;
325
325
  const e = structuredClone(t);
@@ -333,7 +333,7 @@ import './assets/@common-rjsf.css';const N = {
333
333
  value: e.value,
334
334
  path: v(e.path)
335
335
  } : structuredClone(F);
336
- }, me = ({
336
+ }, ue = ({
337
337
  disabled: t,
338
338
  formData: e,
339
339
  idSchema: s,
@@ -347,7 +347,7 @@ import './assets/@common-rjsf.css';const N = {
347
347
  uiSchema: f,
348
348
  formContext: p
349
349
  }) => {
350
- const u = !!l.additionalProperties, m = Y(l, f, e) && /* @__PURE__ */ n.jsx(
350
+ const u = !!l.additionalProperties, m = z(l, f, e) && /* @__PURE__ */ n.jsx(
351
351
  R,
352
352
  {
353
353
  label: d,
@@ -362,7 +362,7 @@ import './assets/@common-rjsf.css';const N = {
362
362
  if (!g)
363
363
  return !0;
364
364
  try {
365
- const h = pe(g);
365
+ const h = me(g);
366
366
  if (!h.path)
367
367
  throw new Error("Empty path property of hidden descriptor field");
368
368
  if (!h.path.match(/^\/\w+(\/\w+)*$/g))
@@ -371,7 +371,7 @@ import './assets/@common-rjsf.css';const N = {
371
371
  path: H(h.path),
372
372
  json: p
373
373
  })?.[0];
374
- return !(_ === void 0 || z(h.value, _));
374
+ return !(_ === void 0 || G(h.value, _));
375
375
  } catch {
376
376
  return !0;
377
377
  }
@@ -393,13 +393,13 @@ import './assets/@common-rjsf.css';const N = {
393
393
  j,
394
394
  m
395
395
  ] });
396
- }, ue = (t) => {
396
+ }, he = (t) => {
397
397
  const { idSchema: e, registry: s, required: o, schema: r, title: a, uiSchema: i, description: c } = t, l = !!r.additionalProperties, d = a && !l;
398
398
  return /* @__PURE__ */ n.jsxs("fieldset", { id: e.$id, children: [
399
399
  d && /* @__PURE__ */ n.jsx(
400
400
  T,
401
401
  {
402
- id: K(e),
402
+ id: Y(e),
403
403
  title: a,
404
404
  required: o,
405
405
  schema: r,
@@ -412,11 +412,11 @@ import './assets/@common-rjsf.css';const N = {
412
412
  "div",
413
413
  {
414
414
  className: `${r.properties && !l && e.$id !== "root" ? "dc__border-left pl-12" : ""} flexbox-col dc__gap-8`,
415
- children: /* @__PURE__ */ n.jsx(me, { ...t })
415
+ children: /* @__PURE__ */ n.jsx(ue, { ...t })
416
416
  }
417
417
  )
418
418
  ] });
419
- }, he = ({
419
+ }, fe = ({
420
420
  id: t,
421
421
  disabled: e,
422
422
  label: s,
@@ -452,7 +452,7 @@ import './assets/@common-rjsf.css';const N = {
452
452
  }
453
453
  ) })
454
454
  ] }) : c });
455
- }, fe = ({
455
+ }, xe = ({
456
456
  id: t,
457
457
  onChange: e,
458
458
  value: s,
@@ -466,10 +466,10 @@ import './assets/@common-rjsf.css';const N = {
466
466
  const d = (p, u) => {
467
467
  const { id: m, checked: j } = p.target;
468
468
  u === "blur" ? c(m, j) : u === "focus" && l(m, j);
469
- }, f = typeof s > "u" ? !1 : s;
469
+ }, f = J(s) ? !1 : s;
470
470
  return /* @__PURE__ */ n.jsxs("div", { children: [
471
471
  /* @__PURE__ */ n.jsx(
472
- J,
472
+ U,
473
473
  {
474
474
  selected: f,
475
475
  onSelect: e,
@@ -485,7 +485,7 @@ import './assets/@common-rjsf.css';const N = {
485
485
  ),
486
486
  /* @__PURE__ */ n.jsx("span", { className: "dc__capitalize ml-8", children: f.toString() })
487
487
  ] });
488
- }, C = de(), xe = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(O.MenuList, { ...e, children: Array.isArray(t) ? t.slice(0, 20) : t }), ge = (t) => /* @__PURE__ */ n.jsx(O.DropdownIndicator, { ...t, children: /* @__PURE__ */ n.jsx(G, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), je = (t) => {
488
+ }, C = pe(), ge = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(O.MenuList, { ...e, children: Array.isArray(t) ? t.slice(0, 20) : t }), je = (t) => /* @__PURE__ */ n.jsx(O.DropdownIndicator, { ...t, children: /* @__PURE__ */ n.jsx(Q, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), _e = (t) => {
489
489
  const {
490
490
  id: e,
491
491
  multiple: s = !1,
@@ -525,47 +525,47 @@ import './assets/@common-rjsf.css';const N = {
525
525
  },
526
526
  components: {
527
527
  IndicatorSeparator: null,
528
- DropdownIndicator: ge,
529
- MenuList: xe
528
+ DropdownIndicator: je,
529
+ MenuList: ge
530
530
  },
531
531
  menuPlacement: "auto"
532
532
  }
533
533
  );
534
- }, _e = {
535
- CheckboxWidget: fe,
536
- SelectWidget: je
537
534
  }, be = {
538
- ArrayFieldItemTemplate: ne,
539
- ArrayFieldTemplate: te,
540
- BaseInputTemplate: oe,
541
- ButtonTemplates: { AddButton: R, RemoveButton: re, SubmitButton: ae },
542
- FieldTemplate: ie,
543
- FieldErrorTemplate: le,
544
- ObjectFieldTemplate: ue,
535
+ CheckboxWidget: xe,
536
+ SelectWidget: _e
537
+ }, ve = {
538
+ ArrayFieldItemTemplate: se,
539
+ ArrayFieldTemplate: ne,
540
+ BaseInputTemplate: re,
541
+ ButtonTemplates: { AddButton: R, RemoveButton: ae, SubmitButton: ie },
542
+ FieldTemplate: le,
543
+ FieldErrorTemplate: ce,
544
+ ObjectFieldTemplate: he,
545
545
  TitleFieldTemplate: T,
546
- WrapIfAdditionalTemplate: he
547
- }, ve = L, ye = D, ke = $((t, e) => /* @__PURE__ */ n.jsx(
548
- ve,
546
+ WrapIfAdditionalTemplate: fe
547
+ }, ye = L, Ne = D, De = $((t, e) => /* @__PURE__ */ n.jsx(
548
+ ye,
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: ye,
555
+ validator: Ne,
556
556
  templates: {
557
- ...be,
557
+ ...ve,
558
558
  ...t.templates
559
559
  },
560
560
  formContext: t.formData,
561
- widgets: { ..._e, ...t.widgets },
562
- translateString: ce,
561
+ widgets: { ...be, ...t.widgets },
562
+ translateString: de,
563
563
  ref: e
564
564
  }
565
565
  ));
566
566
  export {
567
- Ee as H,
568
- ke as R,
569
- $e as a,
570
- Le as g
567
+ $e as H,
568
+ De as R,
569
+ Le as a,
570
+ ke as g
571
571
  };
@@ -1,4 +1,4 @@
1
- import { g as ct, l as m, n as I, o as Yr, p as we, q as T, r as at, t as zt, v as ae, w as Xe, x as J, y as kr, z as Qn, B as Xr, C as ti, D as ei, E as ri, F as ni, G as ii, H as Wr, I as ai, K as oi, L as si, M as ui, N as li, O as fi, P as ci, S as yt, T as k, U as pe, V as Zr, W as vi, X as di, Y as W, Z as $, $ as pi, a0 as he, a1 as Dt, a2 as hi, a3 as mi, a4 as $r, a5 as Mt, a6 as O, a7 as me, a8 as gi, a9 as oe, aa as yi } from "./@vendor-BG3OpQCq.js";
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, D as ti, E as ei, F as ri, G as ni, H as ii, I as Wr, K as ai, L as oi, M as si, N as ui, O as li, P as fi, S as ci, T as yt, U as k, V as pe, W as Zr, X as vi, Y as di, Z as W, $, a0 as pi, a1 as he, a2 as Dt, a3 as hi, a4 as mi, a5 as $r, a6 as Mt, a7 as O, a8 as me, a9 as gi, aa as oe, ab as yi } from "./@vendor-RA_nL1Ml.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) {
@@ -1,5 +1,5 @@
1
1
  import Te from "react";
2
- import { ab as xe, ac as we, ad as ve, ae as lr, af as Le, ag as Je, ah as tt, ai as at, aj as et, ak as lt, al as rt, am as Xn, an as sr, ao as Jn, ap as bt, aq as Go, ar as dr, as as eo, at as to, au as ao, av as $o, aw as Yo, ax as ur, ay as Fe, az as Rt, aA as Uo, aB as cr, aC as Qo, aD as Cr, aE as Zo, aF as Xo, aG as Jo } from "./@vendor-BG3OpQCq.js";
2
+ import { ac as xe, ad as we, ae as ve, af as lr, ag as Le, ah as Je, ai as tt, aj as at, ak as et, al as lt, am as rt, an as Xn, ao as sr, ap as Jn, aq as bt, ar as Go, as as dr, at as eo, au as to, av as ao, aw as $o, ax as Yo, ay as ur, az as Fe, aA as Rt, aB as Uo, aC as cr, aD as Qo, aE as Cr, aF as Zo, aG as Xo, aH as Jo } from "./@vendor-RA_nL1Ml.js";
3
3
  import { r as Ne, g as ei, h as ti } from "./@moment-C_WeV3Af.js";
4
4
  import './assets/@react-dates.css';var ro = {}, Wt = {}, jt = {}, Mr;
5
5
  function Ve() {
@@ -1,4 +1,4 @@
1
- import { aH as Gt, aI as xt, aJ as Bt, aK as v, aL as U, aM as xe, ax as re, aN as h, aF as f, aO as Y, aP as Ft, aQ as je, aR as Vt, aS as Et, aT as yt, aU as Wt, aV as Xt, aW as ne } from "./@vendor-BG3OpQCq.js";
1
+ import { aI as Gt, aJ as xt, aK as Bt, aL as v, aM as U, aN as xe, ay as re, aO as h, aG as f, aP as Y, aQ as Ft, aR as je, aS as Vt, aT as Et, aU as yt, aV as Wt, aW as Xt, aX as ne } from "./@vendor-RA_nL1Ml.js";
2
2
  import * as y from "react";
3
3
  import { useContext as Zt, useRef as j, useState as ee, createContext as Nt, useMemo as q, useCallback as D, Component as St, Fragment as Be, useEffect as Ue, forwardRef as Rt } from "react";
4
4
  import { createPortal as Ht } from "react-dom";