@devtron-labs/devtron-fe-common-lib 0.0.70-beta-11 → 0.0.71-beta-1
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.
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
import ClipboardProps from './types';
|
|
3
3
|
/**
|
|
4
4
|
* @param content - Content to be copied
|
|
5
|
-
* @param copiedTippyText - Text to be shown in the tippy when the content is copied
|
|
6
|
-
* @param duration - Duration for which the tippy should be shown
|
|
7
|
-
* @param trigger - To trigger the copy action
|
|
8
|
-
* @param setTrigger - Callback function to set the trigger
|
|
9
|
-
* @param rootClassName - additional classes to add to button
|
|
10
|
-
* @param iconSize - size of svg icon to be shown, default 16 (icon-dim-16)
|
|
5
|
+
* @param copiedTippyText - Text to be shown in the tippy when the content is copied
|
|
6
|
+
* @param duration - Duration for which the tippy should be shown
|
|
7
|
+
* @param trigger - To trigger the copy action, if set to true the content will be copied, use case being triggering the copy action from outside the component
|
|
8
|
+
* @param setTrigger - Callback function to set the trigger
|
|
11
9
|
*/
|
|
12
|
-
export default function ClipboardButton({ content, copiedTippyText, duration, trigger, setTrigger
|
|
10
|
+
export default function ClipboardButton({ content, copiedTippyText, duration, trigger, setTrigger }: ClipboardProps): JSX.Element;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export default interface ClipboardProps {
|
|
3
3
|
content: string;
|
|
4
|
-
copiedTippyText
|
|
5
|
-
duration
|
|
6
|
-
trigger
|
|
7
|
-
setTrigger
|
|
8
|
-
rootClassName?: string;
|
|
9
|
-
iconSize?: number;
|
|
4
|
+
copiedTippyText: string;
|
|
5
|
+
duration: number;
|
|
6
|
+
trigger: boolean;
|
|
7
|
+
setTrigger: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
8
|
}
|
|
@@ -95,6 +95,58 @@ export declare enum SortingOrder {
|
|
|
95
95
|
* Base page size for pagination
|
|
96
96
|
*/
|
|
97
97
|
export declare const DEFAULT_BASE_PAGE_SIZE = 20;
|
|
98
|
+
/**
|
|
99
|
+
* Deployment Window
|
|
100
|
+
*/
|
|
101
|
+
export declare enum MODAL_TYPE {
|
|
102
|
+
HIBERNATE = "HIBERNATE",
|
|
103
|
+
UNHIBERNATE = "UNHIBERNATE",
|
|
104
|
+
RESTORE = "RESTORE",
|
|
105
|
+
DEPLOY = "DEPLOY",
|
|
106
|
+
RESOURCE = "RESOURCE",
|
|
107
|
+
RESTART = "RESTART",
|
|
108
|
+
PIPELINE = "PIPELINE",
|
|
109
|
+
OVERVIEW = "OVERVIEW",
|
|
110
|
+
APP_DETAILS_STATUS = "APP_DETAILS_STATUS"
|
|
111
|
+
}
|
|
112
|
+
export declare enum ACTION_STATE {
|
|
113
|
+
ALLOWED = "ALLOWED",
|
|
114
|
+
PARTIAL = "PARTIAL",
|
|
115
|
+
BLOCKED = "BLOCKED"
|
|
116
|
+
}
|
|
117
|
+
export declare enum DEPLOYMENT_WINDOW_TYPE {
|
|
118
|
+
MAINTENANCE = "MAINTENANCE",
|
|
119
|
+
BLACKOUT = "BLACKOUT"
|
|
120
|
+
}
|
|
121
|
+
export declare const arrowUnicode = "\u279D";
|
|
122
|
+
export declare enum WEEK_DAYS_ENUM {
|
|
123
|
+
SUNDAY = "SUNDAY",
|
|
124
|
+
MONDAY = "MONDAY",
|
|
125
|
+
TUESDAY = "TUESDAY",
|
|
126
|
+
WEDNESDAY = "WEDNESDAY",
|
|
127
|
+
THURSDAY = "THURSDAY",
|
|
128
|
+
FRIDAY = "FRIDAY",
|
|
129
|
+
SATURDAY = "SATURDAY"
|
|
130
|
+
}
|
|
131
|
+
export declare enum FREQUENCY_ENUM {
|
|
132
|
+
FIXED = "FIXED",
|
|
133
|
+
DAILY = "DAILY",
|
|
134
|
+
WEEKLY = "WEEKLY",
|
|
135
|
+
MONTHLY = "MONTHLY",
|
|
136
|
+
YEARLY = "YEARLY",
|
|
137
|
+
WEEKLY_RANGE = "WEEKLY_RANGE"
|
|
138
|
+
}
|
|
139
|
+
export declare const TIME_FORMAT: {
|
|
140
|
+
DD_MMM_YYYY_HH_MM: string;
|
|
141
|
+
};
|
|
142
|
+
export declare function getOrdinal(number: any): string;
|
|
143
|
+
export declare const TIME_HOUR_SUFFIX_FOR_12_HOUR_FORMAT: {
|
|
144
|
+
AM: string;
|
|
145
|
+
PM: string;
|
|
146
|
+
MIDNIGHT: string;
|
|
147
|
+
NOON: string;
|
|
148
|
+
};
|
|
149
|
+
export declare const getTimeStampAMPMSuffix: (time: string) => string;
|
|
98
150
|
export declare enum ReactSelectInputAction {
|
|
99
151
|
inputChange = "input-change",
|
|
100
152
|
selectOption = "select-option",
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface ConditionalWrapper<T> {
|
|
|
7
7
|
children: T;
|
|
8
8
|
}
|
|
9
9
|
export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
|
|
10
|
-
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean):
|
|
10
|
+
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | 0 | -1;
|
|
11
11
|
export declare const stopPropagation: (event: any) => void;
|
|
12
12
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
|
13
13
|
export declare function getRandomColor(email: string): string;
|
|
@@ -65,4 +65,9 @@ export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
|
|
|
65
65
|
* Returns a debounced variant of the function
|
|
66
66
|
*/
|
|
67
67
|
export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Returns a capitalized string with first letter in uppercase and rest in lowercase
|
|
70
|
+
*/
|
|
71
|
+
export declare const capitalizeFirstLetter: (text: string) => string;
|
|
72
|
+
export declare const handleRelativeDateSorting: (dateStringA: any, dateStringB: any, sortOrder: any) => number;
|
|
68
73
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
-
import { DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
4
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
5
|
/**
|
|
6
6
|
* Generic response type object with support for overriding the result type
|
|
7
7
|
*
|
|
@@ -246,6 +246,11 @@ export declare enum FilterStates {
|
|
|
246
246
|
export declare enum MaterialDataSource {
|
|
247
247
|
EXTERNAL = "ext"
|
|
248
248
|
}
|
|
249
|
+
export interface DeploymentWindowArtifactMetadata {
|
|
250
|
+
id: number;
|
|
251
|
+
name: string;
|
|
252
|
+
type: DEPLOYMENT_WINDOW_TYPE;
|
|
253
|
+
}
|
|
249
254
|
export interface CDMaterialType {
|
|
250
255
|
index: number;
|
|
251
256
|
id: string;
|
|
@@ -282,6 +287,7 @@ export interface CDMaterialType {
|
|
|
282
287
|
createdTime?: string;
|
|
283
288
|
deployed?: boolean;
|
|
284
289
|
dataSource?: MaterialDataSource;
|
|
290
|
+
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
285
291
|
}
|
|
286
292
|
export declare enum CDMaterialServiceEnum {
|
|
287
293
|
ROLLBACK = "rollback",
|
|
@@ -370,6 +376,7 @@ export interface CommonNodeAttr {
|
|
|
370
376
|
deploymentAppCreated?: boolean;
|
|
371
377
|
isLast?: boolean;
|
|
372
378
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
379
|
+
isDeploymentBlocked?: boolean;
|
|
373
380
|
}
|
|
374
381
|
export declare enum DeploymentAppTypes {
|
|
375
382
|
HELM = "helm",
|
|
@@ -725,4 +732,13 @@ export type SortingParams<T = string> = {
|
|
|
725
732
|
sortOrder?: never;
|
|
726
733
|
sortBy?: never;
|
|
727
734
|
};
|
|
735
|
+
export interface DeploymentWindowProfileMetaData {
|
|
736
|
+
name: string;
|
|
737
|
+
userActionState: ACTION_STATE;
|
|
738
|
+
type: string | DEPLOYMENT_WINDOW_TYPE;
|
|
739
|
+
calculatedTimestamp: string;
|
|
740
|
+
isActive: boolean;
|
|
741
|
+
excludedUserEmails: string[];
|
|
742
|
+
warningMessage: string;
|
|
743
|
+
}
|
|
728
744
|
export {};
|