@devtron-labs/devtron-fe-common-lib 0.2.20-beta-1 → 0.2.20-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/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/Types.d.ts +2 -2
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -18
- 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/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/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/Shared/types.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9142ae1a.js → cssMode-33be5a2a.js} +1 -1
- package/dist/{freemarker2-2d0d7ee6.js → freemarker2-4e0b149a.js} +1 -1
- package/dist/{handlebars-71171392.js → handlebars-f0116745.js} +1 -1
- package/dist/{html-f102bb14.js → html-c8986f46.js} +1 -1
- package/dist/{htmlMode-5794d753.js → htmlMode-37fc8743.js} +1 -1
- package/dist/{index-8916d891.js → index-ec54a660.js} +20898 -20758
- package/dist/index.js +405 -401
- package/dist/{javascript-31cae804.js → javascript-84cc2c0f.js} +1 -1
- package/dist/{jsonMode-050baafa.js → jsonMode-954b9cca.js} +1 -1
- package/dist/{liquid-89bed0de.js → liquid-385cda64.js} +1 -1
- package/dist/{mdx-1fac36f2.js → mdx-2d9e27d3.js} +1 -1
- package/dist/{python-ed206589.js → python-346ffcdd.js} +1 -1
- package/dist/{razor-ec674809.js → razor-2fcc6e4e.js} +1 -1
- package/dist/{tsMode-ebf5cf6e.js → tsMode-ed5780da.js} +1 -1
- package/dist/{typescript-f4090eca.js → typescript-78320c90.js} +1 -1
- package/dist/{xml-92e88cb6.js → xml-e181a50a.js} +1 -1
- package/dist/{yaml-1c216853.js → yaml-79b8de1e.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 -3
- package/dist/Pages/App/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;
|
|
@@ -86,6 +86,7 @@ export declare const ROUTES: {
|
|
|
86
86
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
87
87
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
88
88
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
89
|
+
PLUGIN_LIST_MIN: string;
|
|
89
90
|
DEPLOYMENT_CHARTS_LIST: string;
|
|
90
91
|
USER_LIST_MIN: string;
|
|
91
92
|
CONFIG_DATA: string;
|
|
@@ -278,6 +279,7 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
278
279
|
DD_MMM_YYYY_HH_MM: string;
|
|
279
280
|
DD_MMM_YYYY: string;
|
|
280
281
|
};
|
|
282
|
+
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
|
281
283
|
export declare const VULNERABILITIES_SORT_PRIORITY: {
|
|
282
284
|
critical: number;
|
|
283
285
|
high: number;
|
|
@@ -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
|
@@ -178,10 +178,10 @@ export interface RadioGroupItemProps {
|
|
|
178
178
|
export interface RadioGroupInterface {
|
|
179
179
|
name: string;
|
|
180
180
|
onChange: any;
|
|
181
|
-
className?: string;
|
|
182
181
|
initialTab: string;
|
|
183
|
-
disabled: boolean;
|
|
184
182
|
children: ReactNode;
|
|
183
|
+
disabled?: boolean;
|
|
184
|
+
className?: string;
|
|
185
185
|
}
|
|
186
186
|
export interface RadioInterface {
|
|
187
187
|
children: ReactNode;
|
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,
|
|
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,
|
|
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;
|
|
6
6
|
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';
|
|
@@ -47,15 +47,6 @@ 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
|
-
}
|
|
59
50
|
export interface History {
|
|
60
51
|
id: number;
|
|
61
52
|
name: string;
|
|
@@ -90,7 +81,6 @@ export interface History {
|
|
|
90
81
|
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
91
82
|
triggerMetadata?: string;
|
|
92
83
|
runSource?: RunSourceType;
|
|
93
|
-
targetConfig?: TargetConfigType;
|
|
94
84
|
}
|
|
95
85
|
export interface DeploymentHistoryResultObject {
|
|
96
86
|
cdWorkflows: History[];
|
|
@@ -168,13 +158,8 @@ export interface StartDetailsType {
|
|
|
168
158
|
isJobView?: boolean;
|
|
169
159
|
triggerMetadata?: string;
|
|
170
160
|
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
|
|
171
|
-
/**
|
|
172
|
-
* Callback handler for showing the target config
|
|
173
|
-
*/
|
|
174
|
-
renderTargetConfigInfo?: () => ReactElement;
|
|
175
|
-
stage: DeploymentStageType;
|
|
176
161
|
}
|
|
177
|
-
export interface TriggerDetailsType
|
|
162
|
+
export interface TriggerDetailsType {
|
|
178
163
|
status: string;
|
|
179
164
|
startedOn: string;
|
|
180
165
|
finishedOn: string;
|
|
@@ -309,7 +294,7 @@ export interface VirtualHistoryArtifactProps {
|
|
|
309
294
|
workflowId: number;
|
|
310
295
|
};
|
|
311
296
|
}
|
|
312
|
-
export interface TriggerOutputProps extends RenderRunSourceType
|
|
297
|
+
export interface TriggerOutputProps extends RenderRunSourceType {
|
|
313
298
|
fullScreenView: boolean;
|
|
314
299
|
triggerHistory: Map<number, History>;
|
|
315
300
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -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,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
|
*/
|
|
@@ -135,5 +135,5 @@ import { SelectPickerProps } from './type';
|
|
|
135
135
|
* />
|
|
136
136
|
* ```
|
|
137
137
|
*/
|
|
138
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
138
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
139
139
|
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 { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
@@ -45,7 +46,7 @@ export declare enum SelectPickerVariantType {
|
|
|
45
46
|
DEFAULT = "default",
|
|
46
47
|
BORDER_LESS = "border-less"
|
|
47
48
|
}
|
|
48
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & {
|
|
49
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & {
|
|
49
50
|
/**
|
|
50
51
|
* Icon to be rendered in the control
|
|
51
52
|
*/
|
|
@@ -126,6 +127,14 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
126
127
|
* @default false
|
|
127
128
|
*/
|
|
128
129
|
fullWidth?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* If truthy, would show generic section error state as no options message
|
|
132
|
+
*/
|
|
133
|
+
optionListError?: ServerErrors;
|
|
134
|
+
/**
|
|
135
|
+
* Would reload the option list when called in case optionListError is present
|
|
136
|
+
*/
|
|
137
|
+
reloadOptionList?: () => void;
|
|
129
138
|
} & (IsMulti extends true ? {
|
|
130
139
|
isMulti: IsMulti | boolean;
|
|
131
140
|
multiSelectProps?: Pick<CreatableProps<SelectPickerOptionType<OptionValue>, true, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'> & {
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -367,7 +367,6 @@ export declare enum ResourceKindType {
|
|
|
367
367
|
cluster = "cluster",
|
|
368
368
|
release = "release",
|
|
369
369
|
releaseTrack = "release-track",
|
|
370
|
-
releaseChannel = "release-channel",
|
|
371
370
|
tenant = "tenant",
|
|
372
371
|
installation = "installation",
|
|
373
372
|
environment = "environment",
|