@devtron-labs/devtron-fe-common-lib 1.4.7 → 1.4.8-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-BJdV2GHk.js → @code-editor-DpUzvb5Q.js} +4276 -4241
- package/dist/{@common-rjsf-DQ7z0uUm.js → @common-rjsf-DzlAHG__.js} +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +5 -4
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -5
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +1 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
- package/dist/index.js +563 -562
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-CwAQS8iU.js";
|
|
2
2
|
import E, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
5
|
-
import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-
|
5
|
+
import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-DpUzvb5Q.js";
|
6
6
|
import M, { components as O } from "react-select";
|
7
7
|
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as P, errorId as V, englishStringTranslator as q, TranslatableString as K, titleId as Y, canExpand as z, deepEquals as G } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
@@ -6,4 +6,4 @@ export declare const uploadCDPipelineFile: ({ file, appId, envId, allowedExtensi
|
|
6
6
|
envId: number;
|
7
7
|
abortControllerRef?: MutableRefObject<AbortController>;
|
8
8
|
}) => Promise<UploadFileDTO>;
|
9
|
-
export declare const triggerCDNode: ({ pipelineId, ciArtifactId, appId, stageType, deploymentWithConfig, wfrId, runtimeParamsPayload, abortControllerRef, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
|
9
|
+
export declare const triggerCDNode: ({ pipelineId, ciArtifactId, appId, stageType, deploymentWithConfig, wfrId, runtimeParamsPayload, abortControllerRef, isRollbackTrigger, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
|
@@ -106,9 +106,11 @@ export interface TriggerCDNodeServiceProps extends Pick<APIOptions, 'abortContro
|
|
106
106
|
* Would be available only case of PRE/POST CD
|
107
107
|
*/
|
108
108
|
runtimeParamsPayload?: RuntimeParamsTriggerPayloadType;
|
109
|
+
isRollbackTrigger?: boolean;
|
109
110
|
}
|
110
111
|
export interface TriggerCDPipelinePayloadType extends Pick<TriggerCDNodeServiceProps, 'pipelineId' | 'appId' | 'ciArtifactId' | 'runtimeParamsPayload' | 'deploymentWithConfig'> {
|
111
112
|
cdWorkflowType: (typeof STAGE_MAP)[keyof typeof STAGE_MAP];
|
113
|
+
isRollbackDeployment: boolean;
|
112
114
|
wfrIdForDeploymentWithSpecificTrigger?: number;
|
113
115
|
}
|
114
116
|
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DeploymentHistoryDiffDetailedProps } from './types';
|
2
|
-
export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments: initialPipelineDeployments, wfrId,
|
2
|
+
export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments: initialPipelineDeployments, wfrId, urlFilters, convertVariables, setConvertVariables, triggerHistory: initialTriggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
|
@@ -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, codeEditorKey, }: DeploymentTemplateHistoryType) => JSX.Element;
|
3
3
|
export default DeploymentHistoryDiffView;
|
@@ -1,7 +1,11 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
2
|
import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
|
3
3
|
import { EnvResourceType } from '../../../Services';
|
4
|
+
import { UseUrlFiltersReturnType } from '../../../../Common/Hooks';
|
4
5
|
import { History, HistoryLogsProps } from '../types';
|
6
|
+
export interface DeploymentHistoryConfigDiffQueryParams {
|
7
|
+
compareWfrId: number;
|
8
|
+
}
|
5
9
|
export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
|
6
10
|
appName: string;
|
7
11
|
envName: string;
|
@@ -12,14 +16,11 @@ export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryL
|
|
12
16
|
}
|
13
17
|
export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'triggerHistory'>> & {
|
14
18
|
pipelineDeployments: History[];
|
15
|
-
previousWfrId: number;
|
16
19
|
convertVariables: boolean;
|
17
20
|
setConvertVariables: Dispatch<SetStateAction<boolean>>;
|
18
21
|
isCompareDeploymentConfigNotAvailable?: boolean;
|
22
|
+
urlFilters: UseUrlFiltersReturnType<string, DeploymentHistoryConfigDiffQueryParams>;
|
19
23
|
};
|
20
|
-
export interface DeploymentHistoryConfigDiffQueryParams {
|
21
|
-
compareWfrId: number;
|
22
|
-
}
|
23
24
|
export interface DeploymentHistoryConfigDiffRouteParams {
|
24
25
|
appId: string;
|
25
26
|
envId: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CSSProperties, ReactElement } from 'react';
|
2
2
|
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
3
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable
|
3
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
5
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
6
6
|
export declare enum HistoryComponentType {
|
@@ -394,10 +394,6 @@ export interface DeploymentTemplateHistoryType {
|
|
394
394
|
isDeleteDraft?: boolean;
|
395
395
|
rootClassName?: string;
|
396
396
|
codeEditorKey?: React.Key;
|
397
|
-
sortingConfig?: {
|
398
|
-
sortBy: string;
|
399
|
-
sortOrder: SortingOrder;
|
400
|
-
};
|
401
397
|
}
|
402
398
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
403
399
|
result?: DeploymentHistoryDetail;
|
@@ -4,3 +4,4 @@ export declare const diffStateTextMap: Record<DeploymentConfigDiffState, string>
|
|
4
4
|
export declare const diffStateIconMap: Record<DeploymentConfigDiffState, FunctionComponent<SVGProps<SVGSVGElement>>>;
|
5
5
|
export declare const diffStateTooltipTextMap: Record<DeploymentConfigDiffState, string>;
|
6
6
|
export declare const diffStateTextColorMap: Record<DeploymentConfigDiffState, `c${string}`>;
|
7
|
+
export declare const DEPLOYMENT_CONFIG_DIFF_SORT_KEY = "sort-config";
|
@@ -103,11 +103,13 @@ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView e
|
|
103
103
|
compareList: ManifestTemplateDTO;
|
104
104
|
compareToTemplateOptions?: never;
|
105
105
|
compareWithTemplateOptions?: never;
|
106
|
+
sortingConfig?: never;
|
106
107
|
} : {
|
107
108
|
currentList: AppEnvDeploymentConfigDTO;
|
108
109
|
compareList: AppEnvDeploymentConfigDTO;
|
109
110
|
compareToTemplateOptions?: TemplateListDTO[];
|
110
111
|
compareWithTemplateOptions?: TemplateListDTO[];
|
112
|
+
sortingConfig?: Pick<DeploymentConfigDiffProps['sortingConfig'], 'sortBy' | 'sortOrder'>;
|
111
113
|
}) & {
|
112
114
|
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
113
115
|
isManifestView?: IsManifestView;
|
@@ -29,7 +29,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
29
29
|
*
|
30
30
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
31
31
|
*/
|
32
|
-
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
32
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, sortingConfig, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
33
33
|
configList: DeploymentConfigDiffProps["configList"];
|
34
34
|
navList: DeploymentConfigDiffProps["navList"];
|
35
35
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|