@devtron-labs/devtron-fe-common-lib 0.5.0-beta-6 → 0.5.0-beta-7
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/Helper.d.ts +0 -1
- package/dist/Common/Policy.Types.d.ts +14 -0
- package/dist/Common/Toggle/Toggle.d.ts +1 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/{DeploymentHistoryConfigDiff → DeploymentHistoryDiff}/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +35 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +5 -7
- package/dist/Shared/Components/Collapse/Collapse.d.ts +1 -6
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -4
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +10 -29
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +2 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/index.d.ts +1 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +6 -0
- package/dist/Shared/Components/Plugin/service.d.ts +3 -3
- package/dist/Shared/Components/Plugin/types.d.ts +4 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +22 -19
- package/dist/Shared/Components/SelectPicker/utils.d.ts +2 -1
- package/dist/Shared/Helpers.d.ts +0 -13
- package/dist/Shared/Services/app.service.d.ts +1 -4
- package/dist/Shared/Services/app.types.d.ts +7 -31
- package/dist/Shared/types.d.ts +4 -1
- package/dist/Shared/validations.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-Bp5KglQa.js → cssMode-nltnRZE_.js} +1 -1
- package/dist/{freemarker2-83m_tw4B.js → freemarker2-BvaBkEMq.js} +1 -1
- package/dist/{handlebars-BEaq8PE9.js → handlebars-BGzBz9um.js} +1 -1
- package/dist/{html-DjsTC88w.js → html-ChoHIs78.js} +1 -1
- package/dist/{htmlMode-Bh_As7NM.js → htmlMode-JpDAxLyc.js} +1 -1
- package/dist/{index-CGeGletC.js → index-D7h9qR8q.js} +29582 -29873
- package/dist/index.js +270 -276
- package/dist/{javascript-BujkRhBk.js → javascript-BD4OKIpu.js} +1 -1
- package/dist/{jsonMode-CuxkqNLy.js → jsonMode-DP6mRPqT.js} +1 -1
- package/dist/{liquid-CnlhLSM9.js → liquid-BPZMfe_D.js} +1 -1
- package/dist/{mdx-DbEMSDX2.js → mdx-Cgq4NAOX.js} +1 -1
- package/dist/{python-BBDLv7kh.js → python-Ca0bWK3z.js} +1 -1
- package/dist/{razor-BWMGbwYK.js → razor-Bp2bWXg-.js} +1 -1
- package/dist/{tsMode-CKi5DKdR.js → tsMode-ChTSsJkn.js} +1 -1
- package/dist/{typescript-Dg1658sC.js → typescript-hLs6qO-V.js} +1 -1
- package/dist/{xml-BCOAEvUp.js → xml-jY9vKyLc.js} +1 -1
- package/dist/{yaml-C3K-0wE8.js → yaml-CrVDsAxK.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +0 -6
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/index.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +0 -36
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +0 -22
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +0 -6
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -120,5 +120,4 @@ export declare const DropdownIndicator: (props: any) => JSX.Element;
|
|
|
120
120
|
export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
121
121
|
export declare function asyncWrap(promise: any): any[];
|
|
122
122
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
123
|
-
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
124
123
|
export {};
|
|
@@ -5,6 +5,11 @@ import { ResponseType } from './Types';
|
|
|
5
5
|
export declare enum ApplyPolicyToStage {
|
|
6
6
|
PRE_CI = "PRE_CI",
|
|
7
7
|
POST_CI = "POST_CI",
|
|
8
|
+
PRE_CD = "PRE_CD",
|
|
9
|
+
POST_CD = "POST_CD",
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated in mandatory plugin policy v2
|
|
12
|
+
*/
|
|
8
13
|
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
9
14
|
}
|
|
10
15
|
export declare enum PluginRequiredStage {
|
|
@@ -46,8 +51,17 @@ export interface ProcessPluginDataReturnType {
|
|
|
46
51
|
mandatoryPluginsError?: ServerErrors;
|
|
47
52
|
}
|
|
48
53
|
export declare enum ConsequenceAction {
|
|
54
|
+
/**
|
|
55
|
+
* This is used if the policy is enforced immediately.
|
|
56
|
+
*/
|
|
49
57
|
BLOCK = "BLOCK",
|
|
58
|
+
/**
|
|
59
|
+
* This is used if the policy will be enforced after a certain timestamp.
|
|
60
|
+
*/
|
|
50
61
|
ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
|
|
62
|
+
/**
|
|
63
|
+
* This is used if the policy is not enforced yet (just to show waring).
|
|
64
|
+
*/
|
|
51
65
|
ALLOW_FOREVER = "ALLOW_FOREVER"
|
|
52
66
|
}
|
|
53
67
|
export interface ConsequenceType {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass,
|
|
1
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
selected?: boolean;
|
|
4
4
|
onSelect?: any;
|
|
@@ -8,6 +8,5 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
|
8
8
|
dataTestId?: string;
|
|
9
9
|
Icon?: any;
|
|
10
10
|
iconClass?: string;
|
|
11
|
-
throttleOnChange?: boolean;
|
|
12
11
|
}) => JSX.Element;
|
|
13
12
|
export default Toggle;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }:
|
|
1
|
+
import { BuildInfraDescriptorProps } from './types';
|
|
2
|
+
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: BuildInfraDescriptorProps) => JSX.Element;
|
|
3
3
|
export default Descriptor;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareViewDeploymentType } from './types';
|
|
2
|
+
declare const DeploymentHistoryDetailedView: ({ setFullScreenView, deploymentHistoryList, setDeploymentHistoryList, renderRunSource, resourceId, }: CompareViewDeploymentType) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryDetailedView;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName,
|
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
3
|
export default DeploymentHistoryDiffView;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareWithBaseConfiguration } from './types';
|
|
2
|
+
declare const DeploymentHistoryHeader: ({ selectedDeploymentTemplate, setSelectedDeploymentTemplate, setFullScreenView, setLoader, setPreviousConfigAvailable, renderRunSource, resourceId, }: CompareWithBaseConfiguration) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryHeader;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as DeploymentHistoryDetailedView } from './DeploymentHistoryDetailedView';
|
|
2
|
+
export { default as DeploymentHistoryConfigList } from './DeploymentHistoryConfigList.component';
|
|
3
|
+
export { default as DeploymentHistoryDiffView } from './DeploymentHistoryDiffView';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OptionType } from '../../../../Common';
|
|
2
|
+
import { DeploymentTemplateList, RunSourceType, RenderRunSourceType } from '../types';
|
|
3
|
+
export interface DeploymentHistoryParamsType {
|
|
4
|
+
appId: string;
|
|
5
|
+
pipelineId?: string;
|
|
6
|
+
historyComponent?: string;
|
|
7
|
+
baseConfigurationId?: string;
|
|
8
|
+
historyComponentName?: string;
|
|
9
|
+
envId?: string;
|
|
10
|
+
triggerId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CompareViewDeploymentType extends RenderRunSourceType {
|
|
13
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
15
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
16
|
+
resourceId?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface DeploymentTemplateOptions extends OptionType {
|
|
19
|
+
author: string;
|
|
20
|
+
status: string;
|
|
21
|
+
runSource?: RunSourceType;
|
|
22
|
+
}
|
|
23
|
+
export interface CompareWithBaseConfiguration extends RenderRunSourceType {
|
|
24
|
+
selectedDeploymentTemplate: DeploymentTemplateOptions;
|
|
25
|
+
setSelectedDeploymentTemplate: (selected: any) => void;
|
|
26
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
setLoader: React.Dispatch<React.SetStateAction<boolean>>;
|
|
28
|
+
setPreviousConfigAvailable: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
+
resourceId?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface TemplateConfiguration {
|
|
32
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
34
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
35
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
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>;
|
|
4
|
-
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo,
|
|
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, renderTargetConfigInfo, }: TriggerOutputProps) => JSX.Element;
|
|
5
5
|
export default TriggerOutput;
|
|
@@ -11,6 +11,6 @@ export * from './History.components';
|
|
|
11
11
|
export * from './utils';
|
|
12
12
|
export * from './TriggerOutput';
|
|
13
13
|
export { default as LogsRenderer } from './LogsRenderer';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './DeploymentHistoryDiff';
|
|
15
15
|
export * from './CiPipelineSourceConfig';
|
|
16
16
|
export * from './StatusFilterButtonComponent';
|
|
@@ -322,13 +322,14 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
322
322
|
fullScreenView: boolean;
|
|
323
323
|
triggerHistory: Map<number, History>;
|
|
324
324
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
325
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
326
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
325
327
|
deploymentAppType: DeploymentAppTypes;
|
|
326
328
|
isBlobStorageConfigured: boolean;
|
|
327
329
|
appReleaseTags: string[];
|
|
328
330
|
tagsEditable: boolean;
|
|
329
331
|
hideImageTaggingHardDelete: boolean;
|
|
330
332
|
fetchIdData: FetchIdDataStatus;
|
|
331
|
-
appName: string;
|
|
332
333
|
selectedEnvironmentName?: string;
|
|
333
334
|
renderCIListHeader?: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
334
335
|
renderDeploymentApprovalInfo?: (userApprovalMetadata: UserApprovalMetadataType) => JSX.Element;
|
|
@@ -342,7 +343,7 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
342
343
|
scrollToTop: ReturnType<typeof useScrollable>[1];
|
|
343
344
|
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
|
344
345
|
}
|
|
345
|
-
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'
|
|
346
|
+
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
|
|
346
347
|
triggerDetails: History;
|
|
347
348
|
loading: boolean;
|
|
348
349
|
userApprovalMetadata: UserApprovalMetadataType;
|
|
@@ -392,11 +393,8 @@ export interface DeploymentTemplateHistoryType {
|
|
|
392
393
|
isUnpublished?: boolean;
|
|
393
394
|
isDeleteDraft?: boolean;
|
|
394
395
|
rootClassName?: string;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
sortBy: string;
|
|
398
|
-
sortOrder: SortingOrder;
|
|
399
|
-
};
|
|
396
|
+
comparisonBodyClassName?: string;
|
|
397
|
+
sortOrder?: SortingOrder;
|
|
400
398
|
}
|
|
401
399
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
402
400
|
result?: DeploymentHistoryDetail;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { CollapseProps } from './types';
|
|
2
|
-
|
|
3
|
-
* Collapse component for smoothly expanding or collapsing its content.
|
|
4
|
-
* Dynamically calculates the content height and applies smooth transitions.
|
|
5
|
-
* It also supports a callback when the transition ends.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Collapse: ({ expand, onTransitionEnd, children }: CollapseProps) => JSX.Element;
|
|
2
|
+
export declare const Collapse: ({ expand, children }: CollapseProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText,
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -4,12 +4,6 @@ import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
|
4
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
6
6
|
import { CollapseProps } from '../Collapse';
|
|
7
|
-
export declare enum DeploymentConfigDiffState {
|
|
8
|
-
NO_DIFF = "noDiff",
|
|
9
|
-
HAS_DIFF = "hasDiff",
|
|
10
|
-
ADDED = "added",
|
|
11
|
-
DELETED = "deleted"
|
|
12
|
-
}
|
|
13
7
|
export interface DeploymentConfigType {
|
|
14
8
|
list: DeploymentHistoryDetail;
|
|
15
9
|
heading: React.ReactNode;
|
|
@@ -17,13 +11,10 @@ export interface DeploymentConfigType {
|
|
|
17
11
|
export interface DeploymentConfigListItem {
|
|
18
12
|
id: string;
|
|
19
13
|
title: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
pathType: EnvResourceType;
|
|
22
14
|
primaryConfig: DeploymentConfigType;
|
|
23
15
|
secondaryConfig: DeploymentConfigType;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
groupHeader?: string;
|
|
16
|
+
hasDiff?: boolean;
|
|
17
|
+
isDeploymentTemplate?: boolean;
|
|
27
18
|
}
|
|
28
19
|
export type DeploymentConfigDiffSelectPickerProps = {
|
|
29
20
|
type: 'string';
|
|
@@ -37,7 +28,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
37
28
|
selectPickerProps: SelectPickerProps;
|
|
38
29
|
};
|
|
39
30
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
|
|
40
|
-
|
|
31
|
+
hasDiff?: boolean;
|
|
41
32
|
}
|
|
42
33
|
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
|
|
43
34
|
items: DeploymentConfigDiffNavigationItem[];
|
|
@@ -47,19 +38,14 @@ export interface DeploymentConfigDiffProps {
|
|
|
47
38
|
errorConfig?: {
|
|
48
39
|
error: boolean;
|
|
49
40
|
code: number;
|
|
50
|
-
message?: string;
|
|
51
|
-
redirectURL?: string;
|
|
52
41
|
reload: () => void;
|
|
53
42
|
};
|
|
54
43
|
configList: DeploymentConfigListItem[];
|
|
55
|
-
showDetailedDiffState?: boolean;
|
|
56
|
-
hideDiffState?: boolean;
|
|
57
44
|
headerText?: string;
|
|
58
45
|
scrollIntoViewId?: string;
|
|
59
46
|
selectorsConfig: {
|
|
60
47
|
primaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
61
48
|
secondaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
62
|
-
hideDivider?: boolean;
|
|
63
49
|
};
|
|
64
50
|
sortingConfig?: {
|
|
65
51
|
sortBy: string;
|
|
@@ -71,39 +57,34 @@ export interface DeploymentConfigDiffProps {
|
|
|
71
57
|
goBackURL?: string;
|
|
72
58
|
navHeading: string;
|
|
73
59
|
navHelpText?: string;
|
|
74
|
-
isNavHelpTextShowingError?: boolean;
|
|
75
60
|
tabConfig?: {
|
|
76
61
|
tabs: string[];
|
|
77
62
|
activeTab: string;
|
|
78
63
|
onClick: (tab: string) => void;
|
|
79
64
|
};
|
|
80
|
-
scopeVariablesConfig?: {
|
|
81
|
-
convertVariables: boolean;
|
|
82
|
-
onConvertVariablesClick: () => void;
|
|
83
|
-
};
|
|
84
|
-
renderedInDrawer?: boolean;
|
|
85
65
|
}
|
|
86
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | '
|
|
66
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
|
|
87
67
|
}
|
|
88
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'
|
|
68
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
89
69
|
}
|
|
90
|
-
export
|
|
70
|
+
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
91
71
|
id: string;
|
|
92
72
|
title: string;
|
|
93
73
|
children: React.ReactNode;
|
|
94
|
-
|
|
74
|
+
hasDiff?: boolean;
|
|
95
75
|
isExpanded?: boolean;
|
|
96
76
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
97
|
-
}
|
|
77
|
+
}
|
|
98
78
|
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
99
79
|
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
100
80
|
currentList: ManifestTemplateDTO;
|
|
101
81
|
compareList: ManifestTemplateDTO;
|
|
82
|
+
sortOrder?: never;
|
|
102
83
|
} : {
|
|
103
84
|
currentList: AppEnvDeploymentConfigDTO;
|
|
104
85
|
compareList: AppEnvDeploymentConfigDTO;
|
|
86
|
+
sortOrder?: SortingOrder;
|
|
105
87
|
}) & {
|
|
106
88
|
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
107
89
|
isManifestView?: IsManifestView;
|
|
108
|
-
convertVariables?: boolean;
|
|
109
90
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps, AppEnvDeploymentConfigListParams } from '..';
|
|
2
|
-
import { ConfigMapSecretDataConfigDatumDTO,
|
|
3
|
-
export declare const getDeploymentTemplateData: (data: DeploymentTemplateDTO) => any;
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
|
|
4
3
|
/**
|
|
5
4
|
* Retrieves the draft data from the given configuration data object.
|
|
6
5
|
*
|
|
@@ -28,7 +27,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
28
27
|
*
|
|
29
28
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
30
29
|
*/
|
|
31
|
-
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView,
|
|
30
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
32
31
|
configList: DeploymentConfigDiffProps["configList"];
|
|
33
32
|
navList: DeploymentConfigDiffProps["navList"];
|
|
34
33
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffAccordion: (
|
|
2
|
+
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId,
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText,
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DescriptorProps } from './types';
|
|
2
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
|
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, }: DescriptorProps) => JSX.Element;
|
|
3
3
|
export default FeatureTitleWithInfo;
|
|
@@ -20,4 +20,10 @@ export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
|
20
20
|
docLinkText?: string;
|
|
21
21
|
dataTestId?: string;
|
|
22
22
|
additionalContent?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the info icon is displayed which when clicked shows the feature description modal
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
showInfoIcon?: boolean;
|
|
23
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
-
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
3
|
-
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, "pluginStore">>;
|
|
2
|
+
import { GetParentPluginListPayloadType, GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
3
|
+
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, parentPluginIdentifiers, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, "pluginStore">>;
|
|
4
4
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
5
5
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
6
|
-
export declare const getParentPluginList: (
|
|
6
|
+
export declare const getParentPluginList: (params?: Partial<GetParentPluginListPayloadType>) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -13,6 +13,7 @@ export interface PluginAPIBaseQueryParamsType {
|
|
|
13
13
|
export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
|
|
14
14
|
}
|
|
15
15
|
export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
|
|
16
|
+
type?: 'ALL';
|
|
16
17
|
}
|
|
17
18
|
export interface PluginTagNamesDTO {
|
|
18
19
|
tagNames: string[];
|
|
@@ -50,7 +51,7 @@ export interface ParentPluginDTO {
|
|
|
50
51
|
pluginVersions: PluginVersionsDTO;
|
|
51
52
|
pluginIdentifier: string;
|
|
52
53
|
}
|
|
53
|
-
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
54
|
+
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon' | 'pluginIdentifier'> {
|
|
54
55
|
}
|
|
55
56
|
export interface PluginDetailDTO {
|
|
56
57
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -60,6 +61,7 @@ export interface PluginDetailServiceParamsType {
|
|
|
60
61
|
appId: number;
|
|
61
62
|
pluginIds?: number[];
|
|
62
63
|
parentPluginIds?: number[];
|
|
64
|
+
parentPluginIdentifiers?: string[];
|
|
63
65
|
/**
|
|
64
66
|
* @default true
|
|
65
67
|
*/
|
|
@@ -69,6 +71,7 @@ export interface PluginDetailServiceParamsType {
|
|
|
69
71
|
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
70
72
|
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
71
73
|
parentPluginId?: PluginDetailServiceParamsType['parentPluginIds'];
|
|
74
|
+
parentPluginIdentifier?: PluginDetailServiceParamsType['parentPluginIdentifiers'][number];
|
|
72
75
|
}
|
|
73
76
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
74
77
|
selectedTags: string[];
|
|
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
|
|
|
134
134
|
* />
|
|
135
135
|
* ```
|
|
136
136
|
*/
|
|
137
|
-
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, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
137
|
+
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, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
138
138
|
export default SelectPicker;
|
|
@@ -2,7 +2,7 @@ import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps,
|
|
|
2
2
|
import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
export declare const SelectPickerDropdownIndicator: <OptionValue>(props: DropdownIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
4
4
|
export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
5
|
-
export declare const SelectPickerControl: <OptionValue
|
|
5
|
+
export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
6
6
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
|
7
7
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
8
8
|
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
|
@@ -4,12 +4,11 @@ import { ComponentSizeType } from '../../constants';
|
|
|
4
4
|
import { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
5
5
|
import { GroupBase, GroupHeadingProps, Props as ReactSelectProps, SelectInstance } from 'react-select';
|
|
6
6
|
import { CreatableProps } from 'react-select/creatable';
|
|
7
|
-
import { TooltipProps } from '@Common/Tooltip/types';
|
|
8
7
|
export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
|
|
9
8
|
/**
|
|
10
9
|
* Description to be displayed for the option
|
|
11
10
|
*/
|
|
12
|
-
description?:
|
|
11
|
+
description?: string;
|
|
13
12
|
/**
|
|
14
13
|
* Icon at the start of the option
|
|
15
14
|
*/
|
|
@@ -18,10 +17,6 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
|
18
17
|
* Icon at the end of the option
|
|
19
18
|
*/
|
|
20
19
|
endIcon?: ReactElement;
|
|
21
|
-
/**
|
|
22
|
-
* Props passed to show the tippy on option
|
|
23
|
-
*/
|
|
24
|
-
tooltipProps?: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
|
|
25
20
|
}
|
|
26
21
|
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
|
27
22
|
declare module 'react-select/base' {
|
|
@@ -44,17 +39,24 @@ declare module 'react-select/base' {
|
|
|
44
39
|
* Imp Note: The menu open/close needs to handled by the consumer in this case
|
|
45
40
|
*/
|
|
46
41
|
renderCustomOptions?: () => ReactElement;
|
|
42
|
+
/**
|
|
43
|
+
* Icon to be rendered in the control
|
|
44
|
+
*/
|
|
45
|
+
icon?: ReactElement;
|
|
46
|
+
/**
|
|
47
|
+
* If true, the selected option icon is shown in the container.
|
|
48
|
+
* startIcon has higher priority than endIcon.
|
|
49
|
+
*
|
|
50
|
+
* @default 'true'
|
|
51
|
+
*/
|
|
52
|
+
showSelectedOptionIcon?: boolean;
|
|
47
53
|
}
|
|
48
54
|
}
|
|
49
55
|
export declare enum SelectPickerVariantType {
|
|
50
56
|
DEFAULT = "default",
|
|
51
57
|
BORDER_LESS = "border-less"
|
|
52
58
|
}
|
|
53
|
-
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' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
|
|
54
|
-
/**
|
|
55
|
-
* Icon to be rendered in the control
|
|
56
|
-
*/
|
|
57
|
-
icon?: ReactElement;
|
|
59
|
+
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' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
|
|
58
60
|
/**
|
|
59
61
|
* Error message for the select
|
|
60
62
|
*/
|
|
@@ -67,13 +69,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
67
69
|
* Label for the select. if required is added, the corresponding * is also added
|
|
68
70
|
*/
|
|
69
71
|
label?: ReactNode;
|
|
70
|
-
/**
|
|
71
|
-
* If true, the selected option icon is shown in the container.
|
|
72
|
-
* startIcon has higher priority than endIcon.
|
|
73
|
-
*
|
|
74
|
-
* @default 'true'
|
|
75
|
-
*/
|
|
76
|
-
showSelectedOptionIcon?: boolean;
|
|
77
72
|
/**
|
|
78
73
|
* Custom selected options count for use cases like filters
|
|
79
74
|
*/
|
|
@@ -145,6 +140,14 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
145
140
|
* @default false
|
|
146
141
|
*/
|
|
147
142
|
isCreatable?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* If false, the no options message is not shown
|
|
145
|
+
*
|
|
146
|
+
* Note: Handling for the menu distortion needs to be handled explicitly in this case
|
|
147
|
+
*
|
|
148
|
+
* @default true
|
|
149
|
+
*/
|
|
150
|
+
shouldShowNoOptionsMessage?: boolean;
|
|
148
151
|
} & (IsMulti extends true ? {
|
|
149
152
|
isMulti: IsMulti | boolean;
|
|
150
153
|
multiSelectProps?: {
|
|
@@ -168,7 +171,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
168
171
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
169
172
|
isGroupHeadingSelectable: boolean;
|
|
170
173
|
};
|
|
171
|
-
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList'> {
|
|
174
|
+
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'getOptionValue'> {
|
|
172
175
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
173
176
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
174
177
|
}
|
|
@@ -9,6 +9,7 @@ export declare const getGroupCheckboxValue: <OptionValue>(groupHeadingOptions: r
|
|
|
9
9
|
* @param optionsList - The list of options or groups of options.
|
|
10
10
|
* @param value - The value to compare against the options' values.
|
|
11
11
|
* @param defaultOption - The default option to return if no match is found.
|
|
12
|
+
* @param getOptionValue - Override the default value for the option
|
|
12
13
|
* @returns The matched option or the default option if no match is found.
|
|
13
14
|
*/
|
|
14
|
-
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>) => SelectPickerOptionType<OptionValue>;
|
|
15
|
+
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>, getOptionValue?: SelectPickerProps<OptionValue>["getOptionValue"]) => SelectPickerOptionType<OptionValue>;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -50,17 +50,4 @@ export declare const getIsManualApprovalSpecific: (userApprovalConfig?: Pick<Use
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
52
52
|
export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
53
|
-
/**
|
|
54
|
-
* Groups an array of objects by a specified key.
|
|
55
|
-
*
|
|
56
|
-
* This function takes an array of objects and a key, and groups the objects in the array
|
|
57
|
-
* based on the value of the specified key. If an object does not have the specified key,
|
|
58
|
-
* it will be grouped under the `'UNGROUPED'` key.
|
|
59
|
-
*
|
|
60
|
-
* @param array - The array of objects to be grouped.
|
|
61
|
-
* @param key - The key of the object used to group the array.
|
|
62
|
-
* @returns An object where the keys are the unique values of the specified key in the array,
|
|
63
|
-
* and the values are arrays of objects that share the same key value.
|
|
64
|
-
*/
|
|
65
|
-
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
66
53
|
export {};
|
|
@@ -5,7 +5,4 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
|
|
|
5
5
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
6
6
|
*/
|
|
7
7
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
|
|
8
|
-
export declare const getAppEnvDeploymentConfig: (
|
|
9
|
-
params: AppEnvDeploymentConfigPayloadType;
|
|
10
|
-
signal?: AbortSignal;
|
|
11
|
-
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
8
|
+
export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|