@devtron-labs/devtron-fe-common-lib 0.0.65-beta-1 → 0.0.65

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.
Files changed (35) hide show
  1. package/dist/Common/Constants.d.ts +0 -1
  2. package/dist/Common/Types.d.ts +1 -2
  3. package/dist/Shared/Components/index.d.ts +0 -5
  4. package/dist/Shared/index.d.ts +0 -2
  5. package/dist/index.js +6132 -6462
  6. package/package.json +1 -1
  7. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +0 -3
  8. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +0 -1
  9. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +0 -3
  10. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +0 -3
  11. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +0 -1
  12. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +0 -3
  13. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +0 -3
  14. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +0 -3
  15. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +0 -6
  16. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +0 -1
  17. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +0 -9
  18. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +0 -2
  19. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +0 -3
  20. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +0 -1
  21. package/dist/Shared/Components/ImageCard/index.d.ts +0 -3
  22. package/dist/Shared/Components/ImageCard/types.d.ts +0 -38
  23. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +0 -3
  24. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +0 -1
  25. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -22
  26. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +0 -3
  27. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +0 -1
  28. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +0 -3
  29. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +0 -3
  30. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
  31. package/dist/Shared/Components/Vulnerabilities/index.d.ts +0 -1
  32. package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -28
  33. package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -9
  34. package/dist/Shared/constants.d.ts +0 -19
  35. package/dist/Shared/types.d.ts +0 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.65-beta-1",
3
+ "version": "0.0.65",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,3 +0,0 @@
1
- import { ExcludedImageNodeProps } from './types';
2
- declare const ExcludedImageNode: ({ image }: ExcludedImageNodeProps) => JSX.Element;
3
- export default ExcludedImageNode;
@@ -1 +0,0 @@
1
- export { default as ExcludedImageNode } from './ExcludedImageNode';
@@ -1,3 +0,0 @@
1
- export interface ExcludedImageNodeProps {
2
- image: string;
3
- }
@@ -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 { ArtifactInfoProps } from '../types';
2
- export interface ImagePathTippyContentProps extends Pick<ArtifactInfoProps, 'imagePath' | 'registryName'> {
3
- }
@@ -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;
@@ -1,3 +0,0 @@
1
- import { DeploymentEnvStateProps } from './types';
2
- declare const DeploymentEnvState: ({ envStateText, envName }: DeploymentEnvStateProps) => JSX.Element;
3
- export default DeploymentEnvState;
@@ -1,6 +0,0 @@
1
- export declare const DEPLOYMENT_ENV_TEXT: {
2
- ACTIVE: string;
3
- VIRTUAL_ENV: string;
4
- FAILED: string;
5
- DEPLOYING: string;
6
- };
@@ -1 +0,0 @@
1
- export { default as DeploymentEnvState } from './DeploymentEnvState';
@@ -1,9 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface DeploymentEnvStateProps {
3
- envStateText: string;
4
- envName: string;
5
- }
6
- export interface GetDeploymentEnvConfigType {
7
- Icon: ReactNode;
8
- stateClassName: string;
9
- }
@@ -1,2 +0,0 @@
1
- import { GetDeploymentEnvConfigType } from './types';
2
- export declare const getDeploymentEnvConfig: (envStateText: string) => GetDeploymentEnvConfigType;
@@ -1,3 +0,0 @@
1
- import { SequentialCDCardTitleProps } from '../types';
2
- declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, }: SequentialCDCardTitleProps) => JSX.Element;
3
- export default SequentialCDCardTitle;
@@ -1 +0,0 @@
1
- export { default as SequentialCDCardTitle } from './SequentialCDCardTitle';
@@ -1,3 +0,0 @@
1
- export { default as ImageCard } from './ImageCard';
2
- export * from './types';
3
- export * from './ArtifactInfo';
@@ -1,38 +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
- environmentName: string;
21
- parentEnvironmentName: string;
22
- stageType: string;
23
- showLatestTag: boolean;
24
- isVirtualEnvironment: boolean;
25
- }
26
- export interface ImageCardProps {
27
- testIdLocator: string;
28
- sequentialCDCardTitleProps: SequentialCDCardTitleProps;
29
- cta: ReactNode;
30
- artifactInfoProps: ArtifactInfoProps;
31
- imageTagContainerProps: ImageTaggingContainerType;
32
- /**
33
- * Meant for ImageCardAccordion
34
- */
35
- children?: ReactNode;
36
- rootClassName?: string;
37
- materialInfoRootClassName?: string;
38
- }
@@ -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,22 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { CDModalTabType, VulnerabilityType } from '../../../Common';
3
- export interface ImageCardAccordionProps {
4
- isSecurityModuleInstalled: boolean;
5
- artifactId: number;
6
- applicationId: number;
7
- environmentId: number;
8
- changesCard: ReactNode;
9
- isScanned: boolean;
10
- isScanEnabled: boolean;
11
- }
12
- export interface SecurityDetailsType {
13
- vulnerabilities: VulnerabilityType[];
14
- scanToolId: number;
15
- lastExecution: string;
16
- }
17
- export interface AccordionItemProps {
18
- currentTab: CDModalTabType;
19
- activeTab: CDModalTabType;
20
- setActiveTab: React.Dispatch<React.SetStateAction<CDModalTabType>>;
21
- buttonText: string;
22
- }
@@ -1,3 +0,0 @@
1
- import { ScannedByToolModalProps } from './types';
2
- declare const ScannedByToolModal: ({ scanToolId }: ScannedByToolModalProps) => JSX.Element;
3
- export default ScannedByToolModal;
@@ -1 +0,0 @@
1
- export { default as ScannedByToolModal } from './ScannedByToolModal';
@@ -1,3 +0,0 @@
1
- export interface ScannedByToolModalProps {
2
- scanToolId?: number;
3
- }
@@ -1,3 +0,0 @@
1
- import { VulnerabilitiesProps } from './types';
2
- declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, }: VulnerabilitiesProps) => JSX.Element;
3
- export default Vulnerabilities;
@@ -1,4 +0,0 @@
1
- export declare const NO_VULNERABILITY_TEXT: {
2
- Secured: string;
3
- NoVulnerabilityFound: string;
4
- };
@@ -1 +0,0 @@
1
- export { default as Vulnerabilities } from './Vulnerabilities';
@@ -1,28 +0,0 @@
1
- import { VulnerabilityType } from '../../../Common';
2
- interface LastExecutionResponseType {
3
- code: number;
4
- status: string;
5
- result: {
6
- scanExecutionId: number;
7
- lastExecution: string;
8
- appId?: number;
9
- appName?: string;
10
- envId?: number;
11
- envName?: string;
12
- pod?: string;
13
- replicaSet?: string;
14
- image?: string;
15
- objectType: 'app' | 'chart';
16
- scanned: boolean;
17
- scanEnabled: boolean;
18
- severityCount: {
19
- critical: number;
20
- moderate: number;
21
- low: number;
22
- };
23
- vulnerabilities: VulnerabilityType[];
24
- scanToolId?: number;
25
- };
26
- }
27
- export declare function getLastExecutionByArtifactAppEnv(artifact: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
28
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export interface VulnerabilitiesProps {
3
- isScanned: boolean;
4
- isScanEnabled: boolean;
5
- artifactId: number;
6
- applicationId: number;
7
- environmentId: number;
8
- setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
9
- }
@@ -1,19 +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.";
@@ -1,23 +0,0 @@
1
- export declare enum RegistryType {
2
- GIT = "git",
3
- GITHUB = "github",
4
- GITLAB = "gitlab",
5
- BITBUCKET = "bitbucket",
6
- DOCKER = "docker",
7
- DOCKER_HUB = "docker-hub",
8
- ACR = "acr",
9
- QUAY = "quay",
10
- ECR = "ecr",
11
- ARTIFACT_REGISTRY = "artifact-registry",
12
- GCR = "gcr",
13
- OTHER = "other"
14
- }
15
- export declare enum DefaultUserKey {
16
- system = "system",
17
- admin = "admin"
18
- }
19
- export declare enum Severity {
20
- CRITICAL = "critical",
21
- MODERATE = "moderate",
22
- LOW = "low"
23
- }