@trackunit/react-core-contexts-api 0.2.138 → 0.2.140
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/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -5,6 +5,7 @@ export * from "./confirmationDialogContext";
|
|
5
5
|
export * from "./currentUserContext";
|
6
6
|
export * from "./environmentContext";
|
7
7
|
export * from "./filterBarContext";
|
8
|
+
export * from "./modalDialogContext";
|
8
9
|
export * from "./navigationContext";
|
9
10
|
export * from "./oemBrandingContext";
|
10
11
|
export * from "./toastContext";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface ModalDialogContextValue {
|
2
|
+
/**
|
3
|
+
* Informs the host that a modal will be shown, this will resize the iris app to allow a full screen modal.
|
4
|
+
*/
|
5
|
+
openModal: ({ scrollX, scrollY }?: {
|
6
|
+
scrollX: number;
|
7
|
+
scrollY: number;
|
8
|
+
}) => Promise<void>;
|
9
|
+
/**
|
10
|
+
* Informs the host that a modal will be closed this will resize the iris app back to the size before the modal was shown.
|
11
|
+
*/
|
12
|
+
closeModal: () => Promise<void>;
|
13
|
+
}
|