@devtron-labs/devtron-fe-common-lib 0.5.1 → 0.5.2-beta-1

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 (86) hide show
  1. package/dist/Common/Constants.d.ts +3 -0
  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 +2 -6
  5. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +3 -0
  6. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +2 -0
  7. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +4 -0
  8. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +4 -0
  9. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +171 -0
  10. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -0
  11. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +5 -0
  12. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +5 -0
  13. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +27 -0
  14. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +2 -0
  15. package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/types.d.ts +4 -4
  16. package/dist/Pages/{App → Applications/DevtronApps/Details}/index.d.ts +1 -0
  17. package/dist/Pages/Applications/DevtronApps/index.d.ts +1 -0
  18. package/dist/Pages/Applications/index.d.ts +1 -0
  19. package/dist/Pages/index.d.ts +1 -2
  20. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  21. package/dist/Shared/Components/Button/types.d.ts +6 -0
  22. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +2 -0
  23. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +2 -0
  24. package/dist/Shared/Components/CICDHistory/{DeploymentHistoryDiff → DeploymentHistoryConfigDiff}/DeploymentHistoryDiffView.d.ts +1 -1
  25. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +6 -0
  26. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/index.d.ts +2 -0
  27. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +36 -0
  28. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +22 -0
  29. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  30. package/dist/Shared/Components/CICDHistory/index.d.ts +1 -1
  31. package/dist/Shared/Components/CICDHistory/types.d.ts +7 -5
  32. package/dist/Shared/Components/Collapse/Collapse.d.ts +6 -1
  33. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +4 -0
  34. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
  35. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +6 -0
  36. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +32 -11
  37. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +3 -2
  38. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
  39. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
  40. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
  41. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
  42. package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +3 -0
  43. package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +1 -0
  44. package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +2 -0
  45. package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +6 -0
  46. package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -0
  47. package/dist/Shared/Components/SelectPicker/constants.d.ts +5 -0
  48. package/dist/Shared/Components/SelectPicker/type.d.ts +8 -3
  49. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +9 -1
  50. package/dist/Shared/Components/index.d.ts +1 -0
  51. package/dist/Shared/Helpers.d.ts +13 -0
  52. package/dist/Shared/Hooks/useForm/useForm.d.ts +29 -26
  53. package/dist/Shared/Hooks/useForm/useForm.types.d.ts +15 -8
  54. package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
  55. package/dist/Shared/Services/app.service.d.ts +4 -1
  56. package/dist/Shared/Services/app.types.d.ts +66 -29
  57. package/dist/Shared/constants.d.ts +3 -1
  58. package/dist/Shared/types.d.ts +12 -0
  59. package/dist/assets/index.css +1 -1
  60. package/dist/{cssMode-CUNEXhu5.js → cssMode-C1J_MgKp.js} +1 -1
  61. package/dist/{freemarker2-DV7POtuF.js → freemarker2-DT_J_FKd.js} +1 -1
  62. package/dist/{handlebars-CNDtQMEk.js → handlebars-wAgu6jG3.js} +1 -1
  63. package/dist/{html-J67-LThI.js → html-CKH2Ofr8.js} +1 -1
  64. package/dist/{htmlMode-C08l0cVM.js → htmlMode-DR1Hd1NY.js} +1 -1
  65. package/dist/{index-C4yFLnbQ.js → index-fxrsvINy.js} +32132 -31657
  66. package/dist/index.js +550 -523
  67. package/dist/{javascript-DhDpkmSb.js → javascript-DEZfPpDG.js} +1 -1
  68. package/dist/{jsonMode-B9M2gunx.js → jsonMode-BPP14l3S.js} +1 -1
  69. package/dist/{liquid-AWI3tjqW.js → liquid-DzKGpZ_1.js} +1 -1
  70. package/dist/{mdx-B4YZV7v2.js → mdx-CXwgAbOa.js} +1 -1
  71. package/dist/{python-DlT9zfRV.js → python-PA7Qs7tp.js} +1 -1
  72. package/dist/{razor-DGhiFsZg.js → razor-BKiT4imG.js} +1 -1
  73. package/dist/{tsMode-CzwEiyV0.js → tsMode-DMeqzHkT.js} +1 -1
  74. package/dist/{typescript-BXxjU9IA.js → typescript-C6q-lYiG.js} +1 -1
  75. package/dist/{xml-Cru83Tz2.js → xml-D75Y4liE.js} +1 -1
  76. package/dist/{yaml-CYKBclGP.js → yaml--CruCt9K.js} +1 -1
  77. package/package.json +1 -1
  78. package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
  79. package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
  80. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +0 -3
  81. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +0 -3
  82. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +0 -3
  83. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +0 -3
  84. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +0 -3
  85. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +0 -35
  86. /package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/index.d.ts +0 -0
@@ -5,6 +5,7 @@ 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;
8
9
  APP_TAGS: string;
9
10
  APP_OVERVIEW_TAGS: string;
10
11
  BLOB_STORAGE: string;
@@ -48,6 +49,7 @@ export declare const URLS: {
48
49
  export declare const ROUTES: {
49
50
  APP: string;
50
51
  APP_ARTIFACT_PROMOTE_MATERIAL: string;
52
+ APP_TEMPLATE_DATA: string;
51
53
  PROJECT_LIST_MIN: string;
52
54
  USER_CHECK_ROLE: string;
53
55
  IMAGE_TAGGING: string;
@@ -250,6 +252,7 @@ export declare const API_STATUS_CODES: {
250
252
  PERMISSION_DENIED: number;
251
253
  NOT_FOUND: number;
252
254
  EXPECTATION_FAILED: number;
255
+ LOCKED: number;
253
256
  };
254
257
  export declare enum SERVER_MODE {
255
258
  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,6 +661,8 @@ export interface AppEnvironment {
661
661
  isProtected?: boolean;
662
662
  pipelineId?: number;
663
663
  latestCdWorkflowRunnerId?: number;
664
+ commits?: string[];
665
+ ciArtifactId?: number;
664
666
  }
665
667
  export interface Strategy {
666
668
  deploymentTemplate: string;
@@ -779,12 +781,6 @@ export interface CiPipeline {
779
781
  isOffendingMandatoryPlugin?: boolean;
780
782
  pipelineType?: string;
781
783
  }
782
- export interface DeploymentChartVersionType {
783
- chartRefId: number;
784
- chartVersion: string;
785
- chartType: string;
786
- type: number;
787
- }
788
784
  export interface ChartVersionAndTypeSelectorProps {
789
785
  setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
790
786
  }
@@ -0,0 +1,3 @@
1
+ import { DTApplicationMetricsFormFieldProps } from './types';
2
+ declare const DTApplicationMetricsFormField: ({ showApplicationMetrics, isLoading, selectedChart, isDisabled, toggleAppMetrics, isAppMetricsEnabled, onlyShowCurrentStatus, parsingError, restoreLastSavedYAML, }: DTApplicationMetricsFormFieldProps) => JSX.Element;
3
+ export default DTApplicationMetricsFormField;
@@ -0,0 +1,2 @@
1
+ import { GetResolvedDeploymentTemplateReturnType } from './types';
2
+ export declare const GET_RESOLVED_DEPLOYMENT_TEMPLATE_EMPTY_RESPONSE: GetResolvedDeploymentTemplateReturnType;
@@ -0,0 +1,4 @@
1
+ export * from './types';
2
+ export * from './service';
3
+ export { default as DTApplicationMetricsFormField } from './DTApplicationMetricsFormField';
4
+ export { GET_RESOLVED_DEPLOYMENT_TEMPLATE_EMPTY_RESPONSE } from './constants';
@@ -0,0 +1,4 @@
1
+ import { ResponseType } from '../../../../../../Common/Types';
2
+ import { GetDeploymentManifestProps, GetResolvedDeploymentTemplateProps, GetResolvedDeploymentTemplateReturnType, ResolvedDeploymentTemplateDTO } from './types';
3
+ export declare const getDeploymentManifest: (params: GetDeploymentManifestProps, abortSignal?: AbortSignal) => Promise<ResponseType<ResolvedDeploymentTemplateDTO>>;
4
+ export declare const getResolvedDeploymentTemplate: (params: GetResolvedDeploymentTemplateProps, signal?: AbortSignal) => Promise<GetResolvedDeploymentTemplateReturnType>;
@@ -0,0 +1,171 @@
1
+ import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
2
+ import { OverrideMergeStrategyType } from '../types';
3
+ export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
4
+ export interface DeploymentChartVersionType {
5
+ id: number | string;
6
+ version: string;
7
+ /**
8
+ * BEWARE: This field may or may not exist, not sure why it was there in first place
9
+ */
10
+ chartRefId?: number;
11
+ type: number;
12
+ deploymentTemplateHistoryId: number;
13
+ pipelineId: number;
14
+ environmentId: number;
15
+ name: string;
16
+ description?: string;
17
+ isAppMetricsSupported: boolean;
18
+ userUploaded?: boolean;
19
+ }
20
+ export interface DeploymentChartOptionType extends DeploymentChartVersionType {
21
+ value: string | number;
22
+ label: string;
23
+ kind?: DeploymentChartOptionkind;
24
+ }
25
+ export interface ChartMetadataType {
26
+ chartDescription: string;
27
+ }
28
+ export interface GetResolvedDeploymentTemplateReturnType {
29
+ resolvedData: string;
30
+ data: string;
31
+ areVariablesPresent: boolean;
32
+ }
33
+ export declare enum ValuesAndManifestFlagDTO {
34
+ DEPLOYMENT_TEMPLATE = 1,
35
+ MANIFEST = 2
36
+ }
37
+ type GetResolvedDeploymentTemplateCustomValuesPayloadType = {
38
+ /**
39
+ * String to be resolved
40
+ */
41
+ values: string;
42
+ type?: never;
43
+ deploymentTemplateHistoryId?: never;
44
+ pipelineId?: never;
45
+ };
46
+ type GetHistoricResolvedDeploymentTemplatePayloadType = {
47
+ values?: never;
48
+ type: TemplateListType;
49
+ deploymentTemplateHistoryId: number;
50
+ pipelineId: number;
51
+ };
52
+ type GetDeploymentTemplateAndManifestBasePayload = {
53
+ appId: number;
54
+ /**
55
+ * EnvId for the given VALUE
56
+ */
57
+ envId?: number;
58
+ chartRefId: number;
59
+ } & (GetHistoricResolvedDeploymentTemplatePayloadType | GetResolvedDeploymentTemplateCustomValuesPayloadType);
60
+ export type GetResolvedDeploymentTemplatePayloadType = {
61
+ valuesAndManifestFlag: ValuesAndManifestFlagDTO.DEPLOYMENT_TEMPLATE;
62
+ } & GetDeploymentTemplateAndManifestBasePayload;
63
+ export type GetResolvedDeploymentTemplateProps = GetResolvedDeploymentTemplatePayloadType;
64
+ export type GetDeploymentManifestProps = GetDeploymentTemplateAndManifestBasePayload;
65
+ export type GetDeploymentManifestPayloadType = {
66
+ valuesAndManifestFlag: ValuesAndManifestFlagDTO.MANIFEST;
67
+ } & GetDeploymentTemplateAndManifestBasePayload;
68
+ export interface ResolvedDeploymentTemplateDTO {
69
+ /**
70
+ * Template with encoded variables
71
+ */
72
+ data: string;
73
+ /**
74
+ * Template with resolved variables
75
+ */
76
+ resolvedData: string;
77
+ variableSnapshot: Record<string, string>;
78
+ }
79
+ export interface ManifestTemplateDTO extends Pick<ResolvedDeploymentTemplateDTO, 'data'> {
80
+ }
81
+ interface DeploymentTemplateChartConfigType {
82
+ id: number;
83
+ /**
84
+ * Not consumed on UI just need to send in payload while update
85
+ */
86
+ refChartTemplate: string;
87
+ /**
88
+ * Not consumed on UI just need to send in payload while update
89
+ */
90
+ refChartTemplateVersion: string;
91
+ chartRefId: number;
92
+ readme: string;
93
+ }
94
+ export interface SelectedChartDetailsType {
95
+ selectedChartRefId: number;
96
+ selectedChart: DeploymentChartVersionType;
97
+ }
98
+ interface EnvironmentConfigType {
99
+ id: number;
100
+ status: number;
101
+ manualReviewed: boolean;
102
+ active: boolean;
103
+ namespace: string;
104
+ }
105
+ interface BaseDeploymentTemplateConfigState {
106
+ chartConfig: DeploymentTemplateChartConfigType;
107
+ isOverridden?: never;
108
+ environmentConfig?: never;
109
+ mergeStrategy?: never;
110
+ }
111
+ interface EnvironmentOverrideDeploymentTemplateConfigState {
112
+ chartConfig?: never;
113
+ isOverridden: boolean;
114
+ environmentConfig: EnvironmentConfigType;
115
+ mergeStrategy: OverrideMergeStrategyType;
116
+ }
117
+ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
118
+ /**
119
+ * The first ever state of the deployment template
120
+ */
121
+ originalTemplate: Record<string, string>;
122
+ isAppMetricsEnabled: boolean;
123
+ readme: string;
124
+ schema: Record<string, string>;
125
+ guiSchema: string;
126
+ latestDraft?: DraftMetadataDTO;
127
+ editorTemplate: string;
128
+ editorTemplateWithoutLockedKeys: string;
129
+ }
130
+ export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
131
+ type DTApplicationMetricsReadOnlyProps = {
132
+ isLoading?: never;
133
+ selectedChart?: never;
134
+ isDisabled?: never;
135
+ toggleAppMetrics?: never;
136
+ /**
137
+ * @default - false
138
+ * If true, would only text depicting the information whether the application metrics is enabled or not
139
+ */
140
+ onlyShowCurrentStatus: true;
141
+ parsingError?: never;
142
+ restoreLastSavedYAML?: never;
143
+ };
144
+ type DTApplicationMetricsParseErrorProps = {
145
+ parsingError: string;
146
+ restoreLastSavedYAML: () => void;
147
+ } | {
148
+ parsingError?: never;
149
+ restoreLastSavedYAML?: never;
150
+ };
151
+ type DTApplicationMetricsActionProps = {
152
+ isLoading: boolean;
153
+ selectedChart: DeploymentChartVersionType;
154
+ isDisabled: boolean;
155
+ toggleAppMetrics: () => void;
156
+ onlyShowCurrentStatus?: false;
157
+ } & DTApplicationMetricsParseErrorProps;
158
+ export type DTApplicationMetricsFormFieldProps = {
159
+ isAppMetricsEnabled: boolean;
160
+ showApplicationMetrics: boolean;
161
+ } & (DTApplicationMetricsActionProps | DTApplicationMetricsReadOnlyProps);
162
+ export declare enum CompareFromApprovalOptionsValuesType {
163
+ APPROVAL_PENDING = 1,
164
+ VALUES_FROM_DRAFT = 2
165
+ }
166
+ export declare enum DryRunEditorMode {
167
+ APPROVAL_PENDING = "approvalPending",
168
+ VALUES_FROM_DRAFT = "valuesFromDraft",
169
+ PUBLISHED_VALUES = "publishedValues"
170
+ }
171
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const OverrideStrategyTippyContent: () => JSX.Element;
2
+ export default OverrideStrategyTippyContent;
@@ -0,0 +1,5 @@
1
+ import { ConfigHeaderTabType } from './types';
2
+ export declare const CONFIG_HEADER_TAB_VALUES: {
3
+ BASE_DEPLOYMENT_TEMPLATE: ConfigHeaderTabType[];
4
+ OVERRIDE: ConfigHeaderTabType[];
5
+ };
@@ -0,0 +1,5 @@
1
+ export * from './DeploymentTemplate';
2
+ export * from './types';
3
+ export * from './constants';
4
+ export { default as OverrideStrategyTippyContent } from './OverrideStrategyTippyContent';
5
+ export { getDeploymentStageTitle } from './utils';
@@ -0,0 +1,27 @@
1
+ import { ReactNode, SyntheticEvent } from 'react';
2
+ export declare enum ConfigHeaderTabType {
3
+ VALUES = "values",
4
+ INHERITED = "inherited",
5
+ DRY_RUN = "dryRun"
6
+ }
7
+ export declare enum ProtectConfigTabsType {
8
+ PUBLISHED = "published",
9
+ COMPARE = "compare",
10
+ EDIT_DRAFT = "editDraft"
11
+ }
12
+ export declare enum OverrideMergeStrategyType {
13
+ PATCH = "patch",
14
+ REPLACE = "replace"
15
+ }
16
+ export interface ConfigToolbarPopupMenuConfigType {
17
+ text: string;
18
+ onClick: (event: SyntheticEvent) => void;
19
+ dataTestId: string;
20
+ disabled?: boolean;
21
+ icon?: ReactNode | null;
22
+ variant?: 'default' | 'negative';
23
+ }
24
+ export declare enum ConfigToolbarPopupNodeType {
25
+ DISCARD_DRAFT = "discardDraft",
26
+ EDIT_HISTORY = "editHistory"
27
+ }
@@ -0,0 +1,2 @@
1
+ import { DeploymentStageType } from '../../../../../Shared/constants';
2
+ export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "deployment" | "pre-deployment" | "post-deployment";
@@ -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 +1,2 @@
1
1
  export * from './AppConfigurations';
2
+ export * from './CDPipeline';
@@ -0,0 +1 @@
1
+ export * from './Details';
@@ -0,0 +1 @@
1
+ export * from './DevtronApps';
@@ -1,4 +1,3 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
- export * from './CDPipeline';
4
- export * from './App';
3
+ export * from './Applications';
@@ -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, ...props }: ButtonProps) => JSX.Element;
66
+ declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, ...props }: ButtonProps) => JSX.Element;
67
67
  export default Button;
@@ -74,6 +74,12 @@ 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;
77
83
  } & ({
78
84
  /**
79
85
  * If true, the tooltip is shown for the button
@@ -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, isCompareDeploymentConfigNotAvailable, ...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, sortOrder, }: 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, hideDiffState: boolean) => 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,36 @@
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' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'runSource'>> & {
15
+ pipelineDeployments: History[];
16
+ previousWfrId: number;
17
+ convertVariables: boolean;
18
+ setConvertVariables: Dispatch<SetStateAction<boolean>>;
19
+ isCompareDeploymentConfigNotAvailable?: boolean;
20
+ };
21
+ export interface DeploymentHistoryConfigDiffQueryParams {
22
+ compareWfrId: number;
23
+ }
24
+ export interface DeploymentHistoryConfigDiffRouteParams {
25
+ resourceType: EnvResourceType;
26
+ resourceName: string;
27
+ }
28
+ export interface DeploymentHistoryParamsType {
29
+ appId: string;
30
+ pipelineId?: string;
31
+ historyComponent?: string;
32
+ baseConfigurationId?: string;
33
+ historyComponentName?: string;
34
+ envId?: string;
35
+ triggerId?: string;
36
+ }
@@ -0,0 +1,22 @@
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
+ };
21
+ export declare const isDeploymentHistoryConfigDiffNotFoundError: <T extends unknown>(res: PromiseSettledResult<T>) => boolean;
22
+ export declare const getDeploymentHistoryConfigDiffError: <T extends unknown>(res: PromiseSettledResult<T>) => any;
@@ -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,8 +392,11 @@ export interface DeploymentTemplateHistoryType {
393
392
  isUnpublished?: boolean;
394
393
  isDeleteDraft?: boolean;
395
394
  rootClassName?: string;
396
- comparisonBodyClassName?: string;
397
- sortOrder?: SortingOrder;
395
+ codeEditorKey?: React.Key;
396
+ sortingConfig?: {
397
+ sortBy: string;
398
+ sortOrder: SortingOrder;
399
+ };
398
400
  }
399
401
  export interface DeploymentHistoryDetailRes extends ResponseType {
400
402
  result?: DeploymentHistoryDetail;
@@ -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 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;
@@ -9,6 +9,10 @@ export interface CollapsibleListItem {
9
9
  * The subtitle of the list item.
10
10
  */
11
11
  subtitle?: string;
12
+ /**
13
+ * If true, the title will be rendered with line-through.
14
+ */
15
+ strikeThrough?: boolean;
12
16
  /**
13
17
  * Configuration for the icon.
14
18
  */
@@ -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, isNavHelpTextShowingError, tabConfig, errorConfig, showDetailedDiffState, hideDiffState, 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}`>;