@devtron-labs/devtron-fe-common-lib 1.13.0 → 1.14.0-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.
- package/dist/{@common-rjsf-BUC7SZkT.js → @code-editor-B69T0-41.js} +16242 -15532
- package/dist/@common-rjsf-Ch0_Br8s.js +617 -0
- package/dist/{@framer-motion-BL6-Hrrc.js → @framer-motion-VKSq0pI-.js} +81 -81
- package/dist/{@react-dates-CIHHgq4p.js → @react-dates-BKm8GUm7.js} +1 -1
- package/dist/{@react-select-BVKpsqGO.js → @react-select-E1-1raR9.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CjKfeUxB.js → @react-virtualized-sticky-tree-CX7rnH5N.js} +1 -1
- package/dist/{@vendor-CekuMgQx.js → @vendor-C7aZvnhu.js} +27236 -25523
- package/dist/Common/API/QueryClientProvider.d.ts +2 -0
- package/dist/Common/API/index.d.ts +2 -0
- package/dist/Common/API/useQueryClient.d.ts +6 -0
- package/dist/Common/Checkbox/Checkbox.d.ts +2 -0
- package/dist/Common/Checkbox/index.d.ts +1 -0
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Constants.d.ts +1 -11
- package/dist/Common/Drawer/index.d.ts +1 -0
- package/dist/Common/EmptyState/index.d.ts +2 -0
- package/dist/Common/Helper.d.ts +5 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/SegmentedBarChart/types.d.ts +11 -2
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/Toggle/Toggle.d.ts +4 -1
- package/dist/Common/Types.d.ts +12 -6
- package/dist/Common/index.d.ts +3 -3
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
- package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +43 -0
- package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +2 -0
- package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +88 -11
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +275 -0
- package/dist/Shared/Components/ActionMenu/utils.d.ts +7 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +2 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/constants.d.ts +4 -0
- package/dist/Shared/Components/AppStatusModal/index.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/service.d.ts +4 -0
- package/dist/Shared/Components/AppStatusModal/types.d.ts +84 -0
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +8 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +2 -2
- package/dist/Shared/Components/Button/types.d.ts +3 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +11 -77
- package/dist/Shared/Components/CICDHistory/utils.d.ts +7 -3
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +10 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +3 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +22 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +20 -0
- package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
- package/dist/Shared/Components/Error/types.d.ts +4 -0
- package/dist/Shared/Components/Error/utils.d.ts +1 -0
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +5 -2
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -3
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +10 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +2 -0
- package/dist/Shared/Components/Header/HelpButton.d.ts +2 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/constants.d.ts +5 -4
- package/dist/Shared/Components/Header/types.d.ts +20 -14
- package/dist/Shared/Components/Header/utils.d.ts +5 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +40 -1
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +30 -8
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
- package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/License/index.d.ts +1 -1
- package/dist/Shared/Components/License/utils.d.ts +2 -1
- package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +3 -0
- package/dist/Shared/Components/LoginBanner/index.d.ts +2 -0
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +4 -2
- package/dist/Shared/Components/Popover/Popover.component.d.ts +8 -0
- package/dist/Shared/Components/Popover/index.d.ts +3 -0
- package/dist/Shared/Components/Popover/types.d.ts +105 -0
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +2 -0
- package/dist/Shared/Components/Popover/utils.d.ts +92 -0
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +2 -0
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +4 -0
- package/dist/Shared/Components/StatusComponent/types.d.ts +2 -1
- package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +33 -7
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -2
- package/dist/Shared/Components/index.d.ts +2 -2
- package/dist/Shared/DocLink/DocLink.d.ts +2 -0
- package/dist/Shared/DocLink/constants.d.ts +91 -0
- package/dist/Shared/DocLink/index.d.ts +3 -0
- package/dist/Shared/DocLink/types.d.ts +11 -0
- package/dist/Shared/DocLink/utils.d.ts +2 -0
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +11 -1
- package/dist/Shared/constants.d.ts +18 -24
- package/dist/Shared/types.d.ts +110 -2
- package/dist/assets/@code-editor.css +1 -0
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/empty-create.661d9355.png +0 -0
- package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
- package/dist/assets/ic-app-template.82736707.svg +23 -0
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
- package/dist/assets/ic-azure-aks.a9e437d5.svg +46 -0
- package/dist/assets/{ic-arrow-square-out.3d1a0d41.svg → ic-bulk-check.0f698efa.svg} +4 -2
- package/dist/assets/ic-bulk-check.99e92f7a.svg +21 -0
- package/dist/assets/ic-caret-down-small.7c4f88bf.svg +3 -0
- package/dist/assets/ic-caret-right.0ff813c2.svg +3 -0
- package/dist/assets/ic-celebration.77350694.svg +238 -0
- package/dist/assets/ic-chat-circle-online.51348da5.svg +4 -0
- package/dist/assets/{ic-medal.a2e911f5.svg → ic-checkbox-hover.0151d832.svg} +4 -3
- package/dist/assets/{ic-k8s-job.f4414c10.svg → ic-checkbox-hover.93e8d66a.svg} +4 -3
- package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +22 -0
- package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +22 -0
- package/dist/assets/ic-checkbox-selected.47444fab.svg +20 -0
- package/dist/assets/ic-checkbox-selected.c5539d6f.svg +20 -0
- package/dist/assets/{ic-check-grey.f556e371.svg → ic-checkbox-unselected.8054e3d7.svg} +2 -4
- package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
- package/dist/assets/ic-cloud-vms.27ea954e.svg +5 -0
- package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
- package/dist/assets/ic-delete-dots.5380e0d0.svg +62 -0
- package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
- package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
- package/dist/assets/ic-disconnect.2ad261fc.svg +3 -0
- package/dist/assets/ic-discord-fill.103b579a.svg +3 -0
- package/dist/assets/ic-edit.3249ed32.svg +3 -0
- package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +3 -0
- package/dist/assets/ic-enterprise-tag.209dd129.svg +43 -0
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
- package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
- package/dist/assets/ic-file-edit.96a172c7.svg +3 -0
- package/dist/assets/ic-file.c3c45e13.svg +3 -0
- package/dist/assets/ic-files.b0ebea46.svg +3 -0
- package/dist/assets/ic-gift-gradient.7690a246.svg +9 -0
- package/dist/assets/ic-gift.9b048fc7.svg +3 -0
- package/dist/assets/ic-gitlab.ac331d67.svg +31 -0
- package/dist/assets/ic-google-gke.07314724.svg +9 -0
- package/dist/assets/ic-install.28c3beec.svg +3 -0
- package/dist/assets/ic-k3s.7f4bf72d.svg +3 -0
- package/dist/assets/ic-kind.bd8ee992.svg +9 -0
- package/dist/assets/ic-laptop.485e21b4.svg +3 -0
- package/dist/assets/ic-man-on-rocket.7f67e914.svg +94 -0
- package/dist/assets/ic-megaphone-left.6b2a00b7.svg +3 -0
- package/dist/assets/ic-megaphone-right.9d6bcd36.svg +3 -0
- package/dist/assets/ic-minikube.d9ff1575.svg +9 -0
- package/dist/assets/ic-mobile.7c649251.svg +4 -0
- package/dist/assets/ic-path.d4fef3b0.svg +3 -0
- package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
- package/dist/assets/ic-terminal.d875cce7.svg +3 -0
- package/dist/assets/ic-thermometer.1bc48079.svg +3 -0
- package/dist/assets/ic-ubuntu.fa47508f.svg +4 -0
- package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
- package/dist/assets/ic-wifi-slash.d0390749.svg +3 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +887 -847
- package/package.json +3 -2
- package/dist/Common/Checkbox.d.ts +0 -5
- package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +0 -3
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -2
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
- package/dist/Shared/Components/Header/HelpNav.d.ts +0 -3
- package/dist/assets/ic-charts.f41e185f.svg +0 -19
- package/dist/assets/ic-chat-circle-dots.e15514f8.svg +0 -23
- package/dist/assets/ic-disconnected.551d6161.svg +0 -29
- package/dist/assets/ic-discord-fill.1a1b291d.svg +0 -19
- package/dist/assets/ic-feedback.d32fa6b0.svg +0 -19
- package/dist/assets/ic-files.fc290dee.svg +0 -19
- package/dist/assets/ic-login-devtron-logo.702a1d04.svg +0 -22
- package/dist/assets/ic-megaphone.b9f9a901.svg +0 -19
- package/dist/assets/ic-onboarding.c98f9ef9.svg +0 -19
- package/dist/assets/ic-timeout-red.5eda1010.svg +0 -21
@@ -0,0 +1,105 @@
|
|
1
|
+
import { DetailedHTMLProps, KeyboardEvent, MutableRefObject, ReactElement } from 'react';
|
2
|
+
import { HTMLMotionProps } from 'framer-motion';
|
3
|
+
import { ButtonProps } from '../Button';
|
4
|
+
export interface UsePopoverProps {
|
5
|
+
/**
|
6
|
+
* A unique identifier for the popover.
|
7
|
+
*/
|
8
|
+
id: string;
|
9
|
+
/**
|
10
|
+
* The width of the popover.
|
11
|
+
* Can be a number representing the width in pixels or the string `'auto'` for automatic sizing (up to 250px).
|
12
|
+
* @default 'auto'
|
13
|
+
*/
|
14
|
+
width?: number | 'auto';
|
15
|
+
/**
|
16
|
+
* The position of the popover relative to its trigger element.
|
17
|
+
* Possible values are:
|
18
|
+
* - `'bottom'`: Positions the popover below the trigger.
|
19
|
+
* - `'top'`: Positions the popover above the trigger.
|
20
|
+
* - `'left'`: Positions the popover to the left of the trigger.
|
21
|
+
* - `'right'`: Positions the popover to the right of the trigger.
|
22
|
+
* @default 'bottom'
|
23
|
+
*/
|
24
|
+
position?: 'bottom' | 'top' | 'left' | 'right';
|
25
|
+
/**
|
26
|
+
* The alignment of the popover relative to its trigger element.
|
27
|
+
* Possible values are:
|
28
|
+
* - `'start'`: Aligns the popover to the start of the trigger.
|
29
|
+
* - `'middle'`: Aligns the popover to the center of the trigger.
|
30
|
+
* - `'end'`: Aligns the popover to the end of the trigger.
|
31
|
+
* @default 'start'
|
32
|
+
*/
|
33
|
+
alignment?: 'start' | 'middle' | 'end';
|
34
|
+
/**
|
35
|
+
* Callback function triggered when the popover is opened or closed.
|
36
|
+
* @param open - A boolean indicating whether the popover is open.
|
37
|
+
*/
|
38
|
+
onOpen?: (open: boolean) => void;
|
39
|
+
/**
|
40
|
+
* Callback function triggered when a key is pressed while the trigger element is focused.
|
41
|
+
* @param e - The keyboard event.
|
42
|
+
* @param openState - A boolean indicating whether the popover is currently open.
|
43
|
+
* @param closePopover - A function to close the popover.
|
44
|
+
*/
|
45
|
+
onTriggerKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
|
46
|
+
/**
|
47
|
+
* Callback function triggered when a key is pressed while the popover is focused.
|
48
|
+
* @param e - The keyboard event.
|
49
|
+
* @param openState - A boolean indicating whether the popover is currently open.
|
50
|
+
* @param closePopover - A function to close the popover.
|
51
|
+
*/
|
52
|
+
onPopoverKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* Represents the return type of the `usePopover` hook, providing properties and methods
|
56
|
+
* to manage and interact with a popover component.
|
57
|
+
*/
|
58
|
+
export interface UsePopoverReturnType {
|
59
|
+
/**
|
60
|
+
* Indicates whether the popover is currently open.
|
61
|
+
*/
|
62
|
+
open: boolean;
|
63
|
+
/**
|
64
|
+
* Props to be spread onto the trigger element that opens the popover.
|
65
|
+
* These props include standard HTML attributes for a `div` element.
|
66
|
+
*/
|
67
|
+
triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
68
|
+
/**
|
69
|
+
* Props to be spread onto the overlay element of the popover.
|
70
|
+
* These props include standard HTML attributes for a `div` element.
|
71
|
+
*/
|
72
|
+
overlayProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
73
|
+
/**
|
74
|
+
* Props to be spread onto the popover element itself.
|
75
|
+
* Includes motion-related props for animations and a `ref` to the popover's `div` element.
|
76
|
+
*/
|
77
|
+
popoverProps: HTMLMotionProps<'div'> & {
|
78
|
+
ref: MutableRefObject<HTMLDivElement>;
|
79
|
+
};
|
80
|
+
/**
|
81
|
+
* A mutable reference to the scrollable element inside the popover. \
|
82
|
+
* This reference should be assigned to the element that is scrollable.
|
83
|
+
*/
|
84
|
+
scrollableRef: MutableRefObject<HTMLElement>;
|
85
|
+
/**
|
86
|
+
* A function to close the popover.
|
87
|
+
*/
|
88
|
+
closePopover: () => void;
|
89
|
+
}
|
90
|
+
export type PopoverProps = Pick<UsePopoverReturnType, 'open' | 'overlayProps' | 'popoverProps' | 'triggerProps'> & {
|
91
|
+
/**
|
92
|
+
* Popover contents.
|
93
|
+
* This can be any React element or JSX to render inside the popover.
|
94
|
+
*/
|
95
|
+
children: ReactElement;
|
96
|
+
/**
|
97
|
+
* Properties for the button to which the Popover is attached.
|
98
|
+
*/
|
99
|
+
buttonProps: ButtonProps | null;
|
100
|
+
/**
|
101
|
+
* The React element to which the Popover is attached.
|
102
|
+
* @note only use when `triggerElement` is not `Button` component otherwise use `buttonProps`.
|
103
|
+
*/
|
104
|
+
triggerElement: ReactElement | null;
|
105
|
+
};
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import { HTMLMotionProps } from 'framer-motion';
|
2
|
+
import { UsePopoverProps } from './types';
|
3
|
+
export declare const getPopoverAlignmentStyle: ({ position, alignment }: Pick<UsePopoverProps, "position" | "alignment">) => {
|
4
|
+
right: number;
|
5
|
+
left?: undefined;
|
6
|
+
bottom?: undefined;
|
7
|
+
top?: undefined;
|
8
|
+
} | {
|
9
|
+
left: string;
|
10
|
+
right?: undefined;
|
11
|
+
bottom?: undefined;
|
12
|
+
top?: undefined;
|
13
|
+
} | {
|
14
|
+
left: number;
|
15
|
+
right?: undefined;
|
16
|
+
bottom?: undefined;
|
17
|
+
top?: undefined;
|
18
|
+
} | {
|
19
|
+
bottom: number;
|
20
|
+
right?: undefined;
|
21
|
+
left?: undefined;
|
22
|
+
top?: undefined;
|
23
|
+
} | {
|
24
|
+
top: string;
|
25
|
+
right?: undefined;
|
26
|
+
left?: undefined;
|
27
|
+
bottom?: undefined;
|
28
|
+
} | {
|
29
|
+
top: number;
|
30
|
+
right?: undefined;
|
31
|
+
left?: undefined;
|
32
|
+
bottom?: undefined;
|
33
|
+
};
|
34
|
+
export declare const getPopoverPositionStyle: ({ position }: Pick<UsePopoverProps, "position">) => {
|
35
|
+
bottom: string;
|
36
|
+
marginBottom: number;
|
37
|
+
right?: undefined;
|
38
|
+
marginRight?: undefined;
|
39
|
+
left?: undefined;
|
40
|
+
marginLeft?: undefined;
|
41
|
+
top?: undefined;
|
42
|
+
marginTop?: undefined;
|
43
|
+
} | {
|
44
|
+
right: string;
|
45
|
+
marginRight: number;
|
46
|
+
bottom?: undefined;
|
47
|
+
marginBottom?: undefined;
|
48
|
+
left?: undefined;
|
49
|
+
marginLeft?: undefined;
|
50
|
+
top?: undefined;
|
51
|
+
marginTop?: undefined;
|
52
|
+
} | {
|
53
|
+
left: string;
|
54
|
+
marginLeft: number;
|
55
|
+
bottom?: undefined;
|
56
|
+
marginBottom?: undefined;
|
57
|
+
right?: undefined;
|
58
|
+
marginRight?: undefined;
|
59
|
+
top?: undefined;
|
60
|
+
marginTop?: undefined;
|
61
|
+
} | {
|
62
|
+
top: string;
|
63
|
+
marginTop: number;
|
64
|
+
bottom?: undefined;
|
65
|
+
marginBottom?: undefined;
|
66
|
+
right?: undefined;
|
67
|
+
marginRight?: undefined;
|
68
|
+
left?: undefined;
|
69
|
+
marginLeft?: undefined;
|
70
|
+
};
|
71
|
+
export declare const getPopoverFramerProps: ({ position, alignment }: Pick<UsePopoverProps, "position" | "alignment">) => {
|
72
|
+
initial: {
|
73
|
+
[x: string]: number;
|
74
|
+
opacity: number;
|
75
|
+
};
|
76
|
+
animate: {
|
77
|
+
[x: string]: number;
|
78
|
+
opacity: number;
|
79
|
+
};
|
80
|
+
exit: {
|
81
|
+
[x: string]: number;
|
82
|
+
opacity: number;
|
83
|
+
};
|
84
|
+
transformTemplate: HTMLMotionProps<"div">["transformTemplate"];
|
85
|
+
};
|
86
|
+
export declare const getPopoverActualPositionAlignment: ({ position, alignment, triggerRect, popoverRect, }: Pick<UsePopoverProps, "position" | "alignment"> & {
|
87
|
+
triggerRect: DOMRect;
|
88
|
+
popoverRect: DOMRect;
|
89
|
+
}) => {
|
90
|
+
fallbackPosition: "top" | "right" | "bottom" | "left";
|
91
|
+
fallbackAlignment: "start" | "middle" | "end";
|
92
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
|
-
import {
|
2
|
+
import { Entity } from '@Common/SegmentedBarChart/types';
|
3
3
|
import { ServerErrors } from '../../../../Common/ServerError';
|
4
4
|
import { GenericEmptyStateType } from '../../../../Common/Types';
|
5
5
|
import { LastExecutionResultType, Nodes, NodeType } from '../../../types';
|
@@ -72,7 +72,7 @@ export interface StatusType {
|
|
72
72
|
scanToolUrl: string;
|
73
73
|
}
|
74
74
|
export interface InfoCardPropsType extends Pick<StatusType, 'scanToolName' | 'scanToolUrl'> {
|
75
|
-
entities:
|
75
|
+
entities: NonNullable<Entity[]>;
|
76
76
|
lastScanTimeString?: string;
|
77
77
|
}
|
78
78
|
export type DetailViewDataType = {
|
@@ -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(--
|
4
|
+
color: "var(--Y500)" | "var(--R700)" | "var(--R500)" | "var(--G500)" | "var(--N300)" | "var(--O500)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -8,8 +8,10 @@ export declare const SelectPickerControl: <OptionValue>(props: ControlProps<Sele
|
|
8
8
|
export declare const SelectPickerInput: <OptionValue>(props: InputProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
9
9
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
10
10
|
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
11
|
+
export declare const SelectPickerMenuListFooter: ({ menuListFooterConfig, }: Required<Pick<SelectPickerProps, "menuListFooterConfig">>) => JSX.Element;
|
11
12
|
export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
12
13
|
export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
|
13
14
|
export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
|
14
15
|
export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
|
15
16
|
export declare const renderLoadingMessage: () => JSX.Element;
|
17
|
+
export declare const ValueContainerWithLoadingShimmer: (props: ValueContainerProps) => JSX.Element;
|
@@ -40,6 +40,10 @@ type MenuListFooterConfigType = {
|
|
40
40
|
buttonProps: {
|
41
41
|
variant: ButtonVariantType.primary | ButtonVariantType.borderLess;
|
42
42
|
} & Omit<ButtonProps<ButtonComponentType>, 'size' | 'fullWidth' | 'icon' | 'endIcon' | 'variant' | 'style'>;
|
43
|
+
} | {
|
44
|
+
type: 'customNode';
|
45
|
+
value: ReactElement;
|
46
|
+
buttonProps?: never;
|
43
47
|
};
|
44
48
|
declare module 'react-select/base' {
|
45
49
|
interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
@@ -16,7 +16,8 @@ export declare enum StatusType {
|
|
16
16
|
PROGRESSING = "PROGRESSING",
|
17
17
|
INPROGRESS = "INPROGRESS",
|
18
18
|
HIBERNATING = "HIBERNATING",
|
19
|
-
TIMED_OUT = "TIMED_OUT"
|
19
|
+
TIMED_OUT = "TIMED_OUT",
|
20
|
+
DELETING = "DELETING"
|
20
21
|
}
|
21
22
|
export interface StatusComponentProps {
|
22
23
|
/** The status to display, either a predefined StatusType or a custom string. */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TabGroupProps, TabProps } from './TabGroup.types';
|
2
|
-
export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active"> & Pick<TabGroupProps, "size"> & {
|
2
|
+
export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, iconElement, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active" | "iconElement"> & Pick<TabGroupProps, "size"> & {
|
3
3
|
className: string;
|
4
4
|
}) => JSX.Element;
|
5
5
|
export declare const getTabBadge: (badge: TabProps["badge"], className: string) => JSX.Element;
|
@@ -65,6 +65,38 @@ type TabTooltipProps = {
|
|
65
65
|
shouldWrapTooltip?: never;
|
66
66
|
tooltipProps?: never;
|
67
67
|
};
|
68
|
+
/**
|
69
|
+
* Represents the properties for defining an icon in a tab group.
|
70
|
+
* This type allows for three configurations:
|
71
|
+
*
|
72
|
+
* 1. **Icon as a functional component or string**:
|
73
|
+
* - Use the `icon` property to specify either a functional component that renders an SVG or a string representing the name of the icon.
|
74
|
+
* - The `iconElement` property must not be provided in this case.
|
75
|
+
*
|
76
|
+
* 2. **Icon as a JSX element**:
|
77
|
+
* - Use the `iconElement` property to specify a JSX element representing the icon.
|
78
|
+
* - The `icon` property must not be provided in this case.
|
79
|
+
*
|
80
|
+
* 3. **No icon**:
|
81
|
+
* - Neither `icon` nor `iconElement` is provided, resulting in no icon being displayed.
|
82
|
+
*
|
83
|
+
*/
|
84
|
+
type TabGroupIconProp = {
|
85
|
+
/**
|
86
|
+
* A functional component rendering an SVG or a string representing the icon name. Mutually exclusive with `iconElement`.
|
87
|
+
*/
|
88
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
|
89
|
+
iconElement?: never;
|
90
|
+
} | {
|
91
|
+
icon?: never;
|
92
|
+
/**
|
93
|
+
* A JSX element representing the icon. Mutually exclusive with `icon`.
|
94
|
+
*/
|
95
|
+
iconElement: JSX.Element;
|
96
|
+
} | {
|
97
|
+
icon?: never;
|
98
|
+
iconElement?: never;
|
99
|
+
};
|
68
100
|
export type TabProps = {
|
69
101
|
/**
|
70
102
|
* Unique identifier for the tab.
|
@@ -79,12 +111,6 @@ export type TabProps = {
|
|
79
111
|
* @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
|
80
112
|
*/
|
81
113
|
description?: string | string[];
|
82
|
-
/**
|
83
|
-
* Icon to be displayed in the tab.
|
84
|
-
* This can either be a functional component that renders a SVG
|
85
|
-
* or a string representing the name of the icon to be rendered by the Icon component.
|
86
|
-
*/
|
87
|
-
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
|
88
114
|
/**
|
89
115
|
* Badge number to be displayed on the tab, typically for notifications.
|
90
116
|
*/
|
@@ -107,7 +133,7 @@ export type TabProps = {
|
|
107
133
|
* Disables the tab, preventing interaction and indicating an inactive state.
|
108
134
|
*/
|
109
135
|
disabled?: boolean;
|
110
|
-
} & ConditionalTabType & TabTooltipProps;
|
136
|
+
} & ConditionalTabType & TabTooltipProps & TabGroupIconProp;
|
111
137
|
export interface TabGroupProps {
|
112
138
|
/**
|
113
139
|
* Array of tabs to be rendered.
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TargetPlatformListTooltipProps } from './types';
|
2
|
-
declare const TargetPlatformListTooltip: ({ targetPlatforms, children }: TargetPlatformListTooltipProps) => JSX.Element;
|
2
|
+
declare const TargetPlatformListTooltip: ({ targetPlatforms, children, appendTo }: TargetPlatformListTooltipProps) => JSX.Element;
|
3
3
|
export default TargetPlatformListTooltip;
|
@@ -2,6 +2,5 @@ import { TooltipProps } from '@Common/Tooltip/types';
|
|
2
2
|
import { TargetPlatformsDTO } from '../../types';
|
3
3
|
export interface TargetPlatformBadgeListProps extends Required<Pick<TargetPlatformsDTO, 'targetPlatforms'>> {
|
4
4
|
}
|
5
|
-
export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
6
|
-
children: TooltipProps['children'];
|
5
|
+
export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'>, Pick<TooltipProps, 'children' | 'appendTo'> {
|
7
6
|
}
|
@@ -3,8 +3,8 @@ export * from './ActionMenu';
|
|
3
3
|
export * from './ActivityIndicator';
|
4
4
|
export * from './AnimatedDeployButton';
|
5
5
|
export * from './AnimatedTimer';
|
6
|
-
export * from './AnnouncementBanner';
|
7
6
|
export * from './APIResponseHandler';
|
7
|
+
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
10
|
export * from './BulkOperations';
|
@@ -24,12 +24,12 @@ export * from './CountrySelect';
|
|
24
24
|
export * from './CustomInput';
|
25
25
|
export * from './DatePicker';
|
26
26
|
export * from './DeploymentConfigDiff';
|
27
|
+
export * from './DeploymentStatusBreakdown';
|
27
28
|
export * from './DetectBottom';
|
28
29
|
export * from './DiffViewer';
|
29
30
|
export * from './DynamicDataTable';
|
30
31
|
export * from './EditableTextArea';
|
31
32
|
export * from './EditImageFormField';
|
32
|
-
export * from './EnterpriseTag';
|
33
33
|
export * from './EnvironmentSelector';
|
34
34
|
export * from './Error';
|
35
35
|
export * from './ExcludedImageNode';
|
@@ -0,0 +1,91 @@
|
|
1
|
+
export declare const DOCUMENTATION: {
|
2
|
+
readonly ADMIN_PASSWORD: "install/install-devtron#devtron-admin-credentials";
|
3
|
+
readonly APP_CI_CONFIG_BUILD_WITHOUT_DOCKER: "usage/applications/creating-application/docker-build-configuration#build-docker-image-without-dockerfile";
|
4
|
+
readonly APP_CREATE: "usage/applications/create-application";
|
5
|
+
readonly APP_CREATE_CI_CONFIG: "usage/applications/creating-application/docker-build-configuration";
|
6
|
+
readonly APP_CREATE_CONFIG_MAP: "usage/applications/creating-application/config-maps";
|
7
|
+
readonly APP_CREATE_ENVIRONMENT_OVERRIDE: "usage/applications/creating-application/environment-overrides";
|
8
|
+
readonly APP_CREATE_MATERIAL: "usage/applications/creating-application/git-material";
|
9
|
+
readonly APP_CREATE_SECRET: "usage/applications/creating-application/secrets";
|
10
|
+
readonly APP_CREATE_WORKFLOW: "usage/applications/creating-application/workflow";
|
11
|
+
readonly APP_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template";
|
12
|
+
readonly APP_EPHEMERAL_CONTAINER: "usage/applications/app-details/ephemeral-containers";
|
13
|
+
readonly APP_METRICS: "usage/applications/app-details/app-metrics";
|
14
|
+
readonly APP_OVERVIEW_TAGS: "usage/applications/overview#manage-tags";
|
15
|
+
readonly APP_ROLLOUT_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template/rollout-deployment";
|
16
|
+
readonly BUILD_STAGE: "usage/applications/creating-application/ci-pipeline#build-stage";
|
17
|
+
readonly APP_TAGS: "usage/applications/create-application#tags";
|
18
|
+
readonly BLOB_STORAGE: "getting-started/install/installation-configuration#configuration-of-blob-storage";
|
19
|
+
readonly BULK_UPDATE: "usage/bulk-update";
|
20
|
+
readonly CHART_GROUP: "usage/deploy-chart/chart-group";
|
21
|
+
readonly CHART_LIST: "usage/deploy-chart/overview-of-charts";
|
22
|
+
readonly CHART_STORE_METRICS_SERVER: "dashboard//chart-store/discover?appStoreName=metrics-server";
|
23
|
+
readonly CUSTOM_VALUES: "usage/deploy-chart/overview-of-charts#custom-values";
|
24
|
+
readonly DEPLOYMENT: "usage/applications/creating-application/deployment-template/deployment";
|
25
|
+
readonly DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template";
|
26
|
+
readonly DEVTRON_UPGRADE: "getting-started/upgrade";
|
27
|
+
readonly CONFIGURING_WEBHOOK: "usage/applications/creating-application/workflow/ci-pipeline#configuring-webhook";
|
28
|
+
readonly ENTERPRISE_LICENSE: "enterprise-license";
|
29
|
+
readonly EXECUTE_CUSTOM_SCRIPT: "usage/applications/creating-application/workflow/ci-pipeline/ci-build-pre-post-plugins#execute-custom-script";
|
30
|
+
readonly EXTERNAL_LINKS: "getting-started/global-configurations/external-links";
|
31
|
+
readonly EXTERNAL_SECRET: "usage/applications/creating-application/secrets#external-secrets";
|
32
|
+
readonly HOME_PAGE: "https://devtron.ai";
|
33
|
+
readonly KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally";
|
34
|
+
readonly GLOBAL_CONFIG_API_TOKEN: "getting-started/global-configurations/authorization/api-tokens";
|
35
|
+
readonly GLOBAL_CONFIG_BUILD_INFRA: "global-configurations/build-infra";
|
36
|
+
readonly GLOBAL_CONFIG_CHART: "getting-started/global-configurations/chart-repo";
|
37
|
+
readonly GLOBAL_CONFIG_CLUSTER: "getting-started/global-configurations/cluster-and-environments";
|
38
|
+
readonly GLOBAL_CONFIG_CUSTOM_CHART: "getting-started/global-configurations/custom-charts";
|
39
|
+
readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "getting-started/global-configurations/custom-charts#prerequisites";
|
40
|
+
readonly GLOBAL_CONFIG_DOCKER: "getting-started/global-configurations/container-registries";
|
41
|
+
readonly GLOBAL_CONFIG_GIT: "getting-started/global-configurations/git-accounts";
|
42
|
+
readonly GLOBAL_CONFIG_GITOPS: "getting-started/global-configurations/gitops";
|
43
|
+
readonly GLOBAL_CONFIG_GITOPS_GITHUB: "global-configurations/gitops#github";
|
44
|
+
readonly GLOBAL_CONFIG_GITOPS_GITLAB: "global-configurations/gitops#gitlab";
|
45
|
+
readonly GLOBAL_CONFIG_GITOPS_AZURE: "global-configurations/gitops#azure";
|
46
|
+
readonly GLOBAL_CONFIG_GITOPS_BITBUCKET: "global-configurations/gitops#bitbucket";
|
47
|
+
readonly GLOBAL_CONFIG_GROUPS: "getting-started/global-configurations/authorization/permission-groups";
|
48
|
+
readonly GLOBAL_CONFIG_HOST_URL: "getting-started/global-configurations/host-url";
|
49
|
+
readonly GLOBAL_CONFIG_NOTIFICATION: "getting-started/global-configurations/manage-notification";
|
50
|
+
readonly GLOBAL_CONFIG_PERMISSION: "global-configurations/authorization/user-access#devtron-apps-permissions";
|
51
|
+
readonly GLOBAL_CONFIG_PROJECT: "getting-started/global-configurations/projects";
|
52
|
+
readonly GLOBAL_CONFIG_SSO: "getting-started/global-configurations/sso-login";
|
53
|
+
readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "getting-started/global-configurations/scoped-variables";
|
54
|
+
readonly GLOBAL_CONFIG_USER: "getting-started/global-configurations/authorization/user-access";
|
55
|
+
readonly HYPERION: "usage/applications#view-external-helm-app-listing";
|
56
|
+
readonly JOB_CRONJOB: "usage/applications/creating-application/deployment-template/job-and-cronjob";
|
57
|
+
readonly JOB_SOURCE_CODE: "usage/jobs/configuration-job";
|
58
|
+
readonly JOB_WORKFLOW_EDITOR: "usage/jobs/workflow-editor-job";
|
59
|
+
readonly K8S_RESOURCES_PERMISSIONS: "global-configurations/authorization/user-access#kubernetes-resources-permissions";
|
60
|
+
readonly PRE_POST_BUILD_STAGE: "usage/applications/creating-application/ci-pipeline/ci-build-pre-post-plugins";
|
61
|
+
readonly ROLLOUT: "usage/applications/creating-application/deployment-template/rollout-deployment";
|
62
|
+
readonly SECURITY: "usage/security-features";
|
63
|
+
readonly SPECIFY_IMAGE_PULL_SECRET: "getting-started/global-configurations/container-registries#specify-image-pull-secret";
|
64
|
+
readonly TENANT_INSTALLATION: "usage/software-distribution-hub/tenants";
|
65
|
+
readonly CEL: "https://github.com/google/cel-spec/blob/master/doc/langdef.md";
|
66
|
+
readonly KUBERNETES_LABELS: "https://kubernetes.io/docs/concepts/overview/working-with-objects/labels";
|
67
|
+
readonly IMAGE_PROMOTION: "global-configurations/image-promotion-policy";
|
68
|
+
readonly IMAGE_PROMOTION_ASSIGN_TO: "global-configurations/image-promotion-policy#applying-an-image-promotion-policy";
|
69
|
+
readonly TAGS: "usage/applications/create-application#tags";
|
70
|
+
readonly TAGS_POLICY: "global-configurations/tags-policy";
|
71
|
+
readonly RESOURCE_WATCHER: "usage/resource-watcher";
|
72
|
+
readonly GITOPS_BITBUCKET: "global-configurations/gitops#bitbucket";
|
73
|
+
readonly DEPLOYMENT_CONFIGS: "resources/glossary#base-deployment-template";
|
74
|
+
readonly RJSF_PLAYGROUND: "https://rjsf-team.github.io/react-jsonschema-form/";
|
75
|
+
readonly GLOBAL_CONFIG_DEPLOYMENT_WINDOW: "global-configurations/deployment-window";
|
76
|
+
readonly GLOBAL_CONFIG_CATALOG_FRAMEWORK: "global-configurations/catalog-framework";
|
77
|
+
readonly GLOBAL_CONFIG_DEVTRON_APP_TEMPLATES: "global-configurations";
|
78
|
+
readonly GLOBAL_CONFIG_FILTER_CONDITION: "global-configurations/filter-condition";
|
79
|
+
readonly GLOBAL_CONFIG_LOCK_DEPLOYMENT_CONFIG: "global-configurations/lock-deployment-config";
|
80
|
+
readonly GLOBAL_CONFIG_PLUGINS_POLICY: "global-configurations/plugins-policy";
|
81
|
+
readonly GLOBAL_CONFIG_APPROVAL_POLICY: "global-configurations/approval-policy";
|
82
|
+
readonly GLOBAL_CONFIG_SSO_LOGIN_LDAP: "global-configurations/authorization/sso-login/ldap";
|
83
|
+
readonly GLOBAL_CONFIG_SSO_LOGIN_MICROSOFT: "global-configurations/authorization/sso-login/microsoft";
|
84
|
+
readonly GLOBAL_CONFIG_PULL_IMAGE_DIGEST: "global-configurations/pull-image-digest";
|
85
|
+
readonly GLOBAL_CONFIG_TAGS: "getting-started/global-configurations/tags-policy";
|
86
|
+
readonly SOFTWARE_DISTRIBUTION_HUB: "usage/software-distribution-hub";
|
87
|
+
readonly RELEASE_TRACKS: "usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions";
|
88
|
+
readonly RELEASES: "usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions";
|
89
|
+
readonly TENANTS: "usage/software-distribution-hub/tenants#adding-installation";
|
90
|
+
readonly TENANTS_INSTALLATION: "usage/software-distribution-hub/tenants";
|
91
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ButtonComponentType, ButtonProps } from '../Components';
|
2
|
+
import { DOCUMENTATION } from './constants';
|
3
|
+
export type BaseDocLink<T extends boolean> = {
|
4
|
+
isExternalLink?: T;
|
5
|
+
isEnterprise?: boolean;
|
6
|
+
docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
|
7
|
+
};
|
8
|
+
export type DocLinkProps<T extends boolean> = Pick<ButtonProps<ButtonComponentType.anchor>, 'onClick' | 'dataTestId' | 'size' | 'variant'> & BaseDocLink<T> & {
|
9
|
+
text?: string;
|
10
|
+
showExternalIcon?: boolean;
|
11
|
+
};
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { StrictRJSFSchema } from '@rjsf/utils';
|
|
4
4
|
import { Pair } from 'yaml';
|
5
5
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
|
-
import { AggregatedNodes,
|
7
|
+
import { AggregatedNodes, PodMetadatum } from './Components';
|
8
8
|
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
@@ -36,7 +36,6 @@ export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
36
36
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
37
37
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
38
38
|
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
39
|
-
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
40
39
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
41
40
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
42
41
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
@@ -101,4 +100,5 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
|
|
101
100
|
}) => string;
|
102
101
|
export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
|
103
102
|
export declare const clearCookieOnLogout: () => void;
|
103
|
+
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
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 } from './types';
|
4
|
+
export type { MainContext, ReloadVersionConfigTypes } from './types';
|
5
5
|
export * from './UserEmailProvider';
|
@@ -1,7 +1,16 @@
|
|
1
1
|
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
2
2
|
import { SERVER_MODE } from '../../Common';
|
3
3
|
import { ServerInfo } from '../Components/Header/types';
|
4
|
-
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType } from '..';
|
4
|
+
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '..';
|
5
|
+
export interface ReloadVersionConfigTypes {
|
6
|
+
bgUpdated: boolean;
|
7
|
+
handleAppUpdate: () => void;
|
8
|
+
doesNeedRefresh: boolean;
|
9
|
+
updateServiceWorker: () => Promise<void>;
|
10
|
+
handleControllerChange: () => void;
|
11
|
+
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
|
12
|
+
isRefreshing: boolean;
|
13
|
+
}
|
5
14
|
export interface MainContext {
|
6
15
|
serverMode: SERVER_MODE;
|
7
16
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
@@ -46,6 +55,7 @@ export interface MainContext {
|
|
46
55
|
licenseData: DevtronLicenseInfo;
|
47
56
|
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
48
57
|
canFetchHelmAppStatus: boolean;
|
58
|
+
reloadVersionConfig: ReloadVersionConfigTypes;
|
49
59
|
intelligenceConfig: IntelligenceConfig;
|
50
60
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
51
61
|
}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { OptionType } from '../Common/Types';
|
2
|
-
import {
|
1
|
+
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
|
+
import { InfoBlockProps } from './Components';
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
|
3
4
|
export declare const ARTIFACT_STATUS: {
|
4
5
|
PROGRESSING: string;
|
5
6
|
DEGRADED: string;
|
@@ -50,28 +51,6 @@ export declare enum EnvironmentTypeEnum {
|
|
50
51
|
production = "Production",
|
51
52
|
nonProduction = "Non-Production"
|
52
53
|
}
|
53
|
-
export declare enum TIMELINE_STATUS {
|
54
|
-
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
55
|
-
GIT_COMMIT = "GIT_COMMIT",
|
56
|
-
GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
|
57
|
-
ARGOCD_SYNC = "ARGOCD_SYNC",
|
58
|
-
ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
|
59
|
-
KUBECTL_APPLY = "KUBECTL_APPLY",
|
60
|
-
KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
|
61
|
-
KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
|
62
|
-
HEALTHY = "HEALTHY",
|
63
|
-
APP_HEALTH = "APP_HEALTH",
|
64
|
-
DEPLOYMENT_FAILED = "FAILED",
|
65
|
-
FETCH_TIMED_OUT = "TIMED_OUT",
|
66
|
-
UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
|
67
|
-
DEGRADED = "DEGRADED",
|
68
|
-
DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
|
69
|
-
ABORTED = "ABORTED",
|
70
|
-
INPROGRESS = "INPROGRESS",
|
71
|
-
HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
|
72
|
-
HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
|
73
|
-
HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
|
74
|
-
}
|
75
54
|
/**
|
76
55
|
* Constants for NO MATCHING result
|
77
56
|
*/
|
@@ -435,3 +414,18 @@ export declare const Routes: {
|
|
435
414
|
};
|
436
415
|
export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
|
437
416
|
export declare const INVALID_LICENSE_KEY = "inValid";
|
417
|
+
export declare enum InfoBlockVariant {
|
418
|
+
ERROR = "error",
|
419
|
+
HELP = "help",
|
420
|
+
INFORMATION = "information",
|
421
|
+
SUCCESS = "success",
|
422
|
+
WARNING = "warning",
|
423
|
+
NEUTRAL = "neutral"
|
424
|
+
}
|
425
|
+
export type InfoBlockVariantType = 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
|
426
|
+
export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
|
427
|
+
export declare const VARIANT_TO_ICON_COLOR_MAP: Record<InfoBlockProps['variant'], IconBaseColorType>;
|
428
|
+
export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], string>;
|
429
|
+
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
430
|
+
export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
|
431
|
+
export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|