@devtron-labs/devtron-fe-common-lib 1.9.5-beta-6 → 1.9.5-beta-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.
- package/dist/{@code-editor-BaJODWZj.js → @code-editor-C0e1IoNR.js} +6362 -6391
- package/dist/{@common-rjsf-Cb6U-gEn.js → @common-rjsf-C2tT-Yzm.js} +2 -2
- package/dist/{@framer-motion-Cx1gSa6-.js → @framer-motion-BMix-3PQ.js} +972 -893
- package/dist/{@react-dates-ukcBEyJ1.js → @react-dates-FNIvOaO3.js} +1 -1
- package/dist/{@react-select-Cas7oOFN.js → @react-select-BAjvyAuv.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DRihF7_6.js → @react-virtualized-sticky-tree-DDmpdscl.js} +1 -1
- package/dist/{@vendor-xG1dUtf3.js → @vendor-C56_0-C8.js} +12759 -13079
- package/dist/Common/API/types.d.ts +1 -1
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/Types.d.ts +0 -4
- package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/types.d.ts +1 -5
- package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +1 -1
- package/dist/Shared/Components/DevtronLicenseCard/InstallationFingerprintInfo.d.ts +3 -0
- package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +1 -2
- package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +3 -17
- package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +1 -2
- package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
- package/dist/Shared/Components/FormFieldWrapper/index.d.ts +0 -1
- package/dist/Shared/Components/FormFieldWrapper/types.d.ts +0 -4
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -1
- package/dist/Shared/Components/LoginBanner/constants.d.ts +3 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/types.d.ts +18 -2
- package/dist/index.js +695 -699
- package/package.json +1 -2
- package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +0 -3
- package/dist/Shared/Components/CountrySelect/index.d.ts +0 -1
- package/dist/Shared/Components/CountrySelect/types.d.ts +0 -7
- package/dist/Shared/Components/CountrySelect/utils.d.ts +0 -4
- package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +0 -3
- package/dist/Shared/Components/FlagImage/index.d.ts +0 -1
- package/dist/Shared/Components/FlagImage/types.d.ts +0 -5
- package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +0 -3
- package/dist/Shared/Components/PhoneInput/index.d.ts +0 -1
- package/dist/Shared/Components/PhoneInput/types.d.ts +0 -11
- package/dist/assets/ic-caret-left.3df25a7c.svg +0 -3
@@ -18,6 +18,6 @@ export interface FetchInTimeParamsType<Data = object> {
|
|
18
18
|
options?: APIOptions;
|
19
19
|
isMultipartRequest?: boolean;
|
20
20
|
}
|
21
|
-
export interface FetchAPIParamsType<Data = object> extends Omit<FetchInTimeParamsType<Data>, 'options'>, Pick<APIOptions, 'preventAutoLogout' | 'preventLicenseRedirect'
|
21
|
+
export interface FetchAPIParamsType<Data = object> extends Omit<FetchInTimeParamsType<Data>, 'options'>, Pick<APIOptions, 'preventAutoLogout' | 'preventLicenseRedirect'> {
|
22
22
|
signal: AbortSignal;
|
23
23
|
}
|
@@ -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";
|
@@ -283,7 +282,6 @@ export declare const API_STATUS_CODES: {
|
|
283
282
|
PERMISSION_DENIED: number;
|
284
283
|
NOT_FOUND: number;
|
285
284
|
REQUEST_TIMEOUT: number;
|
286
|
-
CONFLICT: number;
|
287
285
|
EXPECTATION_FAILED: number;
|
288
286
|
UNPROCESSABLE_ENTITY: number;
|
289
287
|
LOCKED: number;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -38,10 +38,6 @@ export interface APIOptions {
|
|
38
38
|
* @default false
|
39
39
|
*/
|
40
40
|
preventLicenseRedirect?: boolean;
|
41
|
-
/**
|
42
|
-
* @default false
|
43
|
-
*/
|
44
|
-
shouldParseServerErrorForUnauthorizedUser?: boolean;
|
45
41
|
}
|
46
42
|
export interface OptionType<T = string, K = string> {
|
47
43
|
value: T;
|
@@ -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,
|
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
|
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
|
-
import { DevtronLicenseCardProps } from '
|
1
|
+
import { DevtronLicenseCardProps } from '../../index';
|
2
2
|
export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, ttl, }: DevtronLicenseCardProps) => JSX.Element;
|
3
3
|
export default DevtronLicenseCard;
|
@@ -1,18 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
REMINDER_THRESHOLD_REACHED = "REMINDER_THRESHOLD_REACHED"
|
1
|
+
import { DevtronLicenseBaseDTO } from '../../index';
|
2
|
+
export interface InstallFingerprintInfoProps extends Pick<DevtronLicenseBaseDTO, 'fingerprint'> {
|
3
|
+
showHelpTooltip?: boolean;
|
5
4
|
}
|
6
|
-
export type DevtronLicenseCardProps = {
|
7
|
-
enterpriseName: string;
|
8
|
-
expiryDate: string;
|
9
|
-
ttl: number;
|
10
|
-
licenseStatus: LicenseStatus;
|
11
|
-
isTrial: boolean;
|
12
|
-
} & ({
|
13
|
-
licenseKey: string;
|
14
|
-
licenseSuffix?: never;
|
15
|
-
} | {
|
16
|
-
licenseKey?: never;
|
17
|
-
licenseSuffix: string;
|
18
|
-
});
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { LicenseStatus } from '../../index';
|
2
2
|
export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
|
3
3
|
bgColor: string;
|
4
4
|
textColor: string;
|
5
5
|
};
|
6
|
-
export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => DevtronLicenseCardProps;
|
@@ -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,
|
2
|
+
declare const FormFieldWrapper: ({ layout, fullWidth, label, inputId, error, helperText, warningText, required, children, labelTippyCustomizedConfig, labelTooltipConfig, }: Required<FormFieldWrapperProps>) => JSX.Element;
|
3
3
|
export default FormFieldWrapper;
|
@@ -11,7 +11,6 @@ export declare const iconMap: {
|
|
11
11
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
12
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
13
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
|
-
'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
14
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
15
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
16
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,2 +1,4 @@
|
|
1
1
|
import { TestimonialCardConfig } from './types';
|
2
|
-
export declare const TESTIMONIAL_CARD_DATA: TestimonialCardConfig;
|
2
|
+
export declare const TESTIMONIAL_CARD_DATA: TestimonialCardConfig[];
|
3
|
+
export declare const TESTIMONIAL_CARD_INTERVAL = 5000;
|
4
|
+
export declare const TRANSITION_EASE_CURVE: number[];
|
@@ -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,
|
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,
|
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;
|
@@ -68,9 +68,6 @@ export * from './InfoBlock';
|
|
68
68
|
export * from './CodeEditorWrapper';
|
69
69
|
export * from './SSOProviderIcon';
|
70
70
|
export * from './Backdrop';
|
71
|
-
export * from './CountrySelect';
|
72
|
-
export * from './PhoneInput';
|
73
|
-
export * from './FlagImage';
|
74
71
|
export * from './DevtronLicenseCard';
|
75
72
|
export * from './LoginBanner';
|
76
73
|
export * from './Confetti';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -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, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
7
|
+
import { BorderConfigType, DevtronLicenseCardProps, DevtronLicenseDTO, 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,5 +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
|
103
|
+
export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => DevtronLicenseCardProps;
|
104
104
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
@@ -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';
|
@@ -907,5 +906,22 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
|
|
907
906
|
} : {
|
908
907
|
claimedByUserDetails?: never;
|
909
908
|
});
|
910
|
-
export
|
909
|
+
export declare enum LicenseStatus {
|
910
|
+
ACTIVE = "ACTIVE",
|
911
|
+
EXPIRED = "EXPIRED",
|
912
|
+
REMINDER_THRESHOLD_REACHED = "REMINDER_THRESHOLD_REACHED"
|
913
|
+
}
|
914
|
+
export type DevtronLicenseCardProps = {
|
915
|
+
enterpriseName: string;
|
916
|
+
expiryDate: string;
|
917
|
+
ttl: number;
|
918
|
+
licenseStatus: LicenseStatus;
|
919
|
+
isTrial: boolean;
|
920
|
+
} & ({
|
921
|
+
licenseKey: string;
|
922
|
+
licenseSuffix?: never;
|
923
|
+
} | {
|
924
|
+
licenseKey?: never;
|
925
|
+
licenseSuffix: string;
|
926
|
+
});
|
911
927
|
export {};
|