@devtron-labs/devtron-fe-common-lib 0.0.84-beta-3 → 0.0.84

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.
Files changed (28) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/Dialogs/Types.d.ts +2 -17
  3. package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
  4. package/dist/Common/Modals/Modal.d.ts +0 -3
  5. package/dist/Common/Modals/OpaqueModal.d.ts +0 -3
  6. package/dist/Common/PopupMenu.d.ts +1 -1
  7. package/dist/Common/Types.d.ts +0 -1
  8. package/dist/Shared/constants.d.ts +0 -4
  9. package/dist/Shared/types.d.ts +2 -29
  10. package/dist/Shared/validations.d.ts +0 -3
  11. package/dist/{cssMode-891e1d60.js → cssMode-fc8027c0.js} +1 -1
  12. package/dist/{freemarker2-17a3ef5f.js → freemarker2-a1b77c94.js} +1 -1
  13. package/dist/{handlebars-9a82f999.js → handlebars-600385ac.js} +1 -1
  14. package/dist/{html-17150855.js → html-4b43d01e.js} +1 -1
  15. package/dist/{htmlMode-cfd414ef.js → htmlMode-30202b19.js} +1 -1
  16. package/dist/{index-a31b3f6b.js → index-b4fe7092.js} +8740 -8805
  17. package/dist/index.js +234 -237
  18. package/dist/{javascript-7e65bd30.js → javascript-a5c9dc03.js} +1 -1
  19. package/dist/{jsonMode-b53e09d1.js → jsonMode-913910ff.js} +1 -1
  20. package/dist/{liquid-536dd4ae.js → liquid-e3f21e09.js} +1 -1
  21. package/dist/{mdx-249b908e.js → mdx-7a771bd1.js} +1 -1
  22. package/dist/{python-0d7512cf.js → python-ae59b55f.js} +1 -1
  23. package/dist/{razor-39b5fa81.js → razor-679f6ece.js} +1 -1
  24. package/dist/{tsMode-9cf4451c.js → tsMode-1536b46f.js} +1 -1
  25. package/dist/{typescript-b8c3ff6e.js → typescript-92e07346.js} +1 -1
  26. package/dist/{xml-6fc18d50.js → xml-eb691a67.js} +1 -1
  27. package/dist/{yaml-ec291850.js → yaml-a92d5973.js} +1 -1
  28. package/package.json +1 -1
@@ -13,4 +13,4 @@ export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abor
13
13
  /**
14
14
  * Returns true if the error is due to a aborted request
15
15
  */
16
- export declare const getIsRequestAborted: (error: any) => boolean;
16
+ export declare const getIsRequestAborted: (error: any) => any;
@@ -1,19 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- type WithOrWithoutDeleteConfirmationType = {
4
- showDeleteConfirmation: true;
5
- /**
6
- * If added, confirmation input is shown
7
- */
8
- deleteConfirmationText: string;
9
- } | {
10
- showDeleteConfirmation?: never;
11
- /**
12
- * If added, confirmation input is shown
13
- */
14
- deleteConfirmationText?: never;
15
- };
16
- export type DeleteDialogProps = {
3
+ export interface DeleteDialogProps {
17
4
  title: string;
18
5
  description?: string;
19
6
  closeDelete: () => void;
@@ -25,8 +12,7 @@ export type DeleteDialogProps = {
25
12
  buttonPrimaryText?: string;
26
13
  shouldStopPropagation?: boolean;
27
14
  disabled?: boolean;
28
- children?: ReactNode;
29
- } & WithOrWithoutDeleteConfirmationType;
15
+ }
30
16
  export interface ForceDeleteDialogType {
31
17
  onClickDelete: () => void;
32
18
  closeDeleteModal: () => void;
@@ -58,4 +44,3 @@ export interface DialogFormProps {
58
44
  onSave: (event: any) => void;
59
45
  headerClassName?: string;
60
46
  }
61
- export {};
@@ -2,5 +2,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
2
2
 
3
3
  export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
4
4
  }
5
- export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'searchKey' | 'handleSearch'> {
5
+ export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
6
6
  }
@@ -1,7 +1,4 @@
1
1
  import { ModalType } from '../Types';
2
2
  import { default as React } from 'react';
3
3
 
4
- /**
5
- * @deprecated Use VisibleModal instead
6
- */
7
4
  export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
@@ -5,9 +5,6 @@ export interface OpaqueModalProps {
5
5
  onHide?: any;
6
6
  noBackground?: boolean;
7
7
  }
8
- /**
9
- * @deprecated Use VisibleModal instead
10
- */
11
8
  export declare class OpaqueModal extends React.Component<OpaqueModalProps> {
12
9
  modalRef: HTMLElement;
13
10
  componentDidMount(): void;
@@ -1,7 +1,7 @@
1
1
  import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
2
2
 
3
3
  declare const PopupMenu: {
4
- ({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault }: PopupMenuType): any;
4
+ ({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
5
5
  Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
6
6
  Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
7
7
  };
@@ -213,7 +213,6 @@ export interface PopupMenuType {
213
213
  onToggleCallback?: (isOpen: boolean) => void;
214
214
  autoClose?: boolean;
215
215
  autoPosition?: boolean;
216
- shouldPreventDefault?: boolean;
217
216
  }
218
217
  export interface PopupMenuButtonType {
219
218
  children?: ReactNode;
@@ -43,7 +43,3 @@ export declare enum DeploymentWithConfigType {
43
43
  LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
44
44
  SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
45
45
  }
46
- export declare enum EnvironmentTypeEnum {
47
- production = "Production",
48
- nonProduction = "Non-Production"
49
- }
@@ -1,4 +1,4 @@
1
- import { EnvironmentTypeEnum, PatchOperationType } from './constants';
1
+ import { PatchOperationType } from './constants';
2
2
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
3
3
 
4
4
  export declare enum RegistryType {
@@ -169,8 +169,7 @@ export declare enum ResourceKindType {
169
169
  job = "job",
170
170
  cluster = "cluster",
171
171
  release = "release",
172
- releaseTrack = "release-track",
173
- tenant = "tenant"
172
+ releaseTrack = "release-track"
174
173
  }
175
174
  /**
176
175
  * Versions support for the resources on BE
@@ -254,10 +253,6 @@ export declare enum Nodes {
254
253
  Overview = "Overview"
255
254
  }
256
255
  export type NodeType = keyof typeof Nodes;
257
- export interface InputFieldState<T = string> {
258
- value: T;
259
- error: string;
260
- }
261
256
  export declare enum AggregationKeys {
262
257
  Workloads = "Workloads",
263
258
  Networking = "Networking",
@@ -270,25 +265,3 @@ export declare enum AggregationKeys {
270
265
  Namespaces = "Namespaces"
271
266
  }
272
267
  export type AggregationKeysType = keyof typeof AggregationKeys;
273
- export interface EnvironmentType {
274
- /**
275
- * Unique identifier for the environment
276
- */
277
- id: number;
278
- /**
279
- * Name of the environment
280
- */
281
- name: string;
282
- /**
283
- * Associated namespace for the environment
284
- */
285
- namespace: string;
286
- /**
287
- * Type of the environment
288
- */
289
- environmentType: EnvironmentTypeEnum;
290
- /**
291
- * Associated cluster for the environment
292
- */
293
- cluster: string;
294
- }
@@ -8,7 +8,6 @@ export declare const MESSAGES: {
8
8
  CAN_NOT_START_END_WITH_SEPARATORS: string;
9
9
  getMinMaxCharMessage: (min: number, max: number) => string;
10
10
  getMaxCharMessage: (max: number) => string;
11
- getMinCharMessage: (min: number) => string;
12
11
  VALID_POSITIVE_NUMBER: string;
13
12
  VALID_POSITIVE_INTEGER: string;
14
13
  MAX_SAFE_INTEGER: string;
@@ -16,7 +15,5 @@ export declare const MESSAGES: {
16
15
  export declare const requiredField: (value: string) => ValidationResponseType;
17
16
  export declare const validateName: (name: string) => ValidationResponseType;
18
17
  export declare const validateDescription: (description: string) => ValidationResponseType;
19
- export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
20
18
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
21
19
  export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
22
- export declare const validateURL: (url: string) => ValidationResponseType;
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ne } from "./index-a31b3f6b.js";
4
+ import { m as Ne } from "./index-b4fe7092.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as F } from "./index-a31b3f6b.js";
1
+ import { m as F } from "./index-b4fe7092.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-a31b3f6b.js";
1
+ import { m as i } from "./index-b4fe7092.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as d } from "./index-a31b3f6b.js";
1
+ import { m as d } from "./index-b4fe7092.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Qe } from "./index-a31b3f6b.js";
4
+ import { m as Qe } from "./index-b4fe7092.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)