@devtron-labs/devtron-fe-common-lib 1.14.2-pre-1-beta-2 → 1.14.2-pre-2-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.
- package/dist/{@code-editor-CHYHyh2T.js → @code-editor-B-pgljKM.js} +6815 -6758
- package/dist/{@common-rjsf-D9RK1bFp.js → @common-rjsf-Cd7MF1wj.js} +1 -1
- package/dist/Common/Constants.d.ts +3 -1
- package/dist/Shared/Components/ActionMenu/types.d.ts +31 -4
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +4 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/constants.d.ts +1 -0
- package/dist/Shared/Components/Button/types.d.ts +14 -1
- package/dist/Shared/Components/Button/utils.d.ts +1 -1
- package/dist/Shared/Components/DocLink/DocLink.d.ts +1 -1
- package/dist/Shared/Components/DocLink/constants.d.ts +2 -2
- package/dist/Shared/Components/DocLink/types.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/Header/ProfileMenu.d.ts +2 -0
- package/dist/Shared/Components/Header/types.d.ts +4 -0
- package/dist/Shared/Components/Header/utils.d.ts +0 -2
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/NumbersCount/index.d.ts +1 -0
- package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +5 -3
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/Switch/types.d.ts +2 -1
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
- package/dist/Shared/Components/ThemeSwitcher/types.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +5 -1
- package/dist/Shared/types.d.ts +20 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.js +377 -377
- package/package.json +1 -1
- package/dist/Shared/Components/LogoutCard.d.ts +0 -10
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, as as y, au as k, at as W } from "./@vendor-CmCjU670.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-B-pgljKM.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
|
@@ -2,9 +2,10 @@ 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
4
|
export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
|
5
|
-
export declare const DOCUMENTATION_VERSION = "/
|
5
|
+
export declare const DOCUMENTATION_VERSION = "/devtron/v0.7";
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
7
7
|
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
8
|
+
export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/dashboard";
|
8
9
|
export declare const PATTERNS: {
|
9
10
|
STRING: RegExp;
|
10
11
|
DECIMAL_NUMBERS: RegExp;
|
@@ -25,6 +26,7 @@ export declare const PATTERNS: {
|
|
25
26
|
EMAIL: RegExp;
|
26
27
|
};
|
27
28
|
export declare const URLS: {
|
29
|
+
readonly LOGIN: "/login";
|
28
30
|
readonly LOGIN_SSO: "/login/sso";
|
29
31
|
readonly PERMISSION_GROUPS: "/global-config/auth/groups";
|
30
32
|
readonly APP: "/app";
|
@@ -1,8 +1,12 @@
|
|
1
|
-
import { LegacyRef, Ref } from 'react';
|
1
|
+
import { LegacyRef, MouseEvent, ReactElement, Ref } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
+
import { OmitNever } from '../../types';
|
4
|
+
import { ButtonProps } from '../Button';
|
3
5
|
import { IconsProps } from '../Icon';
|
6
|
+
import { NumbersCountProps } from '../NumbersCount';
|
4
7
|
import { PopoverProps, UsePopoverProps } from '../Popover';
|
5
8
|
import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
9
|
+
import { DTSwitchProps } from '../Switch';
|
6
10
|
type ConditionalActionMenuComponentType = {
|
7
11
|
/**
|
8
12
|
* @default 'button'
|
@@ -25,6 +29,29 @@ type ActionMenuItemIconType = Pick<IconsProps, 'name'> & {
|
|
25
29
|
/** @default 'N800' */
|
26
30
|
color?: IconsProps['color'];
|
27
31
|
};
|
32
|
+
type TrailingItemType = {
|
33
|
+
type: 'icon';
|
34
|
+
config: ActionMenuItemIconType;
|
35
|
+
} | {
|
36
|
+
type: 'text';
|
37
|
+
config: {
|
38
|
+
value: string;
|
39
|
+
icon?: ActionMenuItemIconType;
|
40
|
+
};
|
41
|
+
} | {
|
42
|
+
type: 'counter';
|
43
|
+
config: {
|
44
|
+
value: NumbersCountProps['count'];
|
45
|
+
};
|
46
|
+
} | {
|
47
|
+
type: 'switch';
|
48
|
+
config: Pick<DTSwitchProps, 'ariaLabel' | 'isChecked' | 'indeterminate' | 'isDisabled' | 'isLoading' | 'name' | 'onChange' | 'tooltipContent'>;
|
49
|
+
} | {
|
50
|
+
type: 'button';
|
51
|
+
config: OmitNever<Omit<Extract<ButtonProps, {
|
52
|
+
icon: ReactElement;
|
53
|
+
}>, 'size' | 'variant'>>;
|
54
|
+
};
|
28
55
|
export type ActionMenuItemType<T extends string | number = string | number> = Omit<SelectPickerOptionType, 'label' | 'value' | 'endIcon' | 'startIcon'> & {
|
29
56
|
/** A unique identifier for the action menu item. */
|
30
57
|
id: T;
|
@@ -39,8 +66,8 @@ export type ActionMenuItemType<T extends string | number = string | number> = Om
|
|
39
66
|
type?: 'neutral' | 'negative';
|
40
67
|
/** Defines the icon to be displayed at the start of the menu item. */
|
41
68
|
startIcon?: ActionMenuItemIconType;
|
42
|
-
/** Defines the
|
43
|
-
|
69
|
+
/** Defines the item to be displayed at the end of the menu item. */
|
70
|
+
trailingItem?: TrailingItemType;
|
44
71
|
} & ConditionalActionMenuComponentType;
|
45
72
|
export type ActionMenuOptionType<T extends string | number> = {
|
46
73
|
/**
|
@@ -68,7 +95,7 @@ export type ActionMenuProps<T extends string | number = string | number> = UseAc
|
|
68
95
|
* Callback function triggered when an item is clicked.
|
69
96
|
* @param item - The selected item.
|
70
97
|
*/
|
71
|
-
onClick: (item: ActionMenuItemType<T>) => void;
|
98
|
+
onClick: (item: ActionMenuItemType<T>, e: MouseEvent<HTMLAnchorElement> | MouseEvent<HTMLButtonElement>) => void;
|
72
99
|
/**
|
73
100
|
* Config for the footer at the bottom of action menu list. It is sticky by default
|
74
101
|
*/
|
@@ -10,7 +10,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
10
10
|
filteredOptions: import('./types').ActionMenuOptionType<T>[];
|
11
11
|
focusedIndex: number;
|
12
12
|
itemsRef: import('react').MutableRefObject<RefObject<HTMLAnchorElement | HTMLButtonElement>[]>;
|
13
|
-
triggerProps: import('react').
|
13
|
+
triggerProps: import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
14
|
+
bounds: Pick<DOMRect, "left" | "top" | "height" | "width">;
|
15
|
+
};
|
14
16
|
overlayProps: import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
15
17
|
popoverProps: {
|
16
18
|
slot?: string;
|
@@ -271,5 +273,5 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
271
273
|
closePopover: () => void;
|
272
274
|
searchTerm: string;
|
273
275
|
handleSearch: (e: ChangeEvent<HTMLInputElement>) => void;
|
274
|
-
scrollableRef: import('react').MutableRefObject<
|
276
|
+
scrollableRef: import('react').MutableRefObject<any> | import('react').LegacyRef<any>;
|
275
277
|
};
|
@@ -63,5 +63,5 @@ import { ButtonComponentType, ButtonProps } from './types';
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
64
64
|
* ```
|
65
65
|
*/
|
66
|
-
declare const Button: <ComponentType extends ButtonComponentType>({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, triggerAutoClickTimestamp, ...props }: ButtonProps<ComponentType>) => JSX.Element;
|
66
|
+
declare const Button: <ComponentType extends ButtonComponentType>({ dataTestId, text, variant, size, style, fontWeight, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, triggerAutoClickTimestamp, ...props }: ButtonProps<ComponentType>) => JSX.Element;
|
67
67
|
export default Button;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ProgressingProps } from '../../../Common/Types';
|
2
2
|
import { ButtonProps } from './types';
|
3
3
|
export declare const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
4
|
+
export declare const BUTTON_FONT_WEIGHT_TO_CLASS_NAME_MAP: Record<ButtonProps['fontWeight'], string>;
|
4
5
|
export declare const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
5
6
|
export declare const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
6
7
|
export declare const ICON_BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
@@ -116,7 +116,13 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
116
116
|
/**
|
117
117
|
* Props for tooltip
|
118
118
|
*/
|
119
|
-
tooltipProps: Omit<
|
119
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
120
|
+
alwaysShowTippyOnHover: boolean;
|
121
|
+
}>, 'alwaysShowTippyOnHover'> | Omit<Extract<TooltipProps, {
|
122
|
+
alwaysShowTippyOnHover?: boolean;
|
123
|
+
}>, 'alwaysShowTippyOnHover'> | Omit<Extract<TooltipProps, {
|
124
|
+
alwaysShowTippyOnHover?: never;
|
125
|
+
}>, 'alwaysShowTippyOnHover'>;
|
120
126
|
} | {
|
121
127
|
showTooltip?: never;
|
122
128
|
tooltipProps?: never;
|
@@ -136,6 +142,12 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
136
142
|
* If provided, icon to be displayed at the end of the button
|
137
143
|
*/
|
138
144
|
endIcon?: ReactElement;
|
145
|
+
/**
|
146
|
+
* Controls the font weight of the button text
|
147
|
+
*
|
148
|
+
* @default 'bold'
|
149
|
+
*/
|
150
|
+
fontWeight?: 'bold' | 'normal';
|
139
151
|
} | {
|
140
152
|
/**
|
141
153
|
* If provided, icon button is rendered
|
@@ -155,4 +167,5 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
155
167
|
text?: never;
|
156
168
|
startIcon?: never;
|
157
169
|
endIcon?: never;
|
170
|
+
fontWeight?: never;
|
158
171
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ButtonProps } from './types';
|
2
2
|
export declare const getButtonIconClassName: ({ size, icon }: Pick<ButtonProps, "size" | "icon">) => string;
|
3
3
|
export declare const getButtonLoaderSize: ({ size, icon }: Pick<ButtonProps, "size" | "icon">) => number;
|
4
|
-
export declare const getButtonDerivedClass: ({ size, variant, style, isLoading, icon, isAutoTriggerActive, }: Required<Pick<ButtonProps, "variant" | "size" | "style" | "isLoading" | "icon"> & {
|
4
|
+
export declare const getButtonDerivedClass: ({ size, variant, style, isLoading, icon, isAutoTriggerActive, fontWeight, }: Required<Pick<ButtonProps, "variant" | "size" | "style" | "isLoading" | "icon" | "fontWeight"> & {
|
5
5
|
isAutoTriggerActive: boolean;
|
6
6
|
}>) => string;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DocLinkProps } from './types';
|
2
|
-
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant, isExternalLink, openInNewTab, fullWidth, }: DocLinkProps<T>) => JSX.Element;
|
2
|
+
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, startIcon, showExternalIcon, onClick, fontWeight, size, variant, isExternalLink, openInNewTab, fullWidth, }: DocLinkProps<T>) => JSX.Element;
|
@@ -13,7 +13,7 @@ export declare const DOCUMENTATION: {
|
|
13
13
|
readonly APP_METRICS: "usage/applications/app-details/app-metrics";
|
14
14
|
readonly APP_OVERVIEW_TAGS: "usage/applications/overview#manage-tags";
|
15
15
|
readonly APP_ROLLOUT_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template/rollout-deployment";
|
16
|
-
readonly BUILD_STAGE: "usage/applications/creating-application/ci-pipeline#build-stage";
|
16
|
+
readonly BUILD_STAGE: "usage/applications/creating-application/workflow/ci-pipeline#build-stage";
|
17
17
|
readonly APP_TAGS: "usage/applications/create-application#tags";
|
18
18
|
readonly BLOB_STORAGE: "configurations-overview/installation-configuration#configuration-of-blob-storage";
|
19
19
|
readonly BULK_UPDATE: "usage/bulk-update";
|
@@ -39,7 +39,7 @@ export declare const DOCUMENTATION: {
|
|
39
39
|
readonly GLOBAL_CONFIG_CHART: "getting-started/global-configurations/chart-repo";
|
40
40
|
readonly GLOBAL_CONFIG_CLUSTER: "getting-started/global-configurations/cluster-and-environments";
|
41
41
|
readonly GLOBAL_CONFIG_CUSTOM_CHART: "getting-started/global-configurations/custom-charts";
|
42
|
-
readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "
|
42
|
+
readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "global-configurations/deployment-charts#preparing-a-deployment-chart";
|
43
43
|
readonly GLOBAL_CONFIG_DOCKER: "getting-started/global-configurations/container-registries";
|
44
44
|
readonly GLOBAL_CONFIG_GIT: "getting-started/global-configurations/git-accounts";
|
45
45
|
readonly GLOBAL_CONFIG_GITOPS: "global-configurations/gitops";
|
@@ -6,7 +6,7 @@ export type BaseDocLink<T extends boolean> = {
|
|
6
6
|
isEnterprise?: boolean;
|
7
7
|
docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
|
8
8
|
};
|
9
|
-
export type DocLinkProps<T extends boolean> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
9
|
+
export type DocLinkProps<T extends boolean = false> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth' | 'fontWeight' | 'startIcon'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
10
10
|
text?: string;
|
11
11
|
showExternalIcon?: boolean;
|
12
12
|
onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
|
@@ -4,7 +4,7 @@ import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
4
4
|
import { DocLinkProps } from '../DocLink';
|
5
5
|
interface BaseFeatureDescriptionModalProps {
|
6
6
|
renderDescriptionContent?: () => ReactNode;
|
7
|
-
docLink?: DocLinkProps
|
7
|
+
docLink?: DocLinkProps['docLinkKey'];
|
8
8
|
imageVariant?: ImageType;
|
9
9
|
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
10
10
|
imageStyles?: React.CSSProperties;
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import { DevtronLicenseInfo } from '../License';
|
2
1
|
import { HelpButtonActionMenuProps } from './types';
|
3
2
|
export declare const getDateInMilliseconds: (days: any) => number;
|
4
3
|
export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
|
5
4
|
export declare const setActionWithExpiry: (key: string, days: number) => void;
|
6
|
-
export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
|
7
5
|
export declare const getHelpActionMenuOptions: ({ isEnterprise, isTrial, }: {
|
8
6
|
isEnterprise: boolean;
|
9
7
|
isTrial: boolean;
|
@@ -5,4 +5,4 @@ import { PopoverProps } from './types';
|
|
5
5
|
* @note Use this component in conjunction with the `usePopover` hook to create a custom popover component. \
|
6
6
|
* For example, see the `ActionMenu` component for reference.
|
7
7
|
*/
|
8
|
-
export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
|
8
|
+
export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps: { bounds, ...triggerProps }, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DetailedHTMLProps, KeyboardEvent, MutableRefObject, ReactElement } from 'react';
|
1
|
+
import { DetailedHTMLProps, KeyboardEvent, LegacyRef, MutableRefObject, ReactElement } from 'react';
|
2
2
|
import { HTMLMotionProps } from 'framer-motion';
|
3
3
|
import { ButtonProps } from '../Button';
|
4
4
|
export interface UsePopoverProps {
|
@@ -64,7 +64,9 @@ export interface UsePopoverReturnType {
|
|
64
64
|
* Props to be spread onto the trigger element that opens the popover.
|
65
65
|
* These props include standard HTML attributes for a `div` element.
|
66
66
|
*/
|
67
|
-
triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement
|
67
|
+
triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
68
|
+
bounds: Pick<DOMRect, 'left' | 'top' | 'height' | 'width'>;
|
69
|
+
};
|
68
70
|
/**
|
69
71
|
* Props to be spread onto the overlay element of the popover.
|
70
72
|
* These props include standard HTML attributes for a `div` element.
|
@@ -81,7 +83,7 @@ export interface UsePopoverReturnType {
|
|
81
83
|
* A mutable reference to the scrollable element inside the popover. \
|
82
84
|
* This reference should be assigned to the element that is scrollable.
|
83
85
|
*/
|
84
|
-
scrollableRef: MutableRefObject<
|
86
|
+
scrollableRef: MutableRefObject<any> | LegacyRef<any>;
|
85
87
|
/**
|
86
88
|
* A function to close the popover.
|
87
89
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SEVERITIES } from './constants';
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--R500)" | "var(--N300)" | "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--G500)" | "var(--Y500)" | "var(--R700)" | "var(--O500)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
1
2
|
import { ComponentSizeType } from '../../constants';
|
2
3
|
import { IconBaseColorType } from '../../types';
|
3
4
|
import { IconName } from '../Icon';
|
@@ -78,7 +79,7 @@ export type DTSwitchProps = {
|
|
78
79
|
* Callback function that is called when the switch state changes.
|
79
80
|
* This function should handle the logic for toggling the switch.
|
80
81
|
*/
|
81
|
-
onChange:
|
82
|
+
onChange: ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
|
82
83
|
/**
|
83
84
|
* Indicates whether the switch is disabled.
|
84
85
|
*/
|
@@ -12,8 +12,12 @@ export interface ReloadVersionConfigTypes {
|
|
12
12
|
isRefreshing: boolean;
|
13
13
|
}
|
14
14
|
export interface SidePanelConfig {
|
15
|
+
/** Determines whether the side panel is visible */
|
15
16
|
open: boolean;
|
16
|
-
|
17
|
+
/** Optional flag to reset/reinitialize the side panel state */
|
18
|
+
reinitialize?: boolean;
|
19
|
+
/** URL to documentation that should be displayed in the panel */
|
20
|
+
docLink: string | null;
|
17
21
|
}
|
18
22
|
export interface MainContext {
|
19
23
|
serverMode: SERVER_MODE;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -834,6 +834,26 @@ export interface UploadFileProps {
|
|
834
834
|
export type Never<T> = {
|
835
835
|
[K in keyof T]?: never;
|
836
836
|
};
|
837
|
+
/**
|
838
|
+
* A utility type that filters out properties from type `T` that are of type `never`. \
|
839
|
+
* This is useful when you want to remove properties that have been marked as `never` from a type,
|
840
|
+
* effectively creating a new type without those properties.
|
841
|
+
*
|
842
|
+
* @template T - The input type from which to filter out `never` properties.
|
843
|
+
* @example
|
844
|
+
* ```typescript
|
845
|
+
* type User = {
|
846
|
+
* id: number;
|
847
|
+
* name: string;
|
848
|
+
* deleted: never;
|
849
|
+
* }
|
850
|
+
*
|
851
|
+
* type ActiveUser = OmitNever<User>; // { id: number; name: string; }
|
852
|
+
* ```
|
853
|
+
*/
|
854
|
+
export type OmitNever<T> = {
|
855
|
+
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
856
|
+
};
|
837
857
|
export interface TargetPlatformItemDTO {
|
838
858
|
name: string;
|
839
859
|
}
|