@devtron-labs/devtron-fe-common-lib 0.0.77 → 0.0.78-beta-1

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 (191) 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 +2 -0
  13. package/dist/Common/Constants.d.ts +32 -3
  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/UseRegisterShortcut/UseRegisterShortcut.d.ts +2 -0
  41. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +3 -0
  42. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +4 -0
  43. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +2 -0
  44. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +8 -0
  45. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +1 -0
  46. package/dist/Common/Hooks/index.d.ts +1 -0
  47. package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -0
  48. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -0
  49. package/dist/Common/ImageTags.Types.d.ts +1 -1
  50. package/dist/Common/ImageTags.d.ts +1 -0
  51. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -0
  52. package/dist/Common/Markdown/MarkDown.d.ts +4 -0
  53. package/dist/Common/Markdown/Types.d.ts +7 -0
  54. package/dist/Common/Markdown/index.d.ts +1 -0
  55. package/dist/Common/Modals/Modal.d.ts +2 -1
  56. package/dist/Common/Modals/OpaqueModal.d.ts +2 -1
  57. package/dist/Common/Modals/VisibleModal.d.ts +2 -1
  58. package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
  59. package/dist/Common/MultiSelectCustomization.d.ts +2 -1
  60. package/dist/Common/Pagination/PageSizeSelector.d.ts +1 -0
  61. package/dist/Common/Pagination/Pagination.d.ts +1 -0
  62. package/dist/Common/Pagination/utils.d.ts +1 -0
  63. package/dist/Common/Policy.Types.d.ts +2 -1
  64. package/dist/Common/PopupMenu.d.ts +1 -0
  65. package/dist/Common/Progressing.d.ts +1 -0
  66. package/dist/Common/RJSF/Form.d.ts +1 -0
  67. package/dist/Common/RJSF/common/FieldRow.d.ts +2 -1
  68. package/dist/Common/RJSF/common/types.d.ts +1 -0
  69. package/dist/Common/RJSF/config.d.ts +2 -1
  70. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -0
  71. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +1 -0
  72. package/dist/Common/RJSF/templates/BaseInput.d.ts +1 -0
  73. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -0
  74. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +1 -0
  75. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +1 -0
  76. package/dist/Common/RJSF/templates/Description.d.ts +1 -0
  77. package/dist/Common/RJSF/templates/Field.d.ts +1 -0
  78. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +1 -0
  79. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -0
  80. package/dist/Common/RJSF/templates/TitleField.d.ts +1 -0
  81. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +1 -0
  82. package/dist/Common/RJSF/types.d.ts +2 -1
  83. package/dist/Common/RJSF/utils.d.ts +2 -1
  84. package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -0
  85. package/dist/Common/RJSF/widgets/Select.d.ts +1 -0
  86. package/dist/Common/RadioGroup/RadioGroup.d.ts +2 -1
  87. package/dist/Common/RadioGroup.d.ts +2 -2
  88. package/dist/Common/RadioGroupItem.d.ts +1 -0
  89. package/dist/Common/Reload.d.ts +2 -2
  90. package/dist/Common/ResizableTextarea.d.ts +2 -1
  91. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -0
  92. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +2 -2
  93. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +5 -0
  94. package/dist/Common/SegmentedBarChart/constants.d.ts +5 -0
  95. package/dist/Common/SegmentedBarChart/index.d.ts +2 -0
  96. package/dist/Common/SegmentedBarChart/types.d.ts +11 -0
  97. package/dist/Common/Select/Select.d.ts +2 -1
  98. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -0
  99. package/dist/Common/SortableTableHeaderCell/types.d.ts +1 -0
  100. package/dist/Common/TippyCustomized.d.ts +1 -0
  101. package/dist/Common/ToastBody.d.ts +2 -1
  102. package/dist/Common/Toggle/Toggle.d.ts +1 -0
  103. package/dist/Common/Types.d.ts +85 -9
  104. package/dist/Common/index.d.ts +4 -1
  105. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +2 -1
  106. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +1 -0
  107. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +2 -1
  108. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +2 -1
  109. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +2 -1
  110. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +2 -1
  111. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +2 -1
  112. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +2 -1
  113. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +2 -1
  114. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -0
  115. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +2 -1
  116. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -1
  117. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -1
  118. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +4 -3
  119. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +1 -0
  120. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +2 -1
  121. package/dist/Shared/Components/APIResponseHandler/types.d.ts +11 -1
  122. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +4 -0
  123. package/dist/Shared/Components/ActivityIndicator/index.d.ts +1 -0
  124. package/dist/Shared/Components/ActivityIndicator/types.d.ts +3 -0
  125. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -0
  126. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +1 -0
  127. package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +1 -0
  128. package/dist/Shared/Components/BulkSelection/types.d.ts +1 -1
  129. package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +2 -1
  130. package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +2 -1
  131. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +4 -0
  132. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
  133. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
  134. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -0
  135. package/dist/Shared/Components/FilterChips/types.d.ts +1 -0
  136. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  137. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -1
  138. package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -0
  139. package/dist/Shared/Components/GettingStartedCard/service.d.ts +1 -0
  140. package/dist/Shared/Components/GettingStartedCard/types.d.ts +1 -0
  141. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -0
  142. package/dist/Shared/Components/Header/HelpNav.d.ts +1 -0
  143. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -0
  144. package/dist/Shared/Components/Header/constants.d.ts +1 -0
  145. package/dist/Shared/Components/Header/service.d.ts +2 -1
  146. package/dist/Shared/Components/Header/types.d.ts +1 -1
  147. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +4 -0
  148. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
  149. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +4 -0
  150. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +4 -0
  151. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +4 -0
  152. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
  153. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
  154. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +11 -0
  155. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +3 -0
  156. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +4 -0
  157. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
  158. package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
  159. package/dist/Shared/Components/ImageCard/types.d.ts +41 -0
  160. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +4 -0
  161. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
  162. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +24 -0
  163. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -0
  164. package/dist/Shared/Components/KeyValueList/KeyValueList.d.ts +1 -0
  165. package/dist/Shared/Components/LogoutCard.d.ts +2 -1
  166. package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
  167. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +4 -0
  168. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
  169. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
  170. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
  171. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
  172. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
  173. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +4 -0
  174. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
  175. package/dist/Shared/Components/Vulnerabilities/index.d.ts +2 -0
  176. package/dist/Shared/Components/Vulnerabilities/service.d.ts +3 -0
  177. package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
  178. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
  179. package/dist/Shared/Components/index.d.ts +7 -0
  180. package/dist/Shared/Helpers.d.ts +8 -0
  181. package/dist/Shared/Providers/MainContextProvider.d.ts +1 -0
  182. package/dist/Shared/Providers/types.d.ts +3 -2
  183. package/dist/Shared/constants.d.ts +31 -0
  184. package/dist/Shared/index.d.ts +1 -0
  185. package/dist/Shared/types.d.ts +158 -0
  186. package/dist/assets/index.css +1 -1
  187. package/dist/index.d.ts +2 -0
  188. package/dist/index.js +14162 -13187
  189. package/package.json +6 -4
  190. package/dist/Common/Error.d.ts +0 -17
  191. package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
@@ -1,2 +1,3 @@
1
1
  import { IconButtonProps } from '@rjsf/utils';
2
+
2
3
  export declare const RemoveButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { SubmitButtonProps } from '@rjsf/utils';
2
+
2
3
  export declare const SubmitButton: ({ uiSchema }: SubmitButtonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { DescriptionFieldProps } from '@rjsf/utils';
2
+
2
3
  export declare const Description: ({ id, description }: DescriptionFieldProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { FieldTemplateProps } from '@rjsf/utils';
2
+
2
3
  export declare const Field: (props: FieldTemplateProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { FieldErrorProps } from '@rjsf/utils';
2
+
2
3
  export declare const FieldErrorTemplate: ({ errors, idSchema }: FieldErrorProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { ObjectFieldTemplateProps } from '@rjsf/utils';
2
+
2
3
  export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { TitleFieldProps } from '@rjsf/utils';
2
+
2
3
  export declare const TitleField: ({ id, title, required }: TitleFieldProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { WrapIfAdditionalTemplateProps } from '@rjsf/utils';
2
+
2
3
  export declare const WrapIfAdditionalTemplate: ({ id, disabled, label, onKeyChange, onDropPropertyClick, readonly, schema, children, uiSchema, registry, }: WrapIfAdditionalTemplateProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { default as RJSFForm } from '@rjsf/core';
1
2
  import { ComponentProps } from 'react';
2
- import RJSFForm from '@rjsf/core';
3
+
3
4
  export type FormProps = Omit<ComponentProps<typeof RJSFForm>, 'validator'>;
@@ -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 }: ScanVulnerabilitiesTableProps): JSX.Element;
2
+
3
+ export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { SegmentedBarChartProps } from './types';
2
+ import { default as React } from 'react';
3
+
4
+ declare const SegmentedBarChart: React.FC<SegmentedBarChartProps>;
5
+ export default SegmentedBarChart;
@@ -0,0 +1,5 @@
1
+ export declare const FALLBACK_ENTITY: {
2
+ color: string;
3
+ label: string;
4
+ value: number;
5
+ };
@@ -0,0 +1,2 @@
1
+ export { default as SegmentedBarChart } from './SegmentedBarChart';
2
+ export { type SegmentedBarChartProps } from './types';
@@ -0,0 +1,11 @@
1
+ export type Entity = {
2
+ color: string;
3
+ label: string;
4
+ value: number;
5
+ };
6
+ export interface SegmentedBarChartProps {
7
+ entities: NonNullable<Entity[]>;
8
+ rootClassName?: string;
9
+ countClassName?: string;
10
+ labelClassName?: string;
11
+ }
@@ -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,7 +1,9 @@
1
- import React, { ReactNode, CSSProperties } from 'react';
2
- import { Placement } from 'tippy.js';
3
- import { ImageComment, ReleaseTag } from './ImageTags.Types';
1
+ import { RegistryType } from '../Shared';
4
2
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
3
+ import { ImageComment, ReleaseTag } from './ImageTags.Types';
4
+ import { Placement } from 'tippy.js';
5
+ import { default as React, ReactNode, CSSProperties } from 'react';
6
+
5
7
  /**
6
8
  * Generic response type object with support for overriding the result type
7
9
  *
@@ -51,6 +53,7 @@ export interface CheckboxProps {
51
53
  onChange: (event: any) => void;
52
54
  isChecked: boolean;
53
55
  value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
56
+ name?: string;
54
57
  disabled?: boolean;
55
58
  tabIndex?: number;
56
59
  rootClassName?: string;
@@ -113,6 +116,21 @@ export interface GenericEmptyStateType {
113
116
  layout?: 'row' | 'column';
114
117
  contentClassName?: string;
115
118
  }
119
+ export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
120
+ code: number;
121
+ heightToDeduct?: number;
122
+ }
123
+ export interface ErrorScreenManagerProps {
124
+ code?: number;
125
+ reload?: (...args: any[]) => any;
126
+ subtitle?: React.ReactChild;
127
+ reloadClass?: string;
128
+ heightToDeduct?: number;
129
+ }
130
+ export interface ErrorScreenNotAuthorizedProps {
131
+ subtitle?: React.ReactChild;
132
+ title?: string;
133
+ }
116
134
  export declare enum ImageType {
117
135
  Large = "large",
118
136
  Medium = "medium"
@@ -134,6 +152,7 @@ export interface InfoColourBarType {
134
152
  export interface ReloadType {
135
153
  reload?: (event?: any) => void;
136
154
  className?: string;
155
+ heightToDeduct?: number;
137
156
  }
138
157
  export interface RadioGroupItemProps {
139
158
  value: string;
@@ -251,6 +270,34 @@ export declare enum FilterStates {
251
270
  export declare enum MaterialDataSource {
252
271
  EXTERNAL = "ext"
253
272
  }
273
+ export declare enum ImagePromotionRuntimeState {
274
+ AWAITING = "AWAITING",
275
+ PROMOTED = "PROMOTED",
276
+ CANCELLED = "CANCELLED",
277
+ STALE = "STALE"
278
+ }
279
+ export interface ImagePromotionPolicyApprovalMetadata {
280
+ approverCount: number;
281
+ allowRequesterFromApprove: boolean;
282
+ allowImageBuilderFromApprove: boolean;
283
+ allowApproverFromDeploy: boolean;
284
+ }
285
+ export interface ImagePromotionPolicyInfoType {
286
+ name: string;
287
+ id: number;
288
+ description: string;
289
+ conditions: FilterConditionsInfo[];
290
+ approvalMetadata: ImagePromotionPolicyApprovalMetadata;
291
+ }
292
+ export interface PromotionApprovalMetadataType {
293
+ approvalRequestId: number;
294
+ approvalRuntimeState: ImagePromotionRuntimeState;
295
+ approvedUsersData: ApprovalUserDataType[];
296
+ requestedUserData: ApprovalUserDataType;
297
+ policy: ImagePromotionPolicyInfoType;
298
+ promotedFrom?: string;
299
+ promotedFromType?: CDMaterialResourceQuery;
300
+ }
254
301
  export interface DeploymentWindowArtifactMetadata {
255
302
  id: number;
256
303
  name: string;
@@ -282,7 +329,7 @@ export interface CDMaterialType {
282
329
  imageReleaseTags?: ReleaseTag[];
283
330
  artifactStatus?: string;
284
331
  filterState: FilterStates;
285
- registryType?: string;
332
+ registryType?: RegistryType;
286
333
  imagePath?: string;
287
334
  registryName?: string;
288
335
  scanToolId?: number;
@@ -292,14 +339,28 @@ export interface CDMaterialType {
292
339
  createdTime?: string;
293
340
  deployed?: boolean;
294
341
  dataSource?: MaterialDataSource;
342
+ /**
343
+ * The below two keys: `promotionApprovalMetaData`, `deployedOnEnvironments` are used in image promotion
344
+ * and may not be available to cater other use-cases.
345
+ */
346
+ promotionApprovalMetadata?: PromotionApprovalMetadataType;
347
+ deployedOnEnvironments?: string[];
295
348
  deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
296
349
  }
297
350
  export declare enum CDMaterialServiceEnum {
298
351
  ROLLBACK = "rollback",
299
- CD_MATERIALS = "cd-materials"
352
+ CD_MATERIALS = "cd-materials",
353
+ IMAGE_PROMOTION = "image-promotion"
300
354
  }
301
355
  export declare enum CDMaterialResourceQuery {
302
- PENDING_APPROVAL = "PENDING_APPROVAL"
356
+ PENDING_APPROVAL = "PENDING_APPROVAL",
357
+ PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE",
358
+ CI = "CI",
359
+ ENVIRONMENT = "ENVIRONMENT",
360
+ WEBHOOK = "WEBHOOK",
361
+ LINKED_CI = "LINKED-CI",
362
+ CI_JOB = "CI-JOB",
363
+ LINKED_CD = "LINKED-CD"
303
364
  }
304
365
  export declare enum CDMaterialFilterQuery {
305
366
  RESOURCE = "ELIGIBLE_RESOURCES",
@@ -310,6 +371,11 @@ export interface CDMaterialServiceQueryParams {
310
371
  offset?: number;
311
372
  size?: number;
312
373
  resource?: CDMaterialResourceQuery;
374
+ resourceName?: string;
375
+ resourceId?: number;
376
+ workflowId?: number;
377
+ appId?: number;
378
+ pendingForCurrentUser?: boolean;
313
379
  filter?: CDMaterialFilterQuery;
314
380
  }
315
381
  export interface DownstreamNodesEnvironmentsType {
@@ -381,6 +447,7 @@ export interface CommonNodeAttr {
381
447
  deploymentAppCreated?: boolean;
382
448
  isLast?: boolean;
383
449
  downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
450
+ cipipelineId?: number;
384
451
  isDeploymentBlocked?: boolean;
385
452
  }
386
453
  export declare enum DeploymentAppTypes {
@@ -400,6 +467,8 @@ export interface VulnerabilityType {
400
467
  }
401
468
  export interface ScanVulnerabilitiesTableProps {
402
469
  vulnerabilities: VulnerabilityType[];
470
+ hidePolicy?: boolean;
471
+ shouldStick?: boolean;
403
472
  }
404
473
  export interface MaterialInfo {
405
474
  revision: string;
@@ -430,7 +499,7 @@ export interface FilterConditionsListType {
430
499
  export interface CDMaterialsApprovalInfo {
431
500
  approvalUsers: string[];
432
501
  userApprovalConfig: UserApprovalConfigType;
433
- requestedUserId: number;
502
+ canApproverDeploy: boolean;
434
503
  }
435
504
  export interface CDMaterialsMetaInfo {
436
505
  tagsEditable: boolean;
@@ -438,9 +507,16 @@ export interface CDMaterialsMetaInfo {
438
507
  hideImageTaggingHardDelete: boolean;
439
508
  resourceFilters?: FilterConditionsListType[];
440
509
  totalCount: number;
441
- canApproverDeploy: boolean;
510
+ /**
511
+ * This is the ID of user that has request the material
512
+ */
513
+ requestedUserId: number;
514
+ }
515
+ export interface ImagePromotionMaterialInfo {
516
+ isApprovalPendingForPromotion: boolean;
517
+ imagePromotionApproverEmails: string[];
442
518
  }
443
- export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
519
+ export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
444
520
  materials: CDMaterialType[];
445
521
  }
446
522
  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,3 +50,5 @@ export * from './AddCDButton';
49
50
  export * from './CustomInput';
50
51
  export * from './DraggableWrapper';
51
52
  export * from './Pagination';
53
+ export * from './Markdown';
54
+ 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, error, notAuthorized, notFoundText, reloadProps, children, }: APIResponseHandlerProps) => JSX.Element;
2
+
3
+ declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
3
4
  export default APIResponseHandler;
@@ -1,5 +1,7 @@
1
- import { ReactNode } from 'react';
1
+ import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
2
2
  import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
3
+ import { ReactNode } from 'react';
4
+
3
5
  export interface EmptyPageTextType {
4
6
  title?: GenericEmptyStateType['title'];
5
7
  subTitle?: GenericEmptyStateType['subTitle'];
@@ -13,6 +15,10 @@ export interface APIResponseHandlerProps {
13
15
  * If loading is true, would load send these props to Progressing component
14
16
  */
15
17
  progressingProps?: ProgressingProps;
18
+ /**
19
+ * If given, would show this component instead of default Progressing component
20
+ */
21
+ customLoader?: ReactNode;
16
22
  /**
17
23
  * If true and isLoading is false would show default Reload component
18
24
  * In case error code is 404 show default 404 page using GenericEmptyState
@@ -30,6 +36,10 @@ export interface APIResponseHandlerProps {
30
36
  * If given, on Error, would load these props
31
37
  */
32
38
  reloadProps?: ReloadType;
39
+ /**
40
+ * If given, would show this component instead of default Error component
41
+ */
42
+ genericSectionErrorProps?: GenericSectionErrorStateProps;
33
43
  /**
34
44
  * If no Error and no Loading, would load this component
35
45
  */
@@ -0,0 +1,4 @@
1
+ import { ActivityIndicatorProps } from './types';
2
+
3
+ declare const ActivityIndicator: ({ rootClassName }: ActivityIndicatorProps) => JSX.Element;
4
+ export default ActivityIndicator;
@@ -0,0 +1 @@
1
+ export { default as ActivityIndicator } from './ActivityIndicator';
@@ -0,0 +1,3 @@
1
+ export interface ActivityIndicatorProps {
2
+ rootClassName?: string;
3
+ }
@@ -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;
@@ -0,0 +1,4 @@
1
+ import { ExcludedImageNodeProps } from './types';
2
+
3
+ declare const ExcludedImageNode: ({ image }: ExcludedImageNodeProps) => JSX.Element;
4
+ export default ExcludedImageNode;
@@ -0,0 +1 @@
1
+ export { default as ExcludedImageNode } from './ExcludedImageNode';