@devtron-labs/devtron-fe-common-lib 1.2.4-beta-13 → 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-D8U5cRhb.js → @code-editor-_xd9VoYJ.js} +5723 -6230
- package/dist/{@common-rjsf-D5hvtwIi.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/CIPipeline.Types.d.ts +1 -26
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +2 -1
- package/dist/Common/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Common.service.d.ts +1 -7
- package/dist/Common/Constants.d.ts +3 -2
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +15 -8
- package/dist/Common/Helper.d.ts +3 -3
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Common/Types.d.ts +4 -16
- 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/Applications/DevtronApps/Details/CDPipeline/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/index.d.ts +0 -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/KeyValueTable/KeyValueTable.types.d.ts +1 -1
- 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 +2 -33
- 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 +511 -515
- package/package.json +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +0 -7
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/SystemVariableIcon.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +0 -3
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/index.d.ts +0 -3
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/services.d.ts +0 -11
- 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/constants.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/index.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +0 -162
- package/dist/Shared/Components/DynamicDataTable/utils.d.ts +0 -5
- package/dist/Shared/Components/FileUpload/FileUpload.d.ts +0 -2
- package/dist/Shared/Components/FileUpload/index.d.ts +0 -2
- package/dist/Shared/Components/FileUpload/types.d.ts +0 -7
- 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/assets/ic-clear-square.e60de021.svg +0 -1
- package/dist/assets/ic-cloud-upload.18066e05.svg +0 -1
- package/dist/assets/ic-file-code.21a1f748.svg +0 -1
- package/dist/assets/ic-stamp.8689f42d.svg +0 -1
- package/dist/assets/ic-var-initial.afdaa854.svg +0 -1
@@ -4,6 +4,7 @@ export declare const Host: string;
|
|
4
4
|
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
|
+
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
7
8
|
export declare const DOCUMENTATION: {
|
8
9
|
APP_METRICS: string;
|
9
10
|
APP_TAGS: string;
|
@@ -94,8 +95,6 @@ export declare const ROUTES: {
|
|
94
95
|
USER_LIST_MIN: string;
|
95
96
|
CONFIG_DATA: string;
|
96
97
|
K8S_RESOURCE_LIST: string;
|
97
|
-
FILE_UPLOAD: string;
|
98
|
-
PLUGIN_GLOBAL_VARIABLES: string;
|
99
98
|
};
|
100
99
|
export declare enum KEY_VALUE {
|
101
100
|
KEY = "key",
|
@@ -260,6 +259,7 @@ export declare const API_STATUS_CODES: {
|
|
260
259
|
EXPECTATION_FAILED: number;
|
261
260
|
UNPROCESSABLE_ENTITY: number;
|
262
261
|
LOCKED: number;
|
262
|
+
UNPROCESSABLE_CONTENT: number;
|
263
263
|
};
|
264
264
|
export declare enum SERVER_MODE {
|
265
265
|
EA_ONLY = "EA_ONLY",
|
@@ -311,3 +311,4 @@ export declare enum GitProviderType {
|
|
311
311
|
* Formats the schema removing any irregularity in the existing schema
|
312
312
|
*/
|
313
313
|
export declare const getFormattedSchema: (schema?: string) => string;
|
314
|
+
export declare const UNCHANGED_ARRAY_ELEMENT_SYMBOL: unique symbol;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ResizableTagTextAreaProps } from './Types';
|
2
|
-
export declare const ResizableTagTextArea: ({
|
2
|
+
export declare const ResizableTagTextArea: ({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, handleKeyDown, disabled, disableOnBlurResizeToMinHeight, }: ResizableTagTextAreaProps) => JSX.Element;
|
@@ -1,4 +1,3 @@
|
|
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 {
|
@@ -49,16 +48,24 @@ export interface TagLabelValueSelectorType {
|
|
49
48
|
tagInputType?: KEY_VALUE;
|
50
49
|
placeholder?: string;
|
51
50
|
tabIndex?: number;
|
52
|
-
refVar?: MutableRefObject<HTMLTextAreaElement>;
|
53
|
-
dependentRef?: MutableRefObject<HTMLTextAreaElement>;
|
51
|
+
refVar?: React.MutableRefObject<HTMLTextAreaElement>;
|
52
|
+
dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
|
54
53
|
noBackDrop?: boolean;
|
55
54
|
}
|
56
|
-
export interface ResizableTagTextAreaProps
|
55
|
+
export interface ResizableTagTextAreaProps {
|
56
|
+
className?: string;
|
57
57
|
minHeight?: number;
|
58
58
|
maxHeight?: number;
|
59
|
-
value
|
60
|
-
|
61
|
-
|
62
|
-
|
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>;
|
67
|
+
dataTestId?: string;
|
68
|
+
handleKeyDown?: any;
|
69
|
+
disabled?: boolean;
|
63
70
|
disableOnBlurResizeToMinHeight?: boolean;
|
64
71
|
}
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -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 getGoLangFormattedDateWithTimezone: (dateFormat: string) => 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;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "children" | "className" | "disabled" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "target" | "action" | "tagName" | "autoComplete" | "method" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
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, RegistryType,
|
7
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
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
|
10
9
|
*
|
@@ -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;
|
@@ -94,7 +93,6 @@ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
|
94
93
|
documentationLink?: string;
|
95
94
|
documentationLinkText?: string;
|
96
95
|
children: React.ReactElement<any>;
|
97
|
-
disableClose?: boolean;
|
98
96
|
}
|
99
97
|
export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading' | 'infoText' | 'iconClass' | 'documentationLink' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo'> {
|
100
98
|
dataTestid?: string;
|
@@ -593,7 +591,7 @@ export interface CDMaterialsMetaInfo {
|
|
593
591
|
* This is the ID of user that has request the material
|
594
592
|
*/
|
595
593
|
requestedUserId: number;
|
596
|
-
runtimeParams:
|
594
|
+
runtimeParams: RuntimeParamsListItemType[];
|
597
595
|
}
|
598
596
|
export interface ImagePromotionMaterialInfo {
|
599
597
|
isApprovalPendingForPromotion: boolean;
|
@@ -872,14 +870,4 @@ export interface WidgetEventDetails {
|
|
872
870
|
age: string;
|
873
871
|
lastSeen: string;
|
874
872
|
}
|
875
|
-
export interface GlobalVariableDTO {
|
876
|
-
name: string;
|
877
|
-
format: VariableTypeFormat;
|
878
|
-
description: string;
|
879
|
-
stageType: 'cd' | 'post-cd' | 'ci';
|
880
|
-
}
|
881
|
-
export type GlobalVariableOptionType = Omit<GlobalVariableDTO, 'name'> & {
|
882
|
-
label: string;
|
883
|
-
value: string;
|
884
|
-
};
|
885
873
|
export {};
|
@@ -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';
|
@@ -18,7 +18,7 @@ export interface KeyValueHeader<K extends string> {
|
|
18
18
|
*/
|
19
19
|
export type KeyValueRow<K extends string> = {
|
20
20
|
data: {
|
21
|
-
[key in K]: Pick<ResizableTagTextAreaProps, 'value' | 'disabled' | 'tabIndex'> & {
|
21
|
+
[key in K]: Pick<ResizableTagTextAreaProps, 'value' | 'dataTestId' | 'disabled' | 'tabIndex'> & {
|
22
22
|
/** An optional boolean indicating if an asterisk should be shown. */
|
23
23
|
required?: boolean;
|
24
24
|
};
|
@@ -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 './FileUpload';
|
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 {
|
@@ -282,30 +282,11 @@ export interface GitTriggers {
|
|
282
282
|
CiConfigureSourceType: string;
|
283
283
|
CiConfigureSourceValue: string;
|
284
284
|
}
|
285
|
-
export interface RuntimePluginVariables extends Pick<VariableType, 'name' | 'value' | 'format' | 'fileReferenceId' | 'fileMountDir'> {
|
286
|
-
variableStepScope: string;
|
287
|
-
valueConstraint: ValueConstraintType & {
|
288
|
-
id: number;
|
289
|
-
};
|
290
|
-
stepVariableId: number;
|
291
|
-
valueType: RefVariableType;
|
292
|
-
stepName: string;
|
293
|
-
stepType: PluginType;
|
294
|
-
isRequired: boolean;
|
295
|
-
pluginIcon?: string;
|
296
|
-
description?: string;
|
297
|
-
}
|
298
285
|
export interface RuntimeParamsAPIResponseType {
|
299
286
|
envVariables: Record<string, string>;
|
300
|
-
runtimePluginVariables: RuntimePluginVariables[];
|
301
287
|
}
|
302
288
|
export interface RuntimeParamsTriggerPayloadType {
|
303
|
-
runtimeParams:
|
304
|
-
}
|
305
|
-
export interface RuntimeParamsV2TriggerPayloadType {
|
306
|
-
runtimeParams: {
|
307
|
-
runtimePluginVariables: Pick<RuntimePluginVariables, 'name' | 'fileMountDir' | 'fileReferenceId' | 'value' | 'format' | 'variableStepScope'>[];
|
308
|
-
};
|
289
|
+
runtimeParams: RuntimeParamsAPIResponseType;
|
309
290
|
}
|
310
291
|
export declare enum CIMaterialSidebarType {
|
311
292
|
CODE_SOURCE = "Code Source",
|
@@ -758,16 +739,4 @@ export interface PreventOutsideFocusProps {
|
|
758
739
|
identifier: string;
|
759
740
|
preventFocus: boolean;
|
760
741
|
}
|
761
|
-
export interface UploadFileDTO {
|
762
|
-
id: number;
|
763
|
-
name: string;
|
764
|
-
size: number;
|
765
|
-
mimeType: string;
|
766
|
-
extension: string;
|
767
|
-
}
|
768
|
-
export interface UploadFileProps {
|
769
|
-
file: File[];
|
770
|
-
allowedExtensions?: string[];
|
771
|
-
maxUploadSize?: number;
|
772
|
-
}
|
773
742
|
export {};
|