@devtron-labs/devtron-fe-common-lib 1.12.0-beta-5 → 1.12.0-beta-7
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-Bgkd1h1Y.js → @code-editor-DchqrobO.js} +13631 -13805
- package/dist/{@common-rjsf-kqKDCxYD.js → @common-rjsf-DyHrlx2Z.js} +2 -2
- package/dist/{@framer-motion-B-tsB4kf.js → @framer-motion-BaOj5B1h.js} +1 -1
- package/dist/{@react-dates-DQl_saOu.js → @react-dates-CdRpENvm.js} +1 -1
- package/dist/{@react-select-Cq3Neli-.js → @react-select-BLSAqXV1.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DzwGuB_x.js → @react-virtualized-sticky-tree-BLmFnJWD.js} +1 -1
- package/dist/{@vendor-B47rbd8d.js → @vendor-SjXFleuT.js} +17314 -17314
- package/dist/Common/Checkbox/Checkbox.d.ts +2 -0
- package/dist/Common/Checkbox/index.d.ts +1 -0
- package/dist/Common/Constants.d.ts +1 -2
- package/dist/Common/Helper.d.ts +0 -2
- package/dist/Common/Toggle/Toggle.d.ts +1 -4
- package/dist/Common/Types.d.ts +1 -1
- package/dist/Common/index.d.ts +3 -2
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +3 -0
- 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/types.d.ts +6 -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/Icon/Icon.d.ts +9 -1
- 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 +2 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -5
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-14-day-trial-chip.0fbc1bf7.svg +36 -0
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
- package/dist/assets/ic-bulk-check.0f698efa.svg +21 -0
- 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-checkbox-hover.0151d832.svg +20 -0
- package/dist/assets/ic-checkbox-hover.93e8d66a.svg +20 -0
- 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-checkbox-unselected.8054e3d7.svg +19 -0
- package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
- package/dist/assets/ic-install.28c3beec.svg +3 -0
- package/dist/assets/ic-laptop.485e21b4.svg +3 -0
- package/dist/assets/ic-mobile.7c649251.svg +4 -0
- package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
- package/dist/index.js +832 -833
- package/package.json +1 -1
- package/dist/Common/Checkbox.d.ts +0 -5
- package/dist/Common/Drawer/index.d.ts +0 -1
- package/dist/Common/EmptyState/index.d.ts +0 -2
- 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/constants.d.ts +0 -4
- package/dist/Shared/Components/AppStatusModal/index.d.ts +0 -2
- package/dist/Shared/Components/AppStatusModal/service.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/types.d.ts +0 -35
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +0 -5
- package/dist/assets/ic-expand-sm.a9a724f8.svg +0 -3
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Checkbox';
|
@@ -13,7 +13,6 @@ 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;
|
17
16
|
};
|
18
17
|
export declare const PATTERNS: {
|
19
18
|
STRING: RegExp;
|
@@ -65,6 +64,7 @@ export declare const URLS: {
|
|
65
64
|
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
66
65
|
readonly APP_CONFIG: "edit";
|
67
66
|
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,7 +111,6 @@ 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";
|
115
114
|
readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
|
116
115
|
readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
|
117
116
|
readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -95,10 +95,8 @@ 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
|
99
98
|
*/
|
100
99
|
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;
|
102
100
|
/**
|
103
101
|
* Returns a capitalized string with first letter in uppercase and rest in lowercase
|
104
102
|
*/
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, value, isControlled, ...props }: {
|
1
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, ...props }: {
|
3
2
|
[x: string]: any;
|
4
3
|
selected?: boolean;
|
5
4
|
onSelect?: any;
|
@@ -12,7 +11,5 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
12
11
|
throttleOnChange?: boolean;
|
13
12
|
shouldToggleValueOnLabelClick?: boolean;
|
14
13
|
isLoading?: boolean;
|
15
|
-
value?: CHECKBOX_VALUE;
|
16
|
-
isControlled?: boolean;
|
17
14
|
}) => JSX.Element;
|
18
15
|
export default Toggle;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -75,6 +75,7 @@ export interface CheckboxProps {
|
|
75
75
|
onClick?: (event: any) => void;
|
76
76
|
id?: string;
|
77
77
|
dataTestId?: string;
|
78
|
+
children?: ReactNode;
|
78
79
|
}
|
79
80
|
export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
80
81
|
theme: TippyTheme;
|
@@ -110,7 +111,6 @@ export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading'
|
|
110
111
|
dataTestid?: string;
|
111
112
|
children?: TippyCustomizedProps['children'];
|
112
113
|
iconClassName?: string;
|
113
|
-
buttonPadding?: string;
|
114
114
|
}
|
115
115
|
export interface GenericEmptyStateType {
|
116
116
|
title: ReactNode;
|
package/dist/Common/index.d.ts
CHANGED
@@ -16,8 +16,9 @@ export { default as DevtronCopyright } from './DevtronCopyright';
|
|
16
16
|
export * from './DevtronProgressing';
|
17
17
|
export * from './Dialogs';
|
18
18
|
export * from './DraggableWrapper';
|
19
|
-
export * from './Drawer';
|
20
|
-
export
|
19
|
+
export * from './Drawer/Drawer';
|
20
|
+
export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
|
21
|
+
export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState';
|
21
22
|
export { default as ErrorScreenManager } from './ErrorScreenManager';
|
22
23
|
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
23
24
|
export * from './GenericDescription';
|
@@ -84,4 +84,3 @@ 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[];
|
@@ -507,6 +507,12 @@ export interface DeploymentHistorySidebarType {
|
|
507
507
|
deploymentHistoryList: DeploymentTemplateList[];
|
508
508
|
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
509
509
|
}
|
510
|
+
export interface AppStatusDetailsChartType {
|
511
|
+
filterRemoveHealth?: boolean;
|
512
|
+
showFooter: boolean;
|
513
|
+
showConfigDriftInfo?: boolean;
|
514
|
+
onClose?: () => void;
|
515
|
+
}
|
510
516
|
export interface StatusFilterButtonType {
|
511
517
|
nodes: Array<Node>;
|
512
518
|
selectedTab: string;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { AnimatePresence } from 'framer-motion';
|
1
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
2
2
|
export * from './MotionDiv';
|
3
|
-
export { AnimatePresence };
|
3
|
+
export { AnimatePresence, motion };
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
2
|
export declare const iconMap: {
|
3
|
+
'ic-14-day-trial-chip': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
3
4
|
'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
5
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
6
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -7,6 +8,7 @@ export declare const iconMap: {
|
|
7
8
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
9
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
10
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
|
+
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
12
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
13
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
14
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -19,7 +21,9 @@ export declare const iconMap: {
|
|
19
21
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
20
22
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
23
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
|
+
'ic-caret-down-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
25
|
'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
|
+
'ic-caret-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
27
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
28
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
29
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -45,7 +49,7 @@ export declare const iconMap: {
|
|
45
49
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
50
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
51
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
|
-
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
|
+
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
53
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
54
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
55
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -68,8 +72,10 @@ export declare const iconMap: {
|
|
68
72
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
73
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
74
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
|
+
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
76
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
77
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
|
+
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
79
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
80
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
81
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -81,6 +87,7 @@ export declare const iconMap: {
|
|
81
87
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
88
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
89
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
90
|
+
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
84
91
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
92
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
93
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -110,6 +117,7 @@ export declare const iconMap: {
|
|
110
117
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
118
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
119
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
120
|
+
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
113
121
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
122
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
115
123
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -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 | null;
|
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,
|
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 } from './utils';
|
5
|
+
export { parseDevtronLicenseData, parseDevtronLicenseDTOIntoLicenseCardData } from './utils';
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { DevtronLicenseDTO } from '../../types';
|
2
|
-
import { DevtronLicenseInfo, LicenseStatus } from './types';
|
2
|
+
import { DevtronLicenseCardProps, 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">;
|
7
8
|
export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
|
8
9
|
export declare const getGateKeeperUrl: (fingerprint: string) => string;
|
@@ -4,7 +4,6 @@ export * from './AnimatedDeployButton';
|
|
4
4
|
export * from './AnimatedTimer';
|
5
5
|
export * from './AnnouncementBanner';
|
6
6
|
export * from './APIResponseHandler';
|
7
|
-
export * from './AppStatusModal';
|
8
7
|
export * from './ArtifactInfoModal';
|
9
8
|
export * from './Backdrop';
|
10
9
|
export * from './BulkOperations';
|
package/dist/Shared/types.d.ts
CHANGED
@@ -111,7 +111,6 @@ export interface Node {
|
|
111
111
|
canBeHibernated: boolean;
|
112
112
|
isHibernated: boolean;
|
113
113
|
hasDrift?: boolean;
|
114
|
-
status?: string;
|
115
114
|
}
|
116
115
|
export interface iNodes extends Array<iNode> {
|
117
116
|
}
|
@@ -199,10 +198,6 @@ export interface AppDetails {
|
|
199
198
|
fluxTemplateType?: string;
|
200
199
|
FluxAppStatusDetail?: FluxAppStatusDetail;
|
201
200
|
}
|
202
|
-
export interface ConfigDriftModalProps extends Required<Pick<AppDetails, 'appId'>> {
|
203
|
-
envId: number;
|
204
|
-
handleCloseModal?: () => void;
|
205
|
-
}
|
206
201
|
export declare enum RegistryType {
|
207
202
|
GIT = "git",
|
208
203
|
GITHUB = "github",
|