@devtron-labs/devtron-fe-common-lib 1.1.3-beta-1 → 1.1.3-beta-3
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/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -2
- package/dist/Common/CodeEditor/types.d.ts +1 -2
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +3 -21
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +1 -2
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -6
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +3 -5
- package/dist/Shared/Hooks/useForm/useForm.d.ts +0 -1
- package/dist/Shared/Services/app.types.d.ts +0 -3
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-CMaMwk19.js → cssMode-Bt-QLx5h.js} +1 -1
- package/dist/{freemarker2-CLqyLn9v.js → freemarker2-DcIB5UBi.js} +1 -1
- package/dist/{handlebars-BRD1MBC4.js → handlebars-C0LNLyFY.js} +1 -1
- package/dist/{html-DACNVWi2.js → html-BtKJeSk3.js} +1 -1
- package/dist/{htmlMode-DOkUWxl6.js → htmlMode-ByIAQBLb.js} +1 -1
- package/dist/{index-B0R-eIqT.js → index-B957e3W7.js} +16830 -16906
- package/dist/index.d.ts +0 -2
- package/dist/index.js +515 -519
- package/dist/{javascript-CcPM8gMo.js → javascript-BXIoFATV.js} +1 -1
- package/dist/{jsonMode-CcN4cBks.js → jsonMode-YBk8HQs0.js} +1 -1
- package/dist/{liquid-ByxkY-P3.js → liquid-DnfBk_pR.js} +1 -1
- package/dist/{mdx-CB1YZfsJ.js → mdx-BISMiQrd.js} +1 -1
- package/dist/{python-DtLslx5t.js → python-p1222gKc.js} +1 -1
- package/dist/{razor-BpWch-b7.js → razor-B28ms3oY.js} +1 -1
- package/dist/{tsMode-CX3PjebE.js → tsMode-CHX9gHWZ.js} +1 -1
- package/dist/{typescript-CYUmpyQQ.js → typescript-QBRoW6Ci.js} +1 -1
- package/dist/{xml-DoPkFoDS.js → xml-CJRGjrm5.js} +1 -1
- package/dist/{yaml-ps_8KiyV.js → yaml-BN7bkmJl.js} +1 -1
- package/package.json +2 -2
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +0 -2
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +0 -2
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +0 -6
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +0 -1
- package/dist/Pages/App/AppConfiguration/index.d.ts +0 -1
- package/dist/Pages/App/index.d.ts +0 -1
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
|
@@ -32,5 +32,4 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
|
32
32
|
code: string;
|
|
33
33
|
noParsing: boolean;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
36
|
-
export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
|
35
|
+
export declare const initialState: ({ mode, theme, value, diffView, noParsing, }: CodeEditorInitialValueType) => CodeEditorState;
|
|
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
|
|
|
28
28
|
validatorSchema?: any;
|
|
29
29
|
isKubernetes?: boolean;
|
|
30
30
|
cleanData?: boolean;
|
|
31
|
-
|
|
31
|
+
chartVersion?: any;
|
|
32
32
|
/**
|
|
33
33
|
* If true, disable the in-built search of monaco editor
|
|
34
34
|
* @default false
|
|
@@ -81,7 +81,6 @@ export interface CodeEditorInitialValueType {
|
|
|
81
81
|
theme?: string;
|
|
82
82
|
value: string;
|
|
83
83
|
noParsing?: boolean;
|
|
84
|
-
tabSize: number;
|
|
85
84
|
}
|
|
86
85
|
export interface CodeEditorState {
|
|
87
86
|
mode: MODES;
|
|
@@ -4,7 +4,6 @@ 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";
|
|
8
7
|
export declare const DOCUMENTATION: {
|
|
9
8
|
APP_METRICS: string;
|
|
10
9
|
APP_TAGS: string;
|
|
@@ -258,7 +257,6 @@ export declare const API_STATUS_CODES: {
|
|
|
258
257
|
EXPECTATION_FAILED: number;
|
|
259
258
|
UNPROCESSABLE_ENTITY: number;
|
|
260
259
|
LOCKED: number;
|
|
261
|
-
UNPROCESSABLE_CONTENT: number;
|
|
262
260
|
};
|
|
263
261
|
export declare enum SERVER_MODE {
|
|
264
262
|
EA_ONLY = "EA_ONLY",
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
|
2
|
-
import { ServerErrors } from '../../../../../../Common/ServerError';
|
|
3
2
|
import { OverrideMergeStrategyType } from '../types';
|
|
4
3
|
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
|
5
4
|
export interface DeploymentChartVersionType {
|
|
@@ -109,15 +108,15 @@ interface BaseDeploymentTemplateConfigState {
|
|
|
109
108
|
environmentConfig?: never;
|
|
110
109
|
mergeStrategy?: never;
|
|
111
110
|
}
|
|
112
|
-
|
|
111
|
+
interface EnvironmentOverrideDeploymentTemplateConfigState {
|
|
113
112
|
chartConfig?: never;
|
|
114
113
|
isOverridden: boolean;
|
|
115
114
|
environmentConfig: EnvironmentConfigType;
|
|
116
115
|
mergeStrategy: OverrideMergeStrategyType;
|
|
117
|
-
}
|
|
116
|
+
}
|
|
118
117
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
119
118
|
/**
|
|
120
|
-
* The first ever state of the deployment template
|
|
119
|
+
* The first ever state of the deployment template
|
|
121
120
|
*/
|
|
122
121
|
originalTemplate: Record<string, string>;
|
|
123
122
|
isAppMetricsEnabled: boolean;
|
|
@@ -127,23 +126,6 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
|
|
|
127
126
|
latestDraft?: DraftMetadataDTO;
|
|
128
127
|
editorTemplate: string;
|
|
129
128
|
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;
|
|
147
129
|
}
|
|
148
130
|
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
|
149
131
|
type DTApplicationMetricsReadOnlyProps = {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
|
|
1
|
+
declare const OverrideStrategyTippyContent: () => JSX.Element;
|
|
3
2
|
export default OverrideStrategyTippyContent;
|
|
@@ -25,9 +25,3 @@ export declare enum ConfigToolbarPopupNodeType {
|
|
|
25
25
|
DISCARD_DRAFT = "discardDraft",
|
|
26
26
|
EDIT_HISTORY = "editHistory"
|
|
27
27
|
}
|
|
28
|
-
export interface OverrideStrategyTippyContentProps {
|
|
29
|
-
/**
|
|
30
|
-
* Would be rendered as li conveying the information about the merge strategy
|
|
31
|
-
*/
|
|
32
|
-
children?: ReactNode;
|
|
33
|
-
}
|
|
@@ -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) => "deployment" | "pre-deployment" | "post-deployment" | "-";
|
package/dist/Pages/index.d.ts
CHANGED
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Pair } from 'yaml';
|
|
3
|
-
import { StrictRJSFSchema } from '@rjsf/utils';
|
|
4
3
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
|
5
4
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
|
6
5
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
@@ -66,11 +65,10 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
|
66
65
|
*/
|
|
67
66
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
68
67
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* @
|
|
68
|
+
* @description - Function to get the lower case object
|
|
69
|
+
* @param input - The input object
|
|
70
|
+
* @returns Record<string, any>
|
|
72
71
|
*/
|
|
73
|
-
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
|
74
72
|
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
|
75
73
|
/**
|
|
76
74
|
* @description - Function to get the webhook date
|
|
@@ -61,7 +61,6 @@ 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
|
-
triggerDirty?: boolean;
|
|
65
64
|
}) => void;
|
|
66
65
|
/** An object representing additional form state. */
|
|
67
66
|
formState: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
|
2
1
|
import { ReleaseTag } from '../../Common';
|
|
3
2
|
interface WebhookDataType {
|
|
4
3
|
id: number;
|
|
@@ -148,11 +147,9 @@ export declare enum CMSecretExternalType {
|
|
|
148
147
|
}
|
|
149
148
|
export interface ConfigDatum {
|
|
150
149
|
name: string;
|
|
151
|
-
mergeStrategy: OverrideMergeStrategyType;
|
|
152
150
|
type: string;
|
|
153
151
|
external: boolean;
|
|
154
152
|
data: Record<string, any>;
|
|
155
|
-
patchData: Record<string, any>;
|
|
156
153
|
defaultData: Record<string, any>;
|
|
157
154
|
global: boolean;
|
|
158
155
|
externalType: CMSecretExternalType;
|