@devtron-labs/devtron-fe-common-lib 0.1.16 → 0.1.17-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 (32) hide show
  1. package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -1
  2. package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -1
  3. package/dist/Common/CustomTagSelector/Types.d.ts +7 -0
  4. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  5. package/dist/Common/SearchBar/types.d.ts +8 -1
  6. package/dist/Common/SearchBar/utils.d.ts +3 -0
  7. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +4 -0
  8. package/dist/Shared/Components/CICDHistory/constants.d.ts +2 -0
  9. package/dist/Shared/Components/CICDHistory/types.d.ts +31 -0
  10. package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -1
  11. package/dist/Shared/Helpers.d.ts +2 -0
  12. package/dist/Shared/constants.d.ts +1 -0
  13. package/dist/assets/index.css +1 -1
  14. package/dist/{cssMode-4b993aa8.js → cssMode-7777ab56.js} +1 -1
  15. package/dist/{freemarker2-29683fbc.js → freemarker2-cb721efd.js} +1 -1
  16. package/dist/{handlebars-7f9b19a0.js → handlebars-af22ec81.js} +1 -1
  17. package/dist/{html-2363cfef.js → html-a73dbdab.js} +1 -1
  18. package/dist/{htmlMode-813b9e8a.js → htmlMode-f7a75899.js} +1 -1
  19. package/dist/{index-de49e8b9.js → index-9a9fd66f.js} +21839 -21576
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +488 -482
  22. package/dist/{javascript-706ab990.js → javascript-8e81e7c3.js} +1 -1
  23. package/dist/{jsonMode-818486ad.js → jsonMode-1ccfcc8c.js} +1 -1
  24. package/dist/{liquid-e605e3ab.js → liquid-162200c1.js} +1 -1
  25. package/dist/{mdx-6437643a.js → mdx-4658a0fd.js} +1 -1
  26. package/dist/{python-a7b9b7da.js → python-ba3bfe58.js} +1 -1
  27. package/dist/{razor-a6a0e68f.js → razor-a5cef54e.js} +1 -1
  28. package/dist/{tsMode-f560b769.js → tsMode-2c563985.js} +1 -1
  29. package/dist/{typescript-6bab209e.js → typescript-98c889aa.js} +1 -1
  30. package/dist/{xml-533b22c1.js → xml-e656343f.js} +1 -1
  31. package/dist/{yaml-c4f2cdc1.js → yaml-8afd5879.js} +1 -1
  32. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  import { TagDetailType } from './Types';
2
2
 
3
- export declare const TagDetails: ({ index, tagData, setTagData, removeTag, tabIndex, suggestedTagsOptions, }: TagDetailType) => JSX.Element;
3
+ export declare const TagDetails: ({ index, tagData, setTagData, removeTag, tabIndex, suggestedTagsOptions, isHelmChart, }: TagDetailType) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { TagLabelSelectType } from './Types';
2
2
 
3
- export declare const TagLabelSelect: ({ isCreateApp, labelTags, setLabelTags, tabIndex }: TagLabelSelectType) => JSX.Element;
3
+ export declare const TagLabelSelect: ({ isCreateApp, labelTags, setLabelTags, tabIndex, appType }: TagLabelSelectType) => JSX.Element;
@@ -21,6 +21,11 @@ export interface TagErrorType {
21
21
  isValid: boolean;
22
22
  messages: string[];
23
23
  }
24
+ export declare enum APP_TYPE {
25
+ HELM_CHART = "helm-chart",
26
+ DEVTRON_APPS = "app",
27
+ JOB = "job"
28
+ }
24
29
  export interface TagLabelSelectType {
25
30
  isCreateApp?: boolean;
26
31
  labelTags: TagType[];
@@ -29,6 +34,7 @@ export interface TagLabelSelectType {
29
34
  selectedProjectId?: number;
30
35
  suggestedTagsOptions?: SuggestedTagOptionType[];
31
36
  reloadProjectTags?: boolean;
37
+ appType?: APP_TYPE;
32
38
  }
33
39
  export interface TagDetailType {
34
40
  index: number;
@@ -37,6 +43,7 @@ export interface TagDetailType {
37
43
  removeTag?: (index: number) => void;
38
44
  tabIndex?: number;
39
45
  suggestedTagsOptions?: SuggestedTagOptionType[];
46
+ isHelmChart?: boolean;
40
47
  }
41
48
  export interface TagLabelValueSelectorType {
42
49
  selectedTagIndex: number;
@@ -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;
@@ -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;
@@ -32,5 +32,7 @@ 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 declare const getFileNameFromHeaders: (headers: Headers) => string;
36
38
  export {};
@@ -354,6 +354,7 @@ export declare enum K8sResourcePayloadAppType {
354
354
  HELM_APP = 1,
355
355
  EXTERNAL_ARGO_APP = 2
356
356
  }
357
+ export declare const ANSI_UP_REGEX: RegExp;
357
358
  /**
358
359
  * Size variants for components
359
360
  */