@devtron-labs/devtron-fe-common-lib 0.0.76 → 0.0.77-beta-2

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 (137) 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 -0
  13. package/dist/Common/Constants.d.ts +26 -2
  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 +4 -1
  40. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +1 -0
  41. package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -0
  42. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -0
  43. package/dist/Common/ImageTags.d.ts +1 -0
  44. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -0
  45. package/dist/Common/Modals/Modal.d.ts +2 -1
  46. package/dist/Common/Modals/OpaqueModal.d.ts +2 -1
  47. package/dist/Common/Modals/VisibleModal.d.ts +2 -1
  48. package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
  49. package/dist/Common/MultiSelectCustomization.d.ts +2 -1
  50. package/dist/Common/Pagination/PageSizeSelector.d.ts +1 -0
  51. package/dist/Common/Pagination/Pagination.d.ts +1 -0
  52. package/dist/Common/Pagination/utils.d.ts +1 -0
  53. package/dist/Common/Policy.Types.d.ts +2 -1
  54. package/dist/Common/PopupMenu.d.ts +1 -0
  55. package/dist/Common/Progressing.d.ts +1 -0
  56. package/dist/Common/RJSF/Form.d.ts +1 -0
  57. package/dist/Common/RJSF/common/FieldRow.d.ts +2 -1
  58. package/dist/Common/RJSF/common/types.d.ts +1 -0
  59. package/dist/Common/RJSF/config.d.ts +2 -1
  60. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -0
  61. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +1 -0
  62. package/dist/Common/RJSF/templates/BaseInput.d.ts +1 -0
  63. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -0
  64. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +1 -0
  65. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +1 -0
  66. package/dist/Common/RJSF/templates/Description.d.ts +1 -0
  67. package/dist/Common/RJSF/templates/Field.d.ts +1 -0
  68. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +1 -0
  69. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -0
  70. package/dist/Common/RJSF/templates/TitleField.d.ts +1 -0
  71. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +1 -0
  72. package/dist/Common/RJSF/types.d.ts +2 -1
  73. package/dist/Common/RJSF/utils.d.ts +2 -1
  74. package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -0
  75. package/dist/Common/RJSF/widgets/Select.d.ts +1 -0
  76. package/dist/Common/RadioGroup/RadioGroup.d.ts +2 -1
  77. package/dist/Common/RadioGroup.d.ts +2 -2
  78. package/dist/Common/RadioGroupItem.d.ts +1 -0
  79. package/dist/Common/Reload.d.ts +2 -2
  80. package/dist/Common/ResizableTextarea.d.ts +2 -1
  81. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -0
  82. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  83. package/dist/Common/Select/Select.d.ts +2 -1
  84. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -0
  85. package/dist/Common/SortableTableHeaderCell/types.d.ts +1 -0
  86. package/dist/Common/TippyCustomized.d.ts +1 -0
  87. package/dist/Common/ToastBody.d.ts +2 -1
  88. package/dist/Common/Toggle/Toggle.d.ts +1 -0
  89. package/dist/Common/Types.d.ts +26 -4
  90. package/dist/Common/index.d.ts +2 -1
  91. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +2 -1
  92. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +1 -0
  93. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +2 -1
  94. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +2 -1
  95. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +2 -1
  96. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +2 -1
  97. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +2 -1
  98. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +2 -1
  99. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +2 -1
  100. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -0
  101. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +2 -1
  102. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -1
  103. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -1
  104. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +4 -3
  105. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +1 -0
  106. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -0
  107. package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -1
  108. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -0
  109. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +1 -0
  110. package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +1 -0
  111. package/dist/Shared/Components/BulkSelection/types.d.ts +1 -1
  112. package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +2 -1
  113. package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +2 -1
  114. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -0
  115. package/dist/Shared/Components/FilterChips/types.d.ts +1 -0
  116. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -0
  117. package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -0
  118. package/dist/Shared/Components/GettingStartedCard/service.d.ts +1 -0
  119. package/dist/Shared/Components/GettingStartedCard/types.d.ts +1 -0
  120. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -0
  121. package/dist/Shared/Components/Header/HelpNav.d.ts +1 -0
  122. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -0
  123. package/dist/Shared/Components/Header/constants.d.ts +1 -0
  124. package/dist/Shared/Components/Header/service.d.ts +2 -1
  125. package/dist/Shared/Components/Header/types.d.ts +1 -1
  126. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +4 -0
  127. package/dist/Shared/Components/InfoIconTippy/index.d.ts +1 -0
  128. package/dist/Shared/Components/KeyValueList/KeyValueList.d.ts +1 -0
  129. package/dist/Shared/Components/LogoutCard.d.ts +2 -1
  130. package/dist/Shared/Components/index.d.ts +1 -0
  131. package/dist/Shared/Providers/MainContextProvider.d.ts +1 -0
  132. package/dist/Shared/Providers/types.d.ts +3 -2
  133. package/dist/assets/index.css +1 -1
  134. package/dist/index.js +10905 -10454
  135. package/package.json +1 -1
  136. package/dist/Common/Error.d.ts +0 -17
  137. package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AddCDButtonProps } from './types';
2
+
3
3
  export default function AddCDButton({ position, addCDButtons, endNode, startNode, handleAddCD, tooltipContent, }: Readonly<AddCDButtonProps>): JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { AddCDPositions, AddPipelineType, EdgeEndNodeType, EdgeNodeType, Point } from '../Types';
2
+
2
3
  export interface AddCDButtonProps {
3
4
  position: AddCDPositions;
4
5
  addCDButtons: AddCDPositions[];
@@ -1,2 +1,3 @@
1
1
  import { HandleAddCD } from './types';
2
+
2
3
  export declare const handleAddCD: ({ position, handleCDSelect, startNode, endNode, workflowId, ciPipelineId, isWebhookCD, isParallelEdge, }: HandleAddCD) => void;
@@ -1,5 +1,6 @@
1
- import { MutableRefObject } from 'react';
2
1
  import { ResponseType, APIOptions } from './Types';
2
+ import { MutableRefObject } from 'react';
3
+
3
4
  export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
4
5
  export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
5
6
  export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppStatusType } from './types';
2
+
3
3
  export default function AppStatus({ appStatus, isDeploymentStatus, isJobView, isVirtualEnv, hideStatusMessage, }: AppStatusType): JSX.Element;
@@ -1,5 +1,6 @@
1
- import React from 'react';
2
1
  import { Breadcrumbs, UseBreadcrumbOptionalProps, UseBreadcrumbState } from './Types';
2
+ import { default as React } from 'react';
3
+
3
4
  export declare const BreadcrumbContext: React.Context<any>;
4
5
  export declare function useBreadcrumb(props?: UseBreadcrumbOptionalProps, deps?: any[]): UseBreadcrumbState;
5
6
  export declare const BreadCrumb: React.FC<Breadcrumbs>;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  declare const Store: ({ children }: {
3
4
  children: any;
4
5
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { ChartVersionAndTypeSelectorProps } from './Types';
2
+
2
3
  declare const ChartVersionAndTypeSelector: ({ setSelectedChartRefId }: ChartVersionAndTypeSelectorProps) => JSX.Element;
3
4
  export default ChartVersionAndTypeSelector;
@@ -1,5 +1,6 @@
1
- import { Component } from 'react';
2
1
  import { CheckboxProps } from './Types';
2
+ import { Component } from 'react';
3
+
3
4
  export declare class Checkbox extends Component<CheckboxProps> {
4
5
  render(): JSX.Element;
5
6
  }
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import ClipboardProps from './types';
1
+ import { default as ClipboardProps } from './types';
2
+
3
3
  /**
4
4
  * @param content - Content to be copied
5
5
  * @param copiedTippyText - Text to be shown in the tippy when the content is copied, default 'Copied!'
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  interface InformationBarProps {
3
4
  text: string;
4
5
  className?: string;
@@ -1,4 +1,5 @@
1
1
  import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType } from './Types';
2
+
2
3
  export declare const getTeamListMin: () => Promise<TeamList>;
3
4
  interface UserRole extends ResponseType {
4
5
  result?: {
@@ -1,7 +1,9 @@
1
1
  import { RegistryTypeDetailType } from './Types';
2
+
2
3
  export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
3
4
  export declare const Host: string;
4
5
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
6
+ export declare const DISCORD_LINK = "https://discord.devtron.ai/";
5
7
  export declare const DOCUMENTATION: {
6
8
  APP_TAGS: string;
7
9
  APP_OVERVIEW_TAGS: string;
@@ -31,6 +33,7 @@ export declare const ROUTES: {
31
33
  CD_MATERIAL_GET: string;
32
34
  DEPLOYMENT_TEMPLATE_LIST: string;
33
35
  INFRA_CONFIG_PROFILE: string;
36
+ APP_LIST: string;
34
37
  TELEMETRY_EVENT: string;
35
38
  SERVER_INFO_API: string;
36
39
  ATTRIBUTES_USER: string;
@@ -48,6 +51,16 @@ export declare const DEFAULT_TAG_DATA: {
48
51
  isInvalidValue: boolean;
49
52
  isSuggested: boolean;
50
53
  };
54
+ export declare enum ERROR_STATUS_CODE {
55
+ BAD_REQUEST = 400,
56
+ UNAUTHORIZED = 401,
57
+ PERMISSION_DENIED = 403,
58
+ NOT_FOUND = 404,
59
+ EXPECTATION_FAILED = 417,
60
+ INTERNAL_SERVER_ERROR = 500,
61
+ BAD_GATEWAY = 502,
62
+ SERVICE_TEMPORARY_UNAVAILABLE = 503
63
+ }
51
64
  export declare const TOAST_ACCESS_DENIED: {
52
65
  TITLE: string;
53
66
  SUBTITLE: string;
@@ -56,11 +69,23 @@ export declare const ERROR_EMPTY_SCREEN: {
56
69
  PAGE_NOT_FOUND: string;
57
70
  PAGE_NOT_EXIST: string;
58
71
  TAKE_BACK_HOME: string;
72
+ REPORT_ISSUE: string;
59
73
  ONLY_FOR_SUPERADMIN: string;
60
74
  NOT_AUTHORIZED: string;
75
+ REQUIRED_MANAGER_ACCESS: string;
76
+ BAD_REQUEST: string;
77
+ BAD_REQUEST_MESSAGE: string;
78
+ TRY_AGAIN: string;
61
79
  UNAUTHORIZED: string;
80
+ UNAUTHORIZED_MESSAGE: string;
62
81
  FORBIDDEN: string;
63
- REQUIRED_MANAGER_ACCESS: string;
82
+ FORBIDDEN_MESSAGE: string;
83
+ INTERNAL_SERVER_ERROR: string;
84
+ INTERNAL_SERVER_ERROR_MESSAGE: string;
85
+ BAD_GATEWAY: string;
86
+ BAD_GATEWAY_MESSAGE: string;
87
+ SERVICE_TEMPORARY_UNAVAILABLE: string;
88
+ SERVICE_TEMPORARY_UNAVAILABLE_MESSAGE: string;
64
89
  };
65
90
  export declare const TOKEN_COOKIE_NAME = "argocd.token";
66
91
  export declare const TriggerTypeMap: {
@@ -176,7 +201,6 @@ export declare enum SERVER_MODE {
176
201
  EA_ONLY = "EA_ONLY",
177
202
  FULL = "FULL"
178
203
  }
179
- export declare const DISCORD_LINK = "https://discord.devtron.ai/";
180
204
  export declare const POSTHOG_EVENT_ONBOARDING: {
181
205
  PREVIEW: string;
182
206
  DEPLOY_CUSTOM_APP_CI_CD: string;
@@ -1,2 +1,3 @@
1
1
  import { CustomInputProps } from './Types';
2
+
2
3
  export declare const CustomInput: ({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, handleOnBlur, readOnly, noTrim, ref, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo, inputWrapClassName, inputProps, }: CustomInputProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
- import React, { HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
1
+ import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
2
+
2
3
  export interface CustomInputProps {
3
4
  name: string;
4
5
  value: string | number;
@@ -1,2 +1,3 @@
1
1
  import { ResizableTagTextAreaProps } from './Types';
2
+
2
3
  export declare const ResizableTagTextArea: ({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, handleKeyDown, }: ResizableTagTextAreaProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { TagDetailType } from './Types';
2
+
2
3
  export declare const TagDetails: ({ index, tagData, setTagData, removeTag, tabIndex, suggestedTagsOptions, }: TagDetailType) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { TagLabelSelectType } from './Types';
2
+
2
3
  export declare const TagLabelSelect: ({ isCreateApp, labelTags, setLabelTags, tabIndex }: TagLabelSelectType) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { TagLabelValueSelectorType } from './Types';
2
+
2
3
  export declare const TagLabelValueSelector: ({ selectedTagIndex, tagData, setTagData, tagOptions, isRequired, tagInputType, placeholder, tabIndex, refVar, dependentRef, noBackDrop, }: TagLabelValueSelectorType) => JSX.Element;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import { KEY_VALUE } from '../Constants';
3
1
  import { OptionType } from '../Types';
2
+ import { KEY_VALUE } from '../Constants';
3
+
4
4
  export interface SuggestedTagOptionType extends OptionType {
5
5
  description: string;
6
6
  propagate: boolean;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { DebouncedSearchProps } from './Types';
2
+
3
3
  /**
4
4
  * @deprecated Use `SearchBar` component instead.
5
5
  *
@@ -1,3 +1,4 @@
1
1
  import { DeleteComponentProps } from './types';
2
+
2
3
  declare const DeleteComponent: ({ setDeleting, toggleConfirmation, deleteComponent, title, component, payload, confirmationDialogDescription, redirectTo, url, reload, configuration, closeCustomComponent, }: DeleteComponentProps) => JSX.Element;
3
4
  export default DeleteComponent;
@@ -1,2 +1,3 @@
1
1
  import { DevtronProgressingProps } from './types';
2
+
2
3
  export declare const DevtronProgressing: ({ classes, parentClasses }: DevtronProgressingProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { ConfirmationDialogBodyType, ConfirmationDialogButtonGroupType, ConfirmationDialogIconType, ConfirmationDialogType } from './Types';
2
+
2
3
  declare const ConfirmationDialog: {
3
4
  ({ className, children }: ConfirmationDialogType): JSX.Element;
4
5
  Icon: ({ src, className }: ConfirmationDialogIconType) => JSX.Element;
@@ -1,5 +1,6 @@
1
- import React from 'react';
2
1
  import { DeleteDialogProps } from './Types';
2
+ import { default as React } from 'react';
3
+
3
4
  export declare const DeleteDialog: React.FC<DeleteDialogProps> & {
4
5
  Description?: React.FC<any>;
5
6
  };
@@ -1,5 +1,6 @@
1
- import { Component } from 'react';
2
1
  import { DialogFormProps } from './Types';
2
+ import { Component } from 'react';
3
+
3
4
  export declare class DialogForm extends Component<DialogFormProps> {
4
5
  constructor(props: any);
5
6
  componentDidMount(): void;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ForceDeleteDialogType } from './Types';
2
+
3
3
  export default function ForceDeleteDialog({ onClickDelete, closeDeleteModal, forceDeleteDialogTitle, forceDeleteDialogMessage, }: ForceDeleteDialogType): JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export interface DeleteDialogProps {
3
4
  title: string;
4
5
  description?: string;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DraggableButtonProps } from './types';
2
+
3
3
  export default function DraggableButton({ dragClassName }: DraggableButtonProps): JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { DraggableWrapperProps } from './types';
2
+
3
3
  /**
4
4
  * TODO: import it as lazy, after it is supported in common
5
5
  * 1. If using react select please use menuPlacement='auto'
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, ReactNode, RefObject } from 'react';
2
+
2
3
  export declare enum DraggablePositionVariant {
3
4
  PARENT_BOTTOM_CENTER = "PARENT_BOTTOM_CENTER",
4
5
  SCREEN_BOTTOM_CENTER = "SCREEN_BOTTOM_CENTER"
@@ -1,3 +1,4 @@
1
+
1
2
  interface drawerInterface {
2
3
  position: 'left' | 'right' | 'bottom' | 'top';
3
4
  children?: any;
@@ -1,3 +1,4 @@
1
1
  import { GenericEmptyStateType } from '../Types';
2
+
2
3
  declare const GenericEmptyState: ({ title, image, subTitle, isButtonAvailable, classname, styles, heightToDeduct, imageType, renderButton, imageClassName, children, SvgImage, noImage, layout, contentClassName, imageStyles, }: GenericEmptyStateType) => JSX.Element;
3
4
  export default GenericEmptyState;
@@ -0,0 +1,4 @@
1
+ import { ErrorPageType } from './Types';
2
+
3
+ declare const ErrorPage: ({ code, image, title, subTitle, imageType, heightToDeduct }: ErrorPageType) => JSX.Element;
4
+ export default ErrorPage;
@@ -0,0 +1,4 @@
1
+ import { ErrorScreenManagerProps } from './Types';
2
+
3
+ declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, heightToDeduct }: ErrorScreenManagerProps) => JSX.Element;
4
+ export default ErrorScreenManager;
@@ -0,0 +1,4 @@
1
+ import { ErrorScreenNotAuthorizedProps } from './Types';
2
+
3
+ declare const ErrorScreenNotAuthorized: ({ subtitle, title }: ErrorScreenNotAuthorizedProps) => JSX.Element;
4
+ export default ErrorScreenNotAuthorized;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridProps } from './types';
2
+
3
3
  export default function Grid({ container, spacing, item, xs, containerClass, itemClass, children, ...containerDivProps }: GridProps): JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export interface GridProps extends HTMLAttributes<HTMLDivElement> {
3
4
  container?: boolean;
4
5
  spacing?: number;
@@ -1,5 +1,6 @@
1
- import React from 'react';
2
1
  import { AsyncOptions, UseSearchString } from './Types';
2
+ import { default as React } from 'react';
3
+
3
4
  export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
4
5
  interface ConditionalWrapper<T> {
5
6
  condition: boolean;
@@ -15,6 +16,8 @@ export declare const getAlphabetIcon: (str: string, rootClassName?: string) => J
15
16
  export declare const getEmptyArrayOfLength: (length: number) => unknown[];
16
17
  export declare function noop(...args: any[]): any;
17
18
  export declare function not(e: any): boolean;
19
+ export declare const refresh: () => void;
20
+ export declare const reportIssue: () => void;
18
21
  export declare function useEffectAfterMount(cb: any, dependencies: any): void;
19
22
  export declare function getCookie(sKey: any): string;
20
23
  export declare function getLoginInfo(): any;
@@ -1,4 +1,5 @@
1
1
  import { useSuperAdminType } from './types';
2
+
2
3
  /**
3
4
  * @description It will return isSuperAdmin and would be set to false by default, might need few optimizations like dep, etc
4
5
  * @returns {useSuperAdminType} isSuperAdmin
@@ -1,4 +1,5 @@
1
1
  import { SortingOrder } from '../../Constants';
2
+
2
3
  export interface UseUrlFiltersProps<T, K> {
3
4
  /**
4
5
  * The key on which the sorting should be applied
@@ -1,4 +1,5 @@
1
1
  import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
2
+
2
3
  /**
3
4
  * Generic hook for implementing URL based filters.
4
5
  * eg: pagination, search, sort.
@@ -1,3 +1,4 @@
1
1
  import { ImageButtonType, ImageTaggingContainerType } from './ImageTags.Types';
2
+
2
3
  export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, updateCurrentAppMaterial, appReleaseTagNames, setAppReleaseTagNames, tagsEditable, setTagsEditable, toggleCardMode, hideHardDelete, forceReInit, isSuperAdmin, }: ImageTaggingContainerType) => JSX.Element;
3
4
  export declare const ImageTagButton: ({ text, isSoftDeleted, isEditing, onSoftDeleteClick, onHardDeleteClick, tagId, softDeleteTags, isSuperAdmin, duplicateTag, hideHardDelete, }: ImageButtonType) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { InfoColourBarType } from '../Types';
2
+
2
3
  declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType) => JSX.Element;
3
4
  export default InfoColourBar;
@@ -1,3 +1,4 @@
1
- import React from 'react';
2
1
  import { ModalType } from '../Types';
2
+ import { default as React } from 'react';
3
+
3
4
  export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface OpaqueModalProps {
3
4
  className?: string;
4
5
  onHide?: any;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export declare class VisibleModal extends React.Component<{
3
4
  className: string;
4
5
  parentClassName?: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export declare class VisibleModal2 extends React.Component<{
3
4
  className: string;
4
5
  close?: (e: any) => void;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export declare const Option: (props: any) => JSX.Element;
3
4
  export declare const SingleSelectOption: (props: any) => JSX.Element;
4
5
  export declare const MultiValueContainer: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { PageSizeSelectorProps } from './types';
2
+
2
3
  declare const PageSizeSelector: ({ pageSizeOptions, pageSize, changePageSize }: PageSizeSelectorProps) => JSX.Element;
3
4
  export default PageSizeSelector;
@@ -1,3 +1,4 @@
1
1
  import { PaginationProps } from './types';
2
+
2
3
  declare const Pagination: ({ size, pageSize, offset, changePage, changePageSize, isPageSizeFix, pageSizeOptions, rootClassName, }: PaginationProps) => JSX.Element;
3
4
  export default Pagination;
@@ -1,4 +1,5 @@
1
1
  import { CreatePageArrType, Page, PageSizeOption } from './types';
2
+
2
3
  /**
3
4
  * Returns an array of pages numbers and whether they are selected, visible or not
4
5
  */
@@ -1,5 +1,6 @@
1
- import { VariableType } from './CIPipeline.Types';
2
1
  import { ResponseType } from './Types';
2
+ import { VariableType } from './CIPipeline.Types';
3
+
3
4
  export declare enum ApplyPolicyToStage {
4
5
  PRE_CI = "PRE_CI",
5
6
  POST_CI = "POST_CI",
@@ -1,4 +1,5 @@
1
1
  import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
2
+
2
3
  declare const PopupMenu: {
3
4
  ({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
4
5
  Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { ProgressingProps } from './Types';
2
+
2
3
  export declare const Progressing: ({ pageLoader, size, theme, styles, fillColor }: ProgressingProps) => JSX.Element;
3
4
  export declare const DetailsProgressing: ({ loadingText, size, fullHeight, styles, fillColor, children, }: ProgressingProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { FormProps } from './types';
2
+
2
3
  export declare const RJSFForm: (props: FormProps) => JSX.Element;
@@ -1,5 +1,6 @@
1
- import { FieldRowProps } from './types';
2
1
  import { DO_NOT_SHOW_LABEL } from '../constants';
2
+ import { FieldRowProps } from './types';
3
+
3
4
  export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }: Omit<FieldRowProps, "label"> & {
4
5
  label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
5
6
  }) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { FieldTemplateProps } from '@rjsf/utils';
2
+
2
3
  export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id'> {
3
4
  showLabel?: boolean;
4
5
  /**
@@ -1,4 +1,5 @@
1
- import { RegistryWidgetsType } from '@rjsf/utils';
2
1
  import { FormProps } from './types';
2
+ import { RegistryWidgetsType } from '@rjsf/utils';
3
+
3
4
  export declare const widgets: RegistryWidgetsType;
4
5
  export declare const templates: FormProps['templates'];
@@ -1,2 +1,3 @@
1
1
  import { ArrayFieldTemplateItemType } from '@rjsf/utils';
2
+
2
3
  export declare const ArrayFieldItemTemplate: ({ children, className, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { ArrayFieldTemplateProps } from '@rjsf/utils';
2
+
2
3
  export declare const ArrayFieldTemplate: ({ canAdd, className, disabled, idSchema, uiSchema, items, onAddClick, readonly, registry, required, title, }: ArrayFieldTemplateProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { BaseInputTemplateProps } from '@rjsf/utils';
2
+
2
3
  export declare const BaseInput: ({ placeholder, ...props }: BaseInputTemplateProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { IconButtonProps } from '@rjsf/utils';
2
+
2
3
  export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
@@ -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;