@gusarov-studio/rubik-ui 29.3.1 → 29.4.0
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.
|
@@ -3,5 +3,5 @@ interface ModalManagerProviderProps {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
builtInView?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
6
|
+
declare const ModalsManagerProvider: React.FC<ModalManagerProviderProps>;
|
|
7
7
|
export { ModalsManagerProvider };
|
|
@@ -2,12 +2,16 @@ import type React from "react";
|
|
|
2
2
|
import type { actionTypes } from "./constants/actionTypes";
|
|
3
3
|
export type ModalProps = Record<string, unknown>;
|
|
4
4
|
export interface ModalsManagerState {
|
|
5
|
-
|
|
5
|
+
activeModalId: string | null;
|
|
6
6
|
props: ModalProps;
|
|
7
7
|
}
|
|
8
8
|
export interface ModalsManager {
|
|
9
9
|
open: (dialogId: string, props?: ModalProps) => void;
|
|
10
10
|
close: () => void;
|
|
11
|
+
meta: {
|
|
12
|
+
activeModalId: ModalsManagerState["activeModalId"];
|
|
13
|
+
props: ModalProps;
|
|
14
|
+
};
|
|
11
15
|
}
|
|
12
16
|
export type ModalsContextState = ModalsManagerState;
|
|
13
17
|
export interface RegistryItem {
|