@devtron-labs/devtron-fe-common-lib 0.1.8-beta-4 → 0.1.8-beta-6

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 (29) hide show
  1. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
  2. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +0 -1
  3. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +4 -0
  4. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
  5. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
  6. package/dist/Shared/Components/CICDHistory/types.d.ts +27 -0
  7. package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -1
  8. package/dist/Shared/Helpers.d.ts +1 -0
  9. package/dist/Shared/constants.d.ts +1 -1
  10. package/dist/Shared/types.d.ts +0 -6
  11. package/dist/assets/index.css +1 -1
  12. package/dist/{cssMode-38f46da5.js → cssMode-ae1ef2e2.js} +1 -1
  13. package/dist/{freemarker2-3a1905e7.js → freemarker2-b8552e94.js} +1 -1
  14. package/dist/{handlebars-ce298da6.js → handlebars-4c9bc8d6.js} +1 -1
  15. package/dist/{html-8ab136f7.js → html-b298353e.js} +1 -1
  16. package/dist/{htmlMode-78e96118.js → htmlMode-5db5121c.js} +1 -1
  17. package/dist/{index-cfc3b5bc.js → index-18cbb338.js} +23882 -23665
  18. package/dist/index.js +318 -315
  19. package/dist/{javascript-78bc74a3.js → javascript-f5ff9e6c.js} +1 -1
  20. package/dist/{jsonMode-13f2ddea.js → jsonMode-7df66f46.js} +1 -1
  21. package/dist/{liquid-39c153be.js → liquid-83cb8ddb.js} +1 -1
  22. package/dist/{mdx-d50fd03d.js → mdx-6f912565.js} +1 -1
  23. package/dist/{python-e74e4686.js → python-e89de015.js} +1 -1
  24. package/dist/{razor-511648f3.js → razor-09b1cf81.js} +1 -1
  25. package/dist/{tsMode-b8dbb316.js → tsMode-56aa4b43.js} +1 -1
  26. package/dist/{typescript-6a50be81.js → typescript-ee080194.js} +1 -1
  27. package/dist/{xml-14a35ff2.js → xml-a3369c30.js} +1 -1
  28. package/dist/{yaml-43eb6852.js → yaml-b56308f3.js} +1 -1
  29. package/package.json +1 -1
@@ -14,5 +14,5 @@ import { ButtonWithSelectorProps } from './types';
14
14
  * </ButtonWithSelector>
15
15
  * ```
16
16
  */
17
- declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, isLoading, }: ButtonWithSelectorProps) => JSX.Element;
17
+ declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, }: ButtonWithSelectorProps) => JSX.Element;
18
18
  export default ButtonWithSelector;
@@ -8,5 +8,4 @@ export interface ButtonWithSelectorProps {
8
8
  popUpBodyClassName?: string;
9
9
  showPopUp?: boolean;
10
10
  disabled?: boolean;
11
- isLoading?: boolean;
12
11
  }
@@ -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";
@@ -5,7 +5,6 @@ export { default as CDEmptyState } from './CDEmptyState';
5
5
  export { default as DeploymentStatusDetailBreakdown } from './DeploymentStatusBreakdown';
6
6
  export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
7
7
  export { default as DeploymentDetailSteps } from './DeploymentDetailSteps';
8
- export { default as DetectBottom } from './DetectBottom';
9
8
  export * from './types';
10
9
  export * from './service';
11
10
  export * from './History.components';
@@ -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 {};
@@ -31,7 +31,6 @@ export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
31
31
  export declare const API_TOKEN_PREFIX = "API-TOKEN:";
32
32
  export declare const DEFAULT_SECRET_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
33
33
  export declare enum PatchOperationType {
34
- add = "add",
35
34
  replace = "replace",
36
35
  remove = "remove"
37
36
  }
@@ -354,6 +353,7 @@ export declare enum K8sResourcePayloadAppType {
354
353
  HELM_APP = 1,
355
354
  EXTERNAL_ARGO_APP = 2
356
355
  }
356
+ export declare const ANSI_UP_REGEX: RegExp;
357
357
  /**
358
358
  * Size variants for components
359
359
  */
@@ -336,12 +336,6 @@ export type PatchQueryType<T extends string, K = unknown> = {
336
336
  */
337
337
  op: PatchOperationType.remove;
338
338
  value?: never;
339
- } | {
340
- /**
341
- * Operation type for add
342
- */
343
- op: PatchOperationType.add;
344
- value?: K;
345
339
  });
346
340
  export interface GroupedOptionsType {
347
341
  label: string;