@devtron-labs/devtron-fe-common-lib 0.5.4 → 0.5.6
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/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +2 -3
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +5 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-6BHo_CRn.js → cssMode-KbOKA6H7.js} +1 -1
- package/dist/{freemarker2-Dzz9ws0y.js → freemarker2-CfbPUcck.js} +1 -1
- package/dist/{handlebars-MDasGksA.js → handlebars-Co5tHv0O.js} +1 -1
- package/dist/{html-qDVdfzSN.js → html-C6Y0MTrO.js} +1 -1
- package/dist/{htmlMode-CeklQsiF.js → htmlMode-DMMVRUZB.js} +1 -1
- package/dist/{index-BtKxK96B.js → index-DCUBQ-Ek.js} +2742 -2708
- package/dist/index.js +1 -1
- package/dist/{javascript-C9aehFdI.js → javascript-B_Xva4Qg.js} +1 -1
- package/dist/{jsonMode-Dqk24uM1.js → jsonMode-BP9uMA3X.js} +1 -1
- package/dist/{liquid-Cbe7WowG.js → liquid-D5uQ-xxG.js} +1 -1
- package/dist/{mdx-CbDOldJq.js → mdx-BwQTI7NW.js} +1 -1
- package/dist/{python-DNolSeiL.js → python-Cpo8kLbX.js} +1 -1
- package/dist/{razor-BgRtYaTC.js → razor-PKERZEmk.js} +1 -1
- package/dist/{tsMode-CLj_7vwT.js → tsMode-dOmWhsbf.js} +1 -1
- package/dist/{typescript-m9ovHbNT.js → typescript-BuDF842Y.js} +1 -1
- package/dist/{xml-CXilBU63.js → xml-CkUUpPN0.js} +1 -1
- package/dist/{yaml-aq7qiD38.js → yaml-DDr-nddn.js} +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
|
2
|
-
export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView,
|
|
2
|
+
export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, resourceId, renderRunSource, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentHistoryDiffDetailedProps } from './types';
|
|
2
|
-
export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables,
|
|
2
|
+
export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, triggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { History } from '../types';
|
|
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
|
4
4
|
export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string, hideDiffState: boolean) => JSX.Element;
|
|
5
5
|
export declare const renderPipelineDeploymentStatusIcon: (status: string) => JSX.Element;
|
|
6
|
-
export declare const renderPipelineDeploymentOptionDescription: ({ stage, triggeredBy, triggeredByEmail, artifact, renderRunSource, resourceId, runSource, }: Pick<History, "triggeredBy" | "triggeredByEmail" | "artifact" | "stage"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId"
|
|
6
|
+
export declare const renderPipelineDeploymentOptionDescription: ({ stage, triggeredBy, triggeredByEmail, artifact, renderRunSource, resourceId, runSource, }: Pick<History, "triggeredBy" | "triggeredByEmail" | "artifact" | "stage" | "runSource"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId">) => JSX.Element;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
|
|
3
3
|
import { EnvResourceType } from '../../../Services';
|
|
4
|
-
import { History, HistoryLogsProps
|
|
4
|
+
import { History, HistoryLogsProps } from '../types';
|
|
5
5
|
export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
|
|
6
6
|
appName: string;
|
|
7
7
|
envName: string;
|
|
8
8
|
pipelineId: number;
|
|
9
9
|
wfrId: number;
|
|
10
|
-
runSource: RunSourceType;
|
|
11
10
|
triggerHistory: Map<number, History>;
|
|
12
11
|
setFullScreenView: (fullscreen: boolean) => void;
|
|
13
12
|
}
|
|
14
|
-
export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | '
|
|
13
|
+
export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'triggerHistory'>> & {
|
|
15
14
|
pipelineDeployments: History[];
|
|
16
15
|
previousWfrId: number;
|
|
17
16
|
convertVariables: boolean;
|
|
@@ -8,7 +8,7 @@ export declare const getPipelineDeploymentsWfrIds: ({ pipelineDeployments, wfrId
|
|
|
8
8
|
currentWfrId: number;
|
|
9
9
|
previousWfrId: number;
|
|
10
10
|
};
|
|
11
|
-
export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId,
|
|
11
|
+
export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId, triggerHistory, }: Required<Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId" | "triggerHistory">> & {
|
|
12
12
|
pipelineDeployments: History[];
|
|
13
13
|
wfrId: number;
|
|
14
14
|
}) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType } from '../../Services';
|
|
2
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, TemplateListDTO } from '../../Services';
|
|
3
3
|
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
|
4
4
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
5
5
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
@@ -101,9 +101,13 @@ export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends
|
|
|
101
101
|
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
102
102
|
currentList: ManifestTemplateDTO;
|
|
103
103
|
compareList: ManifestTemplateDTO;
|
|
104
|
+
compareToTemplateOptions?: never;
|
|
105
|
+
compareWithTemplateOptions?: never;
|
|
104
106
|
} : {
|
|
105
107
|
currentList: AppEnvDeploymentConfigDTO;
|
|
106
108
|
compareList: AppEnvDeploymentConfigDTO;
|
|
109
|
+
compareToTemplateOptions?: TemplateListDTO[];
|
|
110
|
+
compareWithTemplateOptions?: TemplateListDTO[];
|
|
107
111
|
}) & {
|
|
108
112
|
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
109
113
|
isManifestView?: IsManifestView;
|
|
@@ -28,7 +28,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
28
28
|
*
|
|
29
29
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
30
30
|
*/
|
|
31
|
-
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
31
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
32
32
|
configList: DeploymentConfigDiffProps["configList"];
|
|
33
33
|
navList: DeploymentConfigDiffProps["navList"];
|
|
34
34
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|