@devtron-labs/devtron-fe-common-lib 0.2.26-beta-4 → 0.2.27
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/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +8 -9
- 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/Components/DeploymentConfigDiff/{DeploymentConfigDiff.types.d.ts → types.d.ts} +3 -27
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +1 -7
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-CSIHxGXb.js → cssMode-QqXdZhG6.js} +1 -1
- package/dist/{freemarker2-DgjgcRJN.js → freemarker2-BUM-ZyuW.js} +1 -1
- package/dist/{handlebars-Dyh973ak.js → handlebars-DnsDpZjH.js} +1 -1
- package/dist/{html-B2hY6Ck_.js → html-CrqZKjj_.js} +1 -1
- package/dist/{htmlMode-DsvDB3K_.js → htmlMode-DXIhiVyH.js} +1 -1
- package/dist/{index-x3SOA0Ro.js → index-FMTFtR1h.js} +14610 -14674
- package/dist/index.js +1 -1
- package/dist/{javascript-YXkM1_DA.js → javascript-kNcdg9AC.js} +1 -1
- package/dist/{jsonMode-Cc6wcwtY.js → jsonMode-BRTFdINU.js} +1 -1
- package/dist/{liquid-Cz-R0e2f.js → liquid-D1NP_VnO.js} +1 -1
- package/dist/{mdx-BKbgmCen.js → mdx-CNnohuR-.js} +1 -1
- package/dist/{python-CdsvMhXI.js → python-NBcvsOnT.js} +1 -1
- package/dist/{razor-xr8EBAl8.js → razor-DR4arJeq.js} +1 -1
- package/dist/{tsMode-CHg4upJ3.js → tsMode-BEIDXJeE.js} +1 -1
- package/dist/{typescript-B2lM8QHi.js → typescript-C15RwDto.js} +1 -1
- package/dist/{xml-C6HsAUaE.js → xml-CT0Bc15w.js} +1 -1
- package/dist/{yaml-B0Mci16-.js → yaml-xJdWLhuE.js} +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffProps } from './
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText,
|
|
1
|
+
import { DeploymentConfigDiffProps } from './types';
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
+
import { DeploymentConfigDiffProps } from '..';
|
|
3
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, EnvResourceType, TemplateListDTO } from '../../Services/app.types';
|
|
3
4
|
/**
|
|
4
5
|
* Retrieves the draft data from the given configuration data object.
|
|
5
6
|
*
|
|
@@ -18,16 +19,14 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
18
19
|
/**
|
|
19
20
|
* Generates a list of deployment configurations for application environments and identifies changes between the current and compare lists.
|
|
20
21
|
*
|
|
21
|
-
* @param
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @param
|
|
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.
|
|
22
|
+
* @param currentList - The current deployment configuration list.
|
|
23
|
+
* @param compareList - The deployment configuration list to compare against.
|
|
24
|
+
* @param getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
|
|
25
|
+
* @param sortOrder - (Optional) The order in which to sort the deployment templates.
|
|
27
26
|
*
|
|
28
27
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
29
28
|
*/
|
|
30
|
-
export declare const getAppEnvDeploymentConfigList:
|
|
29
|
+
export declare const getAppEnvDeploymentConfigList: (currentList: AppEnvDeploymentConfigDTO, compareList: AppEnvDeploymentConfigDTO, getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string, sortOrder?: SortingOrder) => {
|
|
31
30
|
configList: DeploymentConfigDiffProps["configList"];
|
|
32
31
|
navList: DeploymentConfigDiffProps["navList"];
|
|
33
32
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffAccordionProps } from './
|
|
1
|
+
import { DeploymentConfigDiffAccordionProps } from './types';
|
|
2
2
|
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffMainProps } from './
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading,
|
|
1
|
+
import { DeploymentConfigDiffMainProps } from './types';
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffNavigationProps } from './
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText,
|
|
1
|
+
import { DeploymentConfigDiffNavigationProps } from './types';
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
package/dist/Shared/Components/DeploymentConfigDiff/{DeploymentConfigDiff.types.d.ts → types.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import {
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO } from '../../Services';
|
|
3
3
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
4
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
@@ -35,11 +35,6 @@ 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
|
-
};
|
|
43
38
|
configList: DeploymentConfigListItem[];
|
|
44
39
|
headerText?: string;
|
|
45
40
|
scrollIntoViewId?: string;
|
|
@@ -57,17 +52,10 @@ export interface DeploymentConfigDiffProps {
|
|
|
57
52
|
goBackURL?: string;
|
|
58
53
|
navHeading: string;
|
|
59
54
|
navHelpText?: string;
|
|
60
|
-
tabConfig?: {
|
|
61
|
-
tabs: {
|
|
62
|
-
value: string;
|
|
63
|
-
href: string;
|
|
64
|
-
}[];
|
|
65
|
-
onClick: (tab: string) => void;
|
|
66
|
-
};
|
|
67
55
|
}
|
|
68
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'
|
|
56
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'> {
|
|
69
57
|
}
|
|
70
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | '
|
|
58
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
71
59
|
}
|
|
72
60
|
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
73
61
|
id: string;
|
|
@@ -78,15 +66,3 @@ export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps,
|
|
|
78
66
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
79
67
|
}
|
|
80
68
|
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
81
|
-
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
82
|
-
currentList: ManifestTemplateDTO;
|
|
83
|
-
compareList: ManifestTemplateDTO;
|
|
84
|
-
sortOrder?: never;
|
|
85
|
-
} : {
|
|
86
|
-
currentList: AppEnvDeploymentConfigDTO;
|
|
87
|
-
compareList: AppEnvDeploymentConfigDTO;
|
|
88
|
-
sortOrder?: SortingOrder;
|
|
89
|
-
}) & {
|
|
90
|
-
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
91
|
-
isManifestView?: IsManifestView;
|
|
92
|
-
};
|
|
@@ -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, ...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, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
138
138
|
export default SelectPicker;
|
|
@@ -164,7 +164,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
164
164
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
165
165
|
isGroupHeadingSelectable: boolean;
|
|
166
166
|
};
|
|
167
|
-
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight'> {
|
|
167
|
+
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'> {
|
|
168
168
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
169
169
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
170
170
|
}
|
|
@@ -197,11 +197,6 @@ 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
|
-
}
|
|
205
200
|
export declare enum DraftState {
|
|
206
201
|
Init = 1,
|
|
207
202
|
Discarded = 2,
|
|
@@ -211,7 +206,6 @@ export declare enum DraftState {
|
|
|
211
206
|
export declare enum EnvResourceType {
|
|
212
207
|
ConfigMap = "configmap",
|
|
213
208
|
Secret = "secrets",
|
|
214
|
-
DeploymentTemplate = "deployment-template"
|
|
215
|
-
Manifest = "manifest"
|
|
209
|
+
DeploymentTemplate = "deployment-template"
|
|
216
210
|
}
|
|
217
211
|
export {};
|