@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,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?: {
@@ -17,5 +18,4 @@ export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceE
17
18
  export declare function extractImage(image: string): string;
18
19
  export declare function createGitCommitUrl(url: string, revision: string): string;
19
20
  export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
20
- export declare const getDefaultConfig: () => Promise<ResponseType>;
21
21
  export {};
@@ -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;
@@ -25,15 +27,13 @@ export declare const URLS: {
25
27
  APP_LIST_HELM: string;
26
28
  };
27
29
  export declare const ROUTES: {
28
- APP_ARTIFACT_PROMOTE_MATERIAL: string;
29
30
  PROJECT_LIST_MIN: string;
30
31
  USER_CHECK_ROLE: string;
31
32
  IMAGE_TAGGING: string;
32
33
  CD_MATERIAL_GET: string;
33
34
  DEPLOYMENT_TEMPLATE_LIST: string;
34
35
  INFRA_CONFIG_PROFILE: string;
35
- SECURITY_SCAN_EXECUTION_DETAILS: string;
36
- NOTIFIER: string;
36
+ APP_LIST: string;
37
37
  TELEMETRY_EVENT: string;
38
38
  SERVER_INFO_API: string;
39
39
  ATTRIBUTES_USER: string;
@@ -51,6 +51,16 @@ export declare const DEFAULT_TAG_DATA: {
51
51
  isInvalidValue: boolean;
52
52
  isSuggested: boolean;
53
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
+ }
54
64
  export declare const TOAST_ACCESS_DENIED: {
55
65
  TITLE: string;
56
66
  SUBTITLE: string;
@@ -59,11 +69,23 @@ export declare const ERROR_EMPTY_SCREEN: {
59
69
  PAGE_NOT_FOUND: string;
60
70
  PAGE_NOT_EXIST: string;
61
71
  TAKE_BACK_HOME: string;
72
+ REPORT_ISSUE: string;
62
73
  ONLY_FOR_SUPERADMIN: string;
63
74
  NOT_AUTHORIZED: string;
75
+ REQUIRED_MANAGER_ACCESS: string;
76
+ BAD_REQUEST: string;
77
+ BAD_REQUEST_MESSAGE: string;
78
+ TRY_AGAIN: string;
64
79
  UNAUTHORIZED: string;
80
+ UNAUTHORIZED_MESSAGE: string;
65
81
  FORBIDDEN: string;
66
- 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;
67
89
  };
68
90
  export declare const TOKEN_COOKIE_NAME = "argocd.token";
69
91
  export declare const TriggerTypeMap: {
@@ -89,8 +111,7 @@ export declare enum MODES {
89
111
  }
90
112
  export declare enum APPROVAL_MODAL_TYPE {
91
113
  CONFIG = "CONFIG",
92
- DEPLOYMENT = "DEPLOYMENT",
93
- IMAGE_PROMOTION = "IMAGE-PROMOTION"
114
+ DEPLOYMENT = "DEPLOYMENT"
94
115
  }
95
116
  export declare const MAX_Z_INDEX = 2147483647;
96
117
  export declare const SELECTED_APPROVAL_TAB_STATE: {
@@ -170,7 +191,6 @@ export declare enum ReactSelectInputAction {
170
191
  removeValue = "remove-value"
171
192
  }
172
193
  export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
173
- export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
174
194
  export declare const API_STATUS_CODES: {
175
195
  UNAUTHORIZED: number;
176
196
  PERMISSION_DENIED: number;
@@ -181,7 +201,6 @@ export declare enum SERVER_MODE {
181
201
  EA_ONLY = "EA_ONLY",
182
202
  FULL = "FULL"
183
203
  }
184
- export declare const DISCORD_LINK = "https://discord.devtron.ai/";
185
204
  export declare const POSTHOG_EVENT_ONBOARDING: {
186
205
  PREVIEW: string;
187
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;
@@ -7,7 +8,7 @@ interface ConditionalWrapper<T> {
7
8
  children: T;
8
9
  }
9
10
  export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
10
- export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
11
+ export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | 0 | -1;
11
12
  export declare const stopPropagation: (event: any) => void;
12
13
  export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
13
14
  export declare function getRandomColor(email: string): string;
@@ -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
@@ -2,4 +2,3 @@ export { useSuperAdmin } from './UseSuperAdmin/UseSuperAdmin';
2
2
  export { useClickOutside } from './UseClickOutside/UseClickOutside';
3
3
  export { useWindowSize } from './UseWindowSize/UseWindowSize';
4
4
  export * from './useUrlFilters';
5
- export * from './UseRegisterShortcut';
@@ -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.
@@ -34,7 +34,7 @@ export interface ImageButtonType {
34
34
  onHardDeleteClick?: any;
35
35
  tagId: number;
36
36
  softDeleteTags: any;
37
- isSuperAdmin: boolean;
37
+ isSuperAdmin: any;
38
38
  duplicateTag?: boolean;
39
39
  hideHardDelete?: boolean;
40
40
  }
@@ -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'>;