@devtron-labs/devtron-fe-common-lib 1.18.1-beta-0 → 1.18.1-pre-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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, au as y, aw as k, av as M } from "./@vendor-3ORIJA0h.js";
2
2
  import W, { forwardRef as J, useMemo as P } from "react";
3
3
  import V, { getDefaultRegistry as K } from "@rjsf/core";
4
- import { T as N, j as w, c as v, b as F, S as q, i as Y, a as G, d as C, e as z } from "./@code-editor-B4fpn5b3.js";
4
+ import { T as N, j as w, c as v, b as F, S as q, i as Y, a as G, d as C, e as z } from "./@code-editor-C03TzOhp.js";
5
5
  import { getUiOptions as I, getTemplate as D, getSubmitButtonOptions as Q, ADDITIONAL_PROPERTY_FLAG as B, errorId as X, englishStringTranslator as Z, TranslatableString as ee, titleId as te, canExpand as ne, deepEquals as re } from "@rjsf/utils";
6
6
  import { ReactComponent as se } from "./assets/ic-add.cfaa779b.svg";
7
7
  import { ReactComponent as ae } from "./assets/ic-warning.ecf7ff97.svg";
@@ -58,7 +58,6 @@ export declare const URLS: {
58
58
  readonly COMPARE_CLUSTERS: "/compare-clusters";
59
59
  readonly APP_CONFIG: "edit";
60
60
  readonly GLOBAL_CONFIG: "/global-config";
61
- readonly GLOBAL_CONFIG_MANAGE_CATEGORIES: "/global-config/cluster-env/manage-categories";
62
61
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
63
62
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
64
63
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
@@ -1,3 +1,3 @@
1
1
  import { ErrorPageType } from './Types';
2
- declare const ErrorPage: ({ code, image, title, subTitle, imageType, redirectURL, reload, on404Redirect }: ErrorPageType) => JSX.Element;
2
+ declare const ErrorPage: ({ code, image, title, subTitle, imageType, redirectURL, reload }: ErrorPageType) => JSX.Element;
3
3
  export default ErrorPage;
@@ -1,3 +1,3 @@
1
1
  import { ErrorScreenManagerProps } from './Types';
2
- declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, redirectURL, on404Redirect, imageType, }: ErrorScreenManagerProps) => JSX.Element;
2
+ declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, redirectURL, imageType, }: ErrorScreenManagerProps) => JSX.Element;
3
3
  export default ErrorScreenManager;
@@ -2,4 +2,4 @@ import { ModalType } from '../Types';
2
2
  /**
3
3
  * @deprecated Use VisibleModal instead
4
4
  */
5
- export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => JSX.Element;
5
+ export declare const Modal: ({ style, children, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => JSX.Element;
@@ -141,29 +141,20 @@ export interface GenericEmptyStateType {
141
141
  export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload' | 'redirectURL'> {
142
142
  code: number;
143
143
  redirectURL?: string;
144
- on404Redirect?: () => void;
145
144
  reload?: () => void;
146
145
  }
147
- export type ErrorScreenManagerProps = {
146
+ export interface ErrorScreenManagerProps {
148
147
  code?: number;
149
148
  imageType?: ImageType;
150
149
  reload?: (...args: any[]) => any;
151
150
  subtitle?: React.ReactChild;
152
151
  reloadClass?: string;
153
- } & ({
154
152
  /**
155
153
  * Would be used to redirect URL in case of 404
156
154
  * @default - APP_LIST
157
155
  */
158
156
  redirectURL?: string;
159
- on404Redirect?: never;
160
- } | {
161
- redirectURL?: never;
162
- on404Redirect: () => void;
163
- } | {
164
- redirectURL?: never;
165
- on404Redirect?: never;
166
- });
157
+ }
167
158
  export interface ErrorScreenNotAuthorizedProps {
168
159
  subtitle?: React.ReactChild;
169
160
  title?: string;
@@ -254,7 +245,6 @@ export interface PopupMenuBodyType {
254
245
  export interface ModalType {
255
246
  style?: React.CSSProperties;
256
247
  children?: ReactNode;
257
- modal?: boolean;
258
248
  rootClassName?: string;
259
249
  onClick?: any;
260
250
  callbackRef?: (element?: any) => any;
@@ -0,0 +1,2 @@
1
+ import { ClusterMapProps } from './types';
2
+ export declare const ClusterMap: ({ filteredList, isLoading }: ClusterMapProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ClusterMap';
@@ -0,0 +1,25 @@
1
+ import { ClusterStatusType } from '../types';
2
+ export interface ClusterStatusAndType {
3
+ isProd: boolean;
4
+ status: ClusterStatusType;
5
+ }
6
+ export interface ClusterMapProps {
7
+ isLoading?: boolean;
8
+ filteredList: ClusterStatusAndType[];
9
+ }
10
+ export interface StatusCountEnum {
11
+ healthyCount: number;
12
+ unhealthyCount: number;
13
+ connectionFailedCount: number;
14
+ prodCount: number;
15
+ }
16
+ export interface StatusEntity {
17
+ value: number;
18
+ label: string;
19
+ color: string;
20
+ proportionalValue: string;
21
+ }
22
+ export interface ClusterEntitiesTypes {
23
+ statusEntities: StatusEntity[];
24
+ deploymentEntities: StatusEntity[];
25
+ }
@@ -0,0 +1,14 @@
1
+ import { ClusterEntitiesTypes, ClusterStatusAndType, StatusCountEnum } from './types';
2
+ /**
3
+ *
4
+ * @param filteredList
5
+ * @returns healthyCount, unhealthyCount, connectionFailedCount, prodCount
6
+ */
7
+ export declare const getStatusCount: (filteredList: ClusterStatusAndType[]) => StatusCountEnum;
8
+ /**
9
+ *
10
+ * @param filteredList
11
+ * @returns statusEntities, deploymentEntities
12
+ *
13
+ */
14
+ export declare const getEntities: (filteredList: ClusterStatusAndType[]) => ClusterEntitiesTypes;
@@ -1,3 +1,4 @@
1
+ export * from './ClusterMap';
1
2
  export * from './constants';
2
3
  export { default as ForceDeleteOption } from './ForceDeleteOption';
3
4
  export * from './Helper';
@@ -51,7 +51,7 @@ export interface ClusterCapacityType {
51
51
  serverVersion: string;
52
52
  nodeDetails?: NodeDetailsType[];
53
53
  nodeErrors: Record<string, string>[];
54
- status?: ClusterStatusType;
54
+ status: ClusterStatusType;
55
55
  isProd: boolean;
56
56
  installationId?: number;
57
57
  }
@@ -18,6 +18,7 @@ export declare const iconMap: {
18
18
  'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
19
19
  'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
20
  'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
+ 'ic-bg-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
22
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
23
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
24
  'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -107,8 +108,6 @@ export declare const iconMap: {
107
108
  'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
108
109
  'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
109
110
  'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
- 'ic-group-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
111
- 'ic-group-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
112
111
  'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
113
112
  'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
114
113
  'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -135,6 +134,7 @@ export declare const iconMap: {
135
134
  'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
136
135
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
136
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
+ 'ic-link': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
138
138
  'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
139
139
  'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
140
140
  'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -187,7 +187,6 @@ export declare const iconMap: {
187
187
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
188
188
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
189
189
  'ic-stop-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
190
- 'ic-storage': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
191
190
  'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
192
191
  'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
193
192
  'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -216,8 +215,6 @@ export declare const iconMap: {
216
215
  'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
217
216
  'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
218
217
  'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
219
- 'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
220
- 'ic-visibility-on': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
221
218
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
222
219
  'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
223
220
  'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,3 +1,3 @@
1
1
  import { MaterialHistoryProps } from './types';
2
- declare const MaterialHistory: ({ material, pipelineName, selectCommit, isCommitInfoModal }: MaterialHistoryProps) => JSX.Element;
2
+ declare const MaterialHistory: ({ material, pipelineName, ciPipelineId, selectCommit, isCommitInfoModal, }: MaterialHistoryProps) => JSX.Element;
3
3
  export default MaterialHistory;
@@ -2,6 +2,7 @@ import { CIMaterialType } from '../../Services/app.types';
2
2
  export interface MaterialHistoryProps {
3
3
  material: CIMaterialType;
4
4
  pipelineName: string;
5
- selectCommit?: (commitId: string) => void;
5
+ ciPipelineId?: string;
6
+ selectCommit?: (materialId: string, commit: string, ciPipelineId?: string) => void;
6
7
  isCommitInfoModal?: boolean;
7
8
  }
@@ -432,3 +432,4 @@ export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
432
432
  export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
433
433
  export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
434
434
  export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
435
+ export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";