@devtron-labs/devtron-fe-common-lib 1.0.4-beta-5 → 1.0.4-beta-6
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/types.d.ts +1 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/Types.d.ts +1 -5
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +18 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +6 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- 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/index.d.ts +1 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +1 -0
- package/dist/Shared/Services/app.types.d.ts +3 -0
- package/dist/Shared/types.d.ts +3 -26
- package/dist/{cssMode-xGDksLg-.js → cssMode-DlotFS9U.js} +1 -1
- package/dist/{freemarker2-DwBDhEWu.js → freemarker2-CBWHBMql.js} +1 -1
- package/dist/{handlebars--lczMrSO.js → handlebars-cTw1d4c6.js} +1 -1
- package/dist/{html-BdTnDt9r.js → html-RtsgnePk.js} +1 -1
- package/dist/{htmlMode-CEP1Iu1K.js → htmlMode-v37pp7uG.js} +1 -1
- package/dist/{index-CvyOfGCo.js → index-5avl9oli.js} +7522 -7511
- package/dist/index.d.ts +2 -0
- package/dist/index.js +509 -507
- package/dist/{javascript-DDWuN0k2.js → javascript-4SoXYeCY.js} +1 -1
- package/dist/{jsonMode-CjV0gIm0.js → jsonMode-BjXA8SrL.js} +1 -1
- package/dist/{liquid-DcLZbzv8.js → liquid-BkNKfj0J.js} +1 -1
- package/dist/{mdx-BVb8mkxF.js → mdx-B5mTUmi5.js} +1 -1
- package/dist/{python-DBD-sslJ.js → python-5_yqKuwk.js} +1 -1
- package/dist/{razor-DB-DLT3P.js → razor-C9Ya2I2F.js} +1 -1
- package/dist/{tsMode-CP0aXtAc.js → tsMode-BbbCnkei.js} +1 -1
- package/dist/{typescript-DMOFvCYB.js → typescript-D-hMrJpW.js} +1 -1
- package/dist/{xml-DBQvcclk.js → xml-Dh4Brxjn.js} +1 -1
- package/dist/{yaml-e7OtpUnA.js → yaml-BwlbyR5U.js} +1 -1
- package/package.json +1 -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;
|
|
@@ -257,6 +258,7 @@ export declare const API_STATUS_CODES: {
|
|
|
257
258
|
EXPECTATION_FAILED: number;
|
|
258
259
|
UNPROCESSABLE_ENTITY: number;
|
|
259
260
|
LOCKED: number;
|
|
261
|
+
UNPROCESSABLE_CONTENT: number;
|
|
260
262
|
};
|
|
261
263
|
export declare enum SERVER_MODE {
|
|
262
264
|
EA_ONLY = "EA_ONLY",
|
|
@@ -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, "children" | "className" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "
|
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "disabled" | "name" | "target" | "tagName" | "autoComplete" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "method" | "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,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode, CSSProperties, ReactElement
|
|
1
|
+
import { default as React, ReactNode, CSSProperties, ReactElement } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
@@ -25,11 +25,7 @@ export interface ResponseType<T = any> {
|
|
|
25
25
|
}
|
|
26
26
|
export interface APIOptions {
|
|
27
27
|
timeout?: number;
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use abortController instead
|
|
30
|
-
*/
|
|
31
28
|
signal?: AbortSignal;
|
|
32
|
-
abortControllerRef?: MutableRefObject<AbortController>;
|
|
33
29
|
preventAutoLogout?: boolean;
|
|
34
30
|
}
|
|
35
31
|
export interface OptionType<T = string, K = string> {
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
|
@@ -108,15 +108,15 @@ interface BaseDeploymentTemplateConfigState {
|
|
|
108
108
|
environmentConfig?: never;
|
|
109
109
|
mergeStrategy?: never;
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
type EnvironmentOverrideDeploymentTemplateConfigState = {
|
|
112
112
|
chartConfig?: never;
|
|
113
113
|
isOverridden: boolean;
|
|
114
114
|
environmentConfig: EnvironmentConfigType;
|
|
115
115
|
mergeStrategy: OverrideMergeStrategyType;
|
|
116
|
-
}
|
|
116
|
+
};
|
|
117
117
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
118
118
|
/**
|
|
119
|
-
* The first ever state of the deployment template
|
|
119
|
+
* The first ever state of the deployment template on editor
|
|
120
120
|
*/
|
|
121
121
|
originalTemplate: Record<string, string>;
|
|
122
122
|
isAppMetricsEnabled: boolean;
|
|
@@ -126,6 +126,21 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
|
|
|
126
126
|
latestDraft?: DraftMetadataDTO;
|
|
127
127
|
editorTemplate: string;
|
|
128
128
|
editorTemplateWithoutLockedKeys: string;
|
|
129
|
+
/**
|
|
130
|
+
* This final template to be applied on the deployment in string format
|
|
131
|
+
* In current editor, this may be null initially
|
|
132
|
+
*/
|
|
133
|
+
mergedTemplate: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* This final template to be applied on the deployment without locked keys in string format
|
|
136
|
+
* In current editor, this may be null initially
|
|
137
|
+
*/
|
|
138
|
+
mergedTemplateWithoutLockedKeys: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* This final template to be applied on the deployment in object format
|
|
141
|
+
* In current editor, this may be null initially
|
|
142
|
+
*/
|
|
143
|
+
mergedTemplateObject: Record<string, string> | null;
|
|
129
144
|
}
|
|
130
145
|
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
|
131
146
|
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;
|
|
@@ -25,3 +25,9 @@ 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) => "-" | "deployment" | "
|
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EnterpriseTag } from './EnterpriseTag.component';
|
|
@@ -61,6 +61,7 @@ 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;
|
|
64
65
|
}) => void;
|
|
65
66
|
/** An object representing additional form state. */
|
|
66
67
|
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;
|
|
@@ -146,9 +147,11 @@ export declare enum CMSecretExternalType {
|
|
|
146
147
|
}
|
|
147
148
|
export interface ConfigDatum {
|
|
148
149
|
name: string;
|
|
150
|
+
mergeStrategy: OverrideMergeStrategyType;
|
|
149
151
|
type: string;
|
|
150
152
|
external: boolean;
|
|
151
153
|
data: Record<string, any>;
|
|
154
|
+
patchData: Record<string, any>;
|
|
152
155
|
defaultData: Record<string, any>;
|
|
153
156
|
global: boolean;
|
|
154
157
|
externalType: CMSecretExternalType;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -640,7 +640,7 @@ interface CommonTabArgsType {
|
|
|
640
640
|
isSelected: boolean;
|
|
641
641
|
title?: string;
|
|
642
642
|
isDeleted?: boolean;
|
|
643
|
-
|
|
643
|
+
position: number;
|
|
644
644
|
iconPath?: string;
|
|
645
645
|
dynamicTitle?: string;
|
|
646
646
|
showNameOnSelect?: boolean;
|
|
@@ -658,34 +658,11 @@ interface CommonTabArgsType {
|
|
|
658
658
|
value: string;
|
|
659
659
|
}[];
|
|
660
660
|
};
|
|
661
|
-
/**
|
|
662
|
-
* If true, the fixed tab remains mounted on initial load of the component
|
|
663
|
-
*
|
|
664
|
-
* Note: Not for dynamic tabs atm
|
|
665
|
-
*
|
|
666
|
-
* @default false
|
|
667
|
-
*/
|
|
668
|
-
shouldRemainMounted?: boolean;
|
|
669
661
|
}
|
|
670
|
-
export
|
|
671
|
-
type: 'fixed';
|
|
672
|
-
/**
|
|
673
|
-
* Unique identifier for the fixed tab
|
|
674
|
-
*
|
|
675
|
-
* Note: Shouldn't contain '-'
|
|
676
|
-
*/
|
|
677
|
-
id: string;
|
|
678
|
-
idPrefix?: never;
|
|
679
|
-
} | {
|
|
680
|
-
type: 'dynamic';
|
|
681
|
-
id?: never;
|
|
662
|
+
export interface InitTabType extends CommonTabArgsType {
|
|
682
663
|
idPrefix: string;
|
|
683
|
-
}
|
|
664
|
+
}
|
|
684
665
|
export interface DynamicTabType extends CommonTabArgsType {
|
|
685
666
|
id: string;
|
|
686
|
-
/**
|
|
687
|
-
* Id of the last active tab before switching to current tab
|
|
688
|
-
*/
|
|
689
|
-
lastActiveTabId: string | null;
|
|
690
667
|
}
|
|
691
668
|
export {};
|
|
@@ -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-5avl9oli.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-5avl9oli.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-5avl9oli.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-5avl9oli.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-5avl9oli.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|