@devtron-labs/devtron-fe-common-lib 1.12.0-beta-9 → 1.12.0-beta-10
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-N2ix2wkE.js → @common-rjsf-DEJF-ChY.js} +8750 -8544
- package/dist/{@framer-motion-BL6-Hrrc.js → @framer-motion-Hh5HoZEj.js} +1 -1
- package/dist/{@react-dates-CIHHgq4p.js → @react-dates-RAg1eRYJ.js} +14 -14
- package/dist/{@react-select-BVKpsqGO.js → @react-select-Cyc43HrK.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CjKfeUxB.js → @react-virtualized-sticky-tree-Cby7tsJ8.js} +1 -1
- package/dist/{@vendor-CekuMgQx.js → @vendor-BZpoz8Ez.js} +18063 -18073
- package/dist/Common/Checkbox.d.ts +5 -0
- package/dist/Common/Constants.d.ts +2 -1
- package/dist/Common/Drawer/index.d.ts +1 -0
- package/dist/Common/EmptyState/index.d.ts +2 -0
- package/dist/Common/Helper.d.ts +4 -1
- package/dist/Common/Toggle/Toggle.d.ts +4 -1
- package/dist/Common/Types.d.ts +1 -1
- package/dist/Common/index.d.ts +2 -3
- 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/constants.d.ts +4 -0
- package/dist/Shared/Components/AppStatusModal/index.d.ts +2 -0
- package/dist/Shared/Components/AppStatusModal/service.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/types.d.ts +38 -0
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +5 -0
- 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/types.d.ts +0 -6
- 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/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -18
- package/dist/Shared/Components/Icon/types.d.ts +1 -1
- 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/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +5 -0
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
- package/dist/index.js +841 -838
- package/package.json +1 -1
- package/dist/Common/Checkbox/Checkbox.d.ts +0 -2
- package/dist/Common/Checkbox/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
- 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-down-small.7c4f88bf.svg +0 -3
- package/dist/assets/ic-caret-right.0ff813c2.svg +0 -3
- package/dist/assets/ic-checkbox-hover.0151d832.svg +0 -20
- package/dist/assets/ic-checkbox-hover.93e8d66a.svg +0 -20
- 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-selected.c5539d6f.svg +0 -20
- package/dist/assets/ic-checkbox-unselected.8054e3d7.svg +0 -19
- package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +0 -19
- package/dist/assets/ic-cloud-vms.27ea954e.svg +0 -5
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +0 -3
- package/dist/assets/ic-gift-gradient.7690a246.svg +0 -9
- 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-minikube.d9ff1575.svg +0 -9
- package/dist/assets/ic-mobile.7c649251.svg +0 -4
- 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
@@ -13,6 +13,7 @@ export declare const DOCUMENTATION: {
|
|
13
13
|
GLOBAL_CONFIG_BUILD_INFRA: string;
|
14
14
|
ENTERPRISE_LICENSE: string;
|
15
15
|
KUBE_CONFIG: string;
|
16
|
+
TENANT_INSTALLATION: string;
|
16
17
|
};
|
17
18
|
export declare const PATTERNS: {
|
18
19
|
STRING: RegExp;
|
@@ -64,7 +65,6 @@ export declare const URLS: {
|
|
64
65
|
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
65
66
|
readonly APP_CONFIG: "edit";
|
66
67
|
readonly GLOBAL_CONFIG: "/global-config";
|
67
|
-
readonly CONFIG_DRIFT: "config-drift";
|
68
68
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
69
69
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
70
70
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
@@ -111,6 +111,7 @@ export declare const ROUTES: {
|
|
111
111
|
readonly ATTRIBUTES_CREATE: "attributes/create";
|
112
112
|
readonly ATTRIBUTES_UPDATE: "attributes/update";
|
113
113
|
readonly APP_LIST_MIN: "app/min";
|
114
|
+
readonly APP_DETAIL: "app/detail";
|
114
115
|
readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
|
115
116
|
readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
|
116
117
|
readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Drawer';
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { default as React, SyntheticEvent } from 'react';
|
2
2
|
import { JSONPathOptions } from 'jsonpath-plus';
|
3
3
|
import { AsyncOptions, DeploymentNodeType, UseSearchString } from './Types';
|
4
|
-
import { scrollableInterface } from '../Shared';
|
4
|
+
import { scrollableInterface, AppType } from '../Shared';
|
5
5
|
import * as Sentry from '@sentry/browser';
|
6
6
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
7
7
|
interface ConditionalWrapper<T> {
|
@@ -95,8 +95,10 @@ export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultT
|
|
95
95
|
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
|
96
96
|
/**
|
97
97
|
* Returns a debounced variant of the function
|
98
|
+
* @deprecated - It should use useRef instead, pls use useDebounce
|
98
99
|
*/
|
99
100
|
export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
|
101
|
+
export declare const useDebounce: <Callback extends (...args: any[]) => void>(cb: Callback, delay: number) => (...args: Parameters<Callback>) => void;
|
100
102
|
/**
|
101
103
|
* Returns a capitalized string with first letter in uppercase and rest in lowercase
|
102
104
|
*/
|
@@ -144,4 +146,5 @@ export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) =>
|
|
144
146
|
*/
|
145
147
|
export declare const getHashedValue: (value: string) => Promise<string | null>;
|
146
148
|
export declare const getTTLInHumanReadableFormat: (ttl: number) => string;
|
149
|
+
export declare const getAIAnalyticsEvents: (context: string, appType?: AppType) => string;
|
147
150
|
export {};
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { CHECKBOX_VALUE } from '../Types';
|
2
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, value, isControlled, ...props }: {
|
2
3
|
[x: string]: any;
|
3
4
|
selected?: boolean;
|
4
5
|
onSelect?: any;
|
@@ -11,5 +12,7 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
11
12
|
throttleOnChange?: boolean;
|
12
13
|
shouldToggleValueOnLabelClick?: boolean;
|
13
14
|
isLoading?: boolean;
|
15
|
+
value?: CHECKBOX_VALUE;
|
16
|
+
isControlled?: boolean;
|
14
17
|
}) => JSX.Element;
|
15
18
|
export default Toggle;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -75,7 +75,6 @@ export interface CheckboxProps {
|
|
75
75
|
onClick?: (event: any) => void;
|
76
76
|
id?: string;
|
77
77
|
dataTestId?: string;
|
78
|
-
children?: ReactNode;
|
79
78
|
}
|
80
79
|
export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
81
80
|
theme: TippyTheme;
|
@@ -111,6 +110,7 @@ export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading'
|
|
111
110
|
dataTestid?: string;
|
112
111
|
children?: TippyCustomizedProps['children'];
|
113
112
|
iconClassName?: string;
|
113
|
+
buttonPadding?: string;
|
114
114
|
}
|
115
115
|
export interface GenericEmptyStateType {
|
116
116
|
title: ReactNode;
|
package/dist/Common/index.d.ts
CHANGED
@@ -15,9 +15,8 @@ export { default as DevtronCopyright } from './DevtronCopyright';
|
|
15
15
|
export * from './DevtronProgressing';
|
16
16
|
export * from './Dialogs';
|
17
17
|
export * from './DraggableWrapper';
|
18
|
-
export * from './Drawer
|
19
|
-
export
|
20
|
-
export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState';
|
18
|
+
export * from './Drawer';
|
19
|
+
export * from './EmptyState';
|
21
20
|
export { default as ErrorScreenManager } from './ErrorScreenManager';
|
22
21
|
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
23
22
|
export * from './GenericDescription';
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { AppStatusModalProps } from './types';
|
2
|
+
declare const AppStatusModal: ({ titleSegments, handleClose, type, appDetails: appDetailsProp, isConfigDriftEnabled, configDriftModal: ConfigDriftModal, appId, envId, debugWithAIButton, }: AppStatusModalProps) => JSX.Element;
|
3
|
+
export default AppStatusModal;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { FunctionComponent } from 'react';
|
2
|
+
import { AppDetails, ConfigDriftModalProps, IntelligenceConfig } from '../../types';
|
3
|
+
export type AppStatusModalProps = {
|
4
|
+
titleSegments: string[];
|
5
|
+
handleClose: () => void;
|
6
|
+
/**
|
7
|
+
* If given would not poll for app details and resource tree, Polling for gitops timeline would still be done
|
8
|
+
*/
|
9
|
+
appDetails?: AppDetails;
|
10
|
+
isConfigDriftEnabled: boolean;
|
11
|
+
configDriftModal: FunctionComponent<ConfigDriftModalProps>;
|
12
|
+
debugWithAIButton: FunctionComponent<{
|
13
|
+
intelligenceConfig: IntelligenceConfig;
|
14
|
+
}>;
|
15
|
+
} & ({
|
16
|
+
type: 'release';
|
17
|
+
appId: number;
|
18
|
+
envId: number;
|
19
|
+
} | {
|
20
|
+
type: 'devtron-app' | 'other-apps' | 'stack-manager';
|
21
|
+
appId?: never;
|
22
|
+
envId?: never;
|
23
|
+
});
|
24
|
+
export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton'>> {
|
25
|
+
handleShowConfigDriftModal: () => void;
|
26
|
+
}
|
27
|
+
export interface AppStatusContentProps extends Required<Pick<AppStatusBodyProps, 'appDetails'>>, Partial<Pick<AppStatusBodyProps, 'handleShowConfigDriftModal'>> {
|
28
|
+
/**
|
29
|
+
* @default false
|
30
|
+
*/
|
31
|
+
filterHealthyNodes?: boolean;
|
32
|
+
/**
|
33
|
+
* @default true
|
34
|
+
*/
|
35
|
+
isCardLayout?: boolean;
|
36
|
+
}
|
37
|
+
export interface GetFilteredFlattenedNodesFromAppDetailsParamsType extends Pick<AppStatusContentProps, 'appDetails' | 'filterHealthyNodes'> {
|
38
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { AppDetails, Node } from '../../types';
|
2
|
+
import { GetFilteredFlattenedNodesFromAppDetailsParamsType as GetFlattenedNodesFromAppDetailsParamsType } from './types';
|
3
|
+
export declare const getAppStatusMessageFromAppDetails: (appDetails: AppDetails) => string;
|
4
|
+
export declare const getFlattenedNodesFromAppDetails: ({ appDetails, filterHealthyNodes, }: GetFlattenedNodesFromAppDetailsParamsType) => Node[];
|
5
|
+
export declare const getResourceKey: (nodeDetails: Node) => string;
|
@@ -84,3 +84,4 @@ export declare const PROGRESSING_STATUS: {
|
|
84
84
|
readonly [x: string]: "progressing" | "starting" | "initiating" | "queued" | "running";
|
85
85
|
};
|
86
86
|
export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
|
87
|
+
export declare const APP_HEALTH_DROP_DOWN_LIST: string[];
|
@@ -508,12 +508,6 @@ export interface DeploymentHistorySidebarType {
|
|
508
508
|
deploymentHistoryList: DeploymentTemplateList[];
|
509
509
|
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
510
510
|
}
|
511
|
-
export interface AppStatusDetailsChartType {
|
512
|
-
filterRemoveHealth?: boolean;
|
513
|
-
showFooter: boolean;
|
514
|
-
showConfigDriftInfo?: boolean;
|
515
|
-
onClose?: () => void;
|
516
|
-
}
|
517
511
|
export interface StatusFilterButtonType {
|
518
512
|
nodes: Array<Node>;
|
519
513
|
selectedTab: string;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { AnimatePresence
|
1
|
+
import { AnimatePresence } from 'framer-motion';
|
2
2
|
export * from './MotionDiv';
|
3
|
-
export { AnimatePresence
|
3
|
+
export { AnimatePresence };
|
@@ -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,9 +19,7 @@ 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
25
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -35,7 +30,6 @@ export declare const iconMap: {
|
|
35
30
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
36
31
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
37
32
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
38
|
-
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
33
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
34
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
35
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -52,18 +46,16 @@ export declare const iconMap: {
|
|
52
46
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
47
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
48
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
-
'ic-expand-
|
49
|
+
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
50
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
51
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
52
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
53
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
|
-
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
54
|
'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
55
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
56
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
57
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
58
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
|
-
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
59
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
60
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
61
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -77,13 +69,9 @@ export declare const iconMap: {
|
|
77
69
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
70
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
71
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
|
-
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
72
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
|
-
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
73
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
84
74
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
|
-
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
|
-
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
75
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
76
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
77
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -94,9 +82,7 @@ export declare const iconMap: {
|
|
94
82
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
83
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
84
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
|
-
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
85
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
99
|
-
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
100
86
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
87
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
102
88
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -128,13 +114,10 @@ export declare const iconMap: {
|
|
128
114
|
'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
129
115
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
130
116
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
131
|
-
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
117
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
|
-
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
118
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
119
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
120
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
|
-
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
121
|
};
|
139
122
|
export type IconName = keyof typeof iconMap;
|
140
123
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -11,7 +11,7 @@ export interface IconBaseProps {
|
|
11
11
|
* The size of the icon in pixels.
|
12
12
|
* @default 16
|
13
13
|
*/
|
14
|
-
size?: IconBaseSizeType
|
14
|
+
size?: IconBaseSizeType;
|
15
15
|
/** Props to configure the tooltip when hovering over the icon. */
|
16
16
|
tooltipProps?: TooltipProps;
|
17
17
|
/**
|
@@ -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, }: InfoIconTippyProps) => JSX.Element;
|
2
|
+
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
|
3
3
|
export default InfoIconTippy;
|
@@ -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;
|
@@ -5,6 +5,7 @@ export * from './AnimatedDeployButton';
|
|
5
5
|
export * from './AnimatedTimer';
|
6
6
|
export * from './AnnouncementBanner';
|
7
7
|
export * from './APIResponseHandler';
|
8
|
+
export * from './AppStatusModal';
|
8
9
|
export * from './ArtifactInfoModal';
|
9
10
|
export * from './Backdrop';
|
10
11
|
export * from './BulkOperations';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OptionType } from '../Common/Types';
|
1
|
+
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
2
|
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types';
|
3
3
|
export declare const ARTIFACT_STATUS: {
|
4
4
|
PROGRESSING: string;
|
@@ -435,3 +435,4 @@ export declare const Routes: {
|
|
435
435
|
};
|
436
436
|
export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
|
437
437
|
export declare const INVALID_LICENSE_KEY = "inValid";
|
438
|
+
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -111,6 +111,7 @@ export interface Node {
|
|
111
111
|
canBeHibernated: boolean;
|
112
112
|
isHibernated: boolean;
|
113
113
|
hasDrift?: boolean;
|
114
|
+
status?: string;
|
114
115
|
}
|
115
116
|
export interface iNodes extends Array<iNode> {
|
116
117
|
}
|
@@ -198,6 +199,10 @@ export interface AppDetails {
|
|
198
199
|
fluxTemplateType?: string;
|
199
200
|
FluxAppStatusDetail?: FluxAppStatusDetail;
|
200
201
|
}
|
202
|
+
export interface ConfigDriftModalProps extends Required<Pick<AppDetails, 'appId'>> {
|
203
|
+
envId: number;
|
204
|
+
handleCloseModal?: () => void;
|
205
|
+
}
|
201
206
|
export declare enum RegistryType {
|
202
207
|
GIT = "git",
|
203
208
|
GITHUB = "github",
|