@abyss-project/commons-front-core 20.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog — @abyss-project/commons-front-core
2
2
 
3
+ ## 20.3.0
4
+
5
+ Card #788 (toasts above the fixed bottom bars).
6
+
7
+ - New hooks, exported from the root with the other hooks: `useToastClearance(px)` claims `px` pixels from the bottom edge for the toast region while mounted and positive; `useElementToastClearance(active = true)` returns a callback ref: the element it is put on is measured (top to the bottom of the viewport, safe area included) as soon as it is attached, remounts included, its resize and the window's are followed, and that distance is claimed while active. The toast sits above the largest claim of the page; releasing one never erases another.
8
+ - `CookieConsentBanner` goes through the same registry: leaving no longer erases the claim of a screen's bar.
9
+
3
10
  ## 20.2.0
4
11
 
5
12
  Card #286 (satellites, S1).