@devtron-labs/devtron-fe-common-lib 0.1.15-beta-17 → 0.1.15-beta-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  2. package/dist/Common/SearchBar/types.d.ts +4 -0
  3. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  4. package/dist/Common/Security/constants.d.ts +7 -0
  5. package/dist/Common/Security/types.d.ts +10 -0
  6. package/dist/Common/Types.d.ts +1 -1
  7. package/dist/Shared/Components/FilterButton/FilterButton.d.ts +5 -0
  8. package/dist/Shared/Components/FilterButton/index.d.ts +1 -0
  9. package/dist/Shared/Components/FilterButton/types.d.ts +12 -0
  10. package/dist/Shared/Components/FilterButton/utils.d.ts +15 -0
  11. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +0 -1
  12. package/dist/Shared/Components/index.d.ts +1 -1
  13. package/dist/Shared/types.d.ts +12 -7
  14. package/dist/assets/index.css +1 -1
  15. package/dist/{cssMode-46b0b2e1.js → cssMode-b035bc93.js} +1 -1
  16. package/dist/{freemarker2-2e2887b7.js → freemarker2-f29d223b.js} +1 -1
  17. package/dist/{handlebars-6786369e.js → handlebars-0e493111.js} +1 -1
  18. package/dist/{html-580c3766.js → html-d4126536.js} +1 -1
  19. package/dist/{htmlMode-e0755c9b.js → htmlMode-0c96f8a3.js} +1 -1
  20. package/dist/{index-66f98f4a.js → index-dc43cd0b.js} +19528 -19435
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +124 -124
  23. package/dist/{javascript-3187eb19.js → javascript-181af9a8.js} +1 -1
  24. package/dist/{jsonMode-754cf73a.js → jsonMode-6c68ac71.js} +1 -1
  25. package/dist/{liquid-5cd39bc7.js → liquid-26b266fe.js} +1 -1
  26. package/dist/{mdx-806f59e4.js → mdx-bb935de3.js} +1 -1
  27. package/dist/{python-36d79b53.js → python-d761627b.js} +1 -1
  28. package/dist/{razor-8eaa0e2e.js → razor-42da5fc9.js} +1 -1
  29. package/dist/{tsMode-6daca90f.js → tsMode-fe63660a.js} +1 -1
  30. package/dist/{typescript-a512d9e3.js → typescript-96934f05.js} +1 -1
  31. package/dist/{xml-fff5de24.js → xml-4f4241e8.js} +1 -1
  32. package/dist/{yaml-c6854a07.js → yaml-1e4f8aca.js} +1 -1
  33. package/package.json +1 -1
  34. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -4
  35. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
  36. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
34
34
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
35
35
  * ```
36
36
  */
37
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, height, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -40,4 +40,8 @@ export interface SearchBarProps {
40
40
  * Hide the background and border of the search
41
41
  */
42
42
  noBackgroundAndBorder?: boolean;
43
+ /**
44
+ * Height of the Search bar
45
+ */
46
+ height?: '32' | '36';
43
47
  }
@@ -1,3 +1,3 @@
1
1
  import { ScanVulnerabilitiesTableProps } from '../Types';
2
2
 
3
- export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
3
+ export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick, }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare const sortPriority: {
2
+ critical: number;
3
+ high: number;
4
+ medium: number;
5
+ low: number;
6
+ unknown: number;
7
+ };
@@ -0,0 +1,10 @@
1
+ import { SortingOrder } from '../Constants';
2
+
3
+ export declare enum SortBy {
4
+ SEVERITY = "severity",
5
+ PACKAGE = "package"
6
+ }
7
+ export interface SortConfig {
8
+ sortBy: SortBy;
9
+ sortOrder: SortingOrder;
10
+ }
@@ -492,7 +492,7 @@ export declare enum DeploymentAppTypes {
492
492
  }
493
493
  export interface VulnerabilityType {
494
494
  name: string;
495
- severity: 'CRITICAL' | 'MODERATE' | 'LOW';
495
+ severity: 'critical' | 'high' | 'medium' | 'low' | 'unknown';
496
496
  package: string;
497
497
  version: string;
498
498
  fixedVersion: string;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { FilterButtonPropsType } from './types';
3
+
4
+ declare const FilterButton: React.FC<FilterButtonPropsType>;
5
+ export default FilterButton;
@@ -0,0 +1 @@
1
+ export { default as FilterButton } from './FilterButton';
@@ -0,0 +1,12 @@
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
+ controlWidth?: string;
12
+ }
@@ -0,0 +1,15 @@
1
+ export declare const getFilterStyle: (controlWidth?: string, menuAlignFromRight?: boolean) => {
2
+ menu: (base: any) => any;
3
+ control: (base: any, state: any) => any;
4
+ container: (base: 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,4 +1,3 @@
1
-
2
1
  declare const GitMaterialInfoHeader: ({ index, repoUrl, materialType, materialValue, style, ...props }: {
3
2
  [x: string]: any;
4
3
  index: any;
@@ -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';
@@ -34,3 +33,4 @@ export * from './Plugin';
34
33
  export * from './KeyValueTable';
35
34
  export * from './SelectPicker';
36
35
  export * from './DetectBottom';
36
+ export * from './FilterButton';
@@ -202,8 +202,10 @@ export declare enum DefaultUserKey {
202
202
  }
203
203
  export declare enum Severity {
204
204
  CRITICAL = "critical",
205
- MODERATE = "moderate",
206
- LOW = "low"
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;