@devtron-labs/devtron-fe-common-lib 0.0.75-beta-34 → 0.0.75-beta-36

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 (61) hide show
  1. package/dist/Common/Api.d.ts +1 -0
  2. package/dist/Common/Common.service.d.ts +0 -1
  3. package/dist/Common/Constants.d.ts +1 -6
  4. package/dist/Common/Helper.d.ts +2 -2
  5. package/dist/Common/ImageTags.Types.d.ts +1 -1
  6. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  7. package/dist/Common/Types.d.ts +6 -65
  8. package/dist/Common/index.d.ts +0 -1
  9. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
  10. package/dist/Shared/Components/APIResponseHandler/types.d.ts +0 -9
  11. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  12. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -21
  13. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -1
  14. package/dist/Shared/Components/index.d.ts +0 -7
  15. package/dist/Shared/Helpers.d.ts +0 -7
  16. package/dist/Shared/constants.d.ts +4 -31
  17. package/dist/Shared/index.d.ts +1 -1
  18. package/dist/Shared/types.d.ts +61 -157
  19. package/dist/Shared/validations.d.ts +10 -0
  20. package/dist/assets/index.css +1 -1
  21. package/dist/index.d.ts +1 -2
  22. package/dist/index.js +13724 -14193
  23. package/package.json +3 -4
  24. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +0 -4
  25. package/dist/Common/SegmentedBarChart/constants.d.ts +0 -5
  26. package/dist/Common/SegmentedBarChart/index.d.ts +0 -2
  27. package/dist/Common/SegmentedBarChart/types.d.ts +0 -11
  28. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -3
  29. package/dist/Shared/Components/ActivityIndicator/index.d.ts +0 -1
  30. package/dist/Shared/Components/ActivityIndicator/types.d.ts +0 -3
  31. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +0 -3
  32. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +0 -1
  33. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +0 -3
  34. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +0 -3
  35. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +0 -1
  36. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +0 -3
  37. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +0 -3
  38. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +0 -3
  39. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +0 -6
  40. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +0 -1
  41. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +0 -10
  42. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +0 -2
  43. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +0 -3
  44. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +0 -1
  45. package/dist/Shared/Components/ImageCard/index.d.ts +0 -3
  46. package/dist/Shared/Components/ImageCard/types.d.ts +0 -40
  47. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +0 -3
  48. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +0 -1
  49. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -23
  50. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +0 -3
  51. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +0 -1
  52. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +0 -3
  53. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -3
  54. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
  55. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
  56. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +0 -3
  57. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
  58. package/dist/Shared/Components/Vulnerabilities/index.d.ts +0 -2
  59. package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
  60. package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -8
  61. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.75-beta-34",
3
+ "version": "0.0.75-beta-36",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -79,10 +79,9 @@
79
79
  "react-router": "^5.3.0",
80
80
  "react-router-dom": "^5.3.0",
81
81
  "react-draggable": "^4.4.5",
82
- "yaml": "^2.4.1",
83
- "dompurify": "^3.0.2",
84
82
  "react-ga4": "^1.4.1",
85
- "@typeform/embed-react": "2.20.0"
83
+ "@typeform/embed-react": "2.20.0",
84
+ "yaml": "^2.4.1"
86
85
  },
87
86
  "dependencies": {
88
87
  "react-monaco-editor": "^0.54.0",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { SegmentedBarChartProps } from './types';
3
- declare const SegmentedBarChart: React.FC<SegmentedBarChartProps>;
4
- export default SegmentedBarChart;
@@ -1,5 +0,0 @@
1
- export declare const FALLBACK_ENTITY: {
2
- color: string;
3
- label: string;
4
- value: number;
5
- };
@@ -1,2 +0,0 @@
1
- export { default as SegmentedBarChart } from './SegmentedBarChart';
2
- export { type SegmentedBarChartProps } from './types';
@@ -1,11 +0,0 @@
1
- export type Entity = {
2
- color: string;
3
- label: string;
4
- value: number;
5
- };
6
- export interface SegmentedBarChartProps {
7
- entities: NonNullable<Entity[]>;
8
- rootClassName?: string;
9
- countClassName?: string;
10
- labelClassName?: string;
11
- }
@@ -1,3 +0,0 @@
1
- import { ActivityIndicatorProps } from './types';
2
- declare const ActivityIndicator: ({ rootClassName }: ActivityIndicatorProps) => JSX.Element;
3
- export default ActivityIndicator;
@@ -1 +0,0 @@
1
- export { default as ActivityIndicator } from './ActivityIndicator';
@@ -1,3 +0,0 @@
1
- export interface ActivityIndicatorProps {
2
- rootClassName?: string;
3
- }
@@ -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, title, tooltipContent }: 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,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface DeploymentEnvStateProps {
3
- envStateText: string;
4
- title: string;
5
- tooltipContent?: string;
6
- }
7
- export interface GetDeploymentEnvConfigType {
8
- Icon: ReactNode;
9
- stateClassName: string;
10
- }
@@ -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, deployedOn, additionalInfo, }: 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,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,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 { ScannedObjectBarProps } from './types';
2
- declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
3
- export default ScannedObjectBar;
@@ -1 +0,0 @@
1
- export { default as ScannedObjectBar } from './ScannedObjectBar';
@@ -1,7 +0,0 @@
1
- export interface ScannedObjectBarProps {
2
- criticalVulnerabilitiesCount: number;
3
- moderateVulnerabilitiesCount: number;
4
- lowVulnerabilitiesCount: number;
5
- objectBarClassName?: string;
6
- removeObjectCountMargin?: boolean;
7
- }
@@ -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
- NO_VULNERABILITY_FOUND: string;
4
- };
@@ -1,2 +0,0 @@
1
- export { default as Vulnerabilities } from './Vulnerabilities';
2
- export * from './utils';
@@ -1,2 +0,0 @@
1
- import { LastExecutionResponseType } from '../../types';
2
- export declare function getLastExecutionByArtifactAppEnv(artifactId: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
@@ -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,3 +0,0 @@
1
- import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
2
- export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
3
- export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;