@devtron-labs/devtron-fe-common-lib 1.11.0-beta-8 → 1.11.0-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 (176) hide show
  1. package/dist/{@code-editor-BpjsMGeV.js → @code-editor-CwOIzAA5.js} +25169 -25174
  2. package/dist/{@common-rjsf-Dsu9Bg36.js → @common-rjsf-DyzjJJpj.js} +29 -29
  3. package/dist/{@framer-motion-fHDEQv6l.js → @framer-motion-BaOj5B1h.js} +3 -3
  4. package/dist/{@react-dates-DcvJfxWS.js → @react-dates-CdRpENvm.js} +853 -852
  5. package/dist/{@react-select-Cn-uZXHc.js → @react-select-BLSAqXV1.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BJLK_tci.js → @react-virtualized-sticky-tree-BLmFnJWD.js} +1 -1
  7. package/dist/{@vendor-DORSSPJC.js → @vendor-SjXFleuT.js} +34001 -33965
  8. package/dist/Common/API/CoreAPI.d.ts +1 -1
  9. package/dist/Common/API/index.d.ts +1 -1
  10. package/dist/Common/CIPipeline.Types.d.ts +20 -19
  11. package/dist/Common/CodeMirror/Extensions/index.d.ts +3 -3
  12. package/dist/Common/CodeMirror/Extensions/yamlParseLinter.d.ts +1 -1
  13. package/dist/Common/CodeMirror/index.d.ts +1 -1
  14. package/dist/Common/CodeMirror/types.d.ts +3 -3
  15. package/dist/Common/CodeMirror/utils.d.ts +1 -1
  16. package/dist/Common/Constants.d.ts +1 -1
  17. package/dist/Common/CustomTagSelector/index.d.ts +2 -2
  18. package/dist/Common/DeleteCINodeButton/index.d.ts +1 -1
  19. package/dist/Common/DraggableWrapper/index.d.ts +1 -1
  20. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  21. package/dist/Common/Hooks/index.d.ts +3 -3
  22. package/dist/Common/Hooks/useStateFilters/index.d.ts +1 -1
  23. package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -1
  24. package/dist/Common/RJSF/Form.d.ts +1 -1
  25. package/dist/Common/RJSF/index.d.ts +2 -2
  26. package/dist/Common/RJSF/templates/index.d.ts +1 -1
  27. package/dist/Common/SegmentedControl/types.d.ts +1 -1
  28. package/dist/Common/SortableTableHeaderCell/index.d.ts +1 -1
  29. package/dist/Common/Tooltip/index.d.ts +1 -1
  30. package/dist/Common/Tooltip/types.d.ts +1 -1
  31. package/dist/Common/index.d.ts +41 -41
  32. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +1 -1
  33. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/GUIView/index.d.ts +1 -1
  34. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +3 -3
  35. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +1 -1
  36. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +3 -3
  37. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +1 -1
  38. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/index.d.ts +2 -2
  39. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
  40. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +3 -2
  41. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/index.d.ts +1 -1
  42. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/index.d.ts +2 -2
  43. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/services.d.ts +1 -1
  44. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +3 -3
  45. package/dist/Pages/GlobalConfigurations/Authorization/service.d.ts +1 -1
  46. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
  47. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -2
  48. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +6 -6
  49. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
  50. package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +1 -1
  51. package/dist/Pages/GlobalConfigurations/index.d.ts +2 -2
  52. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +1 -1
  53. package/dist/Pages/ResourceBrowser/index.d.ts +5 -5
  54. package/dist/Pages/ResourceBrowser/types.d.ts +1 -1
  55. package/dist/Pages/index.d.ts +1 -1
  56. package/dist/Shared/Components/AnimatedTimer/AnimatedTimer.component.d.ts +3 -0
  57. package/dist/Shared/Components/AnimatedTimer/constants.d.ts +5 -0
  58. package/dist/Shared/Components/AnimatedTimer/index.d.ts +1 -0
  59. package/dist/Shared/Components/AnimatedTimer/types.d.ts +15 -0
  60. package/dist/Shared/Components/BulkOperations/index.d.ts +1 -1
  61. package/dist/Shared/Components/BulkOperations/types.d.ts +2 -2
  62. package/dist/Shared/Components/BulkSelection/index.d.ts +1 -1
  63. package/dist/Shared/Components/Button/index.d.ts +1 -1
  64. package/dist/Shared/Components/Button/types.d.ts +2 -2
  65. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
  66. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -1
  67. package/dist/Shared/Components/CICDHistory/index.d.ts +11 -11
  68. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
  69. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -1
  70. package/dist/Shared/Components/CMCS/constants.d.ts +2 -2
  71. package/dist/Shared/Components/CMCS/index.d.ts +2 -2
  72. package/dist/Shared/Components/CMCS/types.d.ts +1 -1
  73. package/dist/Shared/Components/CMCS/utils.d.ts +4 -3
  74. package/dist/Shared/Components/CMCS/validations.d.ts +1 -1
  75. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +1 -1
  76. package/dist/Shared/Components/ConfirmationModal/index.d.ts +4 -4
  77. package/dist/Shared/Components/ConfirmationModal/utils.d.ts +1 -1
  78. package/dist/Shared/Components/CountrySelect/types.d.ts +1 -1
  79. package/dist/Shared/Components/CountrySelect/utils.d.ts +1 -1
  80. package/dist/Shared/Components/CustomInput/types.d.ts +1 -1
  81. package/dist/Shared/Components/DatePicker/index.d.ts +4 -4
  82. package/dist/Shared/Components/DatePicker/types.d.ts +2 -2
  83. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +1 -1
  84. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
  85. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
  86. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +1 -1
  87. package/dist/Shared/Components/DynamicDataTable/types.d.ts +6 -2
  88. package/dist/Shared/Components/FlagImage/types.d.ts +1 -1
  89. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -1
  90. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -1
  91. package/dist/Shared/Components/GenericInfoCard/index.d.ts +1 -1
  92. package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +1 -1
  93. package/dist/Shared/Components/GraphVisualizer/index.d.ts +1 -1
  94. package/dist/Shared/Components/Header/index.d.ts +1 -1
  95. package/dist/Shared/Components/Icon/Icon.d.ts +8 -0
  96. package/dist/Shared/Components/Icon/types.d.ts +3 -2
  97. package/dist/Shared/Components/ImageCard/index.d.ts +1 -1
  98. package/dist/Shared/Components/ImageChipCell/types.d.ts +1 -1
  99. package/dist/Shared/Components/InfoBlock/types.d.ts +1 -1
  100. package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +1 -1
  101. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  102. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +75 -78
  103. package/dist/Shared/Components/KeyValueTable/index.d.ts +1 -1
  104. package/dist/Shared/Components/KeyValueTable/utils.d.ts +13 -0
  105. package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
  106. package/dist/Shared/Components/License/index.d.ts +3 -3
  107. package/dist/Shared/Components/License/types.d.ts +2 -1
  108. package/dist/Shared/Components/License/utils.d.ts +2 -1
  109. package/dist/Shared/Components/Plugin/index.d.ts +4 -4
  110. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -1
  111. package/dist/Shared/Components/RegistryIcon/index.d.ts +1 -1
  112. package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +1 -1
  113. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +1 -1
  114. package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +1 -1
  115. package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
  116. package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +1 -1
  117. package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +1 -1
  118. package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +2 -2
  119. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
  120. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +5 -5
  121. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +2 -2
  122. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +2 -2
  123. package/dist/Shared/Components/Security/Vulnerabilities/index.d.ts +1 -1
  124. package/dist/Shared/Components/Security/index.d.ts +2 -2
  125. package/dist/Shared/Components/Security/utils.d.ts +1 -1
  126. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  127. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
  128. package/dist/Shared/Components/SelectPicker/type.d.ts +5 -5
  129. package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -1
  130. package/dist/Shared/Components/StatusComponent/index.d.ts +1 -1
  131. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
  132. package/dist/Shared/Components/Table/index.d.ts +1 -1
  133. package/dist/Shared/Components/Table/types.d.ts +2 -2
  134. package/dist/Shared/Components/TagsKeyValueTable/index.d.ts +2 -2
  135. package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +1 -1
  136. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -1
  137. package/dist/Shared/Components/index.d.ts +65 -64
  138. package/dist/Shared/Helpers.d.ts +4 -4
  139. package/dist/Shared/Hooks/UseDownload/index.d.ts +1 -1
  140. package/dist/Shared/Hooks/index.d.ts +3 -3
  141. package/dist/Shared/Hooks/useForm/useForm.d.ts +1 -1
  142. package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +1 -1
  143. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +1 -1
  144. package/dist/Shared/Hooks/useUserPreferences/index.d.ts +2 -2
  145. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  146. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +3 -2
  147. package/dist/Shared/Hooks/useUserPreferences/utils.d.ts +1 -1
  148. package/dist/Shared/Providers/ThemeProvider/index.d.ts +1 -1
  149. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +1 -1
  150. package/dist/Shared/Providers/UserEmailProvider/index.d.ts +1 -1
  151. package/dist/Shared/Providers/index.d.ts +2 -2
  152. package/dist/Shared/Providers/types.d.ts +2 -1
  153. package/dist/Shared/Services/ToastManager/constants.d.ts +1 -1
  154. package/dist/Shared/Services/ToastManager/index.d.ts +1 -1
  155. package/dist/Shared/Services/ToastManager/types.d.ts +1 -1
  156. package/dist/Shared/Services/app.service.d.ts +1 -1
  157. package/dist/Shared/Services/app.types.d.ts +4 -8
  158. package/dist/Shared/Services/index.d.ts +3 -3
  159. package/dist/Shared/Services/types.d.ts +1 -1
  160. package/dist/Shared/Store/IndexStore.d.ts +2 -2
  161. package/dist/Shared/index.d.ts +6 -6
  162. package/dist/Shared/types.d.ts +17 -3
  163. package/dist/assets/@code-editor.css +1 -1
  164. package/dist/assets/ic-arrow-clockwise.b327e411.svg +3 -0
  165. package/dist/assets/ic-bg-cluster.9a4258b9.svg +6 -0
  166. package/dist/assets/ic-cpu.07ca0915.svg +3 -0
  167. package/dist/assets/ic-file-key.a67da7ec.svg +3 -0
  168. package/dist/assets/ic-help-filled.4468cdf1.svg +4 -0
  169. package/dist/assets/ic-memory.82ba7e9b.svg +3 -0
  170. package/dist/assets/ic-sliders-vertical.2db79ea4.svg +7 -0
  171. package/dist/assets/ic-terminal-fill.39b542cd.svg +3 -0
  172. package/dist/index.d.ts +1 -1
  173. package/dist/index.js +847 -844
  174. package/package.json +5 -4
  175. package/dist/assets/ic-cpu.8be677ee.svg +0 -20
  176. package/dist/assets/ic-memory.c4159f96.svg +0 -19
@@ -1,40 +1,7 @@
1
- import { ReactNode } from 'react';
2
- import { ResizableTagTextAreaProps } from '../../../Common';
3
- /**
4
- * Interface representing a key-value header.
5
- * @template K - A string representing the key type.
6
- */
7
- export interface KeyValueHeader<K extends string> {
8
- /** The label of the header. */
9
- label: string;
10
- /** The key associated with the header. */
11
- key: K;
12
- /** An optional class name for the header. */
13
- className?: string;
14
- }
15
- /**
16
- * Type representing a key-value row.
17
- * @template K - A string representing the key type.
18
- */
19
- export type KeyValueRow<K extends string> = {
20
- data: {
21
- [key in K]: Pick<ResizableTagTextAreaProps, 'value' | 'disabled' | 'tabIndex'> & {
22
- /** An optional boolean indicating if an asterisk should be shown. */
23
- required?: boolean;
24
- };
25
- };
26
- id: string | number;
27
- };
28
- /**
29
- * Interface representing the configuration for a key-value table.
30
- * @template K - A string representing the key type.
31
- */
32
- export interface KeyValueConfig<K extends string> {
33
- /** An array containing two key-value headers. */
34
- headers: [KeyValueHeader<K>, KeyValueHeader<K>];
35
- /** An array of key-value rows. */
36
- rows: KeyValueRow<K>[];
37
- }
1
+ import { TooltipProps } from '../../../Common/Tooltip';
2
+ import { DynamicDataTableProps } from '../DynamicDataTable';
3
+ export type KeyValueTableDataType = 'key' | 'value';
4
+ export type KeyValueTableInternalProps = DynamicDataTableProps<KeyValueTableDataType, never>;
38
5
  type ErrorUIProps = {
39
6
  /**
40
7
  * Indicates whether to show errors.
@@ -58,63 +25,93 @@ type ErrorUIProps = {
58
25
  validateDuplicateKeys?: never;
59
26
  validateEmptyKeys?: never;
60
27
  };
61
- /**
62
- * Type representing a mask for key-value pairs.
63
- * @template K - A string representing the key type.
64
- */
65
- export type KeyValueMask<K extends string> = {
28
+ export type KeyValueHeaderLabel<K extends KeyValueTableDataType = KeyValueTableDataType> = {
29
+ [key in K]: string;
30
+ };
31
+ export type KeyValueMask<K extends KeyValueTableDataType = KeyValueTableDataType> = {
66
32
  [key in K]?: boolean;
67
33
  };
68
- export type KeyValuePlaceholder<K extends string> = {
34
+ export type KeyValuePlaceholder<K extends KeyValueTableDataType = KeyValueTableDataType> = {
69
35
  [key in K]?: string;
70
36
  };
37
+ export interface KeyValueTableRowType<K extends KeyValueTableDataType = KeyValueTableDataType> {
38
+ id: string | number;
39
+ data: {
40
+ [key in K]: {
41
+ value: string;
42
+ /** An optional boolean indicating if the cell should be marked as disabled. */
43
+ disabled?: boolean;
44
+ /** An optional boolean indicating if an asterisk should be shown. */
45
+ required?: boolean;
46
+ /** An optional tooltip to show when hovering over cell. */
47
+ tooltip?: Partial<Pick<TooltipProps, 'content' | 'className'>>;
48
+ };
49
+ };
50
+ }
51
+ export interface KeyValueTableData extends Pick<KeyValueTableRowType, 'id'> {
52
+ key: string;
53
+ value: string;
54
+ }
71
55
  /**
72
- * Interface representing the properties for a key-value table component.
73
- * @template K - A string representing the key type.
56
+ * Props for the KeyValueTable component.
74
57
  */
75
- export type KeyValueTableProps<K extends string> = {
76
- /** The configuration for the key-value table. */
77
- config: KeyValueConfig<K>;
78
- /** An optional mask for the key-value pairs. */
79
- maskValue?: KeyValueMask<K>;
80
- placeholder?: KeyValuePlaceholder<K>;
81
- /** An optional boolean indicating if the table is sortable. */
82
- isSortable?: boolean;
83
- /** An optional React node for a custom header component. */
84
- headerComponent?: ReactNode;
85
- /** When true, data addition field will not be shown. */
86
- isAdditionNotAllowed?: boolean;
87
- /** When true, data add or update is disabled. */
88
- readOnly?: boolean;
58
+ export type KeyValueTableProps = Pick<DynamicDataTableProps<KeyValueTableDataType>, 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent'> & {
89
59
  /**
90
- * An optional function to handle changes in the table rows.
91
- * @param rowId - The id of the row that changed.
92
- * @param headerKey - The key of the header that changed.
93
- * @param value - The value of the cell.
60
+ * The label for the table header.
94
61
  */
95
- onChange?: (rowId: string | number, headerKey: K, value: string) => void;
62
+ headerLabel: KeyValueHeaderLabel;
96
63
  /**
97
- * An optional function to handle row deletions.
98
- * @param deletedRowIndex - The index of the row that was deleted.
64
+ * The rows of the key-value table.
99
65
  */
100
- onDelete?: (deletedRowId: string | number) => void;
66
+ rows: KeyValueTableRowType[];
101
67
  /**
102
- * The function to use to validate the value of the cell.
103
- * @param value - The value to validate.
104
- * @param key - The row key of the value.
105
- * @param rowId - The id of the row.
106
- * @returns Return true if the value is valid, otherwise false
107
- * and set `showError` to `true` and provide errorMessages array to show error message.
68
+ * An optional configuration to mask values in the table.
108
69
  */
109
- validationSchema?: (value: string, key: K, rowId: string | number) => boolean;
70
+ maskValue?: KeyValueMask;
110
71
  /**
111
- * An array of error messages to be displayed in the cell error tooltip.
72
+ * An optional placeholder configuration for the table columns.
112
73
  */
113
- errorMessages?: string[];
74
+ placeholder?: KeyValuePlaceholder;
75
+ /**
76
+ * An optional boolean indicating if the `key` column is sortable.
77
+ */
78
+ isSortable?: boolean;
79
+ /**
80
+ * A callback function triggered when the table rows change.
81
+ *
82
+ * @param data - The updated table data.
83
+ */
84
+ onChange: (data: KeyValueTableData[]) => void;
85
+ /**
86
+ * A function to validate the value of a cell.
87
+ *
88
+ * @param value - The value to validate.
89
+ * @param key - The key of the header associated with the value.
90
+ * @param row - The row containing the value.
91
+ * @returns A boolean indicating whether the value is valid. If false,
92
+ * `showError` should be set to `true` and `errorMessages` should
93
+ * provide an array of error messages to display.
94
+ */
95
+ validationSchema?: (value: string, key: KeyValueTableDataType, row: KeyValueTableRowType) => {
96
+ /** Boolean indicating if the cell data is valid or not. */
97
+ isValid: boolean;
98
+ /**
99
+ * An array of error messages to display in the cell error tooltip.
100
+ */
101
+ errorMessages?: string[];
102
+ };
114
103
  /**
115
- * A callback function called when an error occurs.
116
- * @param errorState - The error state, true when any cell has error, otherwise false.
104
+ * A callback function triggered when an error occurs in the table.
105
+ *
106
+ * @param errorState - A boolean indicating the error state. True if any
107
+ * cell has an error, otherwise false.
117
108
  */
118
109
  onError?: (errorState: boolean) => void;
119
110
  } & ErrorUIProps;
111
+ export type KeyValueValidationSchemaProps = {
112
+ value: Parameters<KeyValueTableProps['validationSchema']>[0];
113
+ key: Parameters<KeyValueTableProps['validationSchema']>[1];
114
+ row: Parameters<KeyValueTableProps['validationSchema']>[2];
115
+ keysFrequency?: Record<string, number>;
116
+ } & Pick<KeyValueTableProps, 'validateDuplicateKeys' | 'validateEmptyKeys' | 'validationSchema'> & Partial<Pick<KeyValueTableInternalProps, 'rows'>>;
120
117
  export {};
@@ -1,2 +1,2 @@
1
1
  export * from './KeyValueTable.component';
2
- export * from './KeyValueTable.types';
2
+ export type { KeyValueTableData, KeyValueTableProps } from './KeyValueTable.types';
@@ -0,0 +1,13 @@
1
+ import { UseStateFiltersReturnType } from '../../../Common/Hooks';
2
+ import { KeyValueTableData, KeyValueTableDataType, KeyValueTableInternalProps, KeyValueTableProps, KeyValueValidationSchemaProps } from './KeyValueTable.types';
3
+ export declare const getModifiedDataForOnChange: (rows: KeyValueTableInternalProps["rows"]) => KeyValueTableData[];
4
+ export declare const getEmptyRow: (placeholder: KeyValueTableProps["placeholder"]) => KeyValueTableInternalProps["rows"][number];
5
+ export declare const getKeyValueTableRows: ({ rows: initialRows, placeholder, maskValue, }: Required<Pick<KeyValueTableProps, "rows" | "placeholder" | "maskValue">>) => KeyValueTableInternalProps["rows"];
6
+ export declare const getKeyValueTableSortedRows: ({ isSortable, rows, sortBy, sortOrder, }: Required<Pick<KeyValueTableProps, "isSortable">> & Required<Pick<UseStateFiltersReturnType<KeyValueTableDataType>, "sortBy" | "sortOrder">> & Pick<KeyValueTableInternalProps, "rows">) => import('../DynamicDataTable').DynamicDataTableRowType<KeyValueTableDataType, never>[];
7
+ export declare const getKeyValueHeaders: ({ headerLabel, isSortable, }: Pick<KeyValueTableProps, "headerLabel" | "isSortable">) => KeyValueTableInternalProps["headers"];
8
+ export declare const getKeyValueTableCellError: ({ validateDuplicateKeys, validateEmptyKeys, validationSchema: parentValidationSchema, rows, }: Pick<KeyValueValidationSchemaProps, "validateDuplicateKeys" | "validateEmptyKeys" | "validationSchema" | "rows"> & {
9
+ skipValidationIfValueIsEmpty?: boolean;
10
+ }) => {
11
+ isValid: boolean;
12
+ updatedCellError: {};
13
+ };
@@ -1,3 +1,3 @@
1
- import { DevtronLicenseCardProps } from '../../index';
1
+ import { DevtronLicenseCardProps } from './types';
2
2
  export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, ttl, appTheme, handleCopySuccess, }: DevtronLicenseCardProps) => JSX.Element;
3
3
  export default DevtronLicenseCard;
@@ -1,5 +1,5 @@
1
- export { default as DevtronLicenseCard } from './DevtronLicenseCard';
2
- export { parseDevtronLicenseData } from './utils';
3
- export { default as InstallationFingerprintInfo, ICDevtronWithBorder } from './License.components';
4
1
  export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
2
+ export { default as DevtronLicenseCard } from './DevtronLicenseCard';
3
+ export { ICDevtronWithBorder, default as InstallationFingerprintInfo } from './License.components';
5
4
  export * from './types';
5
+ export { parseDevtronLicenseData } from './utils';
@@ -1,4 +1,5 @@
1
- import { AppThemeType, DevtronLicenseBaseDTO, DevtronLicenseDTO } from '../../index';
1
+ import { AppThemeType } from '../../Providers';
2
+ import { DevtronLicenseBaseDTO, DevtronLicenseDTO } from '../../types';
2
3
  export declare enum LicenseStatus {
3
4
  ACTIVE = "ACTIVE",
4
5
  EXPIRED = "EXPIRED",
@@ -1,4 +1,5 @@
1
- import { DevtronLicenseDTO, DevtronLicenseInfo, LicenseStatus } from '../../index';
1
+ import { DevtronLicenseDTO } from '../../types';
2
+ import { DevtronLicenseInfo, LicenseStatus } from './types';
2
3
  export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
3
4
  bgColor: string;
4
5
  textColor: string;
@@ -1,7 +1,7 @@
1
- export * from './types';
2
- export * from './service';
3
- export * from './utils';
4
1
  export * from './constants';
2
+ export { default as PluginImageContainer } from './PluginImageContainer';
5
3
  export { default as PluginListContainer } from './PluginListContainer';
6
4
  export { default as PluginTagsContainer } from './PluginTagsContainer';
7
- export { default as PluginImageContainer } from './PluginImageContainer';
5
+ export * from './service';
6
+ export * from './types';
7
+ export * from './utils';
@@ -1,2 +1,2 @@
1
- export * from './utils';
2
1
  export * from './constants';
2
+ export * from './utils';
@@ -1,2 +1,2 @@
1
- export * from './RegistryIcon';
2
1
  export * from './constants';
2
+ export * from './RegistryIcon';
@@ -1,3 +1,3 @@
1
- export { default as Table } from './Table';
2
1
  export { default as InfoCard } from './InfoCard';
3
2
  export { default as OpenDetailViewButton } from './OpenDetailViewButton';
3
+ export { default as Table } from './Table';
@@ -1,4 +1,4 @@
1
- import { ScanResultDTO, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
1
+ import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, StatusType, TablePropsType } from '../types';
2
2
  export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
3
3
  headers: ({
4
4
  headerText: string;
@@ -1,2 +1,2 @@
1
- import { ScanResultDTO, DetailViewDataType, SecurityModalStateType } from '../types';
1
+ import { DetailViewDataType, ScanResultDTO, SecurityModalStateType } from '../types';
2
2
  export declare const getEmptyStateValues: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => import('../types').EmptyStateType;
@@ -1,4 +1,4 @@
1
- import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, StatusType, InfoCardPropsType, EmptyStateType, ScanResultDTO, OpenDetailViewButtonProps } from '../types';
1
+ import { DetailViewDataType, EmptyStateType, ImageScan, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, StatusType, TablePropsType } from '../types';
2
2
  export declare const getProgressingStateForStatus: (status: StatusType["status"]) => JSX.Element;
3
3
  export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
4
4
  export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
@@ -1,4 +1,4 @@
1
- import { ScanResultDTO, DetailViewDataType, EmptyStateType, InfoCardPropsType, KubernetesManifest, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
1
+ import { DetailViewDataType, EmptyStateType, InfoCardPropsType, KubernetesManifest, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, TablePropsType } from '../types';
2
2
  export declare const getKubernetesManifestTableData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
3
3
  export declare const getKubernetesManifestInfoCardData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
4
4
  export declare const getKubernetesManifestEmptyState: (data: ScanResultDTO, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
@@ -1,2 +1,2 @@
1
- import { ScanResultDTO, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
1
+ import { OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, TablePropsType } from '../types';
2
2
  export declare const getTableData: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
@@ -1,4 +1,4 @@
1
- export { getTableData } from './Table';
1
+ export { getProgressingStateForStatus } from './ImageScan';
2
2
  export { getInfoCardData } from './InfoCard';
3
3
  export { getSidebarData } from './Sidebar';
4
- export { getProgressingStateForStatus } from './ImageScan';
4
+ export { getTableData } from './Table';
@@ -1,5 +1,5 @@
1
- import { SeveritiesDTO, SortOrderEnum, EmptyStateType, SecurityModalStateType } from './types';
2
1
  import { ScanCategoriesWithLicense } from '../types';
2
+ import { EmptyStateType, SecurityModalStateType, SeveritiesDTO, SortOrderEnum } from './types';
3
3
  export declare const DEFAULT_SECURITY_MODAL_IMAGE_STATE: {
4
4
  category: "imageScan";
5
5
  subCategory: "vulnerability";
@@ -1,7 +1,7 @@
1
- export { default as SecurityModal } from './SecurityModal';
2
- export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, } from './utils';
3
- export type { ScanResultDTO, SidebarPropsType, SidebarDataChildType, SidebarDataType, GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, } from './types';
4
- export { SeveritiesDTO } from './types';
5
- export { getSidebarData, getProgressingStateForStatus } from './config';
1
+ export { getProgressingStateForStatus, getSidebarData } from './config';
6
2
  export { CATEGORY_LABELS } from './constants';
3
+ export { default as SecurityModal } from './SecurityModal';
7
4
  export { getSecurityScan } from './service';
5
+ export type { GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, ScanResultDTO, SidebarDataChildType, SidebarDataType, SidebarPropsType, } from './types';
6
+ export { SeveritiesDTO } from './types';
7
+ export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, } from './utils';
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
- import { GenericEmptyStateType } from '../../../../Common/Types';
3
- import { LastExecutionResultType, NodeType, Nodes } from '../../../types';
4
2
  import { SegmentedBarChartProps } from '../../../../Common/SegmentedBarChart';
5
3
  import { ServerErrors } from '../../../../Common/ServerError';
4
+ import { GenericEmptyStateType } from '../../../../Common/Types';
5
+ import { LastExecutionResultType, Nodes, NodeType } from '../../../types';
6
6
  import { ScanCategories, ScanSubCategories } from '../types';
7
7
  export interface GetResourceScanDetailsPayloadType {
8
8
  name: string;
@@ -1,7 +1,7 @@
1
- import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
2
1
  import { SEVERITIES } from './constants';
2
+ import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--G500)" | "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)";
4
+ color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--G500)" | "var(--Y500)" | "var(--R700)";
5
5
  label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
@@ -1,2 +1,2 @@
1
- export { default as Vulnerabilities } from './Vulnerabilities';
2
1
  export * from './utils';
2
+ export { default as Vulnerabilities } from './Vulnerabilities';
@@ -1,4 +1,4 @@
1
- export * from './Vulnerabilities';
1
+ export * from './SecurityDetailsCards';
2
2
  export * from './SecurityModal';
3
3
  export * from './utils';
4
- export * from './SecurityDetailsCards';
4
+ export * from './Vulnerabilities';
@@ -1,5 +1,5 @@
1
- import { ScanResultDTO, SeveritiesDTO } from './SecurityModal';
2
1
  import { ImageScanLicenseListType, ImageScanVulnerabilityListType, StatusType } from './SecurityModal/types';
2
+ import { ScanResultDTO, SeveritiesDTO } from './SecurityModal';
3
3
  import { CategoriesConfig, SecurityConfigType } from './types';
4
4
  export declare const getCVEUrlFromCVEName: (cveName: string) => string;
5
5
  export declare const getTotalSeverities: (severityCount: Partial<Record<SeveritiesDTO, number>>) => number;
@@ -1,4 +1,4 @@
1
- import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps, ValueContainerProps, MenuListProps, MultiValueRemoveProps, MultiValueProps, InputProps } from 'react-select';
1
+ import { ClearIndicatorProps, ControlProps, DropdownIndicatorProps, InputProps, MenuListProps, MultiValueProps, MultiValueRemoveProps, OptionProps, ValueContainerProps } from 'react-select';
2
2
  import { TooltipProps } from '@Common/Tooltip/types';
3
3
  import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type';
4
4
  export declare const getTooltipProps: (tooltipProps?: SelectPickerOptionType["tooltipProps"]) => TooltipProps;
@@ -1,5 +1,5 @@
1
+ export { default as FilterSelectPicker } from './FilterSelectPicker';
1
2
  export { default as SelectPicker } from './SelectPicker.component';
2
3
  export * from './SelectPickerTextArea.component';
3
- export { default as FilterSelectPicker } from './FilterSelectPicker';
4
4
  export * from './type';
5
5
  export { getSelectPickerOptionByValue } from './utils';
@@ -1,13 +1,13 @@
1
- import { ServerErrors } from '../../../Common/ServerError';
2
- import { OptionType } from '../../../Common/Types';
3
- import { ComponentSizeType } from '../../constants';
4
1
  import { MutableRefObject, ReactElement, ReactNode } from 'react';
5
2
  import { GroupBase, GroupHeadingProps, Props as ReactSelectProps, SelectInstance } from 'react-select';
6
3
  import { CreatableProps } from 'react-select/creatable';
7
- import { TooltipProps } from '@Common/Tooltip/types';
8
4
  import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
9
- import { FormFieldWrapperProps } from '../FormFieldWrapper/types';
5
+ import { ServerErrors } from '../../../Common/ServerError';
6
+ import { TooltipProps } from '@Common/Tooltip/types';
7
+ import { OptionType } from '../../../Common/Types';
8
+ import { ComponentSizeType } from '../../constants';
10
9
  import { ButtonComponentType, ButtonProps, ButtonVariantType } from '../Button';
10
+ import { FormFieldWrapperProps } from '../FormFieldWrapper/types';
11
11
  export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
12
12
  /**
13
13
  * Description to be displayed for the option
@@ -1,5 +1,5 @@
1
- import { CHECKBOX_VALUE } from '../../../Common/Types';
2
1
  import { GroupBase, MultiValue, OptionsOrGroups, StylesConfig } from 'react-select';
2
+ import { CHECKBOX_VALUE } from '../../../Common/Types';
3
3
  import { SelectPickerOptionType, SelectPickerProps } from './type';
4
4
  export declare const getCommonSelectStyle: <OptionValue, IsMulti extends boolean>({ error, size, menuSize, variant, getIsOptionValid, isGroupHeadingSelectable, shouldMenuAlignRight, }: Pick<SelectPickerProps<OptionValue, IsMulti>, "error" | "size" | "menuSize" | "variant" | "shouldMenuAlignRight"> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid" | "isGroupHeadingSelectable">) => StylesConfig<SelectPickerOptionType<OptionValue>>;
5
5
  export declare const getGroupCheckboxValue: <OptionValue>(groupHeadingOptions: readonly SelectPickerOptionType<OptionValue>[], selectedOptions: MultiValue<SelectPickerOptionType<OptionValue>>, getOptionValue: (option: SelectPickerOptionType<OptionValue>) => string) => CHECKBOX_VALUE.CHECKED | CHECKBOX_VALUE.INTERMEDIATE;
@@ -1,5 +1,5 @@
1
- export * from './StatusComponent';
2
1
  export * from './AppStatus';
3
2
  export * from './DeploymentStatus';
3
+ export * from './StatusComponent';
4
4
  export * from './types';
5
5
  export { getDeploymentStatusFromStatus } from './utils';
@@ -1,7 +1,7 @@
1
1
  import { LinkProps, NavLinkProps } from 'react-router-dom';
2
+ import { TooltipProps } from '@Common/Tooltip/types';
2
3
  import { ComponentSizeType } from '../../constants';
3
4
  import { DataAttributes } from '../../types';
4
- import { TooltipProps } from '@Common/Tooltip/types';
5
5
  import { IconName } from '../Icon';
6
6
  type TabComponentProps<TabTypeProps> = TabTypeProps & DataAttributes;
7
7
  type ConditionalTabType = {
@@ -1,3 +1,3 @@
1
1
  export { default as Table } from './Table.component';
2
+ export type { CellComponentProps as TableCellComponentProps, Column as TableColumnType, TableProps, ViewWrapperProps as TableViewWrapperProps, } from './types';
2
3
  export { FiltersTypeEnum, PaginationEnum, SignalEnum as TableSignalEnum } from './types';
3
- export type { ViewWrapperProps as TableViewWrapperProps, Column as TableColumnType, TableProps, CellComponentProps as TableCellComponentProps, } from './types';
@@ -1,8 +1,8 @@
1
1
  import { Dispatch, FunctionComponent, PropsWithChildren, SetStateAction } from 'react';
2
- import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
2
+ import { GenericFilterEmptyStateProps } from '@Common/EmptyState/types';
3
3
  import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps } from '../../../Common/Hooks';
4
4
  import { GenericEmptyStateType } from '../../../Common/index';
5
- import { GenericFilterEmptyStateProps } from '@Common/EmptyState/types';
5
+ import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
6
6
  import { useBulkSelection, UseBulkSelectionProps } from '../BulkSelection';
7
7
  export interface UseFiltersReturnType extends UseStateFiltersReturnType<string> {
8
8
  }
@@ -1,4 +1,4 @@
1
+ export { DEVTRON_AI_URL } from './constants';
1
2
  export { default as TagsContainer } from './TagsContainer';
2
- export { getEmptyTagTableRow } from './utils';
3
3
  export type { TagsTableColumnsType } from './types';
4
- export { DEVTRON_AI_URL } from './constants';
4
+ export { getEmptyTagTableRow } from './utils';
@@ -1,5 +1,5 @@
1
- import { CIPipelineNodeType } from '../../types';
2
1
  import { PipelineType } from '../../../Common/Types';
2
+ import { CIPipelineNodeType } from '../../types';
3
3
  export declare const WORKFLOW_OPTIONS_MODAL: {
4
4
  ACTION_TEXT: string;
5
5
  ACTION_NOTE: string;
@@ -1,5 +1,5 @@
1
- import { AppConfigProps } from '../../../Pages/index';
2
1
  import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
2
+ import { AppConfigProps } from '../../../Pages/index';
3
3
  interface LinkedCDSourceVariant {
4
4
  title: string;
5
5
  subtitle: string;