@devtron-labs/devtron-fe-common-lib 1.21.0-beta-10 → 1.21.0-beta-11
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/{@code-editor-C85m7cEc.js → @code-editor-q8-PgKTA.js} +9385 -11234
- package/dist/{@common-rjsf-C2Gii_G7.js → @common-rjsf-BexuxZ4F.js} +30 -30
- package/dist/{@framer-motion-LZK2bgCK.js → @framer-motion-DZveCoIL.js} +139 -141
- package/dist/{@react-dates-CbpfVsC0.js → @react-dates-CZ1bNWJM.js} +1 -1
- package/dist/{@react-select-BuPEYnTv.js → @react-select-DS68hCUM.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DX7VkyTZ.js → @react-virtualized-sticky-tree-V-8klKy9.js} +1 -1
- package/dist/{@vendor-BsABdDGm.js → @vendor-3ORIJA0h.js} +19361 -28480
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/API/types.d.ts +1 -1
- package/dist/Common/BreadCrumb/Types.d.ts +0 -20
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +2 -2
- package/dist/Common/ClipboardButton/types.d.ts +2 -12
- package/dist/Common/Common.service.d.ts +1 -4
- package/dist/Common/Constants.d.ts +18 -67
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +0 -8
- package/dist/Common/SegmentedBarChart/types.d.ts +2 -10
- package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/index.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +9 -13
- package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Common/Types.d.ts +5 -64
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +7 -13
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages/ResourceBrowser/types.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +0 -3
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +2 -2
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/Badge/utils.d.ts +1 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +12 -12
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +1 -2
- package/dist/Shared/Components/DocLink/constants.d.ts +0 -3
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -2
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +5 -21
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +3 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +0 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -69
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +0 -6
- package/dist/Shared/Components/Illustration/Illustration.d.ts +3 -6
- package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
- package/dist/Shared/Components/License/types.d.ts +1 -0
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +3 -3
- package/dist/Shared/Components/Security/constants.d.ts +0 -2
- package/dist/Shared/Components/Security/index.d.ts +0 -3
- package/dist/Shared/Components/Security/types.d.ts +0 -10
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -3
- package/dist/Shared/Components/SelectPicker/utils.d.ts +0 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +6 -12
- package/dist/Shared/Components/TrailingItem/types.d.ts +0 -4
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/constants.d.ts +0 -3
- package/dist/Shared/Components/TreeView/types.d.ts +3 -17
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +3 -3
- package/dist/Shared/Components/index.d.ts +0 -7
- package/dist/Shared/Helpers.d.ts +0 -11
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +5 -0
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +20 -5
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -31
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +0 -9
- package/dist/Shared/Services/common.service.d.ts +0 -3
- package/dist/Shared/Services/types.d.ts +1 -10
- package/dist/Shared/constants.d.ts +17 -3
- package/dist/Shared/types.d.ts +5 -20
- package/dist/Shared/validations.d.ts +0 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/img-install-freemium-saas.4388531c.svg +40 -0
- package/dist/assets/img-install-via-aws-marketplace.df85f572.svg +48 -0
- package/dist/assets/img-page-not-found.3c4f114b.svg +81 -0
- package/dist/index.d.ts +11 -15
- package/dist/index.js +966 -1139
- package/package.json +1 -6
- package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +0 -2
- package/dist/Common/SegmentedBarChart/utils.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/index.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +0 -6
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +0 -4
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +0 -31
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/types.d.ts +0 -8
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +0 -6
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +0 -11
- package/dist/Pages-Devtron-2.0/Navigation/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +0 -32
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/SecurityCenterIcon.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/utils.d.ts +0 -6
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Shared/Overview/components.d.ts +0 -7
- package/dist/Pages-Devtron-2.0/Shared/Overview/constants.d.ts +0 -8
- package/dist/Pages-Devtron-2.0/Shared/Overview/index.d.ts +0 -3
- package/dist/Pages-Devtron-2.0/Shared/Overview/types.d.ts +0 -26
- package/dist/Pages-Devtron-2.0/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/index.d.ts +0 -7
- package/dist/Shared/Components/Card/Card.component.d.ts +0 -3
- package/dist/Shared/Components/Card/constants.d.ts +0 -4
- package/dist/Shared/Components/Card/index.d.ts +0 -2
- package/dist/Shared/Components/Card/types.d.ts +0 -25
- package/dist/Shared/Components/Charts/Chart.component.d.ts +0 -121
- package/dist/Shared/Components/Charts/constants.d.ts +0 -10
- package/dist/Shared/Components/Charts/index.d.ts +0 -4
- package/dist/Shared/Components/Charts/plugins.d.ts +0 -7
- package/dist/Shared/Components/Charts/types.d.ts +0 -135
- package/dist/Shared/Components/Charts/utils.d.ts +0 -30
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +0 -3
- package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +0 -1
- package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +0 -5
- package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +0 -2
- package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +0 -3
- package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +0 -3
- package/dist/Shared/Components/ExportToCsv/index.d.ts +0 -2
- package/dist/Shared/Components/ExportToCsv/types.d.ts +0 -64
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +0 -3
- package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +0 -3
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +0 -1
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +0 -4
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +0 -3
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +0 -2
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +0 -20
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +0 -2
- package/dist/Shared/Components/SideNavigation/index.d.ts +0 -2
- package/dist/Shared/Components/SideNavigation/types.d.ts +0 -19
- package/dist/assets/create-backup-schedule.bbac4a86.webp +0 -0
- package/dist/assets/create-backup-snapshot.c794f612.webp +0 -0
- package/dist/assets/ic-ai.25e44e0c.svg +0 -3
- package/dist/assets/ic-alibaba.518d61a4.svg +0 -3
- package/dist/assets/ic-application-group.4b448cca.svg +0 -3
- package/dist/assets/ic-application-management.7fb9e3a0.svg +0 -3
- package/dist/assets/ic-application-template.212d14f1.svg +0 -3
- package/dist/assets/ic-application.4c80bfcf.svg +0 -3
- package/dist/assets/ic-argocd-app.9c5eba79.svg +0 -61
- package/dist/assets/ic-arrow-line-down.b6a98848.svg +0 -3
- package/dist/assets/ic-aws.eb2d0124.svg +0 -12
- package/dist/assets/ic-backup-and-schedule.51b7d3dd.svg +0 -3
- package/dist/assets/ic-backup-color.dc62e9d5.svg +0 -6
- package/dist/assets/ic-backup-location.ebaf1148.svg +0 -3
- package/dist/assets/ic-backup-schedule-color.a16c34b0.svg +0 -5
- package/dist/assets/ic-bg-backup-schedule.9ef9bc39.svg +0 -19
- package/dist/assets/ic-bg-backups.396e99bd.svg +0 -19
- package/dist/assets/ic-bg-build.8609d0ea.svg +0 -13
- package/dist/assets/ic-bg-cpu.15ec70f0.svg +0 -11
- package/dist/assets/ic-bg-deploy.266711fe.svg +0 -22
- package/dist/assets/ic-bg-memory.5373a125.svg +0 -11
- package/dist/assets/ic-bg-pause-schedule.6edcc1d4.svg +0 -14
- package/dist/assets/ic-bg-production-pipelines.2951cdc0.svg +0 -22
- package/dist/assets/ic-bg-project.84658405.svg +0 -12
- package/dist/assets/ic-bg-ransomware-vulnerable-cluster.1b25a5d0.svg +0 -7
- package/dist/assets/ic-bg-restore.4fa13869.svg +0 -33
- package/dist/assets/ic-bg-scan.2249360c.svg +0 -28
- package/dist/assets/ic-bg-storage-locations.894070b0.svg +0 -22
- package/dist/assets/ic-bg-webhook.b455152d.svg +0 -13
- package/dist/assets/ic-bot.65f403dd.svg +0 -3
- package/dist/assets/ic-building.2405d07b.svg +0 -3
- package/dist/assets/ic-chart-line-up.7ab47f4e.svg +0 -3
- package/dist/assets/ic-check-circle.af18cd7e.svg +0 -3
- package/dist/assets/ic-circle-small.a0740b0e.svg +0 -3
- package/dist/assets/ic-clipboard.2869fa7d.svg +0 -3
- package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +0 -3
- package/dist/assets/ic-cloud-upload.55d9c163.svg +0 -3
- package/dist/assets/ic-coins-color-animated.fe11cdc3.svg +0 -112
- package/dist/assets/ic-coins.2c15f406.svg +0 -3
- package/dist/assets/ic-cost-visibility.5595009f.svg +0 -3
- package/dist/assets/ic-database-backup.b9e7c558.svg +0 -3
- package/dist/assets/ic-devtron-text.67a413b6.svg +0 -3
- package/dist/assets/ic-edit-lines.57927b07.svg +0 -3
- package/dist/assets/ic-file-download.ca57c068.svg +0 -5
- package/dist/assets/ic-files-changed.04e6de3f.svg +0 -3
- package/dist/assets/ic-floppy-disk.6d392bcd.svg +0 -3
- package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +0 -22
- package/dist/assets/ic-global-overview.56ba9dc0.svg +0 -3
- package/dist/assets/ic-google-cloud.3077a8dd.svg +0 -6
- package/dist/assets/ic-infrastructure-management.4b052d41.svg +0 -3
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +0 -4
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +0 -10
- package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +0 -3
- package/dist/assets/ic-otc-cloud.43b31bd8.svg +0 -5
- package/dist/assets/ic-party.cfc7e7c6.svg +0 -4
- package/dist/assets/ic-pause.4e5c6056.svg +0 -4
- package/dist/assets/ic-priority-medium-fill.7bab0ff8.svg +0 -4
- package/dist/assets/ic-release-hub.25b9707a.svg +0 -3
- package/dist/assets/ic-resource-browser.4ff3e571.svg +0 -3
- package/dist/assets/ic-resource-watcher.7cce5305.svg +0 -3
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +0 -3
- package/dist/assets/ic-security-fixable.168b5bf8.svg +0 -12
- package/dist/assets/ic-security-not-fixable.be099f65.svg +0 -12
- package/dist/assets/ic-security-policy.874568da.svg +0 -3
- package/dist/assets/ic-security-scan.3ae78d50.svg +0 -3
- package/dist/assets/ic-security-vulnerability.c954b87a.svg +0 -4
- package/dist/assets/ic-software-release-management.dceedf80.svg +0 -3
- package/dist/assets/ic-symbol-greater-than.8f71342d.svg +0 -3
- package/dist/assets/ic-tenants.4f997b9a.svg +0 -3
- package/dist/assets/ic-trend-up.5752ef30.svg +0 -3
- package/dist/assets/ic-warning-stroke.fc850a4a.svg +0 -3
- package/dist/assets/img-folder-empty.8e898c33.svg +0 -33
- package/dist/assets/img-no-backup-location.0e8699c5.svg +0 -180
- package/dist/assets/img-no-restores.f26cb7db.svg +0 -114
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DevtronLicenseCardProps } from './types';
|
|
2
|
-
export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, isFreemium, ttl, appTheme, handleCopySuccess, licenseStatusError, }: DevtronLicenseCardProps) => JSX.Element;
|
|
2
|
+
export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, isFreemium, ttl, appTheme, handleCopySuccess, licenseStatusError, isSaasInstance, }: DevtronLicenseCardProps) => JSX.Element;
|
|
3
3
|
export default DevtronLicenseCard;
|
|
@@ -17,7 +17,7 @@ export declare const SUB_CATEGORY_LABELS: {
|
|
|
17
17
|
readonly MISCONFIGURATIONS: "Misconfigurations";
|
|
18
18
|
readonly EXPOSED_SECRETS: "Exposed Secrets";
|
|
19
19
|
};
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const SEVERITIES: {
|
|
21
21
|
readonly critical: {
|
|
22
22
|
readonly label: "Critical";
|
|
23
23
|
readonly color: "var(--R700)";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getProgressingStateForStatus, getSecurityModalSidebarChildFromId, getSecurityModalSidebarId, getSidebarData, } from './config';
|
|
2
|
-
export { CATEGORY_LABELS
|
|
2
|
+
export { CATEGORY_LABELS } from './constants';
|
|
3
3
|
export { default as SecurityModal } from './SecurityModal';
|
|
4
4
|
export { getSecurityScan } from './service';
|
|
5
5
|
export type { GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, ScanResultDTO, SidebarDataChildType, SidebarPropsType, } from './types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SEVERITIES } from './constants';
|
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
|
3
|
-
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof
|
|
3
|
+
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
|
4
4
|
color: "var(--Y500)" | "var(--R700)" | "var(--R500)" | "var(--G500)" | "var(--N300)" | "var(--O500)";
|
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
|
6
6
|
value: number;
|
|
7
7
|
}[];
|
|
8
|
-
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof
|
|
8
|
+
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
|
|
9
9
|
export declare const getSeverityWeight: (severity: SeveritiesDTO) => number;
|
|
10
10
|
export declare const compareSeverity: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
|
11
11
|
export declare const getSecurityScanSeveritiesCount: (data: ScanResultDTO) => {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export { SEVERITY_LABEL_MAP } from './constants';
|
|
2
1
|
export * from './SecurityDetailsCards';
|
|
3
2
|
export * from './SecurityModal';
|
|
4
|
-
export { default as SeverityChip } from './SeverityChip';
|
|
5
|
-
export { FixAvailabilityOptions, VulnerabilityDiscoveryAgeOptions } from './types';
|
|
6
3
|
export * from './utils';
|
|
7
4
|
export * from './Vulnerabilities';
|
|
@@ -20,14 +20,4 @@ export interface GetSidebarDataParamsType extends Record<ScanCategoriesWithLicen
|
|
|
20
20
|
selectedId: string;
|
|
21
21
|
scanResult: ScanResultDTO;
|
|
22
22
|
}
|
|
23
|
-
export declare enum VulnerabilityDiscoveryAgeOptions {
|
|
24
|
-
LESS_THAN_30_DAYS = "lt_30d",
|
|
25
|
-
BETWEEN_30_AND_60_DAYS = "30_60d",
|
|
26
|
-
BETWEEN_60_AND_90_DAYS = "60_90d",
|
|
27
|
-
GREATER_THAN_90_DAYS = "gt_90d"
|
|
28
|
-
}
|
|
29
|
-
export declare enum FixAvailabilityOptions {
|
|
30
|
-
FIX_AVAILABLE = "fixAvailable",
|
|
31
|
-
FIX_NOT_AVAILABLE = "fixNotAvailable"
|
|
32
|
-
}
|
|
33
23
|
export {};
|
|
@@ -133,5 +133,5 @@ import { SelectPickerProps } from './type';
|
|
|
133
133
|
* />
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
136
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, keyboardShortcut, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis,
|
|
136
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, keyboardShortcut, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef: refFromConsumer, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, menuListFooterConfig, isCreatable, onCreateOption, closeMenuOnSelect: _closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, autoFocus, showCheckboxForMultiSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
137
137
|
export default SelectPicker;
|
|
@@ -7,7 +7,7 @@ export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndic
|
|
|
7
7
|
export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
8
8
|
export declare const SelectPickerInput: <OptionValue>(props: InputProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
9
9
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
|
10
|
-
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis,
|
|
10
|
+
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
|
11
11
|
export declare const SelectPickerMenuListFooter: ({ menuListFooterConfig, }: Required<Pick<SelectPickerProps, "menuListFooterConfig">>) => JSX.Element;
|
|
12
12
|
export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
13
13
|
export declare const SelectPickerMultiValue: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
|
|
@@ -4,4 +4,4 @@ export * from './GroupedFilterSelectPicker';
|
|
|
4
4
|
export { default as SelectPicker } from './SelectPicker.component';
|
|
5
5
|
export * from './SelectPickerTextArea.component';
|
|
6
6
|
export * from './type';
|
|
7
|
-
export { getSelectPickerOptionByValue
|
|
7
|
+
export { getSelectPickerOptionByValue } from './utils';
|
|
@@ -206,7 +206,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
206
206
|
shouldHideMenu?: boolean;
|
|
207
207
|
} & (IsMulti extends true ? {
|
|
208
208
|
isMulti: IsMulti | boolean;
|
|
209
|
-
isUserIdentifier?: boolean;
|
|
210
209
|
multiSelectProps?: Partial<Pick<SelectProps<OptionValue, IsMulti>, 'customDisplayText'>> & {
|
|
211
210
|
/**
|
|
212
211
|
* If true, the group heading can be selected
|
|
@@ -224,12 +223,11 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
224
223
|
} : {
|
|
225
224
|
isMulti?: never;
|
|
226
225
|
multiSelectProps?: never;
|
|
227
|
-
isUserIdentifier?: never;
|
|
228
226
|
});
|
|
229
227
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
230
228
|
isGroupHeadingSelectable: boolean;
|
|
231
229
|
};
|
|
232
|
-
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'getOptionValue' | 'isOptionDisabled' | 'onMenuClose' | 'menuIsOpen' | 'onKeyDown'
|
|
230
|
+
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'getOptionValue' | 'isOptionDisabled' | 'onMenuClose' | 'menuIsOpen' | 'onKeyDown'> {
|
|
233
231
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
234
232
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
235
233
|
}
|
|
@@ -13,4 +13,3 @@ export declare const getGroupCheckboxValue: <OptionValue>(groupHeadingOptions: r
|
|
|
13
13
|
* @returns The matched option or the default option if no match is found.
|
|
14
14
|
*/
|
|
15
15
|
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>, getOptionValue?: SelectPickerProps<OptionValue>["getOptionValue"]) => SelectPickerOptionType<OptionValue>;
|
|
16
|
-
export declare const getSelectPickerOptionsByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, values: OptionValue[]) => SelectPickerOptionType<OptionValue>[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FiltersTypeEnum, InternalTableProps } from './types';
|
|
2
|
-
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue,
|
|
2
|
+
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
|
3
3
|
export default InternalTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FiltersTypeEnum, TableContentProps } from './types';
|
|
2
|
-
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant,
|
|
2
|
+
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, filteredRows, areFilteredRowsLoading, getRows, totalRows, }: TableContentProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
|
3
3
|
export default TableContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, FunctionComponent, MouseEvent, PropsWithChildren, SetStateAction } from 'react';
|
|
2
2
|
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
|
3
3
|
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps, UseUrlFiltersReturnType } from '../../../Common/Hooks';
|
|
4
|
-
import { GenericEmptyStateType } from '../../../Common/index';
|
|
4
|
+
import { APIOptions, GenericEmptyStateType } from '../../../Common/index';
|
|
5
5
|
import { PageSizeOption } from '../../../Common/Pagination/types';
|
|
6
6
|
import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
|
|
7
7
|
import { useBulkSelection, UseBulkSelectionProps } from '../BulkSelection';
|
|
@@ -91,7 +91,6 @@ export interface BulkOperationModalProps<T extends string = string, RowData exte
|
|
|
91
91
|
type BulkSelectionConfigType = Pick<UseBulkSelectionProps<unknown>, 'getSelectAllDialogStatus'> & {
|
|
92
92
|
BulkActionsComponent: FunctionComponent<BulkActionsComponentProps>;
|
|
93
93
|
BulkOperationModal: FunctionComponent<BulkOperationModalProps>;
|
|
94
|
-
disableSelectAllAcrossEvenIfPaginated?: boolean;
|
|
95
94
|
} & Pick<BulkActionsComponentProps, 'bulkActionsData'> & Pick<BulkOperationModalProps, 'bulkOperationModalData'>;
|
|
96
95
|
export declare enum PaginationEnum {
|
|
97
96
|
PAGINATED = "paginated",
|
|
@@ -161,10 +160,7 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
|
|
|
161
160
|
/**
|
|
162
161
|
* Use this component to display additional content at the end of a row when it is hovered over.
|
|
163
162
|
*/
|
|
164
|
-
|
|
165
|
-
Component: FunctionComponent<RowActionsOnHoverComponentProps<RowData, AdditionalProps>>;
|
|
166
|
-
width: string | number;
|
|
167
|
-
};
|
|
163
|
+
RowActionsOnHoverComponent?: FunctionComponent<RowActionsOnHoverComponentProps<RowData, AdditionalProps>>;
|
|
168
164
|
bulkSelectionReturnValue: BulkSelectionReturnValueType | null;
|
|
169
165
|
handleClearBulkSelection: () => void;
|
|
170
166
|
handleToggleBulkSelectionOnRow: (row: RowType<RowData>) => void;
|
|
@@ -181,7 +177,7 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
|
|
|
181
177
|
} | {
|
|
182
178
|
rows?: never;
|
|
183
179
|
/** NOTE: Sorting on frontend is only handled if rows is provided instead of getRows */
|
|
184
|
-
getRows: (props: GetRowsProps,
|
|
180
|
+
getRows: (props: GetRowsProps, abortControllerRef: APIOptions['abortControllerRef']) => Promise<{
|
|
185
181
|
rows: RowsType<RowData>;
|
|
186
182
|
totalRows: number;
|
|
187
183
|
}>;
|
|
@@ -196,7 +192,7 @@ export type UseResizableTableConfigWrapperProps<RowData extends unknown, FilterV
|
|
|
196
192
|
export type TableWithBulkSelectionProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<UseResizableTableConfigWrapperProps<RowData, FilterVariant, AdditionalProps>, 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow'>;
|
|
197
193
|
export type VisibleColumnsWrapperProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<TableWithBulkSelectionProps<RowData, FilterVariant, AdditionalProps>, 'visibleColumns' | 'setVisibleColumns'>;
|
|
198
194
|
export type FilterWrapperProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<VisibleColumnsWrapperProps<RowData, FilterVariant, AdditionalProps>, 'filterData'>;
|
|
199
|
-
export type TableProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = Pick<FilterWrapperProps<RowData, FilterVariant, AdditionalProps>, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | '
|
|
195
|
+
export type TableProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = Pick<FilterWrapperProps<RowData, FilterVariant, AdditionalProps>, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | 'RowActionsOnHoverComponent' | 'loading' | 'ViewWrapper' | 'pageSizeOptions' | 'clearFilters'>;
|
|
200
196
|
export type BulkActionStateType = string | null;
|
|
201
197
|
export interface BulkSelectionActionWidgetProps extends Pick<BulkSelectionConfigType, 'BulkActionsComponent' | 'bulkActionsData'> {
|
|
202
198
|
count: number;
|
|
@@ -210,11 +206,9 @@ export interface GetFilteringPromiseProps<RowData extends unknown> {
|
|
|
210
206
|
searchSortTimeoutRef: React.MutableRefObject<number>;
|
|
211
207
|
callback: () => Promise<RowsType<RowData>> | RowsType<RowData>;
|
|
212
208
|
}
|
|
213
|
-
export interface
|
|
209
|
+
export interface TableContentProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> extends Pick<InternalTableProps<RowData, FilterVariant, AdditionalProps>, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'RowActionsOnHoverComponent' | 'pageSizeOptions' | 'getRows'> {
|
|
214
210
|
filteredRows: RowsType<RowData>;
|
|
215
|
-
totalRows: number;
|
|
216
|
-
}
|
|
217
|
-
export interface TableContentProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> extends Pick<InternalTableProps<RowData, FilterVariant, AdditionalProps>, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'rowActionOnHoverConfig' | 'pageSizeOptions' | 'getRows'>, RowsResultType<RowData> {
|
|
218
211
|
areFilteredRowsLoading: boolean;
|
|
212
|
+
totalRows: number;
|
|
219
213
|
}
|
|
220
214
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { OmitNever } from '../../types';
|
|
3
|
-
import { ActionMenuProps } from '../ActionMenu';
|
|
4
3
|
import { ButtonProps } from '../Button';
|
|
5
4
|
import { IconsProps } from '../Icon';
|
|
6
5
|
import { NumbersCountProps } from '../NumbersCount';
|
|
@@ -31,9 +30,6 @@ export type TrailingItemType = {
|
|
|
31
30
|
config: OmitNever<Omit<Extract<ButtonProps, {
|
|
32
31
|
icon: ReactElement;
|
|
33
32
|
}>, 'size' | 'variant'>>;
|
|
34
|
-
} | {
|
|
35
|
-
type: 'action-menu';
|
|
36
|
-
config: ActionMenuProps;
|
|
37
33
|
};
|
|
38
34
|
export type TrailingItemProps = TrailingItemType & {
|
|
39
35
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TreeViewProps } from './types';
|
|
2
|
-
declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap,
|
|
2
|
+
declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, }: TreeViewProps<DataAttributeType>) => JSX.Element;
|
|
3
3
|
export default TreeView;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TreeViewNodeContentProps } from './types';
|
|
2
|
-
declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected,
|
|
2
|
+
declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, }: TreeViewNodeContentProps) => JSX.Element;
|
|
3
3
|
export default TreeViewNodeContent;
|
|
@@ -2,6 +2,3 @@ import { TreeViewProps } from './types';
|
|
|
2
2
|
export declare const DEFAULT_NO_ITEMS_TEXT = "No items found";
|
|
3
3
|
export declare const VARIANT_TO_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
4
4
|
export declare const VARIANT_TO_HOVER_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
5
|
-
export declare const VARIANT_TO_SELECTED_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
6
|
-
export declare const VARIANT_TO_TEXT_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
7
|
-
export declare const VARIANT_TO_TREE_ITEM_ACTIVE_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
@@ -96,11 +96,9 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
|
|
|
96
96
|
onClick?: (e: SyntheticEvent) => void;
|
|
97
97
|
href?: never;
|
|
98
98
|
clearQueryParamsOnNavigation?: never;
|
|
99
|
-
activeClassName?: never;
|
|
100
99
|
} | {
|
|
101
100
|
as: 'link';
|
|
102
101
|
href: string;
|
|
103
|
-
activeClassName?: string;
|
|
104
102
|
/**
|
|
105
103
|
* The callback function to handle click events on the nav link.
|
|
106
104
|
*/
|
|
@@ -115,7 +113,6 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
|
|
|
115
113
|
href?: never;
|
|
116
114
|
onClick?: never;
|
|
117
115
|
clearQueryParamsOnNavigation?: never;
|
|
118
|
-
activeClassName?: never;
|
|
119
116
|
});
|
|
120
117
|
/**
|
|
121
118
|
* Props for the TreeView component.
|
|
@@ -154,25 +151,14 @@ export type TreeViewProps<DataAttributeType = null> = {
|
|
|
154
151
|
*/
|
|
155
152
|
mode?: 'navigation' | 'form';
|
|
156
153
|
/**
|
|
157
|
-
* If primary the background color will be bg__primary and bg__hover--opaque
|
|
158
|
-
* if secondary the background color will be bg__secondary bg__hover-secondary--opaque,
|
|
159
|
-
* if sidenav the background color will be bg__transparent bg__hover-sidebar-item.
|
|
154
|
+
* If primary the background color will be bg__primary and bg__hover--opaque, if secondary the background color will be bg__secondary bg__hover-secondary--opaque.
|
|
160
155
|
* @default 'primary'
|
|
161
156
|
*/
|
|
162
|
-
variant?: 'primary' | 'secondary'
|
|
157
|
+
variant?: 'primary' | 'secondary';
|
|
163
158
|
/**
|
|
164
159
|
* @default {}
|
|
165
160
|
*/
|
|
166
161
|
defaultExpandedMap?: Record<string, boolean>;
|
|
167
|
-
/**
|
|
168
|
-
* When true, the selected heading (`selectedId`) will be highlighted only when it is collapsed.
|
|
169
|
-
* @default false
|
|
170
|
-
*/
|
|
171
|
-
highlightSelectedHeadingOnlyWhenCollapsed?: boolean;
|
|
172
|
-
/**
|
|
173
|
-
* @default true
|
|
174
|
-
*/
|
|
175
|
-
useOverflowAuto?: boolean;
|
|
176
162
|
} /**
|
|
177
163
|
* WARNING: For internal use only.
|
|
178
164
|
*/ & ({
|
|
@@ -202,7 +188,7 @@ export type TreeViewProps<DataAttributeType = null> = {
|
|
|
202
188
|
expandedMap?: never;
|
|
203
189
|
isControlled?: false;
|
|
204
190
|
});
|
|
205
|
-
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'
|
|
191
|
+
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'> {
|
|
206
192
|
type: 'heading' | 'item';
|
|
207
193
|
isSelected: boolean;
|
|
208
194
|
}
|
|
@@ -16,10 +16,10 @@ export declare const getSwitchToWebhookPayload: (changeCIPayload: ChangeCIPayloa
|
|
|
16
16
|
export declare const getCurrentPipelineType: ({ workflows, changeCIPayload, }: Required<Pick<WorkflowOptionsModalProps, "workflows" | "changeCIPayload">>) => SourceTypeCardProps["type"];
|
|
17
17
|
export declare const getBuildWorkflowCardsConfig: ({ currentPipelineType, changeCIPayload, isAppGroup, }: {
|
|
18
18
|
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
|
19
|
-
} & Required<Pick<WorkflowOptionsModalProps, "changeCIPayload" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "
|
|
19
|
+
} & Required<Pick<WorkflowOptionsModalProps, "changeCIPayload" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
|
20
20
|
export declare const getReceiveWorkflowCardsConfig: ({ currentPipelineType, linkedCDSourceVariant, isAppGroup, }: {
|
|
21
21
|
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
|
22
|
-
} & Required<Pick<WorkflowOptionsModalProps, "linkedCDSourceVariant" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "
|
|
22
|
+
} & Required<Pick<WorkflowOptionsModalProps, "linkedCDSourceVariant" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
|
23
23
|
export declare const getJobWorkflowCardsConfig: ({ currentPipelineType, isAppGroup, }: {
|
|
24
24
|
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
|
25
|
-
} & Required<Pick<WorkflowOptionsModalProps, "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "
|
|
25
|
+
} & Required<Pick<WorkflowOptionsModalProps, "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
|
@@ -13,11 +13,8 @@ export * from './BulkSelection';
|
|
|
13
13
|
export * from './Button';
|
|
14
14
|
export * from './ButtonWithLoader';
|
|
15
15
|
export * from './ButtonWithSelector';
|
|
16
|
-
export * from './Card';
|
|
17
|
-
export * from './Charts';
|
|
18
16
|
export * from './Chip';
|
|
19
17
|
export * from './CICDHistory';
|
|
20
|
-
export * from './ClusterStatusIcon';
|
|
21
18
|
export * from './CMCS';
|
|
22
19
|
export * from './CodeEditor';
|
|
23
20
|
export * from './Collapse';
|
|
@@ -39,7 +36,6 @@ export * from './EditImageFormField';
|
|
|
39
36
|
export * from './EnvironmentSelector';
|
|
40
37
|
export * from './Error';
|
|
41
38
|
export * from './ExcludedImageNode';
|
|
42
|
-
export * from './ExportToCsv';
|
|
43
39
|
export * from './FeatureDescription';
|
|
44
40
|
export * from './FileUpload';
|
|
45
41
|
export * from './FilterChips';
|
|
@@ -63,7 +59,6 @@ export * from './ImageWithFallback';
|
|
|
63
59
|
export * from './InfoBlock';
|
|
64
60
|
export * from './InfoIconTippy';
|
|
65
61
|
export * from './InvalidYAMLTippy';
|
|
66
|
-
export * from './KeyboardShortcut';
|
|
67
62
|
export * from './KeyValueTable';
|
|
68
63
|
export * from './License';
|
|
69
64
|
export { default as LoadingCard } from './LoadingCard';
|
|
@@ -76,7 +71,6 @@ export * from './Plugin';
|
|
|
76
71
|
export * from './Popover';
|
|
77
72
|
export * from './PortalContainer';
|
|
78
73
|
export * from './ProgressBar';
|
|
79
|
-
export * from './PrometheusConfigurations';
|
|
80
74
|
export { default as QRCode } from './QRCode';
|
|
81
75
|
export * from './ReactSelect';
|
|
82
76
|
export * from './RegistryIcon';
|
|
@@ -84,7 +78,6 @@ export * from './ScannedByToolModal';
|
|
|
84
78
|
export * from './Security';
|
|
85
79
|
export * from './SelectPicker';
|
|
86
80
|
export * from './ShowMoreText';
|
|
87
|
-
export * from './SideNavigation';
|
|
88
81
|
export * from './SSOProviderIcon';
|
|
89
82
|
export * from './StatusComponent';
|
|
90
83
|
export * from './Switch';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -103,15 +103,4 @@ export declare const clearCookieOnLogout: () => void;
|
|
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
|
105
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
|
106
|
-
export declare const YAMLtoJSON: (yamlString: string) => string;
|
|
107
|
-
export declare const formatNumberToCurrency: (value: number, currency: string, minimumFractionDigits?: number) => string;
|
|
108
|
-
/**
|
|
109
|
-
* Returns the human readable explanation of the expression
|
|
110
|
-
* NOTE: expectation is that the expression is valid
|
|
111
|
-
*
|
|
112
|
-
* @throws Error - if given expression is incorrect
|
|
113
|
-
* @param expression
|
|
114
|
-
* @returns string - helper text explaining the expression in a human readable format
|
|
115
|
-
*/
|
|
116
|
-
export declare const explainCronExpression: (expression: string) => string;
|
|
117
106
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { Teams } from '../../../Common/Types';
|
|
2
|
+
import { ClusterType } from '../../Services';
|
|
3
|
+
import { AppsGroupedByProjectsType, EnvironmentsGroupedByClustersType } from './types';
|
|
4
|
+
export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
|
|
2
5
|
export declare const getProjectOptions: () => Promise<Pick<Teams, "id" | "name">[]>;
|
|
6
|
+
export declare const getClusterOptions: () => Promise<ClusterType[]>;
|
|
7
|
+
export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import { getAppOptionsGroupedByProjects } from '../../../Common/Common.service';
|
|
2
1
|
import { ServerErrors } from '../../../Common/ServerError';
|
|
3
|
-
import {
|
|
4
|
-
import { getClusterOptions } from '
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { EnvironmentType, ResourceKindType } from '../../types';
|
|
3
|
+
import { getAppOptionsGroupedByProjects, getClusterOptions, getProjectOptions } from './service';
|
|
4
|
+
export interface AppType {
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export type AppsGroupedByProjectsType = {
|
|
8
|
+
projectId: number;
|
|
9
|
+
projectName: string;
|
|
10
|
+
appList: AppType[];
|
|
11
|
+
}[];
|
|
12
|
+
export type EnvironmentsGroupedByClustersType = {
|
|
13
|
+
clusterName: EnvironmentType['cluster'];
|
|
14
|
+
envList: EnvironmentType[];
|
|
15
|
+
}[];
|
|
16
|
+
export interface ClusterDTO {
|
|
17
|
+
id: number;
|
|
18
|
+
cluster_name: string;
|
|
19
|
+
isVirtualCluster: boolean;
|
|
20
|
+
isProd: boolean;
|
|
21
|
+
}
|
|
7
22
|
export interface UseGetResourceKindsOptionsProps {
|
|
8
23
|
resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
|
|
9
24
|
}
|
|
@@ -4,7 +4,7 @@ import { PreferredResourceKindType, UserPreferenceFilteredListTypes, UserPrefere
|
|
|
4
4
|
* @description This function fetches the user preferences from the server. It uses the `get` method to make a request to the server and retrieves the user preferences based on the `USER_PREFERENCES_ATTRIBUTE_KEY`. The result is parsed and returned as a `UserPreferencesType` object.
|
|
5
5
|
* @throws Will throw an error if the request fails or if the result is not in the expected format.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getUserPreferences: (
|
|
7
|
+
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
|
8
8
|
export declare const updateUserPreferences: ({ path, value, resourceKind, shouldThrowError, userPreferencesResponse, }: UserPreferenceResourceProps) => Promise<boolean>;
|
|
9
9
|
/**
|
|
10
10
|
* Optimized function to get updated user preferences with resource filtering
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
|
2
2
|
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
|
|
3
3
|
import { ResourceKindType } from '../../types';
|
|
4
|
-
import { NavigationItemID, NavigationSubMenuItemID } from '../../../Pages-Devtron-2.0/Navigation';
|
|
5
4
|
export interface GetUserPreferencesQueryParamsType {
|
|
6
5
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|
|
7
6
|
}
|
|
@@ -24,7 +23,6 @@ export interface UserResourceKindActionType {
|
|
|
24
23
|
[UserPreferenceResourceActions.RECENTLY_VISITED]: BaseRecentlyVisitedEntitiesTypes[];
|
|
25
24
|
}
|
|
26
25
|
export type UserPreferenceResourceType = Partial<Record<PreferredResourceKindType, UserResourceKindActionType>>;
|
|
27
|
-
export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}` | 'search-app-list-view' | `chart-list-${number}` | 'search-chart-list-view' | `helm-app-list-${number}` | 'search-helm-app-list-view' | `cluster-list-${number}` | 'search-cluster-list-view';
|
|
28
26
|
export interface GetUserPreferencesParsedDTO {
|
|
29
27
|
viewPermittedEnvOnly?: boolean;
|
|
30
28
|
/**
|
|
@@ -38,18 +36,13 @@ export interface GetUserPreferencesParsedDTO {
|
|
|
38
36
|
*
|
|
39
37
|
*/
|
|
40
38
|
resources?: UserPreferenceResourceType;
|
|
41
|
-
commandBar: {
|
|
42
|
-
recentNavigationActions: {
|
|
43
|
-
id: NavigationItemID | NavigationSubMenuItemID | CommandBarAdditionalItemsId;
|
|
44
|
-
}[];
|
|
45
|
-
};
|
|
46
39
|
}
|
|
47
40
|
export interface UserPreferencesPayloadValueType extends GetUserPreferencesParsedDTO {
|
|
48
41
|
}
|
|
49
42
|
export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
|
|
50
43
|
value: string;
|
|
51
44
|
}
|
|
52
|
-
export interface UserPreferencesType
|
|
45
|
+
export interface UserPreferencesType {
|
|
53
46
|
/**
|
|
54
47
|
* Preferred theme for the user
|
|
55
48
|
* If null, would forcibly show user theme switcher dialog for user to select
|
|
@@ -76,7 +69,7 @@ export interface UseUserPreferencesProps {
|
|
|
76
69
|
migrateUserPreferences?: (userPreferencesResponse: UserPreferencesType) => Promise<UserPreferencesType>;
|
|
77
70
|
recentlyVisitedFetchConfig?: RecentlyVisitedFetchConfigType;
|
|
78
71
|
}
|
|
79
|
-
type UserPathValueMapType = {
|
|
72
|
+
export type UserPathValueMapType = {
|
|
80
73
|
path: 'themePreference';
|
|
81
74
|
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
|
82
75
|
resourceKind?: never;
|
|
@@ -91,28 +84,7 @@ type UserPathValueMapType = {
|
|
|
91
84
|
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
|
92
85
|
resourceKind: PreferredResourceKindType;
|
|
93
86
|
userPreferencesResponse?: UserPreferencesType;
|
|
94
|
-
} | {
|
|
95
|
-
path: 'commandBar.recentNavigationActions';
|
|
96
|
-
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
|
97
|
-
resourceKind?: never;
|
|
98
|
-
userPreferencesResponse?: never;
|
|
99
87
|
};
|
|
100
|
-
export type GetUserPreferencePayloadParams = {
|
|
101
|
-
userPreferencesResponse: UserPreferencesType;
|
|
102
|
-
resourceKind?: PreferredResourceKindType;
|
|
103
|
-
} & ({
|
|
104
|
-
path: 'themePreference';
|
|
105
|
-
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
|
106
|
-
} | {
|
|
107
|
-
path: 'pipelineRBACViewSelectedTab';
|
|
108
|
-
value: Required<Pick<UserPreferencesType, 'pipelineRBACViewSelectedTab'>>;
|
|
109
|
-
} | {
|
|
110
|
-
path: 'resources';
|
|
111
|
-
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
|
112
|
-
} | {
|
|
113
|
-
path: 'commandBar.recentNavigationActions';
|
|
114
|
-
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
|
115
|
-
});
|
|
116
88
|
export type UserPreferenceResourceProps = UserPathValueMapType & {
|
|
117
89
|
shouldThrowError?: boolean;
|
|
118
90
|
userPreferencesResponse?: UserPreferencesType;
|
|
@@ -120,4 +92,3 @@ export type UserPreferenceResourceProps = UserPathValueMapType & {
|
|
|
120
92
|
export interface UserPreferenceFilteredListTypes extends UserPreferenceRecentlyVisitedAppsTypes {
|
|
121
93
|
userPreferencesResponse?: UserPreferencesType;
|
|
122
94
|
}
|
|
123
|
-
export {};
|
|
@@ -21,7 +21,6 @@ export interface SidePanelConfig {
|
|
|
21
21
|
reinitialize?: boolean;
|
|
22
22
|
/** URL to documentation that should be displayed in the panel */
|
|
23
23
|
docLink: string | null;
|
|
24
|
-
aiSessionId?: string;
|
|
25
24
|
}
|
|
26
25
|
type AIAgentContextType = {
|
|
27
26
|
path: string;
|
|
@@ -40,14 +39,6 @@ export interface TempAppWindowConfig {
|
|
|
40
39
|
showOpenInNewTab?: boolean;
|
|
41
40
|
/** React component to render in the window */
|
|
42
41
|
component?: JSX.Element;
|
|
43
|
-
customCloseConfig?: {
|
|
44
|
-
/**
|
|
45
|
-
* Provide this method if you want to do something before temp window closes
|
|
46
|
-
* Provide noop if not relevant
|
|
47
|
-
* */
|
|
48
|
-
beforeClose: () => void;
|
|
49
|
-
icon: JSX.Element;
|
|
50
|
-
};
|
|
51
42
|
}
|
|
52
43
|
type CommonMainContextProps = {
|
|
53
44
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AppConfigProps } from '../../Pages/index';
|
|
2
|
-
import { AllClusterListMinItemDTO, ClusterType } from '..';
|
|
3
2
|
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
|
|
4
3
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
|
5
4
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
|
6
5
|
export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
|
|
7
6
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
|
8
|
-
export declare const getClusterOptions: (signal?: AbortSignal) => Promise<ClusterType[]>;
|
|
9
|
-
export declare const getAllClusterListMin: (signal: AbortSignal) => Promise<import('../../Common').ResponseType<AllClusterListMinItemDTO[]>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MainContext } from '../Providers';
|
|
2
|
-
import {
|
|
2
|
+
import { getUrlWithSearchParams } from '../../Common';
|
|
3
3
|
import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
|
|
4
4
|
export interface BaseAppMetaData {
|
|
5
5
|
appId: number;
|
|
@@ -40,13 +40,4 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
|
|
|
40
40
|
devtronManagedLicensingEnabled: boolean;
|
|
41
41
|
isResourceRecommendationEnabled?: boolean;
|
|
42
42
|
}
|
|
43
|
-
export interface ClusterMinDTO {
|
|
44
|
-
id: number;
|
|
45
|
-
cluster_name: string;
|
|
46
|
-
isVirtualCluster: boolean;
|
|
47
|
-
isProd: boolean;
|
|
48
|
-
}
|
|
49
|
-
export type AllClusterListMinItemDTO = Pick<ClusterDetailDTO, 'id' | 'cluster_name' | 'isVirtualCluster' | 'isProd'> & {
|
|
50
|
-
costModuleConfig: Pick<ClusterDetailDTO['costModuleConfig'], 'enabled' | 'installationStatus'>;
|
|
51
|
-
};
|
|
52
43
|
export {};
|