@lettuceai/crisp 1.6.0 → 1.6.1
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/index.d.ts +1 -0
- package/dist/index.js +2006 -1982
- package/dist/index.js.map +1 -1
- package/dist/lib/layers.d.ts +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Puts an overlay on top of the stack and returns the function that takes it off. */
|
|
2
|
+
export declare function pushLayer(dismiss: () => void): () => void;
|
|
3
|
+
/**
|
|
4
|
+
* Registers an open overlay on a shared stack, so a platform back gesture (Android's
|
|
5
|
+
* back button and swipe) can close the topmost one, the way Escape does on a keyboard.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useDismissLayer(open: boolean, dismiss: () => void): void;
|
|
8
|
+
/**
|
|
9
|
+
* Closes the most recently opened overlay and returns true, or returns false when none
|
|
10
|
+
* is open. A sheet that is not dismissible still counts: the press is used up and it
|
|
11
|
+
* stays open.
|
|
12
|
+
*/
|
|
13
|
+
export declare function dismissTopLayer(): boolean;
|