@devtron-labs/devtron-fe-common-lib 0.1.15-beta-7 → 0.1.15-beta-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +5 -1
- package/dist/Common/Types.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -3
- package/dist/Shared/Components/FilterButton/FilterButton.d.ts +5 -0
- package/dist/Shared/Components/FilterButton/index.d.ts +1 -0
- package/dist/Shared/Components/FilterButton/types.d.ts +11 -0
- package/dist/Shared/Components/FilterButton/utils.d.ts +15 -0
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -23
- 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/type.d.ts +0 -16
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -4
- package/dist/Shared/Helpers.d.ts +0 -2
- package/dist/Shared/types.d.ts +12 -7
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-6ac58878.js → cssMode-0427118b.js} +1 -1
- package/dist/{freemarker2-54dda21c.js → freemarker2-c4865b88.js} +1 -1
- package/dist/{handlebars-4ad18101.js → handlebars-58e42395.js} +1 -1
- package/dist/{html-90c2d427.js → html-d2b737a2.js} +1 -1
- package/dist/{htmlMode-0a22bb49.js → htmlMode-d8f2054d.js} +1 -1
- package/dist/{index-abd1c136.js → index-aacc3c2b.js} +26217 -26618
- package/dist/index.js +420 -425
- package/dist/{javascript-d01c5309.js → javascript-0738e781.js} +1 -1
- package/dist/{jsonMode-976a74c4.js → jsonMode-d0d7fa44.js} +1 -1
- package/dist/{liquid-d3993aa9.js → liquid-95d095c0.js} +1 -1
- package/dist/{mdx-6d892f4a.js → mdx-5ac02f1f.js} +1 -1
- package/dist/{python-ee674106.js → python-f8d0c7d0.js} +1 -1
- package/dist/{razor-35fa07b5.js → razor-3603793d.js} +1 -1
- package/dist/{tsMode-14f3680e.js → tsMode-8d6a81c6.js} +1 -1
- package/dist/{typescript-66137eae.js → typescript-da26d4a8.js} +1 -1
- package/dist/{xml-c97ffa9c.js → xml-0bfce6bc.js} +1 -1
- package/dist/{yaml-e9c87bdb.js → yaml-703b1d5d.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/Collapse/Collapse.d.ts +0 -3
- package/dist/Shared/Components/Collapse/index.d.ts +0 -1
- package/dist/Shared/Components/Collapse/types.d.ts +0 -6
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +0 -3
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -96
- package/dist/Shared/Components/CollapsibleList/index.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +0 -66
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -4
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { ScanVulnerabilitiesTableProps } from '../Types';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export declare enum SortBy {
|
|
4
|
+
SEVERITY = "severity",
|
|
5
|
+
PACKAGE = "package"
|
|
6
|
+
}
|
|
7
|
+
export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick, }: ScanVulnerabilitiesTableProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -492,7 +492,7 @@ export declare enum DeploymentAppTypes {
|
|
|
492
492
|
}
|
|
493
493
|
export interface VulnerabilityType {
|
|
494
494
|
name: string;
|
|
495
|
-
severity: '
|
|
495
|
+
severity: 'critical' | 'high' | 'medium' | 'low' | 'unknown';
|
|
496
496
|
package: string;
|
|
497
497
|
version: string;
|
|
498
498
|
fixedVersion: string;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
2
|
|
|
3
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName,
|
|
3
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
4
4
|
export default DeploymentHistoryDiffView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
|
|
@@ -368,8 +368,6 @@ export interface DeploymentTemplateHistoryType {
|
|
|
368
368
|
isUnpublished?: boolean;
|
|
369
369
|
isDeleteDraft?: boolean;
|
|
370
370
|
rootClassName?: string;
|
|
371
|
-
comparisonBodyClassName?: string;
|
|
372
|
-
sortOrder?: SortingOrder;
|
|
373
371
|
}
|
|
374
372
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
375
373
|
result?: DeploymentHistoryDetail;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FilterButton } from './FilterButton';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OptionType } from '../../../Common/Types';
|
|
2
|
+
|
|
3
|
+
export interface FilterButtonPropsType {
|
|
4
|
+
placeholder: string;
|
|
5
|
+
appliedFilters: string[];
|
|
6
|
+
options: OptionType[];
|
|
7
|
+
handleApplyChange: (selectedOptions: string[]) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
getFormattedFilterLabelValue?: (identifier: string) => string;
|
|
10
|
+
menuAlignFromRight?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const getFilterStyle: (menuAlignFromRight: boolean) => {
|
|
2
|
+
menu: (base: any) => any;
|
|
3
|
+
control: (base: any, state: any) => any;
|
|
4
|
+
container: (base: any, state: any) => any;
|
|
5
|
+
singleValue: (base: any) => any;
|
|
6
|
+
option: (base: any, state: any) => any;
|
|
7
|
+
valueContainer: (base: any) => any;
|
|
8
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
9
|
+
group: (base: any) => any;
|
|
10
|
+
groupHeading: (base: any) => any;
|
|
11
|
+
menuList: (base: any) => any;
|
|
12
|
+
multiValue: (base: any) => any;
|
|
13
|
+
multiValueLabel: (base: any) => any;
|
|
14
|
+
placeholder: (base: any) => any;
|
|
15
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { KeyValueTableProps } from './KeyValueTable.types';
|
|
2
2
|
|
|
3
|
-
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed,
|
|
3
|
+
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, }: KeyValueTableProps<K>) => JSX.Element;
|
|
@@ -60,10 +60,8 @@ export interface KeyValueTableProps<K extends string> {
|
|
|
60
60
|
isSortable?: boolean;
|
|
61
61
|
/** An optional React node for a custom header component. */
|
|
62
62
|
headerComponent?: ReactNode;
|
|
63
|
-
/** When true, data addition field will not be shown
|
|
63
|
+
/** When true, data addition field will not be shown */
|
|
64
64
|
isAdditionNotAllowed?: boolean;
|
|
65
|
-
/** When true, data add or update is disabled. */
|
|
66
|
-
readOnly?: boolean;
|
|
67
65
|
/**
|
|
68
66
|
* An optional function to handle changes in the table rows.
|
|
69
67
|
* @param rowId - The id of the row that changed.
|
|
@@ -76,24 +74,4 @@ export interface KeyValueTableProps<K extends string> {
|
|
|
76
74
|
* @param deletedRowIndex - The index of the row that was deleted.
|
|
77
75
|
*/
|
|
78
76
|
onDelete?: (deletedRowId: string | number) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Indicates whether to show errors.
|
|
81
|
-
*/
|
|
82
|
-
showError?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* The function to use to validate the value of the cell.
|
|
85
|
-
* @param value - The value to validate.
|
|
86
|
-
* @returns Return true if the value is valid, otherwise false
|
|
87
|
-
* and set `showError` to `true` and provide errorMessages array to show error message.
|
|
88
|
-
*/
|
|
89
|
-
validationSchema?: (value: string) => boolean;
|
|
90
|
-
/**
|
|
91
|
-
* An array of error messages to be displayed in the cell error tooltip.
|
|
92
|
-
*/
|
|
93
|
-
errorMessages?: string[];
|
|
94
|
-
/**
|
|
95
|
-
* A callback function called when an error occurs.
|
|
96
|
-
* @param errorState - The error state, true when any cell has error, otherwise false.
|
|
97
|
-
*/
|
|
98
|
-
onError?: (errorState: boolean) => void;
|
|
99
77
|
}
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize,
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -6,5 +6,5 @@ export declare const SelectPickerClearIndicator: (props: ClearIndicatorProps<Sel
|
|
|
6
6
|
export declare const SelectPickerControl: ({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'icon' | 'showSelectedOptionIcon'>) => JSX.Element;
|
|
7
7
|
export declare const SelectPickerValueContainer: ({ showSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'showSelectedOptionsCount'>) => JSX.Element;
|
|
8
8
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
9
|
-
export declare const SelectPickerOption: (
|
|
9
|
+
export declare const SelectPickerOption: (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
|
|
10
10
|
export declare const SelectPickerMenuList: ({ renderMenuListFooter, ...props }: MenuListProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'renderMenuListFooter'>) => JSX.Element;
|
|
@@ -17,10 +17,6 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
17
17
|
*/
|
|
18
18
|
endIcon?: ReactElement;
|
|
19
19
|
}
|
|
20
|
-
export declare enum SelectPickerVariantType {
|
|
21
|
-
DEFAULT = "default",
|
|
22
|
-
BORDERLESS = "borderless"
|
|
23
|
-
}
|
|
24
20
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
25
21
|
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
26
22
|
/**
|
|
@@ -74,17 +70,5 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
74
70
|
* @default 'ComponentSizeType.small'
|
|
75
71
|
*/
|
|
76
72
|
menuSize?: ComponentSizeType;
|
|
77
|
-
/**
|
|
78
|
-
* Variant of the select.
|
|
79
|
-
*
|
|
80
|
-
* @default SelectPickerVariantType.DEFAULT
|
|
81
|
-
*/
|
|
82
|
-
variant?: SelectPickerVariantType;
|
|
83
|
-
/**
|
|
84
|
-
* Disables the ellipsis on description, it will be shown in full width, wrapped if required.
|
|
85
|
-
*
|
|
86
|
-
* @default false
|
|
87
|
-
*/
|
|
88
|
-
disableDescriptionEllipsis?: boolean;
|
|
89
73
|
}
|
|
90
74
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { StylesConfig } from 'react-select';
|
|
2
2
|
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
|
|
4
|
-
export declare const getCommonSelectStyle: ({ error, size, menuSize,
|
|
4
|
+
export declare const getCommonSelectStyle: ({ error, size, menuSize, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize'>) => StylesConfig<SelectPickerOptionType>;
|
|
@@ -10,7 +10,6 @@ export * from './FilterChips';
|
|
|
10
10
|
export * from './ActivityIndicator';
|
|
11
11
|
export * from './GenericSectionErrorState';
|
|
12
12
|
export * from './KeyValueList';
|
|
13
|
-
export * from './ScannedObjectBar';
|
|
14
13
|
export * from './InfoIconTippy';
|
|
15
14
|
export * from './EditableTextArea';
|
|
16
15
|
export * from './Header';
|
|
@@ -33,7 +32,5 @@ export * from './IframeContainer';
|
|
|
33
32
|
export * from './Plugin';
|
|
34
33
|
export * from './KeyValueTable';
|
|
35
34
|
export * from './SelectPicker';
|
|
36
|
-
export * from './CollapsibleList';
|
|
37
|
-
export * from './DeploymentConfigDiff';
|
|
38
35
|
export * from './DetectBottom';
|
|
39
|
-
export * from './
|
|
36
|
+
export * from './FilterButton';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Pair } from 'yaml';
|
|
3
2
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
3
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
5
4
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -25,7 +24,6 @@ export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTrigge
|
|
|
25
24
|
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
|
26
25
|
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
27
26
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
28
|
-
export declare const yamlComparatorBySortOrder: (a: Pair, b: Pair, sortOrder?: SortingOrder) => number;
|
|
29
27
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
30
28
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
31
29
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -202,8 +202,10 @@ export declare enum DefaultUserKey {
|
|
|
202
202
|
}
|
|
203
203
|
export declare enum Severity {
|
|
204
204
|
CRITICAL = "critical",
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
HIGH = "high",
|
|
206
|
+
MEDIUM = "medium",
|
|
207
|
+
LOW = "low",
|
|
208
|
+
UNKNOWN = "unknown"
|
|
207
209
|
}
|
|
208
210
|
export declare enum ImagePromotionTabs {
|
|
209
211
|
REQUEST = "request",
|
|
@@ -369,13 +371,16 @@ export declare enum ResourceVersionType {
|
|
|
369
371
|
v1 = "v1",
|
|
370
372
|
alpha1 = "alpha1"
|
|
371
373
|
}
|
|
374
|
+
export interface SeverityCount {
|
|
375
|
+
critical: number;
|
|
376
|
+
high: number;
|
|
377
|
+
medium: number;
|
|
378
|
+
low: number;
|
|
379
|
+
unknown: number;
|
|
380
|
+
}
|
|
372
381
|
export interface LastExecutionResultType {
|
|
373
382
|
lastExecution: string;
|
|
374
|
-
severityCount:
|
|
375
|
-
critical: number;
|
|
376
|
-
moderate: number;
|
|
377
|
-
low: number;
|
|
378
|
-
};
|
|
383
|
+
severityCount: SeverityCount;
|
|
379
384
|
vulnerabilities: VulnerabilityType[];
|
|
380
385
|
scanExecutionId?: number;
|
|
381
386
|
appId?: number;
|