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.
- package/components/CategoryManager/CategoryManager2.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
- package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +2 -2
- package/directives/ScrollReveal/ScrollRevealPager.d.ts +2 -0
- package/directives/ScrollReveal/ScrollRevealPager.js +50 -37
- package/docs/ScrollRevealReleaseAudit.md +31 -0
- package/docs/components/scroll-reveal.md +10 -5
- package/docs-manifest.json +4 -4
- package/package.json +1 -1
- /package/components/Dropdown/{DropdownMenu3.vue.js → DropdownMenu2.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover2.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar2.vue.js} +0 -0
|
@@ -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 "./
|
|
4
|
-
/* empty css
|
|
5
|
-
import de from "./
|
|
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({
|
|
@@ -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
|
|
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((
|
|
42
|
-
].join(", "), o = 2,
|
|
43
|
-
class
|
|
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(
|
|
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 = (
|
|
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
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
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
|
|
111
|
-
return
|
|
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,
|
|
138
|
+
let n, l, a;
|
|
134
139
|
for (const m of i)
|
|
135
|
-
if (m.start <= s + o && (n = m), m.start < s - o && (
|
|
136
|
-
|
|
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
|
|
140
|
-
let
|
|
141
|
-
if (e &&
|
|
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:
|
|
148
|
+
position: d,
|
|
144
149
|
element: c?.element,
|
|
145
|
-
progress: c && c.end > c.start ? (
|
|
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
|
|
156
|
-
(!t.element ||
|
|
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
|
|
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 !==
|
|
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, (
|
|
169
|
-
this.context.write(i + (t.position - i) * (1 - (1 - d) ** 3)), d < 1 ? s.frame = requestAnimationFrame(
|
|
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(
|
|
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
|
|
198
|
-
if (
|
|
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) <
|
|
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
|
|
209
|
-
if (
|
|
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
|
|
212
|
-
if (!
|
|
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(
|
|
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
|
-
|
|
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
|
|
109
|
-
|
|
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
|
|
112
|
-
|
|
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.
|
|
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
|
|
package/docs-manifest.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"managedBy": "vlite3",
|
|
3
3
|
"manifestVersion": 1,
|
|
4
4
|
"packageName": "vlite3",
|
|
5
|
-
"packageVersion": "1.5.
|
|
6
|
-
"generatedAt": "2026-11-02T14:
|
|
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": "
|
|
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": "
|
|
342
|
+
"sha256": "5417f062679d541bbd3148f85eb31d2c4c1bbfc0328a8ce5e41e6b9f0ba1ec1d"
|
|
343
343
|
},
|
|
344
344
|
"utilities/search.md": {
|
|
345
345
|
"sha256": "a3e597b3d0a8da8e4ab3a8537231b19149cda48f204ad5cce36860988341e281"
|
package/package.json
CHANGED
|
File without changes
|
/package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover2.vue.js}
RENAMED
|
File without changes
|
|
File without changes
|