@devtron-labs/devtron-fe-common-lib 0.1.8-beta-4 → 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.
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
- package/dist/Shared/Components/ButtonWithSelector/types.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +27 -0
- package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -1
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -1
- package/dist/Shared/types.d.ts +0 -6
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-38f46da5.js → cssMode-7a00903f.js} +1 -1
- package/dist/{freemarker2-3a1905e7.js → freemarker2-15ec1d03.js} +1 -1
- package/dist/{handlebars-ce298da6.js → handlebars-f60e8be1.js} +1 -1
- package/dist/{html-8ab136f7.js → html-32906b7d.js} +1 -1
- package/dist/{htmlMode-78e96118.js → htmlMode-ae963caa.js} +1 -1
- package/dist/{index-cfc3b5bc.js → index-f7ddff7b.js} +23858 -23641
- package/dist/index.js +318 -315
- package/dist/{javascript-78bc74a3.js → javascript-024fdd96.js} +1 -1
- package/dist/{jsonMode-13f2ddea.js → jsonMode-7aec85f1.js} +1 -1
- package/dist/{liquid-39c153be.js → liquid-202509ad.js} +1 -1
- package/dist/{mdx-d50fd03d.js → mdx-6d12ce32.js} +1 -1
- package/dist/{python-e74e4686.js → python-486b78ea.js} +1 -1
- package/dist/{razor-511648f3.js → razor-541771c2.js} +1 -1
- package/dist/{tsMode-b8dbb316.js → tsMode-fd174356.js} +1 -1
- package/dist/{typescript-6a50be81.js → typescript-59901e3a.js} +1 -1
- package/dist/{xml-14a35ff2.js → xml-791e657d.js} +1 -1
- package/dist/{yaml-43eb6852.js → yaml-44a87f55.js} +1 -1
- 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,
|
|
17
|
+
declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, }: ButtonWithSelectorProps) => JSX.Element;
|
|
18
18
|
export default ButtonWithSelector;
|
|
@@ -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;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -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;
|