@devtron-labs/devtron-fe-common-lib 1.13.0-pre-6 → 1.13.0-redfish-preview-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/{@code-editor-DDIbDgoG.js → @common-rjsf-CWkKRfHL.js} +18950 -19444
- package/dist/{@framer-motion-DyOLEeMN.js → @framer-motion-BL6-Hrrc.js} +1 -1
- package/dist/{@react-dates-B7d8RWU9.js → @react-dates-CIHHgq4p.js} +1 -1
- package/dist/{@react-select-Coo19Q6a.js → @react-select-BVKpsqGO.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BPjPJDIR.js → @react-virtualized-sticky-tree-CjKfeUxB.js} +1 -1
- package/dist/{@vendor-D9q4wrnL.js → @vendor-CekuMgQx.js} +15535 -15535
- package/dist/Common/Checkbox.d.ts +5 -0
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Constants.d.ts +2 -2
- package/dist/Common/Helper.d.ts +1 -5
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/SegmentedBarChart/types.d.ts +11 -2
- package/dist/Common/Toggle/Toggle.d.ts +1 -4
- package/dist/Common/Types.d.ts +0 -2
- package/dist/Common/index.d.ts +3 -2
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +5 -38
- package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +2 -1
- package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +11 -88
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +6 -0
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +1 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +2 -2
- package/dist/Shared/Components/Button/types.d.ts +1 -3
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +3 -0
- 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/ErrorInfoStatusBar.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/service.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/types.d.ts +77 -11
- package/dist/Shared/Components/CICDHistory/utils.d.ts +3 -7
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
- package/dist/Shared/Components/Error/types.d.ts +0 -4
- package/dist/Shared/Components/Error/utils.d.ts +0 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +3 -1
- package/dist/Shared/Components/Header/HelpNav.d.ts +3 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/constants.d.ts +4 -5
- package/dist/Shared/Components/Header/types.d.ts +10 -15
- package/dist/Shared/Components/Header/utils.d.ts +1 -5
- package/dist/Shared/Components/Icon/Icon.d.ts +3 -35
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +8 -30
- 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 +1 -2
- package/dist/Shared/Components/LoginBanner/index.d.ts +0 -2
- 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 +0 -2
- package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -4
- package/dist/Shared/Components/StatusComponent/types.d.ts +1 -2
- package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +7 -33
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +2 -1
- package/dist/Shared/Components/index.d.ts +2 -2
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +1 -11
- package/dist/Shared/constants.d.ts +24 -18
- package/dist/Shared/types.d.ts +2 -110
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-charts.f41e185f.svg +19 -0
- package/dist/assets/ic-chat-circle-dots.e15514f8.svg +23 -0
- package/dist/assets/{ic-checkbox-unselected.ab91cdba.svg → ic-check-grey.f556e371.svg} +4 -2
- package/dist/assets/ic-disconnected.551d6161.svg +29 -0
- package/dist/assets/ic-discord-fill.1a1b291d.svg +19 -0
- package/dist/assets/ic-feedback.d32fa6b0.svg +19 -0
- package/dist/assets/ic-files.fc290dee.svg +19 -0
- package/dist/assets/{ic-checkbox-selected.c5539d6f.svg → ic-k8s-job.f4414c10.svg} +3 -4
- package/dist/assets/ic-login-devtron-logo.702a1d04.svg +22 -0
- package/dist/assets/{ic-checkbox-hover.93e8d66a.svg → ic-medal.a2e911f5.svg} +3 -4
- package/dist/assets/ic-megaphone.b9f9a901.svg +19 -0
- package/dist/assets/ic-onboarding.c98f9ef9.svg +19 -0
- package/dist/assets/{ic-caret-down-small.7c4f88bf.svg → ic-terminal.d875cce7.svg} +1 -1
- package/dist/assets/ic-thermometer.1bc48079.svg +3 -0
- package/dist/assets/{ic-checkbox-hover.0151d832.svg → ic-timeout-red.5eda1010.svg} +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +850 -881
- package/package.json +1 -1
- package/dist/@common-rjsf-AMVnhZkY.js +0 -617
- package/dist/Common/Checkbox/Checkbox.d.ts +0 -2
- package/dist/Common/Checkbox/index.d.ts +0 -1
- package/dist/Common/Drawer/index.d.ts +0 -1
- package/dist/Common/EmptyState/index.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
- package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +0 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +0 -275
- package/dist/Shared/Components/ActionMenu/utils.d.ts +0 -7
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +0 -2
- package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/constants.d.ts +0 -4
- package/dist/Shared/Components/AppStatusModal/index.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/service.d.ts +0 -4
- package/dist/Shared/Components/AppStatusModal/types.d.ts +0 -84
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +0 -8
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +0 -10
- package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +0 -3
- package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +0 -22
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +0 -20
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +0 -10
- package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +0 -2
- package/dist/Shared/Components/Header/HelpButton.d.ts +0 -2
- package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +0 -3
- package/dist/Shared/Components/Popover/Popover.component.d.ts +0 -8
- package/dist/Shared/Components/Popover/index.d.ts +0 -3
- package/dist/Shared/Components/Popover/types.d.ts +0 -105
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +0 -2
- package/dist/Shared/Components/Popover/utils.d.ts +0 -92
- package/dist/assets/@code-editor.css +0 -1
- package/dist/assets/ic-amazon-eks.13404569.svg +0 -5
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +0 -3
- package/dist/assets/ic-azure-aks.a9e437d5.svg +0 -46
- package/dist/assets/ic-bulk-check.0f698efa.svg +0 -21
- package/dist/assets/ic-bulk-check.99e92f7a.svg +0 -21
- package/dist/assets/ic-caret-right.0ff813c2.svg +0 -3
- package/dist/assets/ic-celebration.77350694.svg +0 -238
- package/dist/assets/ic-chat-circle-online.51348da5.svg +0 -4
- package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +0 -22
- package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +0 -22
- package/dist/assets/ic-checkbox-selected.47444fab.svg +0 -20
- package/dist/assets/ic-checkbox-unselected.8054e3d7.svg +0 -19
- package/dist/assets/ic-cloud-vms.27ea954e.svg +0 -5
- package/dist/assets/ic-cluster.71ba9e26.svg +0 -3
- package/dist/assets/ic-delete-dots.5380e0d0.svg +0 -62
- package/dist/assets/ic-disconnect.2ad261fc.svg +0 -3
- package/dist/assets/ic-discord-fill.103b579a.svg +0 -3
- package/dist/assets/ic-edit.3249ed32.svg +0 -3
- package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +0 -3
- package/dist/assets/ic-enterprise-tag.209dd129.svg +0 -43
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +0 -3
- package/dist/assets/ic-expand-sm.a9a724f8.svg +0 -3
- package/dist/assets/ic-file-edit.96a172c7.svg +0 -3
- package/dist/assets/ic-file.c3c45e13.svg +0 -3
- package/dist/assets/ic-files.b0ebea46.svg +0 -3
- package/dist/assets/ic-gift-gradient.7690a246.svg +0 -9
- package/dist/assets/ic-gift.9b048fc7.svg +0 -3
- package/dist/assets/ic-gitlab.ac331d67.svg +0 -31
- package/dist/assets/ic-google-gke.07314724.svg +0 -9
- package/dist/assets/ic-install.28c3beec.svg +0 -3
- package/dist/assets/ic-k3s.7f4bf72d.svg +0 -3
- package/dist/assets/ic-kind.bd8ee992.svg +0 -9
- package/dist/assets/ic-laptop.485e21b4.svg +0 -3
- package/dist/assets/ic-man-on-rocket.7f67e914.svg +0 -94
- package/dist/assets/ic-megaphone-left.6b2a00b7.svg +0 -3
- package/dist/assets/ic-megaphone-right.9d6bcd36.svg +0 -3
- package/dist/assets/ic-minikube.d9ff1575.svg +0 -9
- package/dist/assets/ic-mobile.7c649251.svg +0 -4
- package/dist/assets/ic-path.d4fef3b0.svg +0 -3
- package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
- package/dist/assets/ic-ubuntu.fa47508f.svg +0 -4
- package/dist/assets/ic-user-circle.7d7152fa.svg +0 -3
- package/dist/assets/ic-wifi-slash.d0390749.svg +0 -3
@@ -1,3 +1,3 @@
|
|
1
|
-
import { AnimatePresence
|
1
|
+
import { AnimatePresence } from 'framer-motion';
|
2
2
|
export * from './MotionDiv';
|
3
|
-
export { AnimatePresence
|
3
|
+
export { AnimatePresence };
|
@@ -1,3 +1,5 @@
|
|
1
|
-
|
1
|
+
export interface HeaderWithCreateButtonProps {
|
2
|
+
headerName: string;
|
3
|
+
}
|
2
4
|
export declare const HeaderWithCreateButton: ({ headerName }: HeaderWithCreateButtonProps) => JSX.Element;
|
3
5
|
export default HeaderWithCreateButton;
|
@@ -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, }: PageHeaderType) => JSX.Element;
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, tippyProps, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export declare const
|
3
|
-
export declare const
|
4
|
-
export declare const
|
5
|
-
export declare const ENTERPRISE_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
|
1
|
+
import { HelpOptionType } from './types';
|
2
|
+
export declare const EnterpriseHelpOptions: HelpOptionType[];
|
3
|
+
export declare const OSSHelpOptions: HelpOptionType[];
|
4
|
+
export declare const TrialHelpOptions: HelpOptionType[];
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ModuleStatus } from '../../types';
|
2
2
|
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
3
|
-
import { ActionMenuProps } from '../ActionMenu';
|
4
3
|
export declare enum InstallationType {
|
5
4
|
OSS_KUBECTL = "oss_kubectl",
|
6
5
|
OSS_HELM = "oss_helm",
|
@@ -17,6 +16,7 @@ export interface PageHeaderType {
|
|
17
16
|
showCloseButton?: boolean;
|
18
17
|
onClose?: () => void;
|
19
18
|
markAsBeta?: boolean;
|
19
|
+
showAnnouncementHeader?: boolean;
|
20
20
|
tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
|
21
21
|
isTippyCustomized?: boolean;
|
22
22
|
tippyRedirectLink?: string;
|
@@ -34,21 +34,16 @@ export interface ServerInfo {
|
|
34
34
|
export interface ServerInfoResponse extends ResponseType {
|
35
35
|
result?: ServerInfo;
|
36
36
|
}
|
37
|
-
export interface
|
37
|
+
export interface HelpNavType {
|
38
|
+
className: string;
|
39
|
+
setShowHelpCard: React.Dispatch<React.SetStateAction<boolean>>;
|
38
40
|
serverInfo: ServerInfo;
|
39
41
|
fetchingServerInfo: boolean;
|
40
|
-
|
42
|
+
setGettingStartedClicked: (isClicked: boolean) => void;
|
43
|
+
showHelpCard: boolean;
|
41
44
|
}
|
42
|
-
export
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
ABOUT_DEVTRON = "about-devtron",
|
47
|
-
REQUEST_SUPPORT = "request-support",
|
48
|
-
OPEN_NEW_TICKET = "open-new-ticket",
|
49
|
-
VIEW_ALL_TICKETS = "view-all-tickets",
|
50
|
-
GIVE_FEEDBACK = "give-feedback",
|
51
|
-
CHAT_WITH_SUPPORT = "chat-with-support",
|
52
|
-
RAISE_ISSUE_REQUEST = "raise-issue-request"
|
45
|
+
export interface HelpOptionType {
|
46
|
+
name: string;
|
47
|
+
link: string;
|
48
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
53
49
|
}
|
54
|
-
export type HelpButtonActionMenuProps = ActionMenuProps<HelpMenuItems>;
|
@@ -1,10 +1,6 @@
|
|
1
1
|
import { DevtronLicenseInfo } from '../License';
|
2
|
-
import { HelpButtonActionMenuProps } from './types';
|
3
2
|
export declare const getDateInMilliseconds: (days: any) => number;
|
4
3
|
export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
|
5
4
|
export declare const setActionWithExpiry: (key: string, days: number) => void;
|
6
5
|
export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
|
7
|
-
export declare const
|
8
|
-
isEnterprise: boolean;
|
9
|
-
isTrial: boolean;
|
10
|
-
}) => HelpButtonActionMenuProps["options"];
|
6
|
+
export declare const getHelpOptions: (isEnterprise: boolean, isTrial: boolean) => import('./types').HelpOptionType[];
|
@@ -3,15 +3,12 @@ export declare const iconMap: {
|
|
3
3
|
'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
4
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
5
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
|
-
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
6
|
'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
7
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
8
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
9
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
|
-
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
10
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
11
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
|
-
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
12
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
13
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
14
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -22,12 +19,9 @@ export declare const iconMap: {
|
|
22
19
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
20
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
21
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
|
-
'ic-caret-down-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
22
|
'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
|
-
'ic-caret-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
23
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
24
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
|
-
'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
25
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
32
26
|
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
33
27
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -36,8 +30,6 @@ export declare const iconMap: {
|
|
36
30
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
37
31
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
38
32
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
|
-
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
|
-
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
33
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
34
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
35
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -45,38 +37,24 @@ export declare const iconMap: {
|
|
45
37
|
'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
38
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
39
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
|
-
'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
40
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
41
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
42
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
43
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
44
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
|
-
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
-
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
45
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
46
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
|
-
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
|
-
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
|
-
'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
47
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
48
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
|
-
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
|
-
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
49
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
|
-
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
50
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
|
-
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
|
-
'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
51
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
52
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
|
-
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
|
-
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
53
|
'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
54
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
55
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
56
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
57
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
|
-
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
58
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
59
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
60
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -90,27 +68,20 @@ export declare const iconMap: {
|
|
90
68
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
91
69
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
92
70
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
93
|
-
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
71
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
|
-
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
72
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
73
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
|
-
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
99
|
-
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
100
74
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
75
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
102
76
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
77
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
|
+
'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
104
79
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
105
80
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
106
81
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
107
|
-
'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
|
-
'ic-megaphone-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
82
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
83
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
|
-
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
84
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
113
|
-
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
85
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
115
86
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
116
87
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -120,7 +91,6 @@ export declare const iconMap: {
|
|
120
91
|
'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
92
|
'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
93
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
|
-
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
94
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
95
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
96
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -131,7 +101,6 @@ export declare const iconMap: {
|
|
131
101
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
102
|
'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
103
|
'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
|
-
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
104
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
105
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
106
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -139,18 +108,17 @@ export declare const iconMap: {
|
|
139
108
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
109
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
141
110
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
|
+
'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
|
+
'ic-thermometer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
142
113
|
'ic-thumb-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
143
114
|
'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
144
115
|
'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
145
116
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
117
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
147
|
-
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
148
118
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
149
|
-
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
119
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
151
120
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
152
121
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
153
|
-
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
154
122
|
};
|
155
123
|
export type IconName = keyof typeof iconMap;
|
156
124
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
|
-
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color
|
2
|
+
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color }: IconBaseProps) => JSX.Element;
|
@@ -3,44 +3,22 @@ import { TooltipProps } from '@Common/Tooltip/types';
|
|
3
3
|
import { IconBaseColorType, IconBaseSizeType } from '../../index';
|
4
4
|
type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
|
5
5
|
export interface IconBaseProps {
|
6
|
-
/**
|
7
|
-
* The name of the icon to render.
|
8
|
-
*/
|
6
|
+
/** The name of the icon to render. */
|
9
7
|
name: keyof IconMap;
|
10
|
-
/**
|
11
|
-
* A map containing all available icons.
|
12
|
-
*/
|
8
|
+
/** The map containing all available icons. */
|
13
9
|
iconMap: IconMap;
|
14
10
|
/**
|
15
|
-
* The size of the icon in pixels.
|
16
|
-
*
|
11
|
+
* The size of the icon in pixels.
|
17
12
|
* @default 16
|
18
13
|
*/
|
19
|
-
size?: IconBaseSizeType
|
20
|
-
/**
|
21
|
-
* Configuration for the tooltip displayed when hovering over the icon.
|
22
|
-
*/
|
14
|
+
size?: IconBaseSizeType;
|
15
|
+
/** Props to configure the tooltip when hovering over the icon. */
|
23
16
|
tooltipProps?: TooltipProps;
|
24
17
|
/**
|
25
|
-
* The color of the icon
|
26
|
-
* If
|
27
|
-
*
|
28
|
-
* @example 'B500', 'N200', 'G50', 'R700'
|
18
|
+
* The color of the icon (color tokens). \
|
19
|
+
* If `null`, the default color present in icon is used.
|
20
|
+
* @example `'B500'`, `'N200'`, `'G50'`, `'R700'`
|
29
21
|
*/
|
30
22
|
color: IconBaseColorType;
|
31
|
-
/**
|
32
|
-
* A unique identifier for testing purposes, typically used in test automation.
|
33
|
-
*/
|
34
|
-
dataTestId?: string;
|
35
|
-
/**
|
36
|
-
* Rotates the icon by the specified number of degrees.
|
37
|
-
*
|
38
|
-
* @example 90, 180, 270
|
39
|
-
*/
|
40
|
-
rotateBy?: number;
|
41
|
-
/**
|
42
|
-
* If true, the icon will expand to fill the available space of its container.
|
43
|
-
*/
|
44
|
-
fillSpace?: boolean;
|
45
23
|
}
|
46
24
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { InfoBlockVariant } from '../../constants';
|
2
1
|
import { ButtonProps } from '../Button';
|
3
2
|
import { InfoBlockProps } from './types';
|
4
|
-
export declare const
|
3
|
+
export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
|
4
|
+
export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockProps['variant'], InfoBlockProps['customIcon']>;
|
5
5
|
export declare const CONTAINER_SIZE_TO_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
6
6
|
export declare const SIZE_TO_ICON_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
7
7
|
export declare const CONTAINER_SIZE_TO_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
|
-
import { ComponentSizeType
|
2
|
+
import { ComponentSizeType } from '../../constants';
|
3
3
|
import { BorderConfigType, ComponentLayoutType } from '../../types';
|
4
4
|
import { ButtonComponentType, ButtonProps } from '../Button';
|
5
5
|
export type InfoBlockProps = {
|
@@ -10,7 +10,7 @@ export type InfoBlockProps = {
|
|
10
10
|
/**
|
11
11
|
* @default 'information'
|
12
12
|
*/
|
13
|
-
variant?:
|
13
|
+
variant?: 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
|
14
14
|
/**
|
15
15
|
* @default ComponentSizeType.large
|
16
16
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
2
|
-
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo,
|
2
|
+
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
|
3
3
|
export default InfoIconTippy;
|
@@ -2,4 +2,4 @@ export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
|
|
2
2
|
export { default as DevtronLicenseCard } from './DevtronLicenseCard';
|
3
3
|
export { ICDevtronWithBorder, default as InstallationFingerprintInfo } from './License.components';
|
4
4
|
export * from './types';
|
5
|
-
export { parseDevtronLicenseData
|
5
|
+
export { parseDevtronLicenseData } from './utils';
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { DevtronLicenseDTO } from '../../types';
|
2
|
-
import {
|
2
|
+
import { DevtronLicenseInfo, LicenseStatus } from './types';
|
3
3
|
export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
|
4
4
|
bgColor: string;
|
5
5
|
textColor: string;
|
6
6
|
};
|
7
|
-
export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => Omit<DevtronLicenseCardProps, "appTheme">;
|
8
7
|
export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
|
9
8
|
export declare const getGateKeeperUrl: (fingerprint: string) => string;
|
@@ -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(--R500)" | "var(--N300)" | "var(--O500)" | "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--G500)" | "var(--Y500)" | "var(--R700)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -8,10 +8,8 @@ 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;
|
12
11
|
export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
13
12
|
export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
|
14
13
|
export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
|
15
14
|
export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
|
16
15
|
export declare const renderLoadingMessage: () => JSX.Element;
|
17
|
-
export declare const ValueContainerWithLoadingShimmer: (props: ValueContainerProps) => JSX.Element;
|
@@ -40,10 +40,6 @@ 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;
|
47
43
|
};
|
48
44
|
declare module 'react-select/base' {
|
49
45
|
interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
@@ -16,8 +16,7 @@ export declare enum StatusType {
|
|
16
16
|
PROGRESSING = "PROGRESSING",
|
17
17
|
INPROGRESS = "INPROGRESS",
|
18
18
|
HIBERNATING = "HIBERNATING",
|
19
|
-
TIMED_OUT = "TIMED_OUT"
|
20
|
-
DELETING = "DELETING"
|
19
|
+
TIMED_OUT = "TIMED_OUT"
|
21
20
|
}
|
22
21
|
export interface StatusComponentProps {
|
23
22
|
/** 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,
|
2
|
+
export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active"> & 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,38 +65,6 @@ 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
|
-
};
|
100
68
|
export type TabProps = {
|
101
69
|
/**
|
102
70
|
* Unique identifier for the tab.
|
@@ -111,6 +79,12 @@ export type TabProps = {
|
|
111
79
|
* @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
|
112
80
|
*/
|
113
81
|
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;
|
114
88
|
/**
|
115
89
|
* Badge number to be displayed on the tab, typically for notifications.
|
116
90
|
*/
|
@@ -133,7 +107,7 @@ export type TabProps = {
|
|
133
107
|
* Disables the tab, preventing interaction and indicating an inactive state.
|
134
108
|
*/
|
135
109
|
disabled?: boolean;
|
136
|
-
} & ConditionalTabType & TabTooltipProps
|
110
|
+
} & ConditionalTabType & TabTooltipProps;
|
137
111
|
export interface TabGroupProps {
|
138
112
|
/**
|
139
113
|
* Array of tabs to be rendered.
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TargetPlatformListTooltipProps } from './types';
|
2
|
-
declare const TargetPlatformListTooltip: ({ targetPlatforms, children
|
2
|
+
declare const TargetPlatformListTooltip: ({ targetPlatforms, children }: TargetPlatformListTooltipProps) => JSX.Element;
|
3
3
|
export default TargetPlatformListTooltip;
|
@@ -2,5 +2,6 @@ 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'
|
5
|
+
export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
6
|
+
children: TooltipProps['children'];
|
6
7
|
}
|
@@ -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';
|
6
7
|
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';
|
28
27
|
export * from './DetectBottom';
|
29
28
|
export * from './DiffViewer';
|
30
29
|
export * from './DynamicDataTable';
|
31
30
|
export * from './EditableTextArea';
|
32
31
|
export * from './EditImageFormField';
|
32
|
+
export * from './EnterpriseTag';
|
33
33
|
export * from './EnvironmentSelector';
|
34
34
|
export * from './Error';
|
35
35
|
export * from './ExcludedImageNode';
|
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, PodMetadatum } from './Components';
|
7
|
+
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
8
8
|
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
@@ -36,6 +36,7 @@ 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;
|
39
40
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
40
41
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
41
42
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
@@ -100,5 +101,4 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
|
|
100
101
|
}) => string;
|
101
102
|
export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
|
102
103
|
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
|
4
|
+
export type { MainContext } from './types';
|
5
5
|
export * from './UserEmailProvider';
|
@@ -1,16 +1,7 @@
|
|
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
|
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
|
-
}
|
4
|
+
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType } from '..';
|
14
5
|
export interface MainContext {
|
15
6
|
serverMode: SERVER_MODE;
|
16
7
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
@@ -55,7 +46,6 @@ export interface MainContext {
|
|
55
46
|
licenseData: DevtronLicenseInfo;
|
56
47
|
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
57
48
|
canFetchHelmAppStatus: boolean;
|
58
|
-
reloadVersionConfig: ReloadVersionConfigTypes;
|
59
49
|
intelligenceConfig: IntelligenceConfig;
|
60
50
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
61
51
|
}
|