@devtron-labs/devtron-fe-common-lib 0.3.18 → 0.3.19
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/Types.d.ts +5 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +0 -2
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +0 -1
- package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/index.d.ts +1 -0
- package/dist/Shared/Components/Security/Vulnerabilities/service.d.ts +2 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +2 -2
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-DV5BT1Fa.js → cssMode-L4ejjv4b.js} +1 -1
- package/dist/{freemarker2-3QSwZelk.js → freemarker2-DFf50hYL.js} +1 -1
- package/dist/{handlebars-B2CNvI_0.js → handlebars-Dx82l5NZ.js} +1 -1
- package/dist/{html-CcR_g9CJ.js → html-CFBijbjb.js} +1 -1
- package/dist/{htmlMode-CQK-QROq.js → htmlMode-MMfsA90x.js} +1 -1
- package/dist/{index-uhMoUS-4.js → index-BJFQ3Ygx.js} +12601 -12577
- package/dist/index.js +149 -148
- package/dist/{javascript-D96I4yre.js → javascript-DlsaFnR_.js} +1 -1
- package/dist/{jsonMode-D5BqPUJp.js → jsonMode-B__MUwCp.js} +1 -1
- package/dist/{liquid-Crnuun-t.js → liquid-w5m9S-cK.js} +1 -1
- package/dist/{mdx-C22a5K0x.js → mdx-DGFSJisM.js} +1 -1
- package/dist/{python-DdgCzTeJ.js → python-E8AqlBrC.js} +1 -1
- package/dist/{razor-C6uVrfH5.js → razor-BoIhRXm5.js} +1 -1
- package/dist/{tsMode-C2YN_Viv.js → tsMode-y8NFUeid.js} +1 -1
- package/dist/{typescript-CVzLiJVm.js → typescript-CGfLgEG-.js} +1 -1
- package/dist/{xml-iWhvOAX4.js → xml-CCdXSFcv.js} +1 -1
- package/dist/{yaml-e66pWN7t.js → yaml-C0nNmy11.js} +1 -1
- package/package.json +3 -3
package/dist/Common/Types.d.ts
CHANGED
|
@@ -546,6 +546,11 @@ export interface VulnerabilityType {
|
|
|
546
546
|
policy: string;
|
|
547
547
|
url?: string;
|
|
548
548
|
}
|
|
549
|
+
export interface ScanVulnerabilitiesTableProps {
|
|
550
|
+
vulnerabilities: VulnerabilityType[];
|
|
551
|
+
hidePolicy?: boolean;
|
|
552
|
+
shouldStick?: boolean;
|
|
553
|
+
}
|
|
549
554
|
export interface MaterialInfo {
|
|
550
555
|
revision: string;
|
|
551
556
|
modifiedTime: string | Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeploymentConfigDiffProps, AppEnvDeploymentConfigListParams } from '..';
|
|
2
2
|
import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the draft data from the given configuration data object.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId,
|
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar, getSecurityScan, }: ImageCardAccordionProps) => JSX.Element;
|
|
3
3
|
export default ImageCardAccordion;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiResponseResultType, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
|
2
|
-
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"]
|
|
2
|
+
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"]) => {
|
|
3
3
|
headers: ({
|
|
4
4
|
headerText: string;
|
|
5
5
|
isSortable: boolean;
|
|
@@ -95,6 +95,6 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
|
95
95
|
})[];
|
|
96
96
|
}[];
|
|
97
97
|
};
|
|
98
|
-
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]
|
|
98
|
+
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
99
99
|
export declare const getCodeScanInfoCardData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
100
100
|
export declare const getCodeScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
|
2
|
-
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]
|
|
2
|
+
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
3
3
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
4
4
|
export declare const getImageScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ApiResponseResultType, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
|
2
|
-
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]
|
|
2
|
+
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
@@ -120,7 +120,6 @@ export interface CodeScanVulnerabilityType {
|
|
|
120
120
|
package: string;
|
|
121
121
|
currentVersion: string;
|
|
122
122
|
fixedInVersion: string;
|
|
123
|
-
permission?: string;
|
|
124
123
|
}
|
|
125
124
|
export interface ImageScanVulnerabilityType extends CodeScanVulnerabilityType {
|
|
126
125
|
target?: string;
|
|
@@ -214,7 +213,6 @@ interface SecurityModalBaseProps extends Partial<Pick<SidebarPropsType, 'isExter
|
|
|
214
213
|
isHelmApp?: boolean;
|
|
215
214
|
isResourceScan?: boolean;
|
|
216
215
|
isSecurityScanV2Enabled: boolean;
|
|
217
|
-
hidePolicy?: boolean;
|
|
218
216
|
}
|
|
219
217
|
export type SecurityModalPropsType = SecurityModalBaseProps;
|
|
220
218
|
export interface IndexedTextDisplayPropsType {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SecuritySummaryCardProps } from './types';
|
|
2
|
-
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled,
|
|
2
|
+
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled, }: SecuritySummaryCardProps) => JSX.Element;
|
|
3
3
|
export default SecuritySummaryCard;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { VulnerabilitiesProps } from './types';
|
|
2
|
-
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId,
|
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, setVulnerabilityCount, SecurityModalSidebar, getSecurityScan, }: VulnerabilitiesProps) => JSX.Element;
|
|
3
3
|
export default Vulnerabilities;
|
|
@@ -2,16 +2,15 @@ import { ResponseType } from '../../../../Common/Types';
|
|
|
2
2
|
import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
|
|
3
3
|
import { MaterialSecurityInfoType } from '../../../types';
|
|
4
4
|
import { ApiResponseResultType } from '../SecurityModal';
|
|
5
|
+
import { getLastExecutionByArtifactApp } from './service';
|
|
5
6
|
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar' | 'getSecurityScan'> {
|
|
6
7
|
artifactId: number;
|
|
7
8
|
applicationId: number;
|
|
8
|
-
environmentId: number;
|
|
9
9
|
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
|
10
10
|
}
|
|
11
11
|
export interface UseGetSecurityVulnerabilitiesProps extends Pick<ImageCardAccordionProps, 'getSecurityScan'> {
|
|
12
12
|
artifactId: string;
|
|
13
13
|
appId: string;
|
|
14
|
-
envId: number;
|
|
15
14
|
isScanned: boolean;
|
|
16
15
|
isScanEnabled: boolean;
|
|
17
16
|
isScanV2Enabled: boolean;
|
|
@@ -19,6 +18,7 @@ export interface UseGetSecurityVulnerabilitiesProps extends Pick<ImageCardAccord
|
|
|
19
18
|
export interface UseGetSecurityVulnerabilitiesReturnType {
|
|
20
19
|
scanDetailsLoading: boolean;
|
|
21
20
|
scanResultResponse: ResponseType<ApiResponseResultType>;
|
|
21
|
+
executionDetailsResponse: Awaited<ReturnType<typeof getLastExecutionByArtifactApp>>;
|
|
22
22
|
scanDetailsError: any;
|
|
23
23
|
reloadScanDetails: () => void;
|
|
24
24
|
}
|
|
@@ -3,4 +3,4 @@ import { UseGetSecurityVulnerabilitiesProps, UseGetSecurityVulnerabilitiesReturn
|
|
|
3
3
|
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
|
4
4
|
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
|
5
5
|
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
|
6
|
-
export declare const useGetSecurityVulnerabilities: ({ artifactId, appId,
|
|
6
|
+
export declare const useGetSecurityVulnerabilities: ({ artifactId, appId, isScanned, isScanEnabled, isScanV2Enabled, getSecurityScan, }: UseGetSecurityVulnerabilitiesProps) => UseGetSecurityVulnerabilitiesReturnType;
|