@devtron-labs/devtron-fe-common-lib 1.14.1 → 1.14.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.
Files changed (48) hide show
  1. package/dist/{@code-editor-Da2XaRcI.js → @code-editor-CVEmKqGD.js} +3505 -3441
  2. package/dist/{@common-rjsf-CK-nXKwn.js → @common-rjsf-C9V3H0_L.js} +2 -2
  3. package/dist/{@framer-motion-DyOLEeMN.js → @framer-motion-eB9Rj-_8.js} +1 -1
  4. package/dist/{@react-dates-B7d8RWU9.js → @react-dates-CJpoumtu.js} +14 -14
  5. package/dist/{@react-select-Coo19Q6a.js → @react-select-CUbAbK6L.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BPjPJDIR.js → @react-virtualized-sticky-tree-Ckb5S1RC.js} +1 -1
  7. package/dist/{@vendor-D9q4wrnL.js → @vendor-4cEd9dja.js} +9992 -10002
  8. package/dist/Common/Constants.d.ts +1 -0
  9. package/dist/Common/Types.d.ts +3 -2
  10. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
  11. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -1
  12. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -2
  13. package/dist/Shared/Components/Icon/Icon.d.ts +21 -0
  14. package/dist/Shared/Components/Icon/types.d.ts +2 -2
  15. package/dist/Shared/Components/LoadingCard.d.ts +5 -0
  16. package/dist/Shared/Components/StatusComponent/AppStatus.d.ts +1 -1
  17. package/dist/Shared/Components/index.d.ts +1 -0
  18. package/dist/Shared/types.d.ts +3 -0
  19. package/dist/assets/@code-editor.css +1 -1
  20. package/dist/assets/ic-arrows-clockwise.5858ba0a.svg +3 -0
  21. package/dist/assets/ic-checkbox-selected-error.185fc40c.svg +4 -0
  22. package/dist/assets/{ic-hibernate.f75c1e70.svg → ic-checkbox-selected-error.b40237bc.svg} +3 -2
  23. package/dist/assets/ic-fast-forward.8d1a414b.svg +4 -0
  24. package/dist/assets/ic-filter-applied.56f397cb.svg +4 -0
  25. package/dist/assets/ic-filter.d6f03b78.svg +3 -0
  26. package/dist/assets/ic-flask.d0624c30.svg +3 -0
  27. package/dist/assets/ic-hibernate-circle.7c32c56e.svg +3 -0
  28. package/dist/assets/ic-hibernate.263ffcea.svg +19 -0
  29. package/dist/assets/ic-lego.1d2c5e1d.svg +3 -0
  30. package/dist/assets/ic-magnifying-glass.cf47bce0.svg +3 -0
  31. package/dist/assets/ic-mechanical-operation.04a318d6.svg +17 -0
  32. package/dist/assets/ic-more-vertical.6b4cc903.svg +3 -0
  33. package/dist/assets/ic-play-outline.a4f09bf9.svg +3 -0
  34. package/dist/assets/ic-rocket-gear.f1e30f8a.svg +3 -0
  35. package/dist/assets/ic-strategy-blue-green-color.0b348d03.svg +6 -0
  36. package/dist/assets/ic-strategy-blue-green.4e57a068.svg +3 -0
  37. package/dist/assets/ic-strategy-canary-color.db010ee7.svg +5 -0
  38. package/dist/assets/ic-strategy-canary.aa75f27f.svg +3 -0
  39. package/dist/assets/ic-strategy-recreate-color.187facd4.svg +4 -0
  40. package/dist/assets/ic-strategy-recreate.77b19a53.svg +3 -0
  41. package/dist/assets/ic-strategy-rolling-color.f9b3c0bb.svg +6 -0
  42. package/dist/assets/ic-strategy-rolling.ba8a30f7.svg +3 -0
  43. package/dist/assets/ic-sun.47c14f53.svg +3 -0
  44. package/dist/assets/ic-traffic-signal.f23a1086.svg +3 -0
  45. package/dist/index.d.ts +6 -0
  46. package/dist/index.js +577 -576
  47. package/package.json +1 -1
  48. package/dist/assets/ic-mechanical-operation.3c3f4672.svg +0 -76
@@ -300,6 +300,7 @@ export declare const API_STATUS_CODES: {
300
300
  EXPECTATION_FAILED: number;
301
301
  UNPROCESSABLE_ENTITY: number;
302
302
  LOCKED: number;
303
+ FAILED_DEPENDENCY: number;
303
304
  };
304
305
  export declare enum SERVER_MODE {
305
306
  EA_ONLY = "EA_ONLY",
@@ -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, ButtonProps, ComponentLayoutType, StatusType } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType, 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
@@ -75,6 +75,7 @@ export interface CheckboxProps {
75
75
  onClick?: (event: any) => void;
76
76
  id?: string;
77
77
  dataTestId?: string;
78
+ error?: boolean;
78
79
  children?: ReactNode;
79
80
  }
80
81
  export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
@@ -712,7 +713,7 @@ export interface AppEnvironment {
712
713
  ciArtifactId?: number;
713
714
  }
714
715
  export interface Strategy {
715
- deploymentTemplate: string;
716
+ deploymentTemplate: DeploymentStrategyType;
716
717
  config: any;
717
718
  default?: boolean;
718
719
  }
@@ -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, skipIfHibernated, isRollbackTrigger, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
9
+ export declare const triggerCDNode: ({ pipelineId, ciArtifactId, appId, stageType, deploymentWithConfig, wfrId, runtimeParamsPayload, abortControllerRef, skipIfHibernated, isRollbackTrigger, strategy, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
@@ -1,7 +1,7 @@
1
1
  import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
2
2
  import { APIOptions, DeploymentAppTypes, DeploymentNodeType } from '../../../../../Common/Types';
3
3
  import { DeploymentStrategy } from '../../../../../Shared/Components';
4
- import { EnvListMinDTO, RuntimeParamsTriggerPayloadType } from '../../../../../Shared/types';
4
+ import { DeploymentStrategyType, EnvListMinDTO, RuntimeParamsTriggerPayloadType } from '../../../../../Shared/types';
5
5
  import { STAGE_MAP } from '../../../../index';
6
6
  interface ConfigSecretType {
7
7
  label: string;
@@ -108,6 +108,7 @@ export interface TriggerCDNodeServiceProps extends Pick<APIOptions, 'abortContro
108
108
  */
109
109
  runtimeParamsPayload?: RuntimeParamsTriggerPayloadType;
110
110
  isRollbackTrigger?: boolean;
111
+ strategy?: DeploymentStrategyType;
111
112
  }
112
113
  export interface TriggerCDPipelinePayloadType extends Pick<TriggerCDNodeServiceProps, 'pipelineId' | 'appId' | 'ciArtifactId' | 'runtimeParamsPayload' | 'deploymentWithConfig'>, Partial<Pick<TriggerCDNodeServiceProps, 'skipIfHibernated'>> {
113
114
  cdWorkflowType: (typeof STAGE_MAP)[keyof typeof STAGE_MAP];
@@ -2,7 +2,7 @@ import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react'
2
2
  import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
3
3
  import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, UserApprovalMetadataType, useScrollable } from '../../../Common';
4
4
  import { DeploymentStageType } from '../../constants';
5
- import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
5
+ import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
6
6
  import { TargetPlatformBadgeListProps } from '../TargetPlatforms';
7
7
  export declare enum HistoryComponentType {
8
8
  CI = "CI",
@@ -593,7 +593,6 @@ export interface DeploymentHistory {
593
593
  ci_artifact_id?: number;
594
594
  runSource?: RunSourceType;
595
595
  }
596
- type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE_GREEN';
597
596
  export interface DeploymentStrategy {
598
597
  deploymentTemplate: DeploymentStrategyType;
599
598
  config: any;
@@ -9,6 +9,7 @@ export declare const iconMap: {
9
9
  'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
10
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
11
  'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
+ 'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
13
  'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
14
  'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
15
  'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -63,10 +64,14 @@ export declare const iconMap: {
63
64
  'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
65
  'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
66
  'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
+ 'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
68
  'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
69
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
70
  'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
71
  'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
+ 'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
+ 'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
74
+ 'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
75
  'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
76
  'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
77
  'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -86,6 +91,7 @@ export declare const iconMap: {
86
91
  'ic-helm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
92
  'ic-help-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
88
93
  'ic-help-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
+ 'ic-hibernate-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
89
95
  'ic-hibernate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
90
96
  'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
91
97
  'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -98,10 +104,12 @@ export declare const iconMap: {
98
104
  'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
99
105
  'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
100
106
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
107
+ 'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
101
108
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
102
109
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
103
110
  'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
104
111
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
112
+ 'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
105
113
  'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
106
114
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
107
115
  'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -112,6 +120,7 @@ export declare const iconMap: {
112
120
  'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
113
121
  'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
114
122
  'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
123
+ 'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
115
124
  'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
125
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
117
126
  'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -122,8 +131,10 @@ export declare const iconMap: {
122
131
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
123
132
  'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
124
133
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
134
+ 'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
125
135
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
126
136
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
+ 'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
127
138
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
128
139
  'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
129
140
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -135,7 +146,16 @@ export declare const iconMap: {
135
146
  'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
136
147
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
148
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
149
+ 'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
150
+ 'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
151
+ 'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
152
+ 'ic-strategy-canary': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
153
+ 'ic-strategy-recreate-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
154
+ 'ic-strategy-recreate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
155
+ 'ic-strategy-rolling-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
156
+ 'ic-strategy-rolling': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
138
157
  'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
158
+ 'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
139
159
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
140
160
  'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
141
161
  'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -145,6 +165,7 @@ export declare const iconMap: {
145
165
  'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
146
166
  'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
147
167
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
168
+ 'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
148
169
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
149
170
  'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
150
171
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,6 +1,6 @@
1
1
  import { FC, SVGProps } from 'react';
2
- import { TooltipProps } from '@Common/Tooltip/types';
3
- import { IconBaseColorType, IconBaseSizeType } from '../../index';
2
+ import { TooltipProps } from '../../../Common/Tooltip';
3
+ import { IconBaseColorType, IconBaseSizeType } from '../../types';
4
4
  type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
5
5
  export interface IconBaseProps {
6
6
  /**
@@ -0,0 +1,5 @@
1
+ interface LoadingCardType {
2
+ wider?: boolean;
3
+ }
4
+ declare const LoadingCard: ({ wider }: LoadingCardType) => JSX.Element;
5
+ export default LoadingCard;
@@ -1,2 +1,2 @@
1
1
  import { AppStatusProps } from './types';
2
- export declare const AppStatus: ({ status, isJobView, isVirtualEnv, ...restProps }: AppStatusProps) => JSX.Element;
2
+ export declare const AppStatus: ({ status, isJobView, isVirtualEnv, hideMessage, ...restProps }: AppStatusProps) => JSX.Element;
@@ -56,6 +56,7 @@ export * from './InfoIconTippy';
56
56
  export * from './InvalidYAMLTippy';
57
57
  export * from './KeyValueTable';
58
58
  export * from './License';
59
+ export { default as LoadingCard } from './LoadingCard';
59
60
  export * from './LoginBanner';
60
61
  export * from './MaterialHistory';
61
62
  export * from './ModalSidebarPanel';
@@ -1069,4 +1069,7 @@ export interface IntelligenceConfig {
1069
1069
  prompt: string;
1070
1070
  analyticsCategory: string;
1071
1071
  }
1072
+ export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
1073
+ export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
1074
+ export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
1072
1075
  export {};