@devtron-labs/devtron-fe-common-lib 1.2.3-beta-7 → 1.2.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/{@code-editor-BoiJOahc.js → @code-editor-BJnp-BE4.js} +4239 -4300
- package/dist/{@common-rjsf-CSlAKJfL.js → @common-rjsf-DO0g3_cl.js} +2 -2
- package/dist/{@framer-motion-DFECMTRh.js → @framer-motion-DHY98qq3.js} +1 -1
- package/dist/{@react-dates-MalCS5BJ.js → @react-dates-WNnwjI5S.js} +1 -1
- package/dist/{@react-select-B8JuvbeY.js → @react-select-BbR996pa.js} +50 -50
- package/dist/{@vendor-CPMO6uwj.js → @vendor-RU8AW1bK.js} +93 -94
- 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/Helper.d.ts +1 -1
- package/dist/Common/Markdown/MarkDown.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/assets/ic-file-code.21a1f748.svg +1 -0
- package/dist/assets/ic-stamp.8689f42d.svg +1 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +515 -519
- 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
- package/dist/assets/ic-file-code.80000c9b.svg +0 -1
- package/dist/assets/ic-medal.4a7e5cbc.svg +0 -1
- package/dist/assets/ic-stamp.526499d2.svg +0 -1
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",
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="#06C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.667 14H13.5a.5.5 0 0 0 .5-.5v-8M10.5 2h-6a.5.5 0 0 0-.5.5v2.75M10.5 2 14 5.5M10.5 2v3.5H14M3.307 7.81 2 9.565l1.306 1.755m2.721-3.51 1.306 1.755-1.306 1.755"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="#664BEE" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.667 14.667h10.666"/><rect width="10.6667" height="3.33333" x="2.66675" y="8.66675" stroke="#664BEE" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" rx="1"/><path stroke="#664BEE" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5.889 3.777a2 2 0 0 1 1.95-2.444h.322a2 2 0 0 1 1.95 2.443L9 8.666H7z"/></svg>
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { OverrideMergeStrategyType } from './Pages/Applications';
|
2
1
|
export interface customEnv {
|
3
2
|
SENTRY_ENV?: string;
|
4
3
|
SENTRY_ERROR_ENABLED?: boolean;
|
@@ -79,7 +78,6 @@ export interface customEnv {
|
|
79
78
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE?: string;
|
80
79
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL?: string;
|
81
80
|
FEATURE_BULK_RESTART_WORKLOADS_FROM_RB: string;
|
82
|
-
FEATURE_DEFAULT_MERGE_STRATEGY?: OverrideMergeStrategyType;
|
83
81
|
FEATURE_DEFAULT_LANDING_RB_ENABLE?: boolean;
|
84
82
|
}
|
85
83
|
declare global {
|