@devtron-labs/devtron-fe-common-lib 1.14.1-pre-4 → 1.14.1-pre-5-beta-2

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 (44) hide show
  1. package/dist/{@code-editor-C-5R5fdP.js → @code-editor-Dguf__VL.js} +11913 -11904
  2. package/dist/{@common-rjsf-DEX3BKEv.js → @common-rjsf-ntajbYOF.js} +7 -7
  3. package/dist/{@framer-motion-DxBDfxHd.js → @framer-motion-BBrovRGX.js} +1 -1
  4. package/dist/{@react-dates-CXp7pow5.js → @react-dates-BN55ZZis.js} +1 -1
  5. package/dist/{@react-select-9j0-8_aU.js → @react-select-Be-sUPBr.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BJQn8hUJ.js → @react-virtualized-sticky-tree-C1LT8GyU.js} +1 -1
  7. package/dist/{@vendor-BiSFCp-8.js → @vendor-DpX3lhti.js} +71 -71
  8. package/dist/Common/Constants.d.ts +2 -0
  9. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  10. package/dist/Common/RJSF/Form.d.ts +1 -1
  11. package/dist/Common/Types.d.ts +13 -8
  12. package/dist/Common/index.d.ts +0 -1
  13. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +11 -11
  14. package/dist/Shared/{DocLink → Components/DocLink}/DocLink.d.ts +1 -1
  15. package/dist/Shared/{DocLink → Components/DocLink}/constants.d.ts +6 -4
  16. package/dist/Shared/{DocLink → Components/DocLink}/index.d.ts +1 -0
  17. package/dist/Shared/Components/DocLink/types.d.ts +18 -0
  18. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
  19. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  20. package/dist/Shared/Components/FeatureDescription/types.d.ts +3 -5
  21. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -3
  22. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  23. package/dist/Shared/Components/Header/types.d.ts +5 -10
  24. package/dist/Shared/Components/Icon/Icon.d.ts +4 -0
  25. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  26. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
  27. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +3 -4
  28. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  29. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  30. package/dist/Shared/Components/index.d.ts +1 -0
  31. package/dist/Shared/Providers/index.d.ts +1 -1
  32. package/dist/Shared/Providers/types.d.ts +16 -0
  33. package/dist/Shared/types.d.ts +5 -0
  34. package/dist/assets/@code-editor.css +1 -1
  35. package/dist/assets/ic-cluster-isolated.93f843b9.svg +3 -0
  36. package/dist/assets/{ic-cluster.71ba9e26.svg → ic-cluster.f1c3fad1.svg} +1 -1
  37. package/dist/assets/ic-environment-isolated.b772ae9d.svg +3 -0
  38. package/dist/assets/ic-environment.e639b8f3.svg +4 -0
  39. package/dist/assets/ic-shapes.b7b5c28f.svg +3 -0
  40. package/dist/index.js +42 -39
  41. package/package.json +1 -1
  42. package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
  43. package/dist/Shared/DocLink/types.d.ts +0 -11
  44. /package/dist/Shared/{DocLink → Components/DocLink}/utils.d.ts +0 -0
@@ -1,7 +1,7 @@
1
- import { j as n, J as y, b as k, a as W } from "./@vendor-BiSFCp-8.js";
2
- import J, { forwardRef as V, useMemo as P } from "react";
1
+ import { j as n, as as y, au as k, at as W } from "./@vendor-DpX3lhti.js";
2
+ import V, { forwardRef as J, useMemo as P } from "react";
3
3
  import K, { getDefaultRegistry as q } from "@rjsf/core";
4
- import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-C-5R5fdP.js";
4
+ import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-Dguf__VL.js";
5
5
  import Q, { components as D } from "react-select";
6
6
  import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
@@ -12,7 +12,7 @@ import './assets/@common-rjsf.css';const O = {
12
12
  SELECT: "Please select an option",
13
13
  INPUT: "Please enter an input",
14
14
  OBJECT_KEY: "Please enter a value for the key"
15
- }, ce = "Key not available", Ve = {
15
+ }, ce = "Key not available", Je = {
16
16
  "ui:submitButtonOptions": {
17
17
  norender: !0
18
18
  }
@@ -214,7 +214,7 @@ import './assets/@common-rjsf.css';const O = {
214
214
  );
215
215
  }, je = ({ errors: e = [], idSchema: t }) => {
216
216
  const s = ee(t);
217
- return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: e.filter((r) => !!r).map((r, a) => /* @__PURE__ */ n.jsxs(J.Fragment, { children: [
217
+ return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: e.filter((r) => !!r).map((r, a) => /* @__PURE__ */ n.jsxs(V.Fragment, { children: [
218
218
  /* @__PURE__ */ n.jsx("span", {}),
219
219
  /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
220
220
  /* @__PURE__ */ n.jsx(le, { className: "form__icon form__icon--error" }),
@@ -556,7 +556,7 @@ import './assets/@common-rjsf.css';const O = {
556
556
  ObjectFieldTemplate: we,
557
557
  TitleFieldTemplate: C,
558
558
  WrapIfAdditionalTemplate: Ne
559
- }, Ae = K, Re = G, Ye = V((e, t) => {
559
+ }, Ae = K, Re = G, Ye = J((e, t) => {
560
560
  const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = P(() => {
561
561
  const o = be(e.schema);
562
562
  return {
@@ -608,7 +608,7 @@ import './assets/@common-rjsf.css';const O = {
608
608
  );
609
609
  });
610
610
  export {
611
- Ve as H,
611
+ Je as H,
612
612
  Ye as R,
613
613
  Ke as a,
614
614
  be as b,
@@ -1,4 +1,4 @@
1
- import { ax as ct, ay as m, az as M, aA as Xr, aB as Ee, aC as T, aD as at, aE as Kt, aF as oe, aG as We, aH as J, aI as Wr, aJ as ei, aK as Zr, aL as ri, aM as ni, aN as ii, aO as ai, aP as oi, aQ as $r, aR as si, aS as ui, aT as li, aU as fi, aV as ci, aW as vi, aX as di, aY as Pt, aZ as k, a_ as he, a$ as qr, b0 as pi, b1 as hi, b2 as W, b3 as Z, b4 as mi, b5 as me, b6 as Mt, b7 as gi, b8 as yi, b9 as Jr, ba as It, bb as O, bc as ge, bd as bi, be as se, bf as Pi, bg as Vi } from "./@vendor-BiSFCp-8.js";
1
+ import { ax as ct, ay as m, az as M, aA as Xr, aB as Ee, aC as T, aD as at, aE as Kt, aF as oe, aG as We, aH as J, aI as Wr, aJ as ei, aK as Zr, aL as ri, aM as ni, aN as ii, aO as ai, aP as oi, aQ as $r, aR as si, aS as ui, aT as li, aU as fi, aV as ci, aW as vi, aX as di, aY as Pt, aZ as k, a_ as he, a$ as qr, b0 as pi, b1 as hi, b2 as W, b3 as Z, b4 as mi, b5 as me, b6 as Mt, b7 as gi, b8 as yi, b9 as Jr, ba as It, bb as O, bc as ge, bd as bi, be as se, bf as Pi, bg as Vi } from "./@vendor-DpX3lhti.js";
2
2
  import * as G from "react";
3
3
  import Le, { createContext as Vt, useContext as F, useLayoutEffect as Ti, useEffect as H, useState as Re, useRef as q, useCallback as ye, useMemo as Ot, forwardRef as Si, createElement as xi, cloneElement as Ci, Children as Ai, isValidElement as wi } from "react";
4
4
  var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze : process.env.NODE_ENV || Ze, Q = function(t) {
@@ -1,5 +1,5 @@
1
1
  import Te from "react";
2
- import { bh as xe, bi as we, bj as ve, bk as lr, bl as Le, bm as Je, bn as tt, bo as at, bp as et, bq as lt, br as rt, bs as Xn, bt as sr, bu as Jn, bv as Dt, bw as Go, bx as dr, by as eo, bz as to, bA as ao, bB as ur, bC as Fe, bD as Rt, bE as $o, bF as cr, bG as Yo, bH as Cr, bI as Uo, bJ as Qo, bK as Zo, bL as Xo, bM as Jo } from "./@vendor-BiSFCp-8.js";
2
+ import { bh as xe, bi as we, bj as ve, bk as lr, bl as Le, bm as Je, bn as tt, bo as at, bp as et, bq as lt, br as rt, bs as Xn, bt as sr, bu as Jn, bv as Dt, bw as Go, bx as dr, by as eo, bz as to, bA as ao, bB as ur, bC as Fe, bD as Rt, bE as $o, bF as cr, bG as Yo, bH as Cr, bI as Uo, bJ as Qo, bK as Zo, bL as Xo, bM as Jo } from "./@vendor-DpX3lhti.js";
3
3
  import { r as Ne, h as ei, g 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 { bN as xt, bO as Bt, bP as Ft, bQ as v, bR as U, bS as xe, bB as re, bT as h, bJ as f, bU as Y, bV as Vt, bW as Ue, bX as Et, bY as yt, bZ as Wt, b_ as Xt, b$ as ne, c0 as Zt } from "./@vendor-BiSFCp-8.js";
1
+ import { bN as xt, bO as Bt, bP as Ft, bQ as v, bR as U, bS as xe, bB as re, bT as h, bJ as f, bU as Y, bV as Vt, bW as Ue, bX as Et, bY as yt, bZ as Wt, b_ as Xt, b$ as ne, c0 as Zt } from "./@vendor-DpX3lhti.js";
2
2
  import * as y from "react";
3
3
  import { useContext as Nt, useRef as j, useState as ee, createContext as St, useMemo as q, useCallback as D, Component as Rt, Fragment as Be, useEffect as Qe, forwardRef as Ht } from "react";
4
4
  import { createPortal as Tt } from "react-dom";
@@ -2,7 +2,7 @@ var v = Object.defineProperty;
2
2
  var E = (a, h, e) => h in a ? v(a, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[h] = e;
3
3
  var f = (a, h, e) => E(a, typeof h != "symbol" ? h + "" : h, e);
4
4
  import u, { createRef as k } from "react";
5
- import { c1 as x } from "./@vendor-BiSFCp-8.js";
5
+ import { c1 as x } from "./@vendor-DpX3lhti.js";
6
6
  const b = () => typeof navigator < "u" && /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor) ? "-webkit-sticky" : "sticky";
7
7
  var g;
8
8
  (function(a) {
@@ -66611,46 +66611,46 @@ const lOe = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c
66611
66611
  default: pOe
66612
66612
  }, Symbol.toStringTag, { value: "Module" }));
66613
66613
  export {
66614
- dke as $,
66615
- $ke as A,
66616
- Nke as B,
66617
- Cse as C,
66614
+ hP as $,
66615
+ jke as A,
66616
+ Ske as B,
66617
+ Oke as C,
66618
66618
  ske as D,
66619
66619
  Oe as E,
66620
- Ike as F,
66621
- jke as G,
66622
- Ske as H,
66623
- Oke as I,
66624
- Ot as J,
66625
- Fke as K,
66626
- ko as L,
66627
- Xee as M,
66628
- bke as N,
66629
- Cf as O,
66630
- LN as P,
66620
+ Fke as F,
66621
+ ko as G,
66622
+ Xee as H,
66623
+ bke as I,
66624
+ Cf as J,
66625
+ LN as K,
66626
+ wm as L,
66627
+ _m as M,
66628
+ tP as N,
66629
+ zN as O,
66630
+ $S as P,
66631
66631
  pn as Q,
66632
- wm as R,
66632
+ i0 as R,
66633
66633
  Ue as S,
66634
66634
  Mn as T,
66635
- _m as U,
66636
- tP as V,
66637
- zN as W,
66638
- $S as X,
66639
- i0 as Y,
66640
- on as Z,
66641
- Ur as _,
66642
- vY as a,
66635
+ dke as U,
66636
+ on as V,
66637
+ $e as W,
66638
+ Cke as X,
66639
+ Noe as Y,
66640
+ Cne as Z,
66641
+ dt as _,
66642
+ Loe as a,
66643
66643
  HC as a$,
66644
- $e as a0,
66645
- Cke as a1,
66646
- Noe as a2,
66647
- Cne as a3,
66648
- dt as a4,
66649
- hP as a5,
66650
- dd as a6,
66651
- wke as a7,
66652
- xke as a8,
66653
- gke as a9,
66644
+ dd as a0,
66645
+ wke as a1,
66646
+ xke as a2,
66647
+ gke as a3,
66648
+ yke as a4,
66649
+ Eke as a5,
66650
+ Rl as a6,
66651
+ zke as a7,
66652
+ Vke as a8,
66653
+ Hke as a9,
66654
66654
  NOe as aA,
66655
66655
  Gg as aB,
66656
66656
  VOe as aC,
@@ -66678,33 +66678,33 @@ export {
66678
66678
  UC as aY,
66679
66679
  Yg as aZ,
66680
66680
  GOe as a_,
66681
- yke as aa,
66682
- Eke as ab,
66683
- Rl as ac,
66684
- zke as ad,
66685
- Vke as ae,
66686
- Hke as af,
66687
- Wke as ag,
66688
- hq as ah,
66689
- Vl as ai,
66690
- Ki as aj,
66691
- wOe as ak,
66692
- sDe as al,
66693
- Pg as am,
66694
- Ve as an,
66695
- kg as ao,
66696
- CCe as ap,
66697
- oDe as aq,
66698
- Ra as ar,
66699
- aEe as as,
66700
- uEe as at,
66701
- z0e as au,
66702
- sSe as av,
66681
+ Wke as aa,
66682
+ hq as ab,
66683
+ Vl as ac,
66684
+ Ki as ad,
66685
+ wOe as ae,
66686
+ sDe as af,
66687
+ Pg as ag,
66688
+ Ve as ah,
66689
+ kg as ai,
66690
+ CCe as aj,
66691
+ oDe as ak,
66692
+ Ra as al,
66693
+ aEe as am,
66694
+ uEe as an,
66695
+ z0e as ao,
66696
+ sSe as ap,
66697
+ COe as aq,
66698
+ Y9 as ar,
66699
+ Ot as as,
66700
+ vY as at,
66701
+ DC as au,
66702
+ Ur as av,
66703
66703
  Vt as aw,
66704
66704
  uf as ax,
66705
66705
  fA as ay,
66706
66706
  BOe as az,
66707
- DC as b,
66707
+ cn as b,
66708
66708
  vX as b$,
66709
66709
  nke as b0,
66710
66710
  UK as b1,
@@ -66769,30 +66769,30 @@ export {
66769
66769
  Qke as bx,
66770
66770
  Zke as by,
66771
66771
  pz as bz,
66772
- COe as c,
66772
+ gN as c,
66773
66773
  FOe as c0,
66774
66774
  AH as c1,
66775
- Loe as d,
66776
- cn as e,
66777
- gN as f,
66775
+ Ake as d,
66776
+ Pke as e,
66777
+ kke as f,
66778
66778
  Voe as g,
66779
- Ake as h,
66779
+ Bke as h,
66780
66780
  _Oe as i,
66781
66781
  ue as j,
66782
66782
  HD as k,
66783
- Pke as l,
66784
- mke as m,
66783
+ mke as l,
66784
+ eae as m,
66785
66785
  SOe as n,
66786
66786
  PS as o,
66787
- kke as p,
66788
- Bke as q,
66787
+ qke as p,
66788
+ Fte as q,
66789
66789
  HN as r,
66790
66790
  vke as s,
66791
66791
  U as t,
66792
- Y9 as u,
66793
- eae as v,
66794
- qke as w,
66795
- Fte as x,
66792
+ Lke as u,
66793
+ $ke as v,
66794
+ Nke as w,
66795
+ Cse as x,
66796
66796
  Dke as y,
66797
- Lke as z
66797
+ Ike as z
66798
66798
  };
@@ -54,6 +54,7 @@ export declare const URLS: {
54
54
  readonly COMPARE_CLUSTERS: "/compare-clusters";
55
55
  readonly APP_CONFIG: "edit";
56
56
  readonly GLOBAL_CONFIG: "/global-config";
57
+ readonly GLOBAL_CONFIG_MANAGE_CATEGORIES: "/global-config/cluster-env/manage-categories";
57
58
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
58
59
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
59
60
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
@@ -63,6 +64,7 @@ export declare const ROUTES: {
63
64
  readonly APP: "app";
64
65
  readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
65
66
  readonly APP_TEMPLATE_DATA: "app/template/data";
67
+ readonly ENVIRONMENT_CATEGORIES: "env/categories";
66
68
  readonly PROJECT_LIST_MIN: "team/autocomplete";
67
69
  readonly USER_CHECK_ROLE: "user/check/roles";
68
70
  readonly IMAGE_TAGGING: "app/image-tagging";
@@ -1,6 +1,6 @@
1
1
  import { ShortcutType } from './types';
2
2
  export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
3
- keys: ("R" | "Enter" | "Escape" | "." | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "Space" | "Control" | "Shift" | "Meta" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
3
+ keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
4
4
  id: string;
5
5
  };
6
6
  export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "tagName" | "onChange" | "onBlur" | "onSubmit" | "target" | "onFocus" | "onError" | "autoComplete" | "method" | "action" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "method" | "action" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
@@ -2,8 +2,8 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
2
2
  import { TippyProps } from '@tippyjs/react';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
- import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType } from '../Shared';
6
- import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, DOCUMENTATION, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType, DocLinkProps } from '../Shared';
6
+ import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
9
9
  *
@@ -77,11 +77,9 @@ export interface CheckboxProps {
77
77
  dataTestId?: string;
78
78
  children?: ReactNode;
79
79
  }
80
- export type TippyWithBaseDocLinkTypes<T extends boolean> = {
81
- isExternalLink?: T;
82
- isEnterprise?: boolean;
83
- documentationLink?: T extends true ? string : keyof typeof DOCUMENTATION;
84
- };
80
+ export interface TippyWithBaseDocLinkTypes<T extends boolean> extends Pick<DocLinkProps<T>, 'isExternalLink' | 'openInNewTab'> {
81
+ documentationLink?: DocLinkProps<T>['docLinkKey'];
82
+ }
85
83
  export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo'> & TippyWithBaseDocLinkTypes<T> & {
86
84
  theme: TippyTheme;
87
85
  visible?: boolean;
@@ -111,7 +109,7 @@ export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo
111
109
  children: React.ReactElement<any>;
112
110
  disableClose?: boolean;
113
111
  };
114
- export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | 'isEnterprise' | 'isExternalLink'> {
112
+ export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | 'isExternalLink' | 'openInNewTab'> {
115
113
  dataTestid?: string;
116
114
  children?: TippyCustomizedProps<T>['children'];
117
115
  iconClassName?: string;
@@ -959,4 +957,11 @@ export interface EnvAppsMetaDTO {
959
957
  appCount: number;
960
958
  apps: AppMeta[];
961
959
  }
960
+ export interface ClusterEnvironmentCategoryDTO {
961
+ id: number;
962
+ name: string;
963
+ description?: string;
964
+ }
965
+ export interface ClusterEnvironmentCategoryType extends ClusterEnvironmentCategoryDTO {
966
+ }
962
967
  export {};
@@ -1,4 +1,3 @@
1
- export * from '../Shared/DocLink';
2
1
  export * from './AddCDButton';
3
2
  export * from './API';
4
3
  export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
@@ -23,26 +23,22 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
23
23
  role?: import('react').AriaRole;
24
24
  about?: string;
25
25
  is?: string;
26
- hidden?: boolean;
27
- prefix?: string;
28
- resource?: string;
29
- draggable?: boolean | "true" | "false";
30
- onClick?: import('react').MouseEventHandler<HTMLDivElement>;
31
- onChange?: import('react').FormEventHandler<HTMLDivElement>;
32
- onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
33
- onSubmit?: import('react').FormEventHandler<HTMLDivElement>;
34
- dir?: string;
26
+ security?: string;
35
27
  onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
36
28
  "aria-describedby"?: string;
37
29
  "aria-errormessage"?: string;
38
30
  "aria-label"?: string;
39
31
  "aria-labelledby"?: string;
32
+ onClick?: import('react').MouseEventHandler<HTMLDivElement>;
40
33
  defaultChecked?: boolean;
41
34
  suppressContentEditableWarning?: boolean;
42
35
  suppressHydrationWarning?: boolean;
43
36
  accessKey?: string;
44
37
  contentEditable?: "inherit" | (boolean | "true" | "false");
45
38
  contextMenu?: string;
39
+ dir?: string;
40
+ draggable?: boolean | "true" | "false";
41
+ hidden?: boolean;
46
42
  lang?: string;
47
43
  placeholder?: string;
48
44
  spellCheck?: boolean | "true" | "false";
@@ -51,7 +47,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
51
47
  radioGroup?: string;
52
48
  datatype?: string;
53
49
  inlist?: any;
50
+ prefix?: string;
54
51
  property?: string;
52
+ resource?: string;
55
53
  typeof?: string;
56
54
  vocab?: string;
57
55
  autoCapitalize?: string;
@@ -63,7 +61,6 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
63
61
  itemID?: string;
64
62
  itemRef?: string;
65
63
  results?: number;
66
- security?: string;
67
64
  unselectable?: "on" | "off";
68
65
  inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
69
66
  "aria-activedescendant"?: string;
@@ -78,7 +75,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
78
75
  "aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
79
76
  "aria-details"?: string;
80
77
  "aria-disabled"?: boolean | "true" | "false";
81
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
78
+ "aria-dropeffect"?: "link" | "none" | "popup" | "copy" | "execute" | "move";
82
79
  "aria-expanded"?: boolean | "true" | "false";
83
80
  "aria-flowto"?: string;
84
81
  "aria-grabbed"?: boolean | "true" | "false";
@@ -127,7 +124,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
127
124
  onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLDivElement>;
128
125
  onFocus?: import('react').FocusEventHandler<HTMLDivElement>;
129
126
  onFocusCapture?: import('react').FocusEventHandler<HTMLDivElement>;
127
+ onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
130
128
  onBlurCapture?: import('react').FocusEventHandler<HTMLDivElement>;
129
+ onChange?: import('react').FormEventHandler<HTMLDivElement>;
131
130
  onChangeCapture?: import('react').FormEventHandler<HTMLDivElement>;
132
131
  onBeforeInput?: import('react').FormEventHandler<HTMLDivElement>;
133
132
  onBeforeInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
@@ -135,6 +134,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
135
134
  onInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
136
135
  onReset?: import('react').FormEventHandler<HTMLDivElement>;
137
136
  onResetCapture?: import('react').FormEventHandler<HTMLDivElement>;
137
+ onSubmit?: import('react').FormEventHandler<HTMLDivElement>;
138
138
  onSubmitCapture?: import('react').FormEventHandler<HTMLDivElement>;
139
139
  onInvalid?: import('react').FormEventHandler<HTMLDivElement>;
140
140
  onInvalidCapture?: import('react').FormEventHandler<HTMLDivElement>;
@@ -1,2 +1,2 @@
1
1
  import { DocLinkProps } from './types';
2
- export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant, isEnterprise, isExternalLink, }: DocLinkProps<T>) => JSX.Element;
2
+ export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant, isExternalLink, openInNewTab, fullWidth, }: DocLinkProps<T>) => JSX.Element;
@@ -15,7 +15,7 @@ export declare const DOCUMENTATION: {
15
15
  readonly APP_ROLLOUT_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template/rollout-deployment";
16
16
  readonly BUILD_STAGE: "usage/applications/creating-application/ci-pipeline#build-stage";
17
17
  readonly APP_TAGS: "usage/applications/create-application#tags";
18
- readonly BLOB_STORAGE: "getting-started/install/installation-configuration#configuration-of-blob-storage";
18
+ readonly BLOB_STORAGE: "configurations-overview/installation-configuration#configuration-of-blob-storage";
19
19
  readonly BULK_UPDATE: "usage/bulk-update";
20
20
  readonly CHART_GROUP: "usage/deploy-chart/chart-group";
21
21
  readonly CHART_LIST: "usage/deploy-chart/overview-of-charts";
@@ -30,7 +30,9 @@ export declare const DOCUMENTATION: {
30
30
  readonly EXTERNAL_LINKS: "getting-started/global-configurations/external-links";
31
31
  readonly EXTERNAL_SECRET: "usage/applications/creating-application/secrets#external-secrets";
32
32
  readonly HOME_PAGE: "https://devtron.ai";
33
+ readonly DOC_HOME_PAGE: "https://docs.devtron.ai";
33
34
  readonly KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally";
35
+ readonly JOBS: "usage/jobs";
34
36
  readonly TAINT: "usage/resource-browser#taint-a-node";
35
37
  readonly GLOBAL_CONFIG_API_TOKEN: "getting-started/global-configurations/authorization/api-tokens";
36
38
  readonly GLOBAL_CONFIG_BUILD_INFRA: "global-configurations/build-infra";
@@ -40,16 +42,16 @@ export declare const DOCUMENTATION: {
40
42
  readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "getting-started/global-configurations/custom-charts#prerequisites";
41
43
  readonly GLOBAL_CONFIG_DOCKER: "getting-started/global-configurations/container-registries";
42
44
  readonly GLOBAL_CONFIG_GIT: "getting-started/global-configurations/git-accounts";
43
- readonly GLOBAL_CONFIG_GITOPS: "getting-started/global-configurations/gitops";
45
+ readonly GLOBAL_CONFIG_GITOPS: "global-configurations/gitops";
44
46
  readonly GLOBAL_CONFIG_GITOPS_GITHUB: "global-configurations/gitops#github";
45
47
  readonly GLOBAL_CONFIG_GITOPS_GITLAB: "global-configurations/gitops#gitlab";
46
48
  readonly GLOBAL_CONFIG_GITOPS_AZURE: "global-configurations/gitops#azure";
47
49
  readonly GLOBAL_CONFIG_GITOPS_BITBUCKET: "global-configurations/gitops#bitbucket";
48
50
  readonly GLOBAL_CONFIG_GROUPS: "getting-started/global-configurations/authorization/permission-groups";
49
- readonly GLOBAL_CONFIG_HOST_URL: "getting-started/global-configurations/host-url";
51
+ readonly GLOBAL_CONFIG_HOST_URL: "global-configurations/host-url";
50
52
  readonly GLOBAL_CONFIG_NOTIFICATION: "getting-started/global-configurations/manage-notification";
51
53
  readonly GLOBAL_CONFIG_PERMISSION: "global-configurations/authorization/user-access#devtron-apps-permissions";
52
- readonly GLOBAL_CONFIG_PROJECT: "getting-started/global-configurations/projects";
54
+ readonly GLOBAL_CONFIG_PROJECT: "global-configurations/projects";
53
55
  readonly GLOBAL_CONFIG_SSO: "getting-started/global-configurations/sso-login";
54
56
  readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "getting-started/global-configurations/scoped-variables";
55
57
  readonly GLOBAL_CONFIG_USER: "getting-started/global-configurations/authorization/user-access";
@@ -1,3 +1,4 @@
1
1
  export { DOCUMENTATION } from './constants';
2
2
  export { DocLink } from './DocLink';
3
+ export type { DocLinkProps } from './types';
3
4
  export { getDocumentationUrl } from './utils';
@@ -0,0 +1,18 @@
1
+ import { MouseEvent } from 'react';
2
+ import { ButtonComponentType, ButtonProps } from '..';
3
+ import { DOCUMENTATION } from './constants';
4
+ export type BaseDocLink<T extends boolean> = {
5
+ isExternalLink?: T;
6
+ isEnterprise?: boolean;
7
+ docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
8
+ };
9
+ export type DocLinkProps<T extends boolean> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
10
+ text?: string;
11
+ showExternalIcon?: boolean;
12
+ onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
13
+ /**
14
+ * If `true`, the documentation will open in a new browser tab instead of the side panel.
15
+ * @default false
16
+ */
17
+ openInNewTab?: boolean;
18
+ };
@@ -1,2 +1,2 @@
1
1
  import { FeatureDescriptionModalProps } from './types';
2
- export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, isEnterprise, }: FeatureDescriptionModalProps) => JSX.Element;
2
+ export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DescriptorProps } from './types';
2
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, isEnterprise, }: DescriptorProps) => JSX.Element;
2
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, }: DescriptorProps) => JSX.Element;
3
3
  export default FeatureTitleWithInfo;
@@ -1,10 +1,10 @@
1
1
  import { default as React, ReactNode } from 'react';
2
- import { DocLinkProps } from '@Shared/DocLink/types';
3
2
  import { ImageType } from '../../../Common';
4
3
  import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
5
- interface BaseFeatureDescriptionModalProps<T extends boolean = false> {
4
+ import { DocLinkProps } from '../DocLink';
5
+ interface BaseFeatureDescriptionModalProps {
6
6
  renderDescriptionContent?: () => ReactNode;
7
- docLink?: DocLinkProps<T>['docLinkKey'];
7
+ docLink?: DocLinkProps<false>['docLinkKey'];
8
8
  imageVariant?: ImageType;
9
9
  SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
10
10
  imageStyles?: React.CSSProperties;
@@ -34,7 +34,6 @@ export type FeatureDescriptionModalProps = {
34
34
  title: string;
35
35
  closeModalText?: string;
36
36
  closeModal?: () => void;
37
- isEnterprise?: boolean;
38
37
  } & ((BaseFeatureDescriptionModalProps & {
39
38
  tabsConfig?: never;
40
39
  }) | FeatureDescriptionModalWithTabsConfig);
@@ -55,6 +54,5 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
55
54
  * @default false
56
55
  */
57
56
  showInfoIcon?: boolean;
58
- isEnterprise?: boolean;
59
57
  };
60
58
  export {};
@@ -1,3 +1,2 @@
1
- import { AnimatePresence, motion } from 'framer-motion';
2
- export * from './MotionDiv';
3
- export { AnimatePresence, motion };
1
+ import { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue } from 'framer-motion';
2
+ export { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue };
@@ -1,3 +1,3 @@
1
1
  import { PageHeaderType } from './types';
2
- declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, isEnterprise, }: PageHeaderType) => JSX.Element;
2
+ declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, }: PageHeaderType) => JSX.Element;
3
3
  export default PageHeader;
@@ -1,12 +1,8 @@
1
- import { ModuleStatus } from '../../types';
2
- import { DOCUMENTATION, ResponseType, TippyCustomizedProps } from '../../../Common';
1
+ import { InstallationType, ModuleStatus } from '../../types';
2
+ import { ResponseType, TippyCustomizedProps } from '../../../Common';
3
3
  import { ActionMenuProps } from '../ActionMenu';
4
- export declare enum InstallationType {
5
- OSS_KUBECTL = "oss_kubectl",
6
- OSS_HELM = "oss_helm",
7
- ENTERPRISE = "enterprise"
8
- }
9
- export interface PageHeaderType<T extends boolean = false> {
4
+ import { DOCUMENTATION } from '../DocLink';
5
+ export interface PageHeaderType {
10
6
  headerName?: string;
11
7
  showTabs?: boolean;
12
8
  additionalHeaderInfo?: () => JSX.Element;
@@ -17,14 +13,13 @@ export interface PageHeaderType<T extends boolean = false> {
17
13
  showCloseButton?: boolean;
18
14
  onClose?: () => void;
19
15
  markAsBeta?: boolean;
20
- tippyProps?: Pick<TippyCustomizedProps<T>, 'additionalContent'> & {
16
+ tippyProps?: Pick<TippyCustomizedProps<false>, 'additionalContent'> & {
21
17
  isTippyCustomized?: boolean;
22
18
  tippyRedirectLink?: keyof typeof DOCUMENTATION;
23
19
  TippyIcon?: React.FunctionComponent<any>;
24
20
  tippyMessage?: string;
25
21
  onClickTippyButton?: () => void;
26
22
  };
27
- isEnterprise?: boolean;
28
23
  }
29
24
  export interface ServerInfo {
30
25
  currentVersion: string;
@@ -38,6 +38,7 @@ export declare const iconMap: {
38
38
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
39
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
40
  'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
41
+ 'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
41
42
  'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
42
43
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
43
44
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -62,6 +63,8 @@ export declare const iconMap: {
62
63
  'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
64
  'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
65
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
+ 'ic-environment-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
+ 'ic-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
68
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
69
  'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
70
  'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -129,6 +132,7 @@ export declare const iconMap: {
129
132
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
130
133
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
131
134
  'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
135
+ 'ic-shapes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
132
136
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
133
137
  'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
134
138
  'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,3 +1,3 @@
1
1
  import { InfoIconTippyProps } from '../../../Common/Types';
2
- declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, isEnterprise, isExternalLink, }: InfoIconTippyProps<T>) => JSX.Element;
2
+ declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, isExternalLink, openInNewTab, }: InfoIconTippyProps<T>) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -1,3 +1,3 @@
1
1
  import { ModalSidebarPanelProps } from './types';
2
- declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, isEnterprise, }: ModalSidebarPanelProps) => JSX.Element;
2
+ declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, }: ModalSidebarPanelProps) => JSX.Element;
3
3
  export default ModalSidebarPanel;