vlite3 1.5.39 → 1.5.40

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,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 */
@@ -8,9 +8,7 @@ export declare class ScrollRevealPager {
8
8
  private lastWheel;
9
9
  private direction;
10
10
  private distance;
11
- private consumed;
12
- private sustainedSince?;
13
- private lastMagnitude;
11
+ private wheelHoldUntil;
14
12
  private readingElement?;
15
13
  private context;
16
14
  constructor(context: ScrollRevealContext);
@@ -29,11 +27,6 @@ export declare class ScrollRevealPager {
29
27
  private enabled;
30
28
  private destination;
31
29
  private move;
32
- /** A continuous mouse wheel must not require silence or pointer movement to resume.
33
- * Rearm only after settling and sustained, non-decaying input. Small or falling
34
- * momentum tails reset this window; nothing queues while an animation runs.
35
- */
36
- private sustainedWheel;
37
30
  private onWheel;
38
31
  private onKeydown;
39
32
  destroy(): void;
@@ -1,4 +1,4 @@
1
- const g = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", b = [
1
+ const w = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", g = [
2
2
  "input",
3
3
  "textarea",
4
4
  "select",
@@ -38,19 +38,17 @@ const g = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", b = [
38
38
  "searchbox",
39
39
  "scrollbar",
40
40
  "application"
41
- ].map((f) => `[role~="${f}"]`)
42
- ].join(", "), o = 2, p = 12, x = 220, w = 160;
43
- class y {
41
+ ].map((p) => `[role~="${p}"]`)
42
+ ].join(", "), o = 2, x = 12, f = 220;
43
+ class b {
44
44
  sections = /* @__PURE__ */ new Set();
45
- desktop = window.matchMedia(g);
45
+ desktop = window.matchMedia(w);
46
46
  listeners;
47
47
  movement;
48
48
  lastWheel = -1 / 0;
49
49
  direction = 0;
50
50
  distance = 0;
51
- consumed = !1;
52
- sustainedSince;
53
- lastMagnitude = 0;
51
+ wheelHoldUntil = 0;
54
52
  readingElement;
55
53
  context;
56
54
  constructor(t) {
@@ -71,7 +69,7 @@ class y {
71
69
  e.addEventListener("wheel", this.onWheel, { ...i, passive: !1 }), e.addEventListener("keydown", this.onKeydown, i);
72
70
  };
73
71
  reset = () => {
74
- this.cancel(), this.lastWheel = -1 / 0, this.direction = this.distance = 0, this.consumed = !1, this.sustainedSince = void 0, this.lastMagnitude = 0, this.readingElement = void 0;
72
+ this.cancel(), this.lastWheel = -1 / 0, this.direction = this.distance = 0, this.wheelHoldUntil = 0, this.readingElement = void 0;
75
73
  };
76
74
  cancel() {
77
75
  this.movement && (cancelAnimationFrame(this.movement.frame), this.movement = void 0);
@@ -107,9 +105,9 @@ class y {
107
105
  readWheel(t, e, i, s, n = !1) {
108
106
  const a = this.context.position();
109
107
  if (a < t.start - o || a > t.end + o || (e > 0 ? a >= t.end - o : a <= t.start + o)) return !1;
110
- this.readingElement = t.element, this.consumed = !1, this.direction = e, this.distance = 0;
111
- const r = a + i, d = r >= t.end || r <= t.start;
112
- return (d || n) && (s.preventDefault(), this.context.write(Math.max(t.start, Math.min(r, t.end))), this.consumed = d), !0;
108
+ this.readingElement = t.element, this.wheelHoldUntil = 0, this.direction = e, this.distance = 0;
109
+ const r = a + i, l = r >= t.end || r <= t.start;
110
+ return (l || n) && (s.preventDefault(), this.context.write(Math.max(t.start, Math.min(r, t.end))), l && (this.wheelHoldUntil = performance.now() + f)), !0;
113
111
  }
114
112
  /** Child scroll owners win, including at a contained overscroll boundary. */
115
113
  nestedOwns(t, e) {
@@ -136,14 +134,14 @@ class y {
136
134
  r = m;
137
135
  break;
138
136
  }
139
- const d = n && n.end > n.start + o && s <= n.end + o, c = this.context.viewport(), l = Math.max(48, c.bottom - c.top - this.context.padding() - 48);
140
- let u, h;
141
- if (e && d && (t > 0 ? s < n.end - o : s > n.start + o) ? (h = n, u = Math.min(n.end, Math.max(n.start, s + t * l))) : (h = t > 0 ? r : a, u = h?.start ?? (t > 0 ? this.context.limit() : 0)), !(Math.abs(u - s) <= o))
137
+ 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);
138
+ let u, c;
139
+ 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))
142
140
  return {
143
141
  position: u,
144
- element: h?.element,
145
- progress: h && h.end > h.start ? (u - h.start) / (h.end - h.start) : 0,
146
- atEnd: !h && t > 0
142
+ element: c?.element,
143
+ progress: c && c.end > c.start ? (u - c.start) / (c.end - c.start) : 0,
144
+ atEnd: !c && t > 0
147
145
  };
148
146
  }
149
147
  move(t, e) {
@@ -152,31 +150,23 @@ class y {
152
150
  this.movement = s;
153
151
  const n = () => {
154
152
  if (this.movement !== s) return;
155
- const c = t.element && this.sections.has(t.element) ? this.measureSection(t.element) : void 0, l = c ? c.start + (c.end - c.start) * t.progress : t.atEnd ? this.context.limit() : Math.min(t.position, this.context.limit());
156
- (!t.element || c) && Math.abs(l - this.context.position()) > o && this.context.write(l), this.movement = void 0;
153
+ 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());
154
+ (!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);
157
155
  };
158
156
  if (this.context.reducedMotion.matches) {
159
157
  this.context.write(t.position), n();
160
158
  return;
161
159
  }
162
- const a = window.location.href, r = performance.now(), d = (c) => {
160
+ const a = window.location.href, r = performance.now(), l = (h) => {
163
161
  if (this.movement !== s) return;
164
162
  if (document.hidden || window.location.href !== a || t.element && !t.element.isConnected) {
165
163
  this.reset();
166
164
  return;
167
165
  }
168
- const l = Math.min(1, (c - r) / 850);
169
- this.context.write(i + (t.position - i) * (1 - (1 - l) ** 3)), l < 1 ? s.frame = requestAnimationFrame(d) : n();
166
+ const d = Math.min(1, (h - r) / 850);
167
+ this.context.write(i + (t.position - i) * (1 - (1 - d) ** 3)), d < 1 ? s.frame = requestAnimationFrame(l) : n();
170
168
  };
171
- s.frame = requestAnimationFrame(d);
172
- }
173
- /** A continuous mouse wheel must not require silence or pointer movement to resume.
174
- * Rearm only after settling and sustained, non-decaying input. Small or falling
175
- * momentum tails reset this window; nothing queues while an animation runs.
176
- */
177
- sustainedWheel(t, e) {
178
- const i = Math.abs(t), s = i >= p && i >= this.lastMagnitude;
179
- return this.lastMagnitude = i, this.movement || !s ? (this.sustainedSince = void 0, !1) : (this.sustainedSince ??= e, e - this.sustainedSince >= w);
169
+ s.frame = requestAnimationFrame(l);
180
170
  }
181
171
  onWheel = (t) => {
182
172
  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)) {
@@ -184,8 +174,8 @@ class y {
184
174
  return;
185
175
  }
186
176
  const e = Math.sign(t.deltaY), i = performance.now();
187
- if (i - this.lastWheel >= x && (this.distance = 0, this.consumed = !1, this.sustainedSince = void 0, this.lastMagnitude = 0), this.lastWheel = i, this.nestedOwns(t, e)) {
188
- this.cancel(), this.sustainedSince = void 0, this.lastMagnitude = 0, this.consumed = !0, this.direction = e, this.distance = 0;
177
+ if (i - this.lastWheel >= f && (this.distance = 0, this.wheelHoldUntil = 0), this.lastWheel = i, this.nestedOwns(t, e)) {
178
+ this.cancel(), this.wheelHoldUntil = i + f, this.direction = e, this.distance = 0;
189
179
  return;
190
180
  }
191
181
  if (!this.hasPagingStops()) {
@@ -193,15 +183,12 @@ class y {
193
183
  return;
194
184
  }
195
185
  const s = t.deltaMode === 1 ? 16 : t.deltaMode === 2 ? this.context.viewport().bottom - this.context.viewport().top - this.context.padding() : 1;
196
- if (this.consumed && e === this.direction) {
197
- if (!this.sustainedWheel(t.deltaY * s, i)) {
198
- t.preventDefault();
199
- return;
200
- }
201
- this.consumed = !1, this.distance = 0;
186
+ if (e === this.direction && i < this.wheelHoldUntil) {
187
+ t.preventDefault();
188
+ return;
202
189
  }
203
- if (this.sustainedSince = void 0, this.lastMagnitude = Math.abs(t.deltaY * s), this.movement?.direction === e) {
204
- t.preventDefault(), this.consumed = !0, this.direction = e, this.distance = 0;
190
+ if (this.wheelHoldUntil = 0, this.movement?.direction === e) {
191
+ t.preventDefault(), this.wheelHoldUntil = i + f, this.direction = e, this.distance = 0;
205
192
  return;
206
193
  }
207
194
  if (!this.movement && this.readingElement) {
@@ -209,22 +196,22 @@ class y {
209
196
  if (r && this.readWheel(r, e, t.deltaY * s, t)) return;
210
197
  this.readingElement = void 0;
211
198
  }
212
- if (Math.sign(this.distance) !== e && (this.distance = 0), this.distance += t.deltaY * s, Math.abs(this.distance) < p) {
199
+ if (Math.sign(this.distance) !== e && (this.distance = 0), this.distance += t.deltaY * s, Math.abs(this.distance) < x) {
213
200
  t.preventDefault();
214
201
  return;
215
202
  }
216
203
  const n = this.measure();
217
204
  if (n.length < 2) return;
218
205
  if (!this.movement) {
219
- const r = this.context.position(), d = n.find((c) => r >= c.start - o && r <= c.end + o && (e > 0 ? r < c.end - o : r > c.start + o));
220
- if (d && this.readWheel(d, e, this.distance, t, this.distance !== t.deltaY * s)) return;
206
+ 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));
207
+ if (l && this.readWheel(l, e, this.distance, t, this.distance !== t.deltaY * s)) return;
221
208
  }
222
209
  const a = this.destination(e, !1, n);
223
210
  if (!a) {
224
211
  this.distance = 0;
225
212
  return;
226
213
  }
227
- t.preventDefault(), this.direction = e, this.distance = 0, this.consumed = !0, this.move(a, e);
214
+ t.preventDefault(), this.direction = e, this.distance = 0, this.wheelHoldUntil = i + f, this.move(a, e);
228
215
  };
229
216
  onKeydown = (t) => {
230
217
  if (this.context.syncNavigation(), !this.enabled() || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey) return;
@@ -235,7 +222,7 @@ class y {
235
222
  }
236
223
  for (const n of t.composedPath()) {
237
224
  if (n === this.context.container) break;
238
- if (n instanceof Element && (n.matches(b) || n.hasAttribute("tabindex") && Number(n.getAttribute("tabindex")) >= 0)) return;
225
+ if (n instanceof Element && (n.matches(g) || n.hasAttribute("tabindex") && Number(n.getAttribute("tabindex")) >= 0)) return;
239
226
  }
240
227
  if (this.nestedOwns(t, e)) return;
241
228
  const i = this.measure();
@@ -248,5 +235,5 @@ class y {
248
235
  }
249
236
  }
250
237
  export {
251
- y as ScrollRevealPager
238
+ b as ScrollRevealPager
252
239
  };
@@ -227,7 +227,7 @@ rendering, server/client markup parity, hydration warnings, async/streamed
227
227
  hydration, browser restoration and production package imports have not been run.
228
228
 
229
229
 
230
- ## Stationary-pointer wheel regression — 2026-11-02
230
+ ## Stationary-pointer wheel regression — 2026-11-02 (superseded below)
231
231
 
232
232
  The original silence-only latch could block continuous wheel input indefinitely
233
233
  after reaching a stop or tall-section edge. On localhost:4217 at a 1440×900
@@ -258,3 +258,46 @@ long, flat momentum stream can match sustained intent. Native device feel and
258
258
  other browser engines remain unverified. The separate non-cancelable-event
259
259
  cancellation path was inspected but not changed because it was not the cause
260
260
  of the reproduced lock.
261
+
262
+
263
+ ## Trackpad follow-up after 1.5.39 — 2026-11-02
264
+
265
+ **Observed defect:** the landing manifest and installed package were both 1.5.39.
266
+ The previous fix only released the hold when deltas stayed at or above 12px and
267
+ never decreased for 160ms. Small/fractional input could never qualify, and
268
+ varying input repeatedly restarted the window. A pause cleared the latch,
269
+ explaining why stopping for two seconds helped. The earlier constant 180px
270
+ wheel probe did not cover this.
271
+
272
+ **Browser comparison:** localhost:4217, 1440×900, fixed cursor (700,500),
273
+ 220 consecutive wheel actions cycling through 5.4, 3.6, 7.2, 1.8px deltas.
274
+ Installed 1.5.39 stopped at scrollY=10; later events remained cancelable and
275
+ default-prevented. With the corrected source temporarily aliased, the identical
276
+ sequence from scrollY=0 reached 1824.5. Another sequence reached 4067, and
277
+ upward input at the same coordinates returned to 67. Space advanced afterward.
278
+ These are tool-driven native wheel inputs, not a recording of the user's
279
+ physical trackpad; other physical devices/browser engines remain unverified.
280
+
281
+ **Fix:** replace magnitude comparisons and the consumed flag with one bounded
282
+ wheel-hold deadline. The active animation owns its one destination. At arrival
283
+ or a tall reading edge, hold for 220ms, without extending on blocked ticks.
284
+ After expiry, all valid deltas use the existing accumulated intent threshold.
285
+ Idle, reversal, lifecycle reset, native child scrolling, narrow layouts and
286
+ keyboard ownership retain their existing paths. No new timer/listener/RAF loop
287
+ or SSR work. This policy supersedes both earlier latch implementations.
288
+
289
+ **Tradeoff:** short momentum tails remain suppressed. Long momentum may count
290
+ as continued intent after the deadline. Preventing every possible momentum
291
+ advance without a reliable device-phase signal risks the same indefinite trap.
292
+
293
+ **Tests:** `node --experimental-strip-types --test tests/ScrollRevealPager.test.ts`
294
+ passes all nine tests. The same suite against pre-change 1.5.39 source fails six
295
+ cases, including the exact 10px-edge lock. Covers varying large, small and
296
+ fractional streams, bounded hold, short tail, tiny tall-section range, reversal,
297
+ idle, line mode, reduced motion, Space/repeats, teardown, nested scrollers,
298
+ hidden stops, disabled layouts, and native/modified input cancellation.
299
+ `git diff --check` passes. No production build/typecheck was run.
300
+
301
+ Temporary landing diagnostics and source alias were removed after verification;
302
+ the normal package integration is unchanged. The corrected VLite source must
303
+ be released and installed to replace 1.5.39. No package artifacts were edited.
@@ -106,13 +106,15 @@ scrolling is native. Touch input is always native; no touchmove listener is used
106
106
  Short sections align their top after the scroller's effective `scroll-padding-top`.
107
107
  - Tall sections retain native progressive wheel scrolling between their start and
108
108
  end. A gesture reaching an edge is held there; fresh intent advances onward.
109
- - A transition owns one destination. Continued momentum cannot queue more pages.
110
- An idle gap of at least 220ms starts fresh same-direction intent. Continuous
111
- wheel input can also resume after movement settles: at least 160ms of
112
- non-decreasing deltas of 12px or more is treated as sustained intent. Falling
113
- or tiny momentum deltas reset that window. Opposite deliberate input can
114
- reverse a movement immediately. Wheel events do not identify the physical
115
- input device; a sustained flat momentum stream can satisfy this same rule.
109
+ - A transition owns one destination; input during movement cannot queue pages.
110
+ After arriving (or reaching a tall-section edge), same-direction wheel input
111
+ is held for at most 220ms. Events during this pause do not extend it. Then
112
+ small, fractional and varying deltas accumulate toward the normal 12px intent
113
+ threshold. A 220ms idle gap also clears the hold; deliberate opposite input
114
+ can reverse immediately. No cursor movement is required to resume.
115
+ A short momentum tail is absorbed by the pause. Wheel events cannot reliably
116
+ distinguish continued finger input from long momentum: a long tail may advance
117
+ again after the pause, which avoids indefinitely trapping genuine input.
116
118
  - PageDown, PageUp, Space and Shift+Space page between stops, using viewport-sized
117
119
  reading steps inside tall sections. Held-key repeats do not chain transitions.
118
120
  Form controls, links, contenteditable, ARIA widgets and focusable controls retain
@@ -2,8 +2,8 @@
2
2
  "managedBy": "vlite3",
3
3
  "manifestVersion": 1,
4
4
  "packageName": "vlite3",
5
- "packageVersion": "1.5.39",
6
- "generatedAt": "2026-11-02T13:21:23.516Z",
5
+ "packageVersion": "1.5.40",
6
+ "generatedAt": "2026-11-02T13:43:24.840Z",
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": "0fdb9198227af2dd4f1b5893c72c645839cf68ed64770ed9ebb1296004c99057"
246
+ "sha256": "d0e84d91047cdae2f479fc93c5ad63a6c079d7d23ce328da94d348713a9d4938"
247
247
  },
248
248
  "components/seo-provider.md": {
249
249
  "sha256": "ee4ef9991f025ddc6e6a11180d9acce6bbe87d86d5e746da70164260734b983e"
@@ -336,7 +336,7 @@
336
336
  "sha256": "fab494fc25be71b9187df14d72ed4f0c3624a05c954f75656a8faf6530438ffe"
337
337
  },
338
338
  "ScrollRevealMigrationAudit.md": {
339
- "sha256": "b1b10e916231f48d33b25d929b193108b3a0f4b9d683b4523319fde7510cb793"
339
+ "sha256": "115099e4c2fd179fef86430f5c376b8a58f1f0dab5d7c493a6e0c77485845268"
340
340
  },
341
341
  "utilities/search.md": {
342
342
  "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.39",
6
+ "version": "1.5.40",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",