@uniweb/kit 0.13.3 → 0.13.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -44,9 +44,9 @@
44
44
  "shiki": "^3.0.0",
45
45
  "tailwind-merge": "^3.6.0",
46
46
  "temml": "^0.13.2",
47
- "@uniweb/core": "^0.11.2",
48
- "@uniweb/scene": "^0.1.3",
49
- "@uniweb/semantic-parser": "^1.3.0"
47
+ "@uniweb/core": "^0.11.3",
48
+ "@uniweb/semantic-parser": "^1.3.0",
49
+ "@uniweb/scene": "^0.1.3"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^19.0.0",
@@ -47,6 +47,14 @@ const THROTTLE_MS = 200
47
47
  * bottom of the viewport, 100 once its bottom has. An element shorter than the
48
48
  * viewport reports 100 as soon as it is fully on screen, which is correct —
49
49
  * there was nothing further to read.
50
+ *
51
+ * ⛔ **So `100` is TWO different claims, and a consumer labelling a panel needs
52
+ * to know which.** Taller than the viewport: the visitor scrolled all the way
53
+ * through it. Shorter: it was entirely on screen, with no scrolling through it
54
+ * at all. The ratio that decides is not on the wire, so a collector cannot tell
55
+ * them apart — and `100` never means *"saw the whole page"*, which is what the
56
+ * retired document-scoped hook's `100` meant. Asserted by three cases in
57
+ * `tests/use-reading-depth.test.jsx`.
50
58
  */
51
59
  function depthOf(el) {
52
60
  const rect = el.getBoundingClientRect()