@devtron-labs/devtron-fe-common-lib 0.0.51-beta-4 → 0.0.52-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.
Files changed (68) hide show
  1. package/dist/{CodeEditor-a1233daa.js → CodeEditor-68cd2e5b.js} +21 -21
  2. package/dist/Common/Api.js +13 -13
  3. package/dist/Common/BreadCrumb/BreadCrumb.js +1 -1
  4. package/dist/Common/ChartVersionAndTypeSelector.d.ts +3 -0
  5. package/dist/Common/ChartVersionAndTypeSelector.js +61 -0
  6. package/dist/Common/ClipboardButton/ClipboardButton.js +1 -1
  7. package/dist/Common/CodeEditor/CodeEditor.js +2 -2
  8. package/dist/Common/Common.service.d.ts +1 -0
  9. package/dist/Common/Common.service.js +32 -28
  10. package/dist/Common/Constants.d.ts +3 -1
  11. package/dist/Common/Constants.js +9 -6
  12. package/dist/Common/CustomTagSelector/PropagateTagInfo.js +1 -1
  13. package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +1 -1
  14. package/dist/Common/CustomTagSelector/TagDetails.js +1 -1
  15. package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +1 -1
  16. package/dist/Common/DeleteComponentModal/DeleteComponent.js +1 -1
  17. package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -0
  18. package/dist/Common/DraggableWrapper/DraggableButton.js +16 -0
  19. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -0
  20. package/dist/Common/DraggableWrapper/DraggableWrapper.js +1499 -0
  21. package/dist/Common/DraggableWrapper/index.d.ts +3 -0
  22. package/dist/Common/DraggableWrapper/index.js +8 -0
  23. package/dist/Common/DraggableWrapper/types.d.ts +23 -0
  24. package/dist/Common/DraggableWrapper/types.js +4 -0
  25. package/dist/Common/Grid/Grid.d.ts +1 -1
  26. package/dist/Common/Grid/Grid.js +19 -10
  27. package/dist/Common/Grid/types.d.ts +2 -2
  28. package/dist/Common/Helper.d.ts +9 -0
  29. package/dist/Common/Helper.js +24 -20
  30. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +1 -1
  31. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -0
  32. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.js +17 -0
  33. package/dist/Common/Hooks/index.d.ts +1 -0
  34. package/dist/Common/Hooks/index.js +6 -4
  35. package/dist/Common/ImageTags.js +3 -3
  36. package/dist/Common/MultiSelectCustomization.js +1 -1
  37. package/dist/Common/RJSF/widgets/Select.js +1 -1
  38. package/dist/Common/RadioGroup/RadioGroup.js +1 -1
  39. package/dist/Common/ResizableTextarea.js +1 -1
  40. package/dist/Common/Select/Select.js +1 -1
  41. package/dist/Common/TippyCustomized.js +2 -2
  42. package/dist/Common/ToastBody.js +1 -1
  43. package/dist/Common/Toggle/Toggle.js +1 -1
  44. package/dist/Common/Types.d.ts +64 -0
  45. package/dist/Common/index.d.ts +2 -0
  46. package/dist/Common/index.js +206 -190
  47. package/dist/Helper-1f1cf2ba.js +9824 -0
  48. package/dist/{TippyCustomized-b4379006.js → TippyCustomized-0d0b9a6f.js} +1 -1
  49. package/dist/{cssMode-a1869154.js → cssMode-7289250b.js} +1 -1
  50. package/dist/{freemarker2-51e1c403.js → freemarker2-3b903d5b.js} +1 -1
  51. package/dist/{handlebars-91940b5d.js → handlebars-702717e9.js} +1 -1
  52. package/dist/{html-f466e610.js → html-9a684e15.js} +1 -1
  53. package/dist/{htmlMode-1f121ca6.js → htmlMode-3e336aa8.js} +1 -1
  54. package/dist/index-c855d89c.js +173 -0
  55. package/dist/index.js +206 -190
  56. package/dist/{javascript-c8bf1ba9.js → javascript-101cb9b7.js} +1 -1
  57. package/dist/{jsonMode-d03e0315.js → jsonMode-006d8be9.js} +1 -1
  58. package/dist/{liquid-8f190965.js → liquid-729ea99d.js} +1 -1
  59. package/dist/{python-89c90f80.js → python-c9b92f72.js} +1 -1
  60. package/dist/{razor-3889a56a.js → razor-c48ef378.js} +1 -1
  61. package/dist/{react-select.esm-a99b516e.js → react-select.esm-fa95915b.js} +1111 -1279
  62. package/dist/{react-toastify.esm-f2ac8a63.js → react-toastify.esm-e28f7200.js} +162 -156
  63. package/dist/{tsMode-a6b9a239.js → tsMode-da78a323.js} +1 -1
  64. package/dist/{typescript-f36342d1.js → typescript-bd6d35ce.js} +1 -1
  65. package/dist/{xml-20660057.js → xml-828eca7a.js} +1 -1
  66. package/dist/{yaml-b321e220.js → yaml-89980d67.js} +1 -1
  67. package/package.json +5 -2
  68. package/dist/Helper-e95e2932.js +0 -8839
@@ -9,7 +9,7 @@ import { S as AV } from "./ic-copy-118b83dc.js";
9
9
  import { S as RV } from "./ic-info-filled-31a15add.js";
10
10
  import { S as PV } from "./ic-error-exclamation-5f9af461.js";
11
11
  import { S as OV } from "./ic-warning-42534af1.js";
12
- import { p as JM, o as eA, Y as tA, q as FV } from "./Helper-e95e2932.js";
12
+ import { p as JM, o as eA, Y as tA, q as FV } from "./Helper-1f1cf2ba.js";
13
13
  import { Progressing as BV } from "./Common/Progressing.js";
14
14
  import { useWindowSize as WV } from "./Common/UseWindowSize.js";
15
15
  import Iv from "./Common/Select/Select.js";
@@ -69586,37 +69586,37 @@ be({
69586
69586
  id: "freemarker2",
69587
69587
  extensions: [".ftl", ".ftlh", ".ftlx"],
69588
69588
  aliases: ["FreeMarker2", "Apache FreeMarker2"],
69589
- loader: () => import("./freemarker2-51e1c403.js").then((o) => o.TagAutoInterpolationDollar)
69589
+ loader: () => import("./freemarker2-3b903d5b.js").then((o) => o.TagAutoInterpolationDollar)
69590
69590
  });
69591
69591
  be({
69592
69592
  id: "freemarker2.tag-angle.interpolation-dollar",
69593
69593
  aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
69594
- loader: () => import("./freemarker2-51e1c403.js").then((o) => o.TagAngleInterpolationDollar)
69594
+ loader: () => import("./freemarker2-3b903d5b.js").then((o) => o.TagAngleInterpolationDollar)
69595
69595
  });
69596
69596
  be({
69597
69597
  id: "freemarker2.tag-bracket.interpolation-dollar",
69598
69598
  aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
69599
- loader: () => import("./freemarker2-51e1c403.js").then((o) => o.TagBracketInterpolationDollar)
69599
+ loader: () => import("./freemarker2-3b903d5b.js").then((o) => o.TagBracketInterpolationDollar)
69600
69600
  });
69601
69601
  be({
69602
69602
  id: "freemarker2.tag-angle.interpolation-bracket",
69603
69603
  aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
69604
- loader: () => import("./freemarker2-51e1c403.js").then((o) => o.TagAngleInterpolationBracket)
69604
+ loader: () => import("./freemarker2-3b903d5b.js").then((o) => o.TagAngleInterpolationBracket)
69605
69605
  });
69606
69606
  be({
69607
69607
  id: "freemarker2.tag-bracket.interpolation-bracket",
69608
69608
  aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
69609
- loader: () => import("./freemarker2-51e1c403.js").then((o) => o.TagBracketInterpolationBracket)
69609
+ loader: () => import("./freemarker2-3b903d5b.js").then((o) => o.TagBracketInterpolationBracket)
69610
69610
  });
69611
69611
  be({
69612
69612
  id: "freemarker2.tag-auto.interpolation-dollar",
69613
69613
  aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
69614
- loader: () => import("./freemarker2-51e1c403.js").then((o) => o.TagAutoInterpolationDollar)
69614
+ loader: () => import("./freemarker2-3b903d5b.js").then((o) => o.TagAutoInterpolationDollar)
69615
69615
  });
69616
69616
  be({
69617
69617
  id: "freemarker2.tag-auto.interpolation-bracket",
69618
69618
  aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
69619
- loader: () => import("./freemarker2-51e1c403.js").then((o) => o.TagAutoInterpolationBracket)
69619
+ loader: () => import("./freemarker2-3b903d5b.js").then((o) => o.TagAutoInterpolationBracket)
69620
69620
  });
69621
69621
  /*!-----------------------------------------------------------------------------
69622
69622
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -69654,7 +69654,7 @@ be({
69654
69654
  extensions: [".handlebars", ".hbs"],
69655
69655
  aliases: ["Handlebars", "handlebars", "hbs"],
69656
69656
  mimetypes: ["text/x-handlebars-template"],
69657
- loader: () => import("./handlebars-91940b5d.js")
69657
+ loader: () => import("./handlebars-702717e9.js")
69658
69658
  });
69659
69659
  /*!-----------------------------------------------------------------------------
69660
69660
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -69679,7 +69679,7 @@ be({
69679
69679
  extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
69680
69680
  aliases: ["HTML", "htm", "html", "xhtml"],
69681
69681
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
69682
- loader: () => import("./html-f466e610.js")
69682
+ loader: () => import("./html-9a684e15.js")
69683
69683
  });
69684
69684
  /*!-----------------------------------------------------------------------------
69685
69685
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -69720,7 +69720,7 @@ be({
69720
69720
  filenames: ["jakefile"],
69721
69721
  aliases: ["JavaScript", "javascript", "js"],
69722
69722
  mimetypes: ["text/javascript"],
69723
- loader: () => import("./javascript-c8bf1ba9.js")
69723
+ loader: () => import("./javascript-101cb9b7.js")
69724
69724
  });
69725
69725
  /*!-----------------------------------------------------------------------------
69726
69726
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -69795,7 +69795,7 @@ be({
69795
69795
  extensions: [".liquid", ".html.liquid"],
69796
69796
  aliases: ["Liquid", "liquid"],
69797
69797
  mimetypes: ["application/liquid"],
69798
- loader: () => import("./liquid-8f190965.js")
69798
+ loader: () => import("./liquid-729ea99d.js")
69799
69799
  });
69800
69800
  /*!-----------------------------------------------------------------------------
69801
69801
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -70014,7 +70014,7 @@ be({
70014
70014
  extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
70015
70015
  aliases: ["Python", "py"],
70016
70016
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
70017
- loader: () => import("./python-89c90f80.js")
70017
+ loader: () => import("./python-c9b92f72.js")
70018
70018
  });
70019
70019
  /*!-----------------------------------------------------------------------------
70020
70020
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -70051,7 +70051,7 @@ be({
70051
70051
  extensions: [".cshtml"],
70052
70052
  aliases: ["Razor", "razor"],
70053
70053
  mimetypes: ["text/x-cshtml"],
70054
- loader: () => import("./razor-3889a56a.js")
70054
+ loader: () => import("./razor-c48ef378.js")
70055
70055
  });
70056
70056
  /*!-----------------------------------------------------------------------------
70057
70057
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -70303,7 +70303,7 @@ be({
70303
70303
  extensions: [".ts", ".tsx", ".cts", ".mts"],
70304
70304
  aliases: ["TypeScript", "ts", "typescript"],
70305
70305
  mimetypes: ["text/typescript"],
70306
- loader: () => import("./typescript-f36342d1.js")
70306
+ loader: () => import("./typescript-bd6d35ce.js")
70307
70307
  });
70308
70308
  /*!-----------------------------------------------------------------------------
70309
70309
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -70359,7 +70359,7 @@ be({
70359
70359
  firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
70360
70360
  aliases: ["XML", "xml"],
70361
70361
  mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
70362
- loader: () => import("./xml-20660057.js")
70362
+ loader: () => import("./xml-828eca7a.js")
70363
70363
  });
70364
70364
  /*!-----------------------------------------------------------------------------
70365
70365
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -70372,7 +70372,7 @@ be({
70372
70372
  extensions: [".yaml", ".yml"],
70373
70373
  aliases: ["YAML", "yaml", "YML", "yml"],
70374
70374
  mimetypes: ["application/x-yaml", "text/x-yaml"],
70375
- loader: () => import("./yaml-b321e220.js")
70375
+ loader: () => import("./yaml-89980d67.js")
70376
70376
  });
70377
70377
  /*!-----------------------------------------------------------------------------
70378
70378
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -70467,7 +70467,7 @@ var Y2 = class {
70467
70467
  }, q7 = new Y2("css", X2, Q2), G7 = new Y2("scss", X2, Q2), Z7 = new Y2("less", X2, Q2);
70468
70468
  Sp.languages.css = { cssDefaults: q7, lessDefaults: Z7, scssDefaults: G7 };
70469
70469
  function J2() {
70470
- return import("./cssMode-a1869154.js");
70470
+ return import("./cssMode-7289250b.js");
70471
70471
  }
70472
70472
  Sp.languages.onLanguage("less", () => {
70473
70473
  J2().then((o) => o.setupMode(Z7));
@@ -70562,7 +70562,7 @@ $S.languages.html = {
70562
70562
  registerHTMLLanguageService: qS
70563
70563
  };
70564
70564
  function vle() {
70565
- return import("./htmlMode-1f121ca6.js");
70565
+ return import("./htmlMode-3e336aa8.js");
70566
70566
  }
70567
70567
  function qS(o, e = jS, t = KS(o)) {
70568
70568
  const i = new fle(o, e, t);
@@ -70639,7 +70639,7 @@ var xle = class {
70639
70639
  }, J7 = new xle("json", Dle, kle);
70640
70640
  cv.languages.json = { jsonDefaults: J7 };
70641
70641
  function Ile() {
70642
- return import("./jsonMode-d03e0315.js");
70642
+ return import("./jsonMode-006d8be9.js");
70643
70643
  }
70644
70644
  cv.languages.register({
70645
70645
  id: "json",
@@ -70802,7 +70802,7 @@ qf.languages.typescript = {
70802
70802
  getJavaScriptWorker: Fle
70803
70803
  };
70804
70804
  function GS() {
70805
- return import("./tsMode-a6b9a239.js");
70805
+ return import("./tsMode-da78a323.js");
70806
70806
  }
70807
70807
  qf.languages.onLanguage("typescript", () => GS().then((o) => o.setupTypeScript(aB)));
70808
70808
  qf.languages.onLanguage("javascript", () => GS().then((o) => o.setupJavaScript(lB)));
@@ -1,5 +1,5 @@
1
1
  import { ServerErrors as l } from "./ServerError.js";
2
- import { RequestTimeout as h, Host as f, URLS as w } from "./Constants.js";
2
+ import { FALLBACK_REQUEST_TIMEOUT as w, Host as f, URLS as R } from "./Constants.js";
3
3
  const m = {
4
4
  100: "Continue",
5
5
  101: "Switching Protocols",
@@ -70,11 +70,11 @@ const m = {
70
70
  598: "Network read timeout error",
71
71
  599: "Network connect timeout error"
72
72
  };
73
- function R() {
73
+ function p() {
74
74
  const o = `${window.location.pathname.replace(import.meta.env.PUBLIC_URL, "")}${window.location.search}`;
75
- window.location.href = `${window.location.origin}${import.meta.env.PUBLIC_URL}${w.LOGIN_SSO}?continue=${o}`;
75
+ window.location.href = `${window.location.origin}${import.meta.env.PUBLIC_URL}${R.LOGIN_SSO}?continue=${o}`;
76
76
  }
77
- async function p(o, e) {
77
+ async function T(o, e) {
78
78
  let t = e.status, n = e.statusText || m[t], i = new l({ code: t, errors: [] });
79
79
  if (o !== "application/json")
80
80
  n = `${m[t]}. Please try again.`;
@@ -84,7 +84,7 @@ async function p(o, e) {
84
84
  }
85
85
  throw i.errors = i.errors.length > 0 ? i.errors : [{ code: t, internalMessage: n, userMessage: n }], i;
86
86
  }
87
- async function P(o, e, t, n, i = !1, s) {
87
+ async function A(o, e, t, n, i = !1, s) {
88
88
  let d = {
89
89
  method: e,
90
90
  signal: n,
@@ -107,10 +107,10 @@ async function P(o, e, t, n, i = !1, s) {
107
107
  { code: 401, internalMessage: "Please login again", userMessage: "Please login again" }
108
108
  ]
109
109
  });
110
- return R(), { code: 401, status: "Unauthorized", result: [] };
110
+ return p(), { code: 401, status: "Unauthorized", result: [] };
111
111
  } else {
112
112
  if (r.status >= 300 && r.status <= 599)
113
- return await p(a, r);
113
+ return await T(a, r);
114
114
  if (a === "application/json")
115
115
  return r.json().then((c) => {
116
116
  if (c.code >= 300 && c.code <= 599)
@@ -134,16 +134,16 @@ async function P(o, e, t, n, i = !1, s) {
134
134
  }
135
135
  function u(o, e, t, n, i) {
136
136
  const s = new AbortController(), { signal: d } = s, r = new Promise((a, c) => {
137
- let g = n?.timeout ? n.timeout : h;
137
+ const g = window?._env_?.GLOBAL_API_TIMEOUT || w, h = n?.timeout ? n.timeout : g;
138
138
  setTimeout(() => {
139
139
  s.abort(), c({
140
140
  code: 408,
141
141
  errors: [{ code: 408, internalMessage: "Request cancelled", userMessage: "Request Cancelled" }]
142
142
  });
143
- }, g);
143
+ }, h);
144
144
  });
145
145
  return Promise.race([
146
- P(o, e, t, n?.signal || d, n?.preventAutoLogout || !1, i),
146
+ A(o, e, t, n?.signal || d, n?.preventAutoLogout || !1, i),
147
147
  r
148
148
  ]).catch((a) => {
149
149
  throw a instanceof l ? a : new l({
@@ -158,10 +158,10 @@ function u(o, e, t, n, i) {
158
158
  });
159
159
  });
160
160
  }
161
- const M = (o, e, t, n) => u(o, "POST", e, t, n), b = (o, e, t) => u(o, "PUT", e, t), y = (o, e) => u(o, "GET", null, e), N = (o, e, t) => u(o, "DELETE", e, t);
161
+ const L = (o, e, t, n) => u(o, "POST", e, t, n), b = (o, e, t) => u(o, "PUT", e, t), y = (o, e) => u(o, "GET", null, e), E = (o, e, t) => u(o, "DELETE", e, t);
162
162
  export {
163
163
  y as get,
164
- M as post,
164
+ L as post,
165
165
  b as put,
166
- N as trash
166
+ E as trash
167
167
  };
@@ -2,7 +2,7 @@ import { jsx as d, jsxs as j } from "react/jsx-runtime";
2
2
  import x, { useEffect as k, useMemo as h } from "react";
3
3
  import { useRouteMatch as _, useParams as v, Link as y } from "react-router-dom";
4
4
  import { useBreadcrumbContext as F } from "./BreadcrumbStore.js";
5
- import { C as M } from "../../Helper-e95e2932.js";
5
+ import { C as M } from "../../Helper-1f1cf2ba.js";
6
6
  const E = x.createContext(null);
7
7
  function L(o, c) {
8
8
  let f = o?.sep || "/";
@@ -0,0 +1,3 @@
1
+ import { ChartVersionAndTypeSelectorProps } from './Types';
2
+ declare const ChartVersionAndTypeSelector: ({ setSelectedChartRefId }: ChartVersionAndTypeSelectorProps) => JSX.Element;
3
+ export default ChartVersionAndTypeSelector;
@@ -0,0 +1,61 @@
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { useState as s, useEffect as b } from "react";
3
+ import { fetchChartTemplateVersions as O } from "./Common.service.js";
4
+ import { R as m } from "../react-select.esm-fa95915b.js";
5
+ import { y as d, s as R, x as C } from "../Helper-1f1cf2ba.js";
6
+ const I = ({ setSelectedChartRefId: n }) => {
7
+ const [y, f] = s([]), [u, T] = s(null), [c, V] = s([]), [h, v] = s([]), [x, i] = s(null);
8
+ b(() => {
9
+ O().then((t) => {
10
+ const e = t?.result || [];
11
+ f(e);
12
+ const p = [...new Set(e.map((a) => a.chartType))].map((a) => ({
13
+ value: a,
14
+ label: a
15
+ }));
16
+ v(p);
17
+ const N = d(e, p[0]);
18
+ l(N);
19
+ }).catch((t) => {
20
+ R(t);
21
+ });
22
+ }, []);
23
+ const l = (t) => {
24
+ V(t), i(t[0]), n(t[0]?.chartRefId);
25
+ }, S = (t) => {
26
+ T(t);
27
+ const e = d(y, t);
28
+ l(e);
29
+ }, g = (t) => {
30
+ i(t), n(t.chartRefId);
31
+ };
32
+ return /* @__PURE__ */ o("div", { className: "flex", children: [
33
+ /* @__PURE__ */ o("div", { className: "chart-type-options flex", "data-testid": "chart-type-options", children: [
34
+ /* @__PURE__ */ r("span", { className: "chart-type-options-label mr-4", children: "Chart Type" }),
35
+ /* @__PURE__ */ r(
36
+ m,
37
+ {
38
+ value: u ?? h[0],
39
+ options: h,
40
+ onChange: S,
41
+ styles: C
42
+ }
43
+ )
44
+ ] }),
45
+ /* @__PURE__ */ o("div", { className: "chart-version-options flex", "data-testid": "chart-version-options", children: [
46
+ /* @__PURE__ */ r("span", { className: "chart-version-options-label mr-4", children: "Chart Version" }),
47
+ /* @__PURE__ */ r(
48
+ m,
49
+ {
50
+ value: x ?? c[0],
51
+ options: c,
52
+ onChange: g,
53
+ styles: C
54
+ }
55
+ )
56
+ ] })
57
+ ] });
58
+ };
59
+ export {
60
+ I as default
61
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useState as p, useCallback as C, useEffect as r } from "react";
3
3
  import { T as h } from "../../tippy-react.esm-d5c56a0a.js";
4
- import { q as T } from "../../Helper-e95e2932.js";
4
+ import { q as T } from "../../Helper-1f1cf2ba.js";
5
5
  import { S as _ } from "../../ic-copy-118b83dc.js";
6
6
  function k({ content: a, copiedTippyText: m, duration: s, trigger: i, setTrigger: l }) {
7
7
  const [e, t] = p(!1), [d, c] = p(!1), u = () => t(!0), f = () => c(!0), b = () => c(!1), n = C(() => T(a, u), [a]);
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { C as x } from "../../CodeEditor-a1233daa.js";
3
+ import { C as x } from "../../CodeEditor-68cd2e5b.js";
4
4
  import "../../ic-copy-118b83dc.js";
5
5
  import "../../ic-info-filled-31a15add.js";
6
6
  import "../../ic-error-exclamation-5f9af461.js";
7
7
  import "../../ic-warning-42534af1.js";
8
- import "../../Helper-e95e2932.js";
8
+ import "../../Helper-1f1cf2ba.js";
9
9
  import "../Progressing.js";
10
10
  import "../UseWindowSize.js";
11
11
  import "../Select/Select.js";
@@ -16,4 +16,5 @@ export declare function setImageTags(request: any, pipelineId: number, artifactI
16
16
  export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
17
17
  export declare function extractImage(image: string): string;
18
18
  export declare function createGitCommitUrl(url: string, revision: string): string;
19
+ export declare function fetchChartTemplateVersions(): Promise<ResponseType>;
19
20
  export {};
@@ -1,56 +1,56 @@
1
- import { a as y, x as C } from "../Helper-e95e2932.js";
2
- import { get as g, post as O } from "./Api.js";
1
+ import { a as O, B as E } from "../Helper-1f1cf2ba.js";
2
+ import { get as d, post as y } from "./Api.js";
3
3
  import { ROUTES as p } from "./Constants.js";
4
- import { CDMaterialServiceEnum as S, DeploymentNodeType as E, CDMaterialFilterQuery as _, FilterStates as u, CDModalTab as b } from "./Types.js";
5
- const M = () => {
4
+ import { CDMaterialServiceEnum as _, DeploymentNodeType as T, CDMaterialFilterQuery as S, FilterStates as u, CDModalTab as L } from "./Types.js";
5
+ const x = () => {
6
6
  const e = `${p.PROJECT_LIST_MIN}`;
7
- return g(e).then((r) => {
7
+ return d(e).then((r) => {
8
8
  let n = [];
9
- return r && r.result && Array.isArray(r.result) && (n = r.result), n = n.sort((o, i) => y("name", o, i)), {
9
+ return r && r.result && Array.isArray(r.result) && (n = r.result), n = n.sort((o, i) => O("name", o, i)), {
10
10
  code: r.code,
11
11
  status: r.status,
12
12
  result: n
13
13
  };
14
14
  });
15
- }, L = {
15
+ }, b = {
16
16
  PRECD: "PRE",
17
17
  CD: "DEPLOY",
18
18
  POSTCD: "POST",
19
19
  APPROVAL: "APPROVAL"
20
- }, v = {
20
+ }, I = {
21
21
  BranchFixed: "SOURCE_TYPE_BRANCH_FIXED",
22
22
  WEBHOOK: "WEBHOOK",
23
23
  BranchRegex: "SOURCE_TYPE_BRANCH_REGEX"
24
24
  };
25
25
  function Y(e) {
26
- return g(`${p.USER_CHECK_ROLE}${e ? `?appName=${e}` : ""}`);
26
+ return d(`${p.USER_CHECK_ROLE}${e ? `?appName=${e}` : ""}`);
27
27
  }
28
28
  function w(e, r, n) {
29
- return O(`${p.IMAGE_TAGGING}/${r}/${n}`, e);
29
+ return y(`${p.IMAGE_TAGGING}/${r}/${n}`, e);
30
30
  }
31
- const T = (e, r) => {
31
+ const C = (e, r) => {
32
32
  const n = Object.keys(r).filter((i) => r[i] != null);
33
33
  if (!n.length)
34
34
  return e;
35
35
  const o = n.map((i) => Array.isArray(r[i]) ? `${i}=${r[i].join(",")}` : `${i}=${r[i]}`).join("&");
36
36
  return `${e}?${o}`;
37
- }, I = (e, r, n, o) => {
37
+ }, v = (e, r, n, o) => {
38
38
  if (!e || !e.length)
39
39
  return [];
40
40
  const i = r === 0, l = r;
41
41
  let a = !1;
42
42
  return e.map((t, D) => {
43
- let f = "";
43
+ let g = "";
44
44
  const c = t.filterState ?? u.ALLOWED;
45
- n && o && t.id === n && (f = o);
45
+ n && o && t.id === n && (g = o);
46
46
  const m = !a && i && c === u.ALLOWED ? !t.vulnerable : !1;
47
47
  return m && (a = !0), {
48
48
  index: l + D,
49
49
  id: t.id,
50
- deployedTime: t.deployed_time ? C(t.deployed_time).format("ddd, DD MMM YYYY, hh:mm A") : "Not Deployed",
50
+ deployedTime: t.deployed_time ? E(t.deployed_time).format("ddd, DD MMM YYYY, hh:mm A") : "Not Deployed",
51
51
  deployedBy: t.deployedBy,
52
52
  wfrId: t.wfrId,
53
- tab: b.Changes,
53
+ tab: L.Changes,
54
54
  image: U(t.image),
55
55
  showChanges: !1,
56
56
  vulnerabilities: [],
@@ -64,7 +64,7 @@ const T = (e, r) => {
64
64
  scanEnabled: t.scanEnabled,
65
65
  vulnerable: t.vulnerable,
66
66
  runningOnParentCd: t.runningOnParentCd,
67
- artifactStatus: f,
67
+ artifactStatus: g,
68
68
  userApprovalMetadata: t.userApprovalMetadata,
69
69
  triggeredBy: t.triggeredBy,
70
70
  isVirtualEnvironment: t.isVirtualEnvironment,
@@ -73,7 +73,7 @@ const T = (e, r) => {
73
73
  // It is going to be null but required in type so can't remove
74
74
  lastExecution: t.lastExecution,
75
75
  materialInfo: t.material_info ? t.material_info.map((s) => ({
76
- modifiedTime: s.modifiedTime ? C(s.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
76
+ modifiedTime: s.modifiedTime ? E(s.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
77
77
  commitLink: F(s.url, s.revision),
78
78
  author: s.author || "",
79
79
  message: s.message || "",
@@ -81,7 +81,7 @@ const T = (e, r) => {
81
81
  tag: s.tag || "",
82
82
  webhookData: s.webhookData || "",
83
83
  url: s.url || "",
84
- branch: (t.ciConfigureSourceType === v.WEBHOOK ? t.ciConfigureSourceValue : s.branch) || "",
84
+ branch: (t.ciConfigureSourceType === I.WEBHOOK ? t.ciConfigureSourceValue : s.branch) || "",
85
85
  type: t.ciConfigureSourceType || ""
86
86
  })) : [],
87
87
  filterState: c,
@@ -124,17 +124,17 @@ const T = (e, r) => {
124
124
  ...h(e),
125
125
  ...A(!1, e)
126
126
  };
127
- const i = I(
127
+ const i = v(
128
128
  e.ci_artifacts,
129
129
  n ?? 0,
130
130
  e.latest_wf_artifact_id,
131
131
  e.latest_wf_artifact_status
132
132
  ), l = A(
133
- r === E.CD || r === E.APPROVAL,
133
+ r === T.CD || r === T.APPROVAL,
134
134
  e
135
135
  ), a = h(e);
136
136
  return {
137
- materials: o && o === _.RESOURCE ? i.filter((t) => t.filterState === u.ALLOWED) : i,
137
+ materials: o && o === S.RESOURCE ? i.filter((t) => t.filterState === u.ALLOWED) : i,
138
138
  ...l,
139
139
  ...a
140
140
  };
@@ -145,14 +145,14 @@ const T = (e, r) => {
145
145
  const l = $(i);
146
146
  let a;
147
147
  switch (e) {
148
- case S.ROLLBACK:
149
- a = T(`${p.CD_MATERIAL_GET}/${r}/material/rollback`, l);
148
+ case _.ROLLBACK:
149
+ a = C(`${p.CD_MATERIAL_GET}/${r}/material/rollback`, l);
150
150
  break;
151
151
  default:
152
- a = T(`${p.CD_MATERIAL_GET}/${r}/material`, { ...l, stage: L[n] });
152
+ a = C(`${p.CD_MATERIAL_GET}/${r}/material`, { ...l, stage: b[n] });
153
153
  break;
154
154
  }
155
- return g(a, { signal: o }).then((d) => P(d.result, n, i.offset, i.filter));
155
+ return d(a, { signal: o }).then((f) => P(f.result, n, i.offset, i.filter));
156
156
  };
157
157
  function U(e) {
158
158
  return e ? e.split(":").pop() : "";
@@ -176,12 +176,16 @@ function F(e, r) {
176
176
  }
177
177
  return "NA";
178
178
  }
179
+ function k() {
180
+ return d(`${p.DEPLOYMENT_TEMPLATE_LIST}?appId=-1&envId=-1`);
181
+ }
179
182
  export {
180
- v as SourceTypeMap,
183
+ I as SourceTypeMap,
181
184
  F as createGitCommitUrl,
182
185
  U as extractImage,
186
+ k as fetchChartTemplateVersions,
183
187
  H as genericCDMaterialsService,
184
- M as getTeamListMin,
188
+ x as getTeamListMin,
185
189
  Y as getUserRole,
186
190
  w as setImageTags
187
191
  };
@@ -1,5 +1,5 @@
1
1
  import { RegistryTypeDetailType } from "./Types";
2
- export declare const RequestTimeout = 60000;
2
+ export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
3
3
  export declare const Host: any;
4
4
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
5
5
  export declare const DOCUMENTATION: {
@@ -20,6 +20,7 @@ export declare const ROUTES: {
20
20
  USER_CHECK_ROLE: string;
21
21
  IMAGE_TAGGING: string;
22
22
  CD_MATERIAL_GET: string;
23
+ DEPLOYMENT_TEMPLATE_LIST: string;
23
24
  };
24
25
  export declare enum KEY_VALUE {
25
26
  KEY = "key",
@@ -69,3 +70,4 @@ export declare enum MODES {
69
70
  SHELL = "shell",
70
71
  DOCKERFILE = "dockerfile"
71
72
  }
73
+ export declare const MAX_Z_INDEX = 2147483647;
@@ -13,7 +13,8 @@ const l = 6e4, o = import.meta.env.REACT_APP_ORCHESTRATOR_ROOT ?? "/orchestrator
13
13
  PROJECT_LIST_MIN: "team/autocomplete",
14
14
  USER_CHECK_ROLE: "user/check/roles",
15
15
  IMAGE_TAGGING: "app/image-tagging",
16
- CD_MATERIAL_GET: "app/cd-pipeline"
16
+ CD_MATERIAL_GET: "app/cd-pipeline",
17
+ DEPLOYMENT_TEMPLATE_LIST: "app/template/list"
17
18
  };
18
19
  var t = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))(t || {});
19
20
  const n = {
@@ -42,7 +43,7 @@ const n = {
42
43
  PreBuild: "preBuildStage",
43
44
  Build: "buildStage",
44
45
  PostBuild: "postBuildStage"
45
- }, m = {
46
+ }, T = {
46
47
  ecr: {
47
48
  value: "ecr",
48
49
  label: "ECR",
@@ -204,26 +205,28 @@ const n = {
204
205
  placeholder: ""
205
206
  }
206
207
  }
207
- }, T = {
208
+ }, m = {
208
209
  CONTAINER: "CONTAINER",
209
210
  CHART_PULL: "CHART_PULL",
210
211
  CHART_PUSH: "CHART_PUSH"
211
212
  };
212
213
  var r = /* @__PURE__ */ ((e) => (e.YAML = "yaml", e.JSON = "json", e.SHELL = "shell", e.DOCKERFILE = "dockerfile", e))(r || {});
214
+ const A = 2147483647;
213
215
  export {
214
216
  E as BuildStageVariable,
215
217
  n as DEFAULT_TAG_DATA,
216
218
  s as DOCUMENTATION,
217
219
  a as DOCUMENTATION_HOME_PAGE,
218
220
  g as ERROR_EMPTY_SCREEN,
221
+ l as FALLBACK_REQUEST_TIMEOUT,
219
222
  o as Host,
220
223
  t as KEY_VALUE,
224
+ A as MAX_Z_INDEX,
221
225
  r as MODES,
222
226
  d as PATTERNS,
223
- m as REGISTRY_TYPE_MAP,
227
+ T as REGISTRY_TYPE_MAP,
224
228
  c as ROUTES,
225
- T as RepositoryAction,
226
- l as RequestTimeout,
229
+ m as RepositoryAction,
227
230
  u as TOAST_ACCESS_DENIED,
228
231
  p as TOKEN_COOKIE_NAME,
229
232
  R as TriggerTypeMap,
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { S as a } from "../../inject-tag-824bf92c.js";
3
- import { T as n, S as r } from "../../TippyCustomized-b4379006.js";
3
+ import { T as n, S as r } from "../../TippyCustomized-0d0b9a6f.js";
4
4
  import { TippyTheme as c } from "../Types.js";
5
5
  import { DOCUMENTATION as o } from "../Constants.js";
6
6
  function f({ isCreateApp: i }) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as z } from "react/jsx-runtime";
2
2
  import { useState as C, useEffect as O } from "react";
3
- import { u as b } from "../../Helper-e95e2932.js";
3
+ import { u as b } from "../../Helper-1f1cf2ba.js";
4
4
  function A({
5
5
  className: n,
6
6
  minHeight: s,
@@ -4,7 +4,7 @@ import { S as y } from "../../ic-cross-0e71861d.js";
4
4
  import { S as I } from "../../inject-tag-824bf92c.js";
5
5
  import { TagLabelValueSelector as d } from "./TagLabelValueSelector.js";
6
6
  import { KEY_VALUE as c } from "../Constants.js";
7
- import { b as V } from "../../Helper-e95e2932.js";
7
+ import { b as V } from "../../Helper-1f1cf2ba.js";
8
8
  import { ValidationRules as T } from "./ValidationRules.js";
9
9
  const S = ({
10
10
  index: a,
@@ -4,7 +4,7 @@ import m from "../PopupMenu.js";
4
4
  import { S as O } from "../../ic-cross-0e71861d.js";
5
5
  import { S as P } from "../../ic-info-outlined-8fa45e87.js";
6
6
  import { KEY_VALUE as t } from "../Constants.js";
7
- import { b as K } from "../../Helper-e95e2932.js";
7
+ import { b as K } from "../../Helper-1f1cf2ba.js";
8
8
  import { ResizableTagTextArea as W } from "./ResizableTagTextArea.js";
9
9
  import { T as j } from "../../tippy-react.esm-d5c56a0a.js";
10
10
  import { ValidationRules as F } from "./ValidationRules.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as x } from "react";
3
3
  import { useHistory as M } from "react-router-dom";
4
- import { t as N } from "../../react-toastify.esm-f2ac8a63.js";
4
+ import { t as N } from "../../react-toastify.esm-e28f7200.js";
5
5
  import { i as S } from "../../ic-info-filled-31a15add.js";
6
6
  import r from "../Dialogs/ConfirmationDialog.js";
7
7
  import { DeleteDialog as u } from "../Dialogs/DeleteDialog.js";
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DraggableButtonProps } from './types';
3
+ export default function DraggableButton({ dragClassName }: DraggableButtonProps): JSX.Element;