@devtron-labs/devtron-fe-common-lib 1.20.6-pre-50 → 1.20.6-pre-52
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-AAPaS3Ag.js → @code-editor-BXZDhTrP.js} +2134 -2123
- package/dist/{@common-rjsf-BGcRJ3Lu.js → @common-rjsf-BEOjsJmz.js} +1 -1
- package/dist/Common/Constants.d.ts +4 -1
- package/dist/Common/SegmentedBarChart/types.d.ts +8 -2
- package/dist/Common/SegmentedControl/index.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +1 -1
- package/dist/Common/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/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -0
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +1 -1
- package/dist/index.js +535 -532
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n, aK as v, aM as J, aL as K } from "./@vendor-DEAetXNs.js";
|
|
2
2
|
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
|
3
3
|
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
|
4
|
-
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-
|
|
4
|
+
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-BXZDhTrP.js";
|
|
5
5
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
|
6
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
|
7
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
|
@@ -86,7 +86,10 @@ export declare const URLS: {
|
|
|
86
86
|
readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
|
|
87
87
|
readonly SECURITY_CENTER: "/security-center";
|
|
88
88
|
readonly SECURITY_CENTER_OVERVIEW: "/security-center/overview";
|
|
89
|
-
readonly
|
|
89
|
+
readonly SECURITY_CENTER_VULNERABILITIES: "/security-center/vulnerabilities";
|
|
90
|
+
readonly SECURITY_CENTER_VULNERABILITY_DEPLOYMENTS: "/security-center/vulnerabilities/deployments";
|
|
91
|
+
readonly SECURITY_CENTER_VULNERABILITY_CVES: "/security-center/vulnerabilities/cves";
|
|
92
|
+
readonly SECURITY_CENTER_SECURITY_ENABLEMENT: "/security-center/security-enablement";
|
|
90
93
|
readonly SECURITY_CENTER_POLICIES: "/security-center/policies";
|
|
91
94
|
readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
|
|
92
95
|
readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
|
|
@@ -13,14 +13,20 @@ type EntityPropType = {
|
|
|
13
13
|
label?: never;
|
|
14
14
|
}>[];
|
|
15
15
|
};
|
|
16
|
+
type ProportionalType = {
|
|
17
|
+
isProportional?: true;
|
|
18
|
+
hideTotal?: boolean;
|
|
19
|
+
} | {
|
|
20
|
+
isProportional?: false | never;
|
|
21
|
+
hideTotal?: never;
|
|
22
|
+
};
|
|
16
23
|
export type SegmentedBarChartProps = {
|
|
17
24
|
rootClassName?: string;
|
|
18
25
|
countClassName?: string;
|
|
19
26
|
labelClassName?: string;
|
|
20
|
-
isProportional?: boolean;
|
|
21
27
|
swapLegendAndBar?: boolean;
|
|
22
28
|
showAnimationOnBar?: boolean;
|
|
23
29
|
isLoading?: boolean;
|
|
24
30
|
size?: ComponentSizeType;
|
|
25
|
-
} & EntityPropType;
|
|
31
|
+
} & EntityPropType & ProportionalType;
|
|
26
32
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as SegmentedControl } from './SegmentedControl.component';
|
|
2
|
-
export { type SegmentedControlProps } from './types';
|
|
2
|
+
export { type SegmentedControlProps, type SegmentType } from './types';
|
|
@@ -53,7 +53,7 @@ export type SegmentedControlProps<T = string | number> = {
|
|
|
53
53
|
* Please make sure this is unique
|
|
54
54
|
*/
|
|
55
55
|
name: string;
|
|
56
|
-
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.small | ComponentSizeType.medium>;
|
|
56
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.small | ComponentSizeType.medium | ComponentSizeType.large>;
|
|
57
57
|
fullWidth?: boolean;
|
|
58
58
|
disabled?: boolean;
|
|
59
59
|
} & ({
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -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_LABEL_COLOR_MAP: {
|
|
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 } from './constants';
|
|
2
|
+
export { CATEGORY_LABELS, SEVERITIES_LABEL_COLOR_MAP } 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_LABEL_COLOR_MAP } 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_LABEL_COLOR_MAP, 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_LABEL_COLOR_MAP, 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) => {
|
|
@@ -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 } from './utils';
|
|
7
|
+
export { getSelectPickerOptionByValue, getSelectPickerOptionsByValue } from './utils';
|
|
@@ -13,3 +13,4 @@ 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: SelectPickerOptionType<OptionValue>[], values: OptionValue[]) => SelectPickerOptionType<OptionValue>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-
|
|
4
|
+
export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-vulnerabilities' | 'security-center-security-enablement' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs' | 'ai-recommendations-overview';
|
|
5
5
|
export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
|
|
6
6
|
export interface GetUserPreferencesQueryParamsType {
|
|
7
7
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|