vlite3 1.5.41 → 1.5.42

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.
@@ -25,8 +25,8 @@ import qe from "../IconPicker.vue.js";
25
25
  /* empty css */
26
26
  /* empty css */
27
27
  /* empty css */
28
- /* empty css */
29
- /* empty css */
28
+ /* empty css */
29
+ /* empty css */
30
30
  import "../../core/config.js";
31
31
  /* empty css */
32
32
  /* empty css */
@@ -1,4 +1,4 @@
1
- import o from "./DropdownMenu3.vue.js";
1
+ import o from "./DropdownMenu2.vue.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b2b8e35e"]]);
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
2
2
  /* empty css */
3
- import se from "./RichTextToolbar.vue.js";
4
- /* empty css */
5
- import de from "./RichTextLinkPopover.vue.js";
6
- /* empty css */
3
+ import se from "./RichTextToolbar2.vue.js";
4
+ /* empty css */
5
+ import de from "./RichTextLinkPopover2.vue.js";
6
+ /* empty css */
7
7
  import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
8
8
  import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
9
9
  const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
@@ -1,5 +1,5 @@
1
- import o from "./RichTextLinkPopover.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextLinkPopover2.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import o from "./RichTextToolbar.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextToolbar2.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -26,8 +26,8 @@ import "../../icons/IconRegistry.js";
26
26
  /* empty css */
27
27
  /* empty css */
28
28
  /* empty css */
29
- /* empty css */
30
- /* empty css */
29
+ /* empty css */
30
+ /* empty css */
31
31
  import "../../core/config.js";
32
32
  /* empty css */
33
33
  /* empty css */
@@ -10,6 +10,7 @@ export declare class ScrollRevealPager {
10
10
  private distance;
11
11
  private wheelHoldUntil;
12
12
  private readingElement?;
13
+ private readingEdge?;
13
14
  private context;
14
15
  constructor(context: ScrollRevealContext);
15
16
  register(element: HTMLElement): void;
@@ -25,6 +26,7 @@ export declare class ScrollRevealPager {
25
26
  /** Child scroll owners win, including at a contained overscroll boundary. */
26
27
  private nestedOwns;
27
28
  private enabled;
29
+ private readingStep;
28
30
  private destination;
29
31
  private move;
30
32
  private onWheel;
@@ -1,4 +1,4 @@
1
- const w = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", g = [
1
+ const p = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", g = [
2
2
  "input",
3
3
  "textarea",
4
4
  "select",
@@ -38,11 +38,11 @@ const w = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", g = [
38
38
  "searchbox",
39
39
  "scrollbar",
40
40
  "application"
41
- ].map((p) => `[role~="${p}"]`)
42
- ].join(", "), o = 2, x = 12, f = 220;
43
- class b {
41
+ ].map((u) => `[role~="${u}"]`)
42
+ ].join(", "), o = 2, w = 12, f = 220;
43
+ class x {
44
44
  sections = /* @__PURE__ */ new Set();
45
- desktop = window.matchMedia(w);
45
+ desktop = window.matchMedia(p);
46
46
  listeners;
47
47
  movement;
48
48
  lastWheel = -1 / 0;
@@ -50,6 +50,7 @@ class b {
50
50
  distance = 0;
51
51
  wheelHoldUntil = 0;
52
52
  readingElement;
53
+ readingEdge;
53
54
  context;
54
55
  constructor(t) {
55
56
  this.context = t, this.desktop.addEventListener("change", this.configure);
@@ -69,7 +70,7 @@ class b {
69
70
  e.addEventListener("wheel", this.onWheel, { ...i, passive: !1 }), e.addEventListener("keydown", this.onKeydown, i);
70
71
  };
71
72
  reset = () => {
72
- this.cancel(), this.lastWheel = -1 / 0, this.direction = this.distance = 0, this.wheelHoldUntil = 0, this.readingElement = void 0;
73
+ this.cancel(), this.lastWheel = -1 / 0, this.direction = this.distance = 0, this.wheelHoldUntil = 0, this.readingElement = void 0, this.readingEdge = void 0;
73
74
  };
74
75
  cancel() {
75
76
  this.movement && (cancelAnimationFrame(this.movement.frame), this.movement = void 0);
@@ -88,7 +89,7 @@ class b {
88
89
  if (!t.isConnected) return;
89
90
  const i = t.getBoundingClientRect();
90
91
  if (!i.height || !i.width) return;
91
- const s = (a) => Math.max(0, Math.min(a, e.limit)), n = s(i.top - e.top + e.from - e.padding);
92
+ const s = (l) => Math.max(0, Math.min(l, e.limit)), n = s(i.top - e.top + e.from - e.padding);
92
93
  return { element: t, start: n, end: s(Math.max(n, i.bottom - e.bottom + e.from)) };
93
94
  }
94
95
  measure() {
@@ -103,12 +104,12 @@ class b {
103
104
  if (this.measureSection(i, t) && ++e === 2) return !0;
104
105
  return !1;
105
106
  }
106
- readWheel(t, e, i, s, n = !1) {
107
- const a = this.context.position();
108
- if (a < t.start - o || a > t.end + o || (e > 0 ? a >= t.end - o : a <= t.start + o)) return !1;
107
+ readWheel(t, e, i, s) {
108
+ const n = this.context.position();
109
+ if (n < t.start - o || n > t.end + o || (e > 0 ? n >= t.end - o : n <= t.start + o)) return !1;
109
110
  this.readingElement = t.element, this.wheelHoldUntil = 0, this.direction = e, this.distance = 0;
110
- const r = a + i, l = r >= t.end || r <= t.start;
111
- return (l || n) && (s.preventDefault(), this.context.write(Math.max(t.start, Math.min(r, t.end))), l && (this.wheelHoldUntil = performance.now() + f)), !0;
111
+ const l = this.readingStep(), a = n + Math.max(-l, Math.min(i, l)), h = a >= t.end || a <= t.start;
112
+ return s.preventDefault(), this.context.write(Math.max(t.start, Math.min(a, t.end))), h && (this.readingEdge = { element: t.element, direction: e }), !0;
112
113
  }
113
114
  /** Child scroll owners win, including at a contained overscroll boundary. */
114
115
  nestedOwns(t, e) {
@@ -128,21 +129,25 @@ class b {
128
129
  const { container: t, documentRoot: e } = this.context;
129
130
  return ![t, ...e ? [document.body] : []].some((i) => /^(hidden|clip)$/.test(getComputedStyle(i).overflowY));
130
131
  }
132
+ readingStep() {
133
+ const t = this.context.viewport();
134
+ return Math.max(48, t.bottom - t.top - this.context.padding() - 48);
135
+ }
131
136
  destination(t, e, i) {
132
137
  const s = this.context.position();
133
- let n, a, r;
138
+ let n, l, a;
134
139
  for (const m of i)
135
- if (m.start <= s + o && (n = m), m.start < s - o && (a = m), m.start > s + o) {
136
- r = m;
140
+ if (m.start <= s + o && (n = m), m.start < s - o && (l = m), m.start > s + o) {
141
+ a = m;
137
142
  break;
138
143
  }
139
- const l = n && n.end > n.start + o && s <= n.end + o, h = this.context.viewport(), d = Math.max(48, h.bottom - h.top - this.context.padding() - 48);
140
- let u, c;
141
- if (e && l && (t > 0 ? s < n.end - o : s > n.start + o) ? (c = n, u = Math.min(n.end, Math.max(n.start, s + t * d))) : (c = t > 0 ? r : a, u = c?.start ?? (t > 0 ? this.context.limit() : 0)), !(Math.abs(u - s) <= o))
144
+ const h = n && n.end > n.start + o && s <= n.end + o, r = this.readingStep();
145
+ let d, c;
146
+ if (e && h && (t > 0 ? s < n.end - o : s > n.start + o) ? (c = n, d = Math.min(n.end, Math.max(n.start, s + t * r))) : (c = t > 0 ? a : l, d = c ? t > 0 ? c.start : c.end : t > 0 ? this.context.limit() : 0), !(Math.abs(d - s) <= o))
142
147
  return {
143
- position: u,
148
+ position: d,
144
149
  element: c?.element,
145
- progress: c && c.end > c.start ? (u - c.start) / (c.end - c.start) : 0,
150
+ progress: c && c.end > c.start ? (d - c.start) / (c.end - c.start) : 0,
146
151
  atEnd: !c && t > 0
147
152
  };
148
153
  }
@@ -152,23 +157,23 @@ class b {
152
157
  this.movement = s;
153
158
  const n = () => {
154
159
  if (this.movement !== s) return;
155
- const h = t.element && this.sections.has(t.element) ? this.measureSection(t.element) : void 0, d = h ? h.start + (h.end - h.start) * t.progress : t.atEnd ? this.context.limit() : Math.min(t.position, this.context.limit());
156
- (!t.element || h) && Math.abs(d - this.context.position()) > o && this.context.write(d), this.movement = void 0, this.wheelHoldUntil && (this.wheelHoldUntil = performance.now() + f);
160
+ const r = t.element && this.sections.has(t.element) ? this.measureSection(t.element) : void 0, d = r ? r.start + (r.end - r.start) * t.progress : t.atEnd ? this.context.limit() : Math.min(t.position, this.context.limit());
161
+ (!t.element || r) && Math.abs(d - this.context.position()) > o && this.context.write(d), this.movement = void 0, r && r.end > r.start + o && (this.readingElement = r.element), this.wheelHoldUntil && (this.wheelHoldUntil = performance.now() + f);
157
162
  };
158
163
  if (this.context.reducedMotion.matches) {
159
164
  this.context.write(t.position), n();
160
165
  return;
161
166
  }
162
- const a = window.location.href, r = performance.now(), l = (h) => {
167
+ const l = window.location.href, a = performance.now(), h = (r) => {
163
168
  if (this.movement !== s) return;
164
- if (document.hidden || window.location.href !== a || t.element && !t.element.isConnected) {
169
+ if (document.hidden || window.location.href !== l || t.element && !t.element.isConnected) {
165
170
  this.reset();
166
171
  return;
167
172
  }
168
- const d = Math.min(1, (h - r) / 850);
169
- this.context.write(i + (t.position - i) * (1 - (1 - d) ** 3)), d < 1 ? s.frame = requestAnimationFrame(l) : n();
173
+ const d = Math.min(1, (r - a) / 850);
174
+ this.context.write(i + (t.position - i) * (1 - (1 - d) ** 3)), d < 1 ? s.frame = requestAnimationFrame(h) : n();
170
175
  };
171
- s.frame = requestAnimationFrame(l);
176
+ s.frame = requestAnimationFrame(h);
172
177
  }
173
178
  onWheel = (t) => {
174
179
  if (this.context.syncNavigation(), !this.enabled() || !t.cancelable || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey || t.shiftKey || !Number.isFinite(t.deltaY) || !Number.isFinite(t.deltaX) || !t.deltaY || Math.abs(t.deltaX) > Math.abs(t.deltaY)) {
@@ -176,7 +181,7 @@ class b {
176
181
  return;
177
182
  }
178
183
  const e = Math.sign(t.deltaY), i = performance.now();
179
- if (i - this.lastWheel >= f && (this.distance = 0, this.wheelHoldUntil = 0), this.lastWheel = i, this.nestedOwns(t, e)) {
184
+ if (i - this.lastWheel >= f && (this.distance = 0, this.wheelHoldUntil = 0, this.readingEdge = void 0), this.lastWheel = i, this.nestedOwns(t, e)) {
180
185
  this.cancel(), this.wheelHoldUntil = i + f, this.direction = e, this.distance = 0;
181
186
  return;
182
187
  }
@@ -184,6 +189,14 @@ class b {
184
189
  this.reset();
185
190
  return;
186
191
  }
192
+ if (this.readingEdge) {
193
+ const a = this.readingEdge, h = this.measureSection(a.element), r = this.context.position(), d = h && (a.direction > 0 ? Math.abs(r - h.end) <= o : Math.abs(r - h.start) <= o);
194
+ if (e === a.direction && d) {
195
+ t.preventDefault();
196
+ return;
197
+ }
198
+ this.readingEdge = void 0;
199
+ }
187
200
  const s = t.deltaMode === 1 ? 16 : t.deltaMode === 2 ? Math.max(1, this.context.viewport().bottom - this.context.viewport().top - this.context.padding()) : 1;
188
201
  if (e === this.direction && i < this.wheelHoldUntil) {
189
202
  t.preventDefault();
@@ -194,26 +207,26 @@ class b {
194
207
  return;
195
208
  }
196
209
  if (!this.movement && this.readingElement) {
197
- const r = this.measureSection(this.readingElement);
198
- if (r && this.readWheel(r, e, t.deltaY * s, t)) return;
210
+ const a = this.measureSection(this.readingElement);
211
+ if (a && this.readWheel(a, e, t.deltaY * s, t)) return;
199
212
  this.readingElement = void 0;
200
213
  }
201
- if (Math.sign(this.distance) !== e && (this.distance = 0), this.distance += t.deltaY * s, Math.abs(this.distance) < x) {
214
+ if (Math.sign(this.distance) !== e && (this.distance = 0), this.distance += t.deltaY * s, Math.abs(this.distance) < w) {
202
215
  t.preventDefault();
203
216
  return;
204
217
  }
205
218
  const n = this.measure();
206
219
  if (n.length < 2) return;
207
220
  if (!this.movement) {
208
- const r = this.context.position(), l = n.find((h) => r >= h.start - o && r <= h.end + o && (e > 0 ? r < h.end - o : r > h.start + o));
209
- if (l && this.readWheel(l, e, this.distance, t, this.distance !== t.deltaY * s)) return;
221
+ const a = this.context.position(), h = n.find((r) => a >= r.start - o && a <= r.end + o && (e > 0 ? a < r.end - o : a > r.start + o));
222
+ if (h && this.readWheel(h, e, this.distance, t)) return;
210
223
  }
211
- const a = this.destination(e, !1, n);
212
- if (!a) {
224
+ const l = this.destination(e, !1, n);
225
+ if (!l) {
213
226
  this.distance = 0;
214
227
  return;
215
228
  }
216
- t.preventDefault(), this.direction = e, this.distance = 0, this.wheelHoldUntil = i + f, this.move(a, e);
229
+ t.preventDefault(), this.direction = e, this.distance = 0, this.wheelHoldUntil = i + f, this.move(l, e);
217
230
  };
218
231
  onKeydown = (t) => {
219
232
  if (this.context.syncNavigation(), !this.enabled() || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey) return;
@@ -237,5 +250,5 @@ class b {
237
250
  }
238
251
  }
239
252
  export {
240
- b as ScrollRevealPager
253
+ x as ScrollRevealPager
241
254
  };
@@ -87,3 +87,34 @@ again requires actual vertical overflow. The regression suite checks that an
87
87
  auto-overflow wrapper without vertical range resolves to the document, and
88
88
  becomes eligible after vertical growth. Async growth requires a Vue update to
89
89
  transfer existing registrations. This supersedes the earlier ownership finding.
90
+
91
+
92
+ ## Tall-section content preservation — 2026-11-02
93
+
94
+ The player section's lower feature cards are inside its registered stop. The
95
+ pager previously delegated middle-of-section wheel events to the browser,
96
+ leaving asynchronous/accelerated native scrolling able to pass the reading
97
+ boundary; the fixed hold also released long momentum after 220ms. Reverse
98
+ entry selected the previous heading, skipping its lower reading content.
99
+
100
+ Accepted wheel events now move progressively within the current section's
101
+ measured start/end. Every reading tick is prevented and written once, bounded
102
+ to one viewport step with overlap. Arrival retains the measured section as
103
+ the reading owner. Reverse entry targets the previous section's bottom. At
104
+ a reading edge, further same-direction input is absorbed until 220ms of idle
105
+ separates a fresh gesture. Reversal, keyboard input, lifecycle resets and a
106
+ changed reading range release this edge state. Short-section paging keeps its
107
+ existing bounded hold. No timers, extra listeners or animation loop added.
108
+
109
+ All 30 focused tests pass, including full down/up reading sequences, oversized
110
+ deltas, long momentum tails, idle restart, reversal, late content growth,
111
+ keyboard and reduced motion. `git diff --check` passes. The earlier continuous
112
+ tiny-hero test now requires the 10px remainder to be shown and a fresh gesture
113
+ to leave it, matching the requested boundary contract.
114
+
115
+ No build or physical-browser/trackpad check was performed for this change.
116
+ Non-cancelable/native-owned gestures, touch and narrow layouts still follow
117
+ the existing native fallback; JavaScript cannot cancel a non-cancelable event.
118
+ Gesture separation is based on wheel-event idle, not a hardware momentum flag.
119
+ This supersedes earlier descriptions of native middle-of-section reading and
120
+ bounded momentum release specifically at tall-section reading edges.
@@ -105,11 +105,16 @@ scrolling is native. Touch input is always native; no touchmove listener is used
105
105
 
106
106
  - Deliberate vertical wheel intent accumulates before advancing to the next stop.
107
107
  Short sections align their top after the scroller's effective `scroll-padding-top`.
108
- - Tall sections retain native progressive wheel scrolling between their start and
109
- end. A gesture reaching an edge is held there; fresh intent advances onward.
108
+ - Tall sections retain progressive reading between their start and end. The pager
109
+ consumes accepted vertical wheel ticks and clamps each movement to that range,
110
+ with at most one viewport-sized step (48px overlap). Downward entry aligns the
111
+ top; upward entry aligns the bottom, then reads toward the top.
112
+ At a reading boundary, same-direction momentum remains held until a fresh
113
+ gesture (at least 220ms without wheel input). Reversal and keyboard navigation
114
+ remain available immediately. Late content growth extends the reading range.
110
115
  - A transition owns one destination; input during movement cannot queue pages.
111
- After arriving (or reaching a tall-section edge), same-direction wheel input
112
- is held for at most 220ms. Events during this pause do not extend it. Then
116
+ After a section transition, same-direction wheel input is held for at most
117
+ 220ms. Tall-section reading boundaries use the fresh-gesture rule above. Events during this pause do not extend it. Then
113
118
  small, fractional and varying deltas accumulate toward the normal 12px intent
114
119
  threshold. A 220ms idle gap also clears the hold; deliberate opposite input
115
120
  can reverse immediately. No cursor movement is required to resume.
@@ -140,7 +145,7 @@ reassign the owner.
140
145
 
141
146
  Wheel input first checks that two rendered stops remain available, stopping the eligibility scan
142
147
  as soon as two are found. Full section geometry is measured after deliberate intent for navigation decisions, never across every RAF
143
- frame. Native tall-section reading remeasures only its current section on wheel input. Movement writes only scroll position and corrects its original target once
148
+ frame. Tall-section reading remeasures its current section on wheel input. Movement writes only scroll position and corrects its original target once
144
149
  after settlement if layout shifted. Reveal and paging state are separate inside
145
150
  the shared coordinator.
146
151
 
@@ -2,8 +2,8 @@
2
2
  "managedBy": "vlite3",
3
3
  "manifestVersion": 1,
4
4
  "packageName": "vlite3",
5
- "packageVersion": "1.5.41",
6
- "generatedAt": "2026-11-02T14:04:14.594Z",
5
+ "packageVersion": "1.5.42",
6
+ "generatedAt": "2026-11-02T14:15:26.241Z",
7
7
  "files": {
8
8
  "component-index.md": {
9
9
  "sha256": "2a8a3c18e4b9158ff62eaf23c3aae82b2aee7e10fca9b78f9a6d573ff9b13c61"
@@ -243,7 +243,7 @@
243
243
  "sha256": "d6f355061d35552dbfcebde53088bafdaaafbe9934ed3fc9286d39e60348b64b"
244
244
  },
245
245
  "components/scroll-reveal.md": {
246
- "sha256": "05f1139759cf4ba38f5b941660bb1f15eef51a73bc8e9651176e59944a7fda03"
246
+ "sha256": "99b9ec74ee3fe5da50b0603e97d53da48c3759ce42c7814e7fdeaba5833274c0"
247
247
  },
248
248
  "components/seo-provider.md": {
249
249
  "sha256": "ee4ef9991f025ddc6e6a11180d9acce6bbe87d86d5e746da70164260734b983e"
@@ -339,7 +339,7 @@
339
339
  "sha256": "115099e4c2fd179fef86430f5c376b8a58f1f0dab5d7c493a6e0c77485845268"
340
340
  },
341
341
  "ScrollRevealReleaseAudit.md": {
342
- "sha256": "9be54d6a3158d90f44adc075eb327b0fe7e9c4b537c937ce414bfee9745dcece"
342
+ "sha256": "5417f062679d541bbd3148f85eb31d2c4c1bbfc0328a8ce5e41e6b9f0ba1ec1d"
343
343
  },
344
344
  "utilities/search.md": {
345
345
  "sha256": "a3e597b3d0a8da8e4ab3a8537231b19149cda48f204ad5cce36860988341e281"
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "1.5.41",
6
+ "version": "1.5.42",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",