@devtron-labs/devtron-fe-common-lib 0.0.68-beta-9 → 0.0.68-beta-10
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 +1 -13
- package/dist/Common/Helper.d.ts +4 -0
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/Types.d.ts +8 -59
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -2
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +0 -27
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -2
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +0 -9
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -4
- package/dist/Shared/Components/index.d.ts +0 -7
- 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/assets/index.css +1 -1
- package/dist/index.js +12716 -13292
- package/package.json +2 -3
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +0 -7
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +0 -3
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +0 -31
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/index.d.ts +0 -1
- 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/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +0 -3
- package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +0 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +0 -32
- 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.68-beta-
|
|
3
|
+
"version": "0.0.68-beta-10",
|
|
4
4
|
"description": "Supporting common component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,8 +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 --
|
|
31
|
-
"build-watch": "vite build --sourcemap --watch",
|
|
30
|
+
"build-watch": "vite build --watch",
|
|
32
31
|
"build-lib": "vite build",
|
|
33
32
|
"preview": "vite preview",
|
|
34
33
|
"lint-staged": "lint-staged"
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export { default as ActivityIndicator } from './ActivityIndicator';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ExcludedImageNode } from './ExcludedImageNode';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as GenericSectionErrorState } from './GenericSectionErrorState.component';
|
|
@@ -1,32 +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
|
-
/**
|
|
13
|
-
* @default 'Failed to load'
|
|
14
|
-
*/
|
|
15
|
-
title?: string;
|
|
16
|
-
/**
|
|
17
|
-
* @default 'We could not load the information on this page.'
|
|
18
|
-
*/
|
|
19
|
-
subTitle?: string;
|
|
20
|
-
/**
|
|
21
|
-
* @default 'Please reload or try again later'
|
|
22
|
-
*/
|
|
23
|
-
description?: string;
|
|
24
|
-
/**
|
|
25
|
-
* @default 'Reload'
|
|
26
|
-
*/
|
|
27
|
-
buttonText?: string;
|
|
28
|
-
/**
|
|
29
|
-
* to be applied on parent div
|
|
30
|
-
*/
|
|
31
|
-
rootClassName?: string;
|
|
32
|
-
}
|
|
@@ -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:";
|