@devtron-labs/devtron-fe-common-lib 0.1.8-beta-3 → 0.1.8-beta-5

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 (31) hide show
  1. package/dist/Common/Constants.d.ts +0 -1
  2. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +4 -0
  3. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
  4. package/dist/Shared/Components/CICDHistory/types.d.ts +27 -0
  5. package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -1
  6. package/dist/Shared/Helpers.d.ts +1 -0
  7. package/dist/Shared/Hooks/index.d.ts +0 -1
  8. package/dist/Shared/constants.d.ts +1 -0
  9. package/dist/assets/index.css +1 -1
  10. package/dist/{cssMode-46565917.js → cssMode-7a00903f.js} +1 -1
  11. package/dist/{freemarker2-30f0b882.js → freemarker2-15ec1d03.js} +1 -1
  12. package/dist/{handlebars-7146aa19.js → handlebars-f60e8be1.js} +1 -1
  13. package/dist/{html-658499e7.js → html-32906b7d.js} +1 -1
  14. package/dist/{htmlMode-7460496c.js → htmlMode-ae963caa.js} +1 -1
  15. package/dist/{index-5dd358b6.js → index-f7ddff7b.js} +23099 -22913
  16. package/dist/index.js +456 -453
  17. package/dist/{javascript-17c071ad.js → javascript-024fdd96.js} +1 -1
  18. package/dist/{jsonMode-9e5d2735.js → jsonMode-7aec85f1.js} +1 -1
  19. package/dist/{liquid-875b774f.js → liquid-202509ad.js} +1 -1
  20. package/dist/{mdx-2360dbb7.js → mdx-6d12ce32.js} +1 -1
  21. package/dist/{python-d8f638c7.js → python-486b78ea.js} +1 -1
  22. package/dist/{razor-eba3bc11.js → razor-541771c2.js} +1 -1
  23. package/dist/{tsMode-96aad75e.js → tsMode-fd174356.js} +1 -1
  24. package/dist/{typescript-19458c0b.js → typescript-59901e3a.js} +1 -1
  25. package/dist/{xml-e2b971ba.js → xml-791e657d.js} +1 -1
  26. package/dist/{yaml-57fb9693.js → yaml-44a87f55.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +0 -7
  29. package/dist/Shared/Hooks/UseDownload/index.d.ts +0 -2
  30. package/dist/Shared/Hooks/UseDownload/service.d.ts +0 -1
  31. package/dist/Shared/Hooks/UseDownload/types.d.ts +0 -5
@@ -228,7 +228,6 @@ export declare enum ReactSelectInputAction {
228
228
  export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
229
229
  export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
230
230
  export declare const API_STATUS_CODES: {
231
- OK: number;
232
231
  BAD_REQUEST: number;
233
232
  UNAUTHORIZED: number;
234
233
  PERMISSION_DENIED: number;
@@ -0,0 +1,4 @@
1
+ import { LogStageAccordionProps } from './types';
2
+
3
+ declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, accordionIndex, }: LogStageAccordionProps) => JSX.Element;
4
+ export default LogStageAccordion;
@@ -43,3 +43,4 @@ export declare const DEFAULT_ENV = "devtron-ci";
43
43
  export declare const LOGS_RETRY_COUNT = 3;
44
44
  export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
45
45
  export declare const MANIFEST_STATUS_HEADERS: string[];
46
+ export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
@@ -584,6 +584,33 @@ export interface TriggerHistoryFilterCriteriaProps {
584
584
  releaseId: number;
585
585
  showCurrentReleaseDeployments: boolean;
586
586
  }
587
+ export declare enum StageStatusType {
588
+ SUCCESS = "Success",
589
+ FAILURE = "Failure",
590
+ /**
591
+ * Not given in API response
592
+ */
593
+ PROGRESSING = "Progressing"
594
+ }
595
+ export interface StageInfoDTO {
596
+ stage: string;
597
+ startTime: string;
598
+ endTime?: string;
599
+ status?: StageStatusType;
600
+ }
601
+ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime' | 'endTime' | 'status'> {
602
+ logs: string[];
603
+ isOpen: boolean;
604
+ }
605
+ export interface LogStageAccordionProps extends StageDetailType {
606
+ handleStageClose: (index: number) => void;
607
+ handleStageOpen: (index: number) => void;
608
+ accordionIndex: number;
609
+ }
610
+ export interface CreateMarkupReturnType {
611
+ __html: string;
612
+ isSearchKeyPresent: boolean;
613
+ }
587
614
  export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
588
615
  export declare const terminalStatus: Set<string>;
589
616
  export declare const statusSet: Set<string>;
@@ -1,6 +1,7 @@
1
- import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType } from './types';
1
+ import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType } from './types';
2
2
 
3
3
  export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
4
4
  export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
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
+ export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
@@ -32,4 +32,5 @@ export declare const renderValidInputButtonTippy: (children: ReactElement) => JS
32
32
  export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
33
33
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
34
34
  export declare const decode: (data: any, isEncoded?: boolean) => {};
35
+ export declare const getTimeDifference: (startTime: string, endTime: string) => string;
35
36
  export {};
@@ -1,2 +1 @@
1
1
  export * from './UsePrompt';
2
- export * from './UseDownload';
@@ -353,6 +353,7 @@ export declare enum K8sResourcePayloadAppType {
353
353
  HELM_APP = 1,
354
354
  EXTERNAL_ARGO_APP = 2
355
355
  }
356
+ export declare const ANSI_UP_REGEX: RegExp;
356
357
  /**
357
358
  * Size variants for components
358
359
  */