@devtron-labs/devtron-fe-common-lib 0.2.2-beta-8 → 0.2.2-beta-9
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/Api.d.ts +5 -5
- package/dist/Common/CIPipeline.Types.d.ts +4 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/CustomInput/Types.d.ts +2 -2
- package/dist/Common/Modals/VisibleModal.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +17 -18
- package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -1
- package/dist/Shared/Components/CommitChipCell/types.d.ts +1 -1
- package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +2 -1
- package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +19 -0
- package/dist/Shared/Components/EditImageFormField/constants.d.ts +7 -0
- package/dist/Shared/Components/EditImageFormField/index.d.ts +2 -0
- package/dist/Shared/Components/EditImageFormField/types.d.ts +41 -0
- package/dist/Shared/Components/Header/types.d.ts +1 -12
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/types.d.ts +5 -13
- package/dist/Shared/Components/Plugin/service.d.ts +4 -2
- package/dist/Shared/Components/Plugin/types.d.ts +11 -3
- package/dist/Shared/Components/Plugin/utils.d.ts +3 -0
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +10 -1
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +2 -2
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +0 -5
- package/dist/Shared/constants.d.ts +1 -6
- package/dist/Shared/validations.d.ts +11 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-f45645f2.js → cssMode-b7a40cfa.js} +1 -1
- package/dist/{freemarker2-9a27c868.js → freemarker2-ff0a7c06.js} +1 -1
- package/dist/{handlebars-b46ae50c.js → handlebars-0b7a7efd.js} +1 -1
- package/dist/{html-4ebd201f.js → html-feeb68bd.js} +1 -1
- package/dist/{htmlMode-e0c16e0c.js → htmlMode-bcac9443.js} +1 -1
- package/dist/{index-f9d0fa07.js → index-79eaedd6.js} +22837 -22693
- package/dist/index.js +371 -368
- package/dist/{javascript-e2ac226c.js → javascript-d16fe14e.js} +1 -1
- package/dist/{jsonMode-10a833fd.js → jsonMode-74be8d73.js} +1 -1
- package/dist/{liquid-5e4656ca.js → liquid-78dc826f.js} +1 -1
- package/dist/{mdx-b7c4beac.js → mdx-927038f2.js} +1 -1
- package/dist/{python-c5fda31e.js → python-1d5b3ab0.js} +1 -1
- package/dist/{razor-79ab7843.js → razor-9f3bc729.js} +1 -1
- package/dist/{tsMode-35f336ee.js → tsMode-3f0ed0a8.js} +1 -1
- package/dist/{typescript-c80682d7.js → typescript-b8689929.js} +1 -1
- package/dist/{xml-10ecc0b3.js → xml-26b71a9d.js} +1 -1
- package/dist/{yaml-0f49bfd9.js → yaml-acff597f.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/ShowMoreText/index.d.ts +0 -1
package/dist/Common/Api.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { ResponseType, APIOptions } from './Types';
|
|
3
3
|
|
|
4
|
-
export declare const post: (url: string, data:
|
|
5
|
-
export declare const put: (url: string, data:
|
|
6
|
-
export declare const patch: (url: string, data:
|
|
7
|
-
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType
|
|
8
|
-
export declare const trash: (url: string, data?:
|
|
4
|
+
export declare const post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
|
|
5
|
+
export declare const put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
|
6
|
+
export declare const patch: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
|
7
|
+
export declare const get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
|
|
8
|
+
export declare const trash: <T = any, K = object>(url: string, data?: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
|
9
9
|
/**
|
|
10
10
|
* Aborts the previous request before triggering next request
|
|
11
11
|
*/
|
|
@@ -77,6 +77,7 @@ export interface VariableType {
|
|
|
77
77
|
format: string;
|
|
78
78
|
description: string;
|
|
79
79
|
defaultValue: string;
|
|
80
|
+
allowEmptyValue: boolean;
|
|
80
81
|
variableType: RefVariableType;
|
|
81
82
|
refVariableStepIndex: number;
|
|
82
83
|
refVariableName: string;
|
|
@@ -98,7 +99,7 @@ interface ConditionDetails {
|
|
|
98
99
|
conditionType: ConditionType;
|
|
99
100
|
conditionalValue: string;
|
|
100
101
|
}
|
|
101
|
-
interface InlineStepDetailType {
|
|
102
|
+
export interface InlineStepDetailType {
|
|
102
103
|
scriptType: ScriptType;
|
|
103
104
|
isMountCustomScript?: boolean;
|
|
104
105
|
script?: string;
|
|
@@ -117,6 +118,8 @@ interface InlineStepDetailType {
|
|
|
117
118
|
inputVariables?: VariableType[];
|
|
118
119
|
outputVariables?: VariableType[];
|
|
119
120
|
conditionDetails: ConditionDetails[];
|
|
121
|
+
storeScriptAt?: string;
|
|
122
|
+
mountCodeToContainerPath?: string;
|
|
120
123
|
}
|
|
121
124
|
interface PluginRefStepDetailType {
|
|
122
125
|
id: number;
|
|
@@ -81,6 +81,7 @@ export declare const ROUTES: {
|
|
|
81
81
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
82
82
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
83
83
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
84
|
+
PLUGIN_LIST_MIN: string;
|
|
84
85
|
};
|
|
85
86
|
export declare enum KEY_VALUE {
|
|
86
87
|
KEY = "key",
|
|
@@ -270,3 +271,4 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
270
271
|
DD_MMM_YYYY_HH_MM: string;
|
|
271
272
|
DD_MMM_YYYY: string;
|
|
272
273
|
};
|
|
274
|
+
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
|
|
1
|
+
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface CustomInputProps {
|
|
4
4
|
name: string;
|
|
@@ -17,7 +17,7 @@ export interface CustomInputProps {
|
|
|
17
17
|
autoFocus?: boolean;
|
|
18
18
|
rootClassName?: string;
|
|
19
19
|
error?: string[] | string;
|
|
20
|
-
helperText?:
|
|
20
|
+
helperText?: ReactNode;
|
|
21
21
|
handleOnBlur?: (e: any) => void;
|
|
22
22
|
readOnly?: boolean;
|
|
23
23
|
noTrim?: boolean;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -177,10 +177,10 @@ export interface RadioGroupItemProps {
|
|
|
177
177
|
export interface RadioGroupInterface {
|
|
178
178
|
name: string;
|
|
179
179
|
onChange: any;
|
|
180
|
-
className?: string;
|
|
181
180
|
initialTab: string;
|
|
182
|
-
disabled: boolean;
|
|
183
181
|
children: ReactNode;
|
|
182
|
+
disabled?: boolean;
|
|
183
|
+
className?: string;
|
|
184
184
|
}
|
|
185
185
|
export interface RadioInterface {
|
|
186
186
|
children: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArtifactType, CIListItemType } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
|
|
4
|
-
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete,
|
|
4
|
+
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
|
|
5
5
|
export default Artifacts;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogStageAccordionProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading,
|
|
3
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, }: LogStageAccordionProps) => JSX.Element;
|
|
4
4
|
export default LogStageAccordion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogsRendererType } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType,
|
|
3
|
+
export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, }: LogsRendererType) => JSX.Element;
|
|
4
4
|
export default LogsRenderer;
|
|
@@ -2,5 +2,5 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
|
|
4
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,
|
|
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, }: TriggerOutputProps) => JSX.Element;
|
|
6
6
|
export default TriggerOutput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
|
|
@@ -143,8 +143,12 @@ export interface CurrentStatusType {
|
|
|
143
143
|
status: string;
|
|
144
144
|
finishedOn: string;
|
|
145
145
|
artifact: string;
|
|
146
|
+
message: string;
|
|
147
|
+
podStatus: string;
|
|
146
148
|
stage: DeploymentStageType;
|
|
147
149
|
type: HistoryComponentType;
|
|
150
|
+
isJobView?: boolean;
|
|
151
|
+
workerPodName?: string;
|
|
148
152
|
}
|
|
149
153
|
export interface StartDetailsType {
|
|
150
154
|
startedOn: string;
|
|
@@ -180,8 +184,12 @@ export interface TriggerDetailsType {
|
|
|
180
184
|
}
|
|
181
185
|
export interface ProgressingStatusType {
|
|
182
186
|
status: string;
|
|
187
|
+
message: string;
|
|
188
|
+
podStatus: string;
|
|
183
189
|
stage: DeploymentStageType;
|
|
184
190
|
type: HistoryComponentType;
|
|
191
|
+
finishedOn?: string;
|
|
192
|
+
workerPodName?: string;
|
|
185
193
|
}
|
|
186
194
|
export interface WorkerStatusType {
|
|
187
195
|
message: string;
|
|
@@ -198,6 +206,12 @@ export interface FinishedType {
|
|
|
198
206
|
}
|
|
199
207
|
export interface TriggerDetailsStatusIconType {
|
|
200
208
|
status: string;
|
|
209
|
+
isDeploymentWindowInfo?: boolean;
|
|
210
|
+
}
|
|
211
|
+
export interface LogsRendererType {
|
|
212
|
+
triggerDetails: History;
|
|
213
|
+
isBlobStorageConfigured: boolean;
|
|
214
|
+
parentType: HistoryComponentType;
|
|
201
215
|
}
|
|
202
216
|
export interface SyncStageResourceDetail {
|
|
203
217
|
id: number;
|
|
@@ -316,21 +330,6 @@ export interface TriggerOutputProps extends RenderRunSourceType {
|
|
|
316
330
|
deploymentHistoryResult: Pick<DeploymentHistoryResult, 'result'>;
|
|
317
331
|
setFetchTriggerIdData: React.Dispatch<React.SetStateAction<FetchIdDataStatus>>;
|
|
318
332
|
setTriggerHistory: React.Dispatch<React.SetStateAction<Map<Number, History>>>;
|
|
319
|
-
scrollToTop: ReturnType<typeof useScrollable>[1];
|
|
320
|
-
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
|
321
|
-
}
|
|
322
|
-
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
|
|
323
|
-
triggerDetails: History;
|
|
324
|
-
loading: boolean;
|
|
325
|
-
userApprovalMetadata: UserApprovalMetadataType;
|
|
326
|
-
triggeredByEmail: string;
|
|
327
|
-
artifactId: number;
|
|
328
|
-
ciPipelineId: number;
|
|
329
|
-
resourceId?: number;
|
|
330
|
-
renderRunSource: (runSource: RunSourceType, isDeployedInThisResource: boolean) => JSX.Element;
|
|
331
|
-
}
|
|
332
|
-
export interface LogsRendererType extends Pick<HistoryLogsProps, 'fullScreenView' | 'triggerDetails' | 'isBlobStorageConfigured'> {
|
|
333
|
-
parentType: HistoryComponentType;
|
|
334
333
|
}
|
|
335
334
|
export interface DeploymentStatusDetailBreakdownType {
|
|
336
335
|
deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
|
|
@@ -481,7 +480,7 @@ export interface ArtifactType {
|
|
|
481
480
|
appReleaseTagNames?: string[];
|
|
482
481
|
tagsEditable?: boolean;
|
|
483
482
|
hideImageTaggingHardDelete?: boolean;
|
|
484
|
-
|
|
483
|
+
jobCIClass?: string;
|
|
485
484
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
486
485
|
}
|
|
487
486
|
export interface CIListItemType extends Pick<GitChangesType, 'promotionApprovalMetadata' | 'selectedEnvironmentName'> {
|
|
@@ -603,7 +602,7 @@ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime
|
|
|
603
602
|
logs: string[];
|
|
604
603
|
isOpen: boolean;
|
|
605
604
|
}
|
|
606
|
-
export interface LogStageAccordionProps extends StageDetailType
|
|
605
|
+
export interface LogStageAccordionProps extends StageDetailType {
|
|
607
606
|
handleStageClose: (index: number) => void;
|
|
608
607
|
handleStageOpen: (index: number) => void;
|
|
609
608
|
stageIndex: number;
|
|
@@ -5,4 +5,3 @@ export declare const getParsedTriggerHistory: (result: any) => DeploymentHistory
|
|
|
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
7
|
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
|
8
|
-
export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface DetectBottomProps {
|
|
2
2
|
callback: () => void;
|
|
3
|
+
hasError?: boolean;
|
|
3
4
|
}
|
|
4
|
-
declare const DetectBottom: ({ callback }: DetectBottomProps) => JSX.Element;
|
|
5
|
+
declare const DetectBottom: ({ callback, hasError }: DetectBottomProps) => JSX.Element;
|
|
5
6
|
export default DetectBottom;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EditImageFormFieldProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @example
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <EditImageFormField
|
|
7
|
+
* url={icon}
|
|
8
|
+
* defaultIcon={<ICSampleIcon className="w-100 h-100 dc__opacity-1 p-5" />}
|
|
9
|
+
* errorMessage={formError.icon}
|
|
10
|
+
* handleError={handleError}
|
|
11
|
+
* handleURLChange={handleURLChange}
|
|
12
|
+
* ariaLabelPrefix="Edit icon url"
|
|
13
|
+
* dataTestIdPrefix="edit-icon-url"
|
|
14
|
+
* altText="Form icon"
|
|
15
|
+
* />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare const EditImageFormField: ({ defaultIcon, errorMessage, handleError, url, handleURLChange, ariaLabelPrefix, dataTestIdPrefix, altText, }: EditImageFormFieldProps) => JSX.Element;
|
|
19
|
+
export default EditImageFormField;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DEFAULT_MAX_IMAGE_SIZE: number;
|
|
2
|
+
export declare const DEFAULT_IMAGE_DIMENSIONS: {
|
|
3
|
+
readonly width: 72;
|
|
4
|
+
readonly height: 72;
|
|
5
|
+
};
|
|
6
|
+
export declare const EMPTY_PREVIEW_URL_ERROR_MESSAGE = "Please provide image URL to preview";
|
|
7
|
+
export declare const BASE_IMAGE_CLASS = "edit-image-form-field__figure-container--base-image";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface EditImageFormFieldProps {
|
|
4
|
+
/**
|
|
5
|
+
* Fallback icon to be shown when image is not available
|
|
6
|
+
*/
|
|
7
|
+
defaultIcon: ReactElement;
|
|
8
|
+
/**
|
|
9
|
+
* Would be shown below input, there are two types of error messages:
|
|
10
|
+
* External - Error message handled from state above and would propagate to parent through handleError
|
|
11
|
+
* Internal - Error message handled internally and would not propagate to parent, like empty preview URL
|
|
12
|
+
*/
|
|
13
|
+
errorMessage: string;
|
|
14
|
+
/**
|
|
15
|
+
* Would be called when there is an error in the image URL during handleChange or handlePreviewImage
|
|
16
|
+
*/
|
|
17
|
+
handleError: (error: string) => void;
|
|
18
|
+
/**
|
|
19
|
+
* The current value of input field
|
|
20
|
+
*/
|
|
21
|
+
url: string;
|
|
22
|
+
/**
|
|
23
|
+
* Would be called when the URL is changed in the input field
|
|
24
|
+
*/
|
|
25
|
+
handleURLChange: (url: string) => void;
|
|
26
|
+
/**
|
|
27
|
+
* The alt text for the image
|
|
28
|
+
*/
|
|
29
|
+
altText: string;
|
|
30
|
+
/**
|
|
31
|
+
* Prefix for aria-label
|
|
32
|
+
*/
|
|
33
|
+
ariaLabelPrefix: string;
|
|
34
|
+
/**
|
|
35
|
+
* Prefix for data-testid
|
|
36
|
+
*/
|
|
37
|
+
dataTestIdPrefix: string;
|
|
38
|
+
}
|
|
39
|
+
export interface FallbackImageProps extends Pick<EditImageFormFieldProps, 'defaultIcon'> {
|
|
40
|
+
showEditIcon: boolean;
|
|
41
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ModuleStatus } from '../../types';
|
|
1
2
|
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
|
2
3
|
|
|
3
4
|
export declare enum InstallationType {
|
|
@@ -5,18 +6,6 @@ export declare enum InstallationType {
|
|
|
5
6
|
OSS_HELM = "oss_helm",
|
|
6
7
|
ENTERPRISE = "enterprise"
|
|
7
8
|
}
|
|
8
|
-
export declare enum ModuleStatus {
|
|
9
|
-
HEALTHY = "healthy",
|
|
10
|
-
NONE = "none",
|
|
11
|
-
UNKNOWN = "unknown",
|
|
12
|
-
UPGRADING = "upgrading",
|
|
13
|
-
UPGRADE_FAILED = "upgradeFailed",
|
|
14
|
-
INSTALLED = "installed",
|
|
15
|
-
INSTALLING = "installing",
|
|
16
|
-
INSTALL_FAILED = "installFailed",
|
|
17
|
-
NOT_INSTALLED = "notInstalled",
|
|
18
|
-
TIMEOUT = "timeout"
|
|
19
|
-
}
|
|
20
9
|
export interface PageHeaderType {
|
|
21
10
|
headerName?: string;
|
|
22
11
|
showTabs?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ImageChipCellProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const ImageChipCell: ({
|
|
3
|
+
declare const ImageChipCell: ({ handleClick, imagePath, isExpanded, registryType }: ImageChipCellProps) => JSX.Element;
|
|
4
4
|
export default ImageChipCell;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentProps, SyntheticEvent } from 'react';
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
3
2
|
import { RegistryType } from '../../types';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
export interface ImageChipCellProps {
|
|
6
5
|
handleClick: (e: SyntheticEvent) => void;
|
|
7
|
-
isExpanded: boolean;
|
|
8
|
-
} | {
|
|
9
|
-
handleClick?: never;
|
|
10
|
-
isExpanded?: never;
|
|
11
|
-
};
|
|
12
|
-
export type ImageChipCellProps = {
|
|
13
6
|
imagePath: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
7
|
+
isExpanded: boolean;
|
|
8
|
+
registryType: RegistryType;
|
|
9
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseType } from '../../../Common';
|
|
2
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
2
3
|
|
|
3
|
-
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, 'pluginStore'>>;
|
|
4
|
+
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, 'pluginStore'>>;
|
|
4
5
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
5
6
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
7
|
+
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -8,9 +8,13 @@ export declare enum PluginCreationType {
|
|
|
8
8
|
SHARED = "SHARED",
|
|
9
9
|
PRESET = "PRESET"
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface PluginAPIBaseQueryParamsType {
|
|
12
12
|
appId: number;
|
|
13
13
|
}
|
|
14
|
+
export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
|
|
15
|
+
}
|
|
16
|
+
export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
|
|
17
|
+
}
|
|
14
18
|
export interface PluginTagNamesDTO {
|
|
15
19
|
tagNames: string[];
|
|
16
20
|
}
|
|
@@ -45,6 +49,9 @@ export interface ParentPluginDTO {
|
|
|
45
49
|
type: PluginCreationType;
|
|
46
50
|
icon: string;
|
|
47
51
|
pluginVersions: PluginVersionsDTO;
|
|
52
|
+
pluginIdentifier: string;
|
|
53
|
+
}
|
|
54
|
+
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
48
55
|
}
|
|
49
56
|
export interface PluginDetailDTO {
|
|
50
57
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -58,6 +65,7 @@ export interface PluginDetailServiceParamsType {
|
|
|
58
65
|
* @default true
|
|
59
66
|
*/
|
|
60
67
|
shouldShowError?: boolean;
|
|
68
|
+
signal?: AbortSignal;
|
|
61
69
|
}
|
|
62
70
|
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
63
71
|
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
@@ -66,11 +74,11 @@ export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsT
|
|
|
66
74
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
67
75
|
selectedTags: string[];
|
|
68
76
|
}
|
|
69
|
-
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'> {
|
|
77
|
+
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon' | 'pluginIdentifier'> {
|
|
70
78
|
latestVersionId: MinimalPluginVersionDataDTO['id'];
|
|
71
79
|
pluginVersions: MinimalPluginVersionDataDTO[];
|
|
72
80
|
}
|
|
73
|
-
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'> {
|
|
81
|
+
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type' | 'pluginIdentifier'> {
|
|
74
82
|
parentPluginId: ParentPluginType['id'];
|
|
75
83
|
}
|
|
76
84
|
export interface PluginDataStoreType {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { OptionProps } from 'react-select';
|
|
2
|
+
import { OptionType } from '../../../Common/Types';
|
|
1
3
|
import { ParentPluginDTO, PluginDataStoreType } from './types';
|
|
2
4
|
|
|
3
5
|
export declare const parsePluginDetailsDTOIntoPluginStore: (pluginData: ParentPluginDTO[]) => PluginDataStoreType;
|
|
@@ -14,6 +16,7 @@ export declare const pluginTagSelectStyles: {
|
|
|
14
16
|
group: (base: any) => any;
|
|
15
17
|
groupHeading: (base: any) => any;
|
|
16
18
|
};
|
|
19
|
+
export declare const PluginTagOption: (props: OptionProps<OptionType, true>) => JSX.Element;
|
|
17
20
|
/**
|
|
18
21
|
* @description This method takes the initial plugin data store and updates the keys with the target parent plugin store and plugin version store
|
|
19
22
|
*/
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ServerErrors } from '../../../Common/ServerError';
|
|
1
2
|
import { OptionType } from '../../../Common/Types';
|
|
2
3
|
import { ComponentSizeType } from '../../constants';
|
|
3
4
|
import { ReactElement, ReactNode } from 'react';
|
|
@@ -18,7 +19,7 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
18
19
|
endIcon?: ReactElement;
|
|
19
20
|
}
|
|
20
21
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
21
|
-
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
22
|
+
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'autoFocus' | 'onKeyDown'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
22
23
|
/**
|
|
23
24
|
* Icon to be rendered in the control
|
|
24
25
|
*/
|
|
@@ -70,5 +71,13 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
70
71
|
* @default 'ComponentSizeType.small'
|
|
71
72
|
*/
|
|
72
73
|
menuSize?: ComponentSizeType;
|
|
74
|
+
/**
|
|
75
|
+
* If truthy, would show generic section error state as no options message
|
|
76
|
+
*/
|
|
77
|
+
optionListError?: ServerErrors;
|
|
78
|
+
/**
|
|
79
|
+
* Would reload the option list when called in case optionListError is present
|
|
80
|
+
*/
|
|
81
|
+
reloadOptionList?: () => void;
|
|
73
82
|
}
|
|
74
83
|
export {};
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -36,9 +36,4 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
|
36
36
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
37
37
|
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
38
38
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
39
|
-
/**
|
|
40
|
-
* @description - Function to open a new tab with the given url
|
|
41
|
-
* @param url - url to be opened in new tab
|
|
42
|
-
*/
|
|
43
|
-
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
44
39
|
export {};
|
|
@@ -347,12 +347,6 @@ export declare const statusColor: {
|
|
|
347
347
|
unabletofetch: string;
|
|
348
348
|
hibernating: string;
|
|
349
349
|
};
|
|
350
|
-
export declare const PULSATING_STATUS_MAP: {
|
|
351
|
-
progressing: boolean;
|
|
352
|
-
initiating: boolean;
|
|
353
|
-
starting: boolean;
|
|
354
|
-
running: boolean;
|
|
355
|
-
};
|
|
356
350
|
export declare const APP_STATUS_HEADERS: string[];
|
|
357
351
|
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
|
358
352
|
export declare const AppListConstants: {
|
|
@@ -394,6 +388,7 @@ export declare enum ComponentSizeType {
|
|
|
394
388
|
medium = "medium",
|
|
395
389
|
large = "large"
|
|
396
390
|
}
|
|
391
|
+
export declare const POP_UP_MENU_MODAL_ID = "popup";
|
|
397
392
|
/**
|
|
398
393
|
* Identifiers for grouped / all resources
|
|
399
394
|
*/
|
|
@@ -12,6 +12,7 @@ export declare const MESSAGES: {
|
|
|
12
12
|
VALID_POSITIVE_NUMBER: string;
|
|
13
13
|
VALID_POSITIVE_INTEGER: string;
|
|
14
14
|
MAX_SAFE_INTEGER: string;
|
|
15
|
+
INVALID_SEMANTIC_VERSION: string;
|
|
15
16
|
};
|
|
16
17
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
17
18
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -28,3 +29,13 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
28
29
|
isValid: boolean;
|
|
29
30
|
message: string;
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Rules for valid semantic version:
|
|
34
|
+
* 1. version.length < 128 and not empty
|
|
35
|
+
* 2. version should follow semantic versioning regex from https://semver.org/
|
|
36
|
+
*/
|
|
37
|
+
export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
|
|
38
|
+
/**
|
|
39
|
+
* A valid display name should be between 3 and 50 characters
|
|
40
|
+
*/
|
|
41
|
+
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|