@devtron-labs/devtron-fe-common-lib 0.3.5-beta-4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/{types.d.ts → DeploymentConfigDiff.types.d.ts} +25 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +9 -8
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +7 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-DBP9WI7Z.js → cssMode-J3JDChT2.js} +1 -1
- package/dist/{freemarker2-BVuQcjYq.js → freemarker2-Dtusk9e3.js} +1 -1
- package/dist/{handlebars-CnmVtbxe.js → handlebars-D8pkowq2.js} +1 -1
- package/dist/{html-C1tzOrj8.js → html-x3avb0CM.js} +1 -1
- package/dist/{htmlMode-B-5D3DnQ.js → htmlMode-CLS66t_u.js} +1 -1
- package/dist/{index-eOY7n2f3.js → index-oPBCZYbb.js} +17982 -17878
- package/dist/index.js +1 -1
- package/dist/{javascript-peWjmg28.js → javascript-ftMnqw_O.js} +1 -1
- package/dist/{jsonMode-6iMQV3Oq.js → jsonMode-CXcupX1c.js} +1 -1
- package/dist/{liquid-1EZZ6Izk.js → liquid-CIkh7QAQ.js} +1 -1
- package/dist/{mdx-DCQNMqpR.js → mdx-BnDg1g8Y.js} +1 -1
- package/dist/{python-7A7A_og3.js → python-Bm0f2fYo.js} +1 -1
- package/dist/{razor-DtFPu_ke.js → razor-DCUpFwGp.js} +1 -1
- package/dist/{tsMode-BwVC3y8U.js → tsMode-7d4Dwa-2.js} +1 -1
- package/dist/{typescript-BGkZ4wY3.js → typescript-CcwmuWSe.js} +1 -1
- package/dist/{xml-BEXgtGeh.js → xml-BmaGE9Ro.js} +1 -1
- package/dist/{yaml-DKY6ZD5e.js → yaml-nuLunV1x.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
|
|
2
|
-
export declare const LogResizeButton: ({
|
|
2
|
+
export declare const LogResizeButton: ({ fullScreenView, setFullScreenView }: LogResizeButtonType) => JSX.Element;
|
|
3
3
|
export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
|
|
4
4
|
export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, }: GitChangesType) => JSX.Element;
|
|
@@ -14,8 +14,6 @@ export declare enum FetchIdDataStatus {
|
|
|
14
14
|
SUSPEND = "SUSPEND"
|
|
15
15
|
}
|
|
16
16
|
export interface LogResizeButtonType {
|
|
17
|
-
onlyOnLogs?: boolean;
|
|
18
|
-
disableKeybindings?: boolean;
|
|
19
17
|
fullScreenView: boolean;
|
|
20
18
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
21
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffProps } from './types';
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
1
|
+
import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
package/dist/Shared/Components/DeploymentConfigDiff/{types.d.ts → DeploymentConfigDiff.types.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO } from '../../Services';
|
|
2
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, ManifestTemplateDTO } from '../../Services';
|
|
3
3
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
4
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
@@ -35,6 +35,11 @@ export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<Coll
|
|
|
35
35
|
}
|
|
36
36
|
export interface DeploymentConfigDiffProps {
|
|
37
37
|
isLoading?: boolean;
|
|
38
|
+
errorConfig?: {
|
|
39
|
+
error: boolean;
|
|
40
|
+
code: number;
|
|
41
|
+
reload: () => void;
|
|
42
|
+
};
|
|
38
43
|
configList: DeploymentConfigListItem[];
|
|
39
44
|
headerText?: string;
|
|
40
45
|
scrollIntoViewId?: string;
|
|
@@ -52,10 +57,15 @@ export interface DeploymentConfigDiffProps {
|
|
|
52
57
|
goBackURL?: string;
|
|
53
58
|
navHeading: string;
|
|
54
59
|
navHelpText?: string;
|
|
60
|
+
tabConfig?: {
|
|
61
|
+
tabs: string[];
|
|
62
|
+
activeTab: string;
|
|
63
|
+
onClick: (tab: string) => void;
|
|
64
|
+
};
|
|
55
65
|
}
|
|
56
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'> {
|
|
66
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
|
|
57
67
|
}
|
|
58
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
68
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
59
69
|
}
|
|
60
70
|
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
61
71
|
id: string;
|
|
@@ -66,3 +76,15 @@ export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps,
|
|
|
66
76
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
67
77
|
}
|
|
68
78
|
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
79
|
+
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
80
|
+
currentList: ManifestTemplateDTO;
|
|
81
|
+
compareList: ManifestTemplateDTO;
|
|
82
|
+
sortOrder?: never;
|
|
83
|
+
} : {
|
|
84
|
+
currentList: AppEnvDeploymentConfigDTO;
|
|
85
|
+
compareList: AppEnvDeploymentConfigDTO;
|
|
86
|
+
sortOrder?: SortingOrder;
|
|
87
|
+
}) & {
|
|
88
|
+
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
89
|
+
isManifestView?: IsManifestView;
|
|
90
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, EnvResourceType, TemplateListDTO } from '../../Services/app.types';
|
|
1
|
+
import { AppEnvDeploymentConfigListParams, DeploymentConfigDiffProps } from '..';
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
|
|
4
3
|
/**
|
|
5
4
|
* Retrieves the draft data from the given configuration data object.
|
|
6
5
|
*
|
|
@@ -19,14 +18,16 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
19
18
|
/**
|
|
20
19
|
* Generates a list of deployment configurations for application environments and identifies changes between the current and compare lists.
|
|
21
20
|
*
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @param
|
|
25
|
-
* @param
|
|
21
|
+
* @param params - An object containing the following properties:
|
|
22
|
+
* @param params.currentList - The current deployment configuration list.
|
|
23
|
+
* @param params.compareList - The deployment configuration list to compare against.
|
|
24
|
+
* @param params.getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
|
|
25
|
+
* @param params.isManifestView - A boolean that, when true, modifies the output for a manifest view.
|
|
26
|
+
* @param params.sortOrder - (Optional) The order in which to sort the deployment templates.
|
|
26
27
|
*
|
|
27
28
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
28
29
|
*/
|
|
29
|
-
export declare const getAppEnvDeploymentConfigList: (currentList
|
|
30
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
30
31
|
configList: DeploymentConfigDiffProps["configList"];
|
|
31
32
|
navList: DeploymentConfigDiffProps["navList"];
|
|
32
33
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffAccordionProps } from './types';
|
|
1
|
+
import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
|
|
2
2
|
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffMainProps } from './types';
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
1
|
+
import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffNavigationProps } from './types';
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
1
|
+
import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
@@ -197,6 +197,11 @@ export interface TemplateListDTO {
|
|
|
197
197
|
status?: string;
|
|
198
198
|
pipelineId?: number;
|
|
199
199
|
}
|
|
200
|
+
export interface ManifestTemplateDTO {
|
|
201
|
+
data: string;
|
|
202
|
+
resolvedData: string;
|
|
203
|
+
variableSnapshot: null;
|
|
204
|
+
}
|
|
200
205
|
export declare enum DraftState {
|
|
201
206
|
Init = 1,
|
|
202
207
|
Discarded = 2,
|
|
@@ -206,6 +211,7 @@ export declare enum DraftState {
|
|
|
206
211
|
export declare enum EnvResourceType {
|
|
207
212
|
ConfigMap = "configmap",
|
|
208
213
|
Secret = "secrets",
|
|
209
|
-
DeploymentTemplate = "deployment-template"
|
|
214
|
+
DeploymentTemplate = "deployment-template",
|
|
215
|
+
Manifest = "manifest"
|
|
210
216
|
}
|
|
211
217
|
export {};
|