@devtron-labs/devtron-fe-common-lib 1.9.9 → 1.10.0-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/{@code-editor-CHoIAnAq.js → @code-editor-DRt5IoO7.js} +8236 -7496
  2. package/dist/{@common-rjsf-BALKWZzq.js → @common-rjsf-JkVClwt2.js} +20 -20
  3. package/dist/{@framer-motion--UCnj55s.js → @framer-motion-DMD7dX-G.js} +972 -893
  4. package/dist/{@react-dates-B3_Y9Kyv.js → @react-dates-DxmDHBUI.js} +1 -1
  5. package/dist/{@react-select-DMzK6fkF.js → @react-select-BR4eLpVa.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Ck5oyLp9.js → @react-virtualized-sticky-tree-Ca-pl6uN.js} +1 -1
  7. package/dist/{@vendor-DXbFZ041.js → @vendor-DZHtXPTX.js} +14866 -14544
  8. package/dist/Common/API/CoreAPI.d.ts +17 -0
  9. package/dist/Common/API/constants.d.ts +70 -0
  10. package/dist/Common/API/index.d.ts +3 -0
  11. package/dist/Common/API/types.d.ts +23 -0
  12. package/dist/Common/API/utils.d.ts +12 -0
  13. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +1 -1
  14. package/dist/Common/ClipboardButton/types.d.ts +11 -0
  15. package/dist/Common/CodeMirror/utils.d.ts +1 -0
  16. package/dist/Common/Constants.d.ts +6 -0
  17. package/dist/Common/DevtronCopyright.d.ts +2 -0
  18. package/dist/Common/Helper.d.ts +1 -0
  19. package/dist/Common/Types.d.ts +11 -0
  20. package/dist/Common/index.d.ts +2 -1
  21. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
  22. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +9 -0
  23. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  24. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  25. package/dist/Pages/ResourceBrowser/types.d.ts +41 -1
  26. package/dist/Shared/Analytics/analytics.d.ts +2 -0
  27. package/dist/Shared/Analytics/index.d.ts +2 -0
  28. package/dist/Shared/Analytics/types.d.ts +3 -0
  29. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  30. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
  31. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +3 -0
  32. package/dist/Shared/Components/CountrySelect/index.d.ts +1 -0
  33. package/dist/Shared/Components/CountrySelect/types.d.ts +7 -0
  34. package/dist/Shared/Components/CountrySelect/utils.d.ts +4 -0
  35. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  36. package/dist/Shared/Components/CustomInput/types.d.ts +5 -1
  37. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +3 -0
  38. package/dist/Shared/Components/DevtronLicenseCard/InstallationFingerprintInfo.d.ts +3 -0
  39. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +4 -0
  40. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +26 -0
  41. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +6 -0
  42. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +3 -0
  43. package/dist/Shared/Components/FlagImage/index.d.ts +1 -0
  44. package/dist/Shared/Components/FlagImage/types.d.ts +5 -0
  45. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
  46. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -0
  47. package/dist/Shared/Components/FormFieldWrapper/types.d.ts +4 -0
  48. package/dist/Shared/Components/Header/constants.d.ts +1 -0
  49. package/dist/Shared/Components/Header/types.d.ts +0 -1
  50. package/dist/Shared/Components/Header/utils.d.ts +3 -0
  51. package/dist/Shared/Components/Icon/Icon.d.ts +24 -0
  52. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +2 -0
  53. package/dist/Shared/Components/LoginBanner/constants.d.ts +4 -0
  54. package/dist/Shared/Components/LoginBanner/index.d.ts +1 -0
  55. package/dist/Shared/Components/LoginBanner/types.d.ts +7 -0
  56. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +3 -0
  57. package/dist/Shared/Components/PhoneInput/index.d.ts +1 -0
  58. package/dist/Shared/Components/PhoneInput/types.d.ts +11 -0
  59. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  60. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  61. package/dist/Shared/Components/index.d.ts +6 -0
  62. package/dist/Shared/Helpers.d.ts +1 -0
  63. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +1 -0
  64. package/dist/Shared/Providers/types.d.ts +8 -2
  65. package/dist/Shared/Services/types.d.ts +1 -0
  66. package/dist/Shared/constants.d.ts +4 -0
  67. package/dist/Shared/index.d.ts +1 -0
  68. package/dist/Shared/types.d.ts +64 -0
  69. package/dist/assets/@code-editor.css +1 -1
  70. package/dist/assets/ic-73strings.ed7da294.svg +5 -0
  71. package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
  72. package/dist/assets/ic-apica.5a540546.svg +15 -0
  73. package/dist/assets/ic-app-group.068791a2.svg +19 -0
  74. package/dist/assets/ic-arrow-right.96f4142a.svg +19 -0
  75. package/dist/assets/ic-ather.39aed36c.svg +11 -0
  76. package/dist/assets/{ic-azure.49ec3dad.svg → ic-azure.a01ce3b4.svg} +16 -0
  77. package/dist/assets/ic-bharatpe.fc52fe6d.svg +15 -0
  78. package/dist/assets/ic-book-open.e839bbda.svg +3 -0
  79. package/dist/assets/ic-browser.f77a9d59.svg +19 -0
  80. package/dist/assets/ic-card-stack.0de57a3a.svg +19 -0
  81. package/dist/assets/{ic-arrow-right.06ad55f3.svg → ic-caret-left.3df25a7c.svg} +1 -1
  82. package/dist/assets/ic-chat-circle-dots.b5afd171.svg +3 -0
  83. package/dist/assets/{ic-copy.416d85f3.svg → ic-check.a0f5ee85.svg} +1 -1
  84. package/dist/assets/ic-close-large.fb6095e0.svg +3 -0
  85. package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
  86. package/dist/assets/ic-code.3af36d5c.svg +19 -0
  87. package/dist/assets/ic-cookr.d1510986.svg +26 -0
  88. package/dist/assets/ic-copy.c4b628de.svg +19 -0
  89. package/dist/assets/{ic-crown.868ff2a9.svg → ic-crown.24ca27fc.svg} +16 -0
  90. package/dist/assets/ic-cube.be637e97.svg +19 -0
  91. package/dist/assets/ic-delhivery.7b49a398.svg +15 -0
  92. package/dist/assets/ic-devtron-header-logo.265be507.svg +4 -0
  93. package/dist/assets/ic-devtron.aca6cbaa.svg +3 -0
  94. package/dist/assets/{ic-dockerhub.19023887.svg → ic-dockerhub.03bd09a9.svg} +16 -0
  95. package/dist/assets/{ic-ecr.022619e3.svg → ic-ecr.302d6ccb.svg} +16 -0
  96. package/dist/assets/{ic-gear.51261b97.svg → ic-gear.7116a8bf.svg} +16 -0
  97. package/dist/assets/{ic-google-artifact-registry.536fe6c7.svg → ic-google-artifact-registry.2a167c8b.svg} +16 -0
  98. package/dist/assets/{ic-google-container-registry.20eeef45.svg → ic-google-container-registry.320c53ee.svg} +16 -0
  99. package/dist/assets/{ic-google.adce3079.svg → ic-google.475640a4.svg} +16 -0
  100. package/dist/assets/ic-grid-view.13207b99.svg +19 -0
  101. package/dist/assets/ic-helm.20583d75.svg +19 -0
  102. package/dist/assets/ic-k8s-job.c4f9ccc7.svg +19 -0
  103. package/dist/assets/{ic-ldap.1742ec39.svg → ic-ldap.0c5633d9.svg} +16 -0
  104. package/dist/assets/ic-livspace.fc75c45f.svg +13 -0
  105. package/dist/assets/ic-logout.f0a8b488.svg +19 -0
  106. package/dist/assets/{ic-medium-paintbucket.38ef52c1.svg → ic-medium-paintbucket.45544bb9.svg} +16 -0
  107. package/dist/assets/ic-microsoft.7c7bcaeb.svg +22 -0
  108. package/dist/assets/{ic-monitoring.6e5acb4a.svg → ic-monitoring.30910a3c.svg} +16 -0
  109. package/dist/assets/ic-new.1907a03f.svg +19 -0
  110. package/dist/assets/ic-oidc.5e06656d.svg +20 -0
  111. package/dist/assets/{ic-open-box.e672fe67.svg → ic-open-box.b15fcbbd.svg} +16 -0
  112. package/dist/assets/{ic-openshift.afcfadec.svg → ic-openshift.3886b54f.svg} +16 -0
  113. package/dist/assets/ic-pencil.a3e8275c.svg +3 -0
  114. package/dist/assets/{ic-quay.19eb5574.svg → ic-quay.d622b34f.svg} +16 -0
  115. package/dist/assets/ic-quote.68f093fe.svg +3 -0
  116. package/dist/assets/ic-shield-check.c26854d2.svg +19 -0
  117. package/dist/assets/ic-sliders-vertical.1c27a9e1.svg +3 -0
  118. package/dist/assets/ic-spinny.3884a5fb.svg +14 -0
  119. package/dist/assets/ic-stack.fbd3aea5.svg +19 -0
  120. package/dist/assets/ic-tata1mg.75b97a64.svg +13 -0
  121. package/dist/assets/ic-timer.ae5f10fa.svg +19 -0
  122. package/dist/assets/ic-travclan.29b9f4c3.svg +13 -0
  123. package/dist/assets/{ic-user-key.523f6939.svg → ic-user-key.5dc44524.svg} +16 -0
  124. package/dist/assets/licenseCardBG.9753c392.svg +259 -0
  125. package/dist/assets/login-screen-ui.a33a6496.webp +0 -0
  126. package/dist/index.d.ts +1 -3
  127. package/dist/index.js +803 -775
  128. package/package.json +2 -1
  129. package/dist/Common/Api.d.ts +0 -15
  130. package/dist/assets/ic-app-group.892e71ff.svg +0 -3
  131. package/dist/assets/ic-browser.b8afdf0d.svg +0 -3
  132. package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
  133. package/dist/assets/ic-code.29c36e44.svg +0 -3
  134. package/dist/assets/ic-cube.643b8b57.svg +0 -3
  135. package/dist/assets/ic-grid-view.a1ff2479.svg +0 -3
  136. package/dist/assets/ic-helm.49cb43a3.svg +0 -3
  137. package/dist/assets/ic-k8s-job.d3310821.svg +0 -3
  138. package/dist/assets/ic-logout.e7e6bef0.svg +0 -3
  139. package/dist/assets/ic-microsoft.4767e309.svg +0 -6
  140. package/dist/assets/ic-new.2c179139.svg +0 -3
  141. package/dist/assets/ic-oidc.27839a0d.svg +0 -4
  142. package/dist/assets/ic-shield-check.5c033f06.svg +0 -3
  143. package/dist/assets/ic-stack.8b3b1bdd.svg +0 -3
@@ -1,27 +1,43 @@
1
1
  import { IconBaseProps } from './types';
2
2
  export declare const iconMap: {
3
+ 'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
3
4
  'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
4
5
  'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
+ 'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
+ 'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
5
8
  'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
9
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
+ 'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
11
  'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
+ 'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
13
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
+ 'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
15
  'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
16
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
17
+ 'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
18
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
19
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
+ 'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
21
  'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
+ 'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
+ 'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
24
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
15
25
  'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
16
26
  'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
17
27
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
+ 'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
18
29
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
30
+ 'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
19
31
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
32
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
+ 'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
34
  'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
35
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
36
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
37
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
38
+ 'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
+ 'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
+ 'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
41
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
42
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
43
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -47,6 +63,7 @@ export declare const iconMap: {
47
63
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
64
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
65
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
+ 'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
67
  'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
68
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
69
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -61,12 +78,19 @@ export declare const iconMap: {
61
78
  'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
79
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
80
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
+ 'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
82
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
+ 'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
84
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
85
+ 'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
86
+ 'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
87
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
88
  'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
89
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
90
+ 'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
91
  'ic-timeout-two-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
+ 'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
+ 'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
94
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
95
  'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
96
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ declare const LoginBanner: () => JSX.Element;
2
+ export default LoginBanner;
@@ -0,0 +1,4 @@
1
+ import { TestimonialCardConfig } from './types';
2
+ export declare const TESTIMONIAL_CARD_DATA: TestimonialCardConfig[];
3
+ export declare const TESTIMONIAL_CARD_INTERVAL = 5000;
4
+ export declare const TRANSITION_EASE_CURVE: number[];
@@ -0,0 +1 @@
1
+ export { default as LoginBanner } from './LoginBanner';
@@ -0,0 +1,7 @@
1
+ import { IconsProps } from 'src';
2
+ export interface TestimonialCardConfig {
3
+ quote: string;
4
+ name: string;
5
+ designation: string;
6
+ iconName?: IconsProps['name'];
7
+ }
@@ -0,0 +1,3 @@
1
+ import { PhoneInputProps } from './types';
2
+ declare const PhoneInput: ({ error, onChange, required, phoneNumberInputName, countryCodeSelectName, phoneValue, countryCodeSelectSize, }: PhoneInputProps) => JSX.Element;
3
+ export default PhoneInput;
@@ -0,0 +1 @@
1
+ export { default as PhoneInput } from './PhoneInput.component';
@@ -0,0 +1,11 @@
1
+ import { ComponentProps } from 'react';
2
+ import { CountrySelect } from '../CountrySelect';
3
+ export interface PhoneInputProps {
4
+ phoneValue: string;
5
+ onChange: (value: string, hasCountryChanged: boolean) => void;
6
+ error?: string | null;
7
+ countryCodeSelectName: string;
8
+ phoneNumberInputName: string;
9
+ required?: boolean;
10
+ countryCodeSelectSize?: ComponentProps<typeof CountrySelect>['size'];
11
+ }
@@ -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, ...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, hideFormFieldInfo, ...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, 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, hideFormFieldInfo, value, borderConfig, ...props }: TextareaProps) => JSX.Element;
3
3
  export default Textarea;
@@ -69,4 +69,10 @@ 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';
72
78
  export * from './Confetti';
@@ -100,4 +100,5 @@ 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;
103
104
  export {};
@@ -4,4 +4,5 @@ export declare const setThemePreferenceInLocalStorage: (themePreference: ThemePr
4
4
  export declare const logThemeToAnalytics: ({ appTheme, themePreference }: ThemeConfigType) => void;
5
5
  export declare const getThemeConfigFromLocalStorage: () => ThemeConfigType;
6
6
  export declare const getComponentSpecificThemeClass: (appTheme: AppThemeType) => string;
7
+ export declare const getThemeOppositeThemeClass: (appTheme: AppThemeType) => "component-specific-theme__light" | "component-specific-theme__dark";
7
8
  export declare const getThemePreferenceText: (themePreference: ThemePreferenceType) => string;
@@ -1,11 +1,11 @@
1
- import { MutableRefObject, ReactNode } from 'react';
1
+ import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
2
  import { ServerInfo } from '../Components/Header/types';
3
3
  import { SERVER_MODE } from '../../Common';
4
+ import { DevtronLicenseInfo, LicenseInfoDialogType } from '..';
4
5
  export interface MainContext {
5
6
  serverMode: SERVER_MODE;
6
7
  setServerMode: (serverMode: SERVER_MODE) => void;
7
8
  isHelpGettingStartedClicked: boolean;
8
- setPageOverflowEnabled: (isPageOverflowEnabled: boolean) => void;
9
9
  showCloseButtonAfterGettingStartedClicked: () => void;
10
10
  loginCount: number;
11
11
  setLoginCount: (loginCount: number) => void;
@@ -39,6 +39,12 @@ 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>>;
42
48
  }
43
49
  export interface MainContextProviderProps {
44
50
  children: ReactNode;
@@ -35,6 +35,7 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
35
35
  isAirGapEnvironment: boolean;
36
36
  isManifestScanningEnabled: boolean;
37
37
  canOnlyViewPermittedEnvOrgLevel: boolean;
38
+ devtronManagedLicensingEnabled: boolean;
38
39
  }
39
40
  export interface GetUserPreferencesQueryParamsType {
40
41
  key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
@@ -408,6 +408,8 @@ 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://devtron.ai/enterprise-support";
411
413
  export declare const enum DeleteComponentsName {
412
414
  Cluster = "cluster",
413
415
  Job = "job pipeline",
@@ -417,3 +419,5 @@ export declare const Routes: {
417
419
  CI_PIPELINE_PATCH: string;
418
420
  WORKFLOW: string;
419
421
  };
422
+ export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
423
+ export declare const INVALID_LICENSE_KEY = "inValid";
@@ -8,3 +8,4 @@ export * from './Services';
8
8
  export * from './Store';
9
9
  export * from './Hooks';
10
10
  export * from './API';
11
+ export * from './Analytics';
@@ -1,5 +1,6 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
3
+ import { ParsedCountry } from 'react-international-phone';
3
4
  import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
4
5
  import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
5
6
  import { SelectPickerOptionType } from './Components';
@@ -393,6 +394,7 @@ export declare enum ResourceKindType {
393
394
  releaseChannel = "release-channel",
394
395
  tenant = "tenant",
395
396
  installation = "installation",
397
+ installations = "installations",
396
398
  environment = "environment",
397
399
  cdPipeline = "cd-pipeline",
398
400
  ciPipeline = "ci-pipeline",
@@ -875,4 +877,66 @@ export interface AppEnvIdType {
875
877
  appId: number;
876
878
  envId: number;
877
879
  }
880
+ export declare enum LicenseInfoDialogType {
881
+ ABOUT = "about",
882
+ LICENSE = "license",
883
+ UPDATE = "update"
884
+ }
885
+ export declare enum LicensingErrorCodes {
886
+ FingerPrintMisMatch = "11001",
887
+ LicenseExpired = "11002",
888
+ TamperedCertificate = "11003",
889
+ NoPublicKey = "11004",
890
+ InstallationModeMismatch = "11005",
891
+ LicKeyMismatch = "11006",
892
+ NoCertFound = "11007",
893
+ LicKeyNotFound = "11008"
894
+ }
895
+ export interface LicenseErrorStruct {
896
+ code: LicensingErrorCodes;
897
+ userMessage: string;
898
+ }
899
+ export interface DevtronLicenseBaseDTO {
900
+ fingerprint: string | null;
901
+ isTrial: boolean | null;
902
+ /**
903
+ * In timestamp format
904
+ */
905
+ expiry: string | null;
906
+ /**
907
+ * Can be negative, depicts time left in seconds for license to expire
908
+ */
909
+ ttl: number | null;
910
+ /**
911
+ * Show a reminder after these many DAYS left for license to expire, i.e,
912
+ * Show if `ttl` is less than `reminderThreshold` [converted to seconds]
913
+ */
914
+ reminderThreshold: number | null;
915
+ organisationMetadata: {
916
+ name: string | null;
917
+ domain: string | null;
918
+ } | null;
919
+ license: string | null;
920
+ }
921
+ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
922
+ claimedByUserDetails: {
923
+ firstName: string | null;
924
+ lastName: string | null;
925
+ email: string | null;
926
+ } | null;
927
+ showLicenseData?: never;
928
+ licenseStatusError?: never;
929
+ } : {
930
+ claimedByUserDetails?: never;
931
+ showLicenseData: boolean;
932
+ licenseStatusError?: LicenseErrorStruct;
933
+ });
934
+ export type CountryISO2Type = ParsedCountry['iso2'];
935
+ export declare enum ResponseHeaders {
936
+ LICENSE_STATUS = "X-License-Status"
937
+ }
938
+ export declare enum InstallationClusterType {
939
+ EKS_AUTO_CLUSTER = "eksAutoCluster",
940
+ EKS_MANUAL_CLUSTER = "eksManualCluster"
941
+ }
878
942
  export {};