@devtron-labs/devtron-fe-common-lib 1.15.0-beta-2 → 1.15.0-beta-4
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-BOA86Jx7.js → @code-editor-Bn33DGW1.js} +6589 -6650
- package/dist/{@common-rjsf-CGZ8FKPl.js → @common-rjsf-B-Or0nFb.js} +230 -222
- package/dist/{@framer-motion-Dchiw-Rb.js → @framer-motion-C5Xvz7Lq.js} +1 -1
- package/dist/{@react-dates-D5kydtW-.js → @react-dates-B6q1sdbJ.js} +14 -14
- package/dist/{@react-select-Cmser7OI.js → @react-select-LSvqtVJj.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DMnFy9PE.js → @react-virtualized-sticky-tree-BpJty95h.js} +1 -1
- package/dist/{@vendor-STJ9h0oI.js → @vendor-DC3JvJ9U.js} +9667 -9657
- 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/Pages/ResourceBrowser/types.d.ts +5 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -2
- package/dist/Shared/Components/CICDHistory/service.d.ts +7 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +18 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +1 -18
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -1
- 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 +3 -3
- package/dist/Shared/Components/Popover/types.d.ts +0 -5
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
- 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/Shared/Services/app.types.d.ts +2 -7
- package/dist/Shared/constants.d.ts +1 -2
- package/dist/Shared/types.d.ts +3 -7
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-cloud-upload.6f45f51c.svg +3 -0
- package/dist/assets/ic-minus.aac464f7.svg +3 -0
- package/dist/assets/ic-swap.38b2ac9e.svg +3 -0
- package/dist/index.js +509 -503
- package/package.json +3 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +0 -7
- 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-asterisk.ab224e72.svg +0 -3
- 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';
|
@@ -31,6 +31,11 @@ export interface ResourceDetail {
|
|
31
31
|
usagePercentage: string;
|
32
32
|
requestPercentage: string;
|
33
33
|
limitPercentage: string;
|
34
|
+
prevUsagePercentage?: string | null;
|
35
|
+
threshold?: {
|
36
|
+
operator: 'greaterThan' | 'lessThan' | 'equalTo';
|
37
|
+
value: number;
|
38
|
+
} | null;
|
34
39
|
}
|
35
40
|
export interface NodeTaintType {
|
36
41
|
effect: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SelectPickerOptionType } from '@Shared/Components/SelectPicker';
|
2
|
-
import {
|
2
|
+
import { History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const getPipelineDeployments: (triggerHistory: DeploymentHistoryConfigDiffProps["triggerHistory"]) => History[];
|
5
5
|
export declare const getPipelineDeploymentsWfrIds: ({ pipelineDeployments, wfrId, }: {
|
@@ -20,4 +20,3 @@ export declare const parseDeploymentHistoryDiffSearchParams: (compareWfrId: numb
|
|
20
20
|
};
|
21
21
|
export declare const isDeploymentHistoryConfigDiffNotFoundError: <T extends unknown>(res: PromiseSettledResult<T>) => boolean;
|
22
22
|
export declare const getDeploymentHistoryConfigDiffError: <T extends unknown>(res: PromiseSettledResult<T>) => any;
|
23
|
-
export declare const renderDetailedValue: (parentClassName: string, singleValue: DeploymentHistorySingleValue, dataTestId: string) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
2
|
-
import { DeploymentHistoryDetail, DeploymentHistoryResult, DeploymentStatusDetailsResponse, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
2
|
+
import { DeploymentConfigurationsRes, DeploymentHistoryDetail, DeploymentHistoryDetailRes, DeploymentHistoryResult, DeploymentHistorySingleValue, DeploymentStatusDetailsResponse, HistoryDiffSelectorRes, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
3
3
|
export declare function getTriggerDetails({ appId, envId, pipelineId, triggerId, fetchIdData, }: {
|
4
4
|
appId: any;
|
5
5
|
envId: any;
|
@@ -18,6 +18,12 @@ export declare function getManualSync(params: {
|
|
18
18
|
appId: string;
|
19
19
|
envId: string;
|
20
20
|
}): Promise<ResponseType>;
|
21
|
+
export declare const getDeploymentHistoryList: (appId: string, pipelineId: string, triggerId: string) => Promise<DeploymentConfigurationsRes>;
|
22
|
+
export declare const getDeploymentHistoryDetail: (appId: string, pipelineId: string, id: string, historyComponent: string, historyComponentName: string) => Promise<DeploymentHistoryDetailRes>;
|
23
|
+
export declare const prepareDeploymentTemplateData: (rawData: any) => Record<string, DeploymentHistorySingleValue>;
|
24
|
+
export declare const preparePipelineConfigData: (rawData: any) => Record<string, DeploymentHistorySingleValue>;
|
25
|
+
export declare const prepareConfigMapAndSecretData: (rawData: any, type: string, historyData: DeploymentHistoryDetail, skipDecode?: boolean) => Record<string, DeploymentHistorySingleValue>;
|
21
26
|
export declare const prepareHistoryData: (rawData: any, historyComponent: string, skipDecode?: boolean) => DeploymentHistoryDetail;
|
27
|
+
export declare const getDeploymentDiffSelector: (pipelineId: string, historyComponent: any, baseConfigurationId: any, historyComponentName: any) => Promise<HistoryDiffSelectorRes>;
|
22
28
|
export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, "result">>;
|
23
29
|
export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
|
2
2
|
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
3
|
-
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType,
|
3
|
+
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
5
|
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
6
6
|
import { TargetPlatformBadgeListProps } from '../TargetPlatforms';
|
@@ -408,12 +408,14 @@ export interface DeploymentStatusDetailRowType extends Pick<DeploymentStatusDeta
|
|
408
408
|
hideVerticalConnector?: boolean;
|
409
409
|
deploymentDetailedData: DeploymentStatusDetailsBreakdownDataType;
|
410
410
|
}
|
411
|
+
export interface DeploymentConfigurationsRes extends ResponseType {
|
412
|
+
result?: DeploymentTemplateList[];
|
413
|
+
}
|
411
414
|
export interface DeploymentHistorySingleValue {
|
412
415
|
displayName: string;
|
413
416
|
value: string;
|
414
417
|
variableSnapshot?: object;
|
415
418
|
resolvedValue?: string;
|
416
|
-
tooltipContent?: TooltipProps['content'];
|
417
419
|
}
|
418
420
|
export interface DeploymentHistoryDetail {
|
419
421
|
componentName?: string;
|
@@ -426,6 +428,20 @@ export interface DeploymentTemplateHistoryType {
|
|
426
428
|
previousConfigAvailable: boolean;
|
427
429
|
rootClassName?: string;
|
428
430
|
}
|
431
|
+
export interface DeploymentHistoryDetailRes extends ResponseType {
|
432
|
+
result?: DeploymentHistoryDetail;
|
433
|
+
}
|
434
|
+
export interface HistoryDiffSelectorList {
|
435
|
+
id: number;
|
436
|
+
deployedOn: string;
|
437
|
+
deployedBy: string;
|
438
|
+
deploymentStatus: string;
|
439
|
+
wfrId?: number;
|
440
|
+
runSource?: RunSourceType;
|
441
|
+
}
|
442
|
+
export interface HistoryDiffSelectorRes {
|
443
|
+
result?: HistoryDiffSelectorList[];
|
444
|
+
}
|
429
445
|
export interface DeploymentHistorySidebarType {
|
430
446
|
deploymentHistoryList: DeploymentTemplateList[];
|
431
447
|
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
2
|
-
import { RadioGroupItemProps, RadioGroupProps } from '../../../Common/Types';
|
3
2
|
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, TemplateListDTO } from '../../Services';
|
4
3
|
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
5
4
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
6
5
|
import { CollapseProps } from '../Collapse';
|
7
6
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
8
|
-
import {
|
7
|
+
import { SelectPickerProps } from '../SelectPicker';
|
9
8
|
export declare enum DeploymentConfigDiffState {
|
10
9
|
NO_DIFF = "noDiff",
|
11
10
|
HAS_DIFF = "hasDiff",
|
@@ -27,15 +26,6 @@ export interface DeploymentConfigListItem {
|
|
27
26
|
singleView?: boolean;
|
28
27
|
groupHeader?: string;
|
29
28
|
}
|
30
|
-
interface DeploymentConfigDiffRadioConfig extends Pick<RadioGroupProps, 'name' | 'onChange'> {
|
31
|
-
title: string;
|
32
|
-
options: (Pick<RadioGroupItemProps, 'disabled'> & Pick<SelectPickerOptionType<string>, 'label' | 'value' | 'description' | 'tooltipProps'>)[];
|
33
|
-
groupValue: string;
|
34
|
-
}
|
35
|
-
export interface DeploymentConfigDiffRadioSelectConfig {
|
36
|
-
triggerElementTitle: string;
|
37
|
-
radioGroupConfig: DeploymentConfigDiffRadioConfig[];
|
38
|
-
}
|
39
29
|
export type DeploymentConfigDiffSelectPickerProps = {
|
40
30
|
type: 'string';
|
41
31
|
id: string;
|
@@ -46,12 +36,6 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
46
36
|
id: string;
|
47
37
|
text?: never;
|
48
38
|
selectPickerProps: SelectPickerProps;
|
49
|
-
} | {
|
50
|
-
type: 'radio-group';
|
51
|
-
id: string;
|
52
|
-
text?: never;
|
53
|
-
radioSelectConfig: DeploymentConfigDiffRadioSelectConfig;
|
54
|
-
selectPickerProps?: never;
|
55
39
|
};
|
56
40
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'href' | 'title' | 'onClick'> {
|
57
41
|
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
@@ -131,4 +115,3 @@ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView e
|
|
131
115
|
isManifestView?: IsManifestView;
|
132
116
|
convertVariables?: boolean;
|
133
117
|
};
|
134
|
-
export {};
|
@@ -2,4 +2,3 @@ export * from './DeploymentConfigDiff.component';
|
|
2
2
|
export * from './DeploymentConfigDiff.constants';
|
3
3
|
export * from './DeploymentConfigDiff.types';
|
4
4
|
export * from './DeploymentConfigDiff.utils';
|
5
|
-
export { default as DeploymentConfigDiffRadioSelect } from './DeploymentConfigDiffRadioSelect';
|
@@ -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>>;
|
@@ -39,6 +38,7 @@ export declare const iconMap: {
|
|
39
38
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
39
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
40
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
|
+
'ic-cloud-upload': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
42
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
43
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
44
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -123,6 +123,7 @@ export declare const iconMap: {
|
|
123
123
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
124
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
125
|
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
|
+
'ic-minus': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
127
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
127
128
|
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
128
129
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -164,6 +165,7 @@ export declare const iconMap: {
|
|
164
165
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
165
166
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
166
167
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
168
|
+
'ic-swap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
167
169
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
168
170
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
169
171
|
'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -179,10 +181,8 @@ export declare const iconMap: {
|
|
179
181
|
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
180
182
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
181
183
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
182
|
-
'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
183
184
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
184
185
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
185
|
-
'ic-world-globe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
186
186
|
};
|
187
187
|
export type IconName = keyof typeof iconMap;
|
188
188
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -50,11 +50,6 @@ export interface UsePopoverProps {
|
|
50
50
|
* @param closePopover - A function to close the popover.
|
51
51
|
*/
|
52
52
|
onPopoverKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
|
53
|
-
/**
|
54
|
-
* Variant of the popover (bg, shadow and styles changes based on variant)
|
55
|
-
* @default 'menu'
|
56
|
-
*/
|
57
|
-
variant?: 'menu' | 'overlay';
|
58
53
|
}
|
59
54
|
/**
|
60
55
|
* Represents the return type of the `usePopover` hook, providing properties and methods
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { UsePopoverProps, UsePopoverReturnType } from './types';
|
2
|
-
export declare const usePopover: ({ id, position, alignment, width,
|
2
|
+
export declare const usePopover: ({ id, position, alignment, width, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
|
@@ -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 {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { KeyValueTableData } from '../Components';
|
2
|
-
import {
|
2
|
+
import { TargetPlatformsDTO } from '../types';
|
3
3
|
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
4
4
|
import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
|
5
5
|
interface WebhookDataType {
|
@@ -237,9 +237,6 @@ export interface PipelineConfigDataDTO {
|
|
237
237
|
data: Record<string, any>;
|
238
238
|
pipelineTriggerType: string;
|
239
239
|
Strategy: string;
|
240
|
-
updatedBy: string;
|
241
|
-
updatedOn: string;
|
242
|
-
selectedAtRuntime: boolean;
|
243
240
|
}
|
244
241
|
export interface AppEnvDeploymentConfigDTO {
|
245
242
|
deploymentTemplate: DeploymentTemplateDTO | null;
|
@@ -251,8 +248,6 @@ export interface AppEnvDeploymentConfigDTO {
|
|
251
248
|
export type AppEnvDeploymentConfigPayloadType = {
|
252
249
|
appName: string;
|
253
250
|
envName: string;
|
254
|
-
strategy?: DeploymentStrategyType;
|
255
|
-
} & ({
|
256
251
|
configType: AppEnvDeploymentConfigType;
|
257
252
|
wfrId?: number;
|
258
253
|
pipelineId?: number;
|
@@ -266,7 +261,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
266
261
|
pipelineId: number;
|
267
262
|
configArea: 'CdRollback' | 'DeploymentHistory';
|
268
263
|
wfrId: number;
|
269
|
-
}
|
264
|
+
};
|
270
265
|
export declare enum TemplateListType {
|
271
266
|
DefaultVersions = 1,
|
272
267
|
PublishedOnEnvironments = 2,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
2
|
import { InfoBlockProps } from './Components';
|
3
|
-
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType,
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
|
4
4
|
export declare const ARTIFACT_STATUS: {
|
5
5
|
PROGRESSING: string;
|
6
6
|
DEGRADED: string;
|
@@ -429,5 +429,4 @@ export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], st
|
|
429
429
|
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
430
430
|
export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
|
431
431
|
export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
432
|
-
export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
|
433
432
|
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { ParsedCountry } from 'react-international-phone';
|
3
3
|
import { Dayjs } from 'dayjs';
|
4
|
-
import { APIOptions, ApprovalConfigDataType
|
4
|
+
import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
|
5
5
|
import { ReleaseMode } from '../Pages/index';
|
6
|
-
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps,
|
6
|
+
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
7
7
|
import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
|
8
8
|
import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
9
9
|
export declare enum InstallationType {
|
@@ -97,6 +97,7 @@ export declare enum Nodes {
|
|
97
97
|
Node = "Node",
|
98
98
|
Overview = "Overview",
|
99
99
|
MonitoringDashboard = "MonitoringDashboard",
|
100
|
+
EmbeddedSloop = "EmbeddedSloop",
|
100
101
|
UpgradeCluster = "UpgradeCluster"
|
101
102
|
}
|
102
103
|
export type NodeType = keyof typeof Nodes;
|
@@ -1097,9 +1098,4 @@ export interface IntelligenceConfig {
|
|
1097
1098
|
export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
|
1098
1099
|
export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
|
1099
1100
|
export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
|
1100
|
-
export interface PipelineDeploymentStrategy {
|
1101
|
-
pipelineId: number;
|
1102
|
-
strategies: Strategy[];
|
1103
|
-
error: ServerError;
|
1104
|
-
}
|
1105
1101
|
export {};
|