@devtron-labs/devtron-fe-common-lib 0.2.7-beta-1 → 0.2.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.
Files changed (33) hide show
  1. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  2. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
  3. package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +1 -1
  4. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  5. package/dist/Shared/Components/CICDHistory/types.d.ts +17 -18
  6. package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -1
  7. package/dist/Shared/Components/CommitChipCell/types.d.ts +1 -1
  8. package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
  9. package/dist/Shared/Components/ImageChipCell/types.d.ts +5 -13
  10. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +2 -3
  11. package/dist/Shared/Components/index.d.ts +0 -1
  12. package/dist/Shared/Helpers.d.ts +0 -5
  13. package/dist/Shared/constants.d.ts +0 -3
  14. package/dist/assets/index.css +1 -1
  15. package/dist/{cssMode-2d35baf3.js → cssMode-48c0f680.js} +1 -1
  16. package/dist/{freemarker2-801eccf9.js → freemarker2-abeb240d.js} +1 -1
  17. package/dist/{handlebars-6e296d28.js → handlebars-a1d03281.js} +1 -1
  18. package/dist/{html-4f435985.js → html-b2ac7b3c.js} +1 -1
  19. package/dist/{htmlMode-f2200298.js → htmlMode-9921d4db.js} +1 -1
  20. package/dist/{index-23d0960d.js → index-55f67c02.js} +19809 -19858
  21. package/dist/index.js +339 -343
  22. package/dist/{javascript-275bb580.js → javascript-459ec784.js} +1 -1
  23. package/dist/{jsonMode-6da1b613.js → jsonMode-61b52ed6.js} +1 -1
  24. package/dist/{liquid-0076c56f.js → liquid-9d8a221e.js} +1 -1
  25. package/dist/{mdx-a22f2078.js → mdx-dc4f9b48.js} +1 -1
  26. package/dist/{python-e377e35a.js → python-6e74db51.js} +1 -1
  27. package/dist/{razor-2583e71e.js → razor-a92b516d.js} +1 -1
  28. package/dist/{tsMode-078c6213.js → tsMode-89890d25.js} +1 -1
  29. package/dist/{typescript-fe07d2c4.js → typescript-119d98cc.js} +1 -1
  30. package/dist/{xml-b10e934c.js → xml-05861ac3.js} +1 -1
  31. package/dist/{yaml-70947680.js → yaml-137573e5.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/Shared/Components/ShowMoreText/index.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import { ArtifactType, CIListItemType } from './types';
2
2
 
3
3
  export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
4
- declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, }: ArtifactType) => JSX.Element;
4
+ declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
5
5
  export default Artifacts;
@@ -1,4 +1,4 @@
1
1
  import { LogStageAccordionProps } from './types';
2
2
 
3
- declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
3
+ declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, }: LogStageAccordionProps) => JSX.Element;
4
4
  export default LogStageAccordion;
@@ -1,4 +1,4 @@
1
1
  import { LogsRendererType } from './types';
2
2
 
3
- export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, fullScreenView, }: LogsRendererType) => JSX.Element;
3
+ export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, }: LogsRendererType) => JSX.Element;
4
4
  export default LogsRenderer;
@@ -2,5 +2,5 @@ import { default as React } from 'react';
2
2
  import { TriggerDetailsType, TriggerOutputProps } from './types';
3
3
 
4
4
  export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
5
- declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, }: TriggerOutputProps) => JSX.Element;
5
+ declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, }: TriggerOutputProps) => JSX.Element;
6
6
  export default TriggerOutput;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
2
+ import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, SortingOrder } from '../../../Common';
3
3
  import { DeploymentStageType } from '../../constants';
4
4
  import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
5
5
 
@@ -143,8 +143,12 @@ export interface CurrentStatusType {
143
143
  status: string;
144
144
  finishedOn: string;
145
145
  artifact: string;
146
+ message: string;
147
+ podStatus: string;
146
148
  stage: DeploymentStageType;
147
149
  type: HistoryComponentType;
150
+ isJobView?: boolean;
151
+ workerPodName?: string;
148
152
  }
149
153
  export interface StartDetailsType {
150
154
  startedOn: string;
@@ -180,8 +184,12 @@ export interface TriggerDetailsType {
180
184
  }
181
185
  export interface ProgressingStatusType {
182
186
  status: string;
187
+ message: string;
188
+ podStatus: string;
183
189
  stage: DeploymentStageType;
184
190
  type: HistoryComponentType;
191
+ finishedOn?: string;
192
+ workerPodName?: string;
185
193
  }
186
194
  export interface WorkerStatusType {
187
195
  message: string;
@@ -198,6 +206,12 @@ export interface FinishedType {
198
206
  }
199
207
  export interface TriggerDetailsStatusIconType {
200
208
  status: string;
209
+ isDeploymentWindowInfo?: boolean;
210
+ }
211
+ export interface LogsRendererType {
212
+ triggerDetails: History;
213
+ isBlobStorageConfigured: boolean;
214
+ parentType: HistoryComponentType;
201
215
  }
202
216
  export interface SyncStageResourceDetail {
203
217
  id: number;
@@ -316,21 +330,6 @@ export interface TriggerOutputProps extends RenderRunSourceType {
316
330
  deploymentHistoryResult: Pick<DeploymentHistoryResult, 'result'>;
317
331
  setFetchTriggerIdData: React.Dispatch<React.SetStateAction<FetchIdDataStatus>>;
318
332
  setTriggerHistory: React.Dispatch<React.SetStateAction<Map<Number, History>>>;
319
- scrollToTop: ReturnType<typeof useScrollable>[1];
320
- scrollToBottom: ReturnType<typeof useScrollable>[2];
321
- }
322
- export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
323
- triggerDetails: History;
324
- loading: boolean;
325
- userApprovalMetadata: UserApprovalMetadataType;
326
- triggeredByEmail: string;
327
- artifactId: number;
328
- ciPipelineId: number;
329
- resourceId?: number;
330
- renderRunSource: (runSource: RunSourceType, isDeployedInThisResource: boolean) => JSX.Element;
331
- }
332
- export interface LogsRendererType extends Pick<HistoryLogsProps, 'fullScreenView' | 'triggerDetails' | 'isBlobStorageConfigured'> {
333
- parentType: HistoryComponentType;
334
333
  }
335
334
  export interface DeploymentStatusDetailBreakdownType {
336
335
  deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
@@ -483,7 +482,7 @@ export interface ArtifactType {
483
482
  appReleaseTagNames?: string[];
484
483
  tagsEditable?: boolean;
485
484
  hideImageTaggingHardDelete?: boolean;
486
- rootClassName?: string;
485
+ jobCIClass?: string;
487
486
  renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
488
487
  }
489
488
  export interface CIListItemType extends Pick<GitChangesType, 'promotionApprovalMetadata' | 'selectedEnvironmentName'> {
@@ -605,7 +604,7 @@ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime
605
604
  logs: string[];
606
605
  isOpen: boolean;
607
606
  }
608
- export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRendererType, 'fullScreenView'> {
607
+ export interface LogStageAccordionProps extends StageDetailType {
609
608
  handleStageClose: (index: number) => void;
610
609
  handleStageOpen: (index: number) => void;
611
610
  stageIndex: number;
@@ -5,4 +5,3 @@ export declare const getParsedTriggerHistory: (result: any) => DeploymentHistory
5
5
  export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
6
6
  export declare const renderIcon: (iconState: string) => JSX.Element;
7
7
  export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
8
- export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { SyntheticEvent } from 'react';
2
2
 
3
3
  export interface CommitChipCellProps {
4
- handleClick?: (e: SyntheticEvent) => void;
4
+ handleClick: (e: SyntheticEvent) => void;
5
5
  commits?: string[];
6
6
  }
@@ -1,4 +1,4 @@
1
1
  import { ImageChipCellProps } from './types';
2
2
 
3
- declare const ImageChipCell: ({ imagePath, registryType, handleClick, isExpanded: isExpandedProp, placement, }: ImageChipCellProps) => JSX.Element;
3
+ declare const ImageChipCell: ({ handleClick, imagePath, isExpanded, registryType }: ImageChipCellProps) => JSX.Element;
4
4
  export default ImageChipCell;
@@ -1,17 +1,9 @@
1
- import { default as Tippy } from '@tippyjs/react';
2
- import { ComponentProps, SyntheticEvent } from 'react';
1
+ import { SyntheticEvent } from 'react';
3
2
  import { RegistryType } from '../../types';
4
3
 
5
- type ImageChipCellButtonActionProps = {
4
+ export interface ImageChipCellProps {
6
5
  handleClick: (e: SyntheticEvent) => void;
7
- isExpanded: boolean;
8
- } | {
9
- handleClick?: never;
10
- isExpanded?: never;
11
- };
12
- export type ImageChipCellProps = {
13
6
  imagePath: string;
14
- registryType?: RegistryType;
15
- placement?: ComponentProps<typeof Tippy>['placement'];
16
- } & ImageChipCellButtonActionProps;
17
- export {};
7
+ isExpanded: boolean;
8
+ registryType: RegistryType;
9
+ }
@@ -1,6 +1,5 @@
1
1
  interface ShowMoreTextProps {
2
2
  text: string;
3
- textClass?: string;
4
3
  }
5
- declare const ShowMoreText: ({ text, textClass }: ShowMoreTextProps) => JSX.Element;
6
- export default ShowMoreText;
4
+ export declare const ShowMoreText: ({ text }: ShowMoreTextProps) => JSX.Element;
5
+ export {};
@@ -32,7 +32,6 @@ export * from './IframeContainer';
32
32
  export * from './Plugin';
33
33
  export * from './KeyValueTable';
34
34
  export * from './SelectPicker';
35
- export * from './ShowMoreText';
36
35
  export * from './CollapsibleList';
37
36
  export * from './DeploymentConfigDiff';
38
37
  export * from './DetectBottom';
@@ -38,9 +38,4 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
38
38
  export declare const isTimeStringAvailable: (time: string) => boolean;
39
39
  export declare const getTimeDifference: (startTime: string, endTime: string) => string;
40
40
  export declare const getFileNameFromHeaders: (headers: Headers) => string;
41
- /**
42
- * @description - Function to open a new tab with the given url
43
- * @param url - url to be opened in new tab
44
- */
45
- export declare const getHandleOpenURL: (url: string) => () => void;
46
41
  export {};
@@ -347,9 +347,6 @@ export declare const statusColor: {
347
347
  unabletofetch: string;
348
348
  hibernating: string;
349
349
  };
350
- export declare const PULSATING_STATUS_MAP: {
351
- [key in keyof typeof statusColor]?: boolean;
352
- };
353
350
  export declare const APP_STATUS_HEADERS: string[];
354
351
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
355
352
  export declare const AppListConstants: {