@devtron-labs/devtron-fe-common-lib 0.2.2-beta-1 → 0.2.2

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 (33) hide show
  1. package/dist/Common/Constants.d.ts +0 -7
  2. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  3. package/dist/Common/Types.d.ts +2 -2
  4. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
  5. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
  6. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
  7. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -1
  8. package/dist/Shared/Components/index.d.ts +1 -1
  9. package/dist/Shared/types.d.ts +7 -12
  10. package/dist/assets/index.css +1 -1
  11. package/dist/{cssMode-8bbe7b26.js → cssMode-3cc0626f.js} +1 -1
  12. package/dist/{freemarker2-4e38f3fa.js → freemarker2-ac689f40.js} +1 -1
  13. package/dist/{handlebars-6a218f19.js → handlebars-df220e58.js} +1 -1
  14. package/dist/{html-1e977516.js → html-24c32420.js} +1 -1
  15. package/dist/{htmlMode-1f60bcaa.js → htmlMode-c1e9aa66.js} +1 -1
  16. package/dist/{index-1677d859.js → index-798391c7.js} +16745 -16909
  17. package/dist/index.js +306 -308
  18. package/dist/{javascript-8e82bcb7.js → javascript-781200e8.js} +1 -1
  19. package/dist/{jsonMode-1a629e71.js → jsonMode-5ad5d8e6.js} +1 -1
  20. package/dist/{liquid-e957c145.js → liquid-0d98acc3.js} +1 -1
  21. package/dist/{mdx-5fda765d.js → mdx-c91c7145.js} +1 -1
  22. package/dist/{python-ba467742.js → python-73bd14bc.js} +1 -1
  23. package/dist/{razor-ddd16486.js → razor-50abfb41.js} +1 -1
  24. package/dist/{tsMode-b43d8821.js → tsMode-4dde1bb3.js} +1 -1
  25. package/dist/{typescript-7315f3a1.js → typescript-d699e8b8.js} +1 -1
  26. package/dist/{xml-19a6afe6.js → xml-a49f5f8a.js} +1 -1
  27. package/dist/{yaml-605c2eab.js → yaml-8c7292a9.js} +1 -1
  28. package/package.json +1 -1
  29. package/dist/Common/Security/types.d.ts +0 -4
  30. package/dist/Shared/Components/FilterButton/FilterButton.d.ts +0 -5
  31. package/dist/Shared/Components/FilterButton/index.d.ts +0 -1
  32. package/dist/Shared/Components/FilterButton/types.d.ts +0 -12
  33. package/dist/Shared/Components/FilterButton/utils.d.ts +0 -15
@@ -270,10 +270,3 @@ export declare const DATE_TIME_FORMATS: {
270
270
  DD_MMM_YYYY_HH_MM: string;
271
271
  DD_MMM_YYYY: string;
272
272
  };
273
- export declare const VULNERABILITIES_SORT_PRIORITY: {
274
- critical: number;
275
- high: number;
276
- medium: number;
277
- low: number;
278
- unknown: number;
279
- };
@@ -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;
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties } from 'react';
2
2
  import { Placement } from 'tippy.js';
3
3
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
4
4
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
5
- import { RegistryType, Severity } from '../Shared';
5
+ import { RegistryType } from '../Shared';
6
6
 
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
@@ -493,7 +493,7 @@ export declare enum DeploymentAppTypes {
493
493
  }
494
494
  export interface VulnerabilityType {
495
495
  name: string;
496
- severity: Severity;
496
+ severity: 'CRITICAL' | 'MODERATE' | 'LOW';
497
497
  package: string;
498
498
  version: string;
499
499
  fixedVersion: string;
@@ -0,0 +1,4 @@
1
+ import { ScannedObjectBarProps } from './types';
2
+
3
+ declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
4
+ export default ScannedObjectBar;
@@ -0,0 +1 @@
1
+ export { default as ScannedObjectBar } from './ScannedObjectBar';
@@ -0,0 +1,7 @@
1
+ export interface ScannedObjectBarProps {
2
+ criticalVulnerabilitiesCount: number;
3
+ moderateVulnerabilitiesCount: number;
4
+ lowVulnerabilitiesCount: number;
5
+ objectBarClassName?: string;
6
+ removeObjectCountMargin?: boolean;
7
+ }
@@ -1,5 +1,4 @@
1
1
  import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
2
2
 
3
- export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
4
3
  export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
5
4
  export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
@@ -10,6 +10,7 @@ export * from './FilterChips';
10
10
  export * from './ActivityIndicator';
11
11
  export * from './GenericSectionErrorState';
12
12
  export * from './KeyValueList';
13
+ export * from './ScannedObjectBar';
13
14
  export * from './InfoIconTippy';
14
15
  export * from './EditableTextArea';
15
16
  export * from './Header';
@@ -33,4 +34,3 @@ export * from './Plugin';
33
34
  export * from './KeyValueTable';
34
35
  export * from './SelectPicker';
35
36
  export * from './DetectBottom';
36
- export * from './FilterButton';
@@ -210,10 +210,8 @@ export declare enum DefaultUserKey {
210
210
  }
211
211
  export declare enum Severity {
212
212
  CRITICAL = "critical",
213
- HIGH = "high",
214
- MEDIUM = "medium",
215
- LOW = "low",
216
- UNKNOWN = "unknown"
213
+ MODERATE = "moderate",
214
+ LOW = "low"
217
215
  }
218
216
  export declare enum ImagePromotionTabs {
219
217
  REQUEST = "request",
@@ -382,19 +380,16 @@ export declare enum ResourceVersionType {
382
380
  v1 = "v1",
383
381
  alpha1 = "alpha1"
384
382
  }
385
- export interface SeverityCount {
386
- critical: number;
387
- high: number;
388
- medium: number;
389
- low: number;
390
- unknown: number;
391
- }
392
383
  export declare enum PolicyKindType {
393
384
  lockConfiguration = "lock-configuration"
394
385
  }
395
386
  export interface LastExecutionResultType {
396
387
  lastExecution: string;
397
- severityCount: SeverityCount;
388
+ severityCount: {
389
+ critical: number;
390
+ moderate: number;
391
+ low: number;
392
+ };
398
393
  vulnerabilities: VulnerabilityType[];
399
394
  scanExecutionId?: number;
400
395
  appId?: number;