@devtron-labs/devtron-fe-common-lib 0.2.30-beta-1 → 0.2.30-beta-3

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 (65) hide show
  1. package/dist/Common/Constants.d.ts +0 -2
  2. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +2 -0
  3. package/dist/Common/Security/types.d.ts +4 -0
  4. package/dist/Common/index.d.ts +1 -0
  5. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +2 -2
  6. package/dist/Shared/Components/DeploymentConfigDiff/{types.d.ts → DeploymentConfigDiff.types.d.ts} +25 -3
  7. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +9 -8
  8. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
  9. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +2 -2
  10. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +2 -2
  11. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
  12. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
  13. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -1
  14. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/Vulnerabilities.d.ts +1 -1
  15. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
  16. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/index.d.ts +0 -1
  17. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/service.d.ts +1 -1
  18. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/types.d.ts +1 -2
  19. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/utils.d.ts +1 -1
  20. package/dist/Shared/Components/index.d.ts +1 -1
  21. package/dist/Shared/Services/app.types.d.ts +7 -1
  22. package/dist/Shared/types.d.ts +0 -1
  23. package/dist/assets/index.css +1 -1
  24. package/dist/{cssMode-_u5ZYB-Q.js → cssMode-CXFTwsNM.js} +1 -1
  25. package/dist/{freemarker2-T5s8hfjd.js → freemarker2-DmYtjdHt.js} +1 -1
  26. package/dist/{handlebars-BOI14TfF.js → handlebars-eAvul9Gb.js} +1 -1
  27. package/dist/{html-D5rCJkFR.js → html-CZ0SvRv1.js} +1 -1
  28. package/dist/{htmlMode-ZkXKsi9b.js → htmlMode-pSoTbnc_.js} +1 -1
  29. package/dist/{index-D4U7W4vE.js → index-8KYAE4dc.js} +32272 -33832
  30. package/dist/index.js +312 -316
  31. package/dist/{javascript-CaNiuZ_w.js → javascript-D2QAbupk.js} +1 -1
  32. package/dist/{jsonMode-B797VxQm.js → jsonMode-CLdpt-Pr.js} +1 -1
  33. package/dist/{liquid-2ipK-yL8.js → liquid-KD66kcRt.js} +1 -1
  34. package/dist/{mdx-BEwXkZN_.js → mdx-B11nWVy7.js} +1 -1
  35. package/dist/{python-CuOXljCz.js → python-CNhAJZEL.js} +1 -1
  36. package/dist/{razor-DqxSvhvb.js → razor-BkvJGu01.js} +1 -1
  37. package/dist/{tsMode-CFXBU715.js → tsMode-8yuvsPTz.js} +1 -1
  38. package/dist/{typescript-DRyxJPcX.js → typescript-Cfl8lnfY.js} +1 -1
  39. package/dist/{xml-C97eZhmk.js → xml-B30K5eAQ.js} +1 -1
  40. package/dist/{yaml-fRy8fRMO.js → yaml-CH6tzVSB.js} +1 -1
  41. package/package.json +3 -4
  42. package/dist/Shared/Components/Security/SecurityModal/SecurityModal.d.ts +0 -14
  43. package/dist/Shared/Components/Security/SecurityModal/components/IndexedTextDisplay.d.ts +0 -4
  44. package/dist/Shared/Components/Security/SecurityModal/components/InfoCard.d.ts +0 -4
  45. package/dist/Shared/Components/Security/SecurityModal/components/OpenDetailViewButton.d.ts +0 -4
  46. package/dist/Shared/Components/Security/SecurityModal/components/Sidebar.d.ts +0 -4
  47. package/dist/Shared/Components/Security/SecurityModal/components/Table.d.ts +0 -4
  48. package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +0 -4
  49. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +0 -100
  50. package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +0 -2
  51. package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +0 -4
  52. package/dist/Shared/Components/Security/SecurityModal/config/InfoCard.d.ts +0 -2
  53. package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +0 -4
  54. package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +0 -2
  55. package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +0 -2
  56. package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +0 -3
  57. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +0 -56
  58. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +0 -4
  59. package/dist/Shared/Components/Security/SecurityModal/service.d.ts +0 -5
  60. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +0 -269
  61. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +0 -34
  62. package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +0 -3
  63. package/dist/Shared/Components/Security/SecuritySummaryCard/index.d.ts +0 -1
  64. package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +0 -16
  65. package/dist/Shared/Components/Security/index.d.ts +0 -3
@@ -85,8 +85,6 @@ export declare const ROUTES: {
85
85
  PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
86
86
  PLUGIN_GLOBAL_LIST_V2: string;
87
87
  PLUGIN_GLOBAL_LIST_TAGS: string;
88
- K8S_RESOURCE_SECURITY: string;
89
- SCAN_RESULT: string;
90
88
  PLUGIN_LIST_MIN: string;
91
89
  DEPLOYMENT_CHARTS_LIST: string;
92
90
  USER_LIST_MIN: string;
@@ -0,0 +1,2 @@
1
+ import { ScanVulnerabilitiesTableProps } from '../Types';
2
+ export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick, }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare enum VulnerabilitiesTableSortKeys {
2
+ SEVERITY = "severity",
3
+ PACKAGE = "package"
4
+ }
@@ -29,6 +29,7 @@ export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEm
29
29
  export * from './SearchBar';
30
30
  export * from './SortableTableHeaderCell';
31
31
  export { default as Toggle } from './Toggle/Toggle';
32
+ export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
32
33
  export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
33
34
  export * from './CIPipeline.Types';
34
35
  export * from './Policy.Types';
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffProps } from './types';
2
- export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
1
+ import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
2
+ export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { SortingOrder } from '../../../Common/Constants';
2
- import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO } from '../../Services';
2
+ import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, ManifestTemplateDTO } from '../../Services';
3
3
  import { DeploymentHistoryDetail } from '../CICDHistory';
4
4
  import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
5
5
  import { SelectPickerProps } from '../SelectPicker';
@@ -35,6 +35,11 @@ export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<Coll
35
35
  }
36
36
  export interface DeploymentConfigDiffProps {
37
37
  isLoading?: boolean;
38
+ errorConfig?: {
39
+ error: boolean;
40
+ code: number;
41
+ reload: () => void;
42
+ };
38
43
  configList: DeploymentConfigListItem[];
39
44
  headerText?: string;
40
45
  scrollIntoViewId?: string;
@@ -52,10 +57,15 @@ export interface DeploymentConfigDiffProps {
52
57
  goBackURL?: string;
53
58
  navHeading: string;
54
59
  navHelpText?: string;
60
+ tabConfig?: {
61
+ tabs: string[];
62
+ activeTab: string;
63
+ onClick: (tab: string) => void;
64
+ };
55
65
  }
56
- export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'> {
66
+ export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
57
67
  }
58
- export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
68
+ export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
59
69
  }
60
70
  export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
61
71
  id: string;
@@ -66,3 +76,15 @@ export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps,
66
76
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
67
77
  }
68
78
  export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
79
+ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
80
+ currentList: ManifestTemplateDTO;
81
+ compareList: ManifestTemplateDTO;
82
+ sortOrder?: never;
83
+ } : {
84
+ currentList: AppEnvDeploymentConfigDTO;
85
+ compareList: AppEnvDeploymentConfigDTO;
86
+ sortOrder?: SortingOrder;
87
+ }) & {
88
+ getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
89
+ isManifestView?: IsManifestView;
90
+ };
@@ -1,6 +1,5 @@
1
- import { SortingOrder } from '../../../Common/Constants';
2
- import { DeploymentConfigDiffProps } from '..';
3
- import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, EnvResourceType, TemplateListDTO } from '../../Services/app.types';
1
+ import { AppEnvDeploymentConfigListParams, DeploymentConfigDiffProps } from '..';
2
+ import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
4
3
  /**
5
4
  * Retrieves the draft data from the given configuration data object.
6
5
  *
@@ -19,14 +18,16 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
19
18
  /**
20
19
  * Generates a list of deployment configurations for application environments and identifies changes between the current and compare lists.
21
20
  *
22
- * @param currentList - The current deployment configuration list.
23
- * @param compareList - The deployment configuration list to compare against.
24
- * @param getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
25
- * @param sortOrder - (Optional) The order in which to sort the deployment templates.
21
+ * @param params - An object containing the following properties:
22
+ * @param params.currentList - The current deployment configuration list.
23
+ * @param params.compareList - The deployment configuration list to compare against.
24
+ * @param params.getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
25
+ * @param params.isManifestView - A boolean that, when true, modifies the output for a manifest view.
26
+ * @param params.sortOrder - (Optional) The order in which to sort the deployment templates.
26
27
  *
27
28
  * @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
28
29
  */
29
- export declare const getAppEnvDeploymentConfigList: (currentList: AppEnvDeploymentConfigDTO, compareList: AppEnvDeploymentConfigDTO, getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string, sortOrder?: SortingOrder) => {
30
+ export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
30
31
  configList: DeploymentConfigDiffProps["configList"];
31
32
  navList: DeploymentConfigDiffProps["navList"];
32
33
  collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffAccordionProps } from './types';
1
+ import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
2
2
  export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffMainProps } from './types';
2
- export declare const DeploymentConfigDiffMain: ({ isLoading, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
1
+ import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
2
+ export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffNavigationProps } from './types';
2
- export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
1
+ import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
2
+ export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export * from './DeploymentConfigDiff.component';
2
- export * from './types';
2
+ export * from './DeploymentConfigDiff.types';
3
3
  export * from './DeploymentConfigDiff.utils';
@@ -1,3 +1,3 @@
1
1
  import { ImageCardAccordionProps } from './types';
2
- declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, isScanV2Enabled, }: ImageCardAccordionProps) => JSX.Element;
2
+ declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
3
3
  export default ImageCardAccordion;
@@ -9,7 +9,6 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
9
9
  changesCard: ReactNode;
10
10
  isScanned: boolean;
11
11
  isScanEnabled: boolean;
12
- isScanV2Enabled: boolean;
13
12
  }
14
13
  export interface SecurityDetailsType {
15
14
  vulnerabilities: VulnerabilityType[];
@@ -1,3 +1,3 @@
1
1
  import { VulnerabilitiesProps } from './types';
2
- declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, isScanV2Enabled, }: VulnerabilitiesProps) => JSX.Element;
2
+ declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, }: VulnerabilitiesProps) => JSX.Element;
3
3
  export default Vulnerabilities;
@@ -0,0 +1,4 @@
1
+ export declare const NO_VULNERABILITY_TEXT: {
2
+ SECURED: string;
3
+ NO_VULNERABILITY_FOUND: string;
4
+ };
@@ -1,3 +1,2 @@
1
1
  export { default as Vulnerabilities } from './Vulnerabilities';
2
2
  export * from './utils';
3
- export * from './service';
@@ -1,2 +1,2 @@
1
- import { LastExecutionResponseType } from '../../../types';
1
+ import { LastExecutionResponseType } from '../../types';
2
2
  export declare function getLastExecutionByArtifactAppEnv(artifactId: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
@@ -1,8 +1,7 @@
1
- import { MaterialSecurityInfoType } from '../../../types';
1
+ import { MaterialSecurityInfoType } from '../../types';
2
2
  export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
3
3
  artifactId: number;
4
4
  applicationId: number;
5
5
  environmentId: number;
6
6
  setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
7
- isScanV2Enabled: boolean;
8
7
  }
@@ -1,4 +1,4 @@
1
- import { LastExecutionResponseType, LastExecutionResultType } from '../../../types';
1
+ import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
2
2
  export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
3
3
  export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
4
4
  export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
@@ -5,6 +5,7 @@ export * from './ImageCard';
5
5
  export * from './ImageCardAccordion';
6
6
  export * from './ExcludedImageNode';
7
7
  export * from './ScannedByToolModal';
8
+ export * from './Vulnerabilities';
8
9
  export * from './FilterChips';
9
10
  export * from './ActivityIndicator';
10
11
  export * from './GenericSectionErrorState';
@@ -39,5 +40,4 @@ export * from './TabGroup';
39
40
  export * from './EditImageFormField';
40
41
  export * from './Collapse';
41
42
  export * from './FilterButton';
42
- export * from './Security';
43
43
  export * from './Button';
@@ -197,6 +197,11 @@ export interface TemplateListDTO {
197
197
  status?: string;
198
198
  pipelineId?: number;
199
199
  }
200
+ export interface ManifestTemplateDTO {
201
+ data: string;
202
+ resolvedData: string;
203
+ variableSnapshot: null;
204
+ }
200
205
  export declare enum DraftState {
201
206
  Init = 1,
202
207
  Discarded = 2,
@@ -206,6 +211,7 @@ export declare enum DraftState {
206
211
  export declare enum EnvResourceType {
207
212
  ConfigMap = "configmap",
208
213
  Secret = "secrets",
209
- DeploymentTemplate = "deployment-template"
214
+ DeploymentTemplate = "deployment-template",
215
+ Manifest = "manifest"
210
216
  }
211
217
  export {};
@@ -413,7 +413,6 @@ export interface LastExecutionResultType {
413
413
  scanned?: boolean;
414
414
  scanEnabled?: boolean;
415
415
  scanToolId?: number;
416
- imageScanDeployInfoId?: number;
417
416
  }
418
417
  export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
419
418
  }