@devtron-labs/devtron-fe-common-lib 1.2.8-beta-1 → 1.2.9
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-BEceVER4.js → @code-editor-AFKVuTPt.js} +5250 -5318
- package/dist/{@common-rjsf--SfC2_Jn.js → @common-rjsf-D4NzXP7Z.js} +2 -2
- package/dist/{@framer-motion-DHzxZlAx.js → @framer-motion-B6d1rF48.js} +1 -1
- package/dist/{@react-dates-BZU5RIqe.js → @react-dates-DUsXL6Ns.js} +1 -1
- package/dist/{@react-select-Dx53b3Wk.js → @react-select--zt85pEZ.js} +1 -1
- package/dist/{@vendor-BG3OpQCq.js → @vendor-DI8rS9OQ.js} +94 -95
- 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 -3
- package/dist/Common/Helper.d.ts +2 -3
- 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/index.d.ts +0 -1
- 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 +7 -0
- package/dist/assets/ic-stamp.8689f42d.svg +9 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +525 -532
- 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/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +0 -3
- 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 -7
- package/dist/assets/ic-medal.4a7e5cbc.svg +0 -3
- package/dist/assets/ic-stamp.526499d2.svg +0 -7
@@ -1,8 +1,8 @@
|
|
1
|
-
import { j as n, J as A } from "./@vendor-
|
1
|
+
import { j as n, J as A } from "./@vendor-DI8rS9OQ.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-AFKVuTPt.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, _ as m, l as I, n as Yr, o as we, p as T, q as at, r as zt, t as ae, v as Xe, w as J, x as kr, y as Qn, z as Xr, B as ti, C as ei, D as ri, E as ni, F as ii, G as Wr, H as ai, I as oi, K as si, L as ui, M as li, N as fi, O as ci, P as yt, S as k, T as pe, U as Zr, V as vi, W as di, X as W, Y as $, Z as pi, $ as he, a0 as Dt, a1 as hi, a2 as mi, a3 as $r, a4 as Mt, a5 as O, a6 as me, a7 as gi, a8 as oe, a9 as yi } from "./@vendor-DI8rS9OQ.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 { aa as xe, ab as we, ac as ve, ad as lr, ae as Le, af as Je, ag as tt, ah as at, ai as et, aj as lt, ak as rt, al as Xn, am as sr, an as Jn, ao as bt, ap as Go, aq as dr, ar as eo, as as to, at as ao, au as $o, av as Yo, aw as ur, ax as Fe, ay as Rt, az as Uo, aA as cr, aB as Qo, aC as Cr, aD as Zo, aE as Xo, aF as Jo } from "./@vendor-DI8rS9OQ.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 { aG as Gt, aH as xt, aI as Bt, aJ as v, aK as U, aL as xe, aw as re, aM as h, aE as f, aN as Y, aO as Ft, aP as je, aQ as Vt, aR as Et, aS as yt, aT as Wt, aU as Xt, aV as ne } from "./@vendor-DI8rS9OQ.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,94 +21177,93 @@ De.parseInline;
|
|
21177
21177
|
Vt.parse;
|
21178
21178
|
Bt.lex;
|
21179
21179
|
export {
|
21180
|
-
|
21180
|
+
vC as $,
|
21181
21181
|
DI as A,
|
21182
|
-
|
21183
|
-
|
21184
|
-
|
21185
|
-
|
21186
|
-
|
21187
|
-
|
21188
|
-
|
21189
|
-
|
21182
|
+
hw as B,
|
21183
|
+
ZR as C,
|
21184
|
+
GI as D,
|
21185
|
+
QR as E,
|
21186
|
+
YI as F,
|
21187
|
+
JR as G,
|
21188
|
+
vw as H,
|
21189
|
+
XI as I,
|
21190
21190
|
_e as J,
|
21191
|
-
|
21192
|
-
|
21193
|
-
|
21194
|
-
|
21195
|
-
|
21196
|
-
|
21191
|
+
KI as K,
|
21192
|
+
ZI as L,
|
21193
|
+
QI as M,
|
21194
|
+
JI as N,
|
21195
|
+
sf as O,
|
21196
|
+
Jf as P,
|
21197
21197
|
ke as Q,
|
21198
21198
|
II as R,
|
21199
|
-
|
21200
|
-
|
21201
|
-
|
21202
|
-
|
21203
|
-
|
21204
|
-
|
21205
|
-
|
21206
|
-
|
21207
|
-
|
21199
|
+
_o as S,
|
21200
|
+
zI as T,
|
21201
|
+
Zf as U,
|
21202
|
+
tq as V,
|
21203
|
+
bC as W,
|
21204
|
+
kI as X,
|
21205
|
+
fC as Y,
|
21206
|
+
wC as Z,
|
21207
|
+
hh 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
|
-
|
21267
|
-
vq as az,
|
21209
|
+
xn as a0,
|
21210
|
+
UI as a1,
|
21211
|
+
WI as a2,
|
21212
|
+
rq as a3,
|
21213
|
+
dC as a4,
|
21214
|
+
td as a5,
|
21215
|
+
ow as a6,
|
21216
|
+
nf as a7,
|
21217
|
+
eq as a8,
|
21218
|
+
NI as a9,
|
21219
|
+
yq as aA,
|
21220
|
+
dq as aB,
|
21221
|
+
pq as aC,
|
21222
|
+
gq as aD,
|
21223
|
+
vp as aE,
|
21224
|
+
lS as aF,
|
21225
|
+
rn as aG,
|
21226
|
+
PI as aH,
|
21227
|
+
RI as aI,
|
21228
|
+
EI as aJ,
|
21229
|
+
gT as aK,
|
21230
|
+
AI as aL,
|
21231
|
+
xI as aM,
|
21232
|
+
wT as aN,
|
21233
|
+
CI as aO,
|
21234
|
+
pT as aP,
|
21235
|
+
LT as aQ,
|
21236
|
+
SI as aR,
|
21237
|
+
TI as aS,
|
21238
|
+
OI as aT,
|
21239
|
+
_I as aU,
|
21240
|
+
hS as aV,
|
21241
|
+
w0 as aa,
|
21242
|
+
Xe as ab,
|
21243
|
+
To as ac,
|
21244
|
+
oq as ad,
|
21245
|
+
w1 as ae,
|
21246
|
+
MC as af,
|
21247
|
+
h0 as ag,
|
21248
|
+
iq as ah,
|
21249
|
+
NC as ai,
|
21250
|
+
HC as aj,
|
21251
|
+
a$ as ak,
|
21252
|
+
u$ as al,
|
21253
|
+
y$ as am,
|
21254
|
+
lq as an,
|
21255
|
+
sq as ao,
|
21256
|
+
YA as ap,
|
21257
|
+
uq as aq,
|
21258
|
+
cq as ar,
|
21259
|
+
S1 as as,
|
21260
|
+
aq as at,
|
21261
|
+
i$ as au,
|
21262
|
+
fq as av,
|
21263
|
+
uS as aw,
|
21264
|
+
Dt as ax,
|
21265
|
+
vq as ay,
|
21266
|
+
hq as az,
|
21268
21267
|
AE as b,
|
21269
21268
|
MI as c,
|
21270
21269
|
wI as d,
|
@@ -21275,19 +21274,19 @@ export {
|
|
21275
21274
|
bI as i,
|
21276
21275
|
nE as j,
|
21277
21276
|
hp as k,
|
21278
|
-
|
21277
|
+
jI as l,
|
21279
21278
|
De as m,
|
21280
|
-
|
21281
|
-
|
21282
|
-
|
21283
|
-
|
21284
|
-
|
21279
|
+
LI as n,
|
21280
|
+
Eo as o,
|
21281
|
+
VI as p,
|
21282
|
+
BI as q,
|
21283
|
+
FI as r,
|
21285
21284
|
D0 as s,
|
21286
|
-
|
21285
|
+
Q0 as t,
|
21287
21286
|
lb as u,
|
21288
|
-
|
21289
|
-
|
21290
|
-
|
21291
|
-
|
21292
|
-
|
21287
|
+
HI as v,
|
21288
|
+
X0 as w,
|
21289
|
+
sw as x,
|
21290
|
+
nq as y,
|
21291
|
+
XR as z
|
21293
21292
|
};
|
@@ -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;
|
@@ -260,7 +259,6 @@ export declare const API_STATUS_CODES: {
|
|
260
259
|
EXPECTATION_FAILED: number;
|
261
260
|
UNPROCESSABLE_ENTITY: number;
|
262
261
|
LOCKED: number;
|
263
|
-
UNPROCESSABLE_CONTENT: number;
|
264
262
|
};
|
265
263
|
export declare enum SERVER_MODE {
|
266
264
|
EA_ONLY = "EA_ONLY",
|
@@ -312,4 +310,3 @@ export declare enum GitProviderType {
|
|
312
310
|
* Formats the schema removing any irregularity in the existing schema
|
313
311
|
*/
|
314
312
|
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,10 +59,9 @@ 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 recursivelyRemoveNullsFromArraysInObject: (object: object) => object;
|
63
63
|
/**
|
64
64
|
* Merges the objects into one object
|
65
|
-
* Works more like Object.assign; that doesn't deep copy
|
66
65
|
* @param {object[]} objects list of js objects
|
67
66
|
* @returns object after the merge
|
68
67
|
*/
|
@@ -91,7 +90,7 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
91
90
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
92
91
|
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
93
92
|
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions["resultType"]) => string[];
|
94
|
-
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) =>
|
93
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => object;
|
95
94
|
/**
|
96
95
|
* Returns a debounced variant of the function
|
97
96
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { MarkDownProps } from './Types';
|
2
|
-
declare const MarkDown: ({ setExpandableIcon, markdown
|
2
|
+
declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
3
3
|
export default MarkDown;
|
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
|
/**
|
@@ -41,7 +41,6 @@ export * from './Collapse';
|
|
41
41
|
export * from './Security';
|
42
42
|
export * from './Button';
|
43
43
|
export * from './InvalidYAMLTippy';
|
44
|
-
export * from './EnterpriseTag';
|
45
44
|
export * from './ConfirmationModal';
|
46
45
|
export * from './DiffViewer';
|
47
46
|
export * from './DynamicDataTable';
|
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,7 @@
|
|
1
|
+
<!--
|
2
|
+
- Copyright (c) 2024. Devtron Inc.
|
3
|
+
-->
|
4
|
+
|
5
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
6
|
+
<path d="M4.66667 14H13.5005C13.5661 14 13.6312 13.9871 13.6918 13.9619C13.7525 13.9368 13.8076 13.9 13.854 13.8536C13.9005 13.8071 13.9373 13.752 13.9624 13.6913C13.9876 13.6307 14.0005 13.5657 14.0005 13.5V5.5M10.5005 2H4.5C4.36739 2 4.24021 2.05268 4.14645 2.14645C4.05268 2.24021 4 2.36739 4 2.5V5.25M10.5005 2L14.0005 5.5M10.5005 2V5.5H14.0005M3.30612 7.80952L2 9.56463L3.30612 11.3197M6.02721 7.80952L7.33333 9.56463L6.02721 11.3197" stroke="#0066CC" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
7
|
+
</svg>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!--
|
2
|
+
- Copyright (c) 2024. Devtron Inc.
|
3
|
+
-->
|
4
|
+
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
6
|
+
<path d="M2.66675 14.6667H13.3334" stroke="#664BEE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
7
|
+
<rect x="2.66675" y="8.66675" width="10.6667" height="3.33333" rx="1" stroke="#664BEE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
8
|
+
<path d="M5.88853 3.7765C5.6041 2.52497 6.55536 1.33325 7.8388 1.33325H8.16104C9.44448 1.33325 10.3957 2.52497 10.1113 3.77649L8.99992 8.66659H6.99992L5.88853 3.7765Z" stroke="#664BEE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
9
|
+
</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,8 +78,8 @@ 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;
|
82
|
+
FEATURE_CLUSTER_MAP_ENABLE?: boolean;
|
84
83
|
}
|
85
84
|
declare global {
|
86
85
|
interface Window {
|