@devtron-labs/devtron-fe-common-lib 1.3.5-beta-1 → 1.3.5-beta-2
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-CoTxRKvq.js → @code-editor-CV_fswVm.js} +5188 -5341
- package/dist/{@common-rjsf-C4yXpQ5j.js → @common-rjsf-C_sf1uQ_.js} +1 -1
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +0 -6
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -3
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/InfoCard.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +5 -5
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +4 -4
- package/dist/Shared/Components/Security/SecurityModal/service.d.ts +2 -3
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +11 -18
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +3 -4
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +2 -4
- package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -17
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +0 -5
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -3
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -13
- package/dist/Shared/types.d.ts +1 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +384 -388
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-BG3OpQCq.js";
|
|
2
2
|
import E, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
5
|
-
import { T as y, c as H, a as J, d as w } from "./@code-editor-
|
5
|
+
import { T as y, c as H, a as J, d as w } from "./@code-editor-CV_fswVm.js";
|
6
6
|
import M, { components as O } from "react-select";
|
7
7
|
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as U, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as V, TranslatableString as q, titleId as K, canExpand as Y, deepEquals as z } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as G } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
@@ -67,7 +67,7 @@ export declare const ROUTES: {
|
|
67
67
|
CD_MATERIAL_GET: string;
|
68
68
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
69
69
|
INFRA_CONFIG_PROFILE: string;
|
70
|
-
|
70
|
+
SCAN_RESULT: string;
|
71
71
|
NOTIFIER: string;
|
72
72
|
APP_LIST: string;
|
73
73
|
TELEMETRY_EVENT: string;
|
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
64
64
|
* ```
|
65
65
|
*/
|
66
|
-
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth,
|
66
|
+
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, ...props }: ButtonProps) => JSX.Element;
|
67
67
|
export default Button;
|
@@ -80,12 +80,6 @@ export type ButtonProps = ({
|
|
80
80
|
* @default false
|
81
81
|
*/
|
82
82
|
fullWidth?: boolean;
|
83
|
-
/**
|
84
|
-
* If true, the opacity is turned as 1 on hover of class with dc__opacity-hover--parent
|
85
|
-
*
|
86
|
-
* @default false
|
87
|
-
*/
|
88
|
-
isOpacityHoverChild?: boolean;
|
89
83
|
} & ({
|
90
84
|
/**
|
91
85
|
* If true, the tooltip is shown for the button
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar,
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar, }: ImageCardAccordionProps) => JSX.Element;
|
3
3
|
export default ImageCardAccordion;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
2
|
-
import { CDModalTabType,
|
2
|
+
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
3
3
|
import { MaterialSecurityInfoType } from '../../types';
|
4
|
-
import {
|
4
|
+
import { SidebarPropsType } from '../Security';
|
5
5
|
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
6
6
|
isSecurityModuleInstalled: boolean;
|
7
7
|
artifactId: number;
|
@@ -11,7 +11,6 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
11
11
|
isScanned: boolean;
|
12
12
|
isScanEnabled: boolean;
|
13
13
|
SecurityModalSidebar: React.FC<SidebarPropsType>;
|
14
|
-
getSecurityScan: (props: Pick<AppDetailsPayload, 'appId' | 'artifactId'>) => Promise<ResponseType<ApiResponseResultType>>;
|
15
14
|
}
|
16
15
|
export interface SecurityDetailsType {
|
17
16
|
vulnerabilities: VulnerabilityType[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScanResultDTO, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
2
2
|
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
|
3
3
|
headers: ({
|
4
4
|
headerText: string;
|
@@ -97,4 +97,4 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
97
97
|
};
|
98
98
|
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
99
99
|
export declare const getCodeScanInfoCardData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
100
|
-
export declare const getCodeScanEmptyState: (data:
|
100
|
+
export declare const getCodeScanEmptyState: (data: ScanResultDTO, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const getEmptyStateValues: (data:
|
1
|
+
import { ScanResultDTO, DetailViewDataType, SecurityModalStateType } from '../types';
|
2
|
+
export declare const getEmptyStateValues: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => import('../types').EmptyStateType;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, StatusType, InfoCardPropsType, EmptyStateType,
|
1
|
+
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, StatusType, InfoCardPropsType, EmptyStateType, ScanResultDTO, OpenDetailViewButtonProps } from '../types';
|
2
2
|
export declare const getProgressingStateForStatus: (status: StatusType["status"]) => JSX.Element;
|
3
3
|
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
4
4
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
5
|
-
export declare const getImageScanEmptyState: (data:
|
5
|
+
export declare const getImageScanEmptyState: (data: ScanResultDTO, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { InfoCardPropsType,
|
2
|
-
export declare const getInfoCardData: (data:
|
1
|
+
import { InfoCardPropsType, ScanResultDTO, SecurityModalStateType } from '../types';
|
2
|
+
export declare const getInfoCardData: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScanResultDTO, DetailViewDataType, EmptyStateType, InfoCardPropsType, KubernetesManifest, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
2
2
|
export declare const getKubernetesManifestTableData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
3
3
|
export declare const getKubernetesManifestInfoCardData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
4
|
-
export declare const getKubernetesManifestEmptyState: (data:
|
4
|
+
export declare const getKubernetesManifestEmptyState: (data: ScanResultDTO, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SidebarDataType } from '../types';
|
2
|
-
export declare const
|
1
|
+
import { SidebarDataType, SidebarPropsType } from '../types';
|
2
|
+
export declare const getSidebarData: (categoriesConfig: SidebarPropsType["categoriesConfig"]) => SidebarDataType[];
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const getTableData: (data:
|
1
|
+
import { ScanResultDTO, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
2
|
+
export declare const getTableData: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
@@ -16,23 +16,23 @@ export declare const SUB_CATEGORY_LABELS: {
|
|
16
16
|
readonly EXPOSED_SECRETS: "Exposed Secrets";
|
17
17
|
};
|
18
18
|
export declare const SEVERITIES: {
|
19
|
-
readonly
|
19
|
+
readonly critical: {
|
20
20
|
readonly label: "Critical";
|
21
21
|
readonly color: "#B21212";
|
22
22
|
};
|
23
|
-
readonly
|
23
|
+
readonly high: {
|
24
24
|
readonly label: "High";
|
25
25
|
readonly color: "#F33E3E";
|
26
26
|
};
|
27
|
-
readonly
|
27
|
+
readonly medium: {
|
28
28
|
readonly label: "Medium";
|
29
29
|
readonly color: "#FF7E5B";
|
30
30
|
};
|
31
|
-
readonly
|
31
|
+
readonly low: {
|
32
32
|
readonly label: "Low";
|
33
33
|
readonly color: "#FFB549";
|
34
34
|
};
|
35
|
-
readonly
|
35
|
+
readonly unknown: {
|
36
36
|
readonly label: "Unknown";
|
37
37
|
readonly color: "#B1B7BC";
|
38
38
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as SecurityModal } from './SecurityModal';
|
2
|
-
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse,
|
3
|
-
export type { AppDetailsPayload,
|
4
|
-
export {
|
2
|
+
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, } from './utils';
|
3
|
+
export type { AppDetailsPayload, ScanResultDTO, SidebarPropsType, SidebarDataChildType, SidebarDataType, GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, } from './types';
|
4
|
+
export { getSidebarData, getProgressingStateForStatus } from './config';
|
5
5
|
export { CATEGORY_LABELS } from './constants';
|
6
|
-
export {
|
6
|
+
export { getSecurityScan } from './service';
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
export declare const getExecutionDetails: (executionDetailPayload: ExecutionDetailsPayload) => Promise<ResponseType<ApiResponseResultType>>;
|
1
|
+
import { ScanResultDTO, AppDetailsPayload } from './types';
|
2
|
+
export declare const getSecurityScan: ({ appId, envId, installedAppId, artifactId, installedAppVersionHistoryId, }: AppDetailsPayload) => Promise<import('../../../..').ResponseType<ScanResultDTO>>;
|
@@ -22,10 +22,6 @@ export interface AppDetailsPayload {
|
|
22
22
|
artifactId?: number | string;
|
23
23
|
installedAppVersionHistoryId?: number | string;
|
24
24
|
}
|
25
|
-
export interface ExecutionDetailsPayload extends Partial<Pick<AppDetailsPayload, 'appId' | 'envId'>> {
|
26
|
-
imageScanDeployInfoId?: number | string;
|
27
|
-
artifactId?: number | string;
|
28
|
-
}
|
29
25
|
export declare const CATEGORIES: {
|
30
26
|
readonly IMAGE_SCAN: "imageScan";
|
31
27
|
readonly CODE_SCAN: "codeScan";
|
@@ -89,17 +85,16 @@ export type SecurityModalStateType = {
|
|
89
85
|
detailViewData: DetailViewDataType[];
|
90
86
|
};
|
91
87
|
export interface SidebarPropsType {
|
92
|
-
isHelmApp: boolean;
|
93
88
|
modalState: SecurityModalStateType;
|
94
89
|
setModalState: React.Dispatch<React.SetStateAction<SecurityModalStateType>>;
|
95
|
-
|
90
|
+
categoriesConfig: Record<(typeof CATEGORIES)[keyof typeof CATEGORIES], boolean>;
|
96
91
|
}
|
97
92
|
export declare enum SeveritiesDTO {
|
98
|
-
CRITICAL = "
|
99
|
-
HIGH = "
|
100
|
-
MEDIUM = "
|
101
|
-
LOW = "
|
102
|
-
UNKNOWN = "
|
93
|
+
CRITICAL = "critical",
|
94
|
+
HIGH = "high",
|
95
|
+
MEDIUM = "medium",
|
96
|
+
LOW = "low",
|
97
|
+
UNKNOWN = "unknown",
|
103
98
|
FAILURES = "fail",
|
104
99
|
SUCCESSES = "success",
|
105
100
|
EXCEPTIONS = "exceptions"
|
@@ -199,21 +194,19 @@ export type KubernetesManifest = {
|
|
199
194
|
[SUB_CATEGORIES.MISCONFIGURATIONS]: GenericGroupTypeWithMisConfSummary<CodeScanMisconfigurationsListType>;
|
200
195
|
[SUB_CATEGORIES.EXPOSED_SECRETS]: GenericGroupTypeWithSummary<CodeScanExposedSecretsListType>;
|
201
196
|
} & StatusType;
|
202
|
-
export type
|
197
|
+
export type ScanResultDTO = {
|
203
198
|
scanned: boolean;
|
199
|
+
isImageScanEnabled: boolean;
|
204
200
|
[CATEGORIES.IMAGE_SCAN]: ImageScan;
|
205
201
|
[CATEGORIES.CODE_SCAN]: CodeScan;
|
206
202
|
[CATEGORIES.KUBERNETES_MANIFEST]: KubernetesManifest;
|
207
203
|
};
|
208
|
-
interface SecurityModalBaseProps
|
204
|
+
interface SecurityModalBaseProps {
|
209
205
|
isLoading: boolean;
|
210
206
|
error: ServerErrors;
|
211
|
-
responseData:
|
207
|
+
responseData: ScanResultDTO;
|
212
208
|
handleModalClose: (event?: React.MouseEvent<HTMLElement>) => void;
|
213
|
-
Sidebar
|
214
|
-
isHelmApp?: boolean;
|
215
|
-
isResourceScan?: boolean;
|
216
|
-
isSecurityScanV2Enabled: boolean;
|
209
|
+
Sidebar?: React.FC<SidebarPropsType>;
|
217
210
|
hidePolicy?: boolean;
|
218
211
|
}
|
219
212
|
export type SecurityModalPropsType = SecurityModalBaseProps;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
|
2
2
|
import { SEVERITIES } from './constants';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
4
|
color: "#B1B7BC" | "#B21212" | "#F33E3E" | "#FF7E5B" | "#FFB549" | "#1DAD70";
|
@@ -8,7 +8,7 @@ export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Part
|
|
8
8
|
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
|
9
9
|
export declare const getSeverityWeight: (severity: SeveritiesDTO) => number;
|
10
10
|
export declare const compareSeverity: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
11
|
-
export declare const getSecurityScanSeveritiesCount: (data:
|
11
|
+
export declare const getSecurityScanSeveritiesCount: (data: ScanResultDTO) => {
|
12
12
|
critical: number;
|
13
13
|
high: number;
|
14
14
|
medium: number;
|
@@ -22,8 +22,7 @@ export declare const getScanCompletedEmptyState: (scanToolId: number) => {
|
|
22
22
|
children: JSX.Element;
|
23
23
|
};
|
24
24
|
export declare const compareStringAndObject: (a: string | object, b: string | object) => number;
|
25
|
-
export declare const
|
26
|
-
export declare const parseGetResourceScanDetailsResponse: (data: GetResourceScanDetailsResponseType) => ApiResponseResultType;
|
25
|
+
export declare const parseGetResourceScanDetailsResponse: (data: GetResourceScanDetailsResponseType) => ScanResultDTO;
|
27
26
|
export declare const getTotalVulnerabilityCount: (scannedResult: ImageVulnerabilityType[]) => VulnerabilityCountType;
|
28
27
|
export declare const groupByTarget: (list: ImageScanVulnerabilityType[]) => {
|
29
28
|
source: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SecuritySummaryCardProps } from './types';
|
2
|
-
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName,
|
2
|
+
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, SecurityModalSidebar, responseData, hidePolicy, }: SecuritySummaryCardProps) => JSX.Element;
|
3
3
|
export default SecuritySummaryCard;
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { SeverityCount } from '../../../types';
|
2
2
|
import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
|
3
|
-
import {
|
3
|
+
import { ScanResultDTO } from '../SecurityModal';
|
4
4
|
export type SecuritySummaryCardProps = {
|
5
5
|
severityCount: SeverityCount;
|
6
6
|
scanToolId: number;
|
7
7
|
rootClassName?: string;
|
8
|
-
|
9
|
-
isSecurityScanV2Enabled: boolean;
|
10
|
-
responseData: ApiResponseResultType;
|
8
|
+
responseData: ScanResultDTO;
|
11
9
|
hidePolicy?: boolean;
|
12
10
|
} & Pick<ImageCardAccordionProps, 'SecurityModalSidebar'>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { VulnerabilitiesProps } from './types';
|
2
|
-
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, SecurityModalSidebar,
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, SecurityModalSidebar, }: VulnerabilitiesProps) => JSX.Element;
|
3
3
|
export default Vulnerabilities;
|
@@ -1,24 +1,8 @@
|
|
1
|
-
import { ResponseType } from '../../../../Common/Types';
|
2
1
|
import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
|
3
2
|
import { MaterialSecurityInfoType } from '../../../types';
|
4
|
-
|
5
|
-
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar' | 'getSecurityScan'> {
|
3
|
+
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar'> {
|
6
4
|
artifactId: number;
|
7
5
|
applicationId: number;
|
8
6
|
environmentId: number;
|
9
7
|
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
10
8
|
}
|
11
|
-
export interface UseGetSecurityVulnerabilitiesProps extends Pick<ImageCardAccordionProps, 'getSecurityScan'> {
|
12
|
-
artifactId: string;
|
13
|
-
appId: string;
|
14
|
-
envId: number;
|
15
|
-
isScanned: boolean;
|
16
|
-
isScanEnabled: boolean;
|
17
|
-
isScanV2Enabled: boolean;
|
18
|
-
}
|
19
|
-
export interface UseGetSecurityVulnerabilitiesReturnType {
|
20
|
-
scanDetailsLoading: boolean;
|
21
|
-
scanResultResponse: ResponseType<ApiResponseResultType>;
|
22
|
-
scanDetailsError: any;
|
23
|
-
reloadScanDetails: () => void;
|
24
|
-
}
|
@@ -1,6 +1 @@
|
|
1
|
-
import { LastExecutionResponseType, LastExecutionResultType } from '../../../types';
|
2
|
-
import { UseGetSecurityVulnerabilitiesProps, UseGetSecurityVulnerabilitiesReturnType } from './types';
|
3
1
|
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
4
|
-
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
5
|
-
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
6
|
-
export declare const useGetSecurityVulnerabilities: ({ artifactId, appId, envId, isScanned, isScanEnabled, isScanV2Enabled, getSecurityScan, }: UseGetSecurityVulnerabilitiesProps) => UseGetSecurityVulnerabilitiesReturnType;
|
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
|
|
134
134
|
* />
|
135
135
|
* ```
|
136
136
|
*/
|
137
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage,
|
137
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
138
138
|
export default SelectPicker;
|
@@ -3,9 +3,7 @@ import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProp
|
|
3
3
|
export declare const SelectPickerDropdownIndicator: <OptionValue>(props: DropdownIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
4
4
|
export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
5
5
|
export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
6
|
-
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount,
|
7
|
-
isFocussed: boolean;
|
8
|
-
}) => JSX.Element;
|
6
|
+
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
9
7
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
10
8
|
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
11
9
|
export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
@@ -55,12 +55,6 @@ declare module 'react-select/base' {
|
|
55
55
|
* @default 'true'
|
56
56
|
*/
|
57
57
|
showSelectedOptionIcon?: boolean;
|
58
|
-
/**
|
59
|
-
* If provided, the custom display text is shown in the value container
|
60
|
-
*
|
61
|
-
* @default null
|
62
|
-
*/
|
63
|
-
customDisplayText?: string;
|
64
58
|
/** Render function for the footer at the end of the options list. */
|
65
59
|
renderOptionsFooter?: () => ReactNode;
|
66
60
|
}
|
@@ -161,15 +155,9 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
161
155
|
* @default true
|
162
156
|
*/
|
163
157
|
shouldShowNoOptionsMessage?: boolean;
|
164
|
-
/**
|
165
|
-
* If true, the menu list and the dropdown indicator are hidden. Suitable for use cases like multi-inputs
|
166
|
-
*
|
167
|
-
* @default false
|
168
|
-
*/
|
169
|
-
shouldHideMenu?: boolean;
|
170
158
|
} & (IsMulti extends true ? {
|
171
159
|
isMulti: IsMulti | boolean;
|
172
|
-
multiSelectProps?:
|
160
|
+
multiSelectProps?: {
|
173
161
|
/**
|
174
162
|
* If true, the group heading can be selected
|
175
163
|
*
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
2
|
-
import { OptionType, CommonNodeAttr,
|
2
|
+
import { OptionType, CommonNodeAttr, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
|
3
3
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
4
4
|
export declare enum EnvType {
|
5
5
|
CHART = "helm_charts",
|
@@ -438,8 +438,6 @@ export interface LastExecutionResultType {
|
|
438
438
|
scanToolId?: number;
|
439
439
|
imageScanDeployInfoId?: number;
|
440
440
|
}
|
441
|
-
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
442
|
-
}
|
443
441
|
export interface MaterialSecurityInfoType {
|
444
442
|
isScanned: boolean;
|
445
443
|
isScanEnabled: boolean;
|
package/dist/index.d.ts
CHANGED
@@ -58,7 +58,6 @@ export interface customEnv {
|
|
58
58
|
HIDE_RELEASES?: boolean;
|
59
59
|
ENABLE_RESOURCE_SCAN?: boolean;
|
60
60
|
FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: boolean;
|
61
|
-
ENABLE_RESOURCE_SCAN_V2?: boolean;
|
62
61
|
HIDE_RESOURCE_WATCHER?: boolean;
|
63
62
|
ORGANIZATION_NAME: string;
|
64
63
|
FEATURE_EXTERNAL_FLUX_CD_ENABLE: boolean;
|