@devtron-labs/devtron-fe-common-lib 1.4.9-beta-2 → 1.5.0

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 (63) hide show
  1. package/dist/{@code-editor-yThkReqW.js → @code-editor-BhKgnbkm.js} +6476 -6831
  2. package/dist/{@common-rjsf-CewCWcY8.js → @common-rjsf-DIkXvOXb.js} +32 -44
  3. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +7 -7
  4. package/dist/Common/CodeEditor/types.d.ts +10 -9
  5. package/dist/Common/MultiSelectCustomization.d.ts +0 -2
  6. package/dist/Common/RJSF/utils.d.ts +0 -3
  7. package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
  8. package/dist/Common/SegmentedControl/types.d.ts +1 -7
  9. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  10. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  11. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +5 -4
  12. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -2
  13. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -5
  14. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +1 -0
  15. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -0
  16. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
  17. package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
  18. package/dist/Shared/Components/Plugin/types.d.ts +2 -2
  19. package/dist/Shared/Components/Plugin/utils.d.ts +16 -0
  20. package/dist/Shared/Components/ReactSelect/constants.d.ts +0 -1
  21. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -6
  22. package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityCard.d.ts +1 -1
  23. package/dist/Shared/Components/Security/SecurityDetailsCards/types.d.ts +2 -1
  24. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +8 -8
  25. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  26. package/dist/Shared/Components/Security/utils.d.ts +3 -0
  27. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  28. package/dist/Shared/Components/index.d.ts +0 -1
  29. package/dist/Shared/Providers/index.d.ts +0 -1
  30. package/dist/Shared/Services/common.service.d.ts +0 -1
  31. package/dist/Shared/types.d.ts +0 -17
  32. package/dist/assets/@code-editor.css +1 -1
  33. package/dist/assets/{ic-nav-rocket.433c9706.svg → ic-nav-rocket.9e50bb61.svg} +1 -1
  34. package/dist/assets/{ic-rotate-devtron.5a8363d8.svg → ic-rotate-devtron.200e165b.svg} +86 -87
  35. package/dist/index.d.ts +0 -6
  36. package/dist/index.js +572 -574
  37. package/package.json +1 -1
  38. package/dist/Common/CodeEditor/utils.d.ts +0 -3
  39. package/dist/Common/SegmentedControl/constants.d.ts +0 -2
  40. package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +0 -3
  41. package/dist/Shared/Components/ThemeSwitcher/constants.d.ts +0 -6
  42. package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
  43. package/dist/Shared/Components/ThemeSwitcher/types.d.ts +0 -3
  44. package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +0 -3
  45. package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +0 -3
  46. package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +0 -54
  47. package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +0 -1
  48. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +0 -28
  49. package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +0 -14
  50. package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +0 -3
  51. package/dist/Shared/Providers/ThemeProvider/constants.d.ts +0 -2
  52. package/dist/Shared/Providers/ThemeProvider/index.d.ts +0 -2
  53. package/dist/Shared/Providers/ThemeProvider/types.d.ts +0 -33
  54. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +0 -4
  55. package/dist/assets/change-source.abc9d12f.png +0 -0
  56. package/dist/assets/ic-laptop.485e21b4.svg +0 -3
  57. package/dist/assets/ic-moon.17d37c40.svg +0 -3
  58. package/dist/assets/ic-source-build.7d776b10.svg +0 -22
  59. package/dist/assets/ic-source-job.a40f06cf.svg +0 -26
  60. package/dist/assets/ic-source-linked-build.f24ecbed.svg +0 -24
  61. package/dist/assets/ic-source-webhook.ee64a29a.svg +0 -22
  62. package/dist/assets/ic-sun.33e8214b.svg +0 -3
  63. package/dist/assets/select-image-source.fb911f42.png +0 -0
@@ -1,19 +1,19 @@
1
- import { j as n, J as A } from "./@vendor-CwAQS8iU.js";
2
- import E, { forwardRef as $ } from "react";
1
+ import { j as n, J as $ } from "./@vendor-CwAQS8iU.js";
2
+ import A, { forwardRef as E } 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 U, i as J, d as w } from "./@code-editor-yThkReqW.js";
5
+ import { T as N, c as H, a as U, i as J, d as w } from "./@code-editor-BhKgnbkm.js";
6
6
  import M, { components as O } from "react-select";
7
- import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as V, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as q, TranslatableString as K, titleId as Y, canExpand as z, deepEquals as G } from "@rjsf/utils";
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
8
  import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
9
9
  import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
10
10
  import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
11
11
  import { ReactComponent as ee } from "./assets/ic-warning.10bcf8bd.svg";
12
- import './assets/@common-rjsf.css';const N = {
12
+ import './assets/@common-rjsf.css';const y = {
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
- }, te = "Key not available", $e = {
16
+ }, te = "Key not available", Ee = {
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 || te }) }),
34
+ /* @__PURE__ */ n.jsx(N, { 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
@@ -128,7 +128,7 @@ import './assets/@common-rjsf.css';const N = {
128
128
  } = k(), re = ({ placeholder: t, ...e }) => /* @__PURE__ */ n.jsx(
129
129
  oe,
130
130
  {
131
- placeholder: t || N.INPUT,
131
+ placeholder: t || y.INPUT,
132
132
  ...e,
133
133
  className: "form__input cn-9 fs-13 lh-20 fw-4"
134
134
  }
@@ -150,20 +150,20 @@ import './assets/@common-rjsf.css';const N = {
150
150
  title: "Add",
151
151
  children: [
152
152
  /* @__PURE__ */ n.jsx(X, { className: "icon-dim-16 fcb-5" }),
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 }) })
153
+ /* @__PURE__ */ n.jsx(N, { 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
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 = {} } = V(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,
162
162
  title: e,
163
163
  required: s,
164
164
  description: o
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
- /* @__PURE__ */ n.jsx(y, { alwaysShowTippyOnHover: !!o, content: o, children: /* @__PURE__ */ n.jsx("span", { className: `${o ? "text-underline-dashed-300" : ""}`, children: e }) }),
165
+ }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: t, children: [
166
+ /* @__PURE__ */ n.jsx(N, { 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
168
  ] }), le = (t) => {
169
169
  const {
@@ -214,8 +214,8 @@ import './assets/@common-rjsf.css';const N = {
214
214
  ] })
215
215
  );
216
216
  }, ce = ({ errors: t = [], idSchema: e }) => {
217
- const s = W(e);
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: [
217
+ const s = V(e);
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(A.Fragment, { children: [
219
219
  /* @__PURE__ */ n.jsx("span", {}),
220
220
  /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
221
221
  /* @__PURE__ */ n.jsx(ee, { className: "form__icon form__icon--error" }),
@@ -240,14 +240,14 @@ import './assets/@common-rjsf.css';const N = {
240
240
  ...e,
241
241
  minHeight: "32px",
242
242
  boxShadow: "none",
243
- backgroundColor: "var(--bg-secondary)",
243
+ backgroundColor: "var(--N50)",
244
244
  border: s.isFocused ? "1px solid var(--B500)" : "1px solid var(--N200)",
245
245
  cursor: "pointer"
246
246
  }),
247
247
  option: (e, s) => ({
248
248
  ...e,
249
249
  color: "var(--N900)",
250
- backgroundColor: s.isFocused ? "var(--N100)" : "var(--bg-primary)",
250
+ backgroundColor: s.isFocused ? "var(--N100)" : "white",
251
251
  padding: "10px 12px",
252
252
  cursor: "pointer"
253
253
  }),
@@ -276,24 +276,12 @@ import './assets/@common-rjsf.css';const N = {
276
276
  ...e,
277
277
  border: "1px solid var(--N200)",
278
278
  borderRadius: "4px",
279
- background: "var(--bg-primary)",
279
+ background: "white",
280
280
  height: "28px",
281
281
  marginRight: "8px",
282
282
  padding: "2px",
283
283
  fontSize: "12px"
284
284
  }),
285
- singleValue: (e) => ({
286
- ...e,
287
- color: "var(--N900)"
288
- }),
289
- input: (e) => ({
290
- ...e,
291
- color: "var(--N900)"
292
- }),
293
- menu: (e) => ({
294
- ...e,
295
- backgroundColor: "var(--bg-menu)"
296
- }),
297
285
  ...t
298
286
  }), Le = (t) => {
299
287
  try {
@@ -328,7 +316,7 @@ import './assets/@common-rjsf.css';const N = {
328
316
  return "";
329
317
  const e = t.trim();
330
318
  return e.match(/^\w+(\/\w+)*$/g) ? `/${e}` : e.match(/^\w+(\.\w+)*$/g) ? `/${e.replaceAll(/\./g, "/")}` : e;
331
- }, C = {
319
+ }, F = {
332
320
  value: !1,
333
321
  path: ""
334
322
  }, me = (t) => {
@@ -338,13 +326,13 @@ import './assets/@common-rjsf.css';const N = {
338
326
  return typeof e == "string" ? {
339
327
  value: !0,
340
328
  path: v(e)
341
- } : typeof e != "object" ? structuredClone(C) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
329
+ } : typeof e != "object" ? structuredClone(F) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
342
330
  value: e.condition,
343
331
  path: v(e.value)
344
332
  } : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
345
333
  value: e.value,
346
334
  path: v(e.path)
347
- } : structuredClone(C);
335
+ } : structuredClone(F);
348
336
  }, ue = ({
349
337
  disabled: t,
350
338
  formData: e,
@@ -379,7 +367,7 @@ import './assets/@common-rjsf.css';const N = {
379
367
  throw new Error("Empty path property of hidden descriptor field");
380
368
  if (!h.path.match(/^\/\w+(\/\w+)*$/g))
381
369
  throw new Error("Provided path is not a valid JSON pointer");
382
- const _ = A({
370
+ const _ = $({
383
371
  path: H(h.path),
384
372
  json: p
385
373
  })?.[0];
@@ -423,7 +411,7 @@ import './assets/@common-rjsf.css';const N = {
423
411
  /* @__PURE__ */ n.jsx(
424
412
  "div",
425
413
  {
426
- className: `${r.properties && !l && e.$id !== "root" ? "dc__border-left pl-12" : ""} flexbox-col dc__gap-8`,
414
+ className: `${r.properties && !l && e.$id !== "root" ? "dc__border-left pl-12" : ""} ${e.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
427
415
  children: /* @__PURE__ */ n.jsx(ue, { ...t })
428
416
  }
429
417
  )
@@ -449,7 +437,7 @@ import './assets/@common-rjsf.css';const N = {
449
437
  className: "form__input cn-9 fs-13 lh-20 fw-4",
450
438
  id: `${t}-key`,
451
439
  onBlur: (m) => o(m.target.value),
452
- placeholder: N.OBJECT_KEY,
440
+ placeholder: y.OBJECT_KEY,
453
441
  defaultValue: s
454
442
  }
455
443
  ) }),
@@ -497,7 +485,7 @@ import './assets/@common-rjsf.css';const N = {
497
485
  ),
498
486
  /* @__PURE__ */ n.jsx("span", { className: "dc__capitalize ml-8", children: f.toString() })
499
487
  ] });
500
- }, F = 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) => {
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) => {
501
489
  const {
502
490
  id: e,
503
491
  multiple: s = !1,
@@ -525,14 +513,14 @@ import './assets/@common-rjsf.css';const N = {
525
513
  options: u,
526
514
  onBlur: () => d(e, r),
527
515
  onFocus: () => f(e, r),
528
- placeholder: p || N.SELECT,
516
+ placeholder: p || y.SELECT,
529
517
  isDisabled: a || i,
530
518
  styles: {
531
- ...F,
519
+ ...C,
532
520
  control: (g) => ({
533
521
  ...g,
534
- ...F.control,
535
- backgroundColor: "var(--bg-secondary)"
522
+ ...C.control,
523
+ backgroundColor: "var(--N50)"
536
524
  })
537
525
  },
538
526
  components: {
@@ -556,15 +544,15 @@ import './assets/@common-rjsf.css';const N = {
556
544
  ObjectFieldTemplate: he,
557
545
  TitleFieldTemplate: T,
558
546
  WrapIfAdditionalTemplate: fe
559
- }, ye = L, Ne = D, De = $((t, e) => /* @__PURE__ */ n.jsx(
560
- ye,
547
+ }, Ne = L, ye = D, De = E((t, e) => /* @__PURE__ */ n.jsx(
548
+ Ne,
561
549
  {
562
550
  noHtml5Validate: !0,
563
551
  showErrorList: !1,
564
552
  autoComplete: "off",
565
553
  ...t,
566
554
  className: `rjsf-form-template__container ${t.className || ""}`,
567
- validator: Ne,
555
+ validator: ye,
568
556
  templates: {
569
557
  ...ve,
570
558
  ...t.templates
@@ -576,7 +564,7 @@ import './assets/@common-rjsf.css';const N = {
576
564
  }
577
565
  ));
578
566
  export {
579
- $e as H,
567
+ Ee as H,
580
568
  De as R,
581
569
  Le as a,
582
570
  ke as g
@@ -1,16 +1,16 @@
1
1
  import { MODES } from '../Constants';
2
- import { Action, CodeEditorInitialValueType, CodeEditorState } from './types';
2
+ import { Action, CodeEditorInitialValueType, CodeEditorState, CodeEditorThemesKeys } from './types';
3
3
  export declare const CodeEditorReducer: (state: CodeEditorState, action: Action) => {
4
4
  mode: any;
5
5
  diffMode: boolean;
6
- theme: import('./types').CodeEditorThemesKeys;
6
+ theme: CodeEditorThemesKeys;
7
7
  code: string;
8
8
  defaultCode: string;
9
9
  noParsing: boolean;
10
10
  } | {
11
11
  diffMode: any;
12
12
  mode: MODES;
13
- theme: import('./types').CodeEditorThemesKeys;
13
+ theme: CodeEditorThemesKeys;
14
14
  code: string;
15
15
  defaultCode: string;
16
16
  noParsing: boolean;
@@ -25,24 +25,24 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
25
25
  code: any;
26
26
  mode: MODES;
27
27
  diffMode: boolean;
28
- theme: import('./types').CodeEditorThemesKeys;
28
+ theme: CodeEditorThemesKeys;
29
29
  defaultCode: string;
30
30
  noParsing: boolean;
31
31
  } | {
32
32
  defaultCode: any;
33
33
  mode: MODES;
34
34
  diffMode: boolean;
35
- theme: import('./types').CodeEditorThemesKeys;
35
+ theme: CodeEditorThemesKeys;
36
36
  code: string;
37
37
  noParsing: boolean;
38
38
  } | {
39
39
  height: any;
40
40
  mode: MODES;
41
41
  diffMode: boolean;
42
- theme: import('./types').CodeEditorThemesKeys;
42
+ theme: CodeEditorThemesKeys;
43
43
  code: string;
44
44
  defaultCode: string;
45
45
  noParsing: boolean;
46
46
  };
47
47
  export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
48
- export declare const initialState: ({ mode, theme, value, defaultValue, diffView, noParsing, tabSize, appTheme, }: CodeEditorInitialValueType) => CodeEditorState;
48
+ export declare const initialState: ({ mode, theme, value, defaultValue, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
@@ -1,15 +1,9 @@
1
- import { AppThemeType } from '../../Shared/Providers';
2
1
  import { MODES } from '../Constants';
3
2
  export interface InformationBarProps {
4
3
  text: string;
5
4
  className?: string;
6
5
  children?: React.ReactNode;
7
6
  }
8
- export declare enum CodeEditorThemesKeys {
9
- vsDarkDT = "vs-dark--dt",
10
- vs = "vs",
11
- networkStatusInterface = "network-status-interface"
12
- }
13
7
  interface CodeEditorBaseInterface {
14
8
  value?: string;
15
9
  lineDecorationsWidth?: number;
@@ -28,7 +22,7 @@ interface CodeEditorBaseInterface {
28
22
  diffView?: boolean;
29
23
  loading?: boolean;
30
24
  customLoader?: JSX.Element;
31
- theme?: CodeEditorThemesKeys;
25
+ theme?: string;
32
26
  original?: string;
33
27
  focus?: boolean;
34
28
  validatorSchema?: any;
@@ -74,14 +68,21 @@ export interface Action {
74
68
  type: ActionTypes;
75
69
  value: any;
76
70
  }
77
- export interface CodeEditorInitialValueType extends Pick<CodeEditorBaseInterface, 'theme'> {
71
+ export declare enum CodeEditorThemesKeys {
72
+ vsDarkDT = "vs-dark--dt",
73
+ deleteDraft = "delete-draft",
74
+ unpublished = "unpublished",
75
+ vs = "vs",
76
+ networkStatusInterface = "network-status-interface"
77
+ }
78
+ export interface CodeEditorInitialValueType {
78
79
  mode: string;
79
80
  diffView: boolean;
81
+ theme?: string;
80
82
  value: string;
81
83
  defaultValue: string;
82
84
  noParsing?: boolean;
83
85
  tabSize: number;
84
- appTheme: AppThemeType;
85
86
  }
86
87
  export interface CodeEditorState {
87
88
  mode: MODES;
@@ -23,8 +23,6 @@ export declare const multiSelectStyles: {
23
23
  option: (base: any, state: any) => any;
24
24
  container: (base: any, state: any) => any;
25
25
  valueContainer: (base: any, state: any) => any;
26
- singleValue: (base: any) => any;
27
- input: (base: any) => any;
28
26
  };
29
27
  export interface CustomSelect {
30
28
  sortSelected?: boolean;
@@ -13,9 +13,6 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
13
13
  loadingMessage: (base: any) => any;
14
14
  noOptionsMessage: (base: any) => any;
15
15
  multiValue: (base: any) => any;
16
- singleValue: (base: any) => any;
17
- input: (base: any) => any;
18
- menu: (base: any) => any;
19
16
  };
20
17
  /**
21
18
  * Returns the redirection props for a url
@@ -1,3 +1,3 @@
1
1
  import { SegmentedControlProps } from './types';
2
- declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, }: SegmentedControlProps) => JSX.Element;
2
+ declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, }: SegmentedControlProps) => JSX.Element;
3
3
  export default SegmentedControl;
@@ -1,12 +1,10 @@
1
1
  import { OptionType } from '../Types';
2
- import { ComponentSizeType } from '../../Shared/constants';
3
- import { ReactNode } from 'react';
4
2
  export declare enum SegmentedControlVariant {
5
3
  GRAY_ON_WHITE = "gui-yaml-switch",
6
4
  WHITE_ON_GRAY = "gui-yaml-switch-window-bg"
7
5
  }
8
6
  export interface SegmentedControlProps {
9
- tabs: OptionType<string, ReactNode>[];
7
+ tabs: OptionType[];
10
8
  initialTab: string;
11
9
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
12
10
  name: string;
@@ -14,8 +12,4 @@ export interface SegmentedControlProps {
14
12
  disabled?: boolean;
15
13
  rootClassName?: string;
16
14
  variant?: SegmentedControlVariant;
17
- /**
18
- * @default ComponentSizeType.medium
19
- */
20
- size?: ComponentSizeType.medium | ComponentSizeType.large;
21
15
  }
@@ -1,2 +1,2 @@
1
1
  import { DeploymentHistoryDiffDetailedProps } from './types';
2
- export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments: initialPipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, triggerHistory: initialTriggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments: initialPipelineDeployments, wfrId, urlFilters, convertVariables, setConvertVariables, triggerHistory: initialTriggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DeploymentTemplateHistoryType } from '../types';
2
- declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName, sortingConfig, codeEditorKey, }: DeploymentTemplateHistoryType) => JSX.Element;
2
+ declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, codeEditorKey, }: DeploymentTemplateHistoryType) => JSX.Element;
3
3
  export default DeploymentHistoryDiffView;
@@ -1,7 +1,11 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
3
3
  import { EnvResourceType } from '../../../Services';
4
+ import { UseUrlFiltersReturnType } from '../../../../Common/Hooks';
4
5
  import { History, HistoryLogsProps } from '../types';
6
+ export interface DeploymentHistoryConfigDiffQueryParams {
7
+ compareWfrId: number;
8
+ }
5
9
  export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
6
10
  appName: string;
7
11
  envName: string;
@@ -12,14 +16,11 @@ export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryL
12
16
  }
13
17
  export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'triggerHistory'>> & {
14
18
  pipelineDeployments: History[];
15
- previousWfrId: number;
16
19
  convertVariables: boolean;
17
20
  setConvertVariables: Dispatch<SetStateAction<boolean>>;
18
21
  isCompareDeploymentConfigNotAvailable?: boolean;
22
+ urlFilters: UseUrlFiltersReturnType<string, DeploymentHistoryConfigDiffQueryParams>;
19
23
  };
20
- export interface DeploymentHistoryConfigDiffQueryParams {
21
- compareWfrId: number;
22
- }
23
24
  export interface DeploymentHistoryConfigDiffRouteParams {
24
25
  appId: string;
25
26
  envId: string;
@@ -11,8 +11,6 @@ export declare const FILTER_STYLE: {
11
11
  option: (base: any, state: any) => any;
12
12
  container: (base: any, state: any) => any;
13
13
  valueContainer: (base: any, state: any) => any;
14
- singleValue: (base: any) => any;
15
- input: (base: any) => any;
16
14
  };
17
15
  export declare const GIT_BRANCH_NOT_CONFIGURED = "Not Configured";
18
16
  export declare const DEFAULT_GIT_BRANCH_VALUE = "--";
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties, ReactElement } from 'react';
2
2
  import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
3
- import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
3
+ import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
4
4
  import { DeploymentStageType } from '../../constants';
5
5
  import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
6
6
  export declare enum HistoryComponentType {
@@ -390,12 +390,10 @@ export interface DeploymentTemplateHistoryType {
390
390
  currentConfiguration: DeploymentHistoryDetail;
391
391
  baseTemplateConfiguration: DeploymentHistoryDetail;
392
392
  previousConfigAvailable: boolean;
393
+ isUnpublished?: boolean;
394
+ isDeleteDraft?: boolean;
393
395
  rootClassName?: string;
394
396
  codeEditorKey?: React.Key;
395
- sortingConfig?: {
396
- sortBy: string;
397
- sortOrder: SortingOrder;
398
- };
399
397
  }
400
398
  export interface DeploymentHistoryDetailRes extends ResponseType {
401
399
  result?: DeploymentHistoryDetail;
@@ -4,3 +4,4 @@ export declare const diffStateTextMap: Record<DeploymentConfigDiffState, string>
4
4
  export declare const diffStateIconMap: Record<DeploymentConfigDiffState, FunctionComponent<SVGProps<SVGSVGElement>>>;
5
5
  export declare const diffStateTooltipTextMap: Record<DeploymentConfigDiffState, string>;
6
6
  export declare const diffStateTextColorMap: Record<DeploymentConfigDiffState, `c${string}`>;
7
+ export declare const DEPLOYMENT_CONFIG_DIFF_SORT_KEY = "sort-config";
@@ -103,11 +103,13 @@ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView e
103
103
  compareList: ManifestTemplateDTO;
104
104
  compareToTemplateOptions?: never;
105
105
  compareWithTemplateOptions?: never;
106
+ sortingConfig?: never;
106
107
  } : {
107
108
  currentList: AppEnvDeploymentConfigDTO;
108
109
  compareList: AppEnvDeploymentConfigDTO;
109
110
  compareToTemplateOptions?: TemplateListDTO[];
110
111
  compareWithTemplateOptions?: TemplateListDTO[];
112
+ sortingConfig?: Pick<DeploymentConfigDiffProps['sortingConfig'], 'sortBy' | 'sortOrder'>;
111
113
  }) & {
112
114
  getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
113
115
  isManifestView?: IsManifestView;
@@ -29,7 +29,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
29
29
  *
30
30
  * @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
31
31
  */
32
- export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
32
+ export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, sortingConfig, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
33
33
  configList: DeploymentConfigDiffProps["configList"];
34
34
  navList: DeploymentConfigDiffProps["navList"];
35
35
  collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
@@ -1,3 +1,3 @@
1
1
  import { PluginTagSelectProps } from './types';
2
- declare const PluginTagSelect: ({ availableTags, handleUpdateSelectedTags, selectedTags, isLoading, tagsError, reloadTags, }: PluginTagSelectProps) => JSX.Element;
2
+ declare const PluginTagSelect: ({ availableTags, handleUpdateSelectedTags, selectedTags, isLoading, hasError, reloadTags, }: PluginTagSelectProps) => JSX.Element;
3
3
  export default PluginTagSelect;
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { ConsequenceType, ServerErrors, VariableType } from '../../../Common';
2
+ import { ConsequenceType, VariableType } from '../../../Common';
3
3
  import { BaseFilterQueryParams } from '../../types';
4
4
  import { ImageWithFallbackProps } from '../ImageWithFallback';
5
5
  import { getPluginStoreData } from './service';
@@ -149,7 +149,7 @@ export interface PluginListParamsType {
149
149
  export interface PluginTagSelectProps extends Pick<BasePluginListContainerProps, 'availableTags'> {
150
150
  selectedTags: PluginListContainerProps['parentFilters']['selectedTags'];
151
151
  isLoading: boolean;
152
- tagsError: ServerErrors;
152
+ hasError: boolean;
153
153
  reloadTags: () => void;
154
154
  handleUpdateSelectedTags: (tags: string[]) => void;
155
155
  }
@@ -1,5 +1,21 @@
1
+ import { OptionProps } from 'react-select';
2
+ import { OptionType } from '../../../Common/Types';
1
3
  import { ParentPluginDTO, PluginDataStoreType } from './types';
2
4
  export declare const parsePluginDetailsDTOIntoPluginStore: (pluginData: ParentPluginDTO[]) => PluginDataStoreType;
5
+ export declare const pluginTagSelectStyles: {
6
+ option: (base: any, state: any) => any;
7
+ container: (base: any, state: any) => any;
8
+ menuList: (base: any) => any;
9
+ control: (base: any, state: any) => any;
10
+ dropdownIndicator: (base: any, state: any) => any;
11
+ valueContainer: (base: any) => any;
12
+ loadingMessage: (base: any) => any;
13
+ noOptionsMessage: (base: any) => any;
14
+ placeholder: (base: any) => any;
15
+ group: (base: any) => any;
16
+ groupHeading: (base: any) => any;
17
+ };
18
+ export declare const PluginTagOption: (props: OptionProps<OptionType, true>) => JSX.Element;
3
19
  /**
4
20
  * @description This method takes the initial plugin data store and updates the keys with the target parent plugin store and plugin version store
5
21
  */
@@ -11,5 +11,4 @@ export declare const CommonGroupedDropdownStyles: {
11
11
  multiValue: (base: any) => any;
12
12
  multiValueLabel: (base: any) => any;
13
13
  placeholder: (base: any) => any;
14
- menu: (base: any) => any;
15
14
  };
@@ -12,9 +12,6 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
12
12
  placeholder: (base: any) => any;
13
13
  group: (base: any) => any;
14
14
  groupHeading: (base: any) => any;
15
- singleValue: (base: any) => any;
16
- input: (base: any) => any;
17
- menu: (base: any) => any;
18
15
  };
19
16
  export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
20
17
  export declare const SelectOption: (props: any) => JSX.Element;
@@ -32,9 +29,6 @@ export declare const commonSelectStyles: {
32
29
  placeholder: (base: any) => any;
33
30
  group: (base: any) => any;
34
31
  groupHeading: (base: any) => any;
35
- singleValue: (base: any) => any;
36
- input: (base: any) => any;
37
- menu: (base: any) => any;
38
32
  };
39
33
  export declare const MenuListWithApplyButton: ({ handleApplyFilter, ...props }: MenuListProps & {
40
34
  handleApplyFilter: () => void;
@@ -1,3 +1,3 @@
1
1
  import { SecurityCardProps } from './types';
2
- declare const SecurityCard: ({ category, subCategory, severityCount, handleCardClick }: SecurityCardProps) => JSX.Element;
2
+ declare const SecurityCard: ({ category, subCategory, severities, handleCardClick, scanFailed, }: SecurityCardProps) => JSX.Element;
3
3
  export default SecurityCard;
@@ -3,8 +3,9 @@ import { ScanCategories, ScanSubCategories } from '../types';
3
3
  export interface SecurityCardProps {
4
4
  category: ScanCategories;
5
5
  subCategory: ScanSubCategories;
6
- severityCount: Partial<Record<SeveritiesDTO, number>>;
6
+ severities: Partial<Record<SeveritiesDTO, number>>;
7
7
  handleCardClick: () => void;
8
+ scanFailed?: boolean;
8
9
  }
9
10
  export interface SecurityDetailsCardsProps extends Pick<SecurityModalPropsType, 'Sidebar'> {
10
11
  scanResult: ScanResultDTO;
@@ -19,35 +19,35 @@ export declare const SUB_CATEGORY_LABELS: {
19
19
  export declare const SEVERITIES: {
20
20
  readonly critical: {
21
21
  readonly label: "Critical";
22
- readonly color: "var(--R700)";
22
+ readonly color: "#B21212";
23
23
  };
24
24
  readonly high: {
25
25
  readonly label: "High";
26
- readonly color: "var(--R500)";
26
+ readonly color: "#F33E3E";
27
27
  };
28
28
  readonly medium: {
29
29
  readonly label: "Medium";
30
- readonly color: "var(--O500)";
30
+ readonly color: "#FF7E5B";
31
31
  };
32
32
  readonly low: {
33
33
  readonly label: "Low";
34
- readonly color: "var(--Y500)";
34
+ readonly color: "#FFB549";
35
35
  };
36
36
  readonly unknown: {
37
37
  readonly label: "Unknown";
38
- readonly color: "var(--N300)";
38
+ readonly color: "#B1B7BC";
39
39
  };
40
40
  readonly fail: {
41
41
  readonly label: "Failures";
42
- readonly color: "var(--R500)";
42
+ readonly color: "#F33E3E";
43
43
  };
44
44
  readonly success: {
45
45
  readonly label: "Successes";
46
- readonly color: "var(--G500)";
46
+ readonly color: "#1DAD70";
47
47
  };
48
48
  readonly exceptions: {
49
49
  readonly label: "Exceptions";
50
- readonly color: "var(--N300)";
50
+ readonly color: "#B1B7BC";
51
51
  };
52
52
  };
53
53
  export declare const ORDERED_SEVERITY_KEYS: readonly [SeveritiesDTO.CRITICAL, SeveritiesDTO.HIGH, SeveritiesDTO.MEDIUM, SeveritiesDTO.LOW, SeveritiesDTO.UNKNOWN, SeveritiesDTO.FAILURES, SeveritiesDTO.EXCEPTIONS, SeveritiesDTO.SUCCESSES];
@@ -1,7 +1,7 @@
1
1
  import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
2
2
  import { SEVERITIES } from './constants';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--Y500)" | "var(--R500)" | "var(--G500)" | "var(--O500)" | "var(--N300)" | "var(--R700)";
4
+ color: "#B1B7BC" | "#B21212" | "#F33E3E" | "#FF7E5B" | "#FFB549" | "#1DAD70";
5
5
  label: "Critical" | "High" | "Medium" | "Low" | "Unknown" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
@@ -1,6 +1,9 @@
1
1
  import { ScanResultDTO, SeveritiesDTO } from './SecurityModal';
2
+ import { ImageScanLicenseListType, ImageScanVulnerabilityListType, StatusType } from './SecurityModal/types';
2
3
  import { CategoriesConfig, SecurityConfigType } from './types';
3
4
  export declare const getCVEUrlFromCVEName: (cveName: string) => string;
4
5
  export declare const getTotalSeverities: (severityCount: Partial<Record<SeveritiesDTO, number>>) => number;
5
6
  export declare const getSecurityConfig: ({ imageScan, codeScan, kubernetesManifest, }: CategoriesConfig) => SecurityConfigType;
6
7
  export declare const getCompiledSecurityThreats: (scanResult: ScanResultDTO) => Partial<Record<SeveritiesDTO, number>>;
8
+ export declare const getStatusForScanList: (scanList: ImageScanVulnerabilityListType[] | ImageScanLicenseListType[]) => StatusType["status"];
9
+ export declare const getSecurityScanStatus: (scanResult: ScanResultDTO) => StatusType["status"];