@devtron-labs/devtron-fe-common-lib 1.2.11 → 1.2.12-beta-1
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-BFV5Rbjv.js → @code-editor-DrM78ohh.js} +5190 -5122
- package/dist/{@common-rjsf-WeGK84Vq.js → @common-rjsf-BhqpUHzJ.js} +2 -2
- package/dist/{@framer-motion-B6d1rF48.js → @framer-motion-DHzxZlAx.js} +1 -1
- package/dist/{@react-dates-DUsXL6Ns.js → @react-dates-BZU5RIqe.js} +1 -1
- package/dist/{@react-select--zt85pEZ.js → @react-select-Dx53b3Wk.js} +1 -1
- package/dist/{@vendor-DI8rS9OQ.js → @vendor-BG3OpQCq.js} +95 -94
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +2 -1
- package/dist/Common/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Constants.d.ts +3 -0
- package/dist/Common/Helper.d.ts +3 -2
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +6 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +21 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +7 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +6 -0
- 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/Helpers.d.ts +5 -3
- package/dist/Shared/Hooks/useForm/useForm.d.ts +4 -0
- package/dist/Shared/Services/app.types.d.ts +4 -0
- package/dist/assets/ic-file-code.80000c9b.svg +7 -0
- package/dist/assets/ic-medal.4a7e5cbc.svg +3 -0
- package/dist/assets/ic-stamp.526499d2.svg +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +532 -525
- package/package.json +1 -1
- package/dist/assets/ic-file-code.21a1f748.svg +0 -7
- package/dist/assets/ic-stamp.8689f42d.svg +0 -9
@@ -1,8 +1,8 @@
|
|
1
|
-
import { j as n, J as A } from "./@vendor-
|
1
|
+
import { j as n, J as A } from "./@vendor-BG3OpQCq.js";
|
2
2
|
import E, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
5
|
-
import { T as y, c as H, a as J, d as w } from "./@code-editor-
|
5
|
+
import { T as y, c as H, a as J, d as w } from "./@code-editor-DrM78ohh.js";
|
6
6
|
import M, { components as O } from "react-select";
|
7
7
|
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as U, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as V, TranslatableString as q, titleId as K, canExpand as Y, deepEquals as z } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as G } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as ct,
|
1
|
+
import { g as ct, l as m, n as I, o as Yr, p as we, q as T, r as at, t as zt, v as ae, w as Xe, x as J, y as kr, z as Qn, B as Xr, C as ti, D as ei, E as ri, F as ni, G as ii, H as Wr, I as ai, K as oi, L as si, M as ui, N as li, O as fi, P as ci, S as yt, T as k, U as pe, V as Zr, W as vi, X as di, Y as W, Z as $, $ as pi, a0 as he, a1 as Dt, a2 as hi, a3 as mi, a4 as $r, a5 as Mt, a6 as O, a7 as me, a8 as gi, a9 as oe, aa as yi } from "./@vendor-BG3OpQCq.js";
|
2
2
|
import * as K from "react";
|
3
3
|
import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
|
4
4
|
var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Te from "react";
|
2
|
-
import {
|
2
|
+
import { ab as xe, ac as we, ad as ve, ae as lr, af as Le, ag as Je, ah as tt, ai as at, aj as et, ak as lt, al as rt, am as Xn, an as sr, ao as Jn, ap as bt, aq as Go, ar as dr, as as eo, at as to, au as ao, av as $o, aw as Yo, ax as ur, ay as Fe, az as Rt, aA as Uo, aB as cr, aC as Qo, aD as Cr, aE as Zo, aF as Xo, aG as Jo } from "./@vendor-BG3OpQCq.js";
|
3
3
|
import { r as Ne, g as ei, h as ti } from "./@moment-C_WeV3Af.js";
|
4
4
|
import './assets/@react-dates.css';var ro = {}, Wt = {}, jt = {}, Mr;
|
5
5
|
function Ve() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { aH as Gt, aI as xt, aJ as Bt, aK as v, aL as U, aM as xe, ax as re, aN as h, aF as f, aO as Y, aP as Ft, aQ as je, aR as Vt, aS as Et, aT as yt, aU as Wt, aV as Xt, aW as ne } from "./@vendor-BG3OpQCq.js";
|
2
2
|
import * as y from "react";
|
3
3
|
import { useContext as Zt, useRef as j, useState as ee, createContext as Nt, useMemo as q, useCallback as D, Component as St, Fragment as Be, useEffect as Ue, forwardRef as Rt } from "react";
|
4
4
|
import { createPortal as Ht } from "react-dom";
|
@@ -21177,93 +21177,94 @@ De.parseInline;
|
|
21177
21177
|
Vt.parse;
|
21178
21178
|
Bt.lex;
|
21179
21179
|
export {
|
21180
|
-
|
21180
|
+
wC as $,
|
21181
21181
|
DI as A,
|
21182
|
-
|
21183
|
-
|
21184
|
-
|
21185
|
-
|
21186
|
-
|
21187
|
-
|
21188
|
-
|
21189
|
-
|
21182
|
+
XR as B,
|
21183
|
+
hw as C,
|
21184
|
+
ZR as D,
|
21185
|
+
GI as E,
|
21186
|
+
QR as F,
|
21187
|
+
YI as G,
|
21188
|
+
JR as H,
|
21189
|
+
vw as I,
|
21190
21190
|
_e as J,
|
21191
|
-
|
21192
|
-
|
21193
|
-
|
21194
|
-
|
21195
|
-
|
21196
|
-
|
21191
|
+
XI as K,
|
21192
|
+
KI as L,
|
21193
|
+
ZI as M,
|
21194
|
+
QI as N,
|
21195
|
+
JI as O,
|
21196
|
+
sf as P,
|
21197
21197
|
ke as Q,
|
21198
21198
|
II as R,
|
21199
|
-
|
21200
|
-
|
21201
|
-
|
21202
|
-
|
21203
|
-
|
21204
|
-
|
21205
|
-
|
21206
|
-
|
21207
|
-
|
21199
|
+
Jf as S,
|
21200
|
+
_o as T,
|
21201
|
+
zI as U,
|
21202
|
+
Zf as V,
|
21203
|
+
tq as W,
|
21204
|
+
bC as X,
|
21205
|
+
kI as Y,
|
21206
|
+
fC as Z,
|
21207
|
+
wt as _,
|
21208
21208
|
gI as a,
|
21209
|
-
|
21210
|
-
|
21211
|
-
|
21212
|
-
|
21213
|
-
|
21214
|
-
|
21215
|
-
|
21216
|
-
|
21217
|
-
|
21218
|
-
|
21219
|
-
|
21220
|
-
|
21221
|
-
|
21222
|
-
|
21223
|
-
|
21224
|
-
|
21225
|
-
|
21226
|
-
|
21227
|
-
|
21228
|
-
|
21229
|
-
|
21230
|
-
|
21231
|
-
|
21232
|
-
|
21233
|
-
|
21234
|
-
|
21235
|
-
|
21236
|
-
|
21237
|
-
|
21238
|
-
|
21239
|
-
|
21240
|
-
|
21241
|
-
|
21242
|
-
|
21243
|
-
|
21244
|
-
|
21245
|
-
|
21246
|
-
|
21247
|
-
|
21248
|
-
|
21249
|
-
|
21250
|
-
|
21251
|
-
|
21252
|
-
|
21253
|
-
|
21254
|
-
|
21255
|
-
|
21256
|
-
|
21257
|
-
|
21258
|
-
|
21259
|
-
|
21260
|
-
|
21261
|
-
|
21262
|
-
|
21263
|
-
|
21264
|
-
|
21265
|
-
|
21266
|
-
|
21209
|
+
vC as a0,
|
21210
|
+
xn as a1,
|
21211
|
+
UI as a2,
|
21212
|
+
WI as a3,
|
21213
|
+
rq as a4,
|
21214
|
+
dC as a5,
|
21215
|
+
td as a6,
|
21216
|
+
ow as a7,
|
21217
|
+
nf as a8,
|
21218
|
+
eq as a9,
|
21219
|
+
hq as aA,
|
21220
|
+
yq as aB,
|
21221
|
+
dq as aC,
|
21222
|
+
pq as aD,
|
21223
|
+
gq as aE,
|
21224
|
+
vp as aF,
|
21225
|
+
lS as aG,
|
21226
|
+
rn as aH,
|
21227
|
+
PI as aI,
|
21228
|
+
RI as aJ,
|
21229
|
+
EI as aK,
|
21230
|
+
gT as aL,
|
21231
|
+
AI as aM,
|
21232
|
+
xI as aN,
|
21233
|
+
wT as aO,
|
21234
|
+
CI as aP,
|
21235
|
+
pT as aQ,
|
21236
|
+
LT as aR,
|
21237
|
+
SI as aS,
|
21238
|
+
TI as aT,
|
21239
|
+
OI as aU,
|
21240
|
+
_I as aV,
|
21241
|
+
hS as aW,
|
21242
|
+
NI as aa,
|
21243
|
+
w0 as ab,
|
21244
|
+
Xe as ac,
|
21245
|
+
To as ad,
|
21246
|
+
oq as ae,
|
21247
|
+
w1 as af,
|
21248
|
+
MC as ag,
|
21249
|
+
h0 as ah,
|
21250
|
+
iq as ai,
|
21251
|
+
NC as aj,
|
21252
|
+
HC as ak,
|
21253
|
+
a$ as al,
|
21254
|
+
u$ as am,
|
21255
|
+
y$ as an,
|
21256
|
+
lq as ao,
|
21257
|
+
sq as ap,
|
21258
|
+
YA as aq,
|
21259
|
+
uq as ar,
|
21260
|
+
cq as as,
|
21261
|
+
S1 as at,
|
21262
|
+
aq as au,
|
21263
|
+
i$ as av,
|
21264
|
+
fq as aw,
|
21265
|
+
uS as ax,
|
21266
|
+
Dt as ay,
|
21267
|
+
vq as az,
|
21267
21268
|
AE as b,
|
21268
21269
|
MI as c,
|
21269
21270
|
wI as d,
|
@@ -21274,19 +21275,19 @@ export {
|
|
21274
21275
|
bI as i,
|
21275
21276
|
nE as j,
|
21276
21277
|
hp as k,
|
21277
|
-
|
21278
|
+
hh as l,
|
21278
21279
|
De as m,
|
21279
|
-
|
21280
|
-
|
21281
|
-
|
21282
|
-
|
21283
|
-
|
21280
|
+
jI as n,
|
21281
|
+
LI as o,
|
21282
|
+
Eo as p,
|
21283
|
+
VI as q,
|
21284
|
+
BI as r,
|
21284
21285
|
D0 as s,
|
21285
|
-
|
21286
|
+
FI as t,
|
21286
21287
|
lb as u,
|
21287
|
-
|
21288
|
-
|
21289
|
-
|
21290
|
-
|
21291
|
-
|
21288
|
+
Q0 as v,
|
21289
|
+
HI as w,
|
21290
|
+
X0 as x,
|
21291
|
+
sw as y,
|
21292
|
+
nq as z
|
21292
21293
|
};
|
@@ -32,4 +32,5 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
32
32
|
code: string;
|
33
33
|
noParsing: boolean;
|
34
34
|
};
|
35
|
-
export declare const
|
35
|
+
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
36
|
+
export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
|
|
28
28
|
validatorSchema?: any;
|
29
29
|
isKubernetes?: boolean;
|
30
30
|
cleanData?: boolean;
|
31
|
-
|
31
|
+
schemaURI?: string;
|
32
32
|
/**
|
33
33
|
* If true, disable the in-built search of monaco editor
|
34
34
|
* @default false
|
@@ -81,6 +81,7 @@ export interface CodeEditorInitialValueType {
|
|
81
81
|
theme?: string;
|
82
82
|
value: string;
|
83
83
|
noParsing?: boolean;
|
84
|
+
tabSize: number;
|
84
85
|
}
|
85
86
|
export interface CodeEditorState {
|
86
87
|
mode: MODES;
|
@@ -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;
|
@@ -259,6 +260,7 @@ export declare const API_STATUS_CODES: {
|
|
259
260
|
EXPECTATION_FAILED: number;
|
260
261
|
UNPROCESSABLE_ENTITY: number;
|
261
262
|
LOCKED: number;
|
263
|
+
UNPROCESSABLE_CONTENT: number;
|
262
264
|
};
|
263
265
|
export declare enum SERVER_MODE {
|
264
266
|
EA_ONLY = "EA_ONLY",
|
@@ -310,3 +312,4 @@ export declare enum GitProviderType {
|
|
310
312
|
* Formats the schema removing any irregularity in the existing schema
|
311
313
|
*/
|
312
314
|
export declare const getFormattedSchema: (schema?: string) => string;
|
315
|
+
export declare const UNCHANGED_ARRAY_ELEMENT_SYMBOL: unique symbol;
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -59,9 +59,10 @@ export declare const getFilteredChartVersions: (charts: any, selectedChartType:
|
|
59
59
|
* @param {object} object from which we need to delete nulls in its arrays
|
60
60
|
* @returns object after removing (in-place) the null items in arrays
|
61
61
|
*/
|
62
|
-
export declare const
|
62
|
+
export declare const recursivelyRemoveSymbolFromArraysInObject: (object: object, symbol: symbol) => object;
|
63
63
|
/**
|
64
64
|
* Merges the objects into one object
|
65
|
+
* Works more like Object.assign; that doesn't deep copy
|
65
66
|
* @param {object[]} objects list of js objects
|
66
67
|
* @returns object after the merge
|
67
68
|
*/
|
@@ -90,7 +91,7 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
90
91
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
91
92
|
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
92
93
|
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions["resultType"]) => string[];
|
93
|
-
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) =>
|
94
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
|
94
95
|
/**
|
95
96
|
* Returns a debounced variant of the function
|
96
97
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { MarkDownProps } from './Types';
|
2
|
-
declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
2
|
+
declare const MarkDown: ({ setExpandableIcon, markdown: markdownProp, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
3
3
|
export default MarkDown;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './GUIView';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './DeploymentTemplate';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './AppConfiguration';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './utils';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
2
|
+
import { ServerErrors } from '../../../../../../Common/ServerError';
|
2
3
|
import { OverrideMergeStrategyType } from '../types';
|
3
4
|
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
4
5
|
export interface DeploymentChartVersionType {
|
@@ -108,15 +109,15 @@ interface BaseDeploymentTemplateConfigState {
|
|
108
109
|
environmentConfig?: never;
|
109
110
|
mergeStrategy?: never;
|
110
111
|
}
|
111
|
-
|
112
|
+
type EnvironmentOverrideDeploymentTemplateConfigState = {
|
112
113
|
chartConfig?: never;
|
113
114
|
isOverridden: boolean;
|
114
115
|
environmentConfig: EnvironmentConfigType;
|
115
116
|
mergeStrategy: OverrideMergeStrategyType;
|
116
|
-
}
|
117
|
+
};
|
117
118
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
118
119
|
/**
|
119
|
-
* The first ever state of the deployment template
|
120
|
+
* The first ever state of the deployment template on editor
|
120
121
|
*/
|
121
122
|
originalTemplate: Record<string, string>;
|
122
123
|
isAppMetricsEnabled: boolean;
|
@@ -126,6 +127,23 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
|
|
126
127
|
latestDraft?: DraftMetadataDTO;
|
127
128
|
editorTemplate: string;
|
128
129
|
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;
|
129
147
|
}
|
130
148
|
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
131
149
|
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;
|
@@ -20,8 +20,15 @@ export interface ConfigToolbarPopupMenuConfigType {
|
|
20
20
|
disabled?: boolean;
|
21
21
|
icon?: ReactNode | null;
|
22
22
|
variant?: 'default' | 'negative';
|
23
|
+
tooltipText?: string;
|
23
24
|
}
|
24
25
|
export declare enum ConfigToolbarPopupNodeType {
|
25
26
|
DISCARD_DRAFT = "discardDraft",
|
26
27
|
EDIT_HISTORY = "editHistory"
|
27
28
|
}
|
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) => "-" | "pre-deployment" | "post-deployment" | "deployment";
|
package/dist/Pages/index.d.ts
CHANGED
@@ -54,6 +54,12 @@ 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;
|
57
63
|
};
|
58
64
|
export interface CollapsibleListConfig<TabType extends TabOptions = 'navLink'> {
|
59
65
|
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as EnterpriseTag } from './EnterpriseTag.component';
|
@@ -41,6 +41,7 @@ export * from './Collapse';
|
|
41
41
|
export * from './Security';
|
42
42
|
export * from './Button';
|
43
43
|
export * from './InvalidYAMLTippy';
|
44
|
+
export * from './EnterpriseTag';
|
44
45
|
export * from './ConfirmationModal';
|
45
46
|
export * from './DiffViewer';
|
46
47
|
export * from './DynamicDataTable';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { Pair } from 'yaml';
|
3
|
+
import { StrictRJSFSchema } from '@rjsf/utils';
|
3
4
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
4
5
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
5
6
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, WebhookEventNameType } from './types';
|
@@ -66,10 +67,11 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
66
67
|
*/
|
67
68
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
68
69
|
/**
|
69
|
-
*
|
70
|
-
*
|
71
|
-
* @
|
70
|
+
* This function returns a null/zero value corresponding to @type
|
71
|
+
*
|
72
|
+
* @param type - a RJSF supported type
|
72
73
|
*/
|
74
|
+
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
73
75
|
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
74
76
|
/**
|
75
77
|
* @description - Function to get the webhook date
|
@@ -61,6 +61,10 @@ 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;
|
64
68
|
}) => void;
|
65
69
|
/** An object representing additional form state. */
|
66
70
|
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;
|
@@ -147,9 +148,11 @@ export declare enum CMSecretExternalType {
|
|
147
148
|
}
|
148
149
|
export interface ConfigDatum {
|
149
150
|
name: string;
|
151
|
+
mergeStrategy: OverrideMergeStrategyType;
|
150
152
|
type: string;
|
151
153
|
external: boolean;
|
152
154
|
data: Record<string, any>;
|
155
|
+
patchData: Record<string, any>;
|
153
156
|
defaultData: Record<string, any>;
|
154
157
|
global: boolean;
|
155
158
|
externalType: CMSecretExternalType;
|
@@ -172,6 +175,7 @@ export interface ConfigMapSecretDataType {
|
|
172
175
|
id: number;
|
173
176
|
appId: number;
|
174
177
|
configData: ConfigMapSecretDataConfigDatumDTO[];
|
178
|
+
isDeletable: boolean;
|
175
179
|
}
|
176
180
|
export declare enum ConfigResourceType {
|
177
181
|
ConfigMap = "ConfigMap",
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<!--
|
2
|
+
- Copyright (c) 2024. Devtron Inc.
|
3
|
+
-->
|
4
|
+
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
6
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 21h13.25a.75.75 0 0 0 .75-.75v-12M15.75 3h-9a.75.75 0 0 0-.75.75v4.125M15.75 3 21 8.25M15.75 3v5.25H21M4.96 11.714 3 14.347l1.96 2.633m4.08-5.266L11 14.347 9.04 16.98" vector-effect="non-scaling-stroke"/>
|
7
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
2
|
+
<path d="M16.4996 14.9995V22.5L11.9989 20.25L7.49957 22.5V15.0002M19.499 9C19.499 13.1421 16.1412 16.5 11.999 16.5C7.85689 16.5 4.49902 13.1421 4.49902 9C4.49902 4.85786 7.85689 1.5 11.999 1.5C16.1412 1.5 19.499 4.85786 19.499 9Z" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<!--
|
2
|
+
- Copyright (c) 2024. Devtron Inc.
|
3
|
+
-->
|
4
|
+
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
6
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 22h16M5 18h14a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1Zm8.5-5 1.945-8.557A2 2 0 0 0 13.495 2h-2.99a2 2 0 0 0-1.95 2.443L10.5 13h3Z" vector-effect="non-scaling-stroke"/>
|
7
|
+
</svg>
|
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { OverrideMergeStrategyType } from './Pages/Applications';
|
1
2
|
export interface customEnv {
|
2
3
|
SENTRY_ENV?: string;
|
3
4
|
SENTRY_ERROR_ENABLED?: boolean;
|
@@ -78,6 +79,7 @@ export interface customEnv {
|
|
78
79
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE?: string;
|
79
80
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL?: string;
|
80
81
|
FEATURE_BULK_RESTART_WORKLOADS_FROM_RB: string;
|
82
|
+
FEATURE_DEFAULT_MERGE_STRATEGY?: OverrideMergeStrategyType;
|
81
83
|
FEATURE_DEFAULT_LANDING_RB_ENABLE?: boolean;
|
82
84
|
FEATURE_CLUSTER_MAP_ENABLE?: boolean;
|
83
85
|
}
|