@devtron-labs/devtron-fe-common-lib 1.20.3-pre-4 → 1.20.3-pre-7
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-CeahPz46.js → @code-editor-C-tgb5Wa.js} +3847 -3790
- package/dist/{@common-rjsf-BGDb4n0x.js → @common-rjsf-B-hpOm7U.js} +1 -1
- package/dist/Common/Common.service.d.ts +2 -1
- package/dist/Common/Types.d.ts +26 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +3 -0
- package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +1 -0
- package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +5 -0
- package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/index.js +831 -828
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, aJ as v, aL as W, aK as K } from "./@vendor-DwGKptu5.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-C-tgb5Wa.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";
|
@@ -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, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType } from './Types';
|
3
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType, ClusterDetailListType } from './Types';
|
4
4
|
import { ApiResourceType } from '../Pages';
|
5
5
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
6
6
|
export declare const SourceTypeMap: {
|
@@ -38,3 +38,4 @@ export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }:
|
|
38
38
|
export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvProps) => Promise<EnvAppsMetaDTO>;
|
39
39
|
export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
|
40
40
|
export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
|
41
|
+
export declare const getDetailedClusterList: (clusterIds?: number[], signal?: AbortSignal) => Promise<ClusterDetailListType[]>;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -4,7 +4,8 @@ import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
5
|
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType, EnvironmentType } from '../Shared';
|
6
6
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
|
-
import { IllustrationName } from '../Shared/Components';
|
7
|
+
import { IllustrationName, SelectPickerOptionType } from '../Shared/Components';
|
8
|
+
import { ClusterStatusType } from '../Pages/ResourceBrowser';
|
8
9
|
/**
|
9
10
|
* Generic response type object with support for overriding the result type
|
10
11
|
*
|
@@ -943,4 +944,28 @@ export type EnvironmentsGroupedByClustersType = {
|
|
943
944
|
clusterName: EnvironmentType['cluster'];
|
944
945
|
envList: EnvironmentType[];
|
945
946
|
}[];
|
947
|
+
export interface ClusterDetailDTO {
|
948
|
+
category: ClusterEnvironmentCategoryType;
|
949
|
+
cluster_name: string;
|
950
|
+
description: string;
|
951
|
+
id: number;
|
952
|
+
insecureSkipTlsVerify: boolean;
|
953
|
+
installationId: number;
|
954
|
+
isProd: boolean;
|
955
|
+
isVirtualCluster: boolean;
|
956
|
+
server_url: string;
|
957
|
+
sshTunnelConfig: any;
|
958
|
+
prometheus_url: string;
|
959
|
+
proxyUrl: string;
|
960
|
+
toConnectWithSSHTunnel: boolean;
|
961
|
+
clusterStatus: ClusterStatusType;
|
962
|
+
}
|
963
|
+
export interface ClusterDetailListType extends Omit<ClusterDetailDTO, 'server_url' | 'cluster_name' | 'prometheus_url' | 'id' | 'category' | 'clusterStatus'> {
|
964
|
+
serverUrl: ClusterDetailDTO['server_url'];
|
965
|
+
clusterName: ClusterDetailDTO['cluster_name'];
|
966
|
+
prometheusUrl: ClusterDetailDTO['prometheus_url'];
|
967
|
+
clusterId: ClusterDetailDTO['id'];
|
968
|
+
category: SelectPickerOptionType;
|
969
|
+
status: ClusterStatusType;
|
970
|
+
}
|
946
971
|
export {};
|
@@ -64,7 +64,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
64
64
|
itemRef?: string;
|
65
65
|
results?: number;
|
66
66
|
unselectable?: "on" | "off";
|
67
|
-
inputMode?: "search" | "text" | "none" | "url" | "
|
67
|
+
inputMode?: "search" | "text" | "none" | "url" | "decimal" | "tel" | "email" | "numeric";
|
68
68
|
"aria-activedescendant"?: string;
|
69
69
|
"aria-atomic"?: boolean | "true" | "false";
|
70
70
|
"aria-autocomplete"?: "none" | "list" | "inline" | "both";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as ClusterStatusIcon } from './ClusterStatusIcon';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -104,4 +104,5 @@ export declare const getAppDetailsURL: (appId: number | string, envId?: number |
|
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
105
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
106
106
|
export declare const YAMLtoJSON: (yamlString: string) => string;
|
107
|
+
export declare const formatNumberToCurrency: (value: number, currency: string) => string;
|
107
108
|
export {};
|