@devtron-labs/devtron-fe-common-lib 1.10.17 → 1.10.19

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 (177) hide show
  1. package/dist/{@code-editor-BvjrvTRt.js → @code-editor-B1nhzehZ.js} +23836 -23716
  2. package/dist/{@common-rjsf-DM5WzH7I.js → @common-rjsf-v20lsyFO.js} +29 -29
  3. package/dist/{@framer-motion-DMD7dX-G.js → @framer-motion-3ACrfimm.js} +1 -1
  4. package/dist/{@react-dates-DxmDHBUI.js → @react-dates-C1YJpDXg.js} +990 -989
  5. package/dist/{@react-select-BR4eLpVa.js → @react-select-rJh4_EaU.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Ca-pl6uN.js → @react-virtualized-sticky-tree-CMLds5Wa.js} +1 -1
  7. package/dist/{@vendor-DZHtXPTX.js → @vendor-HJw8T7OP.js} +29443 -29446
  8. package/dist/Common/API/CoreAPI.d.ts +1 -1
  9. package/dist/Common/API/index.d.ts +1 -1
  10. package/dist/Common/CodeMirror/Extensions/index.d.ts +3 -3
  11. package/dist/Common/CodeMirror/Extensions/yamlParseLinter.d.ts +1 -1
  12. package/dist/Common/CodeMirror/index.d.ts +1 -1
  13. package/dist/Common/CodeMirror/types.d.ts +3 -3
  14. package/dist/Common/CodeMirror/utils.d.ts +2 -1
  15. package/dist/Common/CustomTagSelector/index.d.ts +2 -2
  16. package/dist/Common/DeleteCINodeButton/index.d.ts +1 -1
  17. package/dist/Common/DraggableWrapper/index.d.ts +1 -1
  18. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  19. package/dist/Common/Hooks/index.d.ts +3 -3
  20. package/dist/Common/Hooks/useStateFilters/index.d.ts +1 -1
  21. package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -1
  22. package/dist/Common/RJSF/Form.d.ts +1 -1
  23. package/dist/Common/RJSF/index.d.ts +2 -2
  24. package/dist/Common/RJSF/templates/index.d.ts +1 -1
  25. package/dist/Common/SegmentedControl/types.d.ts +5 -1
  26. package/dist/Common/SortableTableHeaderCell/index.d.ts +1 -1
  27. package/dist/Common/Toggle/Toggle.d.ts +2 -1
  28. package/dist/Common/Tooltip/index.d.ts +1 -1
  29. package/dist/Common/Tooltip/types.d.ts +1 -1
  30. package/dist/Common/Types.d.ts +1 -0
  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/types.d.ts +1 -1
  40. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/index.d.ts +1 -1
  41. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/index.d.ts +2 -2
  42. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/services.d.ts +1 -1
  43. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +3 -3
  44. package/dist/Pages/GlobalConfigurations/Authorization/service.d.ts +1 -1
  45. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
  46. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -2
  47. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +6 -6
  48. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
  49. package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +1 -1
  50. package/dist/Pages/GlobalConfigurations/index.d.ts +2 -2
  51. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +1 -1
  52. package/dist/Pages/ResourceBrowser/index.d.ts +5 -5
  53. package/dist/Pages/ResourceBrowser/types.d.ts +1 -1
  54. package/dist/Pages/index.d.ts +1 -1
  55. package/dist/Shared/Components/BulkOperations/index.d.ts +1 -1
  56. package/dist/Shared/Components/BulkOperations/types.d.ts +2 -2
  57. package/dist/Shared/Components/BulkSelection/index.d.ts +1 -1
  58. package/dist/Shared/Components/Button/index.d.ts +1 -1
  59. package/dist/Shared/Components/Button/types.d.ts +2 -2
  60. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
  61. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -1
  62. package/dist/Shared/Components/CICDHistory/index.d.ts +11 -11
  63. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
  64. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -1
  65. package/dist/Shared/Components/CMCS/index.d.ts +2 -2
  66. package/dist/Shared/Components/CMCS/types.d.ts +1 -1
  67. package/dist/Shared/Components/CMCS/validations.d.ts +1 -1
  68. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +1 -1
  69. package/dist/Shared/Components/ConfirmationModal/index.d.ts +5 -4
  70. package/dist/Shared/Components/ConfirmationModal/utils.d.ts +1 -1
  71. package/dist/Shared/Components/CountrySelect/types.d.ts +1 -1
  72. package/dist/Shared/Components/CountrySelect/utils.d.ts +1 -1
  73. package/dist/Shared/Components/CustomInput/types.d.ts +1 -1
  74. package/dist/Shared/Components/DatePicker/index.d.ts +4 -4
  75. package/dist/Shared/Components/DatePicker/types.d.ts +2 -2
  76. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +1 -1
  77. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
  78. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
  79. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +1 -1
  80. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +1 -1
  81. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +2 -1
  82. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +2 -1
  83. package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
  84. package/dist/Shared/Components/FlagImage/types.d.ts +1 -1
  85. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -1
  86. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -1
  87. package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +2 -0
  88. package/dist/Shared/Components/FramerComponents/index.d.ts +3 -0
  89. package/dist/Shared/Components/GenericInfoCard/index.d.ts +1 -1
  90. package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +1 -1
  91. package/dist/Shared/Components/GraphVisualizer/index.d.ts +1 -1
  92. package/dist/Shared/Components/Header/index.d.ts +1 -1
  93. package/dist/Shared/Components/Icon/Icon.d.ts +14 -0
  94. package/dist/Shared/Components/Icon/types.d.ts +1 -1
  95. package/dist/Shared/Components/ImageCard/index.d.ts +1 -1
  96. package/dist/Shared/Components/ImageChipCell/types.d.ts +1 -1
  97. package/dist/Shared/Components/InfoBlock/types.d.ts +1 -1
  98. package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +1 -1
  99. package/dist/Shared/Components/Plugin/index.d.ts +4 -4
  100. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -1
  101. package/dist/Shared/Components/RegistryIcon/index.d.ts +1 -1
  102. package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +1 -1
  103. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +1 -1
  104. package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +1 -1
  105. package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
  106. package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +1 -1
  107. package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +1 -1
  108. package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +2 -2
  109. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
  110. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +5 -5
  111. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +2 -2
  112. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +2 -2
  113. package/dist/Shared/Components/Security/Vulnerabilities/index.d.ts +1 -1
  114. package/dist/Shared/Components/Security/index.d.ts +2 -2
  115. package/dist/Shared/Components/Security/utils.d.ts +1 -1
  116. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  117. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
  118. package/dist/Shared/Components/SelectPicker/type.d.ts +5 -5
  119. package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -1
  120. package/dist/Shared/Components/StatusComponent/index.d.ts +1 -1
  121. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +2 -2
  122. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +6 -4
  123. package/dist/Shared/Components/TabGroup/TabGroup.utils.d.ts +2 -0
  124. package/dist/Shared/Components/Table/index.d.ts +1 -1
  125. package/dist/Shared/Components/Table/types.d.ts +2 -2
  126. package/dist/Shared/Components/TagsKeyValueTable/index.d.ts +2 -2
  127. package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +1 -1
  128. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -1
  129. package/dist/Shared/Components/index.d.ts +63 -62
  130. package/dist/Shared/Helpers.d.ts +3 -3
  131. package/dist/Shared/Hooks/UseDownload/index.d.ts +1 -1
  132. package/dist/Shared/Hooks/index.d.ts +3 -2
  133. package/dist/Shared/Hooks/useForm/useForm.d.ts +9 -1
  134. package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +1 -1
  135. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +1 -1
  136. package/dist/Shared/Hooks/useOneTimePrompt/constants.d.ts +1 -0
  137. package/dist/Shared/Hooks/useOneTimePrompt/index.d.ts +1 -0
  138. package/dist/Shared/Hooks/useOneTimePrompt/types.d.ts +3 -0
  139. package/dist/Shared/Hooks/useOneTimePrompt/useOneTimePrompt.d.ts +6 -0
  140. package/dist/Shared/Hooks/useUserPreferences/index.d.ts +2 -2
  141. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  142. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +3 -2
  143. package/dist/Shared/Hooks/useUserPreferences/utils.d.ts +1 -1
  144. package/dist/Shared/Providers/ThemeProvider/index.d.ts +1 -1
  145. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +1 -1
  146. package/dist/Shared/Providers/UserEmailProvider/index.d.ts +1 -1
  147. package/dist/Shared/Providers/index.d.ts +2 -2
  148. package/dist/Shared/Providers/types.d.ts +1 -1
  149. package/dist/Shared/Services/ToastManager/constants.d.ts +1 -1
  150. package/dist/Shared/Services/ToastManager/index.d.ts +1 -1
  151. package/dist/Shared/Services/ToastManager/types.d.ts +1 -1
  152. package/dist/Shared/Services/app.service.d.ts +1 -1
  153. package/dist/Shared/Services/app.types.d.ts +2 -2
  154. package/dist/Shared/Services/index.d.ts +3 -3
  155. package/dist/Shared/Store/IndexStore.d.ts +2 -2
  156. package/dist/Shared/index.d.ts +6 -6
  157. package/dist/Shared/types.d.ts +16 -7
  158. package/dist/assets/@code-editor.css +1 -1
  159. package/dist/assets/ic-arrows-left-right.2d4dda45.svg +3 -0
  160. package/dist/assets/ic-check.a0f5ee85.svg +3 -0
  161. package/dist/assets/ic-close-large.fb6095e0.svg +3 -0
  162. package/dist/assets/ic-delete-lightning.2a7545bd.svg +3 -0
  163. package/dist/assets/ic-folder-user.ff0670e8.svg +3 -0
  164. package/dist/assets/ic-hibernate.f75c1e70.svg +19 -0
  165. package/dist/assets/ic-lightning-fill.25ce980f.svg +3 -0
  166. package/dist/assets/ic-lightning.02da5bf8.svg +3 -0
  167. package/dist/assets/ic-medium-delete.f33a9cd7.svg +11 -0
  168. package/dist/assets/ic-pencil.3ea1c075.svg +3 -0
  169. package/dist/assets/ic-sort-ascending.45f474ff.svg +3 -0
  170. package/dist/assets/ic-sort-descending.0ee6b8dd.svg +3 -0
  171. package/dist/assets/ic-sortable.1d3308e1.svg +3 -0
  172. package/dist/assets/ic-stamp.23836e37.svg +3 -0
  173. package/dist/assets/ic-users.102d4732.svg +3 -0
  174. package/dist/index.d.ts +1 -1
  175. package/dist/index.js +539 -534
  176. package/package.json +5 -4
  177. package/dist/assets/ic-hibernate.988d2323.svg +0 -28
@@ -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,5 +1,5 @@
1
- import { TabProps } from './TabGroup.types';
2
- export declare const getTabIcon: ({ icon: Icon, showError, showWarning, className, }: Pick<TabProps, "showError" | "showWarning" | "icon"> & {
1
+ import { TabGroupProps, TabProps } from './TabGroup.types';
2
+ export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active"> & Pick<TabGroupProps, "size"> & {
3
3
  className: string;
4
4
  }) => JSX.Element;
5
5
  export declare const getTabBadge: (badge: TabProps["badge"], className: string) => JSX.Element;
@@ -1,7 +1,8 @@
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
+ import { IconName } from '../Icon';
5
6
  type TabComponentProps<TabTypeProps> = TabTypeProps & DataAttributes;
6
7
  type ConditionalTabType = {
7
8
  /**
@@ -79,10 +80,11 @@ export type TabProps = {
79
80
  */
80
81
  description?: string | string[];
81
82
  /**
82
- * Icon component to be displayed in the tab.
83
- * This should be a functional component that renders an SVG.
83
+ * Icon to be displayed in the tab.
84
+ * This can either be a functional component that renders a SVG
85
+ * or a string representing the name of the icon to be rendered by the Icon component.
84
86
  */
85
- icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
87
+ icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
86
88
  /**
87
89
  * Badge number to be displayed on the tab, typically for notifications.
88
90
  */
@@ -1,7 +1,9 @@
1
+ import { IconsProps } from '../Icon';
1
2
  import { TabGroupProps } from './TabGroup.types';
2
3
  export declare const getClassNameBySizeMap: ({ hideTopPadding, alignActiveBorderWithContainer, }: Pick<TabGroupProps, "hideTopPadding" | "alignActiveBorderWithContainer">) => Record<TabGroupProps["size"], {
3
4
  tabClassName: string;
4
5
  iconClassName: string;
5
6
  badgeClassName: string;
6
7
  }>;
8
+ export declare const TAB_ICON_SIZE_MAP: Record<TabGroupProps['size'], IconsProps['size']>;
7
9
  export declare const tabGroupClassMap: Record<TabGroupProps['size'], string>;
@@ -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;
@@ -1,80 +1,81 @@
1
- export * from './APIResponseHandler';
2
- export * from './ReactSelect';
3
- export * from './BulkSelection';
4
- export * from './ImageCard';
5
- export * from './ImageCardAccordion';
6
- export * from './ExcludedImageNode';
7
- export * from './ScannedByToolModal';
8
- export * from './FilterChips';
1
+ export * from './ActionMenu';
9
2
  export * from './ActivityIndicator';
10
- export * from './GenericSectionErrorState';
11
- export * from './InfoIconTippy';
12
- export * from './EditableTextArea';
13
- export * from './Header';
3
+ export * from './AnimatedDeployButton';
14
4
  export * from './AnnouncementBanner';
5
+ export * from './APIResponseHandler';
6
+ export * from './ArtifactInfoModal';
7
+ export * from './Backdrop';
8
+ export * from './BulkOperations';
9
+ export * from './BulkSelection';
10
+ export * from './Button';
15
11
  export * from './ButtonWithLoader';
16
12
  export * from './ButtonWithSelector';
13
+ export * from './CICDHistory';
14
+ export * from './CMCS';
15
+ export * from './CodeEditorWrapper';
16
+ export * from './Collapse';
17
+ export * from './CollapsibleList';
18
+ export * from './CommitChipCell';
19
+ export * from './Confetti';
20
+ export * from './ConfirmationModal';
21
+ export * from './CountrySelect';
22
+ export * from './CustomInput';
23
+ export * from './DatePicker';
24
+ export * from './DeploymentConfigDiff';
25
+ export * from './DetectBottom';
26
+ export * from './DevtronLicenseCard';
27
+ export * from './DiffViewer';
28
+ export * from './DynamicDataTable';
29
+ export * from './EditableTextArea';
30
+ export * from './EditImageFormField';
31
+ export * from './EnterpriseTag';
17
32
  export * from './EnvironmentSelector';
18
- export * from './ModalSidebarPanel';
19
- export * from './ImageWithFallback';
33
+ export * from './Error';
34
+ export * from './ExcludedImageNode';
20
35
  export * from './FeatureDescription';
21
- export * from './CICDHistory';
36
+ export * from './FileUpload';
37
+ export * from './FilterChips';
38
+ export * from './FlagImage';
39
+ export * from './FloatingVariablesSuggestions';
40
+ export * from './FramerComponents';
41
+ export * from './GenericInfoCard';
42
+ export * from './GenericSectionErrorState';
22
43
  export * from './GitCommitInfoGeneric';
23
- export * from './Error';
24
- export * from './DatePicker';
25
- export * from './CommitChipCell';
44
+ export * from './GitProviderIcon';
45
+ export * from './GraphVisualizer';
46
+ export * from './Header';
47
+ export * from './Icon';
48
+ export * from './IframeContainer';
49
+ export * from './ImageCard';
50
+ export * from './ImageCardAccordion';
26
51
  export * from './ImageChipCell';
27
- export * from './ArtifactInfoModal';
52
+ export * from './ImageWithFallback';
53
+ export * from './InfoBlock';
54
+ export * from './InfoIconTippy';
55
+ export * from './InvalidYAMLTippy';
56
+ export * from './KeyValueTable';
57
+ export * from './LoginBanner';
28
58
  export * from './MaterialHistory';
29
- export * from './IframeContainer';
59
+ export * from './ModalSidebarPanel';
60
+ export * from './NumbersCount';
61
+ export * from './PhoneInput';
30
62
  export * from './Plugin';
31
- export * from './KeyValueTable';
63
+ export * from './ReactSelect';
64
+ export * from './RegistryIcon';
65
+ export * from './ScannedByToolModal';
66
+ export * from './Security';
32
67
  export * from './SelectPicker';
33
68
  export * from './ShowMoreText';
34
- export * from './CollapsibleList';
35
- export * from './DeploymentConfigDiff';
36
- export * from './DetectBottom';
69
+ export * from './SSOProviderIcon';
70
+ export * from './StatusComponent';
37
71
  export * from './TabGroup';
38
- export * from './EditImageFormField';
39
- export * from './Collapse';
40
- export * from './Security';
41
- export * from './Button';
42
- export * from './InvalidYAMLTippy';
43
- export * from './NumbersCount';
44
- export * from './EnterpriseTag';
45
- export * from './ConfirmationModal';
46
- export * from './DiffViewer';
47
- export * from './DynamicDataTable';
72
+ export * from './Table';
48
73
  export * from './TagsKeyValueTable';
49
- export * from './FileUpload';
50
- export * from './AnimatedDeployButton';
51
- export * from './CMCS';
52
- export * from './FloatingVariablesSuggestions';
53
- export * from './ToggleResolveScopedVariables';
54
- export * from './BulkOperations';
55
- export * from './WorkflowOptionsModal';
56
- export * from './VirtualizedList';
74
+ export * from './TargetPlatforms';
57
75
  export * from './Textarea';
58
76
  export * from './ThemeSwitcher';
59
- export * from './TargetPlatforms';
77
+ export * from './ToggleResolveScopedVariables';
60
78
  export * from './UnsavedChanges';
61
79
  export * from './UnsavedChangesDialog';
62
- export * from './GraphVisualizer';
63
- export * from './GenericInfoCard';
64
- export * from './Icon';
65
- export * from './StatusComponent';
66
- export * from './RegistryIcon';
67
- export * from './GitProviderIcon';
68
- export * from './CustomInput';
69
- export * from './InfoBlock';
70
- export * from './CodeEditorWrapper';
71
- export * from './SSOProviderIcon';
72
- export * from './Table';
73
- export * from './Backdrop';
74
- export * from './CountrySelect';
75
- export * from './PhoneInput';
76
- export * from './FlagImage';
77
- export * from './DevtronLicenseCard';
78
- export * from './LoginBanner';
79
- export * from './Confetti';
80
- export * from './ActionMenu';
80
+ export * from './VirtualizedList';
81
+ export * from './WorkflowOptionsModal';
@@ -1,11 +1,11 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { PromptProps } from 'react-router-dom';
3
- import { Pair } from 'yaml';
4
3
  import { StrictRJSFSchema } from '@rjsf/utils';
4
+ import { Pair } from 'yaml';
5
5
  import { MaterialHistoryType } from '@Shared/Services/app.types';
6
- import { MaterialInfo, SortingOrder, UserApprovalConfigType, ApprovalConfigDataType, UserApprovalInfo } from '../Common';
7
- import { BorderConfigType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
6
+ import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
8
7
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
8
+ import { BorderConfigType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
9
9
  interface HighlightSearchTextProps {
10
10
  /**
11
11
  * The text to be highlighted
@@ -1,2 +1,2 @@
1
- export { default as useDownload } from './UseDownload';
2
1
  export * from './types';
2
+ export { default as useDownload } from './UseDownload';
@@ -1,6 +1,7 @@
1
- export * from './UsePrompt';
2
- export * from './useGetResourceKindsOptions';
3
1
  export * from './UseDownload';
4
2
  export * from './useForm';
3
+ export * from './useGetResourceKindsOptions';
4
+ export * from './useOneTimePrompt';
5
+ export * from './UsePrompt';
5
6
  export * from './useStickyEvent';
6
7
  export * from './useUserPreferences';
@@ -1,5 +1,5 @@
1
1
  import { BaseSyntheticEvent, ChangeEvent } from 'react';
2
- import { UseFormSubmitHandler, UseFormValidations, UseFormErrorHandler } from './useForm.types';
2
+ import { UseFormErrorHandler, UseFormSubmitHandler, UseFormValidations } from './useForm.types';
3
3
  /**
4
4
  * A custom hook to manage form state, validation, and submission handling.
5
5
  *
@@ -57,6 +57,8 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
57
57
  shouldDirty?: boolean;
58
58
  /** A boolean indicating whether to mark the field as touched after setting the value. */
59
59
  shouldTouch?: boolean;
60
+ /** A boolean indicating whether to trigger validation after setting the value. */
61
+ triggerError?: boolean;
60
62
  }) => void;
61
63
  reset: (formData: T, resetOptions?: {
62
64
  /** A boolean indicating whether to retain the current dirty state of the form fields. */
@@ -67,8 +69,14 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
67
69
  keepErrors?: boolean;
68
70
  /** A boolean indicating whether the form should check for dirty state upon reset. */
69
71
  triggerDirty?: boolean;
72
+ /** A boolean indicating whether the form should check for errors upon reset. */
73
+ triggerError?: boolean;
70
74
  /** A boolean indicating whether the initial values of the form should be retained after reset. If false, provided formData will become initial data. */
71
75
  keepInitialValues?: boolean;
76
+ /** Partial initial values to override the current initial values upon reset.
77
+ * @note `keepInitialValues` will have no effect when this is provided.
78
+ */
79
+ formInitialValues?: Partial<T>;
72
80
  }) => void;
73
81
  /** An object representing additional form state. */
74
82
  formState: {
@@ -1,2 +1,2 @@
1
+ export type { UseGetResourceKindOptionsReturnType, UseGetResourceKindsOptionsProps } from './types';
1
2
  export { default as useGetResourceKindsOptions } from './useGetResourceKindsOptions';
2
- export type { UseGetResourceKindsOptionsProps, UseGetResourceKindOptionsReturnType } from './types';
@@ -1,5 +1,5 @@
1
- import { EnvironmentType, ResourceKindType } from '../../types';
2
1
  import { ServerErrors } from '../../../Common/ServerError';
2
+ import { EnvironmentType, ResourceKindType } from '../../types';
3
3
  import { getAppOptionsGroupedByProjects, getClusterOptions, getProjectOptions } from './service';
4
4
  export interface AppType {
5
5
  name: string;
@@ -0,0 +1 @@
1
+ export declare const ONE_TIME_PROMPT_LOCAL_STORAGE_KEY = "one-time-prompt-do-not-show-again";
@@ -0,0 +1 @@
1
+ export * from './useOneTimePrompt';
@@ -0,0 +1,3 @@
1
+ export interface UseOneTimePromptProps {
2
+ localStorageKey: string;
3
+ }
@@ -0,0 +1,6 @@
1
+ import { UseOneTimePromptProps } from './types';
2
+ export declare const useOneTimePrompt: ({ localStorageKey }: UseOneTimePromptProps) => {
3
+ showPrompt: boolean;
4
+ handleClose: () => void;
5
+ handleDoNotShowAgainClose: () => void;
6
+ };
@@ -1,4 +1,4 @@
1
- export { useUserPreferences } from './useUserPrefrences';
2
1
  export * from './constants';
2
+ export { getUserPreferences, updateUserPreferences } from './service';
3
3
  export * from './types';
4
- export { updateUserPreferences, getUserPreferences } from './service';
4
+ export { useUserPreferences } from './useUserPrefrences';
@@ -1,4 +1,4 @@
1
- import { UserPreferencesType, UserPreferenceResourceProps } from './types';
1
+ import { UserPreferenceResourceProps, UserPreferencesType } from './types';
2
2
  /**
3
3
  * @returns UserPreferencesType
4
4
  * @description This function fetches the user preferences from the server. It uses the `get` method to make a request to the server and retrieves the user preferences based on the `USER_PREFERENCES_ATTRIBUTE_KEY`. The result is parsed and returned as a `UserPreferencesType` object.
@@ -1,6 +1,7 @@
1
- import { AppThemeType, BaseAppMetaData, ResourceKindType } from '../../index';
2
- import { ThemeConfigType, ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
3
1
  import { USER_PREFERENCES_ATTRIBUTE_KEY } from '@Shared/Hooks/useUserPreferences/constants';
2
+ import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
3
+ import { BaseAppMetaData } from '../../Services';
4
+ import { ResourceKindType } from '../../types';
4
5
  export interface GetUserPreferencesQueryParamsType {
5
6
  key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
6
7
  }
@@ -1,4 +1,4 @@
1
- import { BaseAppMetaData } from '../../index';
1
+ import { BaseAppMetaData } from '../../Services';
2
2
  import { UserPreferenceFilteredListTypes, UserPreferenceResourceType } from './types';
3
3
  export declare const getUserPreferenceResourcesMetadata: (recentlyVisited: BaseAppMetaData[]) => UserPreferenceResourceType;
4
4
  export declare const getFilteredUniqueAppList: ({ userPreferencesResponse, appId, appName, }: UserPreferenceFilteredListTypes) => BaseAppMetaData[];
@@ -1,4 +1,4 @@
1
+ export { THEME_PREFERENCE_STORAGE_KEY } from './constants';
1
2
  export * from './ThemeProvider';
2
3
  export { AppThemeType } from './types';
3
4
  export { getComponentSpecificThemeClass, getThemePreferenceText } from './utils';
4
- export { THEME_PREFERENCE_STORAGE_KEY } from './constants';
@@ -1,4 +1,4 @@
1
- import { AppThemeType, ThemePreferenceType, ThemeConfigType } from './types';
1
+ import { AppThemeType, ThemeConfigType, ThemePreferenceType } from './types';
2
2
  export declare const getAppThemeForAutoPreference: () => AppThemeType;
3
3
  export declare const setThemePreferenceInLocalStorage: (themePreference: ThemePreferenceType) => void;
4
4
  export declare const logThemeToAnalytics: ({ appTheme, themePreference }: ThemeConfigType) => void;
@@ -1,2 +1,2 @@
1
- export * from './UserEmailProvider';
2
1
  export * from './types';
2
+ export * from './UserEmailProvider';
@@ -1,5 +1,5 @@
1
- export * from './MainContextProvider';
2
1
  export * from './ImageSelectionUtility';
2
+ export * from './MainContextProvider';
3
3
  export * from './ThemeProvider';
4
- export * from './UserEmailProvider';
5
4
  export type { MainContext } from './types';
5
+ export * from './UserEmailProvider';
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
- import { ServerInfo } from '../Components/Header/types';
3
2
  import { SERVER_MODE } from '../../Common';
3
+ import { ServerInfo } from '../Components/Header/types';
4
4
  import { DevtronLicenseInfo, LicenseInfoDialogType } from '..';
5
5
  export interface MainContext {
6
6
  serverMode: SERVER_MODE;
@@ -1,4 +1,4 @@
1
- import { ToastOptions, ToastContainerProps } from 'react-toastify';
1
+ import { ToastContainerProps, ToastOptions } from 'react-toastify';
2
2
  import { ToastProps, ToastVariantType } from './types';
3
3
  export declare const TOAST_BASE_CONFIG: ToastContainerProps;
4
4
  export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<ToastVariantType, Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
@@ -1,3 +1,3 @@
1
1
  export { default as ToastManager, ToastManagerContainer } from './toastManager.service';
2
- export { ToastVariantType } from './types';
3
2
  export type { ToastProps } from './types';
3
+ export { ToastVariantType } from './types';
@@ -1,5 +1,5 @@
1
- import { ButtonComponentType, ButtonProps } from '../../Components';
2
1
  import { ReactElement } from 'react';
2
+ import { ButtonComponentType, ButtonProps } from '../../Components';
3
3
  export declare enum ToastVariantType {
4
4
  info = "info",
5
5
  success = "success",
@@ -1,6 +1,6 @@
1
1
  import { AppConfigProps } from '../../Pages/index';
2
2
  import { ResponseType } from '../../Common';
3
- import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
3
+ import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType, CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
4
4
  export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
5
5
  /**
6
6
  * The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
@@ -1,6 +1,6 @@
1
- import { OverrideMergeStrategyType } from '../../Pages/Applications';
2
1
  import { TargetPlatformsDTO } from '../types';
3
- import { ReleaseTag, UserApprovalMetadataType, ResponseType } from '../../Common';
2
+ import { OverrideMergeStrategyType } from '../../Pages/Applications';
3
+ import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
4
4
  interface WebhookDataType {
5
5
  id: number;
6
6
  eventActionType: string;
@@ -1,7 +1,7 @@
1
- export * from './types';
2
- export * from './app.types';
3
1
  export * from './app.service';
2
+ export * from './app.types';
4
3
  export * from './common.service';
4
+ export * from './template.service';
5
5
  export * from './ToastManager';
6
+ export * from './types';
6
7
  export * from './utils';
7
- export * from './template.service';
@@ -1,6 +1,6 @@
1
- import { AppDetails, AppType, EnvDetails, Node, PodMetaData, iNode } from '../types';
1
+ import { AppDetails, AppType, EnvDetails, iNode, Node, PodMetaData } from '../types';
2
2
  export declare function getiNodesByRootNodeWithChildNodes(_nodes: Array<Node>, rootNodes: Array<iNode>, podMetadata?: Array<PodMetaData>): Array<iNode>;
3
- export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "progressing" | "healthy" | "degraded";
3
+ export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "healthy" | "progressing" | "degraded";
4
4
  export declare function getiNodesByKindWithChildNodes(_nodes: Array<Node>, _kind: string): Array<iNode>;
5
5
  export declare function getPodsRootParentNameAndStatus(_nodes: Array<Node>): Array<[string, string]>;
6
6
  export declare const getPodsForRootNodeName: (_rootNode: string, _treeNodes: Array<Node>) => Array<iNode>;
@@ -1,11 +1,11 @@
1
+ export * from './Analytics';
2
+ export * from './API';
1
3
  export * from './Components';
2
- export * from './validations';
4
+ export * from './constants';
3
5
  export * from './Helpers';
4
- export * from './types';
6
+ export * from './Hooks';
5
7
  export * from './Providers';
6
- export * from './constants';
7
8
  export * from './Services';
8
9
  export * from './Store';
9
- export * from './Hooks';
10
- export * from './API';
11
- export * from './Analytics';
10
+ export * from './types';
11
+ export * from './validations';
@@ -1,9 +1,9 @@
1
+ import { ParsedCountry } from 'react-international-phone';
1
2
  import { Dayjs } from 'dayjs';
2
3
  import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
3
- import { ParsedCountry } from 'react-international-phone';
4
- import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType, SegmentedControlProps } from '../Common';
5
- import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
4
+ import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
6
5
  import { SelectPickerOptionType } from './Components';
6
+ import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
7
7
  export declare enum EnvType {
8
8
  CHART = "helm_charts",
9
9
  APPLICATION = "apps"
@@ -340,8 +340,7 @@ export declare enum CDMaterialSidebarType {
340
340
  * }
341
341
  * ```
342
342
  *
343
- * @example Usage with `PatchOperationType.remove`
344
- * Note: Value is not allowed for remove operation
343
+ * @example Usage with `PatchOperationType.remove` without value
345
344
  *
346
345
  * ```ts
347
346
  * const query: PatchQueryType<string> = {
@@ -349,8 +348,18 @@ export declare enum CDMaterialSidebarType {
349
348
  * path: 'name'
350
349
  * }
351
350
  * ```
351
+ *
352
+ * @example Usage with `PatchOperationType.remove` with value
353
+ *
354
+ * ```ts
355
+ * const query: PatchQueryType<string, number, true> = {
356
+ * op: PatchOperationType.remove,
357
+ * path: 'name'
358
+ * value: 1
359
+ * }
360
+ * ```
352
361
  */
353
- export type PatchQueryType<T extends string, K = unknown> = {
362
+ export type PatchQueryType<T extends string, K = unknown, IsRemoveValueEnabled extends boolean = false> = {
354
363
  /**
355
364
  * The path of the json to be patched
356
365
  */
@@ -369,7 +378,7 @@ export type PatchQueryType<T extends string, K = unknown> = {
369
378
  * Operation type for patch
370
379
  */
371
380
  op: PatchOperationType.remove;
372
- value?: never;
381
+ value?: IsRemoveValueEnabled extends true ? K : never;
373
382
  } | {
374
383
  /**
375
384
  * Operation type for add