@devtron-labs/devtron-fe-common-lib 1.16.0-pre-1 → 1.16.0-pre-3
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-BfBObStX.js → @code-editor-VS3CYIf_.js} +6309 -6315
- package/dist/{@common-rjsf-B8F7XWnV.js → @common-rjsf-DXD__NBm.js} +2 -2
- package/dist/{@framer-motion-DjiCMNqQ.js → @framer-motion-j6RIjEIR.js} +1 -1
- package/dist/{@react-dates-CfRo6n5e.js → @react-dates-BVyHiOGU.js} +1 -1
- package/dist/{@react-select-DNDV8S9D.js → @react-select-BQNFZu0Y.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-mXcyQzGx.js → @react-virtualized-sticky-tree-CuElh0mS.js} +1 -1
- package/dist/{@vendor-CA9d7Ztm.js → @vendor-DbxoIktR.js} +15023 -15018
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +8 -0
- package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +1 -3
- package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +5 -9
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +12 -0
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +0 -3
- package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -3
- package/dist/Shared/Components/Popover/types.d.ts +3 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +3 -0
- package/dist/Shared/Providers/{types.d.ts → MainContextProvider/types.d.ts} +3 -3
- package/dist/Shared/Providers/index.d.ts +0 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.js +401 -400
- package/package.json +2 -1
- /package/dist/Shared/Providers/{MainContextProvider.d.ts → MainContextProvider/MainContextProvider.d.ts} +0 -0
@@ -1,3 +1,11 @@
|
|
1
1
|
import { SelectPickerOptionType } from '../../../../../Shared/Components';
|
2
2
|
export declare const IO_VARIABLES_VALUE_COLUMN_BOOL_OPTIONS: SelectPickerOptionType<string>[];
|
3
3
|
export declare const IO_VARIABLES_VALUE_COLUMN_DATE_OPTIONS: SelectPickerOptionType<string>[];
|
4
|
+
export declare const VALUE_COLUMN_DROPDOWN_LABEL: {
|
5
|
+
readonly CHOICES: "Choices";
|
6
|
+
readonly SUPPORTED_DATE_FORMATS: "Supported date formats";
|
7
|
+
readonly SYSTEM_VARIABLES: "System variables";
|
8
|
+
readonly PRE_BUILD_STAGE: "From Pre-build Stage";
|
9
|
+
readonly POST_BUILD_STAGE: "From Post-build Stage";
|
10
|
+
readonly PREVIOUS_STEPS: "From Previous Steps";
|
11
|
+
};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
declare const AboutDevtronDialog: ({ handleCloseLicenseInfoDialog
|
1
|
+
declare const AboutDevtronDialog: ({ handleCloseLicenseInfoDialog }: {
|
2
2
|
handleCloseLicenseInfoDialog: () => void;
|
3
|
-
isFELibAvailable: boolean;
|
4
3
|
}) => JSX.Element;
|
5
4
|
export default AboutDevtronDialog;
|
@@ -13,7 +13,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
13
13
|
triggerProps: import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
14
14
|
bounds: Pick<DOMRect, "left" | "top" | "height" | "width">;
|
15
15
|
};
|
16
|
-
overlayProps:
|
16
|
+
overlayProps: Omit<import('..').BackdropProps, "children">;
|
17
17
|
popoverProps: {
|
18
18
|
slot?: string;
|
19
19
|
title?: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { AnimatedDeployButtonProps } from './types';
|
2
|
-
declare const AnimatedDeployButton: ({ isLoading,
|
2
|
+
declare const AnimatedDeployButton: ({ text, style, disabled, isLoading, startIcon, endIcon, dataTestId, onButtonClick, tooltipContent, animateStartIcon, }: AnimatedDeployButtonProps) => JSX.Element;
|
3
3
|
export default AnimatedDeployButton;
|
@@ -1,10 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
canDeploy: boolean;
|
7
|
-
isImageApprover: boolean;
|
8
|
-
};
|
9
|
-
isBulkCDTrigger?: boolean;
|
1
|
+
import { ButtonProps } from '../Button';
|
2
|
+
export interface AnimatedDeployButtonProps extends Pick<ButtonProps, 'dataTestId' | 'text' | 'disabled' | 'isLoading' | 'startIcon' | 'endIcon' | 'style'> {
|
3
|
+
onButtonClick: (e?: any) => void;
|
4
|
+
tooltipContent?: string;
|
5
|
+
animateStartIcon?: boolean;
|
10
6
|
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BackdropProps } from './types';
|
2
|
-
declare const Backdrop: ({ children, onEscape, onClick }: BackdropProps) => import('react').ReactPortal;
|
2
|
+
declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount }: BackdropProps) => import('react').ReactPortal;
|
3
3
|
export default Backdrop;
|
@@ -19,4 +19,16 @@ export interface BackdropProps {
|
|
19
19
|
* @param e - The mouse event object from the click interaction
|
20
20
|
*/
|
21
21
|
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
22
|
+
/**
|
23
|
+
* Determines if the backdrop should be transparent.
|
24
|
+
* When true, the backdrop will not have any background color or blur filter.
|
25
|
+
* @default false
|
26
|
+
*/
|
27
|
+
hasClearBackground?: boolean;
|
28
|
+
/**
|
29
|
+
* Callback function that gets triggered when the backdrop component mounts or unmounts.
|
30
|
+
* This can be used to perform side effects or state updates when the backdrop's visibility changes.
|
31
|
+
* @param isMounted - A boolean indicating whether the backdrop is currently mounted (true) or not (false)
|
32
|
+
*/
|
33
|
+
onBackdropMount?: (isMounted: boolean) => void;
|
22
34
|
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { GettingStartedType } from './types';
|
2
|
-
declare const GettingStartedCard: ({
|
2
|
+
declare const GettingStartedCard: ({ hideGettingStartedCard }: GettingStartedType) => JSX.Element;
|
3
3
|
export default GettingStartedCard;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { HelpButtonProps } from './types';
|
2
|
-
export declare const HelpButton: ({ serverInfo, fetchingServerInfo, onClick }: HelpButtonProps) => JSX.Element;
|
2
|
+
export declare const HelpButton: ({ serverInfo, fetchingServerInfo, onClick, hideGettingStartedCard }: HelpButtonProps) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PageHeaderType } from './types';
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons,
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, tippyProps, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -10,9 +10,6 @@ export interface PageHeaderType {
|
|
10
10
|
isBreadcrumbs?: boolean;
|
11
11
|
breadCrumbs?: () => JSX.Element;
|
12
12
|
renderActionButtons?: () => JSX.Element;
|
13
|
-
showCloseButton?: boolean;
|
14
|
-
onClose?: () => void;
|
15
|
-
markAsBeta?: boolean;
|
16
13
|
tippyProps?: Pick<TippyCustomizedProps<false>, 'additionalContent'> & {
|
17
14
|
isTippyCustomized?: boolean;
|
18
15
|
tippyRedirectLink?: keyof typeof DOCUMENTATION;
|
@@ -34,6 +31,7 @@ export interface HelpButtonProps {
|
|
34
31
|
serverInfo: ServerInfo;
|
35
32
|
fetchingServerInfo: boolean;
|
36
33
|
onClick: () => void;
|
34
|
+
hideGettingStartedCard: () => void;
|
37
35
|
}
|
38
36
|
export declare enum HelpMenuItems {
|
39
37
|
GETTING_STARTED = "getting-started",
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { DetailedHTMLProps, KeyboardEvent, LegacyRef, MutableRefObject, ReactElement } from 'react';
|
2
2
|
import { HTMLMotionProps } from 'framer-motion';
|
3
|
+
import { BackdropProps } from '../Backdrop';
|
3
4
|
import { ButtonProps } from '../Button';
|
4
5
|
export interface UsePopoverProps {
|
5
6
|
/**
|
@@ -74,9 +75,9 @@ export interface UsePopoverReturnType {
|
|
74
75
|
};
|
75
76
|
/**
|
76
77
|
* Props to be spread onto the overlay element of the popover.
|
77
|
-
* These props include
|
78
|
+
* These props include backdrop properties.
|
78
79
|
*/
|
79
|
-
overlayProps:
|
80
|
+
overlayProps: Omit<BackdropProps, 'children'>;
|
80
81
|
/**
|
81
82
|
* Props to be spread onto the popover element itself.
|
82
83
|
* Includes motion-related props for animations and a `ref` to the popover's `div` element.
|
@@ -88,5 +88,5 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
|
|
88
88
|
popoverRect: DOMRect;
|
89
89
|
}) => {
|
90
90
|
fallbackPosition: "top" | "bottom" | "right" | "left";
|
91
|
-
fallbackAlignment: "
|
91
|
+
fallbackAlignment: "middle" | "end" | "start";
|
92
92
|
};
|
@@ -100,7 +100,7 @@ export declare enum SelectPickerVariantType {
|
|
100
100
|
BORDER_LESS = "border-less",
|
101
101
|
COMPACT = "compact"
|
102
102
|
}
|
103
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
103
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage' | 'defaultMenuIsOpen'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
104
104
|
/**
|
105
105
|
* Config for the footer at the bottom of menu list. It is sticky by default
|
106
106
|
*
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
2
|
-
import { SERVER_MODE } from '
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { SERVER_MODE } from '../../../Common';
|
3
|
+
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '../..';
|
4
|
+
import { ServerInfo } from '../../Components/Header/types';
|
5
5
|
export interface ReloadVersionConfigTypes {
|
6
6
|
bgUpdated: boolean;
|
7
7
|
handleAppUpdate: () => void;
|
@@ -1,6 +1,4 @@
|
|
1
1
|
export * from './ImageSelectionUtility';
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
|
-
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
5
|
-
export { SidePanelTab } from './types';
|
6
4
|
export * from './UserEmailProvider';
|