@devtron-labs/devtron-fe-common-lib 0.1.10 → 0.1.11-beta-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 (33) hide show
  1. package/dist/Common/Constants.d.ts +1 -0
  2. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  3. package/dist/Common/SearchBar/types.d.ts +8 -1
  4. package/dist/Common/SearchBar/utils.d.ts +3 -0
  5. package/dist/Common/Types.d.ts +1 -1
  6. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +4 -0
  7. package/dist/Shared/Components/CICDHistory/constants.d.ts +2 -0
  8. package/dist/Shared/Components/CICDHistory/types.d.ts +31 -0
  9. package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -1
  10. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  11. package/dist/Shared/Components/FeatureDescription/types.d.ts +7 -2
  12. package/dist/Shared/Helpers.d.ts +2 -0
  13. package/dist/Shared/constants.d.ts +1 -0
  14. package/dist/assets/index.css +1 -1
  15. package/dist/{cssMode-addaf625.js → cssMode-84e6b682.js} +1 -1
  16. package/dist/{freemarker2-93af599a.js → freemarker2-5485ed0f.js} +1 -1
  17. package/dist/{handlebars-d10b202a.js → handlebars-aff35f10.js} +1 -1
  18. package/dist/{html-4ca3568b.js → html-2b7b4cb7.js} +1 -1
  19. package/dist/{htmlMode-5159383b.js → htmlMode-30b2f226.js} +1 -1
  20. package/dist/{index-833d5305.js → index-33fb83a2.js} +23346 -23064
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +461 -456
  23. package/dist/{javascript-cd6afa36.js → javascript-161708ae.js} +1 -1
  24. package/dist/{jsonMode-02ab13b3.js → jsonMode-8a682c44.js} +1 -1
  25. package/dist/{liquid-4250cd5a.js → liquid-bbce162d.js} +1 -1
  26. package/dist/{mdx-8d21f972.js → mdx-0a8edcd5.js} +1 -1
  27. package/dist/{python-272a3022.js → python-4afe1bde.js} +1 -1
  28. package/dist/{razor-6a07b5ee.js → razor-65877c61.js} +1 -1
  29. package/dist/{tsMode-9f9aded0.js → tsMode-50cf3ae7.js} +1 -1
  30. package/dist/{typescript-a672008e.js → typescript-14d800cb.js} +1 -1
  31. package/dist/{xml-cdff47fe.js → xml-f651333e.js} +1 -1
  32. package/dist/{yaml-6c9a80da.js → yaml-977928ac.js} +1 -1
  33. package/package.json +1 -1
@@ -9,6 +9,7 @@ export declare const DOCUMENTATION: {
9
9
  APP_TAGS: string;
10
10
  APP_OVERVIEW_TAGS: string;
11
11
  BLOB_STORAGE: string;
12
+ GLOBAL_CONFIG_BUILD_INFRA: string;
12
13
  };
13
14
  export declare const PATTERNS: {
14
15
  KUBERNETES_KEY_PREFIX: RegExp;
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
34
34
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
35
35
  * ```
36
36
  */
37
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import { ComponentSizeType } from '../../Shared/constants';
2
+
2
3
  export interface SearchBarProps {
3
4
  /**
4
5
  * Initial search text
@@ -40,4 +41,10 @@ export interface SearchBarProps {
40
41
  * Hide the background and border of the search
41
42
  */
42
43
  noBackgroundAndBorder?: boolean;
44
+ /**
45
+ * Height of the searchbar
46
+ *
47
+ * @default 'ComponentSizeType.medium'
48
+ */
49
+ size?: ComponentSizeType.medium | ComponentSizeType.large;
43
50
  }
@@ -0,0 +1,3 @@
1
+ import { SearchBarProps } from './types';
2
+
3
+ export declare const getSearchBarHeightFromSize: (size: SearchBarProps['size']) => string;
@@ -77,7 +77,7 @@ export interface TippyCustomizedProps {
77
77
  iconSize?: number;
78
78
  onImageLoadError?: (e: any) => void;
79
79
  onClose?: () => void;
80
- infoText?: string;
80
+ infoText?: React.ReactNode;
81
81
  showCloseButton?: boolean;
82
82
  arrow?: boolean;
83
83
  interactive?: boolean;
@@ -0,0 +1,4 @@
1
+ import { LogStageAccordionProps } from './types';
2
+
3
+ declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, }: LogStageAccordionProps) => JSX.Element;
4
+ export default LogStageAccordion;
@@ -43,3 +43,5 @@ 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";
47
+ export declare const LOGS_STAGE_STREAM_SEPARATOR = "|";
@@ -584,6 +584,37 @@ 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
+ stageIndex: number;
609
+ /**
610
+ * A stage is loading if it is last in current stage list and event is not closed
611
+ */
612
+ isLoading: boolean;
613
+ }
614
+ export interface CreateMarkupReturnType {
615
+ __html: string;
616
+ isSearchKeyPresent: boolean;
617
+ }
587
618
  export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
588
619
  export declare const terminalStatus: Set<string>;
589
620
  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;
@@ -1,4 +1,4 @@
1
1
  import { DescriptorProps } from './types';
2
2
 
3
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
3
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
4
4
  export default FeatureTitleWithInfo;
@@ -1,9 +1,10 @@
1
+ import { default as React, ReactNode } from 'react';
1
2
  import { ImageType } from '../../../Common';
2
3
  import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
3
4
 
4
5
  export interface FeatureDescriptionModalProps {
5
6
  title: string;
6
- renderDescriptionContent?: () => JSX.Element;
7
+ renderDescriptionContent?: () => ReactNode;
7
8
  closeModalText?: string;
8
9
  docLink?: string;
9
10
  closeModal?: () => void;
@@ -12,8 +13,12 @@ export interface FeatureDescriptionModalProps {
12
13
  imageStyles?: React.CSSProperties;
13
14
  }
14
15
  export interface DescriptorProps extends FeatureDescriptionModalProps {
15
- breadCrumbs: Breadcrumb[];
16
+ breadCrumbs?: Breadcrumb[];
16
17
  additionalContainerClasses?: string;
17
18
  iconClassName?: string;
18
19
  children?: React.ReactNode;
20
+ showInfoIconTippy?: boolean;
21
+ docLinkText?: string;
22
+ dataTestId?: string;
23
+ additionalContent?: ReactNode;
19
24
  }
@@ -32,4 +32,6 @@ 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 isTimeStringAvailable: (time: string) => boolean;
36
+ export declare const getTimeDifference: (startTime: string, endTime: string) => string;
35
37
  export {};
@@ -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
  */