@devtron-labs/devtron-fe-common-lib 0.3.22-beta-1 → 0.3.22-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/Common/Helper.d.ts +0 -1
- package/dist/Common/RJSF/widgets/Select.d.ts +1 -1
- package/dist/Common/RJSF/widgets/index.d.ts +1 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/{DeploymentHistoryConfigDiff → DeploymentHistoryDiff}/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +35 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +4 -3
- package/dist/Shared/Components/DatePicker/utils.d.ts +0 -14
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +10 -27
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +2 -4
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +2 -9
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +3 -6
- package/dist/Shared/Helpers.d.ts +0 -13
- package/dist/Shared/Services/app.service.d.ts +1 -7
- package/dist/Shared/Services/app.types.d.ts +7 -34
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-AebXqYNk.js → cssMode-BZCVYwOE.js} +1 -1
- package/dist/{freemarker2-9HzO9Ab3.js → freemarker2-BwU7A8Nl.js} +1 -1
- package/dist/{handlebars-BZH0lvjl.js → handlebars-BL557QwV.js} +1 -1
- package/dist/{html-DJpYRZgk.js → html-t2ytsjQ5.js} +1 -1
- package/dist/{htmlMode-DSyT8MjJ.js → htmlMode-C9Sp4qXw.js} +1 -1
- package/dist/{index-Bs0uaNvo.js → index-D7A0k6aQ.js} +123088 -123402
- package/dist/index.js +438 -448
- package/dist/{javascript-Bg4wUEIT.js → javascript-BmspHgI2.js} +1 -1
- package/dist/{jsonMode-Dn3h-XMW.js → jsonMode-D5LX8G3z.js} +1 -1
- package/dist/{liquid-Ct5hEWrf.js → liquid-cqyxKhdQ.js} +1 -1
- package/dist/{mdx-urwBDTPV.js → mdx-BG1GgmxG.js} +1 -1
- package/dist/{python-CU7qi2Ar.js → python-B1KyD5Ef.js} +1 -1
- package/dist/{razor-CCY3-wyo.js → razor-DsX0-3w4.js} +1 -1
- package/dist/{tsMode-D3W_68Yz.js → tsMode-BisADdgi.js} +1 -1
- package/dist/{typescript-aeQX47tb.js → typescript-DX4qVnHw.js} +1 -1
- package/dist/{xml-B5y0k5uI.js → xml-CpkuMfdg.js} +1 -1
- package/dist/{yaml-Bjtkusci.js → yaml-BryK_Fe2.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +0 -6
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/index.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +0 -35
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +0 -20
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +0 -6
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -120,5 +120,4 @@ export declare const DropdownIndicator: (props: any) => JSX.Element;
|
|
|
120
120
|
export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
121
121
|
export declare function asyncWrap(promise: any): any[];
|
|
122
122
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
123
|
-
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
124
123
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WidgetProps } from '@rjsf/utils';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SelectWidget: (props: WidgetProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Checkbox as CheckboxWidget } from './Checkbox';
|
|
2
|
-
export {
|
|
2
|
+
export { SelectWidget } from './Select';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass,
|
|
1
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
selected?: boolean;
|
|
4
4
|
onSelect?: any;
|
|
@@ -8,6 +8,5 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
|
8
8
|
dataTestId?: string;
|
|
9
9
|
Icon?: any;
|
|
10
10
|
iconClass?: string;
|
|
11
|
-
throttleOnChange?: boolean;
|
|
12
11
|
}) => JSX.Element;
|
|
13
12
|
export default Toggle;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareViewDeploymentType } from './types';
|
|
2
|
+
declare const DeploymentHistoryDetailedView: ({ setFullScreenView, deploymentHistoryList, setDeploymentHistoryList, renderRunSource, resourceId, }: CompareViewDeploymentType) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryDetailedView;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName,
|
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
3
|
export default DeploymentHistoryDiffView;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareWithBaseConfiguration } from './types';
|
|
2
|
+
declare const DeploymentHistoryHeader: ({ selectedDeploymentTemplate, setSelectedDeploymentTemplate, setFullScreenView, setLoader, setPreviousConfigAvailable, renderRunSource, resourceId, }: CompareWithBaseConfiguration) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryHeader;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as DeploymentHistoryDetailedView } from './DeploymentHistoryDetailedView';
|
|
2
|
+
export { default as DeploymentHistoryConfigList } from './DeploymentHistoryConfigList.component';
|
|
3
|
+
export { default as DeploymentHistoryDiffView } from './DeploymentHistoryDiffView';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OptionType } from '../../../../Common';
|
|
2
|
+
import { DeploymentTemplateList, RunSourceType, RenderRunSourceType } from '../types';
|
|
3
|
+
export interface DeploymentHistoryParamsType {
|
|
4
|
+
appId: string;
|
|
5
|
+
pipelineId?: string;
|
|
6
|
+
historyComponent?: string;
|
|
7
|
+
baseConfigurationId?: string;
|
|
8
|
+
historyComponentName?: string;
|
|
9
|
+
envId?: string;
|
|
10
|
+
triggerId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CompareViewDeploymentType extends RenderRunSourceType {
|
|
13
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
15
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
16
|
+
resourceId?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface DeploymentTemplateOptions extends OptionType {
|
|
19
|
+
author: string;
|
|
20
|
+
status: string;
|
|
21
|
+
runSource?: RunSourceType;
|
|
22
|
+
}
|
|
23
|
+
export interface CompareWithBaseConfiguration extends RenderRunSourceType {
|
|
24
|
+
selectedDeploymentTemplate: DeploymentTemplateOptions;
|
|
25
|
+
setSelectedDeploymentTemplate: (selected: any) => void;
|
|
26
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
setLoader: React.Dispatch<React.SetStateAction<boolean>>;
|
|
28
|
+
setPreviousConfigAvailable: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
+
resourceId?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface TemplateConfiguration {
|
|
32
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
34
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Option: (props: any) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, }: TriggerDetailsType) => JSX.Element>;
|
|
4
|
-
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo,
|
|
4
|
+
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo, }: TriggerOutputProps) => JSX.Element;
|
|
5
5
|
export default TriggerOutput;
|
|
@@ -11,6 +11,6 @@ export * from './History.components';
|
|
|
11
11
|
export * from './utils';
|
|
12
12
|
export * from './TriggerOutput';
|
|
13
13
|
export { default as LogsRenderer } from './LogsRenderer';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './DeploymentHistoryDiff';
|
|
15
15
|
export * from './CiPipelineSourceConfig';
|
|
16
16
|
export * from './StatusFilterButtonComponent';
|
|
@@ -322,13 +322,14 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
322
322
|
fullScreenView: boolean;
|
|
323
323
|
triggerHistory: Map<number, History>;
|
|
324
324
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
325
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
326
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
325
327
|
deploymentAppType: DeploymentAppTypes;
|
|
326
328
|
isBlobStorageConfigured: boolean;
|
|
327
329
|
appReleaseTags: string[];
|
|
328
330
|
tagsEditable: boolean;
|
|
329
331
|
hideImageTaggingHardDelete: boolean;
|
|
330
332
|
fetchIdData: FetchIdDataStatus;
|
|
331
|
-
appName: string;
|
|
332
333
|
selectedEnvironmentName?: string;
|
|
333
334
|
renderCIListHeader?: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
334
335
|
renderDeploymentApprovalInfo?: (userApprovalMetadata: UserApprovalMetadataType) => JSX.Element;
|
|
@@ -342,7 +343,7 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
342
343
|
scrollToTop: ReturnType<typeof useScrollable>[1];
|
|
343
344
|
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
|
344
345
|
}
|
|
345
|
-
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'
|
|
346
|
+
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
|
|
346
347
|
triggerDetails: History;
|
|
347
348
|
loading: boolean;
|
|
348
349
|
userApprovalMetadata: UserApprovalMetadataType;
|
|
@@ -392,7 +393,7 @@ export interface DeploymentTemplateHistoryType {
|
|
|
392
393
|
isUnpublished?: boolean;
|
|
393
394
|
isDeleteDraft?: boolean;
|
|
394
395
|
rootClassName?: string;
|
|
395
|
-
|
|
396
|
+
comparisonBodyClassName?: string;
|
|
396
397
|
sortOrder?: SortingOrder;
|
|
397
398
|
}
|
|
398
399
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { OptionType } from '../../../Common';
|
|
2
|
-
export declare const getTimePickerStyles: () => {
|
|
3
|
-
container: (base: any) => any;
|
|
4
|
-
control: (base: any, state: any) => any;
|
|
5
|
-
menu: (base: any) => any;
|
|
6
|
-
singleValue: (base: any) => any;
|
|
7
|
-
placeholder: (base: any) => any;
|
|
8
|
-
option: (base: any, state: any) => any;
|
|
9
|
-
valueContainer: (base: any) => any;
|
|
10
|
-
dropdownIndicator: (base: any) => any;
|
|
11
|
-
};
|
|
12
2
|
/**
|
|
13
3
|
* Return the options for the dates in label and value format
|
|
14
4
|
*/
|
|
@@ -39,7 +29,3 @@ export declare const updateDate: (currentDateObj: Date, newDate: Date) => Date;
|
|
|
39
29
|
* @returns
|
|
40
30
|
*/
|
|
41
31
|
export declare const getDefaultDateFromTimeToLive: (timeToLive: string, isTomorrow?: boolean) => Date;
|
|
42
|
-
/**
|
|
43
|
-
* Clock icon for the time picker
|
|
44
|
-
*/
|
|
45
|
-
export declare const DropdownIndicatorTimePicker: (props: any) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig,
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -4,12 +4,6 @@ import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
|
4
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
6
6
|
import { CollapseProps } from '../Collapse';
|
|
7
|
-
export declare enum DeploymentConfigDiffState {
|
|
8
|
-
NO_DIFF = "noDiff",
|
|
9
|
-
HAS_DIFF = "hasDiff",
|
|
10
|
-
ADDED = "added",
|
|
11
|
-
DELETED = "deleted"
|
|
12
|
-
}
|
|
13
7
|
export interface DeploymentConfigType {
|
|
14
8
|
list: DeploymentHistoryDetail;
|
|
15
9
|
heading: React.ReactNode;
|
|
@@ -17,13 +11,10 @@ export interface DeploymentConfigType {
|
|
|
17
11
|
export interface DeploymentConfigListItem {
|
|
18
12
|
id: string;
|
|
19
13
|
title: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
pathType: EnvResourceType;
|
|
22
14
|
primaryConfig: DeploymentConfigType;
|
|
23
15
|
secondaryConfig: DeploymentConfigType;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
groupHeader?: string;
|
|
16
|
+
hasDiff?: boolean;
|
|
17
|
+
isDeploymentTemplate?: boolean;
|
|
27
18
|
}
|
|
28
19
|
export type DeploymentConfigDiffSelectPickerProps = {
|
|
29
20
|
type: 'string';
|
|
@@ -37,7 +28,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
37
28
|
selectPickerProps: SelectPickerProps;
|
|
38
29
|
};
|
|
39
30
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
|
|
40
|
-
|
|
31
|
+
hasDiff?: boolean;
|
|
41
32
|
}
|
|
42
33
|
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
|
|
43
34
|
items: DeploymentConfigDiffNavigationItem[];
|
|
@@ -50,13 +41,11 @@ export interface DeploymentConfigDiffProps {
|
|
|
50
41
|
reload: () => void;
|
|
51
42
|
};
|
|
52
43
|
configList: DeploymentConfigListItem[];
|
|
53
|
-
showDetailedDiffState?: boolean;
|
|
54
44
|
headerText?: string;
|
|
55
45
|
scrollIntoViewId?: string;
|
|
56
46
|
selectorsConfig: {
|
|
57
47
|
primaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
58
48
|
secondaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
59
|
-
hideDivider?: boolean;
|
|
60
49
|
};
|
|
61
50
|
sortingConfig?: {
|
|
62
51
|
sortBy: string;
|
|
@@ -73,35 +62,29 @@ export interface DeploymentConfigDiffProps {
|
|
|
73
62
|
activeTab: string;
|
|
74
63
|
onClick: (tab: string) => void;
|
|
75
64
|
};
|
|
76
|
-
scopeVariablesConfig?: {
|
|
77
|
-
convertVariables: boolean;
|
|
78
|
-
onConvertVariablesClick: () => void;
|
|
79
|
-
};
|
|
80
|
-
renderedInDrawer?: boolean;
|
|
81
65
|
}
|
|
82
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'
|
|
66
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
|
|
83
67
|
}
|
|
84
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'
|
|
68
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
85
69
|
}
|
|
86
|
-
export
|
|
70
|
+
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
87
71
|
id: string;
|
|
88
72
|
title: string;
|
|
89
73
|
children: React.ReactNode;
|
|
90
|
-
|
|
74
|
+
hasDiff?: boolean;
|
|
91
75
|
isExpanded?: boolean;
|
|
92
76
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
93
|
-
}
|
|
77
|
+
}
|
|
94
78
|
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
95
79
|
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
96
80
|
currentList: ManifestTemplateDTO;
|
|
97
81
|
compareList: ManifestTemplateDTO;
|
|
82
|
+
sortOrder?: never;
|
|
98
83
|
} : {
|
|
99
84
|
currentList: AppEnvDeploymentConfigDTO;
|
|
100
85
|
compareList: AppEnvDeploymentConfigDTO;
|
|
86
|
+
sortOrder?: SortingOrder;
|
|
101
87
|
}) & {
|
|
102
88
|
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
103
89
|
isManifestView?: IsManifestView;
|
|
104
|
-
convertVariables?: boolean;
|
|
105
|
-
currentDeploymentTemplateResolvedData?: AppEnvDeploymentConfigDTO;
|
|
106
|
-
compareDeploymentTemplateResolvedData?: AppEnvDeploymentConfigDTO;
|
|
107
90
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps, AppEnvDeploymentConfigListParams } from '..';
|
|
2
|
-
import { ConfigMapSecretDataConfigDatumDTO,
|
|
3
|
-
export declare const getDeploymentTemplateData: (data: DeploymentTemplateDTO) => any;
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
|
|
4
3
|
/**
|
|
5
4
|
* Retrieves the draft data from the given configuration data object.
|
|
6
5
|
*
|
|
@@ -28,12 +27,11 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
28
27
|
*
|
|
29
28
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
30
29
|
*/
|
|
31
|
-
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView,
|
|
30
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
32
31
|
configList: DeploymentConfigDiffProps["configList"];
|
|
33
32
|
navList: DeploymentConfigDiffProps["navList"];
|
|
34
33
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
35
34
|
};
|
|
36
|
-
export declare const getDeploymentTemplateValues: (deploymentTemplate: DeploymentTemplateDTO) => string;
|
|
37
35
|
export declare const getDefaultVersionAndPreviousDeploymentOptions: (data: TemplateListDTO[]) => {
|
|
38
36
|
previousDeployments: TemplateListDTO[];
|
|
39
37
|
defaultVersions: TemplateListDTO[];
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
diffState: DeploymentConfigDiffState;
|
|
7
|
-
isExpanded?: boolean;
|
|
8
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
|
|
2
|
+
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId,
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig,
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
@@ -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, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
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, isCreatableSingleSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
138
138
|
export default SelectPicker;
|
|
@@ -4,12 +4,11 @@ import { ComponentSizeType } from '../../constants';
|
|
|
4
4
|
import { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
5
5
|
import { GroupBase, GroupHeadingProps, Props as ReactSelectProps, SelectInstance } from 'react-select';
|
|
6
6
|
import { CreatableProps } from 'react-select/creatable';
|
|
7
|
-
import { TooltipProps } from '@Common/Tooltip/types';
|
|
8
7
|
export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
|
|
9
8
|
/**
|
|
10
9
|
* Description to be displayed for the option
|
|
11
10
|
*/
|
|
12
|
-
description?:
|
|
11
|
+
description?: string;
|
|
13
12
|
/**
|
|
14
13
|
* Icon at the start of the option
|
|
15
14
|
*/
|
|
@@ -18,10 +17,6 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
|
18
17
|
* Icon at the end of the option
|
|
19
18
|
*/
|
|
20
19
|
endIcon?: ReactElement;
|
|
21
|
-
/**
|
|
22
|
-
* Props passed to show the tippy on option
|
|
23
|
-
*/
|
|
24
|
-
tooltipProps?: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
|
|
25
20
|
}
|
|
26
21
|
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
|
27
22
|
declare module 'react-select/base' {
|
|
@@ -131,6 +126,8 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
131
126
|
* @default false
|
|
132
127
|
*/
|
|
133
128
|
fullWidth?: boolean;
|
|
129
|
+
isCreatableSingleSelect?: boolean;
|
|
130
|
+
menuIsOpen?: boolean;
|
|
134
131
|
/**
|
|
135
132
|
* If truthy, would show generic section error state as no options message
|
|
136
133
|
*/
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -50,17 +50,4 @@ export declare const getIsManualApprovalSpecific: (userApprovalConfig?: Pick<Use
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
52
52
|
export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
53
|
-
/**
|
|
54
|
-
* Groups an array of objects by a specified key.
|
|
55
|
-
*
|
|
56
|
-
* This function takes an array of objects and a key, and groups the objects in the array
|
|
57
|
-
* based on the value of the specified key. If an object does not have the specified key,
|
|
58
|
-
* it will be grouped under the `'UNGROUPED'` key.
|
|
59
|
-
*
|
|
60
|
-
* @param array - The array of objects to be grouped.
|
|
61
|
-
* @param key - The key of the object used to group the array.
|
|
62
|
-
* @returns An object where the keys are the unique values of the specified key in the array,
|
|
63
|
-
* and the values are arrays of objects that share the same key value.
|
|
64
|
-
*/
|
|
65
|
-
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
66
53
|
export {};
|
|
@@ -5,10 +5,4 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
|
|
|
5
5
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
6
6
|
*/
|
|
7
7
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
|
|
8
|
-
export declare const getAppEnvDeploymentConfig: (
|
|
9
|
-
params: AppEnvDeploymentConfigPayloadType;
|
|
10
|
-
payload?: {
|
|
11
|
-
values: string;
|
|
12
|
-
};
|
|
13
|
-
signal?: AbortSignal;
|
|
14
|
-
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
8
|
+
export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
@@ -114,7 +114,6 @@ export interface DraftMetadataDTO {
|
|
|
114
114
|
draftId: number;
|
|
115
115
|
draftVersionId: number;
|
|
116
116
|
draftState: number;
|
|
117
|
-
draftResolvedValue: string;
|
|
118
117
|
approvers: string[];
|
|
119
118
|
canApprove: boolean;
|
|
120
119
|
commentsCount: number;
|
|
@@ -151,40 +150,26 @@ export interface ConfigMapSecretDataType {
|
|
|
151
150
|
export declare enum ConfigResourceType {
|
|
152
151
|
ConfigMap = "ConfigMap",
|
|
153
152
|
Secret = "Secret",
|
|
154
|
-
DeploymentTemplate = "Deployment Template"
|
|
155
|
-
PipelineStrategy = "Pipeline Strategy"
|
|
153
|
+
DeploymentTemplate = "Deployment Template"
|
|
156
154
|
}
|
|
157
155
|
export interface DeploymentTemplateDTO {
|
|
158
156
|
resourceType: ConfigResourceType.DeploymentTemplate;
|
|
159
|
-
data:
|
|
160
|
-
|
|
161
|
-
variableSnapshot: {
|
|
162
|
-
'Deployment Template': Record<string, string>;
|
|
157
|
+
data: {
|
|
158
|
+
[key: string]: any;
|
|
163
159
|
};
|
|
164
|
-
|
|
165
|
-
isAppMetricsEnabled?: true;
|
|
166
|
-
resolvedValue: Record<string, any>;
|
|
160
|
+
deploymentDraftData: ConfigMapSecretDataType | null;
|
|
167
161
|
}
|
|
168
162
|
export interface ConfigMapSecretDataDTO {
|
|
169
163
|
resourceType: Extract<ConfigResourceType, ConfigResourceType.ConfigMap | ConfigResourceType.Secret>;
|
|
170
164
|
data: ConfigMapSecretDataType;
|
|
171
|
-
variableSnapshot: Record<string, Record<string, string>>;
|
|
172
|
-
resolvedValue: string;
|
|
173
|
-
}
|
|
174
|
-
export interface PipelineConfigDataDTO {
|
|
175
|
-
resourceType: ConfigResourceType.PipelineStrategy;
|
|
176
|
-
data: Record<string, any>;
|
|
177
|
-
pipelineTriggerType: string;
|
|
178
|
-
Strategy: string;
|
|
179
165
|
}
|
|
180
166
|
export interface AppEnvDeploymentConfigDTO {
|
|
181
167
|
deploymentTemplate: DeploymentTemplateDTO | null;
|
|
182
168
|
configMapData: ConfigMapSecretDataDTO | null;
|
|
183
169
|
secretsData: ConfigMapSecretDataDTO | null;
|
|
184
|
-
pipelineConfigData?: PipelineConfigDataDTO;
|
|
185
170
|
isAppAdmin: boolean;
|
|
186
171
|
}
|
|
187
|
-
export
|
|
172
|
+
export interface AppEnvDeploymentConfigPayloadType {
|
|
188
173
|
appName: string;
|
|
189
174
|
envName: string;
|
|
190
175
|
configType: AppEnvDeploymentConfigType;
|
|
@@ -193,18 +178,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
|
193
178
|
resourceType?: ConfigResourceType;
|
|
194
179
|
resourceId?: number;
|
|
195
180
|
resourceName?: string;
|
|
196
|
-
|
|
197
|
-
} | {
|
|
198
|
-
appName: string;
|
|
199
|
-
envName: string;
|
|
200
|
-
configArea: 'ResolveData';
|
|
201
|
-
} | {
|
|
202
|
-
appName: string;
|
|
203
|
-
envName: string;
|
|
204
|
-
pipelineId: number;
|
|
205
|
-
configArea: 'CdRollback' | 'DeploymentHistory';
|
|
206
|
-
wfrId: number;
|
|
207
|
-
};
|
|
181
|
+
}
|
|
208
182
|
export declare enum TemplateListType {
|
|
209
183
|
DefaultVersions = 1,
|
|
210
184
|
PublishedOnEnvironments = 2,
|
|
@@ -238,7 +212,6 @@ export declare enum EnvResourceType {
|
|
|
238
212
|
ConfigMap = "configmap",
|
|
239
213
|
Secret = "secrets",
|
|
240
214
|
DeploymentTemplate = "deployment-template",
|
|
241
|
-
Manifest = "manifest"
|
|
242
|
-
PipelineStrategy = "pipeline-strategy"
|
|
215
|
+
Manifest = "manifest"
|
|
243
216
|
}
|
|
244
217
|
export {};
|