@devtron-labs/devtron-fe-common-lib 0.3.22 → 4.0.1
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 +0 -5
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +14 -0
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +1 -0
- 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 +2 -0
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +1 -0
- package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/index.d.ts +0 -1
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +2 -2
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +1 -1
- package/dist/{cssMode-C8YKI5h2.js → cssMode-CUsbCqAK.js} +1 -1
- package/dist/{freemarker2-CJeBH1fW.js → freemarker2-DdlPBWeH.js} +1 -1
- package/dist/{handlebars-BD3hRLs3.js → handlebars-I8AU3wni.js} +1 -1
- package/dist/{html-Bgbe35Zb.js → html-Bb-6CXGT.js} +1 -1
- package/dist/{htmlMode-YmhqT8Uk.js → htmlMode-BHH3UyN-.js} +1 -1
- package/dist/{index-Z-KiDXlA.js → index-Huj_UPmC.js} +23419 -23386
- package/dist/index.js +24 -24
- package/dist/{javascript-C8oae5i3.js → javascript-Cp8f-boh.js} +1 -1
- package/dist/{jsonMode-8Q12XwpK.js → jsonMode-CI31wESU.js} +1 -1
- package/dist/{liquid-CUv6v46U.js → liquid-DmgPaY22.js} +1 -1
- package/dist/{mdx-B02CTY6U.js → mdx-Bg1Hnor0.js} +1 -1
- package/dist/{python-BtIu7svM.js → python-CBQrPJ5r.js} +1 -1
- package/dist/{razor-Xq01XHFi.js → razor-CVAY1Goi.js} +1 -1
- package/dist/{tsMode-BZ5qfQQR.js → tsMode-CV4nfjTE.js} +1 -1
- package/dist/{typescript-vxKt4hu_.js → typescript-1vLwGoZB.js} +1 -1
- package/dist/{xml-CZ8k31dR.js → xml-DbkmHRkP.js} +1 -1
- package/dist/{yaml-Caww5KCg.js → yaml-BFFlGLup.js} +1 -1
- package/package.json +3 -3
- package/dist/Shared/Components/Security/Vulnerabilities/service.d.ts +0 -2
package/dist/Common/Types.d.ts
CHANGED
@@ -546,11 +546,6 @@ 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
|
-
}
|
554
549
|
export interface MaterialInfo {
|
555
550
|
revision: string;
|
556
551
|
modifiedTime: string | Date;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { LogStageAccordionProps } from './types';
|
2
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
|
2
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, searchIndex, }: LogStageAccordionProps) => JSX.Element;
|
3
3
|
export default LogStageAccordion;
|
@@ -635,11 +635,25 @@ export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRender
|
|
635
635
|
* A stage is loading if it is last in current stage list and event is not closed
|
636
636
|
*/
|
637
637
|
isLoading: boolean;
|
638
|
+
searchIndex: string;
|
638
639
|
}
|
639
640
|
export interface CreateMarkupReturnType {
|
640
641
|
__html: string;
|
641
642
|
isSearchKeyPresent: boolean;
|
642
643
|
}
|
644
|
+
export type CreateMarkupPropsType = {
|
645
|
+
log: string;
|
646
|
+
currentIndex?: never;
|
647
|
+
targetSearchKey?: never;
|
648
|
+
searchMatchResults?: never;
|
649
|
+
searchIndex?: never;
|
650
|
+
} | {
|
651
|
+
log: string;
|
652
|
+
currentIndex: number;
|
653
|
+
targetSearchKey: string;
|
654
|
+
searchMatchResults: string[];
|
655
|
+
searchIndex: string;
|
656
|
+
};
|
643
657
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
644
658
|
export declare const terminalStatus: Set<string>;
|
645
659
|
export declare const statusSet: Set<string>;
|
@@ -5,3 +5,4 @@ export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any,
|
|
5
5
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
6
6
|
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
7
7
|
export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
|
8
|
+
export declare const getLogSearchIndex: ({ stageIndex, lineNumberInsideStage, }: Record<"stageIndex" | "lineNumberInsideStage", number>) => string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar, getSecurityScan, }: ImageCardAccordionProps) => JSX.Element;
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, 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"], hidePolicy: boolean) => {
|
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"]) => TablePropsType;
|
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
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"]) => TablePropsType;
|
2
|
+
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => 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"]) => TablePropsType;
|
2
|
+
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
@@ -120,6 +120,7 @@ export interface CodeScanVulnerabilityType {
|
|
120
120
|
package: string;
|
121
121
|
currentVersion: string;
|
122
122
|
fixedInVersion: string;
|
123
|
+
permission?: string;
|
123
124
|
}
|
124
125
|
export interface ImageScanVulnerabilityType extends CodeScanVulnerabilityType {
|
125
126
|
target?: string;
|
@@ -213,6 +214,7 @@ interface SecurityModalBaseProps extends Partial<Pick<SidebarPropsType, 'isExter
|
|
213
214
|
isHelmApp?: boolean;
|
214
215
|
isResourceScan?: boolean;
|
215
216
|
isSecurityScanV2Enabled: boolean;
|
217
|
+
hidePolicy?: boolean;
|
216
218
|
}
|
217
219
|
export type SecurityModalPropsType = SecurityModalBaseProps;
|
218
220
|
export interface IndexedTextDisplayPropsType {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SecuritySummaryCardProps } from './types';
|
2
|
-
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled, }: SecuritySummaryCardProps) => JSX.Element;
|
2
|
+
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled, hidePolicy, }: 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, setVulnerabilityCount, SecurityModalSidebar, getSecurityScan, }: VulnerabilitiesProps) => JSX.Element;
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, SecurityModalSidebar, getSecurityScan, }: VulnerabilitiesProps) => JSX.Element;
|
3
3
|
export default Vulnerabilities;
|
@@ -2,15 +2,16 @@ 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';
|
6
5
|
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar' | 'getSecurityScan'> {
|
7
6
|
artifactId: number;
|
8
7
|
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;
|
14
15
|
isScanned: boolean;
|
15
16
|
isScanEnabled: boolean;
|
16
17
|
isScanV2Enabled: boolean;
|
@@ -18,7 +19,6 @@ export interface UseGetSecurityVulnerabilitiesProps extends Pick<ImageCardAccord
|
|
18
19
|
export interface UseGetSecurityVulnerabilitiesReturnType {
|
19
20
|
scanDetailsLoading: boolean;
|
20
21
|
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, isScanned, isScanEnabled, isScanV2Enabled, getSecurityScan, }: UseGetSecurityVulnerabilitiesProps) => UseGetSecurityVulnerabilitiesReturnType;
|
6
|
+
export declare const useGetSecurityVulnerabilities: ({ artifactId, appId, envId, isScanned, isScanEnabled, isScanV2Enabled, getSecurityScan, }: UseGetSecurityVulnerabilitiesProps) => UseGetSecurityVulnerabilitiesReturnType;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
var Fe = Object.defineProperty;
|
2
2
|
var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
3
3
|
var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
|
4
|
-
import { m as je } from "./index-
|
4
|
+
import { m as je } from "./index-Huj_UPmC.js";
|
5
5
|
/*!-----------------------------------------------------------------------------
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as f } from "./index-
|
1
|
+
import { m as f } from "./index-Huj_UPmC.js";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as l } from "./index-
|
1
|
+
import { m as l } from "./index-Huj_UPmC.js";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as s } from "./index-
|
1
|
+
import { m as s } from "./index-Huj_UPmC.js";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
var Be = Object.defineProperty;
|
2
2
|
var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
3
3
|
var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
|
4
|
-
import { m as qe } from "./index-
|
4
|
+
import { m as qe } from "./index-Huj_UPmC.js";
|
5
5
|
/*!-----------------------------------------------------------------------------
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|