@abyss-project/commons-front-core 20.1.0 → 20.3.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.
@@ -11,3 +11,4 @@ export * from './use-scroll-overflow-cue.hook';
11
11
  export * from './use-service-tour.hook';
12
12
  export * from './use-file-drop-target.hook';
13
13
  export * from './use-optimistic-mutation.hook';
14
+ export * from './use-toast-clearance.hook';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Tells the toast region that something fixed to the bottom of the viewport occupies `px` pixels
3
+ * (measured from the bottom edge), so a toast sits above it. The claim lasts while the calling
4
+ * component is mounted and `px` is positive; the toast keeps above the largest claim of the page,
5
+ * the cookie-consent banner included, and releasing one claim never erases another.
6
+ */
7
+ export declare const useToastClearance: (px: number | null | undefined) => void;
8
+ /**
9
+ * Measures an element, from its top to the bottom of the viewport (a bar at `bottom: 0` counts
10
+ * with its safe-area padding), and claims that distance for the toast region while `active` and
11
+ * attached. It follows the element's resize and the window's. Returns a callback ref to put on the
12
+ * element: an element attached after the hook, or remounted, is measured as soon as it is there.
13
+ */
14
+ export declare const useElementToastClearance: (active?: boolean) => ((element: HTMLElement | null) => void);
@@ -0,0 +1 @@
1
+ export {};