@devtron-labs/devtron-fe-common-lib 0.0.77 → 0.0.78-beta-1
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/AddCDButton/AddCDButton.d.ts +1 -1
- package/dist/Common/AddCDButton/types.d.ts +1 -0
- package/dist/Common/AddCDButton/utils.d.ts +1 -0
- package/dist/Common/Api.d.ts +2 -1
- package/dist/Common/AppStatus/AppStatus.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +2 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -1
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +1 -0
- package/dist/Common/Checkbox.d.ts +2 -1
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +2 -2
- package/dist/Common/CodeEditor/CodeEditor.d.ts +2 -1
- package/dist/Common/Common.service.d.ts +2 -0
- package/dist/Common/Constants.d.ts +32 -3
- package/dist/Common/CustomInput/CustomInput.d.ts +1 -0
- package/dist/Common/CustomInput/Types.d.ts +2 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -0
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -0
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -0
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -0
- package/dist/Common/CustomTagSelector/Types.d.ts +2 -2
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -0
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -0
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +1 -0
- package/dist/Common/Dialogs/DeleteDialog.d.ts +2 -1
- package/dist/Common/Dialogs/DialogForm.d.ts +2 -1
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/Types.d.ts +1 -0
- package/dist/Common/DraggableWrapper/DraggableButton.d.ts +1 -1
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
- package/dist/Common/DraggableWrapper/types.d.ts +1 -0
- package/dist/Common/Drawer/Drawer.d.ts +1 -0
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -0
- package/dist/Common/ErrorPage.d.ts +4 -0
- package/dist/Common/ErrorScreenManager.d.ts +4 -0
- package/dist/Common/ErrorScreenNotAuthorized.d.ts +4 -0
- package/dist/Common/Grid/Grid.d.ts +1 -1
- package/dist/Common/Grid/types.d.ts +1 -0
- package/dist/Common/Helper.d.ts +5 -2
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +2 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +3 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +4 -0
- package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +2 -0
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +8 -0
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +1 -0
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -0
- package/dist/Common/ImageTags.Types.d.ts +1 -1
- package/dist/Common/ImageTags.d.ts +1 -0
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -0
- package/dist/Common/Markdown/MarkDown.d.ts +4 -0
- package/dist/Common/Markdown/Types.d.ts +7 -0
- package/dist/Common/Markdown/index.d.ts +1 -0
- package/dist/Common/Modals/Modal.d.ts +2 -1
- package/dist/Common/Modals/OpaqueModal.d.ts +2 -1
- package/dist/Common/Modals/VisibleModal.d.ts +2 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
- package/dist/Common/MultiSelectCustomization.d.ts +2 -1
- package/dist/Common/Pagination/PageSizeSelector.d.ts +1 -0
- package/dist/Common/Pagination/Pagination.d.ts +1 -0
- package/dist/Common/Pagination/utils.d.ts +1 -0
- package/dist/Common/Policy.Types.d.ts +2 -1
- package/dist/Common/PopupMenu.d.ts +1 -0
- package/dist/Common/Progressing.d.ts +1 -0
- package/dist/Common/RJSF/Form.d.ts +1 -0
- package/dist/Common/RJSF/common/FieldRow.d.ts +2 -1
- package/dist/Common/RJSF/common/types.d.ts +1 -0
- package/dist/Common/RJSF/config.d.ts +2 -1
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/BaseInput.d.ts +1 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +1 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +1 -0
- package/dist/Common/RJSF/templates/Description.d.ts +1 -0
- package/dist/Common/RJSF/templates/Field.d.ts +1 -0
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -0
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -0
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +1 -0
- package/dist/Common/RJSF/types.d.ts +2 -1
- package/dist/Common/RJSF/utils.d.ts +2 -1
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -0
- package/dist/Common/RJSF/widgets/Select.d.ts +1 -0
- package/dist/Common/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/Common/RadioGroup.d.ts +2 -2
- package/dist/Common/RadioGroupItem.d.ts +1 -0
- package/dist/Common/Reload.d.ts +2 -2
- package/dist/Common/ResizableTextarea.d.ts +2 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -0
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +2 -2
- package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +5 -0
- package/dist/Common/SegmentedBarChart/constants.d.ts +5 -0
- package/dist/Common/SegmentedBarChart/index.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +11 -0
- package/dist/Common/Select/Select.d.ts +2 -1
- package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -0
- package/dist/Common/SortableTableHeaderCell/types.d.ts +1 -0
- package/dist/Common/TippyCustomized.d.ts +1 -0
- package/dist/Common/ToastBody.d.ts +2 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -0
- package/dist/Common/Types.d.ts +85 -9
- package/dist/Common/index.d.ts +4 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +4 -3
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +1 -0
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +2 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +11 -1
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +4 -0
- package/dist/Shared/Components/ActivityIndicator/index.d.ts +1 -0
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +3 -0
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -0
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +1 -0
- package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +1 -0
- package/dist/Shared/Components/BulkSelection/types.d.ts +1 -1
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +2 -1
- package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +2 -1
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +4 -0
- package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
- package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -0
- package/dist/Shared/Components/FilterChips/types.d.ts +1 -0
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -1
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -0
- package/dist/Shared/Components/GettingStartedCard/service.d.ts +1 -0
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +1 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -0
- package/dist/Shared/Components/Header/HelpNav.d.ts +1 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -0
- package/dist/Shared/Components/Header/constants.d.ts +1 -0
- package/dist/Shared/Components/Header/service.d.ts +2 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +11 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +4 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
- package/dist/Shared/Components/ImageCard/types.d.ts +41 -0
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +4 -0
- package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +24 -0
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -0
- package/dist/Shared/Components/KeyValueList/KeyValueList.d.ts +1 -0
- package/dist/Shared/Components/LogoutCard.d.ts +2 -1
- package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +4 -0
- package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
- package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +4 -0
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +2 -0
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +3 -0
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
- package/dist/Shared/Components/index.d.ts +7 -0
- package/dist/Shared/Helpers.d.ts +8 -0
- package/dist/Shared/Providers/MainContextProvider.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +3 -2
- package/dist/Shared/constants.d.ts +31 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +158 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14162 -13187
- package/package.json +6 -4
- package/dist/Common/Error.d.ts +0 -17
- package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { GenericSectionErrorStateProps } from './types';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
|
|
3
4
|
export default GenericSectionErrorState;
|
|
@@ -2,11 +2,31 @@ export interface GenericSectionErrorStateProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* Handler for reloading the section
|
|
4
4
|
*/
|
|
5
|
-
reload
|
|
5
|
+
reload?: () => void;
|
|
6
6
|
/**
|
|
7
7
|
* If true, border is added to the section
|
|
8
8
|
*
|
|
9
9
|
* @default false
|
|
10
10
|
*/
|
|
11
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;
|
|
12
32
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
|
+
|
|
2
3
|
declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
|
|
3
4
|
export default PageHeader;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
2
1
|
import { ServerInfoResponse } from './types';
|
|
2
|
+
import { ResponseType } from '../../../Common';
|
|
3
|
+
|
|
3
4
|
export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
|
|
4
5
|
export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ArtifactInfoProps } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const ArtifactInfo: ({ imagePath, registryName, registryType, image, deployedTime, deployedBy, isRollbackTrigger, excludedImagePathNode, approvalChecksNode, approvalInfoTippy, }: ArtifactInfoProps) => JSX.Element;
|
|
4
|
+
export default ArtifactInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ArtifactInfo } from './ArtifactInfo';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ImageCardProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const ImageCard: ({ testIdLocator, cta, sequentialCDCardTitleProps, artifactInfoProps, imageTagContainerProps, children, rootClassName, materialInfoRootClassName, }: ImageCardProps) => JSX.Element;
|
|
4
|
+
export default ImageCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DeploymentEnvState } from './DeploymentEnvState';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SequentialCDCardTitleProps } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, deployedOn, additionalInfo, }: SequentialCDCardTitleProps) => JSX.Element;
|
|
4
|
+
export default SequentialCDCardTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SequentialCDCardTitle } from './SequentialCDCardTitle';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RegistryType } from '../..';
|
|
2
|
+
import { ImageTaggingContainerType } from '../../../Common';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export interface ArtifactInfoProps {
|
|
6
|
+
imagePath: string;
|
|
7
|
+
registryName: string;
|
|
8
|
+
registryType: RegistryType;
|
|
9
|
+
image: string;
|
|
10
|
+
deployedTime: string;
|
|
11
|
+
deployedBy: string;
|
|
12
|
+
isRollbackTrigger: boolean;
|
|
13
|
+
excludedImagePathNode: ReactNode;
|
|
14
|
+
approvalChecksNode?: ReactNode;
|
|
15
|
+
approvalInfoTippy?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface SequentialCDCardTitleProps {
|
|
18
|
+
isLatest: boolean;
|
|
19
|
+
isRunningOnParentCD: boolean;
|
|
20
|
+
artifactStatus: string;
|
|
21
|
+
stageType: string;
|
|
22
|
+
showLatestTag: boolean;
|
|
23
|
+
isVirtualEnvironment: boolean;
|
|
24
|
+
deployedOn?: string[];
|
|
25
|
+
environmentName?: string;
|
|
26
|
+
parentEnvironmentName?: string;
|
|
27
|
+
additionalInfo?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export interface ImageCardProps {
|
|
30
|
+
testIdLocator: string;
|
|
31
|
+
sequentialCDCardTitleProps: SequentialCDCardTitleProps;
|
|
32
|
+
cta: ReactNode;
|
|
33
|
+
artifactInfoProps: ArtifactInfoProps;
|
|
34
|
+
imageTagContainerProps: ImageTaggingContainerType;
|
|
35
|
+
/**
|
|
36
|
+
* Meant for ImageCardAccordion
|
|
37
|
+
*/
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
rootClassName?: string;
|
|
40
|
+
materialInfoRootClassName?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ImageCardAccordionProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
|
|
4
|
+
export default ImageCardAccordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ImageCardAccordion } from './ImageCardAccordion';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MaterialSecurityInfoType } from '../../types';
|
|
2
|
+
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
|
3
|
+
import { default as React, ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
6
|
+
isSecurityModuleInstalled: boolean;
|
|
7
|
+
artifactId: number;
|
|
8
|
+
applicationId: number;
|
|
9
|
+
environmentId: number;
|
|
10
|
+
changesCard: ReactNode;
|
|
11
|
+
isScanned: boolean;
|
|
12
|
+
isScanEnabled: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface SecurityDetailsType {
|
|
15
|
+
vulnerabilities: VulnerabilityType[];
|
|
16
|
+
scanToolId: number;
|
|
17
|
+
lastExecution: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AccordionItemProps {
|
|
20
|
+
currentTab: CDModalTabType;
|
|
21
|
+
activeTab: CDModalTabType;
|
|
22
|
+
setActiveTab: React.Dispatch<React.SetStateAction<CDModalTabType>>;
|
|
23
|
+
buttonText: string;
|
|
24
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
|
2
|
+
|
|
2
3
|
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, }: InfoIconTippyProps) => JSX.Element;
|
|
3
4
|
export default InfoIconTippy;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { KeyValueListProps } from './types';
|
|
2
|
+
|
|
2
3
|
declare const KeyValueList: ({ keyValueList, handleKeyValueChange, isDisabled, disabledInfo, itemClassName, addButtonText, keyPlaceholder, valuePlaceholder, }: KeyValueListProps) => JSX.Element;
|
|
3
4
|
export default KeyValueList;
|
|
@@ -12,3 +12,4 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
12
12
|
export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
|
|
13
13
|
export declare const SelectOption: (props: any) => JSX.Element;
|
|
14
14
|
export declare const LoadingIndicator: () => JSX.Element;
|
|
15
|
+
export declare const GroupHeading: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScannedByToolModal } from './ScannedByToolModal';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ScannedObjectBarProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
|
|
4
|
+
export default ScannedObjectBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScannedObjectBar } from './ScannedObjectBar';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MaterialSecurityInfoType } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
|
|
4
|
+
artifactId: number;
|
|
5
|
+
applicationId: number;
|
|
6
|
+
environmentId: number;
|
|
7
|
+
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
+
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export * from './APIResponseHandler';
|
|
2
2
|
export * from './ReactSelect';
|
|
3
3
|
export * from './BulkSelection';
|
|
4
|
+
export * from './ImageCard';
|
|
5
|
+
export * from './ImageCardAccordion';
|
|
6
|
+
export * from './ExcludedImageNode';
|
|
7
|
+
export * from './ScannedByToolModal';
|
|
8
|
+
export * from './Vulnerabilities';
|
|
4
9
|
export * from './FilterChips';
|
|
10
|
+
export * from './ActivityIndicator';
|
|
5
11
|
export * from './GenericSectionErrorState';
|
|
6
12
|
export * from './KeyValueList';
|
|
13
|
+
export * from './ScannedObjectBar';
|
|
7
14
|
export * from './InfoIconTippy';
|
|
8
15
|
export * from './EditableTextArea';
|
|
9
16
|
export * from './Header';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { GitTriggers } from './types';
|
|
2
|
+
import { MaterialInfo } from '../Common';
|
|
3
|
+
|
|
1
4
|
interface HighlightSearchTextProps {
|
|
2
5
|
/**
|
|
3
6
|
* The text to be highlighted
|
|
@@ -13,4 +16,9 @@ interface HighlightSearchTextProps {
|
|
|
13
16
|
highlightClasses?: string;
|
|
14
17
|
}
|
|
15
18
|
export declare const highlightSearchText: ({ searchText, text, highlightClasses }: HighlightSearchTextProps) => string;
|
|
19
|
+
export declare const preventBodyScroll: (lock: boolean) => void;
|
|
20
|
+
export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
|
|
21
|
+
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
|
22
|
+
export declare const caseInsensitiveStringComparator: (a: string, b: string) => number;
|
|
23
|
+
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
16
24
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
-
import { ServerInfo } from '../Components/Header/types';
|
|
3
1
|
import { SERVER_MODE } from '../../Common';
|
|
2
|
+
import { ServerInfo } from '../Components/Header/types';
|
|
3
|
+
import { MutableRefObject, ReactNode } from 'react';
|
|
4
|
+
|
|
4
5
|
export interface MainContext {
|
|
5
6
|
serverMode: SERVER_MODE;
|
|
6
7
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
|
@@ -0,0 +1,31 @@
|
|
|
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:";
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,3 +1,90 @@
|
|
|
1
|
+
import { CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
|
|
2
|
+
|
|
3
|
+
export declare enum RegistryType {
|
|
4
|
+
GIT = "git",
|
|
5
|
+
GITHUB = "github",
|
|
6
|
+
GITLAB = "gitlab",
|
|
7
|
+
BITBUCKET = "bitbucket",
|
|
8
|
+
DOCKER = "docker",
|
|
9
|
+
DOCKER_HUB = "docker-hub",
|
|
10
|
+
ACR = "acr",
|
|
11
|
+
QUAY = "quay",
|
|
12
|
+
ECR = "ecr",
|
|
13
|
+
ARTIFACT_REGISTRY = "artifact-registry",
|
|
14
|
+
GCR = "gcr",
|
|
15
|
+
OTHER = "other"
|
|
16
|
+
}
|
|
17
|
+
export declare enum DefaultUserKey {
|
|
18
|
+
system = "system",
|
|
19
|
+
admin = "admin"
|
|
20
|
+
}
|
|
21
|
+
export declare enum Severity {
|
|
22
|
+
CRITICAL = "critical",
|
|
23
|
+
MODERATE = "moderate",
|
|
24
|
+
LOW = "low"
|
|
25
|
+
}
|
|
26
|
+
export declare enum ImagePromotionTabs {
|
|
27
|
+
REQUEST = "request",
|
|
28
|
+
PENDING = "pending"
|
|
29
|
+
}
|
|
30
|
+
export interface ArtifactPromotionMetadata {
|
|
31
|
+
isConfigured: boolean;
|
|
32
|
+
isApprovalPendingForPromotion: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface Material {
|
|
35
|
+
gitMaterialId: number;
|
|
36
|
+
materialName: string;
|
|
37
|
+
}
|
|
38
|
+
export interface WorkflowType {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
gitMaterials?: Material[];
|
|
42
|
+
ciConfiguredGitMaterialId?: number;
|
|
43
|
+
startX: number;
|
|
44
|
+
startY: number;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
nodes: CommonNodeAttr[];
|
|
48
|
+
dag: any;
|
|
49
|
+
showTippy?: boolean;
|
|
50
|
+
appId?: number;
|
|
51
|
+
isSelected?: boolean;
|
|
52
|
+
approvalConfiguredIdsMap?: Record<number, UserApprovalConfigType>;
|
|
53
|
+
imageReleaseTags: string[];
|
|
54
|
+
appReleaseTags?: string[];
|
|
55
|
+
tagsEditable?: boolean;
|
|
56
|
+
hideImageTaggingHardDelete?: boolean;
|
|
57
|
+
artifactPromotionMetadata?: ArtifactPromotionMetadata;
|
|
58
|
+
}
|
|
59
|
+
export declare enum ModuleStatus {
|
|
60
|
+
HEALTHY = "healthy",
|
|
61
|
+
NONE = "none",
|
|
62
|
+
UNKNOWN = "unknown",
|
|
63
|
+
UPGRADING = "upgrading",
|
|
64
|
+
UPGRADE_FAILED = "upgradeFailed",
|
|
65
|
+
INSTALLED = "installed",
|
|
66
|
+
INSTALLING = "installing",
|
|
67
|
+
INSTALL_FAILED = "installFailed",
|
|
68
|
+
NOT_INSTALLED = "notInstalled",
|
|
69
|
+
TIMEOUT = "timeout"
|
|
70
|
+
}
|
|
71
|
+
export interface WebHookData {
|
|
72
|
+
Id: number;
|
|
73
|
+
EventActionType: string;
|
|
74
|
+
Data: any;
|
|
75
|
+
}
|
|
76
|
+
export interface GitTriggers {
|
|
77
|
+
Commit: string;
|
|
78
|
+
Author: string;
|
|
79
|
+
Date: Date | string;
|
|
80
|
+
Message: string;
|
|
81
|
+
Changes: string[];
|
|
82
|
+
WebhookData: WebHookData;
|
|
83
|
+
GitRepoUrl: string;
|
|
84
|
+
GitRepoName: string;
|
|
85
|
+
CiConfigureSourceType: string;
|
|
86
|
+
CiConfigureSourceValue: string;
|
|
87
|
+
}
|
|
1
88
|
export interface RuntimeParamsAPIResponseType {
|
|
2
89
|
envVariables: Record<string, string>;
|
|
3
90
|
}
|
|
@@ -8,3 +95,74 @@ export declare enum CIMaterialSidebarType {
|
|
|
8
95
|
CODE_SOURCE = "Code Source",
|
|
9
96
|
PARAMETERS = "Parameters"
|
|
10
97
|
}
|
|
98
|
+
export interface LastExecutionResultType {
|
|
99
|
+
lastExecution: string;
|
|
100
|
+
severityCount: {
|
|
101
|
+
critical: number;
|
|
102
|
+
moderate: number;
|
|
103
|
+
low: number;
|
|
104
|
+
};
|
|
105
|
+
vulnerabilities: VulnerabilityType[];
|
|
106
|
+
scanExecutionId?: number;
|
|
107
|
+
appId?: number;
|
|
108
|
+
appName?: string;
|
|
109
|
+
envId?: number;
|
|
110
|
+
envName?: string;
|
|
111
|
+
pod?: string;
|
|
112
|
+
replicaSet?: string;
|
|
113
|
+
image?: string;
|
|
114
|
+
objectType?: 'app' | 'chart';
|
|
115
|
+
scanned?: boolean;
|
|
116
|
+
scanEnabled?: boolean;
|
|
117
|
+
scanToolId?: number;
|
|
118
|
+
}
|
|
119
|
+
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
|
120
|
+
}
|
|
121
|
+
export interface MaterialSecurityInfoType {
|
|
122
|
+
isScanned: boolean;
|
|
123
|
+
isScanEnabled: boolean;
|
|
124
|
+
}
|
|
125
|
+
export declare enum Nodes {
|
|
126
|
+
Service = "Service",
|
|
127
|
+
Alertmanager = "Alertmanager",
|
|
128
|
+
PodSecurity = "PodSecurityPolicy",
|
|
129
|
+
ConfigMap = "ConfigMap",
|
|
130
|
+
ServiceAccount = "ServiceAccount",
|
|
131
|
+
ClusterRoleBinding = "ClusterRoleBinding",
|
|
132
|
+
RoleBinding = "RoleBinding",
|
|
133
|
+
ClusterRole = "ClusterRole",
|
|
134
|
+
Role = "Role",
|
|
135
|
+
Prometheus = "Prometheus",
|
|
136
|
+
ServiceMonitor = "ServiceMonitor",
|
|
137
|
+
Deployment = "Deployment",
|
|
138
|
+
MutatingWebhookConfiguration = "MutatingWebhookConfiguration",
|
|
139
|
+
DaemonSet = "DaemonSet",
|
|
140
|
+
Secret = "Secret",
|
|
141
|
+
ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration",
|
|
142
|
+
Pod = "Pod",
|
|
143
|
+
Ingress = "Ingress",
|
|
144
|
+
ReplicaSet = "ReplicaSet",
|
|
145
|
+
Endpoints = "Endpoints",
|
|
146
|
+
Cluster = "ClusterRoleBinding",
|
|
147
|
+
PodSecurityPolicy = "PodSecurityPolicy",
|
|
148
|
+
CronJob = "CronJob",
|
|
149
|
+
Job = "Job",
|
|
150
|
+
ReplicationController = "ReplicationController",
|
|
151
|
+
StatefulSet = "StatefulSet",
|
|
152
|
+
Rollout = "Rollout",
|
|
153
|
+
PersistentVolumeClaim = "PersistentVolumeClaim",
|
|
154
|
+
PersistentVolume = "PersistentVolume",
|
|
155
|
+
Containers = "Containers",
|
|
156
|
+
InitContainers = "InitContainers",
|
|
157
|
+
EndpointSlice = "EndpointSlice",
|
|
158
|
+
NetworkPolicy = "NetworkPolicy",
|
|
159
|
+
StorageClass = "StorageClass",
|
|
160
|
+
VolumeSnapshot = "VolumeSnapshot",
|
|
161
|
+
VolumeSnapshotContent = "VolumeSnapshotContent",
|
|
162
|
+
VolumeSnapshotClass = "VolumeSnapshotClass",
|
|
163
|
+
PodDisruptionBudget = "PodDisruptionBudget",
|
|
164
|
+
Event = "Event",
|
|
165
|
+
Namespace = "Namespace",
|
|
166
|
+
Overview = "Overview"
|
|
167
|
+
}
|
|
168
|
+
export type NodeType = keyof typeof Nodes;
|