@devtron-labs/devtron-fe-common-lib 0.2.24-beta-2 → 0.2.24-beta-4
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/Common/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Common/CustomInput/Types.d.ts +1 -0
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/Button/Button.component.d.ts +53 -0
- package/dist/Shared/Components/Button/constants.d.ts +5 -0
- package/dist/Shared/Components/Button/index.d.ts +2 -0
- package/dist/Shared/Components/Button/types.d.ts +64 -0
- package/dist/Shared/Components/Button/utils.d.ts +2 -0
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +5 -2
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -18
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-Cw8Y88cI.js → cssMode-BM3TJwTG.js} +1 -1
- package/dist/{freemarker2-DGHxDPmA.js → freemarker2-dS6_f7Zy.js} +1 -1
- package/dist/{handlebars-DN90WDWu.js → handlebars-7til6fre.js} +1 -1
- package/dist/{html-0m6yaUu5.js → html-BpqEp2M_.js} +1 -1
- package/dist/{htmlMode-7z6v6gV_.js → htmlMode-3AItzs-r.js} +1 -1
- package/dist/{index-C4NDVSCW.js → index-Db8NZveA.js} +16074 -16056
- package/dist/index.js +497 -495
- package/dist/{javascript-BdWx1i0K.js → javascript-5qQ_SfZW.js} +1 -1
- package/dist/{jsonMode-Dhg2oeZF.js → jsonMode-BINBC73A.js} +1 -1
- package/dist/{liquid-BErlJ2Kp.js → liquid-hZ5oSBzU.js} +1 -1
- package/dist/{mdx-C4OcT8-N.js → mdx-Du65d2v6.js} +1 -1
- package/dist/{python-CXODtyyl.js → python-C_uGu4kI.js} +1 -1
- package/dist/{razor-C4HykM2S.js → razor-Co4-vOmv.js} +1 -1
- package/dist/{tsMode-BTCb1PKl.js → tsMode-B3MLtu4W.js} +1 -1
- package/dist/{typescript-WzFW2K_K.js → typescript-XY2lJb2K.js} +1 -1
- package/dist/{xml-Buo0ukPa.js → xml-DNzwh9ho.js} +1 -1
- package/dist/{yaml-DWOUgRRj.js → yaml-BpoNPhw5.js} +1 -1
- package/package.json +1 -1
- package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
- package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
- package/dist/Pages/App/index.d.ts +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CustomInputProps } from './Types';
|
|
2
|
-
export declare const CustomInput: ({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, handleOnBlur, readOnly, noTrim, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo, inputWrapClassName, inputProps, }: CustomInputProps) => JSX.Element;
|
|
2
|
+
export declare const CustomInput: ({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, handleOnBlur, readOnly, noTrim, ref, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo, inputWrapClassName, inputProps, }: CustomInputProps) => JSX.Element;
|
|
@@ -20,6 +20,7 @@ export interface CustomInputProps {
|
|
|
20
20
|
handleOnBlur?: (e: any) => void;
|
|
21
21
|
readOnly?: boolean;
|
|
22
22
|
noTrim?: boolean;
|
|
23
|
+
ref?: React.LegacyRef<HTMLInputElement>;
|
|
23
24
|
onKeyPress?: (e: any) => void;
|
|
24
25
|
defaultValue?: string | number | ReadonlyArray<string> | undefined;
|
|
25
26
|
onKeyDown?: (e: any) => void;
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Generic component for Button.
|
|
4
|
+
* Should be used in combination of variant, size and style.
|
|
5
|
+
*
|
|
6
|
+
* @example Default button
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Button text="Hello World" />
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @example Custom variant
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Button text="Hello World" variant={ButtonVariantType.secondary} />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @example Custom size
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <Button text="Hello World" size={ComponentSizeType.medium} />
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @example Custom style
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <Button text="Hello World" style={ButtonStyleType.positive} />
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @example Disabled state
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <Button text="Hello World" disabled />
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @example Loading state
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <Button text="Hello World" isLoading />
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example With start icon
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <Button text="Hello World" startIcon={<ICCube />} />
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example With end icon
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <Button text="Hello World" endIcon={<ICCube />} />
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example With tippy
|
|
47
|
+
* ```tsx
|
|
48
|
+
* <Button text="Hello World" showTippy tippyContent="Tippy content" />
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
declare const Button: ({ variant, size, style, text, startIcon, endIcon, disabled, isLoading, showTippy, tippyContent, type, ...props }: ButtonProps) => JSX.Element;
|
|
53
|
+
export default Button;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ProgressingProps } from '../../../Common/Types';
|
|
2
|
+
import { ButtonProps } from './types';
|
|
3
|
+
export declare const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
|
4
|
+
export declare const BUTTON_SIZE_TO_ICON_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
|
5
|
+
export declare const BUTTON_SIZE_TO_LOADER_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { TooltipProps } from '@Common/Tooltip/types';
|
|
2
|
+
import { ComponentSizeType } from '../../constants';
|
|
3
|
+
import { ButtonHTMLAttributes, ReactElement } from 'react';
|
|
4
|
+
export declare enum ButtonVariantType {
|
|
5
|
+
primary = "primary",
|
|
6
|
+
secondary = "secondary",
|
|
7
|
+
text = "text",
|
|
8
|
+
link = "link"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ButtonStyleType {
|
|
11
|
+
default = "default",
|
|
12
|
+
negative = "negative",
|
|
13
|
+
positive = "positive",
|
|
14
|
+
warning = "warning",
|
|
15
|
+
neutral = "neutral"
|
|
16
|
+
}
|
|
17
|
+
export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'styles' | 'className'> & {
|
|
18
|
+
/**
|
|
19
|
+
* Variant of the button
|
|
20
|
+
*
|
|
21
|
+
* @default 'ButtonVariantType.primary'
|
|
22
|
+
*/
|
|
23
|
+
variant?: ButtonVariantType;
|
|
24
|
+
/**
|
|
25
|
+
* Size of the button
|
|
26
|
+
*
|
|
27
|
+
* @default 'ComponentSizeType.large'
|
|
28
|
+
*/
|
|
29
|
+
size?: ComponentSizeType;
|
|
30
|
+
/**
|
|
31
|
+
* Style to be applied on the button
|
|
32
|
+
*
|
|
33
|
+
* @default 'ButtonStyleType.default'
|
|
34
|
+
*/
|
|
35
|
+
style?: ButtonStyleType;
|
|
36
|
+
/**
|
|
37
|
+
* Text to be displayed in the button
|
|
38
|
+
*/
|
|
39
|
+
text: string;
|
|
40
|
+
/**
|
|
41
|
+
* If provided, icon to be displayed at the start of the button
|
|
42
|
+
*/
|
|
43
|
+
startIcon?: ReactElement;
|
|
44
|
+
/**
|
|
45
|
+
* If provided, icon to be displayed at the end of the button
|
|
46
|
+
*/
|
|
47
|
+
endIcon?: ReactElement;
|
|
48
|
+
/**
|
|
49
|
+
* If true, the loading state is shown for the button with disabled
|
|
50
|
+
*/
|
|
51
|
+
isLoading?: boolean;
|
|
52
|
+
} & ({
|
|
53
|
+
/**
|
|
54
|
+
* If true, the tippy is shown for the button
|
|
55
|
+
*/
|
|
56
|
+
showTippy: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Tippy content to be shown for use cases like disabled etc
|
|
59
|
+
*/
|
|
60
|
+
tippyContent: TooltipProps['content'];
|
|
61
|
+
} | {
|
|
62
|
+
showTippy?: never;
|
|
63
|
+
tippyContent?: never;
|
|
64
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, Component } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ButtonWithLoaderProps {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
rootClassName: string;
|
|
5
5
|
isLoading: boolean;
|
|
@@ -8,7 +8,10 @@ export interface ButtonProps {
|
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
type?: 'submit' | 'reset' | 'button';
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use Button instead
|
|
13
|
+
*/
|
|
14
|
+
export declare class ButtonWithLoader extends Component<ButtonWithLoaderProps> {
|
|
12
15
|
constructor(props: any);
|
|
13
16
|
clickHandler(event: any): void;
|
|
14
17
|
render(): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
|
-
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText,
|
|
4
|
-
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom,
|
|
3
|
+
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
|
|
4
|
+
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, }: TriggerOutputProps) => JSX.Element;
|
|
5
5
|
export default TriggerOutput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
2
|
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
@@ -46,15 +46,6 @@ export interface CICDSidebarFilterOptionType extends OptionType {
|
|
|
46
46
|
pipelineType?: string;
|
|
47
47
|
deploymentAppDeleteRequest?: boolean;
|
|
48
48
|
}
|
|
49
|
-
export interface TargetConfigType {
|
|
50
|
-
tenantIcon?: string;
|
|
51
|
-
tenantId?: string;
|
|
52
|
-
tenantName?: string;
|
|
53
|
-
installationId?: string;
|
|
54
|
-
installationName?: string;
|
|
55
|
-
releaseChannelId?: string;
|
|
56
|
-
releaseChannelName?: string;
|
|
57
|
-
}
|
|
58
49
|
export interface History {
|
|
59
50
|
id: number;
|
|
60
51
|
name: string;
|
|
@@ -89,7 +80,6 @@ export interface History {
|
|
|
89
80
|
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
90
81
|
triggerMetadata?: string;
|
|
91
82
|
runSource?: RunSourceType;
|
|
92
|
-
targetConfig?: TargetConfigType;
|
|
93
83
|
}
|
|
94
84
|
export interface DeploymentHistoryResultObject {
|
|
95
85
|
cdWorkflows: History[];
|
|
@@ -167,13 +157,8 @@ export interface StartDetailsType {
|
|
|
167
157
|
isJobView?: boolean;
|
|
168
158
|
triggerMetadata?: string;
|
|
169
159
|
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
|
|
170
|
-
/**
|
|
171
|
-
* Callback handler for showing the target config
|
|
172
|
-
*/
|
|
173
|
-
renderTargetConfigInfo?: () => ReactElement;
|
|
174
|
-
stage: DeploymentStageType;
|
|
175
160
|
}
|
|
176
|
-
export interface TriggerDetailsType
|
|
161
|
+
export interface TriggerDetailsType {
|
|
177
162
|
status: string;
|
|
178
163
|
startedOn: string;
|
|
179
164
|
finishedOn: string;
|
|
@@ -308,7 +293,7 @@ export interface VirtualHistoryArtifactProps {
|
|
|
308
293
|
workflowId: number;
|
|
309
294
|
};
|
|
310
295
|
}
|
|
311
|
-
export interface TriggerOutputProps extends RenderRunSourceType
|
|
296
|
+
export interface TriggerOutputProps extends RenderRunSourceType {
|
|
312
297
|
fullScreenView: boolean;
|
|
313
298
|
triggerHistory: Map<number, History>;
|
|
314
299
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -387,9 +387,11 @@ export declare const ANSI_UP_REGEX: RegExp;
|
|
|
387
387
|
* Size variants for components
|
|
388
388
|
*/
|
|
389
389
|
export declare enum ComponentSizeType {
|
|
390
|
+
xs = "xs",
|
|
390
391
|
small = "small",
|
|
391
392
|
medium = "medium",
|
|
392
|
-
large = "large"
|
|
393
|
+
large = "large",
|
|
394
|
+
xl = "xl"
|
|
393
395
|
}
|
|
394
396
|
export declare const POP_UP_MENU_MODAL_ID = "popup";
|
|
395
397
|
/**
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -366,7 +366,6 @@ export declare enum ResourceKindType {
|
|
|
366
366
|
cluster = "cluster",
|
|
367
367
|
release = "release",
|
|
368
368
|
releaseTrack = "release-track",
|
|
369
|
-
releaseChannel = "release-channel",
|
|
370
369
|
tenant = "tenant",
|
|
371
370
|
installation = "installation",
|
|
372
371
|
environment = "environment",
|