@devtron-labs/devtron-fe-common-lib 1.4.0-beta-2 → 1.4.0-beta-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-DVKOAVeb.js → @code-editor-CJtUMNgR.js} +7417 -7699
- package/dist/{@common-rjsf-B-AVBwcg.js → @common-rjsf-8WBKwCV7.js} +2 -2
- package/dist/{@framer-motion-BxQTtYmm.js → @framer-motion-C4FMADic.js} +1 -1
- package/dist/{@react-dates-M_eJUVeH.js → @react-dates-Bw9xFSwg.js} +20 -20
- package/dist/{@react-select-CywptBlV.js → @react-select-DbkfUliH.js} +1 -1
- package/dist/{@vendor-QI4m26H1.js → @vendor-BfPc30M8.js} +4142 -4181
- package/dist/Common/Constants.d.ts +0 -3
- package/dist/Common/Drawer/Drawer.d.ts +3 -3
- package/dist/Common/SegmentedBarChart/types.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/index.d.ts +0 -3
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +0 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -36
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +28 -24
- package/dist/Pages/ResourceBrowser/service.d.ts +2 -4
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +13 -14
- package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityCard.d.ts +3 -0
- package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityDetailsCards.d.ts +3 -0
- package/dist/Shared/Components/Security/SecurityDetailsCards/index.d.ts +2 -0
- package/dist/Shared/Components/Security/SecurityDetailsCards/types.d.ts +11 -0
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +5 -0
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -0
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -0
- package/dist/Shared/Components/Security/constants.d.ts +2 -0
- package/dist/Shared/Components/Security/index.d.ts +1 -1
- package/dist/Shared/Components/Security/types.d.ts +18 -0
- package/dist/Shared/Components/Security/utils.d.ts +5 -7
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +6 -2
- package/dist/Shared/Hooks/UseDownload/types.d.ts +0 -5
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +6 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-shield-check.7f018238.svg +3 -0
- package/dist/assets/ic-shield-warning-outline.70fea3e8.svg +3 -0
- package/dist/index.js +540 -543
- package/package.json +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/constants.d.ts +0 -6
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/utils.d.ts +0 -10
- package/dist/Shared/Components/BulkOperations/BulkOperations.component.d.ts +0 -3
- package/dist/Shared/Components/BulkOperations/BulkOperationsResultModal.d.ts +0 -3
- package/dist/Shared/Components/BulkOperations/OperationResultStore.d.ts +0 -21
- package/dist/Shared/Components/BulkOperations/constants.d.ts +0 -13
- package/dist/Shared/Components/BulkOperations/index.d.ts +0 -2
- package/dist/Shared/Components/BulkOperations/types.d.ts +0 -69
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +0 -3
- package/dist/Shared/Components/Security/SecuritySummaryCard/index.d.ts +0 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +0 -10
- package/dist/assets/ic-arrows-clockwise.424f0538.svg +0 -7
- /package/dist/Pages/{Applications/DevtronApps/Details/AppConfigurations → App/AppConfiguration}/DeploymentTemplate/GUIView/index.d.ts +0 -0
- /package/dist/Pages/{Applications/DevtronApps/Details/AppConfigurations → App/AppConfiguration}/DeploymentTemplate/GUIView/types.d.ts +0 -0
- /package/dist/Pages/{Applications/DevtronApps/Details/AppConfigurations → App/AppConfiguration}/DeploymentTemplate/GUIView/utils.d.ts +0 -0
package/package.json
CHANGED
@@ -1,10 +0,0 @@
|
|
1
|
-
import { APIOptions, CDMaterialType } from '../../../../../Common/Types';
|
2
|
-
export declare const getAPIOptionsWithTriggerTimeout: (options?: APIOptions) => APIOptions;
|
3
|
-
/**
|
4
|
-
* This check is used to find the image that is currently deployed on the environment
|
5
|
-
* from the image list fetched from genericCDMaterialsService for a given environment
|
6
|
-
*
|
7
|
-
* @param material CDMaterialType
|
8
|
-
* @returns if image is currently deployed
|
9
|
-
*/
|
10
|
-
export declare const isImageActiveOnEnvironment: (material: CDMaterialType) => boolean;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { BulkOperationModalProps } from './types';
|
2
|
-
declare const BulkOperations: ({ handleModalClose: handleModalCloseProp, operations: userOperations, getResultsChartSummaryText, handleReloadDataAfterBulkOperation, hideResultsDrawer, textConfig, shouldSkipConfirmation, confirmationModalConfig, data, disableTransition, }: BulkOperationModalProps) => JSX.Element;
|
3
|
-
export default BulkOperations;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { BulkOperationsResultModalProps } from './types';
|
2
|
-
declare const BulkOperationsResultModal: ({ apiCallInProgress, handleModalClose, isOperationAborted, resultsStore, handleAbortBulkOperation, handleRetryFailedOperations, resultsHeader: headerText, getResultsChartSummaryText, disableTransition, }: BulkOperationsResultModalProps) => JSX.Element;
|
3
|
-
export default BulkOperationsResultModal;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { OperationResultStoreType } from './types';
|
2
|
-
export declare class OperationResultStore implements OperationResultStoreType {
|
3
|
-
#private;
|
4
|
-
private size;
|
5
|
-
private results;
|
6
|
-
private map;
|
7
|
-
private retryOperations;
|
8
|
-
private retryOperationsSet;
|
9
|
-
private barChartEntities;
|
10
|
-
constructor(size: number);
|
11
|
-
private updateStatus;
|
12
|
-
addResult: OperationResultStoreType['addResult'];
|
13
|
-
getResults: OperationResultStoreType['getResults'];
|
14
|
-
getBarChartEntities: OperationResultStoreType['getBarChartEntities'];
|
15
|
-
getResultsStatusCount: OperationResultStoreType['getResultsStatusCount'];
|
16
|
-
getSize: OperationResultStoreType['getSize'];
|
17
|
-
updateResultStatus: OperationResultStoreType['updateResultStatus'];
|
18
|
-
getRetryOperations: OperationResultStoreType['getRetryOperations'];
|
19
|
-
hasAnyOperationFailed: OperationResultStoreType['hasAnyOperationFailed'];
|
20
|
-
getHasAnyOperationSucceeded: OperationResultStoreType['getHasAnyOperationSucceeded'];
|
21
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export declare const COLOR_MAPPING: {
|
2
|
-
Completed: string;
|
3
|
-
Pending: string;
|
4
|
-
Failed: string;
|
5
|
-
};
|
6
|
-
export declare const RESULTS_MODAL_HEADERS: {
|
7
|
-
label: string;
|
8
|
-
isSortable: boolean;
|
9
|
-
width: string;
|
10
|
-
}[];
|
11
|
-
export declare const SORT_ORDER_TO_KEY: Partial<Record<(typeof RESULTS_MODAL_HEADERS)[number]['label'], string>>;
|
12
|
-
export declare const SORT_KEY_TO_NORMALIZER: Partial<Record<(typeof RESULTS_MODAL_HEADERS)[number]['label'], Function | null>>;
|
13
|
-
export type SORTABLE_KEYS_TYPE = (typeof SORT_ORDER_TO_KEY)[keyof typeof SORT_ORDER_TO_KEY];
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import { SegmentedBarChartProps } from '../../../Common/SegmentedBarChart';
|
2
|
-
import { ReactNode } from 'react';
|
3
|
-
import { APIOptions, DrawerProps } from '../../../Common/index';
|
4
|
-
import { getProgressingStateForStatus } from '../Security';
|
5
|
-
import { ConfirmationModalProps } from '../ConfirmationModal/types';
|
6
|
-
interface BulkOperationAdditionalKeysType {
|
7
|
-
label: string;
|
8
|
-
value: string;
|
9
|
-
isSortable: boolean;
|
10
|
-
/**
|
11
|
-
* width to be given in gridTemplateColumns
|
12
|
-
*/
|
13
|
-
width: string;
|
14
|
-
}
|
15
|
-
export interface BulkOperation {
|
16
|
-
name: string;
|
17
|
-
/**
|
18
|
-
* Would show these keys beside the name
|
19
|
-
*/
|
20
|
-
additionalKeys?: BulkOperationAdditionalKeysType[];
|
21
|
-
operation: (abortControllerRef: APIOptions['abortControllerRef'], data?: unknown) => Promise<unknown | void>;
|
22
|
-
renderContentAtResultRowEnd?: (data: Awaited<ReturnType<BulkOperation['operation']>>) => ReactNode;
|
23
|
-
}
|
24
|
-
export type FailedOperationType = {
|
25
|
-
status: 'Failed';
|
26
|
-
retryOperation: BulkOperation;
|
27
|
-
};
|
28
|
-
export type OtherStatusOperationType = {
|
29
|
-
status: Exclude<Parameters<typeof getProgressingStateForStatus>[0], 'Failed' | 'Running'> | 'Pending';
|
30
|
-
};
|
31
|
-
export type BulkOperationResultType = {
|
32
|
-
message?: string;
|
33
|
-
renderContentAtResultRowEnd?: () => void;
|
34
|
-
} & (FailedOperationType | OtherStatusOperationType) & Pick<BulkOperation, 'name' | 'additionalKeys'>;
|
35
|
-
export type BulkOperationResultWithIdType = BulkOperationResultType & Record<'id', number>;
|
36
|
-
export interface OperationResultStoreType {
|
37
|
-
addResult: (result: BulkOperationResultType) => number;
|
38
|
-
getResults: (sortComparator: (a: BulkOperationResultType, b: BulkOperationResultType) => number) => BulkOperationResultWithIdType[];
|
39
|
-
getBarChartEntities: () => SegmentedBarChartProps['entities'];
|
40
|
-
getResultsStatusCount: () => Record<BulkOperationResultType['status'], number>;
|
41
|
-
getSize: () => number;
|
42
|
-
updateResultStatus: (id: number, result: Partial<Pick<BulkOperationResultType, 'message' | 'renderContentAtResultRowEnd'>> & (FailedOperationType | OtherStatusOperationType)) => void;
|
43
|
-
getRetryOperations: () => FailedOperationType['retryOperation'][];
|
44
|
-
hasAnyOperationFailed: () => boolean;
|
45
|
-
getHasAnyOperationSucceeded: () => boolean;
|
46
|
-
}
|
47
|
-
export type BulkOperationModalProps = {
|
48
|
-
operations: NonNullable<BulkOperation[]>;
|
49
|
-
handleModalClose: () => void;
|
50
|
-
textConfig: Record<'prompt' | 'resultsHeader', string>;
|
51
|
-
getResultsChartSummaryText: (counts: Record<BulkOperationResultType['status'], number>) => ReactNode;
|
52
|
-
data?: unknown;
|
53
|
-
handleReloadDataAfterBulkOperation?: () => void;
|
54
|
-
hideResultsDrawer?: boolean;
|
55
|
-
} & ({
|
56
|
-
shouldSkipConfirmation?: never;
|
57
|
-
confirmationModalConfig: ConfirmationModalProps<true>;
|
58
|
-
} | {
|
59
|
-
shouldSkipConfirmation: true;
|
60
|
-
confirmationModalConfig?: never;
|
61
|
-
}) & Pick<DrawerProps, 'disableTransition'>;
|
62
|
-
export interface BulkOperationsResultModalProps extends Pick<BulkOperationModalProps, 'handleModalClose' | 'getResultsChartSummaryText' | 'disableTransition'>, Pick<BulkOperationModalProps['textConfig'], 'resultsHeader'> {
|
63
|
-
resultsStore: OperationResultStoreType;
|
64
|
-
apiCallInProgress: boolean;
|
65
|
-
isOperationAborted: boolean;
|
66
|
-
handleAbortBulkOperation: () => void;
|
67
|
-
handleRetryFailedOperations: () => void;
|
68
|
-
}
|
69
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as SecuritySummaryCard } from './SecuritySummaryCard';
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { SeverityCount } from '../../../types';
|
2
|
-
import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
|
3
|
-
import { ScanResultDTO } from '../SecurityModal';
|
4
|
-
export type SecuritySummaryCardProps = {
|
5
|
-
severityCount: SeverityCount;
|
6
|
-
scanToolId: number;
|
7
|
-
rootClassName?: string;
|
8
|
-
responseData: ScanResultDTO;
|
9
|
-
hidePolicy?: boolean;
|
10
|
-
} & Pick<ImageCardAccordionProps, 'SecurityModalSidebar'>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
- Copyright (c) 2024. Devtron Inc.
|
3
|
-
-->
|
4
|
-
|
5
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
6
|
-
<path d="M11.0106 6.23225H14.0106M14.0106 6.23225V3.23225M14.0106 6.23225L11.8893 4.11091C11.3786 3.60019 10.7722 3.19506 10.1049 2.91866C9.43766 2.64226 8.72246 2.5 8.00019 2.5C7.27792 2.5 6.56272 2.64226 5.89543 2.91866C5.22814 3.19506 4.62182 3.60019 4.1111 4.11091M4.98975 9.76775H1.98975M1.98975 9.76775V12.7678M1.98975 9.76775L4.1111 11.8891C4.62182 12.3998 5.22813 12.8049 5.89542 13.0813C6.56272 13.3577 7.27791 13.5 8.00018 13.5C8.72245 13.5 9.43765 13.3577 10.1049 13.0813C10.7722 12.8049 11.3785 12.3998 11.8893 11.8891" stroke="#596168" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
7
|
-
</svg>
|
File without changes
|
File without changes
|