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

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 (39) hide show
  1. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  2. package/dist/Common/SearchBar/types.d.ts +0 -4
  3. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  4. package/dist/Common/Types.d.ts +1 -1
  5. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +1 -0
  6. package/dist/Shared/Components/GitCommitInfoGeneric/constants.d.ts +4 -0
  7. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
  8. package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -0
  9. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
  10. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
  11. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
  12. package/dist/Shared/Components/index.d.ts +1 -1
  13. package/dist/Shared/types.d.ts +7 -12
  14. package/dist/assets/index.css +1 -1
  15. package/dist/{cssMode-b035bc93.js → cssMode-d2c005a3.js} +1 -1
  16. package/dist/{freemarker2-f29d223b.js → freemarker2-baf01dce.js} +1 -1
  17. package/dist/{handlebars-0e493111.js → handlebars-244472df.js} +1 -1
  18. package/dist/{html-d4126536.js → html-dbe85e28.js} +1 -1
  19. package/dist/{htmlMode-0c96f8a3.js → htmlMode-322d33fc.js} +1 -1
  20. package/dist/{index-dc43cd0b.js → index-ffb8e3f2.js} +15894 -15963
  21. package/dist/index.d.ts +0 -1
  22. package/dist/index.js +124 -124
  23. package/dist/{javascript-181af9a8.js → javascript-08f36b2f.js} +1 -1
  24. package/dist/{jsonMode-6c68ac71.js → jsonMode-1581651d.js} +1 -1
  25. package/dist/{liquid-26b266fe.js → liquid-8186f4dd.js} +1 -1
  26. package/dist/{mdx-bb935de3.js → mdx-e44e6791.js} +1 -1
  27. package/dist/{python-d761627b.js → python-6d38169d.js} +1 -1
  28. package/dist/{razor-42da5fc9.js → razor-db112cf2.js} +1 -1
  29. package/dist/{tsMode-fe63660a.js → tsMode-e7293cd7.js} +1 -1
  30. package/dist/{typescript-96934f05.js → typescript-92fd8874.js} +1 -1
  31. package/dist/{xml-4f4241e8.js → xml-69f459f4.js} +1 -1
  32. package/dist/{yaml-1e4f8aca.js → yaml-0cd8e170.js} +1 -1
  33. package/package.json +1 -1
  34. package/dist/Common/Security/constants.d.ts +0 -7
  35. package/dist/Common/Security/types.d.ts +0 -10
  36. package/dist/Shared/Components/FilterButton/FilterButton.d.ts +0 -5
  37. package/dist/Shared/Components/FilterButton/index.d.ts +0 -1
  38. package/dist/Shared/Components/FilterButton/types.d.ts +0 -12
  39. package/dist/Shared/Components/FilterButton/utils.d.ts +0 -15
@@ -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, height, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -40,8 +40,4 @@ 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';
47
43
  }
@@ -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;
@@ -492,7 +492,7 @@ export declare enum DeploymentAppTypes {
492
492
  }
493
493
  export interface VulnerabilityType {
494
494
  name: string;
495
- severity: 'critical' | 'high' | 'medium' | 'low' | 'unknown';
495
+ severity: 'CRITICAL' | 'MODERATE' | 'LOW';
496
496
  package: string;
497
497
  version: string;
498
498
  fixedVersion: string;
@@ -1,3 +1,4 @@
1
+
1
2
  declare const GitMaterialInfoHeader: ({ index, repoUrl, materialType, materialValue, style, ...props }: {
2
3
  [x: string]: any;
3
4
  index: any;
@@ -0,0 +1,4 @@
1
+ export declare const WEBHOOK_EVENT_ACTION_TYPE: {
2
+ MERGED: string;
3
+ NON_MERGED: string;
4
+ };
@@ -1,4 +1,4 @@
1
1
  import { MaterialHistoryProps } from './types';
2
2
 
3
- declare const MaterialHistory: ({ material, pipelineName, ciPipelineId, selectCommit }: MaterialHistoryProps) => JSX.Element;
3
+ declare const MaterialHistory: ({ material, pipelineName, ciPipelineId, selectCommit, isCommitInfoModal, }: MaterialHistoryProps) => JSX.Element;
4
4
  export default MaterialHistory;
@@ -5,4 +5,5 @@ export interface MaterialHistoryProps {
5
5
  pipelineName: string;
6
6
  ciPipelineId?: string;
7
7
  selectCommit?: (materialId: string, commit: string, ciPipelineId?: string) => void;
8
+ isCommitInfoModal?: boolean;
8
9
  }
@@ -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
+ }
@@ -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';
@@ -202,10 +202,8 @@ export declare enum DefaultUserKey {
202
202
  }
203
203
  export declare enum Severity {
204
204
  CRITICAL = "critical",
205
- HIGH = "high",
206
- MEDIUM = "medium",
207
- LOW = "low",
208
- UNKNOWN = "unknown"
205
+ MODERATE = "moderate",
206
+ LOW = "low"
209
207
  }
210
208
  export declare enum ImagePromotionTabs {
211
209
  REQUEST = "request",
@@ -371,16 +369,13 @@ export declare enum ResourceVersionType {
371
369
  v1 = "v1",
372
370
  alpha1 = "alpha1"
373
371
  }
374
- export interface SeverityCount {
375
- critical: number;
376
- high: number;
377
- medium: number;
378
- low: number;
379
- unknown: number;
380
- }
381
372
  export interface LastExecutionResultType {
382
373
  lastExecution: string;
383
- severityCount: SeverityCount;
374
+ severityCount: {
375
+ critical: number;
376
+ moderate: number;
377
+ low: number;
378
+ };
384
379
  vulnerabilities: VulnerabilityType[];
385
380
  scanExecutionId?: number;
386
381
  appId?: number;