@devtron-labs/devtron-fe-common-lib 1.9.8-beta-4 → 1.9.9

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 (75) hide show
  1. package/dist/{@code-editor-KSo3oMNT.js → @code-editor-CHoIAnAq.js} +7743 -8390
  2. package/dist/{@common-rjsf-17BG61oO.js → @common-rjsf-BALKWZzq.js} +2 -2
  3. package/dist/{@framer-motion-DMD7dX-G.js → @framer-motion--UCnj55s.js} +893 -972
  4. package/dist/{@react-dates-DxmDHBUI.js → @react-dates-B3_Y9Kyv.js} +1 -1
  5. package/dist/{@react-select-BR4eLpVa.js → @react-select-DMzK6fkF.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Ca-pl6uN.js → @react-virtualized-sticky-tree-Ck5oyLp9.js} +1 -1
  7. package/dist/{@vendor-DZHtXPTX.js → @vendor-DXbFZ041.js} +14544 -14866
  8. package/dist/Common/Api.d.ts +15 -0
  9. package/dist/Common/Constants.d.ts +0 -4
  10. package/dist/Common/Helper.d.ts +0 -1
  11. package/dist/Common/Types.d.ts +0 -11
  12. package/dist/Common/index.d.ts +1 -2
  13. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  14. package/dist/Shared/Components/CustomInput/types.d.ts +1 -5
  15. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
  16. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +0 -1
  17. package/dist/Shared/Components/FormFieldWrapper/types.d.ts +0 -4
  18. package/dist/Shared/Components/Header/types.d.ts +1 -0
  19. package/dist/Shared/Components/Header/utils.d.ts +0 -2
  20. package/dist/Shared/Components/Icon/Icon.d.ts +0 -19
  21. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  22. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  23. package/dist/Shared/Components/index.d.ts +0 -6
  24. package/dist/Shared/Helpers.d.ts +1 -8
  25. package/dist/Shared/Providers/types.d.ts +2 -8
  26. package/dist/Shared/constants.d.ts +0 -5
  27. package/dist/Shared/types.d.ts +0 -64
  28. package/dist/assets/@code-editor.css +1 -1
  29. package/dist/index.d.ts +3 -0
  30. package/dist/index.js +778 -804
  31. package/package.json +1 -2
  32. package/dist/Common/API/CoreAPI.d.ts +0 -17
  33. package/dist/Common/API/constants.d.ts +0 -70
  34. package/dist/Common/API/index.d.ts +0 -3
  35. package/dist/Common/API/types.d.ts +0 -23
  36. package/dist/Common/API/utils.d.ts +0 -12
  37. package/dist/Common/DevtronCopyright.d.ts +0 -2
  38. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +0 -3
  39. package/dist/Shared/Components/CountrySelect/index.d.ts +0 -1
  40. package/dist/Shared/Components/CountrySelect/types.d.ts +0 -7
  41. package/dist/Shared/Components/CountrySelect/utils.d.ts +0 -4
  42. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +0 -3
  43. package/dist/Shared/Components/DevtronLicenseCard/InstallationFingerprintInfo.d.ts +0 -3
  44. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +0 -4
  45. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +0 -23
  46. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +0 -6
  47. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +0 -3
  48. package/dist/Shared/Components/FlagImage/index.d.ts +0 -1
  49. package/dist/Shared/Components/FlagImage/types.d.ts +0 -5
  50. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +0 -2
  51. package/dist/Shared/Components/LoginBanner/constants.d.ts +0 -4
  52. package/dist/Shared/Components/LoginBanner/index.d.ts +0 -1
  53. package/dist/Shared/Components/LoginBanner/types.d.ts +0 -7
  54. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +0 -3
  55. package/dist/Shared/Components/PhoneInput/index.d.ts +0 -1
  56. package/dist/Shared/Components/PhoneInput/types.d.ts +0 -11
  57. package/dist/assets/ic-73strings.ed7da294.svg +0 -5
  58. package/dist/assets/ic-apica.5a540546.svg +0 -15
  59. package/dist/assets/ic-ather.39aed36c.svg +0 -11
  60. package/dist/assets/ic-bharatpe.fc52fe6d.svg +0 -15
  61. package/dist/assets/ic-book-open.e839bbda.svg +0 -3
  62. package/dist/assets/ic-caret-left.3df25a7c.svg +0 -3
  63. package/dist/assets/ic-chat-circle-dots.b5afd171.svg +0 -3
  64. package/dist/assets/ic-cookr.d1510986.svg +0 -26
  65. package/dist/assets/ic-delhivery.7b49a398.svg +0 -15
  66. package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +0 -4
  67. package/dist/assets/ic-devtron.aca6cbaa.svg +0 -3
  68. package/dist/assets/ic-key.56432553.svg +0 -19
  69. package/dist/assets/ic-livspace.fc75c45f.svg +0 -13
  70. package/dist/assets/ic-quote.68f093fe.svg +0 -3
  71. package/dist/assets/ic-spinny.3884a5fb.svg +0 -14
  72. package/dist/assets/ic-tata1mg.75b97a64.svg +0 -13
  73. package/dist/assets/ic-timer.ae5f10fa.svg +0 -19
  74. package/dist/assets/ic-travclan.29b9f4c3.svg +0 -13
  75. package/dist/assets/login-screen-ui.a33a6496.webp +0 -0
@@ -0,0 +1,15 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { ResponseType, APIOptions } from './Types';
3
+ export declare const post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
4
+ export declare const put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
5
+ export declare const patch: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
6
+ export declare const get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
7
+ export declare const trash: <T = any, K = object>(url: string, data?: K, options?: APIOptions) => Promise<ResponseType<T>>;
8
+ /**
9
+ * Aborts the previous request before triggering next request
10
+ */
11
+ export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abortControllerRef: MutableRefObject<AbortController>) => Promise<T>;
12
+ /**
13
+ * Returns true if the error is due to a aborted request
14
+ */
15
+ export declare const getIsRequestAborted: (error: any) => boolean;
@@ -1,7 +1,6 @@
1
1
  export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
2
2
  export declare const Host: string;
3
3
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
4
- export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
5
4
  export declare const DOCUMENTATION_VERSION = "/v/v0.7";
6
5
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
6
  export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
@@ -66,7 +65,6 @@ export declare const URLS: {
66
65
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
67
66
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
68
67
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
69
- readonly LICENSE_AUTH: "/license-auth";
70
68
  };
71
69
  export declare const ROUTES: {
72
70
  readonly APP: "app";
@@ -289,7 +287,6 @@ export declare const API_STATUS_CODES: {
289
287
  PERMISSION_DENIED: number;
290
288
  NOT_FOUND: number;
291
289
  REQUEST_TIMEOUT: number;
292
- CONFLICT: number;
293
290
  EXPECTATION_FAILED: number;
294
291
  UNPROCESSABLE_ENTITY: number;
295
292
  LOCKED: number;
@@ -321,7 +318,6 @@ export declare const DATE_TIME_FORMATS: {
321
318
  TWELVE_HOURS_EXPORT_FORMAT: string;
322
319
  DD_MMM_YYYY_HH_MM: string;
323
320
  DD_MMM_YYYY: string;
324
- 'DD/MM/YYYY': string;
325
321
  };
326
322
  export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
327
323
  export declare const VULNERABILITIES_SORT_PRIORITY: {
@@ -143,5 +143,4 @@ export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) =>
143
143
  * @returns SHA-256 hashed value
144
144
  */
145
145
  export declare const getHashedValue: (value: string) => Promise<string | null>;
146
- export declare const getTTLInHumanReadableFormat: (ttl: number) => string;
147
146
  export {};
@@ -30,18 +30,7 @@ export interface APIOptions {
30
30
  */
31
31
  signal?: AbortSignal;
32
32
  abortControllerRef?: MutableRefObject<AbortController>;
33
- /**
34
- * @default false
35
- */
36
33
  preventAutoLogout?: boolean;
37
- /**
38
- * @default false
39
- */
40
- preventLicenseRedirect?: boolean;
41
- /**
42
- * @default false
43
- */
44
- shouldParseServerErrorForUnauthorizedUser?: boolean;
45
34
  }
46
35
  export interface OptionType<T = string, K = string> {
47
36
  value: T;
@@ -1,6 +1,7 @@
1
1
  export * from './Constants';
2
2
  export * from './ServerError';
3
3
  export * from './Types';
4
+ export * from './Api';
4
5
  export { default as Reload } from './Reload';
5
6
  export { default as ErrorScreenManager } from './ErrorScreenManager';
6
7
  export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
@@ -49,6 +50,4 @@ export * from './SegmentedBarChart';
49
50
  export * from './CodeEditor/types';
50
51
  export * from './Tooltip';
51
52
  export * from './SegmentedControl';
52
- export * from './API';
53
53
  export * from './DeleteCINodeButton';
54
- export { default as DevtronCopyright } from './DevtronCopyright';
@@ -1,3 +1,3 @@
1
1
  import { CustomInputProps } from './types';
2
- declare const CustomInput: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderConfig, borderRadiusConfig, type, autoFocus, endIconButtonConfig, labelTippyCustomizedConfig, labelTooltipConfig, inputRef: inputRefProp, hideFormFieldInfo, ...props }: CustomInputProps) => JSX.Element;
2
+ declare const CustomInput: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderConfig, borderRadiusConfig, type, autoFocus, endIconButtonConfig, labelTippyCustomizedConfig, labelTooltipConfig, ...props }: CustomInputProps) => JSX.Element;
3
3
  export default CustomInput;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, MutableRefObject } from 'react';
1
+ import { InputHTMLAttributes } from 'react';
2
2
  import { ComponentSizeType } from '../../constants';
3
3
  import { FormFieldWrapperProps } from '../FormFieldWrapper';
4
4
  import { ButtonComponentType, ButtonProps } from '../Button';
@@ -27,10 +27,6 @@ export interface CustomInputProps extends Omit<FormFieldWrapperProps, 'children'
27
27
  * End icon button configuration
28
28
  */
29
29
  endIconButtonConfig?: Required<Pick<ButtonProps<ButtonComponentType.button>, 'icon' | 'onClick' | 'ariaLabel'>> & Pick<ButtonProps<ButtonComponentType.button>, 'disabled' | 'showAriaLabelInTippy' | 'style'>;
30
- /**
31
- * Ref for the input element
32
- */
33
- inputRef?: MutableRefObject<HTMLInputElement>;
34
30
  }
35
31
  export interface PasswordFieldProps extends Omit<CustomInputProps, 'endIconButtonConfig' | 'type'> {
36
32
  /**
@@ -1,3 +1,3 @@
1
1
  import { FormFieldWrapperProps } from './types';
2
- declare const FormFieldWrapper: ({ layout, fullWidth, label, inputId, error, helperText, warningText, required, children, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, }: Omit<Required<FormFieldWrapperProps>, "hideFormFieldInfo"> & Pick<FormFieldWrapperProps, "hideFormFieldInfo">) => JSX.Element;
2
+ declare const FormFieldWrapper: ({ layout, fullWidth, label, inputId, error, helperText, warningText, required, children, labelTippyCustomizedConfig, labelTooltipConfig, }: Required<FormFieldWrapperProps>) => JSX.Element;
3
3
  export default FormFieldWrapper;
@@ -1,4 +1,3 @@
1
1
  export { default as FormFieldWrapper } from './FormFieldWrapper';
2
2
  export type { FormFieldWrapperProps } from './types';
3
3
  export { getFormFieldAriaAttributes } from './utils';
4
- export { default as FormFieldInfo } from './FormFieldInfo';
@@ -64,8 +64,4 @@ export interface FormFieldWrapperProps extends Pick<FormFieldLabelProps, 'label'
64
64
  children: ReactElement;
65
65
  borderRadiusConfig?: BorderConfigType;
66
66
  borderConfig?: BorderConfigType;
67
- /**
68
- * @default false
69
- */
70
- hideFormFieldInfo?: boolean;
71
67
  }
@@ -46,4 +46,5 @@ export interface HelpOptionType {
46
46
  name: string;
47
47
  link: string;
48
48
  icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
49
+ showSeparator?: boolean;
49
50
  }
@@ -1,5 +1,3 @@
1
- import { DevtronLicenseInfo } from '../DevtronLicenseCard';
2
1
  export declare const getDateInMilliseconds: (days: any) => number;
3
2
  export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
4
3
  export declare const setActionWithExpiry: (key: string, days: number) => void;
5
- export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
@@ -1,24 +1,16 @@
1
1
  import { IconBaseProps } from './types';
2
2
  export declare const iconMap: {
3
- 'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
4
3
  'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
5
4
  'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
- 'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
5
  'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
6
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
- 'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
7
  'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
- 'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
8
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
- 'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
9
  'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
15
10
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
16
- 'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
17
11
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
18
12
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
19
- 'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
13
  'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
- 'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
14
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
15
  'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
16
  'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -26,14 +18,10 @@ export declare const iconMap: {
26
18
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
19
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
20
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
29
- 'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
30
21
  'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
22
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
32
23
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
24
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
34
- 'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
35
- 'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
36
- 'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
37
25
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
38
26
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
27
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -58,9 +46,7 @@ export declare const iconMap: {
58
46
  'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
47
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
48
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
- 'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
49
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
- 'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
50
  'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
51
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
52
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -76,16 +62,11 @@ export declare const iconMap: {
76
62
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
77
63
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
78
64
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
79
- 'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
80
65
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
- 'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
66
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
67
  'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
68
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
85
- 'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
86
69
  'ic-timeout-two-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
- 'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
88
- 'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
89
70
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
90
71
  'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
91
72
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
134
134
  * />
135
135
  * ```
136
136
  */
137
- declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
137
+ declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
138
138
  export default SelectPicker;
@@ -1,3 +1,3 @@
1
1
  import { TextareaProps } from './types';
2
- declare const Textarea: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderRadiusConfig, labelTooltipConfig, labelTippyCustomizedConfig, hideFormFieldInfo, value, borderConfig, ...props }: TextareaProps) => JSX.Element;
2
+ declare const Textarea: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderRadiusConfig, labelTooltipConfig, labelTippyCustomizedConfig, value, borderConfig, ...props }: TextareaProps) => JSX.Element;
3
3
  export default Textarea;
@@ -69,10 +69,4 @@ export * from './CustomInput';
69
69
  export * from './InfoBlock';
70
70
  export * from './CodeEditorWrapper';
71
71
  export * from './SSOProviderIcon';
72
- export * from './Backdrop';
73
- export * from './CountrySelect';
74
- export * from './PhoneInput';
75
- export * from './FlagImage';
76
- export * from './DevtronLicenseCard';
77
- export * from './LoginBanner';
78
72
  export * from './Confetti';
@@ -4,7 +4,7 @@ import { Pair } from 'yaml';
4
4
  import { StrictRJSFSchema } from '@rjsf/utils';
5
5
  import { MaterialHistoryType } from '@Shared/Services/app.types';
6
6
  import { MaterialInfo, SortingOrder, UserApprovalConfigType, ApprovalConfigDataType, UserApprovalInfo } from '../Common';
7
- import { BorderConfigType, CentralAPILocalConfig, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
7
+ import { BorderConfigType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
8
8
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
9
9
  interface HighlightSearchTextProps {
10
10
  /**
@@ -100,11 +100,4 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
100
100
  borderRadiusConfig: BorderConfigType | undefined;
101
101
  }) => string;
102
102
  export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
103
- export declare const clearCookieOnLogout: () => void;
104
- export declare const getCentralAPIHealthObjectFromLocalStorage: () => CentralAPILocalConfig;
105
- /**
106
- *
107
- * @returns null if we do not know yet
108
- */
109
- export declare const getCentralAPIHealthFromLocalStorage: () => boolean | null;
110
103
  export {};
@@ -1,11 +1,11 @@
1
- import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
1
+ import { MutableRefObject, ReactNode } from 'react';
2
2
  import { ServerInfo } from '../Components/Header/types';
3
3
  import { SERVER_MODE } from '../../Common';
4
- import { DevtronLicenseInfo, LicenseInfoDialogType } from '..';
5
4
  export interface MainContext {
6
5
  serverMode: SERVER_MODE;
7
6
  setServerMode: (serverMode: SERVER_MODE) => void;
8
7
  isHelpGettingStartedClicked: boolean;
8
+ setPageOverflowEnabled: (isPageOverflowEnabled: boolean) => void;
9
9
  showCloseButtonAfterGettingStartedClicked: () => void;
10
10
  loginCount: number;
11
11
  setLoginCount: (loginCount: number) => void;
@@ -39,12 +39,6 @@ export interface MainContext {
39
39
  isManifestScanningEnabled: boolean;
40
40
  canOnlyViewPermittedEnvOrgLevel: boolean;
41
41
  viewIsPipelineRBACConfiguredNode: ReactNode;
42
- handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
43
- /**
44
- * Data is set only if showLicenseData is received as true
45
- */
46
- licenseData: DevtronLicenseInfo;
47
- setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
48
42
  }
49
43
  export interface MainContextProviderProps {
50
44
  children: ReactNode;
@@ -408,8 +408,6 @@ export declare const DC_DELETE_SUBTITLES: {
408
408
  DELETE_ENVIRONMENT_SUBTITLE: string;
409
409
  DELETE_CLUSTER_SUBTITLES: string;
410
410
  };
411
- export declare const EULA_LINK = "https://devtron.ai/end-user-license-agreement-eula";
412
- export declare const CONTACT_SUPPORT_LINK = "https://share.hsforms.com/1Yp3bvPAaRCaHUEH5vtMjEQ4368n";
413
411
  export declare const enum DeleteComponentsName {
414
412
  Cluster = "cluster",
415
413
  Job = "job pipeline",
@@ -419,6 +417,3 @@ export declare const Routes: {
419
417
  CI_PIPELINE_PATCH: string;
420
418
  WORKFLOW: string;
421
419
  };
422
- export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
423
- export declare const CENTRAL_API_LOCAL_STORAGE_KEY = "central-api-connection-config";
424
- export declare const INVALID_LICENSE_KEY = "inValid";
@@ -1,6 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
3
- import { ParsedCountry } from 'react-international-phone';
4
3
  import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
5
4
  import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
6
5
  import { SelectPickerOptionType } from './Components';
@@ -876,67 +875,4 @@ export interface AppEnvIdType {
876
875
  appId: number;
877
876
  envId: number;
878
877
  }
879
- export declare enum LicenseInfoDialogType {
880
- ABOUT = "about",
881
- LICENSE = "license",
882
- UPDATE = "update"
883
- }
884
- export declare enum LicensingErrorCodes {
885
- FingerPrintMisMatch = "11001",
886
- LicenseExpired = "11002",
887
- TamperedCertificate = "11003",
888
- NoPublicKey = "11004",
889
- InstallationModeMismatch = "11005",
890
- LicKeyMismatch = "11006",
891
- NoCertFound = "11007",
892
- LicKeyNotFound = "11008"
893
- }
894
- export interface LicenseErrorStruct {
895
- code: LicensingErrorCodes;
896
- userMessage: string;
897
- }
898
- export interface DevtronLicenseBaseDTO {
899
- fingerprint: string | null;
900
- isTrial: boolean | null;
901
- /**
902
- * In timestamp format
903
- */
904
- expiry: string | null;
905
- /**
906
- * Can be negative, depicts time left in seconds for license to expire
907
- */
908
- ttl: number | null;
909
- /**
910
- * Show a reminder after these many DAYS left for license to expire, i.e,
911
- * Show if `ttl` is less than `reminderThreshold` [converted to seconds]
912
- */
913
- reminderThreshold: number | null;
914
- organisationMetadata: {
915
- name: string | null;
916
- domain: string | null;
917
- } | null;
918
- license: string | null;
919
- }
920
- export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
921
- claimedByUserDetails: {
922
- firstName: string | null;
923
- lastName: string | null;
924
- email: string | null;
925
- } | null;
926
- showLicenseData?: never;
927
- licenseStatusError?: never;
928
- } : {
929
- claimedByUserDetails?: never;
930
- showLicenseData: boolean;
931
- licenseStatusError?: LicenseErrorStruct;
932
- });
933
- export type CountryISO2Type = ParsedCountry['iso2'];
934
- export interface CentralAPILocalConfig {
935
- lastUpdatedDate: string;
936
- isConnected: boolean | null;
937
- updateCount: number;
938
- }
939
- export declare enum ResponseHeaders {
940
- LICENSE_STATUS = "X-License-Status"
941
- }
942
878
  export {};