@devtron-labs/devtron-fe-common-lib 1.5.9-beta-1 → 1.5.9

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.
@@ -2,7 +2,7 @@ import { j as t, J as $ } from "./@vendor-ROKJESOw.js";
2
2
  import A, { forwardRef as E } from "react";
3
3
  import L, { getDefaultRegistry as D } from "@rjsf/core";
4
4
  import H from "@rjsf/validator-ajv8";
5
- import { T as v, c as U, a as k, i as J, b as w, d as S } from "./@code-editor-Q65LZyAb.js";
5
+ import { T as v, c as U, a as k, i as J, b as w, d as S } from "./@code-editor-DL3a4lEb.js";
6
6
  import M, { components as B } from "react-select";
7
7
  import { ReactComponent as W } from "./assets/ic-chevron-down.fc70d7a7.svg";
8
8
  import { getUiOptions as C, getTemplate as I, getSubmitButtonOptions as V, ADDITIONAL_PROPERTY_FLAG as P, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
@@ -1,7 +1,3 @@
1
1
  import { DeleteComponentProps } from './types';
2
- /**
3
- *
4
- * @deprecated Use DeleteConfirmationDialog instead
5
- */
6
2
  declare const DeleteComponent: ({ setDeleting, toggleConfirmation, deleteComponent, title, component, payload, confirmationDialogDescription, redirectTo, url, reload, configuration, closeCustomComponent, }: DeleteComponentProps) => JSX.Element;
7
3
  export default DeleteComponent;
@@ -1,9 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { DeleteDialogProps } from './Types';
3
- /**
4
- *
5
- * @deprecated Use DeleteConfirmationDialog instead
6
- */
7
3
  export declare const DeleteDialog: React.FC<DeleteDialogProps> & {
8
4
  Description?: React.FC<any>;
9
5
  };
@@ -1,5 +1,2 @@
1
1
  export { default as ConfirmationModal } from './ConfirmationModal';
2
- export { DeleteConfirmationModal } from './DeleteConfirmationModal';
3
- export { ForceDeleteConfirmationModal } from './ForceDeleteConfirmationModal';
4
- export { CannotDeleteModal } from './CannotDeleteModal';
5
2
  export { ConfirmationModalVariantType } from './types';
@@ -45,7 +45,6 @@ type ButtonConfigAndVariantType<isConfig extends boolean> = {
45
45
  export type ConfirmationModalProps<isConfig extends boolean = false> = {
46
46
  title: string;
47
47
  subtitle: ReactNode;
48
- dataTestId?: string;
49
48
  /**
50
49
  * @default true
51
50
  */
@@ -55,27 +54,4 @@ export type ConfirmationModalProps<isConfig extends boolean = false> = {
55
54
  showConfirmationModal: boolean;
56
55
  } : {});
57
56
  export type ConfirmationModalBodyProps = Omit<ConfirmationModalProps, 'showConfirmationModal'>;
58
- export type DeleteComponentModalProps = {
59
- title: string;
60
- showConfirmationModal: boolean;
61
- closeConfirmationModal: () => void;
62
- onDelete: () => void;
63
- primaryButtonText?: string;
64
- component?: string;
65
- description?: ReactNode;
66
- successToastMessage?: string;
67
- isLoading?: boolean;
68
- renderCannotDeleteConfirmationSubTitle?: ReactNode;
69
- errorCodeToShowCannotDeleteDialog?: number;
70
- reload?: () => void;
71
- shouldStopPropagation?: boolean;
72
- disabled?: boolean;
73
- url?: string;
74
- children?: ReactNode;
75
- };
76
- export interface CannotDeleteModalProps extends Partial<Pick<DeleteComponentModalProps, 'title' | 'description' | 'component' | 'closeConfirmationModal'>> {
77
- showCannotDeleteDialogModal: boolean;
78
- }
79
- export interface ForceDeleteConfirmationProps extends Partial<Pick<DeleteComponentModalProps, 'title' | 'description' | 'onDelete' | 'showConfirmationModal' | 'closeConfirmationModal'>> {
80
- }
81
57
  export {};