@devtron-labs/devtron-fe-common-lib 0.5.2-beta-8 → 0.5.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.
Files changed (80) hide show
  1. package/dist/Common/CIPipeline.Types.d.ts +0 -1
  2. package/dist/Common/Constants.d.ts +0 -3
  3. package/dist/Common/Policy.Types.d.ts +58 -22
  4. package/dist/Common/Types.d.ts +12 -11
  5. package/dist/Pages/App/AppConfigurations/index.d.ts +1 -0
  6. package/dist/Pages/App/AppConfigurations/utils.d.ts +2 -0
  7. package/dist/Pages/{Applications/DevtronApps/Details → App}/index.d.ts +0 -1
  8. package/dist/Pages/{Applications/DevtronApps/Details/CDPipeline → CDPipeline}/types.d.ts +4 -4
  9. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
  10. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
  11. package/dist/Pages/index.d.ts +2 -1
  12. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  13. package/dist/Shared/Components/Button/types.d.ts +0 -6
  14. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +1 -1
  15. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  16. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
  17. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +3 -2
  18. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
  19. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
  20. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -8
  21. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
  22. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
  23. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  24. package/dist/Shared/Components/FeatureDescription/index.d.ts +1 -0
  25. package/dist/Shared/Components/FeatureDescription/types.d.ts +6 -0
  26. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  27. package/dist/Shared/Components/Plugin/service.d.ts +3 -3
  28. package/dist/Shared/Components/Plugin/types.d.ts +19 -2
  29. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  30. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  31. package/dist/Shared/Components/SelectPicker/type.d.ts +23 -15
  32. package/dist/Shared/Components/SelectPicker/utils.d.ts +2 -1
  33. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -9
  34. package/dist/Shared/Components/index.d.ts +0 -1
  35. package/dist/Shared/Hooks/useForm/useForm.d.ts +26 -29
  36. package/dist/Shared/Hooks/useForm/useForm.types.d.ts +8 -15
  37. package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
  38. package/dist/Shared/Services/app.types.d.ts +22 -35
  39. package/dist/Shared/constants.d.ts +1 -3
  40. package/dist/Shared/types.d.ts +4 -13
  41. package/dist/Shared/validations.d.ts +3 -0
  42. package/dist/assets/index.css +1 -1
  43. package/dist/{cssMode-DHDNsaBI.js → cssMode-DOv3Dlkj.js} +1 -1
  44. package/dist/{freemarker2-aIiTKCiA.js → freemarker2-BEtk-Svk.js} +1 -1
  45. package/dist/{handlebars-CFq3SAli.js → handlebars-zsXZyBHa.js} +1 -1
  46. package/dist/{html-gpFZLCO-.js → html-DVjqtGIC.js} +1 -1
  47. package/dist/{htmlMode-CYRcmdpX.js → htmlMode-e_0QgI09.js} +1 -1
  48. package/dist/{index-SBUmCh1d.js → index-DMVrUXQ_.js} +24693 -24887
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +527 -545
  51. package/dist/{javascript-DfnOr1Ii.js → javascript-WkNiZVyd.js} +1 -1
  52. package/dist/{jsonMode-BdpGEO93.js → jsonMode-vJRocp88.js} +1 -1
  53. package/dist/{liquid-ejpB3GGU.js → liquid-DmPTZVVo.js} +1 -1
  54. package/dist/{mdx-CY2zV62c.js → mdx-DVnhrUzP.js} +1 -1
  55. package/dist/{python-DxmSwD8h.js → python-KfFzTGjQ.js} +1 -1
  56. package/dist/{razor-DWt4nV6w.js → razor-Bd5uM0am.js} +1 -1
  57. package/dist/{tsMode-DzjTFsqs.js → tsMode-FauFmxDN.js} +1 -1
  58. package/dist/{typescript-DqMA40hu.js → typescript-CUPYQpTP.js} +1 -1
  59. package/dist/{xml-1m2BJaOO.js → xml-DZ04N_an.js} +1 -1
  60. package/dist/{yaml-ChNaTovl.js → yaml-DJ8n3lsB.js} +1 -1
  61. package/package.json +1 -1
  62. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +0 -3
  63. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +0 -2
  64. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +0 -4
  65. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +0 -4
  66. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +0 -171
  67. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +0 -2
  68. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +0 -5
  69. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +0 -5
  70. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -27
  71. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +0 -2
  72. package/dist/Pages/Applications/DevtronApps/index.d.ts +0 -1
  73. package/dist/Pages/Applications/index.d.ts +0 -1
  74. package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +0 -3
  75. package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +0 -1
  76. package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +0 -2
  77. package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +0 -6
  78. package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +0 -2
  79. package/dist/Shared/Components/SelectPicker/constants.d.ts +0 -5
  80. /package/dist/Pages/{Applications/DevtronApps/Details/CDPipeline → CDPipeline}/index.d.ts +0 -0
@@ -138,7 +138,6 @@ export interface StepType {
138
138
  inlineStepDetail?: InlineStepDetailType;
139
139
  pluginRefStepDetail?: PluginRefStepDetailType;
140
140
  triggerIfParentStageFail: boolean;
141
- isMandatory?: boolean;
142
141
  }
143
142
  export interface BuildStageType {
144
143
  id: number;
@@ -5,7 +5,6 @@ export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
5
5
  export declare const DOCUMENTATION_VERSION = "/v/v0.7";
6
6
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
7
  export declare const DOCUMENTATION: {
8
- APP_METRICS: string;
9
8
  APP_TAGS: string;
10
9
  APP_OVERVIEW_TAGS: string;
11
10
  BLOB_STORAGE: string;
@@ -49,7 +48,6 @@ export declare const URLS: {
49
48
  export declare const ROUTES: {
50
49
  APP: string;
51
50
  APP_ARTIFACT_PROMOTE_MATERIAL: string;
52
- APP_TEMPLATE_DATA: string;
53
51
  PROJECT_LIST_MIN: string;
54
52
  USER_CHECK_ROLE: string;
55
53
  IMAGE_TAGGING: string;
@@ -252,7 +250,6 @@ export declare const API_STATUS_CODES: {
252
250
  PERMISSION_DENIED: number;
253
251
  NOT_FOUND: number;
254
252
  EXPECTATION_FAILED: number;
255
- LOCKED: number;
256
253
  };
257
254
  export declare enum SERVER_MODE {
258
255
  EA_ONLY = "EA_ONLY",
@@ -1,27 +1,25 @@
1
- import { PluginDataStoreType } from '../Shared';
1
+ import { PipelineFormType } from '../Pages/CDPipeline';
2
+ import { PluginDataStoreType, PluginDetailPayloadType, ResourceKindType } from '../Shared';
2
3
  import { VariableType } from './CIPipeline.Types';
3
4
  import { ServerErrors } from './ServerError';
4
- import { ResponseType } from './Types';
5
5
  export declare enum ApplyPolicyToStage {
6
6
  PRE_CI = "PRE_CI",
7
7
  POST_CI = "POST_CI",
8
- PRE_OR_POST_CI = "PRE_OR_POST_CI"
8
+ /**
9
+ * @deprecated in mandatory plugin policy v2
10
+ */
11
+ PRE_OR_POST_CI = "PRE_OR_POST_CI",
12
+ PRE_CD = "PRE_CD",
13
+ POST_CD = "POST_CD"
9
14
  }
10
15
  export declare enum PluginRequiredStage {
11
- PRE_CI = "preBuildStage",
12
- POST_CI = "postBuildStage",
13
- PRE_OR_POST_CI = "PRE_OR_POST_CI"
16
+ PRE_STAGE = "preBuildStage",
17
+ POST_STAGE = "postBuildStage",
18
+ PRE_OR_POST_STAGE = "PRE_OR_POST_CI"
14
19
  }
15
20
  export interface DefinitionSourceType {
16
- projectName: string;
17
- isDueToProductionEnvironment: boolean;
18
- isDueToLinkedPipeline: boolean;
19
- policyName: string;
20
- appName?: string;
21
- clusterName?: string;
22
- environmentName?: string;
23
- branchNames?: string[];
24
- ciPipelineName?: string;
21
+ policyNames: string[];
22
+ linkedCIPipelineNames?: string[];
25
23
  }
26
24
  export interface MandatoryPluginDetailType {
27
25
  id: number;
@@ -33,7 +31,7 @@ export interface MandatoryPluginDetailType {
33
31
  applied?: boolean;
34
32
  inputVariables?: VariableType[];
35
33
  outputVariables?: VariableType[];
36
- definitionSources?: DefinitionSourceType[];
34
+ definitionSources?: DefinitionSourceType;
37
35
  }
38
36
  export interface MandatoryPluginDataType {
39
37
  pluginData: MandatoryPluginDetailType[];
@@ -45,20 +43,58 @@ export interface ProcessPluginDataReturnType {
45
43
  pluginDataStore: PluginDataStoreType;
46
44
  mandatoryPluginsError?: ServerErrors;
47
45
  }
46
+ export type ProcessPluginDataCIParamsType = {
47
+ resourceKind: ResourceKindType.ciPipeline;
48
+ ciPipelineId: number;
49
+ /**
50
+ * Comma separated branch names used for v1 api
51
+ * For v2 format is [branchName1],[branchName2]
52
+ */
53
+ branchName?: string;
54
+ envName?: never;
55
+ };
56
+ export type ProcessPluginDataCDParamsType = {
57
+ resourceKind: ResourceKindType.cdPipeline;
58
+ envName?: string;
59
+ ciPipelineId?: never;
60
+ branchName?: never;
61
+ };
62
+ export type ProcessPluginDataParamsType = {
63
+ formData: PipelineFormType;
64
+ pluginDataStoreState: PluginDataStoreType;
65
+ appId: number;
66
+ appName: string;
67
+ /**
68
+ * Would be sent in case we have to get data for steps
69
+ */
70
+ requiredPluginIds?: PluginDetailPayloadType['pluginId'];
71
+ } & (ProcessPluginDataCIParamsType | ProcessPluginDataCDParamsType);
48
72
  export declare enum ConsequenceAction {
73
+ /**
74
+ * This is used if the policy is enforced immediately.
75
+ */
49
76
  BLOCK = "BLOCK",
77
+ /**
78
+ * This is used if the policy will be enforced after a certain timestamp.
79
+ */
50
80
  ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
81
+ /**
82
+ * This is used if the policy is not enforced yet (just to show waring).
83
+ */
51
84
  ALLOW_FOREVER = "ALLOW_FOREVER"
52
85
  }
53
- export interface ConsequenceType {
54
- action: ConsequenceAction;
86
+ export type ConsequenceType = {
87
+ action: Exclude<ConsequenceAction, ConsequenceAction.ALLOW_UNTIL_TIME>;
88
+ metadataField?: never | null;
89
+ } | {
90
+ action: ConsequenceAction.ALLOW_UNTIL_TIME;
91
+ /**
92
+ * Denotes the time till which the policy enforcement is relaxed
93
+ */
55
94
  metadataField: string;
56
- }
95
+ };
57
96
  export interface BlockedStateData {
58
97
  isOffendingMandatoryPlugin: boolean;
59
98
  isCITriggerBlocked: boolean;
60
99
  ciBlockState: ConsequenceType;
61
100
  }
62
- export interface GetBlockedStateResponse extends ResponseType {
63
- result?: BlockedStateData;
64
- }
@@ -2,8 +2,8 @@ import { default as React, ReactNode, CSSProperties, ReactElement } from 'react'
2
2
  import { Placement } from 'tippy.js';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
5
6
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
6
- import { RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
9
9
  *
@@ -462,7 +462,7 @@ export interface DownstreamNodesEnvironmentsType {
462
462
  environmentId: number;
463
463
  environmentName: string;
464
464
  }
465
- export interface CommonNodeAttr {
465
+ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTriggerBlocked' | 'pluginBlockState'> {
466
466
  connectingCiPipelineId?: number;
467
467
  parents: string | number[] | string[];
468
468
  x: number;
@@ -512,15 +512,10 @@ export interface CommonNodeAttr {
512
512
  approvalUsers?: string[];
513
513
  userApprovalConfig?: UserApprovalConfigType;
514
514
  requestedUserId?: number;
515
- showPluginWarning?: boolean;
515
+ showPluginWarning: boolean;
516
516
  helmPackageName?: string;
517
517
  isVirtualEnvironment?: boolean;
518
518
  deploymentAppType?: DeploymentAppTypes;
519
- isCITriggerBlocked?: boolean;
520
- ciBlockState?: {
521
- action: any;
522
- metadataField: string;
523
- };
524
519
  appReleaseTagNames?: string[];
525
520
  tagsEditable?: boolean;
526
521
  isGitOpsRepoNotConfigured?: boolean;
@@ -661,8 +656,6 @@ export interface AppEnvironment {
661
656
  isProtected?: boolean;
662
657
  pipelineId?: number;
663
658
  latestCdWorkflowRunnerId?: number;
664
- commits?: string[];
665
- ciArtifactId?: number;
666
659
  }
667
660
  export interface Strategy {
668
661
  deploymentTemplate: string;
@@ -679,7 +672,7 @@ export interface CDStageConfigMapSecretNames {
679
672
  configMaps: any[];
680
673
  secrets: any[];
681
674
  }
682
- export interface PrePostDeployStageType {
675
+ export interface PrePostDeployStageType extends MandatoryPluginBaseStateType {
683
676
  isValid: boolean;
684
677
  steps: TaskErrorObj[];
685
678
  triggerType: string;
@@ -716,6 +709,8 @@ export interface CdPipeline {
716
709
  preDeployStage?: PrePostDeployStageType;
717
710
  postDeployStage?: PrePostDeployStageType;
718
711
  isProdEnv?: boolean;
712
+ isGitOpsRepoNotConfigured?: boolean;
713
+ isDeploymentBlocked?: boolean;
719
714
  }
720
715
  export interface ExternalCiConfig {
721
716
  id: number;
@@ -781,6 +776,12 @@ export interface CiPipeline {
781
776
  isOffendingMandatoryPlugin?: boolean;
782
777
  pipelineType?: string;
783
778
  }
779
+ export interface DeploymentChartVersionType {
780
+ chartRefId: number;
781
+ chartVersion: string;
782
+ chartType: string;
783
+ type: number;
784
+ }
784
785
  export interface ChartVersionAndTypeSelectorProps {
785
786
  setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
786
787
  }
@@ -0,0 +1 @@
1
+ export { getDeploymentStageTitle } from './utils';
@@ -0,0 +1,2 @@
1
+ import { DeploymentStageType } from '../../../Shared/constants';
2
+ export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
@@ -1,2 +1 @@
1
1
  export * from './AppConfigurations';
2
- export * from './CDPipeline';
@@ -1,7 +1,7 @@
1
- import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
2
- import { DeploymentAppTypes, UserApprovalConfigType } from '../../../../../Common/Types';
3
- import { DeploymentStrategy } from '../../../../../Shared/Components';
4
- import { EnvListMinDTO } from '../../../../../Shared/types';
1
+ import { BuildStageType, FormType } from '../../Common/CIPipeline.Types';
2
+ import { DeploymentAppTypes, UserApprovalConfigType } from '../../Common/Types';
3
+ import { DeploymentStrategy } from '../../Shared/Components';
4
+ import { EnvListMinDTO } from '../../Shared/types';
5
5
  interface ConfigSecretType {
6
6
  label: string;
7
7
  value: string;
@@ -1,3 +1,3 @@
1
- import { DescriptorProps } from './types';
2
- declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
1
+ import { BuildInfraDescriptorProps } from './types';
2
+ declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: BuildInfraDescriptorProps) => JSX.Element;
3
3
  export default Descriptor;
@@ -48,7 +48,7 @@ export declare enum BuildInfraProfileVariants {
48
48
  NORMAL = "NORMAL",
49
49
  CUSTOM = "CUSTOM"
50
50
  }
51
- export interface DescriptorProps {
51
+ export interface BuildInfraDescriptorProps {
52
52
  /**
53
53
  * In case we want to restrict the max-width
54
54
  */
@@ -1,3 +1,4 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
- export * from './Applications';
3
+ export * from './CDPipeline';
4
+ export * from './App';
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
63
63
  * <Button icon={<ICCube />} ariaLabel="Label" />
64
64
  * ```
65
65
  */
66
- declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, ...props }: ButtonProps) => JSX.Element;
66
+ declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, ...props }: ButtonProps) => JSX.Element;
67
67
  export default Button;
@@ -74,12 +74,6 @@ export type ButtonProps = ({
74
74
  * @default false
75
75
  */
76
76
  disabled?: boolean;
77
- /**
78
- * Determines if the button should expand to fill the full width of its container.
79
- *
80
- * @default false
81
- */
82
- fullWidth?: boolean;
83
77
  } & ({
84
78
  /**
85
79
  * If true, the tooltip is shown for the button
@@ -1,2 +1,2 @@
1
1
  import { DeploymentHistoryConfigDiffProps } from './types';
2
- export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, resourceId, renderRunSource, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, runSource, resourceId, renderRunSource, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DeploymentHistoryDiffDetailedProps } from './types';
2
- export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, triggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, runSource, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
@@ -3,4 +3,4 @@ import { History } from '../types';
3
3
  import { DeploymentHistoryConfigDiffProps } from './types';
4
4
  export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string, hideDiffState: boolean) => JSX.Element;
5
5
  export declare const renderPipelineDeploymentStatusIcon: (status: string) => JSX.Element;
6
- export declare const renderPipelineDeploymentOptionDescription: ({ stage, triggeredBy, triggeredByEmail, artifact, renderRunSource, resourceId, runSource, }: Pick<History, "triggeredBy" | "triggeredByEmail" | "artifact" | "stage" | "runSource"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId">) => JSX.Element;
6
+ export declare const renderPipelineDeploymentOptionDescription: ({ stage, triggeredBy, triggeredByEmail, artifact, renderRunSource, resourceId, runSource, }: Pick<History, "triggeredBy" | "triggeredByEmail" | "artifact" | "stage"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId" | "runSource">) => JSX.Element;
@@ -1,16 +1,17 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
3
3
  import { EnvResourceType } from '../../../Services';
4
- import { History, HistoryLogsProps } from '../types';
4
+ import { History, HistoryLogsProps, RunSourceType } from '../types';
5
5
  export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
6
6
  appName: string;
7
7
  envName: string;
8
8
  pipelineId: number;
9
9
  wfrId: number;
10
+ runSource: RunSourceType;
10
11
  triggerHistory: Map<number, History>;
11
12
  setFullScreenView: (fullscreen: boolean) => void;
12
13
  }
13
- export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'triggerHistory'>> & {
14
+ export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'runSource'>> & {
14
15
  pipelineDeployments: History[];
15
16
  previousWfrId: number;
16
17
  convertVariables: boolean;
@@ -8,7 +8,7 @@ export declare const getPipelineDeploymentsWfrIds: ({ pipelineDeployments, wfrId
8
8
  currentWfrId: number;
9
9
  previousWfrId: number;
10
10
  };
11
- export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId, triggerHistory, }: Required<Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId" | "triggerHistory">> & {
11
+ export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId, runSource, }: Required<Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "runSource" | "resourceId">> & {
12
12
  pipelineDeployments: History[];
13
13
  wfrId: number;
14
14
  }) => {
@@ -1,2 +1,2 @@
1
1
  import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
2
- export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, errorConfig, showDetailedDiffState, hideDiffState, renderedInDrawer, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
2
+ export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, showDetailedDiffState, hideDiffState, renderedInDrawer, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { SortingOrder } from '../../../Common/Constants';
2
- import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, TemplateListDTO } from '../../Services';
3
- import { ManifestTemplateDTO } from '../../../Pages/Applications';
2
+ import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, ManifestTemplateDTO } from '../../Services';
4
3
  import { DeploymentHistoryDetail } from '../CICDHistory';
5
4
  import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
6
5
  import { SelectPickerProps } from '../SelectPicker';
@@ -38,7 +37,6 @@ export type DeploymentConfigDiffSelectPickerProps = {
38
37
  selectPickerProps: SelectPickerProps;
39
38
  };
40
39
  export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
41
- Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
42
40
  diffState: DeploymentConfigListItem['diffState'];
43
41
  }
44
42
  export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
@@ -85,7 +83,7 @@ export interface DeploymentConfigDiffProps {
85
83
  };
86
84
  renderedInDrawer?: boolean;
87
85
  }
88
- export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig' | 'errorConfig' | 'isNavHelpTextShowingError' | 'showDetailedDiffState' | 'hideDiffState'> {
86
+ export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'isNavHelpTextShowingError' | 'tabConfig' | 'showDetailedDiffState' | 'hideDiffState'> {
89
87
  }
90
88
  export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig' | 'scopeVariablesConfig' | 'showDetailedDiffState' | 'hideDiffState'> {
91
89
  }
@@ -101,13 +99,9 @@ export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends
101
99
  export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
102
100
  currentList: ManifestTemplateDTO;
103
101
  compareList: ManifestTemplateDTO;
104
- compareToTemplateOptions?: never;
105
- compareWithTemplateOptions?: never;
106
102
  } : {
107
103
  currentList: AppEnvDeploymentConfigDTO;
108
104
  compareList: AppEnvDeploymentConfigDTO;
109
- compareToTemplateOptions?: TemplateListDTO[];
110
- compareWithTemplateOptions?: TemplateListDTO[];
111
105
  }) & {
112
106
  getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
113
107
  isManifestView?: IsManifestView;
@@ -28,7 +28,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
28
28
  *
29
29
  * @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
30
30
  */
31
- export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
31
+ export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
32
32
  configList: DeploymentConfigDiffProps["configList"];
33
33
  navList: DeploymentConfigDiffProps["navList"];
34
34
  collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
@@ -1,2 +1,2 @@
1
1
  import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
2
- export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, errorConfig, showDetailedDiffState, hideDiffState, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
2
+ export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, showDetailedDiffState, hideDiffState, }: 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;
@@ -1,2 +1,3 @@
1
1
  export * from './FeatureDescriptionModal';
2
2
  export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
3
+ export * from './types';
@@ -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,3 +1,3 @@
1
1
  import { InfoIconTippyProps } from '../../../Common/Types';
2
- declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, }: InfoIconTippyProps) => JSX.Element;
2
+ declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -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: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
6
+ export declare const getParentPluginList: (params?: Partial<GetParentPluginListPayloadType>) => Promise<ResponseType<MinParentPluginDTO[]>>;
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { VariableType } from '../../../Common';
2
+ import { ConsequenceType, VariableType } from '../../../Common';
3
3
  import { BaseFilterQueryParams } from '../../types';
4
4
  import { ImageWithFallbackProps } from '../ImageWithFallback';
5
5
  import { getPluginStoreData } from './service';
@@ -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[];
@@ -184,4 +187,18 @@ export interface PluginTagsContainerProps {
184
187
  export interface PluginImageContainerProps extends Pick<ImageWithFallbackProps, 'imageProps'> {
185
188
  fallbackImageClassName?: string;
186
189
  }
190
+ export declare enum PipelineStageTaskActionModalType {
191
+ DELETE = "DELETE",
192
+ MOVE_PLUGIN = "MOVE_PLUGIN"
193
+ }
194
+ export interface PipelineStageTaskActionModalStateType {
195
+ type: PipelineStageTaskActionModalType;
196
+ pluginId: PluginDetailType['id'];
197
+ taskIndex: number;
198
+ }
199
+ export interface MandatoryPluginBaseStateType {
200
+ isOffendingMandatoryPlugin: boolean;
201
+ isTriggerBlocked: boolean;
202
+ pluginBlockState: ConsequenceType;
203
+ }
187
204
  export {};
@@ -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, IsMulti extends boolean>({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "icon" | "showSelectedOptionIcon">) => JSX.Element;
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;
@@ -44,17 +44,24 @@ declare module 'react-select/base' {
44
44
  * Imp Note: The menu open/close needs to handled by the consumer in this case
45
45
  */
46
46
  renderCustomOptions?: () => ReactElement;
47
+ /**
48
+ * Icon to be rendered in the control
49
+ */
50
+ icon?: ReactElement;
51
+ /**
52
+ * If true, the selected option icon is shown in the container.
53
+ * startIcon has higher priority than endIcon.
54
+ *
55
+ * @default 'true'
56
+ */
57
+ showSelectedOptionIcon?: boolean;
47
58
  }
48
59
  }
49
60
  export declare enum SelectPickerVariantType {
50
61
  DEFAULT = "default",
51
62
  BORDER_LESS = "border-less"
52
63
  }
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;
64
+ 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
65
  /**
59
66
  * Error message for the select
60
67
  */
@@ -67,23 +74,16 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
67
74
  * Label for the select. if required is added, the corresponding * is also added
68
75
  */
69
76
  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
77
  /**
78
78
  * Custom selected options count for use cases like filters
79
79
  */
80
80
  customSelectedOptionsCount?: number;
81
81
  /**
82
- * Size of select
82
+ * Height of the dropdown
83
83
  *
84
84
  * @default 'ComponentSizeType.medium'
85
85
  */
86
- size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large | ComponentSizeType.small>;
86
+ size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
87
87
  /**
88
88
  * Content to be shown in a tippy when disabled
89
89
  */
@@ -145,6 +145,14 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
145
145
  * @default false
146
146
  */
147
147
  isCreatable?: boolean;
148
+ /**
149
+ * If false, the no options message is not shown
150
+ *
151
+ * Note: Handling for the menu distortion needs to be handled explicitly in this case
152
+ *
153
+ * @default true
154
+ */
155
+ shouldShowNoOptionsMessage?: boolean;
148
156
  } & (IsMulti extends true ? {
149
157
  isMulti: IsMulti | boolean;
150
158
  multiSelectProps?: {
@@ -168,7 +176,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
168
176
  export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
169
177
  isGroupHeadingSelectable: boolean;
170
178
  };
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'> {
179
+ 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
180
  appliedFilterOptions: SelectPickerOptionType[];
173
181
  handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
174
182
  }
@@ -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>;