@devtron-labs/devtron-fe-common-lib 0.0.76-beta-2 → 0.0.76-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 (190) hide show
  1. package/dist/Common/AddCDButton/AddCDButton.d.ts +1 -1
  2. package/dist/Common/AddCDButton/types.d.ts +1 -0
  3. package/dist/Common/AddCDButton/utils.d.ts +1 -0
  4. package/dist/Common/Api.d.ts +2 -1
  5. package/dist/Common/AppStatus/AppStatus.d.ts +1 -1
  6. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +2 -1
  7. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -1
  8. package/dist/Common/ChartVersionAndTypeSelector.d.ts +1 -0
  9. package/dist/Common/Checkbox.d.ts +2 -1
  10. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +2 -2
  11. package/dist/Common/CodeEditor/CodeEditor.d.ts +2 -1
  12. package/dist/Common/Common.service.d.ts +1 -1
  13. package/dist/Common/Constants.d.ts +27 -8
  14. package/dist/Common/CustomInput/CustomInput.d.ts +1 -0
  15. package/dist/Common/CustomInput/Types.d.ts +2 -1
  16. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -0
  17. package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -0
  18. package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -0
  19. package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -0
  20. package/dist/Common/CustomTagSelector/Types.d.ts +2 -2
  21. package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +1 -1
  22. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -0
  23. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -0
  24. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +1 -0
  25. package/dist/Common/Dialogs/DeleteDialog.d.ts +2 -1
  26. package/dist/Common/Dialogs/DialogForm.d.ts +2 -1
  27. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
  28. package/dist/Common/Dialogs/Types.d.ts +1 -0
  29. package/dist/Common/DraggableWrapper/DraggableButton.d.ts +1 -1
  30. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
  31. package/dist/Common/DraggableWrapper/types.d.ts +1 -0
  32. package/dist/Common/Drawer/Drawer.d.ts +1 -0
  33. package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -0
  34. package/dist/Common/ErrorPage.d.ts +4 -0
  35. package/dist/Common/ErrorScreenManager.d.ts +4 -0
  36. package/dist/Common/ErrorScreenNotAuthorized.d.ts +4 -0
  37. package/dist/Common/Grid/Grid.d.ts +1 -1
  38. package/dist/Common/Grid/types.d.ts +1 -0
  39. package/dist/Common/Helper.d.ts +5 -2
  40. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +1 -0
  41. package/dist/Common/Hooks/index.d.ts +0 -1
  42. package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -0
  43. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -0
  44. package/dist/Common/ImageTags.Types.d.ts +1 -1
  45. package/dist/Common/ImageTags.d.ts +1 -0
  46. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -0
  47. package/dist/Common/Modals/Modal.d.ts +2 -1
  48. package/dist/Common/Modals/OpaqueModal.d.ts +2 -1
  49. package/dist/Common/Modals/VisibleModal.d.ts +2 -1
  50. package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
  51. package/dist/Common/MultiSelectCustomization.d.ts +2 -1
  52. package/dist/Common/Pagination/PageSizeSelector.d.ts +1 -0
  53. package/dist/Common/Pagination/Pagination.d.ts +1 -0
  54. package/dist/Common/Pagination/utils.d.ts +1 -0
  55. package/dist/Common/Policy.Types.d.ts +2 -1
  56. package/dist/Common/PopupMenu.d.ts +1 -0
  57. package/dist/Common/Progressing.d.ts +1 -0
  58. package/dist/Common/RJSF/Form.d.ts +1 -0
  59. package/dist/Common/RJSF/common/FieldRow.d.ts +2 -1
  60. package/dist/Common/RJSF/common/types.d.ts +1 -0
  61. package/dist/Common/RJSF/config.d.ts +2 -1
  62. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -0
  63. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +1 -0
  64. package/dist/Common/RJSF/templates/BaseInput.d.ts +1 -0
  65. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -0
  66. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +1 -0
  67. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +1 -0
  68. package/dist/Common/RJSF/templates/Description.d.ts +1 -0
  69. package/dist/Common/RJSF/templates/Field.d.ts +1 -0
  70. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +1 -0
  71. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -0
  72. package/dist/Common/RJSF/templates/TitleField.d.ts +1 -0
  73. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +1 -0
  74. package/dist/Common/RJSF/types.d.ts +2 -1
  75. package/dist/Common/RJSF/utils.d.ts +2 -1
  76. package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -0
  77. package/dist/Common/RJSF/widgets/Select.d.ts +1 -0
  78. package/dist/Common/RadioGroup/RadioGroup.d.ts +2 -1
  79. package/dist/Common/RadioGroup.d.ts +2 -2
  80. package/dist/Common/RadioGroupItem.d.ts +1 -0
  81. package/dist/Common/Reload.d.ts +2 -2
  82. package/dist/Common/ResizableTextarea.d.ts +2 -1
  83. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -0
  84. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +2 -2
  85. package/dist/Common/Select/Select.d.ts +2 -1
  86. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -0
  87. package/dist/Common/SortableTableHeaderCell/types.d.ts +1 -0
  88. package/dist/Common/TippyCustomized.d.ts +1 -0
  89. package/dist/Common/ToastBody.d.ts +2 -1
  90. package/dist/Common/Toggle/Toggle.d.ts +1 -0
  91. package/dist/Common/Types.d.ts +26 -68
  92. package/dist/Common/index.d.ts +2 -3
  93. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +2 -1
  94. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +1 -0
  95. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +2 -1
  96. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +2 -1
  97. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +2 -1
  98. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +2 -1
  99. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +2 -1
  100. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +2 -1
  101. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +2 -1
  102. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -0
  103. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +2 -1
  104. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -1
  105. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -1
  106. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +4 -3
  107. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +1 -0
  108. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +2 -1
  109. package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -10
  110. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -0
  111. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +1 -0
  112. package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +1 -0
  113. package/dist/Shared/Components/BulkSelection/types.d.ts +1 -1
  114. package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +2 -1
  115. package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +2 -1
  116. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -0
  117. package/dist/Shared/Components/FilterChips/types.d.ts +1 -0
  118. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  119. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -21
  120. package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -0
  121. package/dist/Shared/Components/GettingStartedCard/service.d.ts +1 -0
  122. package/dist/Shared/Components/GettingStartedCard/types.d.ts +1 -0
  123. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -0
  124. package/dist/Shared/Components/Header/HelpNav.d.ts +1 -0
  125. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -0
  126. package/dist/Shared/Components/Header/constants.d.ts +1 -0
  127. package/dist/Shared/Components/Header/service.d.ts +2 -1
  128. package/dist/Shared/Components/Header/types.d.ts +1 -1
  129. package/dist/Shared/Components/KeyValueList/KeyValueList.d.ts +1 -0
  130. package/dist/Shared/Components/LogoutCard.d.ts +2 -1
  131. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -1
  132. package/dist/Shared/Components/index.d.ts +0 -7
  133. package/dist/Shared/Helpers.d.ts +0 -7
  134. package/dist/Shared/Providers/MainContextProvider.d.ts +1 -0
  135. package/dist/Shared/Providers/types.d.ts +3 -2
  136. package/dist/Shared/index.d.ts +0 -1
  137. package/dist/Shared/types.d.ts +0 -157
  138. package/dist/assets/index.css +1 -1
  139. package/dist/index.d.ts +0 -2
  140. package/dist/index.js +14311 -14407
  141. package/package.json +3 -5
  142. package/dist/Common/Error.d.ts +0 -17
  143. package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
  144. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +0 -2
  145. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +0 -3
  146. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +0 -3
  147. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +0 -2
  148. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -8
  149. package/dist/Common/Markdown/MarkDown.d.ts +0 -3
  150. package/dist/Common/Markdown/Types.d.ts +0 -7
  151. package/dist/Common/Markdown/index.d.ts +0 -1
  152. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +0 -4
  153. package/dist/Common/SegmentedBarChart/constants.d.ts +0 -5
  154. package/dist/Common/SegmentedBarChart/index.d.ts +0 -2
  155. package/dist/Common/SegmentedBarChart/types.d.ts +0 -11
  156. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -3
  157. package/dist/Shared/Components/ActivityIndicator/index.d.ts +0 -1
  158. package/dist/Shared/Components/ActivityIndicator/types.d.ts +0 -3
  159. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +0 -3
  160. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +0 -1
  161. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +0 -3
  162. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +0 -3
  163. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +0 -1
  164. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +0 -3
  165. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +0 -3
  166. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +0 -3
  167. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +0 -6
  168. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +0 -1
  169. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +0 -10
  170. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +0 -2
  171. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +0 -3
  172. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +0 -1
  173. package/dist/Shared/Components/ImageCard/index.d.ts +0 -3
  174. package/dist/Shared/Components/ImageCard/types.d.ts +0 -40
  175. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +0 -3
  176. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +0 -1
  177. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +0 -23
  178. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +0 -3
  179. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +0 -1
  180. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +0 -3
  181. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -3
  182. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
  183. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
  184. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +0 -3
  185. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
  186. package/dist/Shared/Components/Vulnerabilities/index.d.ts +0 -2
  187. package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
  188. package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -8
  189. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -3
  190. package/dist/Shared/constants.d.ts +0 -31
@@ -1,4 +1,5 @@
1
1
  import { TranslatableString } from '@rjsf/utils';
2
+
2
3
  /**
3
4
  * Override for the TranslatableString from RJSF
4
5
  */
@@ -16,7 +17,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
16
17
  /**
17
18
  * Returns the redirection props for a url
18
19
  */
19
- export declare const getRedirectionProps: (url: string) => import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
20
+ export declare const getRedirectionProps: (url: string) => import('react').AnchorHTMLAttributes<HTMLAnchorElement> & {
20
21
  url: string;
21
22
  };
22
23
  /**
@@ -1,2 +1,3 @@
1
1
  import { WidgetProps } from '@rjsf/utils';
2
+
2
3
  export declare const Checkbox: ({ id, onChange, value, required, disabled, readonly, autofocus, onBlur, onFocus, }: WidgetProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { WidgetProps } from '@rjsf/utils';
2
+
2
3
  export declare const Select: (props: WidgetProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
- import React from 'react';
2
1
  import { RadioGroupComposition, RadioGroupInterface } from '../Types';
2
+ import { default as React } from 'react';
3
+
3
4
  declare const RadioGroup: React.FC<RadioGroupInterface> & RadioGroupComposition;
4
5
  export default RadioGroup;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from './Types';
3
- export declare const RadioGroupContext: import("react").Context<{
2
+
3
+ export declare const RadioGroupContext: import('react').Context<{
4
4
  name: string;
5
5
  value: string;
6
6
  disabled: boolean;
@@ -1,3 +1,4 @@
1
1
  import { RadioGroupItemProps } from './Types';
2
+
2
3
  declare const RadioGroupItem: ({ value, disabled, children, dataTestId }: RadioGroupItemProps) => JSX.Element;
3
4
  export default RadioGroupItem;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ReloadType } from './Types';
3
- export default function Reload({ reload, className }: ReloadType): JSX.Element;
2
+
3
+ export default function Reload({ reload, className, heightToDeduct }: ReloadType): JSX.Element;
@@ -1,3 +1,4 @@
1
- import React from 'react';
2
1
  import { ResizableTextareaProps } from './Types';
2
+ import { default as React } from 'react';
3
+
3
4
  export declare const ResizableTextarea: React.FC<ResizableTextareaProps>;
@@ -1,4 +1,5 @@
1
1
  import { SearchBarProps } from './types';
2
+
2
3
  /**
3
4
  * Generic search input component with support for enter based and debounced search
4
5
  * Note: The component is uncontrolled
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScanVulnerabilitiesTableProps } from '../Types';
3
- export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
2
+
3
+ export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -1,4 +1,5 @@
1
- import React from 'react';
2
1
  import { SelectComposition, SelectProps } from './types';
2
+ import { default as React } from 'react';
3
+
3
4
  declare const Select: React.FC<SelectProps> & SelectComposition;
4
5
  export default Select;
@@ -1,4 +1,5 @@
1
1
  import { SortableTableHeaderCellProps } from './types';
2
+
2
3
  /**
3
4
  * Reusable component for the table header cell with support for sorting icons
4
5
  *
@@ -1,4 +1,5 @@
1
1
  import { SortingOrder } from '../Constants';
2
+
2
3
  export interface SortableTableHeaderCellProps {
3
4
  /**
4
5
  * If true, the cell is sorted
@@ -1,2 +1,3 @@
1
1
  import { TippyCustomizedProps } from './Types';
2
+
2
3
  export declare const TippyCustomized: (props: TippyCustomizedProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export declare class ToastBody extends React.Component<{
3
4
  title: string;
4
5
  subtitle?: string;
@@ -1,3 +1,4 @@
1
+
1
2
  declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, ...props }: {
2
3
  [x: string]: any;
3
4
  selected?: boolean;
@@ -1,8 +1,8 @@
1
- import React, { ReactNode, CSSProperties } from 'react';
2
- import { Placement } from 'tippy.js';
3
- import { ImageComment, ReleaseTag } from './ImageTags.Types';
4
1
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
5
- import { RegistryType } from '../Shared';
2
+ import { ImageComment, ReleaseTag } from './ImageTags.Types';
3
+ import { Placement } from 'tippy.js';
4
+ import { default as React, ReactNode, CSSProperties } from 'react';
5
+
6
6
  /**
7
7
  * Generic response type object with support for overriding the result type
8
8
  *
@@ -52,7 +52,6 @@ export interface CheckboxProps {
52
52
  onChange: (event: any) => void;
53
53
  isChecked: boolean;
54
54
  value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
55
- name?: string;
56
55
  disabled?: boolean;
57
56
  tabIndex?: number;
58
57
  rootClassName?: string;
@@ -110,6 +109,21 @@ export interface GenericEmptyStateType {
110
109
  layout?: 'row' | 'column';
111
110
  contentClassName?: string;
112
111
  }
112
+ export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
113
+ code: number;
114
+ heightToDeduct?: number;
115
+ }
116
+ export interface ErrorScreenManagerProps {
117
+ code?: number;
118
+ reload?: (...args: any[]) => any;
119
+ subtitle?: React.ReactChild;
120
+ reloadClass?: string;
121
+ heightToDeduct?: number;
122
+ }
123
+ export interface ErrorScreenNotAuthorizedProps {
124
+ subtitle?: React.ReactChild;
125
+ title?: string;
126
+ }
113
127
  export declare enum ImageType {
114
128
  Large = "large",
115
129
  Medium = "medium"
@@ -131,6 +145,7 @@ export interface InfoColourBarType {
131
145
  export interface ReloadType {
132
146
  reload?: (event?: any) => void;
133
147
  className?: string;
148
+ heightToDeduct?: number;
134
149
  }
135
150
  export interface RadioGroupItemProps {
136
151
  value: string;
@@ -248,34 +263,6 @@ export declare enum FilterStates {
248
263
  export declare enum MaterialDataSource {
249
264
  EXTERNAL = "ext"
250
265
  }
251
- export declare enum ImagePromotionRuntimeState {
252
- AWAITING = "AWAITING",
253
- PROMOTED = "PROMOTED",
254
- CANCELLED = "CANCELLED",
255
- STALE = "STALE"
256
- }
257
- export interface ImagePromotionPolicyApprovalMetadata {
258
- approverCount: number;
259
- allowRequesterFromApprove: boolean;
260
- allowImageBuilderFromApprove: boolean;
261
- allowApproverFromDeploy: boolean;
262
- }
263
- export interface ImagePromotionPolicyInfoType {
264
- name: string;
265
- id: number;
266
- description: string;
267
- conditions: FilterConditionsInfo[];
268
- approvalMetadata: ImagePromotionPolicyApprovalMetadata;
269
- }
270
- export interface PromotionApprovalMetadataType {
271
- approvalRequestId: number;
272
- approvalRuntimeState: ImagePromotionRuntimeState;
273
- approvedUsersData: ApprovalUserDataType[];
274
- requestedUserData: ApprovalUserDataType;
275
- policy: ImagePromotionPolicyInfoType;
276
- promotedFrom?: string;
277
- promotedFromType?: CDMaterialResourceQuery;
278
- }
279
266
  export interface DeploymentWindowArtifactMetadata {
280
267
  id: number;
281
268
  name: string;
@@ -307,7 +294,7 @@ export interface CDMaterialType {
307
294
  imageReleaseTags?: ReleaseTag[];
308
295
  artifactStatus?: string;
309
296
  filterState: FilterStates;
310
- registryType?: RegistryType;
297
+ registryType?: string;
311
298
  imagePath?: string;
312
299
  registryName?: string;
313
300
  scanToolId?: number;
@@ -317,28 +304,14 @@ export interface CDMaterialType {
317
304
  createdTime?: string;
318
305
  deployed?: boolean;
319
306
  dataSource?: MaterialDataSource;
320
- /**
321
- * The below two keys: `promotionApprovalMetaData`, `deployedOnEnvironments` are used in image promotion
322
- * and may not be available to cater other use-cases.
323
- */
324
- promotionApprovalMetadata?: PromotionApprovalMetadataType;
325
- deployedOnEnvironments?: string[];
326
307
  deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
327
308
  }
328
309
  export declare enum CDMaterialServiceEnum {
329
310
  ROLLBACK = "rollback",
330
- CD_MATERIALS = "cd-materials",
331
- IMAGE_PROMOTION = "image-promotion"
311
+ CD_MATERIALS = "cd-materials"
332
312
  }
333
313
  export declare enum CDMaterialResourceQuery {
334
- PENDING_APPROVAL = "PENDING_APPROVAL",
335
- PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE",
336
- CI = "CI",
337
- ENVIRONMENT = "ENVIRONMENT",
338
- WEBHOOK = "WEBHOOK",
339
- LINKED_CI = "LINKED-CI",
340
- CI_JOB = "CI-JOB",
341
- LINKED_CD = "LINKED-CD"
314
+ PENDING_APPROVAL = "PENDING_APPROVAL"
342
315
  }
343
316
  export declare enum CDMaterialFilterQuery {
344
317
  RESOURCE = "ELIGIBLE_RESOURCES",
@@ -349,11 +322,6 @@ export interface CDMaterialServiceQueryParams {
349
322
  offset?: number;
350
323
  size?: number;
351
324
  resource?: CDMaterialResourceQuery;
352
- resourceName?: string;
353
- resourceId?: number;
354
- workflowId?: number;
355
- appId?: number;
356
- pendingForCurrentUser?: boolean;
357
325
  filter?: CDMaterialFilterQuery;
358
326
  }
359
327
  export interface DownstreamNodesEnvironmentsType {
@@ -425,7 +393,6 @@ export interface CommonNodeAttr {
425
393
  deploymentAppCreated?: boolean;
426
394
  isLast?: boolean;
427
395
  downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
428
- cipipelineId?: number;
429
396
  isDeploymentBlocked?: boolean;
430
397
  }
431
398
  export declare enum DeploymentAppTypes {
@@ -445,8 +412,6 @@ export interface VulnerabilityType {
445
412
  }
446
413
  export interface ScanVulnerabilitiesTableProps {
447
414
  vulnerabilities: VulnerabilityType[];
448
- hidePolicy?: boolean;
449
- shouldStick?: boolean;
450
415
  }
451
416
  export interface MaterialInfo {
452
417
  revision: string;
@@ -477,7 +442,7 @@ export interface FilterConditionsListType {
477
442
  export interface CDMaterialsApprovalInfo {
478
443
  approvalUsers: string[];
479
444
  userApprovalConfig: UserApprovalConfigType;
480
- canApproverDeploy: boolean;
445
+ requestedUserId: number;
481
446
  }
482
447
  export interface CDMaterialsMetaInfo {
483
448
  tagsEditable: boolean;
@@ -485,16 +450,9 @@ export interface CDMaterialsMetaInfo {
485
450
  hideImageTaggingHardDelete: boolean;
486
451
  resourceFilters?: FilterConditionsListType[];
487
452
  totalCount: number;
488
- /**
489
- * This is the ID of user that has request the material
490
- */
491
- requestedUserId: number;
492
- }
493
- export interface ImagePromotionMaterialInfo {
494
- isApprovalPendingForPromotion: boolean;
495
- imagePromotionApproverEmails: string[];
453
+ canApproverDeploy: boolean;
496
454
  }
497
- export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
455
+ export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
498
456
  materials: CDMaterialType[];
499
457
  }
500
458
  export interface InputDetailType {
@@ -4,7 +4,8 @@ export * from './Types';
4
4
  export * from './Api';
5
5
  export * from './ToastBody';
6
6
  export { default as Reload } from './Reload';
7
- export * from './Error';
7
+ export { default as ErrorScreenManager } from './ErrorScreenManager';
8
+ export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
8
9
  export * from './Helper';
9
10
  export * from './Progressing';
10
11
  export * from './Drawer/Drawer';
@@ -49,5 +50,3 @@ export * from './AddCDButton';
49
50
  export * from './CustomInput';
50
51
  export * from './DraggableWrapper';
51
52
  export * from './Pagination';
52
- export * from './Markdown';
53
- export * from './SegmentedBarChart';
@@ -1,5 +1,6 @@
1
- import { UserRoleGroupsTableProps } from './types';
2
1
  import { UserRoleGroup } from '../../../types';
2
+ import { UserRoleGroupsTableProps } from './types';
3
+
3
4
  declare const UserRoleGroupTableRow: ({ id, name, description, status, timeToLive, modifierClassName, disableStatusComponent, handleStatusUpdate, handleDelete, statusComponent: StatusComponent, showStatus, showDelete, }: UserRoleGroup & Pick<UserRoleGroupsTableProps, "disableStatusComponent" | "handleStatusUpdate" | "handleDelete" | "statusComponent" | "showStatus"> & {
4
5
  modifierClassName: string;
5
6
  showDelete: boolean;
@@ -1,3 +1,4 @@
1
1
  import { UserRoleGroupsTableProps } from './types';
2
+
2
3
  declare const UserRoleGroupsTable: ({ roleGroups, showStatus, handleDelete, statusComponent, statusHeaderComponent: StatusHeaderComponent, handleStatusUpdate, disableStatusComponent, }: UserRoleGroupsTableProps) => JSX.Element;
3
4
  export default UserRoleGroupsTable;
@@ -1,5 +1,6 @@
1
- import { FC } from 'react';
2
1
  import { UserRoleGroup } from '../../../types';
2
+ import { FC } from 'react';
3
+
3
4
  export type UserRoleGroupsTableProps = {
4
5
  roleGroups: UserRoleGroup[];
5
6
  showStatus?: boolean;
@@ -1,5 +1,6 @@
1
- import { SortingParams } from '../../../Common';
2
1
  import { UserListSortableKeys, UserStatus } from './constants';
2
+ import { SortingParams } from '../../../Common';
3
+
3
4
  export type BaseFilterQueryParams<T> = {
4
5
  /**
5
6
  * Offset for the list result
@@ -1,4 +1,5 @@
1
- import { FunctionComponent } from 'react';
2
1
  import { BuildInfraConfigFormProps } from './types';
2
+ import { FunctionComponent } from 'react';
3
+
3
4
  declare const BuildInfraConfigForm: FunctionComponent<BuildInfraConfigFormProps>;
4
5
  export default BuildInfraConfigForm;
@@ -1,4 +1,5 @@
1
- import { FunctionComponent } from 'react';
2
1
  import { BuildInfraInputFieldComponentProps } from './types';
2
+ import { FunctionComponent } from 'react';
3
+
3
4
  declare const BuildInfraProfileDescriptionField: FunctionComponent<BuildInfraInputFieldComponentProps>;
4
5
  export default BuildInfraProfileDescriptionField;
@@ -1,5 +1,6 @@
1
- import { FunctionComponent } from 'react';
2
1
  import { BuildInfraFormActionProps } from './types';
2
+ import { FunctionComponent } from 'react';
3
+
3
4
  /**
4
5
  * In case need arise for variants break this CustomInput and Select as a separate component
5
6
  */
@@ -1,4 +1,5 @@
1
- import { FunctionComponent } from 'react';
2
1
  import { BuildInfraFormItemProps } from './types';
2
+ import { FunctionComponent } from 'react';
3
+
3
4
  declare const BuildInfraFormItem: FunctionComponent<BuildInfraFormItemProps>;
4
5
  export default BuildInfraFormItem;
@@ -1,4 +1,5 @@
1
- import { FunctionComponent } from 'react';
2
1
  import { BuildInfraInputFieldComponentProps } from './types';
2
+ import { FunctionComponent } from 'react';
3
+
3
4
  declare const BuildInfraProfileNameField: FunctionComponent<BuildInfraInputFieldComponentProps>;
4
5
  export default BuildInfraProfileNameField;
@@ -1,3 +1,4 @@
1
1
  import { DescriptorProps } from './types';
2
+
2
3
  declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
3
4
  export default Descriptor;
@@ -1,4 +1,5 @@
1
- import { FunctionComponent } from 'react';
2
1
  import { FooterProps } from './types';
2
+ import { FunctionComponent } from 'react';
3
+
3
4
  declare const Footer: FunctionComponent<FooterProps>;
4
5
  export default Footer;
@@ -1,5 +1,6 @@
1
- import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
2
1
  import { BuildInfraFormFieldType, BuildInfraMetaConfigTypes, ProfileInputErrorType, BuildInfraProfileBase, HandleProfileInputChangeType } from './types';
2
+ import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
3
+
3
4
  export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
4
5
  readonly STEP: "any";
5
6
  readonly MIN: 0;
@@ -1,5 +1,6 @@
1
- import { ResponseType } from '../../../Common';
2
1
  import { BuildInfraProfileResponseType, BuildInfraProfileTransformerType, CreateBuildInfraProfileType, GetBuildInfraProfileType, UpdateBuildInfraProfileType } from './types';
2
+ import { ResponseType } from '../../../Common';
3
+
3
4
  export declare const getTransformedBuildInfraProfileResponse: ({ configurationUnits, defaultConfigurations, profile, fromCreateView, }: BuildInfraProfileTransformerType) => BuildInfraProfileResponseType;
4
5
  export declare const getBuildInfraProfileByName: ({ name, fromCreateView, }: GetBuildInfraProfileType) => Promise<BuildInfraProfileResponseType>;
5
6
  export declare const updateBuildInfraProfile: ({ name, profileInput }: UpdateBuildInfraProfileType) => Promise<ResponseType<any>>;
@@ -1,7 +1,8 @@
1
- import { FormEvent, FunctionComponent, ReactNode } from 'react';
2
- import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
3
- import { ValidationResponseType } from '../../../Shared';
4
1
  import { ServerErrors } from '../../../Common';
2
+ import { ValidationResponseType } from '../../../Shared';
3
+ import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
4
+ import { FormEvent, FunctionComponent, ReactNode } from 'react';
5
+
5
6
  /**
6
7
  * Unique actions that will be dispatched and,
7
8
  * Keeping some values (cpu_limit, etc) in sync with backend
@@ -1,4 +1,5 @@
1
1
  import { UseBuildInfraFormProps, UseBuildInfraFormResponseType, ValidateRequestLimitResponseType, ValidateRequestLimitType } from './types';
2
+
2
3
  export declare const validateRequestLimit: ({ request, limit, unitsMap, }: ValidateRequestLimitType) => ValidateRequestLimitResponseType;
3
4
  export declare const useBuildInfraForm: ({ name, editProfile, handleSuccessRedirection, }: UseBuildInfraFormProps) => UseBuildInfraFormResponseType;
4
5
  export declare const unitSelectorStyles: () => {
@@ -1,3 +1,4 @@
1
1
  import { APIResponseHandlerProps } from './types';
2
- declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
2
+
3
+ declare const APIResponseHandler: ({ isLoading, progressingProps, error, notAuthorized, notFoundText, reloadProps, children, }: APIResponseHandlerProps) => JSX.Element;
3
4
  export default APIResponseHandler;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
2
1
  import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
3
- import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
2
+ import { ReactNode } from 'react';
3
+
4
4
  export interface EmptyPageTextType {
5
5
  title?: GenericEmptyStateType['title'];
6
6
  subTitle?: GenericEmptyStateType['subTitle'];
@@ -14,10 +14,6 @@ export interface APIResponseHandlerProps {
14
14
  * If loading is true, would load send these props to Progressing component
15
15
  */
16
16
  progressingProps?: ProgressingProps;
17
- /**
18
- * If given, would show this component instead of default Progressing component
19
- */
20
- customLoader?: ReactNode;
21
17
  /**
22
18
  * If true and isLoading is false would show default Reload component
23
19
  * In case error code is 404 show default 404 page using GenericEmptyState
@@ -35,10 +31,6 @@ export interface APIResponseHandlerProps {
35
31
  * If given, on Error, would load these props
36
32
  */
37
33
  reloadProps?: ReloadType;
38
- /**
39
- * If given, would show this component instead of default Error component
40
- */
41
- genericSectionErrorProps?: GenericSectionErrorStateProps;
42
34
  /**
43
35
  * If no Error and no Loading, would load this component
44
36
  */
@@ -1,3 +1,4 @@
1
1
  import { BulkSelectionProps } from './types';
2
+
2
3
  declare const BulkSelection: <T>({ showPagination }: BulkSelectionProps) => JSX.Element;
3
4
  export default BulkSelection;
@@ -1,3 +1,4 @@
1
1
  import { BulkSelectionDropdownItemsProps } from './types';
2
+
2
3
  declare const BulkSelectionDropdownItems: <T>({ locator, label, isSelected, handleBulkSelection, icon: Icon, iconClass, }: BulkSelectionDropdownItemsProps<T>) => JSX.Element;
3
4
  export default BulkSelectionDropdownItems;
@@ -1,3 +1,4 @@
1
1
  import { UseBulkSelectionProps, UseBulkSelectionReturnType } from './types';
2
+
2
3
  export declare const useBulkSelection: <T>() => UseBulkSelectionReturnType<T>;
3
4
  export declare const BulkSelectionProvider: <T>({ children, identifiers, getSelectAllDialogStatus, }: UseBulkSelectionProps<T>) => JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { CHECKBOX_VALUE } from '../../../Common';
2
+
3
3
  export declare enum BulkSelectionEvents {
4
4
  CLEAR_ALL_SELECTIONS = "CLEAR_ALL_SELECTIONS",
5
5
  CLEAR_IDENTIFIERS = "CLEAR_IDENTIFIERS",
@@ -1,4 +1,5 @@
1
- import React, { Component } from 'react';
1
+ import { default as React, Component } from 'react';
2
+
2
3
  export interface ButtonProps {
3
4
  disabled?: boolean;
4
5
  rootClassName: string;
@@ -1,3 +1,4 @@
1
- import type { EditableTextAreaProps } from './types';
1
+ import { EditableTextAreaProps } from './types';
2
+
2
3
  declare const EditableTextArea: (props: EditableTextAreaProps) => JSX.Element;
3
4
  export default EditableTextArea;
@@ -1,4 +1,5 @@
1
1
  import { FilterChipsProps } from './types';
2
+
2
3
  /**
3
4
  * Component for rendering the applied filter chips
4
5
  */
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export interface FilterChipProps {
3
4
  /**
4
5
  * Filter label
@@ -1,3 +1,4 @@
1
1
  import { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
2
+
3
+ declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
3
4
  export default GenericSectionErrorState;
@@ -2,31 +2,11 @@ export interface GenericSectionErrorStateProps {
2
2
  /**
3
3
  * Handler for reloading the section
4
4
  */
5
- reload?: () => void;
5
+ reload: () => void;
6
6
  /**
7
7
  * If true, border is added to the section
8
8
  *
9
9
  * @default false
10
10
  */
11
11
  withBorder?: boolean;
12
- /**
13
- * @default 'Failed to load'
14
- */
15
- title?: string;
16
- /**
17
- * @default 'We could not load the information on this page.'
18
- */
19
- subTitle?: string;
20
- /**
21
- * @default 'Please reload or try again later'
22
- */
23
- description?: string;
24
- /**
25
- * @default 'Reload'
26
- */
27
- buttonText?: string;
28
- /**
29
- * to be applied on parent div
30
- */
31
- rootClassName?: string;
32
12
  }
@@ -1,3 +1,4 @@
1
1
  import { GettingStartedType } from './types';
2
+
2
3
  declare const GettingStartedCard: ({ className, hideGettingStartedCard }: GettingStartedType) => JSX.Element;
3
4
  export default GettingStartedCard;
@@ -1,3 +1,4 @@
1
1
  import { LoginCountType } from './types';
2
+
2
3
  declare const updateLoginCount: (payload: any) => Promise<LoginCountType>;
3
4
  export default updateLoginCount;
@@ -1,4 +1,5 @@
1
1
  import { ResponseType } from '../../../Common';
2
+
2
3
  export interface LoginCount {
3
4
  emailId: string;
4
5
  key: string;
@@ -1,3 +1,4 @@
1
+
1
2
  export interface HeaderWithCreateButtonProps {
2
3
  headerName: string;
3
4
  }
@@ -1,3 +1,4 @@
1
1
  import { HelpNavType } from './types';
2
+
2
3
  declare const HelpNav: ({ className, setShowHelpCard, serverInfo, fetchingServerInfo, setGettingStartedClicked, showHelpCard, }: HelpNavType) => JSX.Element;
3
4
  export default HelpNav;
@@ -1,3 +1,4 @@
1
1
  import { PageHeaderType } from './types';
2
+
2
3
  declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
3
4
  export default PageHeader;
@@ -1,3 +1,4 @@
1
1
  import { HelpOptionType } from './types';
2
+
2
3
  export declare const EnterpriseHelpOptions: HelpOptionType[];
3
4
  export declare const OSSHelpOptions: HelpOptionType[];
@@ -1,4 +1,5 @@
1
- import { ResponseType } from '../../../Common';
2
1
  import { ServerInfoResponse } from './types';
2
+ import { ResponseType } from '../../../Common';
3
+
3
4
  export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
4
5
  export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;