@devtron-labs/devtron-fe-common-lib 1.15.0-pre-4-beta-1 → 1.15.1
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-Czag4IbD.js → @code-editor-UCp9Sbuo.js} +5885 -5857
- package/dist/{@common-rjsf-C8Io8Ugi.js → @common-rjsf-fukHKGdY.js} +230 -222
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +11 -0
- package/dist/Common/Dialogs/Types.d.ts +17 -0
- package/dist/Common/Dialogs/index.d.ts +1 -0
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +6 -0
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
- package/dist/Common/Toggle/Toggle.d.ts +18 -0
- package/dist/Common/Types.d.ts +43 -1
- package/dist/Common/index.d.ts +2 -0
- package/dist/Shared/Components/DocLink/types.d.ts +0 -1
- package/dist/Shared/Components/DocLink/utils.d.ts +1 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -5
- package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
- package/dist/Shared/Components/Switch/types.d.ts +2 -11
- package/dist/Shared/Components/Switch/utils.d.ts +2 -2
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Providers/types.d.ts +10 -28
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-add.18a93616.svg +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +765 -763
- package/package.json +3 -3
- package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +0 -3
- package/dist/Shared/Components/SwitchThemeDialog/index.d.ts +0 -2
- package/dist/Shared/Components/SwitchThemeDialog/types.d.ts +0 -35
- package/dist/assets/ic-add.31531526.svg +0 -3
- package/dist/assets/ic-asterisk.ab224e72.svg +0 -3
- package/dist/assets/ic-folder-color.7cf84356.svg +0 -6
- package/dist/assets/ic-minus.27e3c9bc.svg +0 -5
- package/dist/assets/ic-world-globe.877fa6a0.svg +0 -3
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ConfirmationDialogBodyType, ConfirmationDialogButtonGroupType, ConfirmationDialogIconType, ConfirmationDialogType } from './Types';
|
2
|
+
/**
|
3
|
+
* @deprecated use confirmation modal instead
|
4
|
+
*/
|
5
|
+
declare const ConfirmationDialog: {
|
6
|
+
({ className, children, close }: ConfirmationDialogType): JSX.Element;
|
7
|
+
Icon: ({ src, className }: ConfirmationDialogIconType) => JSX.Element;
|
8
|
+
Body: ({ title, subtitle, children }: ConfirmationDialogBodyType) => JSX.Element;
|
9
|
+
ButtonGroup: ({ children }: ConfirmationDialogButtonGroupType) => JSX.Element;
|
10
|
+
};
|
11
|
+
export default ConfirmationDialog;
|
@@ -32,6 +32,23 @@ export interface ForceDeleteDialogType {
|
|
32
32
|
forceDeleteDialogTitle: string;
|
33
33
|
forceDeleteDialogMessage: string;
|
34
34
|
}
|
35
|
+
export interface ConfirmationDialogType {
|
36
|
+
className?: string;
|
37
|
+
children: any;
|
38
|
+
close?: (e: any) => void;
|
39
|
+
}
|
40
|
+
export interface ConfirmationDialogIconType {
|
41
|
+
src: string;
|
42
|
+
className?: string;
|
43
|
+
}
|
44
|
+
export interface ConfirmationDialogBodyType {
|
45
|
+
title: string;
|
46
|
+
subtitle?: ReactNode;
|
47
|
+
children?: any;
|
48
|
+
}
|
49
|
+
export interface ConfirmationDialogButtonGroupType {
|
50
|
+
children: any;
|
51
|
+
}
|
35
52
|
export interface DialogFormProps {
|
36
53
|
className: string;
|
37
54
|
title: string;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { InfoColourBarType } from '../Types';
|
2
|
+
/**
|
3
|
+
* @deprecated Use InfoBlock instead
|
4
|
+
*/
|
5
|
+
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon, textConfig, }: InfoColourBarType) => JSX.Element;
|
6
|
+
export default InfoColourBar;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { WidgetProps } from '@rjsf/utils';
|
2
|
-
export declare const Checkbox: ({ id, onChange, value, disabled, readonly, autofocus, }: WidgetProps) => JSX.Element;
|
2
|
+
export declare const Checkbox: ({ id, onChange, value, required, disabled, readonly, autofocus, onBlur, onFocus, }: WidgetProps) => JSX.Element;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { CHECKBOX_VALUE } from '../Types';
|
2
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, value, isControlled, ...props }: {
|
3
|
+
[x: string]: any;
|
4
|
+
selected?: boolean;
|
5
|
+
onSelect?: any;
|
6
|
+
color?: string;
|
7
|
+
rootClassName?: string;
|
8
|
+
disabled?: boolean;
|
9
|
+
dataTestId?: string;
|
10
|
+
Icon?: any;
|
11
|
+
iconClass?: string;
|
12
|
+
throttleOnChange?: boolean;
|
13
|
+
shouldToggleValueOnLabelClick?: boolean;
|
14
|
+
isLoading?: boolean;
|
15
|
+
value?: CHECKBOX_VALUE;
|
16
|
+
isControlled?: boolean;
|
17
|
+
}) => JSX.Element;
|
18
|
+
export default Toggle;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType } from '../Shared';
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType } from '../Shared';
|
6
6
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
@@ -162,6 +162,48 @@ export declare enum ImageType {
|
|
162
162
|
Medium = "medium",
|
163
163
|
SMALL = "small"
|
164
164
|
}
|
165
|
+
interface InfoColourBarTextConfigType {
|
166
|
+
/**
|
167
|
+
* If given would be shown above the description, in bold
|
168
|
+
*/
|
169
|
+
heading?: string;
|
170
|
+
/**
|
171
|
+
* If given would be shown below the heading (if given)
|
172
|
+
*/
|
173
|
+
description: string;
|
174
|
+
actionButtonConfig?: ButtonProps;
|
175
|
+
}
|
176
|
+
type InfoColourBarMessageProp = {
|
177
|
+
message: ReactNode;
|
178
|
+
linkText?: ReactNode;
|
179
|
+
redirectLink?: string;
|
180
|
+
linkOnClick?: () => void;
|
181
|
+
linkClass?: string;
|
182
|
+
internalLink?: boolean;
|
183
|
+
textConfig?: never;
|
184
|
+
} | {
|
185
|
+
textConfig: InfoColourBarTextConfigType;
|
186
|
+
message?: never;
|
187
|
+
linkText?: never;
|
188
|
+
redirectLink?: never;
|
189
|
+
linkOnClick?: () => never;
|
190
|
+
linkClass?: never;
|
191
|
+
internalLink?: never;
|
192
|
+
};
|
193
|
+
export type InfoColourBarType = InfoColourBarMessageProp & {
|
194
|
+
classname: string;
|
195
|
+
Icon: any;
|
196
|
+
iconClass?: string;
|
197
|
+
iconSize?: number;
|
198
|
+
renderActionButton?: () => JSX.Element;
|
199
|
+
styles?: CSSProperties;
|
200
|
+
/**
|
201
|
+
* If true, the icon is not shown
|
202
|
+
*
|
203
|
+
* @default false
|
204
|
+
*/
|
205
|
+
hideIcon?: boolean;
|
206
|
+
};
|
165
207
|
export interface ReloadType {
|
166
208
|
reload?: (event?: any) => void;
|
167
209
|
className?: string;
|
package/dist/Common/index.d.ts
CHANGED
@@ -25,6 +25,7 @@ export * from './Helper';
|
|
25
25
|
export * from './Hooks';
|
26
26
|
export * from './ImageTags';
|
27
27
|
export * from './ImageTags.Types';
|
28
|
+
export { default as InfoColourBar } from './InfoColorBar/InfoColourbar';
|
28
29
|
export * from './Markdown';
|
29
30
|
export * from './Modals/Modal';
|
30
31
|
export * from './Modals/VisibleModal';
|
@@ -46,5 +47,6 @@ export { default as Select } from './Select/Select';
|
|
46
47
|
export * from './ServerError';
|
47
48
|
export * from './SortableTableHeaderCell';
|
48
49
|
export * from './TippyCustomized';
|
50
|
+
export { default as Toggle } from './Toggle/Toggle';
|
49
51
|
export * from './Tooltip';
|
50
52
|
export * from './Types';
|
@@ -4,7 +4,6 @@ import { DOCUMENTATION } from './constants';
|
|
4
4
|
export type BaseDocLink<T extends boolean> = {
|
5
5
|
isExternalLink?: T;
|
6
6
|
isEnterprise?: boolean;
|
7
|
-
isLicenseDashboard?: boolean;
|
8
7
|
docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
|
9
8
|
};
|
10
9
|
export type DocLinkProps<T extends boolean = false> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth' | 'fontWeight' | 'startIcon'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { BaseDocLink } from './types';
|
2
|
-
export declare const getDocumentationUrl: <T extends boolean = false>({ docLinkKey, isEnterprise, isExternalLink,
|
2
|
+
export declare const getDocumentationUrl: <T extends boolean = false>({ docLinkKey, isEnterprise, isExternalLink, }: BaseDocLink<T>) => string;
|
@@ -12,7 +12,6 @@ export declare const iconMap: {
|
|
12
12
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
13
|
'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
14
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
|
-
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
15
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
16
|
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
17
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -77,7 +76,6 @@ export declare const iconMap: {
|
|
77
76
|
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
77
|
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
78
|
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
|
-
'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
79
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
80
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
81
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -124,7 +122,6 @@ export declare const iconMap: {
|
|
124
122
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
123
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
124
|
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
127
|
-
'ic-minus': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
128
125
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
129
126
|
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
130
127
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -181,10 +178,8 @@ export declare const iconMap: {
|
|
181
178
|
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
182
179
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
183
180
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
184
|
-
'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
185
181
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
186
182
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
187
|
-
'ic-world-globe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
188
183
|
};
|
189
184
|
export type IconName = keyof typeof iconMap;
|
190
185
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DTSwitchProps } from './types';
|
2
|
-
declare const Switch: ({ ariaLabel, isDisabled, isLoading, isChecked, tooltipContent, shape, variant, iconColor, iconName, indeterminate, size, name,
|
2
|
+
declare const Switch: ({ ariaLabel, isDisabled, isLoading, isChecked, tooltipContent, shape, variant, iconColor, iconName, indeterminate, size, name, onChange, }: DTSwitchProps) => JSX.Element;
|
3
3
|
export default Switch;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ButtonHTMLAttributes
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
2
2
|
import { ComponentSizeType } from '../../constants';
|
3
3
|
import { IconBaseColorType } from '../../types';
|
4
4
|
import { IconName } from '../Icon';
|
@@ -64,10 +64,6 @@ export type DTSwitchProps = {
|
|
64
64
|
* Used in forms to identify the switch.
|
65
65
|
*/
|
66
66
|
name: string;
|
67
|
-
/**
|
68
|
-
* Provide if name generated through `getUniqueId`.
|
69
|
-
*/
|
70
|
-
dataTestId?: string;
|
71
67
|
/**
|
72
68
|
* The visual variant of the switch.
|
73
69
|
*
|
@@ -101,11 +97,6 @@ export type DTSwitchProps = {
|
|
101
97
|
*
|
102
98
|
* @default undefined
|
103
99
|
*/
|
104
|
-
tooltipContent?:
|
105
|
-
/**
|
106
|
-
* Indicates whether the switch should be focused automatically when rendered.
|
107
|
-
* @default false
|
108
|
-
*/
|
109
|
-
autoFocus?: boolean;
|
100
|
+
tooltipContent?: string;
|
110
101
|
} & SwitchShapeProps;
|
111
102
|
export {};
|
@@ -3,10 +3,10 @@ import { ROUNDED_SWITCH_TRACK_HOVER_COLOR_MAP } from './constants';
|
|
3
3
|
import { DTSwitchProps } from './types';
|
4
4
|
export declare const getSwitchContainerClass: ({ shape, size }: Required<Pick<DTSwitchProps, "shape" | "size">>) => string;
|
5
5
|
export declare const getSwitchTrackColor: ({ shape, variant, isChecked, isLoading, }: Required<Pick<DTSwitchProps, "shape" | "variant" | "isChecked" | "isLoading">>) => string;
|
6
|
-
export declare const getSwitchTrackHoverColor: ({ shape, variant, isChecked,
|
6
|
+
export declare const getSwitchTrackHoverColor: ({ shape, variant, isChecked, }: Required<Pick<DTSwitchProps, "shape" | "variant" | "isChecked">>) => (typeof ROUNDED_SWITCH_TRACK_HOVER_COLOR_MAP)[DTSwitchProps["variant"]];
|
7
7
|
export declare const getSwitchThumbClass: ({ shape, size, showIndeterminateIcon, }: Pick<DTSwitchProps, "shape" | "size"> & {
|
8
8
|
showIndeterminateIcon: boolean;
|
9
9
|
}) => string;
|
10
10
|
export declare const getSwitchIconColor: ({ iconColor, isChecked, variant, }: Pick<DTSwitchProps, "iconColor" | "isChecked" | "variant">) => IconBaseColorType;
|
11
|
-
export declare const getThumbPosition: ({
|
11
|
+
export declare const getThumbPosition: ({ isLoading, isChecked, }: Pick<DTSwitchProps, "isLoading" | "isChecked">) => "left" | "right" | "center";
|
12
12
|
export declare const getThumbPadding: ({ shape, isLoading }: Pick<DTSwitchProps, "shape" | "isLoading">) => string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ToggleResolveScopedVariablesProps } from './types';
|
2
|
-
declare const ToggleResolveScopedVariables: ({
|
2
|
+
declare const ToggleResolveScopedVariables: ({ resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip, throttleOnChange, }: ToggleResolveScopedVariablesProps) => JSX.Element;
|
3
3
|
export default ToggleResolveScopedVariables;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
export interface ToggleResolveScopedVariablesProps {
|
2
|
-
name: string;
|
3
2
|
resolveScopedVariables: boolean;
|
4
3
|
handleToggleScopedVariablesView: () => void;
|
5
4
|
isDisabled?: boolean;
|
@@ -7,4 +6,5 @@ export interface ToggleResolveScopedVariablesProps {
|
|
7
6
|
* @default true
|
8
7
|
*/
|
9
8
|
showTooltip?: boolean;
|
9
|
+
throttleOnChange?: boolean;
|
10
10
|
}
|
@@ -73,7 +73,6 @@ export * from './ShowMoreText';
|
|
73
73
|
export * from './SSOProviderIcon';
|
74
74
|
export * from './StatusComponent';
|
75
75
|
export * from './Switch';
|
76
|
-
export * from './SwitchThemeDialog';
|
77
76
|
export * from './TabGroup';
|
78
77
|
export * from './Table';
|
79
78
|
export * from './TagsKeyValueTable';
|
@@ -19,10 +19,12 @@ export interface SidePanelConfig {
|
|
19
19
|
/** URL to documentation that should be displayed in the panel */
|
20
20
|
docLink: string | null;
|
21
21
|
}
|
22
|
-
|
22
|
+
export interface MainContext {
|
23
|
+
serverMode: SERVER_MODE;
|
23
24
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
24
25
|
isHelpGettingStartedClicked: boolean;
|
25
26
|
showCloseButtonAfterGettingStartedClicked: () => void;
|
27
|
+
loginCount: number;
|
26
28
|
setLoginCount: (loginCount: number) => void;
|
27
29
|
showGettingStartedCard: boolean;
|
28
30
|
setShowGettingStartedCard: (showGettingStartedCard: boolean) => void;
|
@@ -30,8 +32,9 @@ type CommonMainContextProps = {
|
|
30
32
|
setGettingStartedClicked: (isGettingStartedClicked: boolean) => void;
|
31
33
|
moduleInInstallingState: string;
|
32
34
|
setModuleInInstallingState: (moduleInInstallingState: string) => void;
|
35
|
+
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
33
36
|
currentServerInfo: {
|
34
|
-
serverInfo: ServerInfo
|
37
|
+
serverInfo: ServerInfo;
|
35
38
|
fetchingServerInfo: boolean;
|
36
39
|
};
|
37
40
|
isAirgapped: boolean;
|
@@ -54,23 +57,17 @@ type CommonMainContextProps = {
|
|
54
57
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
55
58
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
56
59
|
handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
|
57
|
-
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
58
|
-
canFetchHelmAppStatus: boolean;
|
59
|
-
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
60
|
-
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
61
|
-
};
|
62
|
-
export type MainContext = CommonMainContextProps & ({
|
63
|
-
isLicenseDashboard?: never;
|
64
|
-
serverMode: SERVER_MODE;
|
65
|
-
loginCount: number | null;
|
66
|
-
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
67
60
|
/**
|
68
61
|
* Data is set only if showLicenseData is received as true
|
69
62
|
*/
|
70
63
|
licenseData: DevtronLicenseInfo;
|
64
|
+
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
65
|
+
canFetchHelmAppStatus: boolean;
|
71
66
|
reloadVersionConfig: ReloadVersionConfigTypes;
|
72
67
|
intelligenceConfig: IntelligenceConfig;
|
68
|
+
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
73
69
|
sidePanelConfig: SidePanelConfig;
|
70
|
+
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
74
71
|
/**
|
75
72
|
* Indicates whether the current Devtron instance is running as an Enterprise edition. \
|
76
73
|
* This flag is determined based on server-side configuration.
|
@@ -81,23 +78,8 @@ export type MainContext = CommonMainContextProps & ({
|
|
81
78
|
* Used to conditionally render or enable features that depend on fe-lib
|
82
79
|
*/
|
83
80
|
isFELibAvailable: boolean;
|
84
|
-
}
|
85
|
-
isLicenseDashboard: true;
|
86
|
-
serverMode: null;
|
87
|
-
loginCount: null;
|
88
|
-
installedModuleMap: null;
|
89
|
-
/**
|
90
|
-
* Data is set only if showLicenseData is received as true
|
91
|
-
*/
|
92
|
-
licenseData: null;
|
93
|
-
reloadVersionConfig: null;
|
94
|
-
intelligenceConfig: null;
|
95
|
-
sidePanelConfig: null;
|
96
|
-
isEnterprise: false;
|
97
|
-
isFELibAvailable: false;
|
98
|
-
});
|
81
|
+
}
|
99
82
|
export interface MainContextProviderProps {
|
100
83
|
children: ReactNode;
|
101
84
|
value: MainContext;
|
102
85
|
}
|
103
|
-
export {};
|