@devtron-labs/devtron-fe-common-lib 0.2.15 → 0.2.16-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.
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Pages/App/AppConfigurations/index.d.ts +1 -0
- package/dist/Pages/App/AppConfigurations/utils.d.ts +3 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +18 -3
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/types.d.ts +1 -0
- package/dist/Shared/validations.d.ts +11 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-44baf7a7.js → cssMode-4ccf6812.js} +1 -1
- package/dist/{freemarker2-03158c6e.js → freemarker2-8e935c69.js} +1 -1
- package/dist/{handlebars-20e8484a.js → handlebars-c525a3e4.js} +1 -1
- package/dist/{html-014fec9b.js → html-43565ffd.js} +1 -1
- package/dist/{htmlMode-e4acf54f.js → htmlMode-82dc6250.js} +1 -1
- package/dist/{index-be57b07c.js → index-8b76eba8.js} +24268 -24700
- package/dist/index.js +290 -287
- package/dist/{javascript-04a4fcc3.js → javascript-fd85686e.js} +1 -1
- package/dist/{jsonMode-56e311c4.js → jsonMode-f1c8d40e.js} +1 -1
- package/dist/{liquid-b5fdd794.js → liquid-168ae917.js} +1 -1
- package/dist/{mdx-ff1bb162.js → mdx-f4b3e403.js} +1 -1
- package/dist/{python-fa269c57.js → python-eebdca8a.js} +1 -1
- package/dist/{razor-ea15ba42.js → razor-df29362b.js} +1 -1
- package/dist/{tsMode-36c2cd6f.js → tsMode-d9c5b9f8.js} +1 -1
- package/dist/{typescript-69322154.js → typescript-f3466380.js} +1 -1
- package/dist/{xml-4d9dc255.js → xml-aeb26365.js} +1 -1
- package/dist/{yaml-0fe39c49.js → yaml-bf350c40.js} +1 -1
- package/package.json +1 -1
|
@@ -6,4 +6,4 @@ import { DraggableWrapperProps } from './types';
|
|
|
6
6
|
* 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
|
|
7
7
|
* 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
|
|
8
8
|
*/
|
|
9
|
-
export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta }: DraggableWrapperProps): JSX.Element;
|
|
9
|
+
export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta, }: DraggableWrapperProps): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InfoColourBarType } from '../Types';
|
|
2
2
|
|
|
3
|
-
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon }: InfoColourBarType) => JSX.Element;
|
|
3
|
+
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon, }: InfoColourBarType) => JSX.Element;
|
|
4
4
|
export default InfoColourBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
2
2
|
|
|
3
3
|
declare const PopupMenu: {
|
|
4
|
-
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault }: PopupMenuType): any;
|
|
4
|
+
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault, }: PopupMenuType): any;
|
|
5
5
|
Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
|
|
6
6
|
Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TitleFieldProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
|
|
3
|
+
export declare const TitleField: ({ id, title, required, description, }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getDeploymentStageTitle } from './utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AppConfigurations';
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
|
|
4
|
-
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>;
|
|
5
|
-
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;
|
|
4
|
+
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, }: TriggerDetailsType) => JSX.Element>;
|
|
5
|
+
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, renderTargetConfigInfo, }: TriggerOutputProps) => JSX.Element;
|
|
6
6
|
export default TriggerOutput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import { CSSProperties, ReactElement } 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';
|
|
@@ -47,6 +47,15 @@ export interface CICDSidebarFilterOptionType extends OptionType {
|
|
|
47
47
|
pipelineType?: string;
|
|
48
48
|
deploymentAppDeleteRequest?: boolean;
|
|
49
49
|
}
|
|
50
|
+
export interface TargetConfigType {
|
|
51
|
+
tenantIcon?: string;
|
|
52
|
+
tenantId?: string;
|
|
53
|
+
tenantName?: string;
|
|
54
|
+
installationId?: string;
|
|
55
|
+
installationName?: string;
|
|
56
|
+
releaseChannelId?: string;
|
|
57
|
+
releaseChannelName?: string;
|
|
58
|
+
}
|
|
50
59
|
export interface History {
|
|
51
60
|
id: number;
|
|
52
61
|
name: string;
|
|
@@ -81,6 +90,7 @@ export interface History {
|
|
|
81
90
|
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
82
91
|
triggerMetadata?: string;
|
|
83
92
|
runSource?: RunSourceType;
|
|
93
|
+
targetConfig?: TargetConfigType;
|
|
84
94
|
}
|
|
85
95
|
export interface DeploymentHistoryResultObject {
|
|
86
96
|
cdWorkflows: History[];
|
|
@@ -158,8 +168,13 @@ export interface StartDetailsType {
|
|
|
158
168
|
isJobView?: boolean;
|
|
159
169
|
triggerMetadata?: string;
|
|
160
170
|
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
|
|
171
|
+
/**
|
|
172
|
+
* Callback handler for showing the target config
|
|
173
|
+
*/
|
|
174
|
+
renderTargetConfigInfo?: () => ReactElement;
|
|
175
|
+
stage: DeploymentStageType;
|
|
161
176
|
}
|
|
162
|
-
export interface TriggerDetailsType {
|
|
177
|
+
export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTargetConfigInfo'> {
|
|
163
178
|
status: string;
|
|
164
179
|
startedOn: string;
|
|
165
180
|
finishedOn: string;
|
|
@@ -294,7 +309,7 @@ export interface VirtualHistoryArtifactProps {
|
|
|
294
309
|
workflowId: number;
|
|
295
310
|
};
|
|
296
311
|
}
|
|
297
|
-
export interface TriggerOutputProps extends RenderRunSourceType {
|
|
312
|
+
export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDetailsType, 'renderTargetConfigInfo'> {
|
|
298
313
|
fullScreenView: boolean;
|
|
299
314
|
triggerHistory: Map<number, History>;
|
|
300
315
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -157,7 +157,7 @@ export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<Selec
|
|
|
157
157
|
isGroupHeadingSelectable: boolean;
|
|
158
158
|
};
|
|
159
159
|
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight'> {
|
|
160
|
-
appliedFilterOptions:
|
|
160
|
+
appliedFilterOptions: SelectPickerOptionType[];
|
|
161
161
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
162
162
|
}
|
|
163
163
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -367,6 +367,7 @@ export declare enum ResourceKindType {
|
|
|
367
367
|
cluster = "cluster",
|
|
368
368
|
release = "release",
|
|
369
369
|
releaseTrack = "release-track",
|
|
370
|
+
releaseChannel = "release-channel",
|
|
370
371
|
tenant = "tenant",
|
|
371
372
|
installation = "installation",
|
|
372
373
|
environment = "environment",
|
|
@@ -14,6 +14,7 @@ export declare const MESSAGES: {
|
|
|
14
14
|
VALID_POSITIVE_NUMBER: string;
|
|
15
15
|
VALID_POSITIVE_INTEGER: string;
|
|
16
16
|
MAX_SAFE_INTEGER: string;
|
|
17
|
+
INVALID_SEMANTIC_VERSION: string;
|
|
17
18
|
};
|
|
18
19
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
19
20
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -31,4 +32,14 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
31
32
|
isValid: boolean;
|
|
32
33
|
message: string;
|
|
33
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Rules for valid semantic version:
|
|
37
|
+
* 1. version.length < 128 and not empty
|
|
38
|
+
* 2. version should follow semantic versioning regex from https://semver.org/
|
|
39
|
+
*/
|
|
40
|
+
export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
|
|
41
|
+
/**
|
|
42
|
+
* A valid display name should be between 3 and 50 characters
|
|
43
|
+
*/
|
|
44
|
+
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|
|
34
45
|
export declare const validateJSON: (json: string) => ValidationResponseType;
|