@devtron-labs/devtron-fe-common-lib 1.1.7-beta-3 → 1.1.7-beta-4
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/Helper.d.ts +1 -1
- 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 -7
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -6
- 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 -4
- package/dist/Shared/Services/app.types.d.ts +0 -4
- package/dist/{cssMode-DF0nHQq6.js → cssMode-Cywx60WQ.js} +1 -1
- package/dist/{freemarker2-BLnbp-ry.js → freemarker2-CzZfJAkX.js} +1 -1
- package/dist/{handlebars-DO7e60n_.js → handlebars-CdFn-eHm.js} +1 -1
- package/dist/{html-DYuyubkz.js → html-Cwh4XeU8.js} +1 -1
- package/dist/{htmlMode-dfapLSP1.js → htmlMode-DrL1oAbZ.js} +1 -1
- package/dist/{index-D_XSOFsC.js → index-jPZQLd6G.js} +16295 -16349
- package/dist/index.d.ts +6 -2
- package/dist/index.js +517 -521
- package/dist/{javascript-DPa1m9iH.js → javascript-DlXgi9Zu.js} +1 -1
- package/dist/{jsonMode-CV2heJj0.js → jsonMode-DEzFcWqt.js} +1 -1
- package/dist/{liquid-DIRzfD83.js → liquid-CPnweO-U.js} +1 -1
- package/dist/{mdx-BmNfhjYX.js → mdx-CUaMzuXo.js} +1 -1
- package/dist/{python-CNbWh4_K.js → python-Bi5K3H4h.js} +1 -1
- package/dist/{razor-CP6Rq3ak.js → razor-DLqI_T6g.js} +1 -1
- package/dist/{tsMode-5hS_ogV3.js → tsMode-BS3ALMDD.js} +1 -1
- package/dist/{typescript-4XwLasN6.js → typescript-Dddw9oJF.js} +1 -1
- package/dist/{xml-COWVUs4Q.js → xml-CTCG7vE0.js} +1 -1
- package/dist/{yaml-BEeoh71L.js → yaml-kznnmcwr.js} +1 -1
- package/package.json +1 -1
- 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/Common/Helper.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
|
89
89
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
|
90
90
|
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
|
91
91
|
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions["resultType"]) => string[];
|
|
92
|
-
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) =>
|
|
92
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => object;
|
|
93
93
|
/**
|
|
94
94
|
* Returns a debounced variant of the function
|
|
95
95
|
*/
|
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;
|
|
@@ -20,15 +20,8 @@ export interface ConfigToolbarPopupMenuConfigType {
|
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
icon?: ReactNode | null;
|
|
22
22
|
variant?: 'default' | 'negative';
|
|
23
|
-
tooltipText?: string;
|
|
24
23
|
}
|
|
25
24
|
export declare enum ConfigToolbarPopupNodeType {
|
|
26
25
|
DISCARD_DRAFT = "discardDraft",
|
|
27
26
|
EDIT_HISTORY = "editHistory"
|
|
28
27
|
}
|
|
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) => "deployment" | "pre-deployment" | "post-deployment" | "-";
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -54,12 +54,6 @@ 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;
|
|
63
57
|
};
|
|
64
58
|
export interface CollapsibleListConfig<TabType extends TabOptions = 'navLink'> {
|
|
65
59
|
/**
|
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, PreventOutsideFocusProps, WebhookEventNameType } from './types';
|
|
@@ -67,11 +66,10 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
|
67
66
|
*/
|
|
68
67
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* @
|
|
69
|
+
* @description - Function to get the lower case object
|
|
70
|
+
* @param input - The input object
|
|
71
|
+
* @returns Record<string, any>
|
|
73
72
|
*/
|
|
74
|
-
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
|
75
73
|
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
|
76
74
|
/**
|
|
77
75
|
* @description - Function to get the webhook date
|
|
@@ -61,10 +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
|
-
/** 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;
|
|
68
64
|
}) => void;
|
|
69
65
|
/** An object representing additional form state. */
|
|
70
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;
|
|
@@ -175,7 +172,6 @@ export interface ConfigMapSecretDataType {
|
|
|
175
172
|
id: number;
|
|
176
173
|
appId: number;
|
|
177
174
|
configData: ConfigMapSecretDataConfigDatumDTO[];
|
|
178
|
-
isDeletable: boolean;
|
|
179
175
|
}
|
|
180
176
|
export declare enum ConfigResourceType {
|
|
181
177
|
ConfigMap = "ConfigMap",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
2
|
var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as je } from "./index-
|
|
4
|
+
import { m as je } from "./index-jPZQLd6G.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as f } from "./index-
|
|
1
|
+
import { m as f } from "./index-jPZQLd6G.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-jPZQLd6G.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-jPZQLd6G.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Be = Object.defineProperty;
|
|
2
2
|
var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as qe } from "./index-
|
|
4
|
+
import { m as qe } from "./index-jPZQLd6G.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|