@devtron-labs/devtron-fe-common-lib 1.20.3-alpha-9 → 1.20.3-beta-2
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-C1qarmFO.js → @code-editor-3E-jL5Cb.js} +3134 -3105
- package/dist/{@common-rjsf-CgG-X3UG.js → @common-rjsf-Dh1TkdFs.js} +1 -1
- package/dist/Common/Types.d.ts +12 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +20 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +3 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +1 -1
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +0 -1
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/assets/ic-bg-cpu.15ec70f0.svg +11 -0
- package/dist/assets/ic-bg-memory.5373a125.svg +11 -0
- package/dist/assets/ic-gift-animated.9ca6ccb4.svg +38 -0
- package/dist/assets/ic-warning-stroke.fc850a4a.svg +3 -0
- package/dist/index.js +875 -872
- package/package.json +1 -1
- package/dist/assets/ic-gift-animated.d848dfa3.svg +0 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, aK as v, aM as J, aL as K } from "./@vendor-DceGoESd.js";
|
2
2
|
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
3
3
|
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
4
|
-
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-
|
4
|
+
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-3E-jL5Cb.js";
|
5
5
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
6
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
7
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
package/dist/Common/Types.d.ts
CHANGED
@@ -944,6 +944,17 @@ export type EnvironmentsGroupedByClustersType = {
|
|
944
944
|
clusterName: EnvironmentType['cluster'];
|
945
945
|
envList: EnvironmentType[];
|
946
946
|
}[];
|
947
|
+
export type ClusterCostModuleConfigPayload = {
|
948
|
+
enabled: true;
|
949
|
+
config?: Record<string, any>;
|
950
|
+
} | {
|
951
|
+
enabled: false;
|
952
|
+
config?: never;
|
953
|
+
};
|
954
|
+
interface ClusterCostModuleDetailsDTO extends Pick<ClusterCostModuleConfigPayload, 'enabled' | 'config'> {
|
955
|
+
installationStatus: 'Success' | 'Installing' | 'Upgrading' | 'NotInstalled' | 'Failed';
|
956
|
+
installationError?: string;
|
957
|
+
}
|
947
958
|
export interface ClusterDetailDTO {
|
948
959
|
category: ClusterEnvironmentCategoryType;
|
949
960
|
cluster_name: string;
|
@@ -959,6 +970,7 @@ export interface ClusterDetailDTO {
|
|
959
970
|
proxyUrl: string;
|
960
971
|
toConnectWithSSHTunnel: boolean;
|
961
972
|
clusterStatus: ClusterStatusType;
|
973
|
+
costModuleConfig: ClusterCostModuleDetailsDTO;
|
962
974
|
}
|
963
975
|
export interface ClusterDetailListType extends Omit<ClusterDetailDTO, 'server_url' | 'cluster_name' | 'prometheus_url' | 'id' | 'category' | 'clusterStatus'> {
|
964
976
|
serverUrl: ClusterDetailDTO['server_url'];
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IconName } from '../../../Shared/Components';
|
2
|
+
import { ClusterProviderType } from './types';
|
3
|
+
export declare const CLUSTER_PROVIDER_TO_ICON_NAME: Record<ClusterProviderType, IconName | null>;
|
4
|
+
export declare const CLUSTER_PROVIDER_TO_LABEL: Record<ClusterProviderType, string>;
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { RJSFFormSchema } from '../../../Common/RJSF';
|
3
|
+
import { ClusterDetailListType } from '../../../Common/Types';
|
1
4
|
export declare enum CostBreakdownViewType {
|
2
5
|
CLUSTERS = "clusters",
|
3
6
|
ENVIRONMENTS = "environments",
|
@@ -9,3 +12,20 @@ export declare enum CostBreakdownItemViewParamsType {
|
|
9
12
|
VIEW = "view",
|
10
13
|
DETAIL = "detail"
|
11
14
|
}
|
15
|
+
type RenderClusterFormParamsType = {
|
16
|
+
clusterDetails: ClusterDetailListType;
|
17
|
+
handleClose: () => void;
|
18
|
+
handleSuccess: () => void;
|
19
|
+
};
|
20
|
+
export interface CostVisibilityRenderContextType {
|
21
|
+
renderClusterForm: (params: RenderClusterFormParamsType) => JSX.Element;
|
22
|
+
}
|
23
|
+
export interface CostVisibilityRenderProviderProps extends CostVisibilityRenderContextType {
|
24
|
+
children: ReactNode;
|
25
|
+
}
|
26
|
+
export type ClusterProviderType = 'AWS' | 'GCP' | 'Azure' | 'Alibaba' | 'Scaleway' | 'Oracle' | 'OTC' | 'DigitalOcean' | 'Unknown';
|
27
|
+
export interface ClusterProviderDetailsType {
|
28
|
+
clusterProvider: ClusterProviderType;
|
29
|
+
costModuleSchema: RJSFFormSchema;
|
30
|
+
}
|
31
|
+
export {};
|
@@ -23,8 +23,10 @@ export declare const iconMap: {
|
|
23
23
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
24
|
'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
25
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
|
+
'ic-bg-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
27
|
'ic-bg-deploy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
28
|
'ic-bg-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
|
+
'ic-bg-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
30
|
'ic-bg-production-pipelines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
31
|
'ic-bg-project': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
32
|
'ic-bg-scan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -264,6 +266,7 @@ export declare const iconMap: {
|
|
264
266
|
'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
265
267
|
'ic-visibility-on': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
266
268
|
'ic-warning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
269
|
+
'ic-warning-stroke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
267
270
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
268
271
|
'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
269
272
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PromoetheusConfigProps } from './types';
|
2
|
-
declare const PromoetheusConfigCard: ({ prometheusConfig,
|
2
|
+
declare const PromoetheusConfigCard: ({ prometheusConfig, handleOnChange, onPrometheusAuthTypeChange, }: PromoetheusConfigProps) => JSX.Element;
|
3
3
|
export default PromoetheusConfigCard;
|
@@ -435,3 +435,4 @@ export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWi
|
|
435
435
|
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
436
436
|
export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
|
437
437
|
export declare const REMOTE_CONNECTION_TYPE_LABEL_MAP: Record<RemoteConnectionType, string>;
|
438
|
+
export declare const TARGET_K8S_VERSION_SEARCH_KEY = "targetK8sVersion";
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<path fill="#FFF5E5" d="M0 6a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6V6Z"/>
|
4
|
+
<path stroke="#FFB549" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18.154 10.154H20m-1.846 3.692H20M4 10.154h1.846M4 13.846h1.846m8 4.308V20m-3.692-1.846V20m3.692-16v1.846M10.154 4v1.846m-.308 4h4.308v4.308H9.846V9.846Zm-4-1.949v8.206c0 1.132.919 2.05 2.051 2.05h8.206a2.051 2.051 0 0 0 2.05-2.05V7.897a2.051 2.051 0 0 0-2.05-2.05H7.897a2.051 2.051 0 0 0-2.05 2.05Z" vector-effect="non-scaling-stroke"/>
|
5
|
+
</g>
|
6
|
+
<defs>
|
7
|
+
<clipPath id="a">
|
8
|
+
<path fill="#fff" d="M0 0h24v24H0z"/>
|
9
|
+
</clipPath>
|
10
|
+
</defs>
|
11
|
+
</svg>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<path fill="#FCF3F0" d="M0 6a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6V6Z"/>
|
4
|
+
<path stroke="#FF7E5B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.2 17.5v-2.357m3.2 2.357v-2.357m3.2 2.357v-2.357m3.2 2.357v-2.357m-8-3.929V9.643m6.4 1.571V9.643M12 11.214V9.643m-8 4.714h16M4 8.071c0-.416.169-.816.469-1.11.3-.295.707-.461 1.131-.461h12.8c.424 0 .831.166 1.131.46.3.295.469.695.469 1.111v.865a1.6 1.6 0 0 0-.83.566 1.553 1.553 0 0 0 0 1.882 1.6 1.6 0 0 0 .83.566v3.979c0 .416-.169.816-.469 1.11-.3.295-.707.461-1.131.461H5.6c-.424 0-.831-.166-1.131-.46A1.557 1.557 0 0 1 4 15.929V11.92a1.6 1.6 0 0 0 .83-.566 1.553 1.553 0 0 0 0-1.882A1.6 1.6 0 0 0 4 8.907V8.07Z" vector-effect="non-scaling-stroke"/>
|
5
|
+
</g>
|
6
|
+
<defs>
|
7
|
+
<clipPath id="a">
|
8
|
+
<path fill="#fff" d="M0 0h24v24H0z"/>
|
9
|
+
</clipPath>
|
10
|
+
</defs>
|
11
|
+
</svg>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<!-- Bottom jump group -->
|
3
|
+
<g transform="translate(0 0)">
|
4
|
+
<animateTransform attributeName="transform" type="translate" values="0 0; 0 -5; 0 0; 0 0"
|
5
|
+
keyTimes="0;0.06;0.15;1" dur="5s" repeatCount="indefinite" calcMode="spline"
|
6
|
+
keySplines="0.25 0.1 0.25 1;0.42 0 0.58 1;0 0 1 1" />
|
7
|
+
<path d="M8 27.996h34v19a3 3 0 0 1-3 3H11a3 3 0 0 1-3-3z" fill="#D0DBF7" />
|
8
|
+
<path fill="#376CFB" d="M19 27.996h12v22H19z" />
|
9
|
+
</g>
|
10
|
+
|
11
|
+
<!-- Top group (translate + nested rotate) -->
|
12
|
+
<g transform="translate(0 0)">
|
13
|
+
<animateTransform attributeName="transform" type="translate" values="0 0; 0 -5; 0 0; 0 0" keyTimes="0;0.1;0.2;1"
|
14
|
+
dur="5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1;0.42 0 0.58 1;0 0 1 1" />
|
15
|
+
|
16
|
+
<!-- Nested rotate: rotate(angle cx cy) values to keep center consistent -->
|
17
|
+
<g transform="rotate(0 25 18)">
|
18
|
+
<animateTransform attributeName="transform" type="rotate"
|
19
|
+
values="0 25 18; -8 25 18; 8 25 18; 0 25 18; 0 25 18" keyTimes="0;0.1;0.15;0.25;1" dur="5s"
|
20
|
+
repeatCount="indefinite" calcMode="spline" keySplines="
|
21
|
+
0.25 0.1 0.25 1;
|
22
|
+
0.42 0 0.58 1;
|
23
|
+
0.42 0 1 1;
|
24
|
+
0 0 1 1" />
|
25
|
+
|
26
|
+
|
27
|
+
<path
|
28
|
+
d="M12.49 12.819c1.226-2.666 4.074-3.172 6.21-2.619 1.97.512 3.69 1.925 4.93 3.37 1.227 1.428 2.146 3.078 2.354 4.252l.208 1.174H16.036c-1.625 0-2.904-.794-3.56-2.037-.642-1.213-.632-2.734.014-4.14m5.708-.683c-1.58-.41-3.214.048-3.89 1.519-.427.928-.373 1.787-.065 2.37.293.553.87.971 1.793.971h7.526a11.3 11.3 0 0 0-1.449-2.124c-1.106-1.289-2.498-2.369-3.915-2.736"
|
29
|
+
fill="#376CFB" />
|
30
|
+
<path
|
31
|
+
d="M37.51 12.819c-1.226-2.666-4.075-3.172-6.21-2.619-1.97.512-3.69 1.925-4.93 3.37-1.227 1.428-2.146 3.078-2.354 4.252l-.208 1.174h10.156c1.625 0 2.904-.794 3.56-2.037.642-1.213.632-2.734-.014-4.14m-5.708-.683c1.58-.41 3.214.048 3.89 1.519.427.928.373 1.787.065 2.37-.293.553-.87.971-1.793.971h-7.526a11.3 11.3 0 0 1 1.449-2.124c1.106-1.289 2.499-2.369 3.915-2.736"
|
32
|
+
fill="#376CFB" />
|
33
|
+
<path fill="#00173F" opacity=".15" d="M8 27.996h34v3H8z" />
|
34
|
+
<rect x="5" y="16.996" width="40" height="11" rx="3" fill="#E6ECFF" />
|
35
|
+
<path fill="#4294FF" d="M16 16.996h18v11H16z" />
|
36
|
+
</g>
|
37
|
+
</g>
|
38
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 16.5v.5m0-7.5v4m-1.298-9.751L2.454 17.998a1.5 1.5 0 0 0 1.298 2.251h16.496a1.5 1.5 0 0 0 1.298-2.251l-8.248-14.25a1.5 1.5 0 0 0-2.596 0Z" vector-effect="non-scaling-stroke"/>
|
3
|
+
</svg>
|