@devtron-labs/devtron-fe-common-lib 0.3.9-beta-1 → 0.3.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 (73) hide show
  1. package/dist/Common/Drawer/Drawer.d.ts +1 -1
  2. package/dist/Common/RJSF/types.d.ts +8 -5
  3. package/dist/Common/RJSF/utils.d.ts +2 -0
  4. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +2 -0
  5. package/dist/Common/Security/types.d.ts +4 -0
  6. package/dist/Common/Tooltip/constants.d.ts +3 -0
  7. package/dist/Common/Tooltip/index.d.ts +1 -0
  8. package/dist/Common/index.d.ts +1 -0
  9. package/dist/Pages/App/AppConfigurations/utils.d.ts +1 -1
  10. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
  11. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +1 -4
  12. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +7 -0
  13. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +24 -9
  14. package/dist/Shared/Components/TabGroup/TabGroup.utils.d.ts +2 -2
  15. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/Vulnerabilities.d.ts +1 -1
  16. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
  17. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/index.d.ts +0 -1
  18. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/service.d.ts +1 -1
  19. package/dist/Shared/Components/Vulnerabilities/types.d.ts +7 -0
  20. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
  21. package/dist/Shared/Components/index.d.ts +1 -2
  22. package/dist/Shared/Helpers.d.ts +2 -1
  23. package/dist/Shared/constants.d.ts +0 -4
  24. package/dist/Shared/types.d.ts +0 -1
  25. package/dist/assets/index.css +1 -1
  26. package/dist/{cssMode-BQyEMz-L.js → cssMode-Ci2SYp_2.js} +1 -1
  27. package/dist/{freemarker2-Bj0DygAe.js → freemarker2-DuzaBrLs.js} +1 -1
  28. package/dist/{handlebars-CHNNn0wb.js → handlebars-CetBX0xA.js} +1 -1
  29. package/dist/{html-ryEQ_Yz_.js → html-D5MQofMO.js} +1 -1
  30. package/dist/{htmlMode-vvcEHwY9.js → htmlMode-ODxwicMz.js} +1 -1
  31. package/dist/{index-CpSdT1pU.js → index-BL0bY-zv.js} +30875 -32492
  32. package/dist/index.js +496 -508
  33. package/dist/{javascript-BgyyM4XW.js → javascript-B9n3MeA7.js} +1 -1
  34. package/dist/{jsonMode-P-vuI-Fp.js → jsonMode-Bzo4h1Bf.js} +1 -1
  35. package/dist/{liquid-C2fqEGvd.js → liquid-bNDMiWzD.js} +1 -1
  36. package/dist/{mdx-2aw84pOi.js → mdx-DGQBelbh.js} +1 -1
  37. package/dist/{python-BuTQ7kSf.js → python-BP8l6k6r.js} +1 -1
  38. package/dist/{razor-DGlu_XPP.js → razor-CP819BQo.js} +1 -1
  39. package/dist/{tsMode-BqungwBn.js → tsMode-QWFAam_c.js} +1 -1
  40. package/dist/{typescript-BI6arj9L.js → typescript-CekVoJfn.js} +1 -1
  41. package/dist/{xml-CiL6lgOI.js → xml-D49rK_7Z.js} +1 -1
  42. package/dist/{yaml-BDBCgdGm.js → yaml-D8i4om3q.js} +1 -1
  43. package/package.json +5 -6
  44. package/dist/Shared/Components/FilterButton/FilterButton.d.ts +0 -4
  45. package/dist/Shared/Components/FilterButton/index.d.ts +0 -1
  46. package/dist/Shared/Components/FilterButton/types.d.ts +0 -11
  47. package/dist/Shared/Components/FilterButton/utils.d.ts +0 -15
  48. package/dist/Shared/Components/Security/SecurityModal/SecurityModal.d.ts +0 -14
  49. package/dist/Shared/Components/Security/SecurityModal/components/IndexedTextDisplay.d.ts +0 -4
  50. package/dist/Shared/Components/Security/SecurityModal/components/InfoCard.d.ts +0 -4
  51. package/dist/Shared/Components/Security/SecurityModal/components/OpenDetailViewButton.d.ts +0 -4
  52. package/dist/Shared/Components/Security/SecurityModal/components/Table.d.ts +0 -4
  53. package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +0 -3
  54. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +0 -100
  55. package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +0 -2
  56. package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +0 -4
  57. package/dist/Shared/Components/Security/SecurityModal/config/InfoCard.d.ts +0 -2
  58. package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +0 -4
  59. package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +0 -2
  60. package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +0 -2
  61. package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +0 -3
  62. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +0 -56
  63. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +0 -6
  64. package/dist/Shared/Components/Security/SecurityModal/service.d.ts +0 -3
  65. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +0 -262
  66. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +0 -34
  67. package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +0 -3
  68. package/dist/Shared/Components/Security/SecuritySummaryCard/index.d.ts +0 -1
  69. package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +0 -11
  70. package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +0 -26
  71. package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +0 -6
  72. package/dist/Shared/Components/Security/index.d.ts +0 -4
  73. package/dist/Shared/Components/Security/utils.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { conf as t, language as e } from "./typescript-BI6arj9L.js";
1
+ import { conf as t, language as e } from "./typescript-CekVoJfn.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
2
  var Ge = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var C = (e, n, i) => Ge(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as Qe } from "./index-CpSdT1pU.js";
4
+ import { m as Qe } from "./index-BL0bY-zv.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-CpSdT1pU.js";
1
+ import { m as l } from "./index-BL0bY-zv.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-CpSdT1pU.js";
1
+ import { m as s } from "./index-BL0bY-zv.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-CpSdT1pU.js";
1
+ import { m as i } from "./index-BL0bY-zv.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m } from "./index-CpSdT1pU.js";
1
+ import { m } from "./index-BL0bY-zv.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var N = Object.defineProperty;
2
2
  var M = (e, t, r) => t in e ? N(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var _ = (e, t, r) => M(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { t as R, m as K } from "./index-CpSdT1pU.js";
4
+ import { t as R, m as K } from "./index-BL0bY-zv.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-CpSdT1pU.js";
1
+ import { m as s } from "./index-BL0bY-zv.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as r } from "./index-CpSdT1pU.js";
1
+ import { m as r } from "./index-BL0bY-zv.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-CpSdT1pU.js";
1
+ import { m as l } from "./index-BL0bY-zv.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.3.9-beta-1",
3
+ "version": "0.3.10",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -66,13 +66,14 @@
66
66
  "react-mde": "^11.5.0",
67
67
  "react-toastify": "9.1.3",
68
68
  "typescript": "5.5.4",
69
- "vite": "5.4.2",
69
+ "vite": "5.4.6",
70
70
  "vite-plugin-dts": "4.0.3",
71
71
  "vite-plugin-lib-inject-css": "2.1.1",
72
72
  "vite-plugin-svgr": "^2.4.0",
73
73
  "vite-tsconfig-paths": "5.0.1"
74
74
  },
75
75
  "peerDependencies": {
76
+ "react-select": "5.8.0",
76
77
  "@rjsf/core": "^5.13.3",
77
78
  "@rjsf/utils": "^5.13.3",
78
79
  "@rjsf/validator-ajv8": "^5.13.3",
@@ -86,17 +87,15 @@
86
87
  "react-mde": "^11.5.0",
87
88
  "react-router": "^5.3.0",
88
89
  "react-router-dom": "^5.3.0",
89
- "react-select": "5.8.0",
90
90
  "rxjs": "^7.8.1",
91
91
  "yaml": "^2.4.1"
92
92
  },
93
93
  "dependencies": {
94
94
  "@types/react-dates": "^21.8.6",
95
95
  "ansi_up": "^5.2.1",
96
- "dayjs": "^1.11.12",
97
96
  "fast-json-patch": "^3.1.1",
98
- "jsonpath-plus": "^9.0.0",
99
97
  "react-dates": "^21.8.0",
98
+ "jsonpath-plus": "^9.0.0",
100
99
  "react-monaco-editor": "^0.54.0",
101
100
  "sass": "^1.69.7",
102
101
  "tslib": "2.7.0"
@@ -110,7 +109,7 @@
110
109
  "monaco-editor": "0.44.0"
111
110
  },
112
111
  "vite-plugin-svgr": {
113
- "vite": "5.4.2"
112
+ "vite": "5.4.6"
114
113
  }
115
114
  }
116
115
  }
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { FilterButtonPropsType } from './types';
3
- declare const FilterButton: React.FC<FilterButtonPropsType>;
4
- export default FilterButton;
@@ -1 +0,0 @@
1
- export { default as FilterButton } from './FilterButton';
@@ -1,11 +0,0 @@
1
- import { OptionType } from '../../../Common/Types';
2
- export interface FilterButtonPropsType {
3
- placeholder: string;
4
- appliedFilters: string[];
5
- options: OptionType[];
6
- handleApplyChange: (selectedOptions: string[]) => void;
7
- disabled?: boolean;
8
- getFormattedFilterLabelValue?: (identifier: string) => string;
9
- menuAlignFromRight?: boolean;
10
- controlWidth?: string;
11
- }
@@ -1,15 +0,0 @@
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
- option: (base: any, state: any) => any;
6
- singleValue: (base: 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,14 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SecurityModalPropsType } from './types';
3
- /**
4
- * NOTE: the security modal is split into 3 sections - ImageScan, CodeScan & Kubernetes Manifest;
5
- * Each category has 1 or more subCategories from the set (Vulnerability, License, MisConfigurations & ExposedSecrets)
6
- * Since each combination of category & subCategory results in the data being visualized through InfoCard & Table
7
- * the components are declared & called only once and only the data (props) passed to these components differ
8
- * between the different configurations of category & subCategory. Some row elements from some combinations
9
- * of Category & SubCategory can allow users to view that particular data in detail (taking user to detailView)
10
- * So to showcase the detail data, the data is set into detailViewData property of ModalState.
11
- * For further detail please refer the types to understand the Api Response and workflow of the modal component.
12
- * */
13
- declare const SecurityModal: React.FC<SecurityModalPropsType>;
14
- export default SecurityModal;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IndexedTextDisplayPropsType } from '../types';
3
- declare const IndexedTextDisplay: React.FC<IndexedTextDisplayPropsType>;
4
- export default IndexedTextDisplay;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { InfoCardPropsType } from '../types';
3
- declare const InfoCard: React.FC<InfoCardPropsType>;
4
- export default InfoCard;
@@ -1,4 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { OpenDetailViewButtonProps } from '../types';
3
- declare const OpenDetailViewButton: ({ children, detailViewData, setDetailViewData, }: PropsWithChildren<OpenDetailViewButtonProps>) => JSX.Element;
4
- export default OpenDetailViewButton;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TablePropsType } from '../types';
3
- declare const Table: React.FC<TablePropsType>;
4
- export default Table;
@@ -1,3 +0,0 @@
1
- export { default as Table } from './Table';
2
- export { default as InfoCard } from './InfoCard';
3
- export { default as OpenDetailViewButton } from './OpenDetailViewButton';
@@ -1,100 +0,0 @@
1
- import { ApiResponseResultType, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
2
- export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"]) => {
3
- headers: ({
4
- headerText: string;
5
- isSortable: boolean;
6
- width: number;
7
- compareFunc?: undefined;
8
- defaultSortOrder?: undefined;
9
- } | {
10
- headerText: string;
11
- isSortable: boolean;
12
- width: number;
13
- compareFunc: (a: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
14
- defaultSortOrder: import('../types').SortOrderEnum;
15
- })[];
16
- rows: {
17
- id: number;
18
- expandableComponent: any;
19
- cells: {
20
- component: JSX.Element;
21
- cellContent: string;
22
- }[];
23
- }[];
24
- defaultSortIndex: number;
25
- };
26
- export declare const getCodeScanLicense: (data: CodeScan["license"]) => {
27
- headers: ({
28
- headerText: string;
29
- isSortable: boolean;
30
- width: number;
31
- compareFunc?: undefined;
32
- defaultSortOrder?: undefined;
33
- } | {
34
- headerText: string;
35
- isSortable: boolean;
36
- width: number;
37
- compareFunc: (a: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
38
- defaultSortOrder: import('../types').SortOrderEnum;
39
- })[];
40
- rows: {
41
- id: number;
42
- expandableComponent: any;
43
- cells: {
44
- component: JSX.Element;
45
- cellContent: string;
46
- }[];
47
- }[];
48
- defaultSortIndex: number;
49
- };
50
- export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigurations"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"]) => {
51
- headers: ({
52
- headerText: string;
53
- isSortable: boolean;
54
- width: number;
55
- compareFunc?: undefined;
56
- } | {
57
- headerText: string;
58
- isSortable: boolean;
59
- width: number;
60
- compareFunc: (a: Record<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
61
- })[];
62
- rows: {
63
- id: number;
64
- expandableComponent: any;
65
- cells: ({
66
- component: JSX.Element;
67
- cellContent: string;
68
- } | {
69
- component: JSX.Element;
70
- cellContent: Partial<Record<import('../types').SeveritiesDTO, number>>;
71
- })[];
72
- }[];
73
- };
74
- export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"]) => {
75
- headers: ({
76
- headerText: string;
77
- isSortable: boolean;
78
- width: number;
79
- compareFunc?: undefined;
80
- } | {
81
- headerText: string;
82
- isSortable: boolean;
83
- width: number;
84
- compareFunc: (a: Record<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
85
- })[];
86
- rows: {
87
- id: number;
88
- expandableComponent: any;
89
- cells: ({
90
- component: JSX.Element;
91
- cellContent: string;
92
- } | {
93
- component: JSX.Element;
94
- cellContent: Partial<Record<import('../types').SeveritiesDTO, number>>;
95
- })[];
96
- }[];
97
- };
98
- export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
99
- export declare const getCodeScanInfoCardData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
100
- export declare const getCodeScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
@@ -1,2 +0,0 @@
1
- import { ApiResponseResultType, DetailViewDataType, SecurityModalStateType } from '../types';
2
- export declare const getEmptyStateValues: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => import('../types').EmptyStateType;
@@ -1,4 +0,0 @@
1
- import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
2
- export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
3
- export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
4
- export declare const getImageScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
@@ -1,2 +0,0 @@
1
- import { InfoCardPropsType, ApiResponseResultType, SecurityModalStateType } from '../types';
2
- export declare const getInfoCardData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
@@ -1,4 +0,0 @@
1
- import { ApiResponseResultType, DetailViewDataType, EmptyStateType, InfoCardPropsType, KubernetesManifest, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
2
- export declare const getKubernetesManifestTableData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
3
- export declare const getKubernetesManifestInfoCardData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
4
- export declare const getKubernetesManifestEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
@@ -1,2 +0,0 @@
1
- import { SidebarDataType } from '../types';
2
- export declare const SIDEBAR_DATA: SidebarDataType[];
@@ -1,2 +0,0 @@
1
- import { ApiResponseResultType, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
2
- export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
@@ -1,3 +0,0 @@
1
- export { getTableData } from './Table';
2
- export { getInfoCardData } from './InfoCard';
3
- export { SIDEBAR_DATA } from './Sidebar';
@@ -1,56 +0,0 @@
1
- import { SeveritiesDTO, SortOrderEnum, EmptyStateType, StatusType } from './types';
2
- export declare const DEFAULT_SECURITY_MODAL_STATE: {
3
- category: "imageScan";
4
- subCategory: "vulnerability";
5
- detailViewData: any;
6
- };
7
- export declare const CATEGORY_LABELS: {
8
- readonly IMAGE_SCAN: "Image Scan";
9
- readonly CODE_SCAN: "Code Scan";
10
- readonly KUBERNETES_MANIFEST: "Kubernetes Manifest";
11
- };
12
- export declare const SUB_CATEGORY_LABELS: {
13
- readonly VULNERABILITIES: "Vulnerability";
14
- readonly LICENSE: "License Risks";
15
- readonly MISCONFIGURATIONS: "Misconfigurations";
16
- readonly EXPOSED_SECRETS: "Exposed Secrets";
17
- };
18
- export declare const SEVERITIES: {
19
- readonly CRITICAL: {
20
- readonly label: "Critical";
21
- readonly color: "#B21212";
22
- };
23
- readonly HIGH: {
24
- readonly label: "High";
25
- readonly color: "#F33E3E";
26
- };
27
- readonly MEDIUM: {
28
- readonly label: "Medium";
29
- readonly color: "#FF7E5B";
30
- };
31
- readonly LOW: {
32
- readonly label: "Low";
33
- readonly color: "#FFB549";
34
- };
35
- readonly UNKNOWN: {
36
- readonly label: "Unknown";
37
- readonly color: "#B1B7BC";
38
- };
39
- readonly fail: {
40
- readonly label: "Failures";
41
- readonly color: "#F33E3E";
42
- };
43
- readonly success: {
44
- readonly label: "Successes";
45
- readonly color: "#1DAD70";
46
- };
47
- readonly exceptions: {
48
- readonly label: "Exceptions";
49
- readonly color: "#B1B7BC";
50
- };
51
- };
52
- export declare const ORDERED_SEVERITY_KEYS: readonly [SeveritiesDTO.CRITICAL, SeveritiesDTO.HIGH, SeveritiesDTO.MEDIUM, SeveritiesDTO.LOW, SeveritiesDTO.UNKNOWN, SeveritiesDTO.FAILURES, SeveritiesDTO.EXCEPTIONS, SeveritiesDTO.SUCCESSES];
53
- export declare const SEVERITY_DEFAULT_SORT_ORDER = SortOrderEnum['DESC'];
54
- export declare const SCAN_FAILED_EMPTY_STATE: EmptyStateType;
55
- export declare const SCAN_IN_PROGRESS_EMPTY_STATE: EmptyStateType;
56
- export declare const MAP_SCAN_TOOL_NAME_TO_SCAN_TOOL_ID: Record<StatusType['scanToolName'], number>;
@@ -1,6 +0,0 @@
1
- export { default as SecurityModal } from './SecurityModal';
2
- export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, parseExecutionDetailResponse, } from './utils';
3
- export type { AppDetailsPayload, ExecutionDetailsPayload, ApiResponseResultType, SidebarPropsType, SidebarDataChildType, SidebarDataType, GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, } from './types';
4
- export { SIDEBAR_DATA } from './config';
5
- export { CATEGORY_LABELS } from './constants';
6
- export { getExecutionDetails } from './service';
@@ -1,3 +0,0 @@
1
- import { ResponseType } from '../../../../Common/Types';
2
- import { ApiResponseResultType, ExecutionDetailsPayload } from './types';
3
- export declare const getExecutionDetails: (executionDetailPayload: ExecutionDetailsPayload) => Promise<ResponseType<ApiResponseResultType>>;