@devtron-labs/devtron-fe-common-lib 1.5.11-beta-4 → 1.5.12-beta-1

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 (73) hide show
  1. package/dist/@code-editor-BSq_PP4E.js +41922 -0
  2. package/dist/{@common-rjsf-CoxlqMVo.js → @common-rjsf-CTlKDfkP.js} +2 -2
  3. package/dist/{@framer-motion-CbfcgbXI.js → @framer-motion-CpA7HTl-.js} +70 -70
  4. package/dist/{@react-dates-CHLhA4kl.js → @react-dates-CaRoxjcN.js} +14 -14
  5. package/dist/{@react-select-CgLj7C5f.js → @react-select-D4CIuOAx.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Cj8etBAu.js → @react-virtualized-sticky-tree-CZZtnJ_O.js} +1 -1
  7. package/dist/@vendor-CKSERKp7.js +42519 -0
  8. package/dist/Common/AppStatus/utils.d.ts +0 -1
  9. package/dist/Common/ClipboardButton/index.d.ts +1 -0
  10. package/dist/Common/CodeEditor/CodeEditor.components.d.ts +11 -0
  11. package/dist/Common/CodeEditor/CodeEditor.constants.d.ts +7 -0
  12. package/dist/Common/CodeEditor/CodeEditor.context.d.ts +3 -0
  13. package/dist/Common/CodeEditor/CodeEditor.d.ts +13 -3
  14. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +3 -47
  15. package/dist/Common/CodeEditor/CodeEditor.theme.d.ts +1 -0
  16. package/dist/Common/CodeEditor/CodeEditorRenderer.d.ts +2 -0
  17. package/dist/Common/CodeEditor/Extensions/findAndReplace.d.ts +2 -0
  18. package/dist/Common/CodeEditor/Extensions/index.d.ts +3 -0
  19. package/dist/Common/CodeEditor/Extensions/readOnlyTooltip.d.ts +6 -0
  20. package/dist/Common/CodeEditor/Extensions/yamlParseLinter.d.ts +3 -0
  21. package/dist/Common/CodeEditor/index.d.ts +1 -1
  22. package/dist/Common/CodeEditor/types.d.ts +83 -76
  23. package/dist/Common/CodeEditor/utils.d.ts +13 -3
  24. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -0
  25. package/dist/Common/Dialogs/DeleteDialog.d.ts +4 -0
  26. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +4 -0
  27. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -1
  28. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  29. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  30. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +3 -1
  31. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -38
  32. package/dist/Shared/Components/CICDHistory/index.d.ts +1 -2
  33. package/dist/Shared/Components/CICDHistory/types.d.ts +25 -90
  34. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -9
  35. package/dist/Shared/Components/Collapse/Collapse.d.ts +0 -1
  36. package/dist/Shared/Components/ConfirmationModal/CannotDeleteModal.d.ts +2 -0
  37. package/dist/Shared/Components/ConfirmationModal/DeleteConfirmationModal.d.ts +3 -0
  38. package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +2 -0
  39. package/dist/Shared/Components/ConfirmationModal/index.d.ts +3 -0
  40. package/dist/Shared/Components/ConfirmationModal/types.d.ts +20 -1
  41. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  42. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +1 -3
  43. package/dist/Shared/Helpers.d.ts +1 -3
  44. package/dist/Shared/constants.d.ts +25 -0
  45. package/dist/Shared/types.d.ts +8 -11
  46. package/dist/assets/@code-editor.css +1 -1
  47. package/dist/assets/ic-calendar.984accc5.svg +19 -0
  48. package/dist/assets/ic-match-case.702186fe.svg +3 -0
  49. package/dist/assets/ic-match-word.991dea5a.svg +3 -0
  50. package/dist/assets/ic-person.f78738ac.svg +22 -0
  51. package/dist/assets/{ic-pulsate-status.2ca548fd.svg → ic-pulsate-status.cc755b3f.svg} +1 -0
  52. package/dist/assets/ic-replace-all-text.7ebbab01.svg +3 -0
  53. package/dist/assets/ic-replace-text.5de817d2.svg +3 -0
  54. package/dist/index.js +555 -565
  55. package/package.json +14 -7
  56. package/dist/@code-editor-BKysRe8x.js +0 -23255
  57. package/dist/@monaco-editor-CVagbUeH.js +0 -138960
  58. package/dist/@vendor-ROKJESOw.js +0 -22734
  59. package/dist/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.d.ts +0 -3
  60. package/dist/Shared/Components/CICDHistory/GitTriggerList.d.ts +0 -5
  61. package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +0 -3
  62. package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +0 -3
  63. package/dist/assets/@monaco-editor.css +0 -1
  64. package/dist/assets/codicon.ecfbfe4b.ttf +0 -0
  65. package/dist/assets/ic-aws-codecommit.43f0dd23.svg +0 -26
  66. package/dist/assets/ic-bitbucket.ffe914a0.svg +0 -30
  67. package/dist/assets/ic-calendar.1d9c66d2.svg +0 -19
  68. package/dist/assets/ic-environment.e639b8f3.svg +0 -4
  69. package/dist/assets/ic-git.89f79adf.svg +0 -17
  70. package/dist/assets/ic-github.bb1f1753.svg +0 -3
  71. package/dist/assets/ic-gitlab.de184b7f.svg +0 -31
  72. package/dist/assets/ic-help-filled.4468cdf1.svg +0 -4
  73. package/dist/assets/ic-person.d066bc6d.svg +0 -19
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactElement, ReactNode } from 'react';
1
+ import { CSSProperties, ReactElement } from 'react';
2
2
  import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
3
3
  import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
4
4
  import { DeploymentStageType } from '../../constants';
@@ -67,39 +67,7 @@ export interface TargetConfigType {
67
67
  releaseChannelId?: string;
68
68
  releaseChannelName?: string;
69
69
  }
70
- export declare enum WorkflowExecutionStageType {
71
- WORKFLOW = "workflow",
72
- POD = "pod"
73
- }
74
- export declare enum WorkflowStageStatusType {
75
- NOT_STARTED = "NOT_STARTED",
76
- RUNNING = "RUNNING",
77
- SUCCEEDED = "SUCCEEDED",
78
- FAILED = "FAILED",
79
- ABORTED = "ABORTED",
80
- TIMEOUT = "TIMEOUT",
81
- UNKNOWN = "UNKNOWN"
82
- }
83
- export declare enum WorkflowExecutionStageNameType {
84
- PREPARATION = "Preparation",
85
- EXECUTION = "Execution"
86
- }
87
- interface WorkflowExecutionStageCommonDTO {
88
- status: WorkflowStageStatusType;
89
- stageName: WorkflowExecutionStageNameType;
90
- startTime: string;
91
- endTime: string;
92
- message: string;
93
- }
94
- export interface PodExecutionStageDTO extends WorkflowExecutionStageCommonDTO {
95
- metadata: {
96
- clusterId?: number;
97
- };
98
- }
99
- export interface WorkflowExecutionStagesMapDTO {
100
- workflowExecutionStages: Record<WorkflowExecutionStageType.WORKFLOW, WorkflowExecutionStageCommonDTO[]> & Record<WorkflowExecutionStageType.POD, PodExecutionStageDTO[]>;
101
- }
102
- export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'>, WorkflowExecutionStagesMapDTO {
70
+ export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
103
71
  id: number;
104
72
  name: string;
105
73
  status: string;
@@ -135,27 +103,6 @@ export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'>, Wo
135
103
  runSource?: RunSourceType;
136
104
  targetConfig?: TargetConfigType;
137
105
  }
138
- export interface ExecutionInfoType {
139
- /**
140
- * Triggered is assumed to be true always, so status will be Succeeded
141
- * Extracted from Preparation start time, if there, in case of old data this will be execution start time
142
- * If triggeredOn is not there will not show startTime next to Triggered label but will show other details if possible like commit info, etc.
143
- * and capture error on sentry
144
- */
145
- triggeredOn: string;
146
- /**
147
- * Extracted from startTime from Execution stage (since will work in both old and new format)
148
- * If this is not given then, we won't be showing Execution started field
149
- * If preparation field has failed, then we will be using finishedOn field to show the status
150
- */
151
- executionStartedOn: string;
152
- /**
153
- * Will be the endTime of Execution stage.
154
- */
155
- finishedOn?: string;
156
- currentStatus: Exclude<WorkflowStageStatusType, WorkflowStageStatusType.NOT_STARTED>;
157
- workerDetails: Pick<PodExecutionStageDTO, 'message' | 'status' | 'endTime'> & Pick<PodExecutionStageDTO['metadata'], 'clusterId'>;
158
- }
159
106
  export interface DeploymentHistoryResultObject {
160
107
  cdWorkflows: History[];
161
108
  appReleaseTagNames: string[];
@@ -182,7 +129,7 @@ export interface SidebarType extends RenderRunSourceType {
182
129
  children?: React.ReactNode;
183
130
  resourceId?: number;
184
131
  }
185
- export interface HistorySummaryCardType extends RenderRunSourceType, Pick<History, 'workflowExecutionStages' | 'podName' | 'namespace'> {
132
+ export interface HistorySummaryCardType extends RenderRunSourceType {
186
133
  id: number;
187
134
  status: string;
188
135
  startedOn: string;
@@ -200,7 +147,7 @@ export interface HistorySummaryCardType extends RenderRunSourceType, Pick<Histor
200
147
  */
201
148
  resourceId?: number;
202
149
  }
203
- export interface DeploymentSummaryTooltipCardType {
150
+ export interface SummaryTooltipCardType {
204
151
  status: string;
205
152
  startedOn: string;
206
153
  triggeredBy: number;
@@ -208,8 +155,6 @@ export interface DeploymentSummaryTooltipCardType {
208
155
  ciMaterials: CiMaterial[];
209
156
  gitTriggers: Map<number, GitTriggers>;
210
157
  }
211
- export interface BuildAndTaskSummaryTooltipCardProps extends Pick<History, 'workflowExecutionStages' | 'triggeredByEmail' | 'namespace' | 'podName' | 'stage'>, Pick<HistorySummaryCardType, 'gitTriggers' | 'ciMaterials'> {
212
- }
213
158
  export interface DeploymentTemplateList {
214
159
  id: number;
215
160
  name: string;
@@ -221,7 +166,6 @@ export interface CurrentStatusType {
221
166
  artifact: string;
222
167
  stage: DeploymentStageType;
223
168
  type: HistoryComponentType;
224
- executionInfo: ExecutionInfoType;
225
169
  }
226
170
  export interface StartDetailsType {
227
171
  startedOn: string;
@@ -232,13 +176,16 @@ export interface StartDetailsType {
232
176
  artifact: string;
233
177
  type: HistoryComponentType;
234
178
  environmentName?: string;
179
+ isJobView?: boolean;
180
+ triggerMetadata?: string;
181
+ renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
235
182
  /**
236
183
  * Callback handler for showing the target config
237
184
  */
238
185
  renderTargetConfigInfo?: () => ReactElement;
239
186
  stage: DeploymentStageType;
240
187
  }
241
- export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTargetConfigInfo'>, Pick<History, 'workflowExecutionStages' | 'namespace'> {
188
+ export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTargetConfigInfo'> {
242
189
  status: string;
243
190
  startedOn: string;
244
191
  finishedOn: string;
@@ -255,46 +202,29 @@ export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTarget
255
202
  isJobView?: boolean;
256
203
  workerPodName?: string;
257
204
  triggerMetadata?: string;
258
- renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string, onlyRenderIcon?: boolean) => JSX.Element;
205
+ renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
259
206
  }
260
- export type ProgressingStatusType = {
207
+ export interface ProgressingStatusType {
208
+ status: string;
261
209
  stage: DeploymentStageType;
262
210
  type: HistoryComponentType;
263
- /**
264
- * @default 'In progress''
265
- */
266
- label?: string;
267
- };
268
- export interface CurrentStatusIconProps {
269
- status: string;
270
- executionInfoCurrentStatus: WorkflowStageStatusType;
271
211
  }
272
- export interface WorkerStatusType extends Pick<ExecutionInfoType['workerDetails'], 'clusterId'>, Pick<TriggerDetailsType, 'namespace'> {
212
+ export interface WorkerStatusType {
273
213
  message: string;
274
214
  podStatus: string;
275
215
  stage: DeploymentStageType;
276
216
  finishedOn?: string;
277
217
  workerPodName?: string;
278
- workerMessageContainerClassName?: string;
279
- titleClassName?: string;
280
- viewWorkerPodClassName?: string;
281
- /**
282
- * @default false
283
- */
284
- hideShowMoreMessageButton?: boolean;
285
218
  }
286
- export type FinishedType = {
219
+ export interface FinishedType {
220
+ status: string;
221
+ finishedOn: string;
287
222
  artifact: string;
288
223
  type: HistoryComponentType;
289
- } & ({
224
+ }
225
+ export interface TriggerDetailsStatusIconType {
290
226
  status: string;
291
- finishedOn: string;
292
- executionInfo?: never;
293
- } | {
294
- executionInfo: ExecutionInfoType;
295
- status?: never;
296
- finishedOn?: never;
297
- });
227
+ }
298
228
  export interface SyncStageResourceDetail {
299
229
  id: number;
300
230
  cdWorkflowRunnerId: number;
@@ -325,6 +255,12 @@ export interface DeploymentStatusDetailsType {
325
255
  export interface DeploymentStatusDetailsResponse extends ResponseType {
326
256
  result?: DeploymentStatusDetailsType;
327
257
  }
258
+ export declare const TERMINAL_STATUS_COLOR_CLASS_MAP: {
259
+ [x: string]: string;
260
+ };
261
+ export declare const PROGRESSING_STATUS: {
262
+ [x: string]: string;
263
+ };
328
264
  interface DeploymentStatusDetailRow {
329
265
  icon: string;
330
266
  displayText: string;
@@ -387,7 +323,7 @@ export interface VirtualHistoryArtifactProps {
387
323
  export type CIListItemType = Pick<History, 'promotionApprovalMetadata'> & {
388
324
  userApprovalMetadata?: UserApprovalMetadataType;
389
325
  triggeredBy?: string;
390
- children: ReactNode;
326
+ children: any;
391
327
  appliedFilters?: FilterConditionsListType[];
392
328
  appliedFiltersTimestamp?: string;
393
329
  selectedEnvironmentName?: string;
@@ -487,7 +423,6 @@ export interface DeploymentTemplateHistoryType {
487
423
  baseTemplateConfiguration: DeploymentHistoryDetail;
488
424
  previousConfigAvailable: boolean;
489
425
  rootClassName?: string;
490
- codeEditorKey?: React.Key;
491
426
  }
492
427
  export interface DeploymentHistoryDetailRes extends ResponseType {
493
428
  result?: DeploymentHistoryDetail;
@@ -1,16 +1,8 @@
1
- import { ReactElement } from 'react';
2
- import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType, WorkflowExecutionStagesMapDTO, ExecutionInfoType, WorkflowStageStatusType } from './types';
1
+ import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType } from './types';
3
2
  export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
4
3
  export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
5
4
  export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
6
5
  export declare const renderIcon: (iconState: string) => JSX.Element;
7
6
  export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
8
- export declare const renderProgressingTriggerIcon: (baseClass?: string) => JSX.Element;
9
7
  export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
10
8
  export declare const getLogSearchIndex: ({ stageIndex, lineNumberInsideStage, }: Record<"stageIndex" | "lineNumberInsideStage", number>) => string;
11
- export declare const sanitizeWorkflowExecutionStages: (workflowExecutionStages: WorkflowExecutionStagesMapDTO["workflowExecutionStages"]) => ExecutionInfoType | null;
12
- export declare const getIconFromWorkflowStageStatusType: (status: WorkflowStageStatusType, baseClass?: string) => ReactElement;
13
- export declare const getHistoryItemStatusIconFromWorkflowStages: (workflowExecutionStages: WorkflowExecutionStagesMapDTO["workflowExecutionStages"]) => ReactElement;
14
- export declare const getWorkerPodBaseUrl: (clusterId?: number, podNamespace?: string) => string;
15
- export declare const getWorkflowNodeStatusTitle: (status: string) => string;
16
- export declare const getFormattedTriggerTime: (time: string) => string;
@@ -1,7 +1,6 @@
1
1
  import { CollapseProps } from './types';
2
2
  /**
3
3
  * Collapse component for smoothly expanding or collapsing its content.
4
- * Dynamically calculates the content height and applies smooth transitions.
5
4
  * It also supports a callback when the transition ends.
6
5
  */
7
6
  export declare const Collapse: ({ expand, onTransitionEnd, children }: CollapseProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CannotDeleteModalProps } from './types';
2
+ export declare const CannotDeleteModal: ({ title, component, subtitle, closeConfirmationModal, showCannotDeleteDialogModal, }: CannotDeleteModalProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { DeleteComponentModalProps } from './types';
3
+ export declare const DeleteConfirmationModal: React.FC<DeleteComponentModalProps>;
@@ -0,0 +1,2 @@
1
+ import { ForceDeleteConfirmationProps } from './types';
2
+ export declare const ForceDeleteConfirmationModal: ({ title, subtitle, onDelete, closeConfirmationModal, showConfirmationModal, }: ForceDeleteConfirmationProps) => JSX.Element;
@@ -1,2 +1,5 @@
1
1
  export { default as ConfirmationModal } from './ConfirmationModal';
2
+ export { DeleteConfirmationModal } from './DeleteConfirmationModal';
3
+ export { ForceDeleteConfirmationModal } from './ForceDeleteConfirmationModal';
4
+ export { CannotDeleteModal } from './CannotDeleteModal';
2
5
  export { ConfirmationModalVariantType, type ConfirmationModalProps } from './types';
@@ -34,7 +34,7 @@ type ButtonConfigAndVariantType<isConfig extends boolean> = {
34
34
  };
35
35
  export type ConfirmationModalProps<isConfig extends boolean = false> = PropsWithChildren<{
36
36
  title: string;
37
- subtitle: ReactNode;
37
+ subtitle?: ReactNode;
38
38
  /**
39
39
  * @default true
40
40
  */
@@ -45,4 +45,23 @@ export type ConfirmationModalProps<isConfig extends boolean = false> = PropsWith
45
45
  showConfirmationModal: boolean;
46
46
  } : {});
47
47
  export type ConfirmationModalBodyProps = Omit<ConfirmationModalProps, 'showConfirmationModal'>;
48
+ export interface DeleteComponentModalProps extends Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle' | 'showConfirmationModal' | 'children' | 'confirmationConfig'>> {
49
+ closeConfirmationModal: () => void;
50
+ onDelete: () => void;
51
+ primaryButtonText?: string;
52
+ component?: string;
53
+ successToastMessage?: string;
54
+ isLoading?: boolean;
55
+ renderCannotDeleteConfirmationSubTitle?: ReactNode;
56
+ errorCodeToShowCannotDeleteDialog?: number;
57
+ reload?: () => void;
58
+ shouldStopPropagation?: boolean;
59
+ disabled?: boolean;
60
+ url?: string;
61
+ }
62
+ export interface CannotDeleteModalProps extends Partial<Pick<DeleteComponentModalProps, 'component' | 'closeConfirmationModal'>>, Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle'>> {
63
+ showCannotDeleteDialogModal: boolean;
64
+ }
65
+ export interface ForceDeleteConfirmationProps extends Partial<Pick<DeleteComponentModalProps, 'onDelete' | 'showConfirmationModal' | 'closeConfirmationModal'>>, Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle'>> {
66
+ }
48
67
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
2
2
  import { SEVERITIES } from './constants';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)" | "var(--G500)";
4
+ color: "var(--Y500)" | "var(--R500)" | "var(--G500)" | "var(--O500)" | "var(--N300)" | "var(--R700)";
5
5
  label: "Critical" | "High" | "Medium" | "Low" | "Unknown" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
@@ -1,8 +1,6 @@
1
1
  interface ShowMoreTextProps {
2
2
  text: string;
3
3
  textClass?: string;
4
- containerClass?: string;
5
- hideShowMore?: boolean;
6
4
  }
7
- declare const ShowMoreText: ({ text, textClass, containerClass, hideShowMore }: ShowMoreTextProps) => JSX.Element;
5
+ declare const ShowMoreText: ({ text, textClass }: ShowMoreTextProps) => JSX.Element;
8
6
  export default ShowMoreText;
@@ -1,8 +1,8 @@
1
1
  import { ReactElement } from 'react';
2
- import { PromptProps } from 'react-router-dom';
3
2
  import { Pair } from 'yaml';
4
3
  import { StrictRJSFSchema } from '@rjsf/utils';
5
4
  import { MaterialHistoryType } from '@Shared/Services/app.types';
5
+ import { PromptProps } from 'react-router-dom';
6
6
  import { MaterialInfo, SortingOrder, UserApprovalConfigType, ApprovalConfigDataType, UserApprovalInfo } from '../Common';
7
7
  import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
8
8
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
@@ -93,6 +93,4 @@ export declare const getUniqueId: (size?: number) => string;
93
93
  */
94
94
  export declare const checkIfPathIsMatching: (currentPathName: string, customMessage?: string) => PromptProps["message"];
95
95
  export declare const sanitizeTargetPlatforms: (targetPlatforms: TargetPlatformsDTO["targetPlatforms"]) => TargetPlatformItemDTO[];
96
- export declare const isAWSCodeCommitURL: (url?: string) => boolean;
97
- export declare const renderMaterialIcon: (url?: string) => JSX.Element;
98
96
  export {};
@@ -327,6 +327,30 @@ export declare const statusIcon: {
327
327
  timedout: string;
328
328
  unabletofetch: string;
329
329
  };
330
+ export declare const statusColor: {
331
+ suspended: string;
332
+ unknown: string;
333
+ queued: string;
334
+ degraded: string;
335
+ healthy: string;
336
+ notdeployed: string;
337
+ missing: string;
338
+ progressing: string;
339
+ initiating: string;
340
+ starting: string;
341
+ succeeded: string;
342
+ running: string;
343
+ failed: string;
344
+ error: string;
345
+ cancelled: string;
346
+ aborted: string;
347
+ timedout: string;
348
+ unabletofetch: string;
349
+ hibernating: string;
350
+ };
351
+ export declare const PULSATING_STATUS_MAP: {
352
+ [key in keyof typeof statusColor]?: boolean;
353
+ };
330
354
  export declare const APP_STATUS_HEADERS: string[];
331
355
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
332
356
  export declare const AppListConstants: {
@@ -364,6 +388,7 @@ export declare const ANSI_UP_REGEX: RegExp;
364
388
  * Size variants for components
365
389
  */
366
390
  export declare enum ComponentSizeType {
391
+ xxs = "xxs",
367
392
  xs = "xs",
368
393
  small = "small",
369
394
  medium = "medium",
@@ -782,23 +782,20 @@ export interface UploadFileProps {
782
782
  allowedExtensions?: string[];
783
783
  maxUploadSize?: number;
784
784
  }
785
+ /**
786
+ * A utility type that transforms all properties of a given type `T` to be optional and of type `never`. \
787
+ * This can be useful for scenarios where you want to explicitly mark that certain properties should not exist.
788
+ * @template T - The type whose properties will be transformed.
789
+ */
790
+ export type Never<T> = {
791
+ [K in keyof T]?: never;
792
+ };
785
793
  export interface TargetPlatformItemDTO {
786
794
  name: string;
787
795
  }
788
796
  export interface TargetPlatformsDTO {
789
797
  targetPlatforms: TargetPlatformItemDTO[];
790
798
  }
791
- /**
792
- * These status are expected to be present in workflow nodes like ci node, linked ci node, job overview, etc.
793
- */
794
- export declare enum WorkflowStatusEnum {
795
- STARTING = "Starting",
796
- RUNNING = "Running",
797
- PROGRESSING = "Progressing",
798
- WAITING_TO_START = "WaitingToStart",
799
- TIMED_OUT = "TimedOut",
800
- CANCELLED = "CANCELLED"
801
- }
802
799
  export declare enum CIPipelineNodeType {
803
800
  EXTERNAL_CI = "EXTERNAL-CI",
804
801
  CI = "CI",