@devtron-labs/devtron-fe-common-lib 1.14.2-beta-0 → 1.14.2-beta-3

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 (94) hide show
  1. package/dist/{@code-editor-BuYqYK_U.js → @code-editor-BFAjlLLM.js} +10603 -10793
  2. package/dist/{@common-rjsf-C-srMZXE.js → @common-rjsf-BXCRwIYr.js} +2 -2
  3. package/dist/{@framer-motion-62wGf8yQ.js → @framer-motion-eB9Rj-_8.js} +3 -3
  4. package/dist/{@react-dates-CYMJp3U9.js → @react-dates-CJpoumtu.js} +1 -1
  5. package/dist/{@react-select-DwgZP5FJ.js → @react-select-CUbAbK6L.js} +6 -6
  6. package/dist/{@react-virtualized-sticky-tree-fnroedPy.js → @react-virtualized-sticky-tree-Ckb5S1RC.js} +1 -1
  7. package/dist/{@vendor-CShVblFI.js → @vendor-4cEd9dja.js} +18690 -18509
  8. package/dist/Common/API/index.d.ts +0 -2
  9. package/dist/Common/Constants.d.ts +11 -4
  10. package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
  11. package/dist/Common/SegmentedControl/types.d.ts +2 -3
  12. package/dist/Common/TippyCustomized.d.ts +1 -1
  13. package/dist/Common/Types.d.ts +6 -8
  14. package/dist/Shared/Components/ActionMenu/types.d.ts +4 -31
  15. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +2 -4
  16. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  17. package/dist/Shared/Components/Button/constants.d.ts +0 -1
  18. package/dist/Shared/Components/Button/types.d.ts +1 -14
  19. package/dist/Shared/Components/Button/utils.d.ts +1 -1
  20. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  21. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +2 -1
  22. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
  23. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -18
  24. package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +1 -1
  25. package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
  26. package/dist/Shared/Components/CodeEditor/Extensions/findAndReplace.d.ts +1 -2
  27. package/dist/Shared/Components/CodeEditor/types.d.ts +1 -14
  28. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +18 -1
  29. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +2 -0
  30. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +7 -0
  31. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
  32. package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +41 -0
  33. package/dist/Shared/Components/DiffViewer/constants.d.ts +2 -0
  34. package/dist/Shared/Components/DiffViewer/index.d.ts +1 -0
  35. package/dist/Shared/Components/DiffViewer/types.d.ts +9 -0
  36. package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +1 -1
  37. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
  38. package/dist/Shared/Components/DynamicDataTable/types.d.ts +4 -8
  39. package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -2
  40. package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +2 -0
  41. package/dist/Shared/Components/FramerComponents/index.d.ts +3 -2
  42. package/dist/Shared/Components/GenericInfoCard/index.d.ts +1 -3
  43. package/dist/Shared/Components/GenericInfoCard/types.d.ts +0 -13
  44. package/dist/Shared/Components/Header/types.d.ts +8 -8
  45. package/dist/Shared/Components/Header/utils.d.ts +2 -0
  46. package/dist/Shared/Components/Icon/Icon.d.ts +0 -6
  47. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  48. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  49. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -1
  50. package/dist/Shared/Components/LogoutCard.d.ts +10 -0
  51. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -2
  52. package/dist/Shared/Components/NumbersCount/index.d.ts +0 -1
  53. package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
  54. package/dist/Shared/Components/Popover/types.d.ts +8 -5
  55. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
  56. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  57. package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
  58. package/dist/Shared/Components/ThemeSwitcher/index.d.ts +1 -0
  59. package/dist/Shared/Components/ThemeSwitcher/types.d.ts +1 -1
  60. package/dist/Shared/Components/index.d.ts +1 -2
  61. package/dist/Shared/Helpers.d.ts +0 -1
  62. package/dist/Shared/Providers/index.d.ts +1 -1
  63. package/dist/Shared/Providers/types.d.ts +0 -20
  64. package/dist/Shared/Services/app.types.d.ts +7 -2
  65. package/dist/Shared/constants.d.ts +2 -2
  66. package/dist/Shared/types.d.ts +7 -27
  67. package/dist/Shared/validations.d.ts +0 -1
  68. package/dist/assets/@code-editor.css +1 -1
  69. package/dist/assets/ic-arrow-square-out.3d1a0d41.svg +19 -0
  70. package/dist/index.d.ts +0 -16
  71. package/dist/index.js +782 -800
  72. package/package.json +3 -3
  73. package/dist/Common/API/QueryClientProvider.d.ts +0 -2
  74. package/dist/Common/API/useQueryClient.d.ts +0 -6
  75. package/dist/Shared/Components/DocLink/DocLink.d.ts +0 -2
  76. package/dist/Shared/Components/DocLink/constants.d.ts +0 -94
  77. package/dist/Shared/Components/DocLink/index.d.ts +0 -4
  78. package/dist/Shared/Components/DocLink/types.d.ts +0 -18
  79. package/dist/Shared/Components/DocLink/utils.d.ts +0 -2
  80. package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +0 -2
  81. package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +0 -2
  82. package/dist/Shared/Components/Header/ProfileMenu.d.ts +0 -2
  83. package/dist/Shared/Components/Switch/Switch.component.d.ts +0 -3
  84. package/dist/Shared/Components/Switch/constants.d.ts +0 -14
  85. package/dist/Shared/Components/Switch/index.d.ts +0 -2
  86. package/dist/Shared/Components/Switch/types.d.ts +0 -102
  87. package/dist/Shared/Components/Switch/utils.d.ts +0 -12
  88. package/dist/assets/empty-create.661d9355.png +0 -0
  89. package/dist/assets/ic-app-template.82736707.svg +0 -23
  90. package/dist/assets/ic-devtron-app.a8b688d3.svg +0 -23
  91. package/dist/assets/ic-devtron-job.1b216232.svg +0 -10
  92. package/dist/assets/ic-email.78fed574.svg +0 -3
  93. package/dist/assets/ic-key-enter.59d23056.svg +0 -3
  94. package/dist/assets/ic-spray-can.624b202a.svg +0 -3
@@ -1,8 +1,5 @@
1
1
  import { MouseEventHandler, ReactElement } from 'react';
2
2
  import { LinkProps } from 'react-router-dom';
3
- import { GenericFilterEmptyStateProps } from '@Common/EmptyState/types';
4
- import { GenericEmptyStateType } from '../../../Common/Types';
5
- import { APIResponseHandlerProps } from '../APIResponseHandler';
6
3
  type BaseGenericInfoCardProps = {
7
4
  title: string;
8
5
  description: string;
@@ -26,14 +23,4 @@ export type GenericInfoCardProps = {
26
23
  } & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
27
24
  isLoading?: boolean;
28
25
  } & BaseGenericInfoCardProps));
29
- export interface GenericInfoCardListingProps extends Pick<GenericInfoCardProps, 'borderVariant'>, Pick<GenericFilterEmptyStateProps, 'handleClearFilters'> {
30
- list: (Pick<GenericInfoCardProps, 'Icon' | 'author' | 'description' | 'linkProps' | 'onClick' | 'title'> & Record<'id', string>)[];
31
- emptyStateConfig: Pick<GenericEmptyStateType, 'title' | 'subTitle' | 'image' | 'renderButton' | 'renderButton'>;
32
- searchKey?: string;
33
- reloadList: () => void;
34
- error?: APIResponseHandlerProps['error'];
35
- isLoading?: boolean;
36
- }
37
- export interface GenericInfoListSkeletonProps extends Partial<Pick<GenericInfoCardProps, 'borderVariant'>> {
38
- }
39
26
  export {};
@@ -1,7 +1,11 @@
1
- import { InstallationType, ModuleStatus } from '../../types';
1
+ import { ModuleStatus } from '../../types';
2
2
  import { ResponseType, TippyCustomizedProps } from '../../../Common';
3
3
  import { ActionMenuProps } from '../ActionMenu';
4
- import { DOCUMENTATION } from '../DocLink';
4
+ export declare enum InstallationType {
5
+ OSS_KUBECTL = "oss_kubectl",
6
+ OSS_HELM = "oss_helm",
7
+ ENTERPRISE = "enterprise"
8
+ }
5
9
  export interface PageHeaderType {
6
10
  headerName?: string;
7
11
  showTabs?: boolean;
@@ -13,9 +17,9 @@ export interface PageHeaderType {
13
17
  showCloseButton?: boolean;
14
18
  onClose?: () => void;
15
19
  markAsBeta?: boolean;
16
- tippyProps?: Pick<TippyCustomizedProps<false>, 'additionalContent'> & {
20
+ tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
17
21
  isTippyCustomized?: boolean;
18
- tippyRedirectLink?: keyof typeof DOCUMENTATION;
22
+ tippyRedirectLink?: string;
19
23
  TippyIcon?: React.FunctionComponent<any>;
20
24
  tippyMessage?: string;
21
25
  onClickTippyButton?: () => void;
@@ -48,7 +52,3 @@ export declare enum HelpMenuItems {
48
52
  RAISE_ISSUE_REQUEST = "raise-issue-request"
49
53
  }
50
54
  export type HelpButtonActionMenuProps = ActionMenuProps<HelpMenuItems>;
51
- export interface ProfileMenuProps {
52
- user: string;
53
- onClick?: () => void;
54
- }
@@ -1,7 +1,9 @@
1
+ import { DevtronLicenseInfo } from '../License';
1
2
  import { HelpButtonActionMenuProps } from './types';
2
3
  export declare const getDateInMilliseconds: (days: any) => number;
3
4
  export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
4
5
  export declare const setActionWithExpiry: (key: string, days: number) => void;
6
+ export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
5
7
  export declare const getHelpActionMenuOptions: ({ isEnterprise, isTrial, }: {
6
8
  isEnterprise: boolean;
7
9
  isTrial: boolean;
@@ -6,7 +6,6 @@ export declare const iconMap: {
6
6
  'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
7
  'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
8
  'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
- 'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
9
  'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
10
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
11
  'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -51,16 +50,13 @@ export declare const iconMap: {
51
50
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
51
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
52
  'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
- 'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
53
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
- 'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
54
  'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
55
  'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
56
  'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
57
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
58
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
59
  'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
- 'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
60
  'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
61
  'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
62
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -104,7 +100,6 @@ export declare const iconMap: {
104
100
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
105
101
  'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
106
102
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
107
- 'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
108
103
  'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
109
104
  'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
105
  'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -149,7 +144,6 @@ export declare const iconMap: {
149
144
  'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
150
145
  'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
151
146
  'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
152
- 'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
153
147
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
154
148
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
155
149
  'ic-strategy-blue-green-color': 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, isExternalLink, openInNewTab, }: InfoIconTippyProps<T>) => JSX.Element;
2
+ declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -1,2 +1,2 @@
1
1
  import { KeyValueTableProps } from './KeyValueTable.types';
2
- export declare const KeyValueTable: ({ headerLabel, rows: initialRows, placeholder, maskValue, isSortable, headerComponent, onChange, isAdditionNotAllowed, shouldAutoFocusOnMount, readOnly, showError, validationSchema: parentValidationSchema, onError, validateDuplicateKeys, validateEmptyKeys, }: KeyValueTableProps) => JSX.Element;
2
+ export declare const KeyValueTable: ({ headerLabel, rows: initialRows, placeholder, maskValue, isSortable, headerComponent, onChange, isAdditionNotAllowed, readOnly, showError, validationSchema: parentValidationSchema, onError, validateDuplicateKeys, validateEmptyKeys, }: KeyValueTableProps) => JSX.Element;
@@ -55,7 +55,7 @@ export interface KeyValueTableData extends Pick<KeyValueTableRowType, 'id'> {
55
55
  /**
56
56
  * Props for the KeyValueTable component.
57
57
  */
58
- export type KeyValueTableProps = Pick<DynamicDataTableProps<KeyValueTableDataType>, 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent' | 'shouldAutoFocusOnMount'> & {
58
+ export type KeyValueTableProps = Pick<DynamicDataTableProps<KeyValueTableDataType>, 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent'> & {
59
59
  /**
60
60
  * The label for the table header.
61
61
  */
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface LogoutCardType {
3
+ className: string;
4
+ userFirstLetter: string;
5
+ setShowLogOutCard: React.Dispatch<React.SetStateAction<boolean>>;
6
+ showLogOutCard: boolean;
7
+ }
8
+ export declare const LOGOUT_CARD_BASE_BUTTON_CLASS = "dc__unset-button-styles dc__content-space px-12 py-8 fs-13 fw-4 lh-20 cursor w-100 flex left br-4";
9
+ declare const LogoutCard: ({ className, userFirstLetter, setShowLogOutCard, showLogOutCard }: LogoutCardType) => JSX.Element;
10
+ export default LogoutCard;
@@ -1,9 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- import { DocLinkProps } from '../DocLink';
3
2
  export interface ModalSidebarPanelProps {
4
3
  rootClassName?: string;
5
4
  heading: string | null;
6
5
  icon?: JSX.Element;
7
6
  children?: ReactNode;
8
- documentationLink: DocLinkProps['docLinkKey'];
7
+ documentationLink: string;
9
8
  }
@@ -1,2 +1 @@
1
1
  export { default as NumbersCount } from './NumbersCount.component';
2
- export * from './types';
@@ -5,4 +5,4 @@ import { PopoverProps } from './types';
5
5
  * @note Use this component in conjunction with the `usePopover` hook to create a custom popover component. \
6
6
  * For example, see the `ActionMenu` component for reference.
7
7
  */
8
- export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps: { bounds, ...triggerProps }, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
8
+ export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { DetailedHTMLProps, KeyboardEvent, LegacyRef, MutableRefObject, ReactElement } from 'react';
1
+ import { DetailedHTMLProps, KeyboardEvent, MutableRefObject, ReactElement } from 'react';
2
2
  import { HTMLMotionProps } from 'framer-motion';
3
3
  import { ButtonProps } from '../Button';
4
4
  export interface UsePopoverProps {
@@ -50,6 +50,11 @@ export interface UsePopoverProps {
50
50
  * @param closePopover - A function to close the popover.
51
51
  */
52
52
  onPopoverKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
53
+ /**
54
+ * Variant of the popover (bg, shadow and styles changes based on variant)
55
+ * @default 'menu'
56
+ */
57
+ variant?: 'menu' | 'overlay';
53
58
  }
54
59
  /**
55
60
  * Represents the return type of the `usePopover` hook, providing properties and methods
@@ -64,9 +69,7 @@ export interface UsePopoverReturnType {
64
69
  * Props to be spread onto the trigger element that opens the popover.
65
70
  * These props include standard HTML attributes for a `div` element.
66
71
  */
67
- triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
68
- bounds: Pick<DOMRect, 'left' | 'top' | 'height' | 'width'>;
69
- };
72
+ triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
70
73
  /**
71
74
  * Props to be spread onto the overlay element of the popover.
72
75
  * These props include standard HTML attributes for a `div` element.
@@ -83,7 +86,7 @@ export interface UsePopoverReturnType {
83
86
  * A mutable reference to the scrollable element inside the popover. \
84
87
  * This reference should be assigned to the element that is scrollable.
85
88
  */
86
- scrollableRef: MutableRefObject<any> | LegacyRef<any>;
89
+ scrollableRef: MutableRefObject<HTMLElement>;
87
90
  /**
88
91
  * A function to close the popover.
89
92
  */
@@ -1,2 +1,2 @@
1
1
  import { UsePopoverProps, UsePopoverReturnType } from './types';
2
- export declare const usePopover: ({ id, position, alignment, width, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
2
+ export declare const usePopover: ({ id, position, alignment, width, variant, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
@@ -1,7 +1,7 @@
1
1
  import { SEVERITIES } from './constants';
2
2
  import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--R500)" | "var(--N300)" | "var(--G500)" | "var(--Y500)" | "var(--R700)" | "var(--O500)";
4
+ color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--Y500)" | "var(--G500)" | "var(--R700)";
5
5
  label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
@@ -1,3 +1,3 @@
1
1
  import { ThemeSwitcherProps } from './types';
2
- declare const ThemeSwitcher: ({ onClick }: ThemeSwitcherProps) => JSX.Element;
2
+ declare const ThemeSwitcher: ({ onChange }: ThemeSwitcherProps) => JSX.Element;
3
3
  export default ThemeSwitcher;
@@ -1 +1,2 @@
1
1
  export { default as ThemeSwitcher } from './ThemeSwitcher.component';
2
+ export type { ThemeSwitcherProps } from './types';
@@ -1,3 +1,3 @@
1
1
  export interface ThemeSwitcherProps {
2
- onClick?: () => void;
2
+ onChange: () => void;
3
3
  }
@@ -26,7 +26,7 @@ export * from './DatePicker';
26
26
  export * from './DeploymentConfigDiff';
27
27
  export * from './DeploymentStatusBreakdown';
28
28
  export * from './DetectBottom';
29
- export * from './DocLink';
29
+ export * from './DiffViewer';
30
30
  export * from './DynamicDataTable';
31
31
  export * from './EditableTextArea';
32
32
  export * from './EditImageFormField';
@@ -72,7 +72,6 @@ export * from './SelectPicker';
72
72
  export * from './ShowMoreText';
73
73
  export * from './SSOProviderIcon';
74
74
  export * from './StatusComponent';
75
- export * from './Switch';
76
75
  export * from './TabGroup';
77
76
  export * from './Table';
78
77
  export * from './TagsKeyValueTable';
@@ -101,5 +101,4 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
101
101
  export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
102
102
  export declare const clearCookieOnLogout: () => void;
103
103
  export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
104
- export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
105
104
  export {};
@@ -1,5 +1,5 @@
1
1
  export * from './ImageSelectionUtility';
2
2
  export * from './MainContextProvider';
3
3
  export * from './ThemeProvider';
4
- export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
4
+ export type { MainContext, ReloadVersionConfigTypes } from './types';
5
5
  export * from './UserEmailProvider';
@@ -11,14 +11,6 @@ export interface ReloadVersionConfigTypes {
11
11
  updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
12
12
  isRefreshing: boolean;
13
13
  }
14
- export interface SidePanelConfig {
15
- /** Determines whether the side panel is visible */
16
- open: boolean;
17
- /** Optional flag to reset/reinitialize the side panel state */
18
- reinitialize?: boolean;
19
- /** URL to documentation that should be displayed in the panel */
20
- docLink: string | null;
21
- }
22
14
  export interface MainContext {
23
15
  serverMode: SERVER_MODE;
24
16
  setServerMode: (serverMode: SERVER_MODE) => void;
@@ -66,18 +58,6 @@ export interface MainContext {
66
58
  reloadVersionConfig: ReloadVersionConfigTypes;
67
59
  intelligenceConfig: IntelligenceConfig;
68
60
  setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
69
- sidePanelConfig: SidePanelConfig;
70
- setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
71
- /**
72
- * Indicates whether the current Devtron instance is running as an Enterprise edition. \
73
- * This flag is determined based on server-side configuration.
74
- */
75
- isEnterprise: boolean;
76
- /**
77
- * Indicates whether the fe-lib modules are available in the current instance. \
78
- * Used to conditionally render or enable features that depend on fe-lib
79
- */
80
- isFELibAvailable: boolean;
81
61
  }
82
62
  export interface MainContextProviderProps {
83
63
  children: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { KeyValueTableData } from '../Components';
2
- import { TargetPlatformsDTO } from '../types';
2
+ import { DeploymentStrategyType, TargetPlatformsDTO } from '../types';
3
3
  import { OverrideMergeStrategyType } from '../../Pages/Applications';
4
4
  import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
5
5
  interface WebhookDataType {
@@ -237,6 +237,9 @@ export interface PipelineConfigDataDTO {
237
237
  data: Record<string, any>;
238
238
  pipelineTriggerType: string;
239
239
  Strategy: string;
240
+ updatedBy: string;
241
+ updatedOn: string;
242
+ selectedAtRuntime: boolean;
240
243
  }
241
244
  export interface AppEnvDeploymentConfigDTO {
242
245
  deploymentTemplate: DeploymentTemplateDTO | null;
@@ -248,6 +251,8 @@ export interface AppEnvDeploymentConfigDTO {
248
251
  export type AppEnvDeploymentConfigPayloadType = {
249
252
  appName: string;
250
253
  envName: string;
254
+ strategy?: DeploymentStrategyType;
255
+ } & ({
251
256
  configType: AppEnvDeploymentConfigType;
252
257
  wfrId?: number;
253
258
  pipelineId?: number;
@@ -261,7 +266,7 @@ export type AppEnvDeploymentConfigPayloadType = {
261
266
  pipelineId: number;
262
267
  configArea: 'CdRollback' | 'DeploymentHistory';
263
268
  wfrId: number;
264
- };
269
+ });
265
270
  export declare enum TemplateListType {
266
271
  DefaultVersions = 1,
267
272
  PublishedOnEnvironments = 2,
@@ -1,6 +1,6 @@
1
1
  import { DeploymentNodeType, OptionType } from '../Common/Types';
2
2
  import { InfoBlockProps } from './Components';
3
- import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
3
+ import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
4
4
  export declare const ARTIFACT_STATUS: {
5
5
  PROGRESSING: string;
6
6
  DEGRADED: string;
@@ -429,4 +429,4 @@ export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], st
429
429
  export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
430
430
  export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
431
431
  export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
432
- export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
432
+ export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
@@ -1,16 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ParsedCountry } from 'react-international-phone';
3
3
  import { Dayjs } from 'dayjs';
4
- import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
4
+ import { APIOptions, ApprovalConfigDataType, Strategy } from '../Common/Types';
5
5
  import { ReleaseMode } from '../Pages/index';
6
- import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
6
+ import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerError, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
7
7
  import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
8
8
  import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
9
- export declare enum InstallationType {
10
- OSS_KUBECTL = "oss_kubectl",
11
- OSS_HELM = "oss_helm",
12
- ENTERPRISE = "enterprise"
13
- }
14
9
  export declare enum EnvType {
15
10
  CHART = "helm_charts",
16
11
  APPLICATION = "apps"
@@ -834,26 +829,6 @@ export interface UploadFileProps {
834
829
  export type Never<T> = {
835
830
  [K in keyof T]?: never;
836
831
  };
837
- /**
838
- * A utility type that filters out properties from type `T` that are of type `never`. \
839
- * This is useful when you want to remove properties that have been marked as `never` from a type,
840
- * effectively creating a new type without those properties.
841
- *
842
- * @template T - The input type from which to filter out `never` properties.
843
- * @example
844
- * ```typescript
845
- * type User = {
846
- * id: number;
847
- * name: string;
848
- * deleted: never;
849
- * }
850
- *
851
- * type ActiveUser = OmitNever<User>; // { id: number; name: string; }
852
- * ```
853
- */
854
- export type OmitNever<T> = {
855
- [K in keyof T as T[K] extends never ? never : K]: T[K];
856
- };
857
832
  export interface TargetPlatformItemDTO {
858
833
  name: string;
859
834
  }
@@ -1097,4 +1072,9 @@ export interface IntelligenceConfig {
1097
1072
  export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
1098
1073
  export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
1099
1074
  export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
1075
+ export interface PipelineDeploymentStrategy {
1076
+ pipelineId: number;
1077
+ strategies: Strategy[];
1078
+ error: ServerError;
1079
+ }
1100
1080
  export {};
@@ -59,4 +59,3 @@ export declare const validateCMVolumeMountPath: (value: string) => {
59
59
  message: string;
60
60
  };
61
61
  export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;
62
- export declare const validateEmail: (email: string) => ValidationResponseType;