@devtron-labs/devtron-fe-common-lib 1.15.0-pre-5 → 1.15.0-pre-7
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-D9cIofgi.js → @code-editor-BbX4m8mI.js} +5085 -4986
- package/dist/{@common-rjsf-Diu4Pxc1.js → @common-rjsf-D22-WQmw.js} +2 -2
- package/dist/{@framer-motion-C5Xvz7Lq.js → @framer-motion-Dchiw-Rb.js} +1 -1
- package/dist/{@react-dates-B6q1sdbJ.js → @react-dates-D5kydtW-.js} +14 -14
- package/dist/{@react-select-LSvqtVJj.js → @react-select-Cmser7OI.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BpJty95h.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
- package/dist/{@vendor-DC3JvJ9U.js → @vendor-STJ9h0oI.js} +9657 -9667
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +2 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -18
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +18 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +7 -0
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
- package/dist/Shared/Components/Popover/types.d.ts +5 -0
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +7 -2
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +7 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +713 -717
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SelectPickerOptionType } from '@Shared/Components/SelectPicker';
|
2
|
-
import { History } from '../types';
|
2
|
+
import { DeploymentHistorySingleValue, 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,3 +20,4 @@ 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 {
|
2
|
+
import { DeploymentHistoryDetail, DeploymentHistoryResult, DeploymentStatusDetailsResponse, 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,12 +18,6 @@ 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>;
|
26
21
|
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>;
|
28
22
|
export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, "result">>;
|
29
23
|
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, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
3
|
+
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, TooltipProps, 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,14 +408,12 @@ 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
|
-
}
|
414
411
|
export interface DeploymentHistorySingleValue {
|
415
412
|
displayName: string;
|
416
413
|
value: string;
|
417
414
|
variableSnapshot?: object;
|
418
415
|
resolvedValue?: string;
|
416
|
+
tooltipContent?: TooltipProps['content'];
|
419
417
|
}
|
420
418
|
export interface DeploymentHistoryDetail {
|
421
419
|
componentName?: string;
|
@@ -428,20 +426,6 @@ export interface DeploymentTemplateHistoryType {
|
|
428
426
|
previousConfigAvailable: boolean;
|
429
427
|
rootClassName?: string;
|
430
428
|
}
|
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
|
-
}
|
445
429
|
export interface DeploymentHistorySidebarType {
|
446
430
|
deploymentHistoryList: DeploymentTemplateList[];
|
447
431
|
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
2
|
+
import { RadioGroupItemProps, RadioGroupProps } from '../../../Common/Types';
|
2
3
|
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, TemplateListDTO } from '../../Services';
|
3
4
|
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
4
5
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
5
6
|
import { CollapseProps } from '../Collapse';
|
6
7
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
7
|
-
import { SelectPickerProps } from '../SelectPicker';
|
8
|
+
import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
8
9
|
export declare enum DeploymentConfigDiffState {
|
9
10
|
NO_DIFF = "noDiff",
|
10
11
|
HAS_DIFF = "hasDiff",
|
@@ -26,6 +27,15 @@ export interface DeploymentConfigListItem {
|
|
26
27
|
singleView?: boolean;
|
27
28
|
groupHeader?: string;
|
28
29
|
}
|
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
|
+
}
|
29
39
|
export type DeploymentConfigDiffSelectPickerProps = {
|
30
40
|
type: 'string';
|
31
41
|
id: string;
|
@@ -36,6 +46,12 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
36
46
|
id: string;
|
37
47
|
text?: never;
|
38
48
|
selectPickerProps: SelectPickerProps;
|
49
|
+
} | {
|
50
|
+
type: 'radio-group';
|
51
|
+
id: string;
|
52
|
+
text?: never;
|
53
|
+
radioSelectConfig: DeploymentConfigDiffRadioSelectConfig;
|
54
|
+
selectPickerProps?: never;
|
39
55
|
};
|
40
56
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'href' | 'title' | 'onClick'> {
|
41
57
|
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
@@ -115,3 +131,4 @@ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView e
|
|
115
131
|
isManifestView?: IsManifestView;
|
116
132
|
convertVariables?: boolean;
|
117
133
|
};
|
134
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { UsePopoverProps } from '../Popover';
|
2
|
+
import { DeploymentConfigDiffRadioSelectConfig } from './DeploymentConfigDiff.types';
|
3
|
+
declare const DeploymentConfigDiffRadioSelect: ({ radioSelectConfig, position, }: {
|
4
|
+
radioSelectConfig: DeploymentConfigDiffRadioSelectConfig;
|
5
|
+
position?: UsePopoverProps["position"];
|
6
|
+
}) => JSX.Element;
|
7
|
+
export default DeploymentConfigDiffRadioSelect;
|
@@ -2,3 +2,4 @@ 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';
|
@@ -50,6 +50,11 @@ 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';
|
53
58
|
}
|
54
59
|
/**
|
55
60
|
* 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, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
|
2
|
+
export declare const usePopover: ({ id, position, alignment, width, variant, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { KeyValueTableData } from '../Components';
|
2
|
-
import { TargetPlatformsDTO } from '../types';
|
2
|
+
import { DeploymentStrategyType, TargetPlatformsDTO } from '../types';
|
3
3
|
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
4
4
|
import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
|
5
5
|
interface WebhookDataType {
|
@@ -237,6 +237,9 @@ 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;
|
240
243
|
}
|
241
244
|
export interface AppEnvDeploymentConfigDTO {
|
242
245
|
deploymentTemplate: DeploymentTemplateDTO | null;
|
@@ -248,6 +251,8 @@ export interface AppEnvDeploymentConfigDTO {
|
|
248
251
|
export type AppEnvDeploymentConfigPayloadType = {
|
249
252
|
appName: string;
|
250
253
|
envName: string;
|
254
|
+
strategy?: DeploymentStrategyType;
|
255
|
+
} & ({
|
251
256
|
configType: AppEnvDeploymentConfigType;
|
252
257
|
wfrId?: number;
|
253
258
|
pipelineId?: number;
|
@@ -261,7 +266,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
261
266
|
pipelineId: number;
|
262
267
|
configArea: 'CdRollback' | 'DeploymentHistory';
|
263
268
|
wfrId: number;
|
264
|
-
};
|
269
|
+
});
|
265
270
|
export declare enum TemplateListType {
|
266
271
|
DefaultVersions = 1,
|
267
272
|
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, IconBaseColorType } from './types';
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
|
4
4
|
export declare const ARTIFACT_STATUS: {
|
5
5
|
PROGRESSING: string;
|
6
6
|
DEGRADED: string;
|
@@ -429,4 +429,5 @@ 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>;
|
432
433
|
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 } from '../Common/Types';
|
4
|
+
import { APIOptions, ApprovalConfigDataType, Strategy } from '../Common/Types';
|
5
5
|
import { ReleaseMode } from '../Pages/index';
|
6
|
-
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
6
|
+
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerError, 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 {
|
@@ -1097,4 +1097,9 @@ export interface IntelligenceConfig {
|
|
1097
1097
|
export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
|
1098
1098
|
export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
|
1099
1099
|
export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
|
1100
|
+
export interface PipelineDeploymentStrategy {
|
1101
|
+
pipelineId: number;
|
1102
|
+
strategies: Strategy[];
|
1103
|
+
error: ServerError;
|
1104
|
+
}
|
1100
1105
|
export {};
|