@devtron-labs/devtron-fe-common-lib 0.0.71-beta-2 → 0.0.71-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/Common/Common.service.d.ts +0 -1
- package/dist/Common/Constants.d.ts +53 -6
- package/dist/Common/Helper.d.ts +3 -2
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Types.d.ts +21 -62
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +0 -9
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -21
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -1
- package/dist/Shared/Components/index.d.ts +0 -6
- package/dist/Shared/Helpers.d.ts +0 -6
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -114
- package/dist/index.js +12464 -12837
- package/package.json +2 -2
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -3
- package/dist/Shared/Components/ActivityIndicator/index.d.ts +0 -1
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +0 -3
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +0 -3
- package/dist/Shared/Components/ExcludedImageNode/index.d.ts +0 -1
- package/dist/Shared/Components/ExcludedImageNode/types.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +0 -6
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +0 -10
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +0 -2
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCard/index.d.ts +0 -3
- package/dist/Shared/Components/ImageCard/types.d.ts +0 -40
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +0 -3
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +0 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -23
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +0 -3
- package/dist/Shared/Components/ScannedByToolModal/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +0 -3
- package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +0 -3
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +0 -1
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -8
- package/dist/Shared/constants.d.ts +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtron-labs/devtron-fe-common-lib",
|
|
3
|
-
"version": "0.0.71-beta-
|
|
3
|
+
"version": "0.0.71-beta-3",
|
|
4
4
|
"description": "Supporting common component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"lint-fix": "eslint 'src/**/*.{js,jsx,ts,tsx}' --fix",
|
|
28
28
|
"test": "exit 0",
|
|
29
29
|
"dev": "vite",
|
|
30
|
-
"build": "vite build --sourcemap",
|
|
30
|
+
"build": "vite build --sourcemap true",
|
|
31
31
|
"build-watch": "vite build --sourcemap --watch",
|
|
32
32
|
"build-lib": "vite build",
|
|
33
33
|
"preview": "vite preview",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ActivityIndicator } from './ActivityIndicator';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ExcludedImageNode } from './ExcludedImageNode';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ArtifactInfoProps } from '../types';
|
|
2
|
-
declare const ArtifactInfo: ({ imagePath, registryName, registryType, image, deployedTime, deployedBy, isRollbackTrigger, excludedImagePathNode, approvalChecksNode, approvalInfoTippy, }: ArtifactInfoProps) => JSX.Element;
|
|
3
|
-
export default ArtifactInfo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ArtifactInfo } from './ArtifactInfo';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ImageCardProps } from './types';
|
|
2
|
-
declare const ImageCard: ({ testIdLocator, cta, sequentialCDCardTitleProps, artifactInfoProps, imageTagContainerProps, children, rootClassName, materialInfoRootClassName, }: ImageCardProps) => JSX.Element;
|
|
3
|
-
export default ImageCard;
|
package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DeploymentEnvState } from './DeploymentEnvState';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { SequentialCDCardTitleProps } from '../types';
|
|
2
|
-
declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, deployedOn, additionalInfo, }: SequentialCDCardTitleProps) => JSX.Element;
|
|
3
|
-
export default SequentialCDCardTitle;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SequentialCDCardTitle } from './SequentialCDCardTitle';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ImageTaggingContainerType } from '../../../Common';
|
|
3
|
-
import { RegistryType } from '../..';
|
|
4
|
-
export interface ArtifactInfoProps {
|
|
5
|
-
imagePath: string;
|
|
6
|
-
registryName: string;
|
|
7
|
-
registryType: RegistryType;
|
|
8
|
-
image: string;
|
|
9
|
-
deployedTime: string;
|
|
10
|
-
deployedBy: string;
|
|
11
|
-
isRollbackTrigger: boolean;
|
|
12
|
-
excludedImagePathNode: ReactNode;
|
|
13
|
-
approvalChecksNode?: ReactNode;
|
|
14
|
-
approvalInfoTippy?: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export interface SequentialCDCardTitleProps {
|
|
17
|
-
isLatest: boolean;
|
|
18
|
-
isRunningOnParentCD: boolean;
|
|
19
|
-
artifactStatus: string;
|
|
20
|
-
stageType: string;
|
|
21
|
-
showLatestTag: boolean;
|
|
22
|
-
isVirtualEnvironment: boolean;
|
|
23
|
-
deployedOn?: string[];
|
|
24
|
-
environmentName?: string;
|
|
25
|
-
parentEnvironmentName?: string;
|
|
26
|
-
additionalInfo?: ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export interface ImageCardProps {
|
|
29
|
-
testIdLocator: string;
|
|
30
|
-
sequentialCDCardTitleProps: SequentialCDCardTitleProps;
|
|
31
|
-
cta: ReactNode;
|
|
32
|
-
artifactInfoProps: ArtifactInfoProps;
|
|
33
|
-
imageTagContainerProps: ImageTaggingContainerType;
|
|
34
|
-
/**
|
|
35
|
-
* Meant for ImageCardAccordion
|
|
36
|
-
*/
|
|
37
|
-
children?: ReactNode;
|
|
38
|
-
rootClassName?: string;
|
|
39
|
-
materialInfoRootClassName?: string;
|
|
40
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ImageCardAccordionProps } from './types';
|
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
|
|
3
|
-
export default ImageCardAccordion;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ImageCardAccordion } from './ImageCardAccordion';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
|
3
|
-
import { MaterialSecurityInfoType } from '../../types';
|
|
4
|
-
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
5
|
-
isSecurityModuleInstalled: boolean;
|
|
6
|
-
artifactId: number;
|
|
7
|
-
applicationId: number;
|
|
8
|
-
environmentId: number;
|
|
9
|
-
changesCard: ReactNode;
|
|
10
|
-
isScanned: boolean;
|
|
11
|
-
isScanEnabled: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface SecurityDetailsType {
|
|
14
|
-
vulnerabilities: VulnerabilityType[];
|
|
15
|
-
scanToolId: number;
|
|
16
|
-
lastExecution: string;
|
|
17
|
-
}
|
|
18
|
-
export interface AccordionItemProps {
|
|
19
|
-
currentTab: CDModalTabType;
|
|
20
|
-
activeTab: CDModalTabType;
|
|
21
|
-
setActiveTab: React.Dispatch<React.SetStateAction<CDModalTabType>>;
|
|
22
|
-
buttonText: string;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ScannedByToolModal } from './ScannedByToolModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Vulnerabilities } from './Vulnerabilities';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MaterialSecurityInfoType } from '../../types';
|
|
3
|
-
export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
|
|
4
|
-
artifactId: number;
|
|
5
|
-
applicationId: number;
|
|
6
|
-
environmentId: number;
|
|
7
|
-
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const ARTIFACT_STATUS: {
|
|
2
|
-
PROGRESSING: string;
|
|
3
|
-
DEGRADED: string;
|
|
4
|
-
FAILED: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const STAGE_TYPE: {
|
|
7
|
-
CD: string;
|
|
8
|
-
CI: string;
|
|
9
|
-
GIT: string;
|
|
10
|
-
PRECD: string;
|
|
11
|
-
POSTCD: string;
|
|
12
|
-
ROLLBACK: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const SCAN_TOOL_ID_TRIVY = 3;
|
|
15
|
-
export declare const IMAGE_SCAN_TOOL: {
|
|
16
|
-
Clair: string;
|
|
17
|
-
Trivy: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const EXCLUDED_IMAGE_TOOLTIP = "This image is excluded for new deployment as it does not match the filter conditions configured for this environment.";
|
|
20
|
-
export declare const ModuleNameMap: {
|
|
21
|
-
ARGO_CD: string;
|
|
22
|
-
CICD: string;
|
|
23
|
-
SECURITY: string;
|
|
24
|
-
BLOB_STORAGE: string;
|
|
25
|
-
GRAFANA: string;
|
|
26
|
-
NOTIFICATION: string;
|
|
27
|
-
SECURITY_TRIVY: string;
|
|
28
|
-
SECURITY_CLAIR: string;
|
|
29
|
-
};
|
|
30
|
-
export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
|
|
31
|
-
export declare const API_TOKEN_PREFIX = "API-TOKEN:";
|