@devtron-labs/devtron-fe-common-lib 1.2.4-beta-12 → 1.2.4-beta-14
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/{@code-editor-CQmGGn4U.js → @code-editor-_xd9VoYJ.js} +5349 -5809
- package/dist/{@common-rjsf-D7fgYUGe.js → @common-rjsf-CEo9W3ac.js} +2 -2
- package/dist/{@framer-motion-DHY98qq3.js → @framer-motion-DFECMTRh.js} +1 -1
- package/dist/{@react-dates-WNnwjI5S.js → @react-dates-MalCS5BJ.js} +1 -1
- package/dist/{@react-select-BbR996pa.js → @react-select-B8JuvbeY.js} +50 -50
- package/dist/{@vendor-RU8AW1bK.js → @vendor-CPMO6uwj.js} +94 -93
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +2 -1
- package/dist/Common/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Constants.d.ts +3 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +14 -19
- package/dist/Common/Helper.d.ts +4 -4
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -21
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +6 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +21 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +7 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +6 -0
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +4 -5
- package/dist/Shared/Components/index.d.ts +1 -2
- package/dist/Shared/Helpers.d.ts +5 -3
- package/dist/Shared/Hooks/useForm/useForm.d.ts +4 -0
- package/dist/Shared/Services/app.types.d.ts +4 -0
- package/dist/Shared/types.d.ts +1 -19
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-file-code.80000c9b.svg +1 -0
- package/dist/assets/ic-medal.4a7e5cbc.svg +1 -0
- package/dist/assets/ic-stamp.526499d2.svg +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +271 -271
- package/package.json +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/index.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +0 -165
- package/dist/Shared/Components/DynamicDataTable/utils.d.ts +0 -5
- package/dist/Shared/Components/SelectTextArea/SelectTextArea.d.ts +0 -2
- package/dist/Shared/Components/SelectTextArea/index.d.ts +0 -2
- package/dist/Shared/Components/SelectTextArea/types.d.ts +0 -12
- package/dist/Shared/Components/TagsKeyValueTable/TagsContainer.d.ts +0 -3
- package/dist/Shared/Components/TagsKeyValueTable/constants.d.ts +0 -4
- package/dist/Shared/Components/TagsKeyValueTable/index.d.ts +0 -3
- package/dist/Shared/Components/TagsKeyValueTable/types.d.ts +0 -9
- package/dist/Shared/Components/TagsKeyValueTable/utils.d.ts +0 -3
- package/dist/assets/ic-clear-square.e60de021.svg +0 -1
- package/dist/assets/ic-file-code.21a1f748.svg +0 -1
- package/dist/assets/ic-stamp.8689f42d.svg +0 -1
@@ -1,20 +1,9 @@
|
|
1
|
-
import { DetailedHTMLProps, MutableRefObject, TextareaHTMLAttributes } from 'react';
|
2
1
|
import { KEY_VALUE } from '../Constants';
|
3
2
|
import { OptionType } from '../Types';
|
4
3
|
export interface SuggestedTagOptionType extends OptionType {
|
5
4
|
description: string;
|
6
5
|
propagate: boolean;
|
7
6
|
}
|
8
|
-
export declare enum DeploymentPolicy {
|
9
|
-
ALLOW = "allow",
|
10
|
-
BLOCK = "block",
|
11
|
-
BLOCK_PROD = "block-prod",
|
12
|
-
BLOCK_NON_PROD = "block-non-prod"
|
13
|
-
}
|
14
|
-
export interface VariableValueConstraintTypes {
|
15
|
-
choices?: string[];
|
16
|
-
blockCustomValue?: boolean;
|
17
|
-
}
|
18
7
|
export interface TagType {
|
19
8
|
id?: number;
|
20
9
|
key: string;
|
@@ -26,8 +15,6 @@ export interface TagType {
|
|
26
15
|
isInvalidValue?: boolean;
|
27
16
|
isSuggested?: boolean;
|
28
17
|
isPropagateDisabled?: boolean;
|
29
|
-
deploymentPolicy?: DeploymentPolicy;
|
30
|
-
valueConstraint?: VariableValueConstraintTypes;
|
31
18
|
}
|
32
19
|
export interface TagErrorType {
|
33
20
|
isValid: boolean;
|
@@ -61,16 +48,24 @@ export interface TagLabelValueSelectorType {
|
|
61
48
|
tagInputType?: KEY_VALUE;
|
62
49
|
placeholder?: string;
|
63
50
|
tabIndex?: number;
|
64
|
-
refVar?: MutableRefObject<HTMLTextAreaElement>;
|
65
|
-
dependentRef?: MutableRefObject<HTMLTextAreaElement>;
|
51
|
+
refVar?: React.MutableRefObject<HTMLTextAreaElement>;
|
52
|
+
dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
|
66
53
|
noBackDrop?: boolean;
|
67
54
|
}
|
68
|
-
export interface ResizableTagTextAreaProps
|
55
|
+
export interface ResizableTagTextAreaProps {
|
56
|
+
className?: string;
|
69
57
|
minHeight?: number;
|
70
58
|
maxHeight?: number;
|
71
|
-
value
|
72
|
-
|
73
|
-
|
59
|
+
value?: string;
|
60
|
+
onChange?: (e: any) => void;
|
61
|
+
onBlur?: (e: any) => void;
|
62
|
+
onFocus?: (e: any) => void;
|
63
|
+
placeholder?: string;
|
64
|
+
tabIndex?: number;
|
65
|
+
refVar?: React.MutableRefObject<HTMLTextAreaElement>;
|
66
|
+
dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
|
74
67
|
dataTestId?: string;
|
68
|
+
handleKeyDown?: any;
|
69
|
+
disabled?: boolean;
|
75
70
|
disableOnBlurResizeToMinHeight?: boolean;
|
76
71
|
}
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { default as React, SyntheticEvent } from 'react';
|
2
2
|
import { JSONPathOptions } from 'jsonpath-plus';
|
3
|
-
import { AsyncOptions,
|
3
|
+
import { AsyncOptions, UseSearchString } from './Types';
|
4
4
|
import { scrollableInterface } from '../Shared';
|
5
5
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
6
6
|
interface ConditionalWrapper<T> {
|
@@ -58,9 +58,10 @@ export declare const getFilteredChartVersions: (charts: any, selectedChartType:
|
|
58
58
|
* @param {object} object from which we need to delete nulls in its arrays
|
59
59
|
* @returns object after removing (in-place) the null items in arrays
|
60
60
|
*/
|
61
|
-
export declare const
|
61
|
+
export declare const recursivelyRemoveSymbolFromArraysInObject: (object: object, symbol: symbol) => object;
|
62
62
|
/**
|
63
63
|
* Merges the objects into one object
|
64
|
+
* Works more like Object.assign; that doesn't deep copy
|
64
65
|
* @param {object[]} objects list of js objects
|
65
66
|
* @returns object after the merge
|
66
67
|
*/
|
@@ -89,7 +90,7 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
89
90
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
90
91
|
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
91
92
|
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions["resultType"]) => string[];
|
92
|
-
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) =>
|
93
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
|
93
94
|
/**
|
94
95
|
* Returns a debounced variant of the function
|
95
96
|
*/
|
@@ -133,5 +134,4 @@ export declare const getSanitizedIframe: (iframeString: string) => string;
|
|
133
134
|
* This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
|
134
135
|
*/
|
135
136
|
export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
|
136
|
-
export declare const getStageTitle: (stageType: DeploymentNodeType) => string;
|
137
137
|
export {};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { MarkDownProps } from './Types';
|
2
|
-
declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
2
|
+
declare const MarkDown: ({ setExpandableIcon, markdown: markdownProp, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
3
3
|
export default MarkDown;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObject } from 'react';
|
2
|
-
import { TippyProps } from '@tippyjs/react';
|
3
2
|
import { Placement } from 'tippy.js';
|
4
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
5
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
6
|
-
import { MandatoryPluginBaseStateType,
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
7
6
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
8
7
|
/**
|
9
8
|
* Generic response type object with support for overriding the result type
|
@@ -66,7 +65,7 @@ export interface CheckboxProps {
|
|
66
65
|
id?: string;
|
67
66
|
dataTestId?: string;
|
68
67
|
}
|
69
|
-
export interface TippyCustomizedProps
|
68
|
+
export interface TippyCustomizedProps {
|
70
69
|
theme: TippyTheme;
|
71
70
|
visible?: boolean;
|
72
71
|
heading?: ReactNode | string;
|
@@ -432,10 +431,6 @@ export interface CDMaterialType {
|
|
432
431
|
* Would currently only be received in case of release
|
433
432
|
*/
|
434
433
|
appWorkflowId: number;
|
435
|
-
/**
|
436
|
-
* Denotes trigger blocking due to mandatory tags, (might be used for plugins and other features in future)
|
437
|
-
*/
|
438
|
-
deploymentBlockedState?: PolicyBlockInfo;
|
439
434
|
}
|
440
435
|
export declare enum CDMaterialServiceEnum {
|
441
436
|
ROLLBACK = "rollback",
|
@@ -472,14 +467,6 @@ export interface DownstreamNodesEnvironmentsType {
|
|
472
467
|
environmentId: number;
|
473
468
|
environmentName: string;
|
474
469
|
}
|
475
|
-
export declare enum TriggerBlockType {
|
476
|
-
MANDATORY_TAG = "mandatory-tags",
|
477
|
-
MANDATORY_PLUGIN = "mandatory-plugins"
|
478
|
-
}
|
479
|
-
export interface TriggerBlockedInfo {
|
480
|
-
blockedBy: TriggerBlockType;
|
481
|
-
blockedReason?: string;
|
482
|
-
}
|
483
470
|
export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTriggerBlocked' | 'pluginBlockState'> {
|
484
471
|
connectingCiPipelineId?: number;
|
485
472
|
parents: string | number[] | string[];
|
@@ -542,7 +529,6 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTr
|
|
542
529
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
543
530
|
cipipelineId?: number;
|
544
531
|
isDeploymentBlocked?: boolean;
|
545
|
-
triggerBlockedInfo?: TriggerBlockedInfo;
|
546
532
|
}
|
547
533
|
export declare enum DeploymentAppTypes {
|
548
534
|
HELM = "helm",
|
@@ -606,7 +592,6 @@ export interface CDMaterialsMetaInfo {
|
|
606
592
|
*/
|
607
593
|
requestedUserId: number;
|
608
594
|
runtimeParams: RuntimeParamsListItemType[];
|
609
|
-
deploymentBlockedState?: PolicyBlockInfo;
|
610
595
|
}
|
611
596
|
export interface ImagePromotionMaterialInfo {
|
612
597
|
isApprovalPendingForPromotion: boolean;
|
@@ -689,7 +674,6 @@ export interface CDStage {
|
|
689
674
|
name: string;
|
690
675
|
triggerType: 'AUTOMATIC' | 'MANUAL';
|
691
676
|
config: string;
|
692
|
-
triggerBlockedInfo?: TriggerBlockedInfo;
|
693
677
|
}
|
694
678
|
export interface CDStageConfigMapSecretNames {
|
695
679
|
configMaps: any[];
|
@@ -701,7 +685,6 @@ export interface PrePostDeployStageType extends MandatoryPluginBaseStateType {
|
|
701
685
|
triggerType: string;
|
702
686
|
name: string;
|
703
687
|
status: string;
|
704
|
-
triggerBlockedInfo?: TriggerBlockedInfo;
|
705
688
|
}
|
706
689
|
export interface CdPipeline {
|
707
690
|
id: number;
|
@@ -735,8 +718,6 @@ export interface CdPipeline {
|
|
735
718
|
isProdEnv?: boolean;
|
736
719
|
isGitOpsRepoNotConfigured?: boolean;
|
737
720
|
isDeploymentBlocked?: boolean;
|
738
|
-
isTriggerBlocked?: boolean;
|
739
|
-
triggerBlockedInfo?: TriggerBlockedInfo;
|
740
721
|
}
|
741
722
|
export interface ExternalCiConfig {
|
742
723
|
id: number;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './GUIView';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './DeploymentTemplate';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './AppConfiguration';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './utils';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
2
|
+
import { ServerErrors } from '../../../../../../Common/ServerError';
|
2
3
|
import { OverrideMergeStrategyType } from '../types';
|
3
4
|
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
4
5
|
export interface DeploymentChartVersionType {
|
@@ -108,15 +109,15 @@ interface BaseDeploymentTemplateConfigState {
|
|
108
109
|
environmentConfig?: never;
|
109
110
|
mergeStrategy?: never;
|
110
111
|
}
|
111
|
-
|
112
|
+
type EnvironmentOverrideDeploymentTemplateConfigState = {
|
112
113
|
chartConfig?: never;
|
113
114
|
isOverridden: boolean;
|
114
115
|
environmentConfig: EnvironmentConfigType;
|
115
116
|
mergeStrategy: OverrideMergeStrategyType;
|
116
|
-
}
|
117
|
+
};
|
117
118
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
118
119
|
/**
|
119
|
-
* The first ever state of the deployment template
|
120
|
+
* The first ever state of the deployment template on editor
|
120
121
|
*/
|
121
122
|
originalTemplate: Record<string, string>;
|
122
123
|
isAppMetricsEnabled: boolean;
|
@@ -126,6 +127,23 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
|
|
126
127
|
latestDraft?: DraftMetadataDTO;
|
127
128
|
editorTemplate: string;
|
128
129
|
editorTemplateWithoutLockedKeys: string;
|
130
|
+
/**
|
131
|
+
* This final template to be applied on the deployment in string format
|
132
|
+
* In current editor, this may be null initially
|
133
|
+
*/
|
134
|
+
mergedTemplate: string | null;
|
135
|
+
/**
|
136
|
+
* This final template to be applied on the deployment without locked keys in string format
|
137
|
+
* In current editor, this may be null initially
|
138
|
+
*/
|
139
|
+
mergedTemplateWithoutLockedKeys: string | null;
|
140
|
+
/**
|
141
|
+
* This final template to be applied on the deployment in object format
|
142
|
+
* In current editor, this may be null initially
|
143
|
+
*/
|
144
|
+
mergedTemplateObject: Record<string, string> | null;
|
145
|
+
isLoadingMergedTemplate: boolean;
|
146
|
+
mergedTemplateError: ServerErrors | null;
|
129
147
|
}
|
130
148
|
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
131
149
|
type DTApplicationMetricsReadOnlyProps = {
|
@@ -1,2 +1,3 @@
|
|
1
|
-
|
1
|
+
import { OverrideStrategyTippyContentProps } from './types';
|
2
|
+
declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
|
2
3
|
export default OverrideStrategyTippyContent;
|
@@ -20,8 +20,15 @@ export interface ConfigToolbarPopupMenuConfigType {
|
|
20
20
|
disabled?: boolean;
|
21
21
|
icon?: ReactNode | null;
|
22
22
|
variant?: 'default' | 'negative';
|
23
|
+
tooltipText?: string;
|
23
24
|
}
|
24
25
|
export declare enum ConfigToolbarPopupNodeType {
|
25
26
|
DISCARD_DRAFT = "discardDraft",
|
26
27
|
EDIT_HISTORY = "editHistory"
|
27
28
|
}
|
29
|
+
export interface OverrideStrategyTippyContentProps {
|
30
|
+
/**
|
31
|
+
* Would be rendered as li conveying the information about the merge strategy
|
32
|
+
*/
|
33
|
+
children?: ReactNode;
|
34
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DeploymentStageType } from '../../../../../Shared/constants';
|
2
|
-
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
|
package/dist/Pages/index.d.ts
CHANGED
@@ -54,6 +54,12 @@ export type CollapsibleListItem<TabType extends TabOptions = 'navLink'> = Condit
|
|
54
54
|
*/
|
55
55
|
tooltipProps?: TippyProps;
|
56
56
|
};
|
57
|
+
/**
|
58
|
+
* If `true`, clears query parameters during navigation.
|
59
|
+
*
|
60
|
+
* @default false
|
61
|
+
*/
|
62
|
+
clearQueryParamsOnNavigation?: boolean;
|
57
63
|
};
|
58
64
|
export interface CollapsibleListConfig<TabType extends TabOptions = 'navLink'> {
|
59
65
|
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as EnterpriseTag } from './EnterpriseTag.component';
|
@@ -24,10 +24,6 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
24
24
|
tooltipProps?: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
|
25
25
|
}
|
26
26
|
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
27
|
-
export declare enum SelectPickerVariantType {
|
28
|
-
DEFAULT = "default",
|
29
|
-
BORDER_LESS = "border-less"
|
30
|
-
}
|
31
27
|
declare module 'react-select/base' {
|
32
28
|
interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
33
29
|
/**
|
@@ -59,9 +55,12 @@ declare module 'react-select/base' {
|
|
59
55
|
* @default 'true'
|
60
56
|
*/
|
61
57
|
showSelectedOptionIcon?: boolean;
|
62
|
-
variant?: SelectPickerVariantType;
|
63
58
|
}
|
64
59
|
}
|
60
|
+
export declare enum SelectPickerVariantType {
|
61
|
+
DEFAULT = "default",
|
62
|
+
BORDER_LESS = "border-less"
|
63
|
+
}
|
65
64
|
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
|
66
65
|
/**
|
67
66
|
* Error message for the select
|
@@ -41,7 +41,6 @@ export * from './Collapse';
|
|
41
41
|
export * from './Security';
|
42
42
|
export * from './Button';
|
43
43
|
export * from './InvalidYAMLTippy';
|
44
|
+
export * from './EnterpriseTag';
|
44
45
|
export * from './ConfirmationModal';
|
45
46
|
export * from './DiffViewer';
|
46
|
-
export * from './DynamicDataTable';
|
47
|
-
export * from './TagsKeyValueTable';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { Pair } from 'yaml';
|
3
|
+
import { StrictRJSFSchema } from '@rjsf/utils';
|
3
4
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
4
5
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
5
6
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, WebhookEventNameType } from './types';
|
@@ -66,10 +67,11 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
66
67
|
*/
|
67
68
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
68
69
|
/**
|
69
|
-
*
|
70
|
-
*
|
71
|
-
* @
|
70
|
+
* This function returns a null/zero value corresponding to @type
|
71
|
+
*
|
72
|
+
* @param type - a RJSF supported type
|
72
73
|
*/
|
74
|
+
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
73
75
|
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
74
76
|
/**
|
75
77
|
* @description - Function to get the webhook date
|
@@ -61,6 +61,10 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
|
|
61
61
|
keepTouched?: boolean;
|
62
62
|
/** A boolean indicating whether to retain the current error state of the form fields. */
|
63
63
|
keepErrors?: boolean;
|
64
|
+
/** A boolean indicating whether the form should check for dirty state upon reset. */
|
65
|
+
triggerDirty?: boolean;
|
66
|
+
/** A boolean indicating whether the initial values of the form should be retained after reset. If false, provided formData will become initial data. */
|
67
|
+
keepInitialValues?: boolean;
|
64
68
|
}) => void;
|
65
69
|
/** An object representing additional form state. */
|
66
70
|
formState: {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
1
2
|
import { ReleaseTag } from '../../Common';
|
2
3
|
interface WebhookDataType {
|
3
4
|
id: number;
|
@@ -147,9 +148,11 @@ export declare enum CMSecretExternalType {
|
|
147
148
|
}
|
148
149
|
export interface ConfigDatum {
|
149
150
|
name: string;
|
151
|
+
mergeStrategy: OverrideMergeStrategyType;
|
150
152
|
type: string;
|
151
153
|
external: boolean;
|
152
154
|
data: Record<string, any>;
|
155
|
+
patchData: Record<string, any>;
|
153
156
|
defaultData: Record<string, any>;
|
154
157
|
global: boolean;
|
155
158
|
externalType: CMSecretExternalType;
|
@@ -172,6 +175,7 @@ export interface ConfigMapSecretDataType {
|
|
172
175
|
id: number;
|
173
176
|
appId: number;
|
174
177
|
configData: ConfigMapSecretDataConfigDatumDTO[];
|
178
|
+
isDeletable: boolean;
|
175
179
|
}
|
176
180
|
export declare enum ConfigResourceType {
|
177
181
|
ConfigMap = "ConfigMap",
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
2
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams
|
2
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
|
3
3
|
import { KeyValueListType } from './Components';
|
4
4
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
5
5
|
export declare enum EnvType {
|
@@ -739,22 +739,4 @@ export interface PreventOutsideFocusProps {
|
|
739
739
|
identifier: string;
|
740
740
|
preventFocus: boolean;
|
741
741
|
}
|
742
|
-
export interface PolicyBlockInfo {
|
743
|
-
isBlocked: boolean;
|
744
|
-
blockedBy: TriggerBlockType;
|
745
|
-
reason: string;
|
746
|
-
}
|
747
|
-
export interface PipelineStageBlockInfo {
|
748
|
-
node: PolicyBlockInfo;
|
749
|
-
pre: PolicyBlockInfo;
|
750
|
-
post: PolicyBlockInfo;
|
751
|
-
}
|
752
|
-
export interface PolicyConsequencesDTO {
|
753
|
-
cd: PipelineStageBlockInfo;
|
754
|
-
ci: PipelineStageBlockInfo;
|
755
|
-
}
|
756
|
-
export interface GetPolicyConsequencesProps {
|
757
|
-
appId: number;
|
758
|
-
envId: number;
|
759
|
-
}
|
760
742
|
export {};
|