@devtron-labs/devtron-fe-common-lib 0.5.0-beta-1 → 0.5.0-beta-3

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 (83) hide show
  1. package/dist/Common/Constants.d.ts +0 -3
  2. package/dist/Common/Helper.d.ts +1 -0
  3. package/dist/Common/Toggle/Toggle.d.ts +2 -1
  4. package/dist/Common/Types.d.ts +6 -2
  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/index.d.ts +2 -1
  10. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +2 -0
  11. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +2 -0
  12. package/dist/Shared/Components/CICDHistory/{DeploymentHistoryDiff → DeploymentHistoryConfigDiff}/DeploymentHistoryDiffView.d.ts +1 -1
  13. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +6 -0
  14. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/index.d.ts +2 -0
  15. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +35 -0
  16. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +20 -0
  17. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  18. package/dist/Shared/Components/CICDHistory/index.d.ts +1 -1
  19. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -4
  20. package/dist/Shared/Components/Collapse/Collapse.d.ts +6 -1
  21. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
  22. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +6 -0
  23. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +28 -12
  24. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +3 -2
  25. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
  26. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
  27. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
  28. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
  29. package/dist/Shared/Components/SelectPicker/type.d.ts +8 -3
  30. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -9
  31. package/dist/Shared/Components/index.d.ts +0 -1
  32. package/dist/Shared/Helpers.d.ts +13 -0
  33. package/dist/Shared/Hooks/useForm/useForm.d.ts +26 -29
  34. package/dist/Shared/Hooks/useForm/useForm.types.d.ts +8 -15
  35. package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
  36. package/dist/Shared/Services/app.service.d.ts +4 -1
  37. package/dist/Shared/Services/app.types.d.ts +53 -42
  38. package/dist/Shared/constants.d.ts +1 -3
  39. package/dist/Shared/types.d.ts +0 -12
  40. package/dist/assets/index.css +1 -1
  41. package/dist/{cssMode-CcDx4N1V.js → cssMode-BlfpXcRK.js} +1 -1
  42. package/dist/{freemarker2-DeqGz2I9.js → freemarker2-BOScfwOt.js} +1 -1
  43. package/dist/{handlebars-DqyEZAW0.js → handlebars-Il5XTYBA.js} +1 -1
  44. package/dist/{html-Dbv5mKnu.js → html-DVAN4oVg.js} +1 -1
  45. package/dist/{htmlMode-DKIS0Wp1.js → htmlMode-2cUDXYNV.js} +1 -1
  46. package/dist/{index-Bk95C8WS.js → index-BDmJgeUH.js} +29265 -29170
  47. package/dist/index.js +523 -536
  48. package/dist/{javascript-CcKm78Rp.js → javascript-CsvkGfDF.js} +1 -1
  49. package/dist/{jsonMode-D9SaAYqJ.js → jsonMode-D2OkD684.js} +1 -1
  50. package/dist/{liquid-DYLkezXd.js → liquid-Ca0-mc8F.js} +1 -1
  51. package/dist/{mdx-B8NW5l-H.js → mdx-C5kuaEoV.js} +1 -1
  52. package/dist/{python-fSby07Yv.js → python-CRaFJp_v.js} +1 -1
  53. package/dist/{razor-fivLNmXW.js → razor-DQ6-9JDC.js} +1 -1
  54. package/dist/{tsMode-c6h3SHwD.js → tsMode-Q7tQMIUt.js} +1 -1
  55. package/dist/{typescript-MiiYpzPG.js → typescript-ChSyq2A2.js} +1 -1
  56. package/dist/{xml-DVLT2zo0.js → xml-Bt9p71cu.js} +1 -1
  57. package/dist/{yaml-BGAuLRlJ.js → yaml-6FqY-tTr.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +0 -3
  60. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +0 -2
  61. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +0 -4
  62. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +0 -4
  63. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +0 -171
  64. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +0 -2
  65. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +0 -5
  66. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +0 -5
  67. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -27
  68. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +0 -2
  69. package/dist/Pages/Applications/DevtronApps/index.d.ts +0 -1
  70. package/dist/Pages/Applications/index.d.ts +0 -1
  71. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +0 -3
  72. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +0 -3
  73. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +0 -3
  74. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +0 -3
  75. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +0 -3
  76. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +0 -35
  77. package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +0 -3
  78. package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +0 -1
  79. package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +0 -2
  80. package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +0 -6
  81. package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +0 -2
  82. package/dist/Shared/Components/SelectPicker/constants.d.ts +0 -5
  83. /package/dist/Pages/{Applications/DevtronApps/Details/CDPipeline → CDPipeline}/index.d.ts +0 -0
@@ -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",
@@ -120,4 +120,5 @@ 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);
123
124
  export {};
@@ -1,4 +1,4 @@
1
- declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, ...props }: {
1
+ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, ...props }: {
2
2
  [x: string]: any;
3
3
  selected?: boolean;
4
4
  onSelect?: any;
@@ -8,5 +8,6 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
8
8
  dataTestId?: string;
9
9
  Icon?: any;
10
10
  iconClass?: string;
11
+ throttleOnChange?: boolean;
11
12
  }) => JSX.Element;
12
13
  export default Toggle;
@@ -661,8 +661,6 @@ export interface AppEnvironment {
661
661
  isProtected?: boolean;
662
662
  pipelineId?: number;
663
663
  latestCdWorkflowRunnerId?: number;
664
- commits?: string[];
665
- ciArtifactId?: number;
666
664
  }
667
665
  export interface Strategy {
668
666
  deploymentTemplate: string;
@@ -781,6 +779,12 @@ export interface CiPipeline {
781
779
  isOffendingMandatoryPlugin?: boolean;
782
780
  pipelineType?: string;
783
781
  }
782
+ export interface DeploymentChartVersionType {
783
+ chartRefId: number;
784
+ chartVersion: string;
785
+ chartType: string;
786
+ type: number;
787
+ }
784
788
  export interface ChartVersionAndTypeSelectorProps {
785
789
  setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
786
790
  }
@@ -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,4 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
- export * from './Applications';
3
+ export * from './CDPipeline';
4
+ export * from './App';
@@ -0,0 +1,2 @@
1
+ import { DeploymentHistoryConfigDiffProps } from './types';
2
+ export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, runSource, resourceId, renderRunSource, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DeploymentHistoryDiffDetailedProps } from './types';
2
+ export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, runSource, renderRunSource, resourceId, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DeploymentTemplateHistoryType } from '../types';
2
- declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortingConfig, }: DeploymentTemplateHistoryType) => JSX.Element;
2
+ declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, sortingConfig, codeEditorKey, }: DeploymentTemplateHistoryType) => JSX.Element;
3
3
  export default DeploymentHistoryDiffView;
@@ -0,0 +1,6 @@
1
+ import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
2
+ import { History } from '../types';
3
+ import { DeploymentHistoryConfigDiffProps } from './types';
4
+ export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string) => JSX.Element;
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"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId" | "runSource">) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './DeploymentHistoryConfigDiff';
2
+ export { default as DeploymentHistoryDiffView } from './DeploymentHistoryDiffView';
@@ -0,0 +1,35 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
3
+ import { EnvResourceType } from '../../../Services';
4
+ import { History, HistoryLogsProps, RunSourceType } from '../types';
5
+ export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
6
+ appName: string;
7
+ envName: string;
8
+ pipelineId: number;
9
+ wfrId: number;
10
+ runSource: RunSourceType;
11
+ triggerHistory: Map<number, History>;
12
+ setFullScreenView: (fullscreen: boolean) => void;
13
+ }
14
+ export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'runSource'>> & {
15
+ pipelineDeployments: History[];
16
+ previousWfrId: number;
17
+ convertVariables: boolean;
18
+ setConvertVariables: Dispatch<SetStateAction<boolean>>;
19
+ };
20
+ export interface DeploymentHistoryConfigDiffQueryParams {
21
+ compareWfrId: number;
22
+ }
23
+ export interface DeploymentHistoryConfigDiffRouteParams {
24
+ resourceType: EnvResourceType;
25
+ resourceName: string;
26
+ }
27
+ export interface DeploymentHistoryParamsType {
28
+ appId: string;
29
+ pipelineId?: string;
30
+ historyComponent?: string;
31
+ baseConfigurationId?: string;
32
+ historyComponentName?: string;
33
+ envId?: string;
34
+ triggerId?: string;
35
+ }
@@ -0,0 +1,20 @@
1
+ import { SelectPickerOptionType } from '@Shared/Components/SelectPicker';
2
+ import { History } from '../types';
3
+ import { DeploymentHistoryConfigDiffProps } from './types';
4
+ export declare const getPipelineDeployments: (triggerHistory: DeploymentHistoryConfigDiffProps["triggerHistory"]) => History[];
5
+ export declare const getPipelineDeploymentsWfrIds: ({ pipelineDeployments, wfrId, }: {
6
+ pipelineDeployments: History[];
7
+ } & Pick<DeploymentHistoryConfigDiffProps, "wfrId">) => {
8
+ currentWfrId: number;
9
+ previousWfrId: number;
10
+ };
11
+ export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId, runSource, }: Required<Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "runSource" | "resourceId">> & {
12
+ pipelineDeployments: History[];
13
+ wfrId: number;
14
+ }) => {
15
+ currentDeployment: string;
16
+ pipelineDeploymentsOptions: SelectPickerOptionType<number>[];
17
+ };
18
+ export declare const parseDeploymentHistoryDiffSearchParams: (compareWfrId: number) => (searchParams: URLSearchParams) => {
19
+ compareWfrId: number;
20
+ };
@@ -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, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo, }: TriggerOutputProps) => 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, appName, }: 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 './DeploymentHistoryDiff';
14
+ export * from './DeploymentHistoryConfigDiff';
15
15
  export * from './CiPipelineSourceConfig';
16
16
  export * from './StatusFilterButtonComponent';
@@ -322,14 +322,13 @@ 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[]>>;
327
325
  deploymentAppType: DeploymentAppTypes;
328
326
  isBlobStorageConfigured: boolean;
329
327
  appReleaseTags: string[];
330
328
  tagsEditable: boolean;
331
329
  hideImageTaggingHardDelete: boolean;
332
330
  fetchIdData: FetchIdDataStatus;
331
+ appName: string;
333
332
  selectedEnvironmentName?: string;
334
333
  renderCIListHeader?: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
335
334
  renderDeploymentApprovalInfo?: (userApprovalMetadata: UserApprovalMetadataType) => JSX.Element;
@@ -343,7 +342,7 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
343
342
  scrollToTop: ReturnType<typeof useScrollable>[1];
344
343
  scrollToBottom: ReturnType<typeof useScrollable>[2];
345
344
  }
346
- export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
345
+ export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView' | 'appName' | 'triggerHistory'> {
347
346
  triggerDetails: History;
348
347
  loading: boolean;
349
348
  userApprovalMetadata: UserApprovalMetadataType;
@@ -393,7 +392,7 @@ export interface DeploymentTemplateHistoryType {
393
392
  isUnpublished?: boolean;
394
393
  isDeleteDraft?: boolean;
395
394
  rootClassName?: string;
396
- comparisonBodyClassName?: string;
395
+ codeEditorKey?: React.Key;
397
396
  sortingConfig?: {
398
397
  sortBy: string;
399
398
  sortOrder: SortingOrder;
@@ -1,2 +1,7 @@
1
1
  import { CollapseProps } from './types';
2
- export declare const Collapse: ({ expand, children }: CollapseProps) => JSX.Element;
2
+ /**
3
+ * Collapse component for expanding/collapsing content with smooth transitions.
4
+ * Dynamically calculates and applies height based on the content, with support
5
+ * for callback execution when the transition ends.
6
+ */
7
+ export declare const Collapse: ({ expand, onTransitionEnd, 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, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
2
+ export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, showDetailedDiffState, renderedInDrawer, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent, SVGProps } from 'react';
2
+ import { DeploymentConfigDiffState } from './DeploymentConfigDiff.types';
3
+ export declare const diffStateTextMap: Record<DeploymentConfigDiffState, string>;
4
+ export declare const diffStateIconMap: Record<DeploymentConfigDiffState, FunctionComponent<SVGProps<SVGSVGElement>>>;
5
+ export declare const diffStateTooltipTextMap: Record<DeploymentConfigDiffState, string>;
6
+ export declare const diffStateTextColorMap: Record<DeploymentConfigDiffState, `c${string}`>;
@@ -1,10 +1,15 @@
1
1
  import { SortingOrder } from '../../../Common/Constants';
2
- import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType } 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';
7
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
+ }
8
13
  export interface DeploymentConfigType {
9
14
  list: DeploymentHistoryDetail;
10
15
  heading: React.ReactNode;
@@ -12,10 +17,13 @@ export interface DeploymentConfigType {
12
17
  export interface DeploymentConfigListItem {
13
18
  id: string;
14
19
  title: string;
20
+ name?: string;
21
+ pathType: EnvResourceType;
15
22
  primaryConfig: DeploymentConfigType;
16
23
  secondaryConfig: DeploymentConfigType;
17
- hasDiff?: boolean;
18
- isDeploymentTemplate?: boolean;
24
+ diffState: DeploymentConfigDiffState;
25
+ singleView?: boolean;
26
+ groupHeader?: string;
19
27
  }
20
28
  export type DeploymentConfigDiffSelectPickerProps = {
21
29
  type: 'string';
@@ -29,7 +37,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
29
37
  selectPickerProps: SelectPickerProps;
30
38
  };
31
39
  export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
32
- hasDiff?: boolean;
40
+ diffState: DeploymentConfigListItem['diffState'];
33
41
  }
34
42
  export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
35
43
  items: DeploymentConfigDiffNavigationItem[];
@@ -39,14 +47,18 @@ export interface DeploymentConfigDiffProps {
39
47
  errorConfig?: {
40
48
  error: boolean;
41
49
  code: number;
50
+ message?: string;
51
+ redirectURL?: string;
42
52
  reload: () => void;
43
53
  };
44
54
  configList: DeploymentConfigListItem[];
55
+ showDetailedDiffState?: boolean;
45
56
  headerText?: string;
46
57
  scrollIntoViewId?: string;
47
58
  selectorsConfig: {
48
59
  primaryConfig: DeploymentConfigDiffSelectPickerProps[];
49
60
  secondaryConfig: DeploymentConfigDiffSelectPickerProps[];
61
+ hideDivider?: boolean;
50
62
  };
51
63
  sortingConfig?: {
52
64
  sortBy: string;
@@ -63,29 +75,33 @@ export interface DeploymentConfigDiffProps {
63
75
  activeTab: string;
64
76
  onClick: (tab: string) => void;
65
77
  };
78
+ scopeVariablesConfig?: {
79
+ convertVariables: boolean;
80
+ onConvertVariablesClick: () => void;
81
+ };
82
+ renderedInDrawer?: boolean;
66
83
  }
67
- export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
84
+ export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig' | 'showDetailedDiffState'> {
68
85
  }
69
- export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
86
+ export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig' | 'scopeVariablesConfig' | 'showDetailedDiffState'> {
70
87
  }
71
- export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
88
+ export type DeploymentConfigDiffAccordionProps = Pick<CollapseProps, 'onTransitionEnd'> & Pick<DeploymentConfigDiffProps, 'showDetailedDiffState'> & {
72
89
  id: string;
73
90
  title: string;
74
91
  children: React.ReactNode;
75
- hasDiff?: boolean;
92
+ diffState: DeploymentConfigDiffState;
76
93
  isExpanded?: boolean;
77
94
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
78
- }
95
+ };
79
96
  export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
80
97
  export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
81
98
  currentList: ManifestTemplateDTO;
82
99
  compareList: ManifestTemplateDTO;
83
- sortOrder?: never;
84
100
  } : {
85
101
  currentList: AppEnvDeploymentConfigDTO;
86
102
  compareList: AppEnvDeploymentConfigDTO;
87
- sortOrder?: SortingOrder;
88
103
  }) & {
89
104
  getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
90
105
  isManifestView?: IsManifestView;
106
+ convertVariables?: boolean;
91
107
  };
@@ -1,5 +1,6 @@
1
1
  import { DeploymentConfigDiffProps, AppEnvDeploymentConfigListParams } from '..';
2
- import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
2
+ import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, TemplateListDTO } from '../../Services/app.types';
3
+ export declare const getDeploymentTemplateData: (data: DeploymentTemplateDTO) => any;
3
4
  /**
4
5
  * Retrieves the draft data from the given configuration data object.
5
6
  *
@@ -27,7 +28,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
27
28
  *
28
29
  * @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
29
30
  */
30
- export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
31
+ export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
31
32
  configList: DeploymentConfigDiffProps["configList"];
32
33
  navList: DeploymentConfigDiffProps["navList"];
33
34
  collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
@@ -1,2 +1,2 @@
1
1
  import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
2
- export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
2
+ export declare const DeploymentConfigDiffAccordion: ({ diffState, showDetailedDiffState, children, title, id, isExpanded, onClick, onTransitionEnd, }: DeploymentConfigDiffAccordionProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
2
- export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
2
+ export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, scopeVariablesConfig, showDetailedDiffState, }: 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, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
2
+ export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, showDetailedDiffState, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export * from './DeploymentConfigDiff.component';
2
2
  export * from './DeploymentConfigDiff.types';
3
3
  export * from './DeploymentConfigDiff.utils';
4
+ export * from './DeploymentConfigDiff.constants';
@@ -4,11 +4,12 @@ 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';
7
8
  export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
8
9
  /**
9
10
  * Description to be displayed for the option
10
11
  */
11
- description?: string;
12
+ description?: ReactNode;
12
13
  /**
13
14
  * Icon at the start of the option
14
15
  */
@@ -17,6 +18,10 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
17
18
  * Icon at the end of the option
18
19
  */
19
20
  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'>>);
20
25
  }
21
26
  type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
22
27
  declare module 'react-select/base' {
@@ -74,11 +79,11 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
74
79
  */
75
80
  customSelectedOptionsCount?: number;
76
81
  /**
77
- * Size of select
82
+ * Height of the dropdown
78
83
  *
79
84
  * @default 'ComponentSizeType.medium'
80
85
  */
81
- size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large | ComponentSizeType.small>;
86
+ size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
82
87
  /**
83
88
  * Content to be shown in a tippy when disabled
84
89
  */
@@ -1,7 +1,6 @@
1
1
  import { LinkProps, NavLinkProps } from 'react-router-dom';
2
2
  import { ComponentSizeType } from '../../constants';
3
3
  import { DataAttributes } from '../../types';
4
- import { TooltipProps } from '@Common/Tooltip/types';
5
4
  type TabComponentProps<TabTypeProps> = TabTypeProps & DataAttributes;
6
5
  type ConditionalTabType = {
7
6
  /**
@@ -57,13 +56,6 @@ type ConditionalTabType = {
57
56
  */
58
57
  active?: never | false;
59
58
  };
60
- type TabTooltipProps = {
61
- shouldWrapTooltip: boolean;
62
- tooltipProps: TooltipProps;
63
- } | {
64
- shouldWrapTooltip?: never;
65
- tooltipProps?: never;
66
- };
67
59
  export type TabProps = {
68
60
  /**
69
61
  * Unique identifier for the tab.
@@ -105,7 +97,7 @@ export type TabProps = {
105
97
  * Disables the tab, preventing interaction and indicating an inactive state.
106
98
  */
107
99
  disabled?: boolean;
108
- } & ConditionalTabType & TabTooltipProps;
100
+ } & ConditionalTabType;
109
101
  export interface TabGroupProps {
110
102
  /**
111
103
  * Array of tabs to be rendered.
@@ -40,4 +40,3 @@ export * from './EditImageFormField';
40
40
  export * from './Collapse';
41
41
  export * from './Security';
42
42
  export * from './Button';
43
- export * from './InvalidYAMLTippy';
@@ -50,4 +50,17 @@ 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[]>;
53
66
  export {};
@@ -1,5 +1,5 @@
1
- import { BaseSyntheticEvent, ChangeEvent } from 'react';
2
- import { UseFormSubmitHandler, UseFormValidations, UseFormErrorHandler } from './useForm.types';
1
+ import { ChangeEvent, FormEvent } from 'react';
2
+ import { UseFormSubmitHandler, UseFormValidations } from './useForm.types';
3
3
  /**
4
4
  * A custom hook to manage form state, validation, and submission handling.
5
5
  *
@@ -16,19 +16,20 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
16
16
  * - 'onBlur': Validation occurs when the input loses focus.
17
17
  * @default 'onChange'
18
18
  */
19
- validationMode?: "onChange" | "onBlur" | "onSubmit";
19
+ validationMode?: "onChange" | "onBlur";
20
20
  }) => {
21
21
  /** The current form data. */
22
22
  data: T;
23
23
  /** An object containing validation errors for each form field. */
24
- errors: Partial<Record<keyof T, string[]>>;
25
- register: <Value extends unknown, SFnReturnType extends unknown, CustomComponent extends boolean>(name: keyof T, registerOptions?: {
26
- /**
27
- * A function to sanitize the input value.
28
- * @param value The input value.
29
- * @returns The sanitized value.
30
- */
31
- sanitizeFn?: (value: CustomComponent extends true ? Value : string) => SFnReturnType;
24
+ errors: Partial<Record<keyof T, string | string[]>>;
25
+ /**
26
+ * Registers form input fields with onChange, onBlur and onFocus handlers.
27
+ *
28
+ * @param name - The key of the form field to register.
29
+ * @param sanitizeFn - An optional function to sanitize the input value.
30
+ * @returns An object containing form field `name`, `onChange`, `onBlur` and `onFocus` event handlers.
31
+ */
32
+ register: <V extends unknown = string, S extends unknown = unknown>(name: keyof T, sanitizeFn?: (value: V) => S, registerOptions?: {
32
33
  /**
33
34
  * Prevents the input value from being trimmed.
34
35
  *
@@ -38,30 +39,26 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
38
39
  * @default false - By default, the input will be trimmed.
39
40
  */
40
41
  noTrim?: boolean;
41
- /** A boolean flag indicating if the input is a custom component. */
42
- isCustomComponent?: CustomComponent;
43
42
  }) => {
44
- onChange: (e: CustomComponent extends true ? Value : ChangeEvent<HTMLInputElement>) => void;
43
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
45
44
  onBlur: () => void;
46
45
  onFocus: () => void;
47
46
  name: keyof T;
48
47
  };
49
- handleSubmit: (onValid: UseFormSubmitHandler<T>, onError?: UseFormErrorHandler<T>) => (e?: BaseSyntheticEvent) => Promise<void>;
48
+ /**
49
+ * Handles form submission, validates all form fields, and calls the provided `onValid` function if valid.
50
+ *
51
+ * @param onValid - A function to handle valid form data on submission.
52
+ * @returns The event handler for form submission.
53
+ */
54
+ handleSubmit: (onValid: UseFormSubmitHandler<T>) => (e: FormEvent<HTMLFormElement>) => void;
55
+ /**
56
+ * Manually triggers validation for specific form fields.
57
+ *
58
+ * @param name - The key(s) of the form field(s) to validate.
59
+ * @returns The validation error(s), if any.
60
+ */
50
61
  trigger: (name: keyof T | (keyof T)[]) => (string | string[]) | (string | string[])[];
51
- setValue: (name: keyof T, value: T[keyof T], valueOptions?: {
52
- /** A boolean indicating whether to mark the field as dirty after setting the value. */
53
- shouldDirty?: boolean;
54
- /** A boolean indicating whether to mark the field as touched after setting the value. */
55
- shouldTouch?: boolean;
56
- }) => void;
57
- reset: (formData: T, resetOptions?: {
58
- /** A boolean indicating whether to retain the current dirty state of the form fields. */
59
- keepDirty?: boolean;
60
- /** A boolean indicating whether to retain the current touched state of the form fields. */
61
- keepTouched?: boolean;
62
- /** A boolean indicating whether to retain the current error state of the form fields. */
63
- keepErrors?: boolean;
64
- }) => void;
65
62
  /** An object representing additional form state. */
66
63
  formState: {
67
64
  /** An object indicating which fields have been touched (interacted with). */