@devtron-labs/devtron-fe-common-lib 1.12.0-beta-6 → 1.12.0-beta-8
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-O6rcFNCZ.js → @code-editor-Bvc6gB-1.js} +3714 -3703
- package/dist/{@common-rjsf-X2jUWono.js → @common-rjsf-BfjjNQoV.js} +19 -19
- package/dist/Common/Checkbox/Checkbox.d.ts +2 -0
- package/dist/Common/Checkbox/index.d.ts +1 -0
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Types.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +0 -38
- 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/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +18 -4
- package/dist/Shared/Components/Icon/types.d.ts +1 -1
- package/dist/Shared/Components/License/index.d.ts +1 -1
- package/dist/Shared/Components/License/utils.d.ts +2 -1
- package/dist/Shared/Components/LoginBanner/index.d.ts +0 -2
- package/dist/Shared/Components/SelectPicker/common.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
- package/dist/Shared/Components/StatusComponent/types.d.ts +1 -2
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +0 -5
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-14-day-trial-chip.0fbc1bf7.svg +36 -0
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
- package/dist/assets/ic-azure-aks.a9e437d5.svg +46 -0
- package/dist/assets/ic-bulk-check.0f698efa.svg +21 -0
- package/dist/assets/ic-bulk-check.99e92f7a.svg +21 -0
- package/dist/assets/ic-caret-down-small.7c4f88bf.svg +3 -0
- package/dist/assets/ic-caret-right.0ff813c2.svg +3 -0
- package/dist/assets/ic-checkbox-hover.0151d832.svg +20 -0
- package/dist/assets/ic-checkbox-hover.93e8d66a.svg +20 -0
- package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +22 -0
- package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +22 -0
- package/dist/assets/ic-checkbox-selected.47444fab.svg +20 -0
- package/dist/assets/ic-checkbox-selected.c5539d6f.svg +20 -0
- package/dist/assets/ic-checkbox-unselected.8054e3d7.svg +19 -0
- package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
- package/dist/assets/ic-cloud-vms.27ea954e.svg +5 -0
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
- package/dist/assets/ic-google-gke.07314724.svg +9 -0
- package/dist/assets/{ic-info-filled.9277eb13.svg → ic-info-filled.763be331.svg} +1 -1
- package/dist/assets/ic-install.28c3beec.svg +3 -0
- package/dist/assets/ic-k3s.7f4bf72d.svg +3 -0
- package/dist/assets/ic-kind.bd8ee992.svg +9 -0
- package/dist/assets/ic-laptop.485e21b4.svg +3 -0
- package/dist/assets/ic-login-devtron-logo.702a1d04.svg +22 -0
- package/dist/assets/ic-medal.a2e911f5.svg +19 -0
- package/dist/assets/ic-minikube.d9ff1575.svg +9 -0
- package/dist/assets/ic-mobile.7c649251.svg +4 -0
- package/dist/assets/ic-ubuntu.fa47508f.svg +4 -0
- package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
- package/dist/assets/ic-wifi-slash.d0390749.svg +3 -0
- package/dist/index.js +641 -643
- package/package.json +1 -1
- package/dist/Common/Checkbox.d.ts +0 -5
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
- package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +0 -3
- package/dist/assets/ic-cluster.71ba9e26.svg +0 -3
- package/dist/assets/ic-delete-dots.5380e0d0.svg +0 -62
- package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +0 -3
- package/dist/assets/ic-enterprise-tag.209dd129.svg +0 -43
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, av as y, ax as k, aw as W } from "./@vendor-SjXFleuT.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-Bvc6gB-1.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
|
@@ -89,14 +89,14 @@ import './assets/@common-rjsf.css';const O = {
|
|
89
89
|
}) => {
|
90
90
|
const u = B(a), f = $("ArrayFieldItemTemplate", c, u), p = u.title || x;
|
91
91
|
return /* @__PURE__ */ n.jsx("fieldset", { className: t, id: r.$id, children: i.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
92
|
-
i.map(({ key:
|
92
|
+
i.map(({ key: _, ...j }, h) => {
|
93
93
|
const m = {
|
94
|
-
...
|
94
|
+
...j.children,
|
95
95
|
props: {
|
96
|
-
...
|
96
|
+
...j.children.props
|
97
97
|
}
|
98
98
|
};
|
99
|
-
return /* @__PURE__ */ n.jsx(f, { ...
|
99
|
+
return /* @__PURE__ */ n.jsx(f, { ...j, children: m }, _);
|
100
100
|
}),
|
101
101
|
/* @__PURE__ */ n.jsx(
|
102
102
|
A,
|
@@ -178,11 +178,11 @@ import './assets/@common-rjsf.css';const O = {
|
|
178
178
|
classNames: x,
|
179
179
|
schema: u,
|
180
180
|
rawDescription: f
|
181
|
-
} = e, p = B(d),
|
181
|
+
} = e, p = B(d), _ = $(
|
182
182
|
"WrapIfAdditionalTemplate",
|
183
183
|
c,
|
184
184
|
p
|
185
|
-
),
|
185
|
+
), j = L in u, h = (o || u.type === "boolean") && !j, m = u.type === "array";
|
186
186
|
return i ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: r }) : (
|
187
187
|
// NOTE: need to override the margins of default rjsf css
|
188
188
|
/* @__PURE__ */ n.jsxs("div", { className: `${x} mb-0`, children: [
|
@@ -206,7 +206,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
206
206
|
id: t,
|
207
207
|
required: l,
|
208
208
|
rawDescription: f,
|
209
|
-
children: /* @__PURE__ */ n.jsx(
|
209
|
+
children: /* @__PURE__ */ n.jsx(_, { ...e, children: r })
|
210
210
|
}
|
211
211
|
),
|
212
212
|
a
|
@@ -366,8 +366,8 @@ import './assets/@common-rjsf.css';const O = {
|
|
366
366
|
uiSchema: x,
|
367
367
|
registry: l
|
368
368
|
}
|
369
|
-
),
|
370
|
-
const h = c.properties?.[
|
369
|
+
), _ = a.filter((j) => {
|
370
|
+
const h = c.properties?.[j.name]?.hidden;
|
371
371
|
if (!h)
|
372
372
|
return !0;
|
373
373
|
try {
|
@@ -384,7 +384,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
384
384
|
} catch {
|
385
385
|
return !0;
|
386
386
|
}
|
387
|
-
}).map((
|
387
|
+
}).sort((j) => c.properties?.[j.name]?.type === "boolean" ? -1 : 1).map((j) => j.content);
|
388
388
|
return f ? a.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
389
389
|
/* @__PURE__ */ n.jsx(
|
390
390
|
T,
|
@@ -394,12 +394,12 @@ import './assets/@common-rjsf.css';const O = {
|
|
394
394
|
showLabel: !0,
|
395
395
|
id: s.$id,
|
396
396
|
shouldAlignCenter: !1,
|
397
|
-
children: /* @__PURE__ */ n.jsx("div", { children:
|
397
|
+
children: /* @__PURE__ */ n.jsx("div", { children: _ })
|
398
398
|
}
|
399
399
|
),
|
400
400
|
p
|
401
401
|
] }) : /* @__PURE__ */ n.jsx(T, { label: d, required: o, showLabel: !0, id: s.$id, children: p }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
402
|
-
|
402
|
+
_,
|
403
403
|
p
|
404
404
|
] });
|
405
405
|
}, we = (e) => {
|
@@ -473,8 +473,8 @@ import './assets/@common-rjsf.css';const O = {
|
|
473
473
|
onFocus: c
|
474
474
|
}) => {
|
475
475
|
const d = (u, f) => {
|
476
|
-
const { id: p, checked:
|
477
|
-
f === "blur" ? o(p,
|
476
|
+
const { id: p, checked: _ } = u.target;
|
477
|
+
f === "blur" ? o(p, _) : f === "focus" && c(p, _);
|
478
478
|
}, x = z(s) ? !1 : s;
|
479
479
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
480
480
|
/* @__PURE__ */ n.jsx(
|
@@ -507,18 +507,18 @@ import './assets/@common-rjsf.css';const O = {
|
|
507
507
|
onBlur: d,
|
508
508
|
onFocus: x,
|
509
509
|
placeholder: u
|
510
|
-
} = e, { enumOptions: f = [] } = r, p = s ? [] : "",
|
510
|
+
} = e, { enumOptions: f = [] } = r, p = s ? [] : "", _ = (h) => {
|
511
511
|
c(s ? h.map((m) => m.value) : h.value);
|
512
|
-
},
|
512
|
+
}, j = (h) => s ? f.filter((m) => h.some((g) => E(g, m.value))) : f.find((m) => E(h, m.value));
|
513
513
|
return /* @__PURE__ */ n.jsx(
|
514
514
|
Q,
|
515
515
|
{
|
516
516
|
id: t,
|
517
517
|
name: t,
|
518
518
|
isMulti: s,
|
519
|
-
value: typeof a > "u" ? p :
|
519
|
+
value: typeof a > "u" ? p : j(a),
|
520
520
|
autoFocus: o,
|
521
|
-
onChange:
|
521
|
+
onChange: _,
|
522
522
|
options: f,
|
523
523
|
onBlur: () => d(t, a),
|
524
524
|
onFocus: () => x(t, a),
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Checkbox';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MutableRefObject } from 'react';
|
2
2
|
import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
|
3
|
-
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole,
|
3
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
|
4
4
|
import { ApiResourceType } from '../Pages';
|
5
5
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
6
6
|
export declare const SourceTypeMap: {
|
@@ -21,7 +21,7 @@ export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
21
21
|
export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
|
22
22
|
export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
23
23
|
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
24
|
-
export declare function getNamespaceListMin(clusterIdsCsv: string
|
24
|
+
export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
|
25
25
|
export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
|
26
26
|
/**
|
27
27
|
*
|
package/dist/Common/Types.d.ts
CHANGED
@@ -7,4 +7,4 @@ export declare const deleteResource: (resourceListPayload: ResourceListPayloadTy
|
|
7
7
|
export declare const deleteNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
8
8
|
export declare const cordonNodeCapacity: (requestPayload: NodeCordonRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
9
9
|
export declare const drainNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
10
|
-
export declare const getClusterListRaw: (
|
10
|
+
export declare const getClusterListRaw: () => Promise<ResponseType<ClusterDetail[]>>;
|
@@ -1,20 +1,10 @@
|
|
1
1
|
import { Dispatch, ReactElement, SetStateAction } from 'react';
|
2
|
-
import { InstallationClusterType } from '../../Shared/types';
|
3
2
|
import { NodeActionRequest } from './ResourceBrowser.Types';
|
4
3
|
export declare enum ClusterFiltersType {
|
5
4
|
ALL_CLUSTERS = "all",
|
6
5
|
HEALTHY = "healthy",
|
7
6
|
UNHEALTHY = "unhealthy"
|
8
7
|
}
|
9
|
-
export declare enum InstallationClusterStatus {
|
10
|
-
Creating = "Creating",
|
11
|
-
Updated = "Updated",
|
12
|
-
Updating = "Updating",
|
13
|
-
Installed = "Installed",
|
14
|
-
Failed = "Failed",
|
15
|
-
Deleting = "Deleting",
|
16
|
-
Deleted = "Deleted"
|
17
|
-
}
|
18
8
|
export declare enum ClusterStatusType {
|
19
9
|
HEALTHY = "healthy",
|
20
10
|
UNHEALTHY = "unhealthy",
|
@@ -52,7 +42,6 @@ export interface ClusterCapacityType {
|
|
52
42
|
nodeErrors: Record<string, string>[];
|
53
43
|
status?: ClusterStatusType;
|
54
44
|
isProd: boolean;
|
55
|
-
installationId?: number;
|
56
45
|
}
|
57
46
|
export interface ClusterDetail extends ClusterCapacityType {
|
58
47
|
id: number;
|
@@ -81,31 +70,4 @@ export interface AdditionalConfirmationModalOptionsProps<T = unknown> {
|
|
81
70
|
setOptionsData: Dispatch<SetStateAction<T>>;
|
82
71
|
children?: ReactElement;
|
83
72
|
}
|
84
|
-
export interface InstallationClusterStepType {
|
85
|
-
lastTransitionTime: string;
|
86
|
-
lastProbeTime: string;
|
87
|
-
message: string;
|
88
|
-
reason: string;
|
89
|
-
status: 'False' | 'True' | 'Unknown';
|
90
|
-
type: string;
|
91
|
-
}
|
92
|
-
export interface InstallationClusterConfigDTO {
|
93
|
-
installationId: number;
|
94
|
-
installationStatus: InstallationClusterStatus;
|
95
|
-
name: string;
|
96
|
-
values: string;
|
97
|
-
valuesSchema: string;
|
98
|
-
isProd: boolean;
|
99
|
-
installationType: InstallationClusterType;
|
100
|
-
conditions: InstallationClusterStepType[];
|
101
|
-
installedEntityId: number | 0;
|
102
|
-
}
|
103
|
-
export interface InstallationClusterConfigType extends Pick<InstallationClusterConfigDTO, 'installationType' | 'conditions'> {
|
104
|
-
schema: object;
|
105
|
-
values: object;
|
106
|
-
installationId: number;
|
107
|
-
name: string;
|
108
|
-
status: InstallationClusterStatus;
|
109
|
-
correspondingClusterId: number | 0;
|
110
|
-
}
|
111
73
|
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as EnterpriseTag } from './EnterpriseTag.component';
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { AnimatePresence } from 'framer-motion';
|
1
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
2
2
|
export * from './MotionDiv';
|
3
|
-
export { AnimatePresence };
|
3
|
+
export { AnimatePresence, motion };
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
2
|
export declare const iconMap: {
|
3
|
+
'ic-14-day-trial-chip': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
3
4
|
'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
5
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
6
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -8,8 +9,10 @@ export declare const iconMap: {
|
|
8
9
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
10
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
11
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
|
+
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
13
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
14
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
|
+
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
16
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
17
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
18
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -20,7 +23,9 @@ export declare const iconMap: {
|
|
20
23
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
24
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
25
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
|
+
'ic-caret-down-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
27
|
'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
|
+
'ic-caret-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
29
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
30
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
31
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -30,7 +35,7 @@ export declare const iconMap: {
|
|
30
35
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
36
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
32
37
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
33
|
-
'ic-
|
38
|
+
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
34
39
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
35
40
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
36
41
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -38,7 +43,6 @@ export declare const iconMap: {
|
|
38
43
|
'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
44
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
45
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
|
-
'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
46
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
47
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
48
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -46,10 +50,9 @@ export declare const iconMap: {
|
|
46
50
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
51
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
52
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
|
-
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
|
-
'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
53
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
54
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
+
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
56
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
57
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
58
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -59,6 +62,7 @@ export declare const iconMap: {
|
|
59
62
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
63
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
64
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
|
+
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
66
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
67
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
68
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -72,18 +76,25 @@ export declare const iconMap: {
|
|
72
76
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
77
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
78
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
|
+
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
80
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
|
+
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
82
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
|
+
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
84
|
+
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
85
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
86
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
87
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
88
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
|
+
'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
90
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
91
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
92
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
84
93
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
94
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
|
+
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
96
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
|
+
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
98
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
99
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
100
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -112,10 +123,13 @@ export declare const iconMap: {
|
|
112
123
|
'ic-timeout-two-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
113
124
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
125
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
|
+
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
115
127
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
128
|
+
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
116
129
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
117
130
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
118
131
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
|
+
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
119
133
|
};
|
120
134
|
export type IconName = keyof typeof iconMap;
|
121
135
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -11,7 +11,7 @@ export interface IconBaseProps {
|
|
11
11
|
* The size of the icon in pixels.
|
12
12
|
* @default 16
|
13
13
|
*/
|
14
|
-
size?: IconBaseSizeType;
|
14
|
+
size?: IconBaseSizeType | null;
|
15
15
|
/** Props to configure the tooltip when hovering over the icon. */
|
16
16
|
tooltipProps?: TooltipProps;
|
17
17
|
/**
|
@@ -2,4 +2,4 @@ export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
|
|
2
2
|
export { default as DevtronLicenseCard } from './DevtronLicenseCard';
|
3
3
|
export { ICDevtronWithBorder, default as InstallationFingerprintInfo } from './License.components';
|
4
4
|
export * from './types';
|
5
|
-
export { parseDevtronLicenseData } from './utils';
|
5
|
+
export { parseDevtronLicenseData, parseDevtronLicenseDTOIntoLicenseCardData } from './utils';
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { DevtronLicenseDTO } from '../../types';
|
2
|
-
import { DevtronLicenseInfo, LicenseStatus } from './types';
|
2
|
+
import { DevtronLicenseCardProps, DevtronLicenseInfo, LicenseStatus } from './types';
|
3
3
|
export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
|
4
4
|
bgColor: string;
|
5
5
|
textColor: string;
|
6
6
|
};
|
7
|
+
export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => Omit<DevtronLicenseCardProps, "appTheme">;
|
7
8
|
export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
|
8
9
|
export declare const getGateKeeperUrl: (fingerprint: string) => string;
|
@@ -13,4 +13,3 @@ export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends
|
|
13
13
|
export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
|
14
14
|
export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
|
15
15
|
export declare const renderLoadingMessage: () => JSX.Element;
|
16
|
-
export declare const ValueContainerWithLoadingShimmer: (props: ValueContainerProps) => JSX.Element;
|
@@ -16,8 +16,7 @@ export declare enum StatusType {
|
|
16
16
|
PROGRESSING = "PROGRESSING",
|
17
17
|
INPROGRESS = "INPROGRESS",
|
18
18
|
HIBERNATING = "HIBERNATING",
|
19
|
-
TIMED_OUT = "TIMED_OUT"
|
20
|
-
DELETING = "DELETING"
|
19
|
+
TIMED_OUT = "TIMED_OUT"
|
21
20
|
}
|
22
21
|
export interface StatusComponentProps {
|
23
22
|
/** The status to display, either a predefined StatusType or a custom string. */
|
@@ -28,6 +28,7 @@ export * from './DiffViewer';
|
|
28
28
|
export * from './DynamicDataTable';
|
29
29
|
export * from './EditableTextArea';
|
30
30
|
export * from './EditImageFormField';
|
31
|
+
export * from './EnterpriseTag';
|
31
32
|
export * from './EnvironmentSelector';
|
32
33
|
export * from './Error';
|
33
34
|
export * from './ExcludedImageNode';
|
package/dist/Shared/types.d.ts
CHANGED
@@ -403,7 +403,6 @@ export declare enum ResourceKindType {
|
|
403
403
|
releaseChannel = "release-channel",
|
404
404
|
tenant = "tenant",
|
405
405
|
installation = "installation",
|
406
|
-
infrastructureInstallation = "installations",
|
407
406
|
environment = "environment",
|
408
407
|
cdPipeline = "cd-pipeline",
|
409
408
|
ciPipeline = "ci-pipeline",
|
@@ -940,10 +939,6 @@ export type CountryISO2Type = ParsedCountry['iso2'];
|
|
940
939
|
export declare enum ResponseHeaders {
|
941
940
|
LICENSE_STATUS = "X-License-Status"
|
942
941
|
}
|
943
|
-
export declare enum InstallationClusterType {
|
944
|
-
EKS_AUTO_CLUSTER = "eksAutoCluster",
|
945
|
-
EKS_MANUAL_CLUSTER = "eksManualCluster"
|
946
|
-
}
|
947
942
|
export type IconBaseSizeType = 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 28 | 30 | 32 | 34 | 36 | 40 | 42 | 44 | 48 | 72 | 80;
|
948
943
|
export type IconBaseColorType = `${'B' | 'N' | 'G' | 'Y' | 'R' | 'V' | 'O'}${`${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}00` | '50' | '0'}` | 'white' | 'black' | null;
|
949
944
|
export interface GetTimeDifferenceParamsType {
|