@devtron-labs/devtron-fe-common-lib 1.13.0-redfish-preview-beta-1 → 1.14.0-beta-0

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 (188) hide show
  1. package/dist/{@common-rjsf-CWkKRfHL.js → @code-editor-Cif8z4Ro.js} +21354 -20657
  2. package/dist/@common-rjsf-Biz8u7PS.js +617 -0
  3. package/dist/{@framer-motion-BL6-Hrrc.js → @framer-motion-yskvgVTJ.js} +81 -81
  4. package/dist/{@react-dates-CIHHgq4p.js → @react-dates-CjDXXGeL.js} +14 -14
  5. package/dist/{@react-select-BVKpsqGO.js → @react-select-BU-PSeWT.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CjKfeUxB.js → @react-virtualized-sticky-tree-OkovxIT2.js} +1 -1
  7. package/dist/{@vendor-CekuMgQx.js → @vendor-DULrMUB_.js} +49238 -47535
  8. package/dist/Common/API/QueryClientProvider.d.ts +2 -0
  9. package/dist/Common/API/index.d.ts +2 -0
  10. package/dist/Common/API/useQueryClient.d.ts +6 -0
  11. package/dist/Common/Checkbox/Checkbox.d.ts +2 -0
  12. package/dist/Common/Checkbox/index.d.ts +1 -0
  13. package/dist/Common/Common.service.d.ts +2 -2
  14. package/dist/Common/Constants.d.ts +1 -11
  15. package/dist/Common/Drawer/index.d.ts +1 -0
  16. package/dist/Common/EmptyState/index.d.ts +2 -0
  17. package/dist/Common/Helper.d.ts +5 -1
  18. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  19. package/dist/Common/RJSF/Form.d.ts +1 -1
  20. package/dist/Common/TippyCustomized.d.ts +1 -1
  21. package/dist/Common/Toggle/Toggle.d.ts +4 -1
  22. package/dist/Common/Types.d.ts +12 -6
  23. package/dist/Common/index.d.ts +3 -3
  24. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
  25. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
  26. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  27. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  28. package/dist/Pages/ResourceBrowser/types.d.ts +38 -0
  29. package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +1 -2
  30. package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +2 -0
  31. package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
  32. package/dist/Shared/Components/ActionMenu/types.d.ts +88 -11
  33. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +275 -0
  34. package/dist/Shared/Components/ActionMenu/utils.d.ts +7 -0
  35. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +2 -0
  36. package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +3 -0
  37. package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +3 -0
  38. package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +3 -0
  39. package/dist/Shared/Components/AppStatusModal/constants.d.ts +4 -0
  40. package/dist/Shared/Components/AppStatusModal/index.d.ts +3 -0
  41. package/dist/Shared/Components/AppStatusModal/service.d.ts +4 -0
  42. package/dist/Shared/Components/AppStatusModal/types.d.ts +84 -0
  43. package/dist/Shared/Components/AppStatusModal/utils.d.ts +8 -0
  44. package/dist/Shared/Components/Button/types.d.ts +3 -1
  45. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
  46. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
  47. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
  48. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
  49. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
  50. package/dist/Shared/Components/CICDHistory/service.d.ts +3 -0
  51. package/dist/Shared/Components/CICDHistory/types.d.ts +11 -77
  52. package/dist/Shared/Components/CICDHistory/utils.d.ts +7 -3
  53. package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +10 -0
  54. package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +3 -0
  55. package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +22 -0
  56. package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +20 -0
  57. package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
  58. package/dist/Shared/Components/Error/types.d.ts +4 -0
  59. package/dist/Shared/Components/Error/utils.d.ts +1 -0
  60. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
  61. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  62. package/dist/Shared/Components/FeatureDescription/types.d.ts +5 -2
  63. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  64. package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
  65. package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
  66. package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
  67. package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
  68. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -3
  69. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +10 -0
  70. package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +2 -0
  71. package/dist/Shared/Components/Header/HelpButton.d.ts +2 -0
  72. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  73. package/dist/Shared/Components/Header/constants.d.ts +5 -4
  74. package/dist/Shared/Components/Header/types.d.ts +20 -14
  75. package/dist/Shared/Components/Header/utils.d.ts +5 -1
  76. package/dist/Shared/Components/Icon/Icon.d.ts +38 -1
  77. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  78. package/dist/Shared/Components/Icon/types.d.ts +30 -8
  79. package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
  80. package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
  81. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  82. package/dist/Shared/Components/License/index.d.ts +1 -1
  83. package/dist/Shared/Components/License/utils.d.ts +2 -1
  84. package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +3 -0
  85. package/dist/Shared/Components/LoginBanner/index.d.ts +2 -0
  86. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
  87. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +4 -2
  88. package/dist/Shared/Components/Popover/Popover.component.d.ts +8 -0
  89. package/dist/Shared/Components/Popover/index.d.ts +3 -0
  90. package/dist/Shared/Components/Popover/types.d.ts +105 -0
  91. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +2 -0
  92. package/dist/Shared/Components/Popover/utils.d.ts +92 -0
  93. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  94. package/dist/Shared/Components/SelectPicker/common.d.ts +2 -0
  95. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
  96. package/dist/Shared/Components/SelectPicker/type.d.ts +4 -0
  97. package/dist/Shared/Components/StatusComponent/types.d.ts +2 -1
  98. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
  99. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +33 -7
  100. package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
  101. package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -2
  102. package/dist/Shared/Components/index.d.ts +2 -2
  103. package/dist/Shared/DocLink/DocLink.d.ts +2 -0
  104. package/dist/Shared/DocLink/constants.d.ts +91 -0
  105. package/dist/Shared/DocLink/index.d.ts +3 -0
  106. package/dist/Shared/DocLink/types.d.ts +11 -0
  107. package/dist/Shared/DocLink/utils.d.ts +2 -0
  108. package/dist/Shared/Helpers.d.ts +2 -2
  109. package/dist/Shared/Providers/index.d.ts +1 -1
  110. package/dist/Shared/Providers/types.d.ts +11 -1
  111. package/dist/Shared/constants.d.ts +18 -24
  112. package/dist/Shared/types.d.ts +110 -2
  113. package/dist/assets/@code-editor.css +1 -0
  114. package/dist/assets/@common-rjsf.css +1 -1
  115. package/dist/assets/empty-create.661d9355.png +0 -0
  116. package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
  117. package/dist/assets/ic-app-template.82736707.svg +23 -0
  118. package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
  119. package/dist/assets/ic-azure-aks.a9e437d5.svg +46 -0
  120. package/dist/assets/{ic-arrow-square-out.3d1a0d41.svg → ic-bulk-check.0f698efa.svg} +4 -2
  121. package/dist/assets/ic-bulk-check.99e92f7a.svg +21 -0
  122. package/dist/assets/ic-caret-down-small.7c4f88bf.svg +3 -0
  123. package/dist/assets/ic-caret-right.0ff813c2.svg +3 -0
  124. package/dist/assets/ic-celebration.77350694.svg +238 -0
  125. package/dist/assets/ic-chat-circle-online.51348da5.svg +4 -0
  126. package/dist/assets/{ic-medal.a2e911f5.svg → ic-checkbox-hover.0151d832.svg} +4 -3
  127. package/dist/assets/{ic-k8s-job.f4414c10.svg → ic-checkbox-hover.93e8d66a.svg} +4 -3
  128. package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +22 -0
  129. package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +22 -0
  130. package/dist/assets/ic-checkbox-selected.47444fab.svg +20 -0
  131. package/dist/assets/ic-checkbox-selected.c5539d6f.svg +20 -0
  132. package/dist/assets/{ic-check-grey.f556e371.svg → ic-checkbox-unselected.8054e3d7.svg} +2 -4
  133. package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
  134. package/dist/assets/ic-cloud-vms.27ea954e.svg +5 -0
  135. package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
  136. package/dist/assets/ic-delete-dots.5380e0d0.svg +62 -0
  137. package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
  138. package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
  139. package/dist/assets/ic-disconnect.2ad261fc.svg +3 -0
  140. package/dist/assets/ic-discord-fill.103b579a.svg +3 -0
  141. package/dist/assets/ic-edit.3249ed32.svg +3 -0
  142. package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +3 -0
  143. package/dist/assets/ic-enterprise-tag.209dd129.svg +43 -0
  144. package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
  145. package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
  146. package/dist/assets/ic-file-edit.96a172c7.svg +3 -0
  147. package/dist/assets/ic-file.c3c45e13.svg +3 -0
  148. package/dist/assets/ic-files.b0ebea46.svg +3 -0
  149. package/dist/assets/ic-gift-gradient.7690a246.svg +9 -0
  150. package/dist/assets/ic-gift.9b048fc7.svg +3 -0
  151. package/dist/assets/ic-gitlab.ac331d67.svg +31 -0
  152. package/dist/assets/ic-google-gke.07314724.svg +9 -0
  153. package/dist/assets/ic-install.28c3beec.svg +3 -0
  154. package/dist/assets/ic-k3s.7f4bf72d.svg +3 -0
  155. package/dist/assets/ic-kind.bd8ee992.svg +9 -0
  156. package/dist/assets/ic-laptop.485e21b4.svg +3 -0
  157. package/dist/assets/ic-man-on-rocket.7f67e914.svg +94 -0
  158. package/dist/assets/ic-megaphone-left.6b2a00b7.svg +3 -0
  159. package/dist/assets/ic-megaphone-right.9d6bcd36.svg +3 -0
  160. package/dist/assets/ic-minikube.d9ff1575.svg +9 -0
  161. package/dist/assets/ic-mobile.7c649251.svg +4 -0
  162. package/dist/assets/ic-path.d4fef3b0.svg +3 -0
  163. package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
  164. package/dist/assets/ic-ubuntu.fa47508f.svg +4 -0
  165. package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
  166. package/dist/assets/ic-wifi-slash.d0390749.svg +3 -0
  167. package/dist/index.d.ts +3 -0
  168. package/dist/index.js +887 -847
  169. package/package.json +3 -2
  170. package/dist/Common/Checkbox.d.ts +0 -5
  171. package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +0 -3
  172. package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
  173. package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
  174. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
  175. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -2
  176. package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
  177. package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
  178. package/dist/Shared/Components/Header/HelpNav.d.ts +0 -3
  179. package/dist/assets/ic-charts.f41e185f.svg +0 -19
  180. package/dist/assets/ic-chat-circle-dots.e15514f8.svg +0 -23
  181. package/dist/assets/ic-disconnected.551d6161.svg +0 -29
  182. package/dist/assets/ic-discord-fill.1a1b291d.svg +0 -19
  183. package/dist/assets/ic-feedback.d32fa6b0.svg +0 -19
  184. package/dist/assets/ic-files.fc290dee.svg +0 -19
  185. package/dist/assets/ic-login-devtron-logo.702a1d04.svg +0 -22
  186. package/dist/assets/ic-megaphone.b9f9a901.svg +0 -19
  187. package/dist/assets/ic-onboarding.c98f9ef9.svg +0 -19
  188. package/dist/assets/ic-timeout-red.5eda1010.svg +0 -21
@@ -0,0 +1,2 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const QueryClientProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
@@ -1,3 +1,5 @@
1
1
  export declare const post: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions, isMultipartRequest?: boolean) => Promise<import('..').ResponseType<T>>, put: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, patch: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, get: <T = any>(url: string, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, trash: <T = any, K = object>(url: string, data?: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>;
2
2
  export { default as CoreAPI } from './CoreAPI';
3
+ export { QueryClientProvider } from './QueryClientProvider';
4
+ export * from './useQueryClient';
3
5
  export { abortPreviousRequests, getIsRequestAborted, handleRedirectToLicenseActivation } from './utils';
@@ -0,0 +1,6 @@
1
+ import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { ServerErrors } from '../ServerError';
3
+ import { ResponseType } from '../Types';
4
+ export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData>, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
5
+ export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
6
+ export { useQueryClient };
@@ -0,0 +1,2 @@
1
+ import { CheckboxProps } from '../Types';
2
+ export declare const Checkbox: ({ rootClassName, onClick, name, disabled, value, onChange, tabIndex, isChecked, id, dataTestId, children, }: CheckboxProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Checkbox';
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
3
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
6
6
  export declare const SourceTypeMap: {
@@ -21,7 +21,7 @@ export declare const getDefaultConfig: () => Promise<ResponseType>;
21
21
  export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
22
22
  export declare function getClusterListMin(): Promise<ResponseType<any>>;
23
23
  export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
24
- export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
24
+ export declare function getNamespaceListMin(clusterIdsCsv: string, abortControllerRef?: APIOptions['abortControllerRef']): Promise<EnvironmentListHelmResponse>;
25
25
  export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
26
26
  /**
27
27
  *
@@ -5,15 +5,6 @@ export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
5
5
  export declare const DOCUMENTATION_VERSION = "/v/v0.7";
6
6
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
7
  export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
8
- export declare const DOCUMENTATION: {
9
- APP_METRICS: string;
10
- APP_TAGS: string;
11
- APP_OVERVIEW_TAGS: string;
12
- BLOB_STORAGE: string;
13
- GLOBAL_CONFIG_BUILD_INFRA: string;
14
- ENTERPRISE_LICENSE: string;
15
- KUBE_CONFIG: string;
16
- };
17
8
  export declare const PATTERNS: {
18
9
  STRING: RegExp;
19
10
  DECIMAL_NUMBERS: RegExp;
@@ -42,7 +33,6 @@ export declare const URLS: {
42
33
  readonly CREATE_JOB: "create-job";
43
34
  readonly GETTING_STARTED: "getting-started";
44
35
  readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
45
- readonly APP_LIST_HELM: "h";
46
36
  readonly APP_CI_DETAILS: "ci-details";
47
37
  readonly LOGS: "Logs";
48
38
  readonly CREATE: "/create";
@@ -64,7 +54,6 @@ export declare const URLS: {
64
54
  readonly COMPARE_CLUSTERS: "/compare-clusters";
65
55
  readonly APP_CONFIG: "edit";
66
56
  readonly GLOBAL_CONFIG: "/global-config";
67
- readonly CONFIG_DRIFT: "config-drift";
68
57
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
69
58
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
70
59
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
@@ -111,6 +100,7 @@ export declare const ROUTES: {
111
100
  readonly ATTRIBUTES_CREATE: "attributes/create";
112
101
  readonly ATTRIBUTES_UPDATE: "attributes/update";
113
102
  readonly APP_LIST_MIN: "app/min";
103
+ readonly APP_DETAIL: "app/detail";
114
104
  readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
115
105
  readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
116
106
  readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
@@ -0,0 +1 @@
1
+ export * from './Drawer';
@@ -0,0 +1,2 @@
1
+ export { default as GenericEmptyState } from './GenericEmptyState';
2
+ export { default as GenericFilterEmptyState } from './GenericFilterEmptyState';
@@ -1,7 +1,7 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
2
  import { JSONPathOptions } from 'jsonpath-plus';
3
3
  import { AsyncOptions, DeploymentNodeType, UseSearchString } from './Types';
4
- import { scrollableInterface } from '../Shared';
4
+ import { scrollableInterface, AppType } from '../Shared';
5
5
  import * as Sentry from '@sentry/browser';
6
6
  export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
7
7
  interface ConditionalWrapper<T> {
@@ -95,8 +95,10 @@ export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultT
95
95
  export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
96
96
  /**
97
97
  * Returns a debounced variant of the function
98
+ * @deprecated - It should use useRef instead, pls use useDebounce
98
99
  */
99
100
  export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
101
+ export declare const useDebounce: <Callback extends (...args: any[]) => void>(cb: Callback, delay: number) => (...args: Parameters<Callback>) => void;
100
102
  /**
101
103
  * Returns a capitalized string with first letter in uppercase and rest in lowercase
102
104
  */
@@ -144,4 +146,6 @@ export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) =>
144
146
  */
145
147
  export declare const getHashedValue: (value: string) => Promise<string | null>;
146
148
  export declare const getTTLInHumanReadableFormat: (ttl: number) => string;
149
+ export declare const getAIAnalyticsEvents: (context: string, appType?: AppType) => string;
150
+ export declare const findRight: <T>(arr: T[], predicate: (item: T) => boolean) => T | null;
147
151
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ShortcutType } from './types';
2
2
  export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
3
- keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
3
+ keys: ("R" | "Enter" | "Escape" | "." | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "Space" | "Control" | "Shift" | "Meta" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
4
4
  id: string;
5
5
  };
6
6
  export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "action" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "method" | "autoComplete" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "tagName" | "onError" | "onChange" | "onBlur" | "onSubmit" | "target" | "onFocus" | "autoComplete" | "method" | "action" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
@@ -1,2 +1,2 @@
1
1
  import { TippyCustomizedProps } from './Types';
2
- export declare const TippyCustomized: (props: TippyCustomizedProps) => JSX.Element;
2
+ export declare const TippyCustomized: <T extends boolean = false>(props: TippyCustomizedProps<T>) => JSX.Element;
@@ -1,4 +1,5 @@
1
- declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, ...props }: {
1
+ import { CHECKBOX_VALUE } from '../Types';
2
+ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, value, isControlled, ...props }: {
2
3
  [x: string]: any;
3
4
  selected?: boolean;
4
5
  onSelect?: any;
@@ -11,5 +12,7 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
11
12
  throttleOnChange?: boolean;
12
13
  shouldToggleValueOnLabelClick?: boolean;
13
14
  isLoading?: boolean;
15
+ value?: CHECKBOX_VALUE;
16
+ isControlled?: boolean;
14
17
  }) => JSX.Element;
15
18
  export default Toggle;
@@ -3,7 +3,7 @@ import { TippyProps } from '@tippyjs/react';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
5
  import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType } from '../Shared';
6
- import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
6
+ import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, DOCUMENTATION, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
9
9
  *
@@ -75,8 +75,14 @@ export interface CheckboxProps {
75
75
  onClick?: (event: any) => void;
76
76
  id?: string;
77
77
  dataTestId?: string;
78
+ children?: ReactNode;
78
79
  }
79
- export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
80
+ export type TippyWithBaseDocLinkTypes<T extends boolean> = {
81
+ isExternalLink?: T;
82
+ isEnterprise?: boolean;
83
+ documentationLink?: T extends true ? string : keyof typeof DOCUMENTATION;
84
+ };
85
+ export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo'> & TippyWithBaseDocLinkTypes<T> & {
80
86
  theme: TippyTheme;
81
87
  visible?: boolean;
82
88
  heading?: ReactNode | string;
@@ -101,15 +107,15 @@ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
101
107
  animation?: string;
102
108
  duration?: number;
103
109
  additionalContent?: ReactNode;
104
- documentationLink?: string;
105
110
  documentationLinkText?: string;
106
111
  children: React.ReactElement<any>;
107
112
  disableClose?: boolean;
108
- }
109
- export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading' | 'infoText' | 'iconClass' | 'documentationLink' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo'> {
113
+ };
114
+ export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | 'isEnterprise' | 'isExternalLink'> {
110
115
  dataTestid?: string;
111
- children?: TippyCustomizedProps['children'];
116
+ children?: TippyCustomizedProps<T>['children'];
112
117
  iconClassName?: string;
118
+ buttonPadding?: string;
113
119
  }
114
120
  export interface GenericEmptyStateType {
115
121
  title: ReactNode;
@@ -1,3 +1,4 @@
1
+ export * from '../Shared/DocLink';
1
2
  export * from './AddCDButton';
2
3
  export * from './API';
3
4
  export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
@@ -15,9 +16,8 @@ export { default as DevtronCopyright } from './DevtronCopyright';
15
16
  export * from './DevtronProgressing';
16
17
  export * from './Dialogs';
17
18
  export * from './DraggableWrapper';
18
- export * from './Drawer/Drawer';
19
- export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
20
- export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState';
19
+ export * from './Drawer';
20
+ export * from './EmptyState';
21
21
  export { default as ErrorScreenManager } from './ErrorScreenManager';
22
22
  export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
23
23
  export * from './GenericDescription';
@@ -0,0 +1 @@
1
+ export type { NewClusterFormFooterProps, NewClusterFormProps } from './types';
@@ -0,0 +1,8 @@
1
+ export interface NewClusterFormFooterProps {
2
+ apiCallInProgress: boolean;
3
+ handleModalClose: () => void;
4
+ closeButtonText?: string;
5
+ }
6
+ export interface NewClusterFormProps extends Pick<NewClusterFormFooterProps, 'handleModalClose'> {
7
+ FooterComponent: React.FunctionComponent<NewClusterFormFooterProps> & Record<'CTA' | 'Start', React.FunctionComponent<{}>>;
8
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './Authorization';
2
2
  export * from './BuildInfra';
3
+ export * from './ClustersAndEnvironments';
3
4
  export * from './DeploymentCharts';
4
5
  export * from './ScopedVariables';
@@ -7,4 +7,4 @@ export declare const deleteResource: (resourceListPayload: ResourceListPayloadTy
7
7
  export declare const deleteNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
8
8
  export declare const cordonNodeCapacity: (requestPayload: NodeCordonRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
9
9
  export declare const drainNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
10
- export declare const getClusterListRaw: () => Promise<ResponseType<ClusterDetail[]>>;
10
+ export declare const getClusterListRaw: (abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType<ClusterDetail[]>>;
@@ -1,11 +1,21 @@
1
1
  import { Dispatch, ReactElement, SetStateAction } from 'react';
2
2
  import { TabProps } from '../../Shared/Components';
3
+ import { InstallationClusterType } from '../../Shared/types';
3
4
  import { NodeActionRequest } from './ResourceBrowser.Types';
4
5
  export declare enum ClusterFiltersType {
5
6
  ALL_CLUSTERS = "all",
6
7
  HEALTHY = "healthy",
7
8
  UNHEALTHY = "unhealthy"
8
9
  }
10
+ export declare enum InstallationClusterStatus {
11
+ Creating = "Creating",
12
+ Updated = "Updated",
13
+ Updating = "Updating",
14
+ Installed = "Installed",
15
+ Failed = "Failed",
16
+ Deleting = "Deleting",
17
+ Deleted = "Deleted"
18
+ }
9
19
  export declare enum ClusterStatusType {
10
20
  HEALTHY = "healthy",
11
21
  UNHEALTHY = "unhealthy",
@@ -43,6 +53,7 @@ export interface ClusterCapacityType {
43
53
  nodeErrors: Record<string, string>[];
44
54
  status?: ClusterStatusType;
45
55
  isProd: boolean;
56
+ installationId?: number;
46
57
  }
47
58
  export interface ClusterDetail extends ClusterCapacityType {
48
59
  id: number;
@@ -75,4 +86,31 @@ export type NodeDetailTabsInfoType = (Pick<TabProps, 'label' | 'icon'> & {
75
86
  id: string;
76
87
  renderComponent: () => JSX.Element;
77
88
  })[];
89
+ export interface InstallationClusterStepType {
90
+ lastTransitionTime: string;
91
+ lastProbeTime: string;
92
+ message: string;
93
+ reason: string;
94
+ status: 'False' | 'True' | 'Unknown';
95
+ type: string;
96
+ }
97
+ export interface InstallationClusterConfigDTO {
98
+ installationId: number;
99
+ installationStatus: InstallationClusterStatus;
100
+ name: string;
101
+ values: string;
102
+ valuesSchema: string;
103
+ isProd: boolean;
104
+ installationType: InstallationClusterType;
105
+ conditions: InstallationClusterStepType[];
106
+ installedEntityId: number | 0;
107
+ }
108
+ export interface InstallationClusterConfigType extends Pick<InstallationClusterConfigDTO, 'installationType' | 'conditions'> {
109
+ schema: object;
110
+ values: object;
111
+ installationId: number;
112
+ name: string;
113
+ status: InstallationClusterStatus;
114
+ correspondingClusterId: number | 0;
115
+ }
78
116
  export {};
@@ -1,3 +1,2 @@
1
1
  import { ActionMenuProps } from './types';
2
- declare const ActionMenu: ({ options, disableDescriptionEllipsis, children, onClick }: ActionMenuProps) => JSX.Element;
3
- export default ActionMenu;
2
+ export declare const ActionMenu: <T extends string | number = string | number>({ id, options, onClick, position, alignment, width, isSearchable, disableDescriptionEllipsis, buttonProps, children, onOpen, footerConfig, }: ActionMenuProps<T>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ActionMenuItemProps } from './types';
2
+ export declare const ActionMenuItem: <T extends string | number>({ item, itemRef, isFocused, onClick, onMouseEnter, disableDescriptionEllipsis, }: ActionMenuItemProps<T>) => JSX.Element;
@@ -1,2 +1,2 @@
1
- export { default as ActionMenu } from './ActionMenu.component';
2
- export type { ActionMenuProps } from './types';
1
+ export * from './ActionMenu.component';
2
+ export type { ActionMenuItemType, ActionMenuOptionType, ActionMenuProps } from './types';
@@ -1,19 +1,96 @@
1
- import { ReactElement } from 'react';
2
- import { GroupBase, OptionsOrGroups } from 'react-select';
1
+ import { LegacyRef, Ref } from 'react';
2
+ import { LinkProps } from 'react-router-dom';
3
+ import { IconsProps } from '../Icon';
4
+ import { PopoverProps, UsePopoverProps } from '../Popover';
3
5
  import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
4
- type ActionMenuOptionType = SelectPickerOptionType & {
6
+ type ConditionalActionMenuComponentType = {
7
+ /**
8
+ * @default 'button'
9
+ */
10
+ componentType?: 'button';
11
+ href?: never;
12
+ to?: never;
13
+ } | {
14
+ componentType?: 'anchor';
15
+ /** Specifies the URL for the `<a>` tag. */
16
+ href: string;
17
+ to?: never;
18
+ } | {
19
+ componentType?: 'link';
20
+ /** Specifies the `to` property for react-router `Link` */
21
+ to: LinkProps['to'];
22
+ href?: never;
23
+ };
24
+ type ActionMenuItemIconType = Pick<IconsProps, 'name'> & {
25
+ /** @default 'N800' */
26
+ color?: IconsProps['color'];
27
+ };
28
+ export type ActionMenuItemType<T extends string | number = string | number> = Omit<SelectPickerOptionType, 'label' | 'value' | 'endIcon' | 'startIcon'> & {
29
+ /** A unique identifier for the action menu item. */
30
+ id: T;
31
+ /** The text label for the menu item. */
32
+ label: string;
33
+ /** Indicates whether the menu item is disabled. */
5
34
  isDisabled?: boolean;
6
35
  /**
36
+ * Specifies the type of the menu item.
7
37
  * @default 'neutral'
8
38
  */
9
39
  type?: 'neutral' | 'negative';
40
+ /** Defines the icon to be displayed at the start of the menu item. */
41
+ startIcon?: ActionMenuItemIconType;
42
+ /** Defines the icon to be displayed at the end of the menu item. */
43
+ endIcon?: ActionMenuItemIconType;
44
+ } & ConditionalActionMenuComponentType;
45
+ export type ActionMenuOptionType<T extends string | number> = {
46
+ /**
47
+ * The label for the group of menu items. \
48
+ * This is optional and can be used to categorize items under a specific group.
49
+ */
50
+ groupLabel?: string;
51
+ /**
52
+ * The list of items belonging to this group.
53
+ */
54
+ items: ActionMenuItemType<T>[];
55
+ };
56
+ export type UseActionMenuProps<T extends string | number> = Omit<UsePopoverProps, 'onPopoverKeyDown' | 'onTriggerKeyDown'> & {
57
+ /**
58
+ * The options to display in the action menu.
59
+ */
60
+ options: ActionMenuOptionType<T>[];
61
+ /**
62
+ * Determines whether the action menu is searchable.
63
+ */
64
+ isSearchable?: boolean;
65
+ };
66
+ export type ActionMenuProps<T extends string | number = string | number> = UseActionMenuProps<T> & Pick<SelectPickerProps, 'disableDescriptionEllipsis'> & {
67
+ /**
68
+ * Callback function triggered when an item is clicked.
69
+ * @param item - The selected item.
70
+ */
71
+ onClick: (item: ActionMenuItemType<T>) => void;
72
+ /**
73
+ * Config for the footer at the bottom of action menu list. It is sticky by default
74
+ */
75
+ footerConfig?: SelectPickerProps['menuListFooterConfig'];
76
+ } & ({
77
+ /**
78
+ * The React element to which the ActionMenu is attached.
79
+ * @note only use when children is not `Button` component otherwise use `buttonProps`.
80
+ */
81
+ children: NonNullable<PopoverProps['triggerElement']>;
82
+ buttonProps?: never;
83
+ } | {
84
+ children?: never;
85
+ /**
86
+ * Properties for the button to which the Popover is attached.
87
+ */
88
+ buttonProps: NonNullable<PopoverProps['buttonProps']>;
89
+ });
90
+ export type ActionMenuItemProps<T extends string | number> = Pick<ActionMenuProps<T>, 'onClick' | 'disableDescriptionEllipsis'> & {
91
+ item: ActionMenuItemType<T>;
92
+ itemRef: Ref<HTMLAnchorElement> | LegacyRef<HTMLAnchorElement | HTMLButtonElement>;
93
+ isFocused?: boolean;
94
+ onMouseEnter?: () => void;
10
95
  };
11
- export interface ActionMenuProps extends Pick<SelectPickerProps, 'disableDescriptionEllipsis'> {
12
- children: ReactElement;
13
- options: OptionsOrGroups<ActionMenuOptionType, GroupBase<ActionMenuOptionType>>;
14
- onClick: (option: SelectPickerOptionType) => void;
15
- }
16
- export interface ActionMenuOptionProps extends Pick<ActionMenuProps, 'onClick' | 'disableDescriptionEllipsis'> {
17
- option: ActionMenuOptionType;
18
- }
19
96
  export {};