@devtron-labs/devtron-fe-common-lib 0.2.24-beta-2 → 0.2.24-beta-3
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 +3 -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 +33 -0
- package/dist/Shared/Components/Button/utils.d.ts +2 -0
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +2 -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-YVzeJxFA.js} +1 -1
- package/dist/{freemarker2-DGHxDPmA.js → freemarker2-Dh9SLwcz.js} +1 -1
- package/dist/{handlebars-DN90WDWu.js → handlebars-DoscZXiY.js} +1 -1
- package/dist/{html-0m6yaUu5.js → html-B1rE-YVB.js} +1 -1
- package/dist/{htmlMode-7z6v6gV_.js → htmlMode-gpFr4OaM.js} +1 -1
- package/dist/{index-C4NDVSCW.js → index-B5fDrSZa.js} +16072 -16055
- package/dist/index.js +497 -495
- package/dist/{javascript-BdWx1i0K.js → javascript-BoZcKvG2.js} +1 -1
- package/dist/{jsonMode-Dhg2oeZF.js → jsonMode-D6RZTecD.js} +1 -1
- package/dist/{liquid-BErlJ2Kp.js → liquid-CXg4I_0D.js} +1 -1
- package/dist/{mdx-C4OcT8-N.js → mdx-yDHssPVx.js} +1 -1
- package/dist/{python-CXODtyyl.js → python-pJvFDw61.js} +1 -1
- package/dist/{razor-C4HykM2S.js → razor-DLBnMYQU.js} +1 -1
- package/dist/{tsMode-BTCb1PKl.js → tsMode-DsRFSyBI.js} +1 -1
- package/dist/{typescript-WzFW2K_K.js → typescript-BjbT7C6Y.js} +1 -1
- package/dist/{xml-Buo0ukPa.js → xml-qWdEl96e.js} +1 -1
- package/dist/{yaml-DWOUgRRj.js → yaml-Bm4ivyx_.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,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,33 @@
|
|
|
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 = {
|
|
18
|
+
buttonProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>;
|
|
19
|
+
variant?: ButtonVariantType;
|
|
20
|
+
size?: ComponentSizeType;
|
|
21
|
+
style?: ButtonStyleType;
|
|
22
|
+
text: string;
|
|
23
|
+
startIcon?: ReactElement;
|
|
24
|
+
endIcon?: ReactElement;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
isLoading?: boolean;
|
|
27
|
+
} & ({
|
|
28
|
+
showTippy: boolean;
|
|
29
|
+
tippyContent: TooltipProps['content'];
|
|
30
|
+
} | {
|
|
31
|
+
showTippy?: never;
|
|
32
|
+
tippyContent?: never;
|
|
33
|
+
});
|
|
@@ -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,7 @@ export interface ButtonProps {
|
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
type?: 'submit' | 'reset' | 'button';
|
|
10
10
|
}
|
|
11
|
-
export declare class ButtonWithLoader extends Component<
|
|
11
|
+
export declare class ButtonWithLoader extends Component<ButtonWithLoaderProps> {
|
|
12
12
|
constructor(props: any);
|
|
13
13
|
clickHandler(event: any): void;
|
|
14
14
|
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",
|