@devtron-labs/devtron-fe-common-lib 1.0.3-beta-6 → 1.0.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 +1 -2
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Common/Types.d.ts +1 -0
- 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/index.d.ts +0 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +0 -7
- package/dist/Shared/constants.d.ts +3 -0
- package/dist/{cssMode-DCR1w9Re.js → cssMode-w7hOCM0k.js} +1 -1
- package/dist/{freemarker2-Pri-fm-h.js → freemarker2-DozH2J0x.js} +1 -1
- package/dist/{handlebars-Bc649pL7.js → handlebars-dN0ZVyA3.js} +1 -1
- package/dist/{html-DOZCX-Mf.js → html-NJLCqk0N.js} +1 -1
- package/dist/{htmlMode-CSU-rHz2.js → htmlMode-CTo9GHtC.js} +1 -1
- package/dist/{index-CG8JuF0O.js → index-dmW9GcCO.js} +17563 -17556
- package/dist/index.js +418 -419
- package/dist/{javascript-DhtX6y9g.js → javascript-BhJoD1Q4.js} +1 -1
- package/dist/{jsonMode-Botl4_BG.js → jsonMode-C0A--CGI.js} +1 -1
- package/dist/{liquid-BWrkuiJo.js → liquid-ByhVZdgf.js} +1 -1
- package/dist/{mdx-BM9QKOzD.js → mdx-C_dgBpbD.js} +1 -1
- package/dist/{python-CJlA84hV.js → python-C1VMAcSn.js} +1 -1
- package/dist/{razor-CcG19zL0.js → razor-BEtIbemt.js} +1 -1
- package/dist/{tsMode-C3_wtKbQ.js → tsMode-QYFD9xGf.js} +1 -1
- package/dist/{typescript-hVj4cmi3.js → typescript-DiZk29SG.js} +1 -1
- package/dist/{xml-BSMnWW3M.js → xml-BGXmaQy0.js} +1 -1
- package/dist/{yaml-DDrMxWbU.js → yaml-DInrU7r8.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;
|
|
@@ -256,8 +255,8 @@ export declare const API_STATUS_CODES: {
|
|
|
256
255
|
PERMISSION_DENIED: number;
|
|
257
256
|
NOT_FOUND: number;
|
|
258
257
|
EXPECTATION_FAILED: number;
|
|
258
|
+
UNPROCESSABLE_ENTITY: number;
|
|
259
259
|
LOCKED: number;
|
|
260
|
-
UNPROCESSABLE_CONTENT: number;
|
|
261
260
|
};
|
|
262
261
|
export declare enum SERVER_MODE {
|
|
263
262
|
EA_ONLY = "EA_ONLY",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ErrorScreenManagerProps } from './Types';
|
|
2
|
-
declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, heightToDeduct, redirectURL, }: ErrorScreenManagerProps) => JSX.Element;
|
|
2
|
+
declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, heightToDeduct, redirectURL, imageType, }: ErrorScreenManagerProps) => JSX.Element;
|
|
3
3
|
export default ErrorScreenManager;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'ti
|
|
|
124
124
|
}
|
|
125
125
|
export interface ErrorScreenManagerProps {
|
|
126
126
|
code?: number;
|
|
127
|
+
imageType?: ImageType;
|
|
127
128
|
reload?: (...args: any[]) => any;
|
|
128
129
|
subtitle?: React.ReactChild;
|
|
129
130
|
reloadClass?: string;
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
|
@@ -107,34 +107,16 @@ interface BaseDeploymentTemplateConfigState {
|
|
|
107
107
|
isOverridden?: never;
|
|
108
108
|
environmentConfig?: never;
|
|
109
109
|
mergeStrategy?: never;
|
|
110
|
-
mergedTemplate?: never;
|
|
111
|
-
mergedTemplateWithoutLockedKeys?: never;
|
|
112
|
-
mergedTemplateObject?: never;
|
|
113
110
|
}
|
|
114
|
-
|
|
111
|
+
interface EnvironmentOverrideDeploymentTemplateConfigState {
|
|
115
112
|
chartConfig?: never;
|
|
116
113
|
isOverridden: boolean;
|
|
117
114
|
environmentConfig: EnvironmentConfigType;
|
|
118
115
|
mergeStrategy: OverrideMergeStrategyType;
|
|
119
|
-
|
|
120
|
-
* This final template to be applied on the deployment in string format
|
|
121
|
-
* In current editor, this may be null initially
|
|
122
|
-
*/
|
|
123
|
-
mergedTemplate: string;
|
|
124
|
-
/**
|
|
125
|
-
* This final template to be applied on the deployment without locked keys in string format
|
|
126
|
-
* In current editor, this may be null initially
|
|
127
|
-
*/
|
|
128
|
-
mergedTemplateWithoutLockedKeys: string | null;
|
|
129
|
-
/**
|
|
130
|
-
* This final template to be applied on the deployment in object format
|
|
131
|
-
* In current editor, this may be null initially
|
|
132
|
-
*/
|
|
133
|
-
mergedTemplateObject: Record<string, string> | null;
|
|
134
|
-
};
|
|
116
|
+
}
|
|
135
117
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
136
118
|
/**
|
|
137
|
-
* The first ever state of the deployment template
|
|
119
|
+
* The first ever state of the deployment template
|
|
138
120
|
*/
|
|
139
121
|
originalTemplate: Record<string, string>;
|
|
140
122
|
isAppMetricsEnabled: boolean;
|
|
@@ -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
|
-
}
|
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 { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
|
5
4
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
6
5
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -64,10 +63,4 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
|
64
63
|
* and the values are arrays of objects that share the same key value.
|
|
65
64
|
*/
|
|
66
65
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
67
|
-
/**
|
|
68
|
-
* This function returns a null/zero value corresponding to @type
|
|
69
|
-
*
|
|
70
|
-
* @param type - a RJSF supported type
|
|
71
|
-
*/
|
|
72
|
-
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
|
73
66
|
export {};
|
|
@@ -414,3 +414,6 @@ export declare const TRIGGER_STATUS_PROGRESSING: string[];
|
|
|
414
414
|
export declare const CONFIGURATION_TYPE_VALUES: ConfigurationType[];
|
|
415
415
|
export declare const DEFAULT_LOCKED_KEYS_CONFIG: Readonly<ConfigKeysWithLockType>;
|
|
416
416
|
export declare const ALL_RESOURCE_KIND_FILTER = "all";
|
|
417
|
+
export declare const OPEN_NEW_TICKET = "https://enterprise.devtron.ai/portal/en/newticket";
|
|
418
|
+
export declare const VIEW_ALL_TICKETS = "https://enterprise.devtron.ai/portal/en/myarea";
|
|
419
|
+
export declare const RAISE_ISSUE = "https://github.com/devtron-labs/devtron/issues/new/choose";
|
|
@@ -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-dmW9GcCO.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-dmW9GcCO.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-dmW9GcCO.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-dmW9GcCO.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-dmW9GcCO.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|