@devtron-labs/devtron-fe-common-lib 0.0.68-beta-7 → 0.0.68-beta-8

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 (56) hide show
  1. package/dist/Common/Common.service.d.ts +0 -1
  2. package/dist/Common/Constants.d.ts +31 -12
  3. package/dist/Common/Helper.d.ts +4 -0
  4. package/dist/Common/ImageTags.Types.d.ts +1 -1
  5. package/dist/Common/Types.d.ts +9 -59
  6. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -2
  7. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +0 -27
  8. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -2
  9. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -4
  10. package/dist/Shared/Components/index.d.ts +0 -7
  11. package/dist/Shared/Helpers.d.ts +0 -5
  12. package/dist/Shared/index.d.ts +0 -1
  13. package/dist/Shared/types.d.ts +0 -114
  14. package/dist/assets/index.css +1 -1
  15. package/dist/index.js +12673 -13222
  16. package/package.json +1 -1
  17. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +0 -7
  18. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +0 -3
  19. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/index.d.ts +0 -1
  20. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +0 -31
  21. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/index.d.ts +0 -1
  22. package/dist/Pages/GlobalConfigurations/Authorization/shared/index.d.ts +0 -1
  23. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -3
  24. package/dist/Shared/Components/ActivityIndicator/index.d.ts +0 -1
  25. package/dist/Shared/Components/ActivityIndicator/types.d.ts +0 -3
  26. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +0 -3
  27. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +0 -1
  28. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +0 -3
  29. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +0 -3
  30. package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +0 -1
  31. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +0 -12
  32. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +0 -3
  33. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +0 -1
  34. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +0 -3
  35. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +0 -3
  36. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +0 -3
  37. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +0 -6
  38. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +0 -1
  39. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +0 -10
  40. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +0 -2
  41. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +0 -3
  42. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +0 -1
  43. package/dist/Shared/Components/ImageCard/index.d.ts +0 -3
  44. package/dist/Shared/Components/ImageCard/types.d.ts +0 -40
  45. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +0 -3
  46. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +0 -1
  47. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -23
  48. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +0 -3
  49. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +0 -1
  50. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +0 -3
  51. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +0 -3
  52. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
  53. package/dist/Shared/Components/Vulnerabilities/index.d.ts +0 -1
  54. package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
  55. package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -8
  56. 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.68-beta-7",
3
+ "version": "0.0.68-beta-8",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,7 +0,0 @@
1
- import { UserRoleGroupsTableProps } from './types';
2
- import { UserRoleGroup } from '../../../types';
3
- declare const UserRoleGroupTableRow: ({ id, name, description, status, timeToLive, modifierClassName, disableStatusComponent, handleStatusUpdate, handleDelete, statusComponent: StatusComponent, showStatus, showDelete, }: UserRoleGroup & Pick<UserRoleGroupsTableProps, "disableStatusComponent" | "handleStatusUpdate" | "handleDelete" | "statusComponent" | "showStatus"> & {
4
- modifierClassName: string;
5
- showDelete: boolean;
6
- }) => JSX.Element;
7
- export default UserRoleGroupTableRow;
@@ -1,3 +0,0 @@
1
- import { UserRoleGroupsTableProps } from './types';
2
- declare const UserRoleGroupsTable: ({ roleGroups, showStatus, handleDelete, statusComponent, statusHeaderComponent: StatusHeaderComponent, handleStatusUpdate, disableStatusComponent, }: UserRoleGroupsTableProps) => JSX.Element;
3
- export default UserRoleGroupsTable;
@@ -1 +0,0 @@
1
- export { default as UserRoleGroupsTable } from './UserRoleGroupsTable.component';
@@ -1,31 +0,0 @@
1
- import { FC } from 'react';
2
- import { UserRoleGroup } from '../../../types';
3
- export type UserRoleGroupsTableProps = {
4
- roleGroups: UserRoleGroup[];
5
- showStatus?: boolean;
6
- /**
7
- * Delete button is shown only if handleDelete is passed
8
- */
9
- handleDelete?: (id: number) => void;
10
- } & ({
11
- showStatus?: false;
12
- statusComponent?: never;
13
- statusHeaderComponent?: never;
14
- handleStatusUpdate?: never;
15
- disableStatusComponent?: never;
16
- } | {
17
- /**
18
- * Component for rendering the status
19
- */
20
- statusComponent: FC<Record<string, any>>;
21
- /**
22
- * Component for rendering the status header
23
- */
24
- statusHeaderComponent: FC;
25
- handleStatusUpdate: (id: UserRoleGroup['id'], updatedStatus: UserRoleGroup['status'], updatedTimeToLive: UserRoleGroup['timeToLive']) => void;
26
- disableStatusComponent?: boolean;
27
- });
28
- export type UserRoleGroupTableRow = UserRoleGroup & Pick<UserRoleGroupsTableProps, 'disableStatusComponent' | 'handleStatusUpdate' | 'handleDelete' | 'statusComponent' | 'showStatus'> & {
29
- modifierClassName: string;
30
- showDelete: boolean;
31
- };
@@ -1 +0,0 @@
1
- export * from './UserRoleGroupsTable';
@@ -1 +0,0 @@
1
- export * from './components';
@@ -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 { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
3
- export default GenericSectionErrorState;
@@ -1 +0,0 @@
1
- export { default as GenericSectionErrorState } from './GenericSectionErrorState.component';
@@ -1,12 +0,0 @@
1
- export interface GenericSectionErrorStateProps {
2
- /**
3
- * Handler for reloading the section
4
- */
5
- reload: () => void;
6
- /**
7
- * If true, border is added to the section
8
- *
9
- * @default false
10
- */
11
- withBorder?: boolean;
12
- }
@@ -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 { 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 +0,0 @@
1
- export { default as Vulnerabilities } from './Vulnerabilities';
@@ -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,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:";