@devtron-labs/devtron-fe-common-lib 1.5.11-beta-3 → 1.5.11
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-BokDAgbt.js → @code-editor-DpYDAAJZ.js} +2181 -2313
- package/dist/{@common-rjsf-DowKGNf9.js → @common-rjsf-4ZMS0H1P.js} +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +0 -4
- package/dist/Common/Dialogs/DeleteDialog.d.ts +0 -4
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +0 -4
- package/dist/Shared/Components/ConfirmationModal/index.d.ts +0 -3
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +1 -20
- package/dist/index.js +650 -653
- package/package.json +1 -1
- package/dist/Shared/Components/ConfirmationModal/CannotDeleteModal.d.ts +0 -2
- package/dist/Shared/Components/ConfirmationModal/DeleteConfirmationModal.d.ts +0 -3
- package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +0 -2
@@ -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-
|
5
|
+
import { T as v, c as U, a as k, i as J, b as w, d as S } from "./@code-editor-DpYDAAJZ.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,6 +1,2 @@
|
|
1
1
|
import { ForceDeleteDialogType } from './Types';
|
2
|
-
/**
|
3
|
-
*
|
4
|
-
* @deprecated Use ForceConfirmationModal instead
|
5
|
-
*/
|
6
2
|
export default function ForceDeleteDialog({ onClickDelete, closeDeleteModal, forceDeleteDialogTitle, forceDeleteDialogMessage, }: ForceDeleteDialogType): JSX.Element;
|
@@ -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, type ConfirmationModalProps } from './types';
|
@@ -34,7 +34,7 @@ type ButtonConfigAndVariantType<isConfig extends boolean> = {
|
|
34
34
|
};
|
35
35
|
export type ConfirmationModalProps<isConfig extends boolean = false> = PropsWithChildren<{
|
36
36
|
title: string;
|
37
|
-
subtitle
|
37
|
+
subtitle: ReactNode;
|
38
38
|
/**
|
39
39
|
* @default true
|
40
40
|
*/
|
@@ -45,23 +45,4 @@ export type ConfirmationModalProps<isConfig extends boolean = false> = PropsWith
|
|
45
45
|
showConfirmationModal: boolean;
|
46
46
|
} : {});
|
47
47
|
export type ConfirmationModalBodyProps = Omit<ConfirmationModalProps, 'showConfirmationModal'>;
|
48
|
-
export interface DeleteComponentModalProps extends Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle' | 'showConfirmationModal' | 'children'>> {
|
49
|
-
closeConfirmationModal: () => void;
|
50
|
-
onDelete: () => void;
|
51
|
-
primaryButtonText?: string;
|
52
|
-
component?: string;
|
53
|
-
successToastMessage?: string;
|
54
|
-
isLoading?: boolean;
|
55
|
-
renderCannotDeleteConfirmationSubTitle?: ReactNode;
|
56
|
-
errorCodeToShowCannotDeleteDialog?: number;
|
57
|
-
reload?: () => void;
|
58
|
-
shouldStopPropagation?: boolean;
|
59
|
-
disabled?: boolean;
|
60
|
-
url?: string;
|
61
|
-
}
|
62
|
-
export interface CannotDeleteModalProps extends Partial<Pick<DeleteComponentModalProps, 'component' | 'closeConfirmationModal'>>, Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle'>> {
|
63
|
-
showCannotDeleteDialogModal: boolean;
|
64
|
-
}
|
65
|
-
export interface ForceDeleteConfirmationProps extends Partial<Pick<DeleteComponentModalProps, 'onDelete' | 'showConfirmationModal' | 'closeConfirmationModal'>>, Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle'>> {
|
66
|
-
}
|
67
48
|
export {};
|