@devtron-labs/devtron-fe-common-lib 1.9.5-beta-11 → 1.9.5-beta-12
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-BldKWPY3.js → @code-editor-qi1yu9iI.js} +6726 -6762
- package/dist/{@common-rjsf-Br707-T1.js → @common-rjsf-BjMbyo2l.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/Providers/types.d.ts +4 -1
- package/dist/Shared/types.d.ts +37 -2
- package/dist/index.js +641 -643
- 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 {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MutableRefObject, ReactNode } from 'react';
|
|
2
2
|
import { ServerInfo } from '../Components/Header/types';
|
|
3
3
|
import { SERVER_MODE } from '../../Common';
|
|
4
|
+
import { LicenseInfoDialogType } from '..';
|
|
4
5
|
export interface MainContext {
|
|
5
6
|
serverMode: SERVER_MODE;
|
|
6
7
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
|
@@ -38,7 +39,9 @@ export interface MainContext {
|
|
|
38
39
|
isManifestScanningEnabled: boolean;
|
|
39
40
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
|
40
41
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
|
41
|
-
handleOpenLicenseInfoDialog: () => void;
|
|
42
|
+
handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
|
|
43
|
+
showLicenseData: boolean;
|
|
44
|
+
setShowLicenseData: (showLicenseData: boolean) => void;
|
|
42
45
|
}
|
|
43
46
|
export interface MainContextProviderProps {
|
|
44
47
|
children: ReactNode;
|
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';
|
|
@@ -876,6 +875,23 @@ export interface AppEnvIdType {
|
|
|
876
875
|
appId: number;
|
|
877
876
|
envId: number;
|
|
878
877
|
}
|
|
878
|
+
export declare enum LicenseInfoDialogType {
|
|
879
|
+
ABOUT = "about",
|
|
880
|
+
LICENSE = "license",
|
|
881
|
+
UPDATE = "update"
|
|
882
|
+
}
|
|
883
|
+
export declare enum LicensingErrorCodes {
|
|
884
|
+
FingerPrintMisMatch = "11001",
|
|
885
|
+
LicenseExpired = "11002",
|
|
886
|
+
TamperedCertificate = "11002",
|
|
887
|
+
NoPublicKey = "11003",
|
|
888
|
+
InstallationModeMismatch = "11004",
|
|
889
|
+
NoCertFound = "11006"
|
|
890
|
+
}
|
|
891
|
+
export interface LicenseErrorStruct {
|
|
892
|
+
code: LicensingErrorCodes;
|
|
893
|
+
userMessage: string;
|
|
894
|
+
}
|
|
879
895
|
export interface DevtronLicenseBaseDTO {
|
|
880
896
|
fingerprint: string | null;
|
|
881
897
|
isTrial: boolean | null;
|
|
@@ -897,6 +913,8 @@ export interface DevtronLicenseBaseDTO {
|
|
|
897
913
|
domain: string | null;
|
|
898
914
|
} | null;
|
|
899
915
|
license: string | null;
|
|
916
|
+
showLicenseData: boolean;
|
|
917
|
+
licenseStatusError?: LicenseErrorStruct;
|
|
900
918
|
}
|
|
901
919
|
export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
|
|
902
920
|
claimedByUserDetails: {
|
|
@@ -907,5 +925,22 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
|
|
|
907
925
|
} : {
|
|
908
926
|
claimedByUserDetails?: never;
|
|
909
927
|
});
|
|
910
|
-
export
|
|
928
|
+
export declare enum LicenseStatus {
|
|
929
|
+
ACTIVE = "ACTIVE",
|
|
930
|
+
EXPIRED = "EXPIRED",
|
|
931
|
+
REMINDER_THRESHOLD_REACHED = "REMINDER_THRESHOLD_REACHED"
|
|
932
|
+
}
|
|
933
|
+
export type DevtronLicenseCardProps = {
|
|
934
|
+
enterpriseName: string;
|
|
935
|
+
expiryDate: string;
|
|
936
|
+
ttl: number;
|
|
937
|
+
licenseStatus: LicenseStatus;
|
|
938
|
+
isTrial: boolean;
|
|
939
|
+
} & ({
|
|
940
|
+
licenseKey: string;
|
|
941
|
+
licenseSuffix?: never;
|
|
942
|
+
} | {
|
|
943
|
+
licenseKey?: never;
|
|
944
|
+
licenseSuffix: string;
|
|
945
|
+
});
|
|
911
946
|
export {};
|