vlite3 1.5.37 → 1.5.39

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.
Files changed (31) hide show
  1. package/components/Carousel/Carousel.vue.js +2 -2
  2. package/components/Carousel/Carousel2.vue.js +38 -31
  3. package/components/CategoryManager/CategoryManager2.vue.js +2 -2
  4. package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
  5. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem2.vue.js} +1 -1
  6. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  7. package/components/NavbarCommandPalette.vue.js +1 -1
  8. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  9. package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
  10. package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
  11. package/components/Screen/ScreenFilter.vue.js +2 -2
  12. package/directives/ScrollReveal/ScrollRevealContainer.d.ts +43 -0
  13. package/directives/ScrollReveal/ScrollRevealContainer.js +88 -0
  14. package/directives/ScrollReveal/ScrollRevealMotion.d.ts +16 -0
  15. package/directives/ScrollReveal/ScrollRevealMotion.js +91 -0
  16. package/directives/ScrollReveal/ScrollRevealOptions.d.ts +19 -0
  17. package/directives/ScrollReveal/ScrollRevealOptions.js +34 -0
  18. package/directives/ScrollReveal/ScrollRevealPager.d.ts +40 -0
  19. package/directives/ScrollReveal/ScrollRevealPager.js +252 -0
  20. package/directives/vScrollReveal.d.ts +5 -2
  21. package/directives/vScrollReveal.js +18 -47
  22. package/docs/ScrollRevealMigrationAudit.md +260 -0
  23. package/docs/component-index.md +4 -2
  24. package/docs/components/carousel.md +1 -1
  25. package/docs/components/scroll-reveal.md +182 -0
  26. package/docs-manifest.json +10 -4
  27. package/package.json +1 -3
  28. package/style.css +7 -1
  29. /package/components/Dropdown/{DropdownMenu3.vue.js → DropdownMenu2.vue.js} +0 -0
  30. /package/components/RichTextEditor/{RichTextLinkPopover2.vue.js → RichTextLinkPopover.vue.js} +0 -0
  31. /package/components/RichTextEditor/{RichTextToolbar2.vue.js → RichTextToolbar.vue.js} +0 -0
@@ -0,0 +1,252 @@
1
+ const g = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", b = [
2
+ "input",
3
+ "textarea",
4
+ "select",
5
+ "button",
6
+ "a[href]",
7
+ "summary",
8
+ "video",
9
+ "audio",
10
+ "iframe",
11
+ '[contenteditable]:not([contenteditable="false"])',
12
+ ...[
13
+ "button",
14
+ "slider",
15
+ "tab",
16
+ "tablist",
17
+ "menu",
18
+ "menuitem",
19
+ "menuitemcheckbox",
20
+ "menuitemradio",
21
+ "listbox",
22
+ "option",
23
+ "textbox",
24
+ "combobox",
25
+ "spinbutton",
26
+ "tree",
27
+ "treegrid",
28
+ "treeitem",
29
+ "grid",
30
+ "gridcell",
31
+ "columnheader",
32
+ "rowheader",
33
+ "checkbox",
34
+ "radio",
35
+ "radiogroup",
36
+ "switch",
37
+ "link",
38
+ "searchbox",
39
+ "scrollbar",
40
+ "application"
41
+ ].map((f) => `[role~="${f}"]`)
42
+ ].join(", "), o = 2, p = 12, x = 220, w = 160;
43
+ class y {
44
+ sections = /* @__PURE__ */ new Set();
45
+ desktop = window.matchMedia(g);
46
+ listeners;
47
+ movement;
48
+ lastWheel = -1 / 0;
49
+ direction = 0;
50
+ distance = 0;
51
+ consumed = !1;
52
+ sustainedSince;
53
+ lastMagnitude = 0;
54
+ readingElement;
55
+ context;
56
+ constructor(t) {
57
+ this.context = t, this.desktop.addEventListener("change", this.configure);
58
+ }
59
+ register(t) {
60
+ this.sections.add(t), this.configure();
61
+ }
62
+ unregister(t) {
63
+ this.sections.delete(t), this.configure();
64
+ }
65
+ configure = () => {
66
+ this.reset();
67
+ const t = this.sections.size >= 2 && this.desktop.matches;
68
+ if (!!this.listeners === t || (this.listeners?.abort(), this.listeners = void 0, !t)) return;
69
+ this.listeners = new AbortController();
70
+ const e = this.context.documentRoot ? window : this.context.container, i = { capture: !0, signal: this.listeners.signal };
71
+ e.addEventListener("wheel", this.onWheel, { ...i, passive: !1 }), e.addEventListener("keydown", this.onKeydown, i);
72
+ };
73
+ 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;
75
+ };
76
+ cancel() {
77
+ this.movement && (cancelAnimationFrame(this.movement.frame), this.movement = void 0);
78
+ }
79
+ geometry() {
80
+ const t = this.context.viewport();
81
+ return {
82
+ from: this.context.position(),
83
+ top: t.top,
84
+ bottom: t.bottom,
85
+ padding: this.context.padding(),
86
+ limit: this.context.limit()
87
+ };
88
+ }
89
+ measureSection(t, e = this.geometry()) {
90
+ if (!t.isConnected) return;
91
+ const i = t.getBoundingClientRect();
92
+ if (!i.height || !i.width) return;
93
+ const s = (a) => Math.max(0, Math.min(a, e.limit)), n = s(i.top - e.top + e.from - e.padding);
94
+ return { element: t, start: n, end: s(Math.max(n, i.bottom - e.bottom + e.from)) };
95
+ }
96
+ measure() {
97
+ const t = this.geometry();
98
+ return Array.from(this.sections).map((e) => this.measureSection(e, t)).filter((e) => !!e).sort((e, i) => e.start - i.start);
99
+ }
100
+ hasPagingStops() {
101
+ const t = this.geometry();
102
+ let e = 0;
103
+ for (const i of this.sections)
104
+ if (this.measureSection(i, t) && ++e === 2) return !0;
105
+ return !1;
106
+ }
107
+ readWheel(t, e, i, s, n = !1) {
108
+ const a = this.context.position();
109
+ 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;
113
+ }
114
+ /** Child scroll owners win, including at a contained overscroll boundary. */
115
+ nestedOwns(t, e) {
116
+ for (const i of t.composedPath()) {
117
+ if (i === this.context.container || i === document.body || i === document.documentElement) break;
118
+ if (!(i instanceof HTMLElement)) continue;
119
+ const s = getComputedStyle(i);
120
+ if (!/^(auto|scroll|overlay)$/.test(s.overflowY)) continue;
121
+ const n = e > 0 ? i.scrollTop + i.clientHeight < i.scrollHeight - 1 : i.scrollTop > 0;
122
+ if (i.scrollHeight > i.clientHeight && n || /^(contain|none)$/.test(s.overscrollBehaviorY)) return !0;
123
+ }
124
+ return !1;
125
+ }
126
+ enabled() {
127
+ if (document.hidden || !this.desktop.matches) return !1;
128
+ const { container: t, documentRoot: e } = this.context;
129
+ return ![t, ...e ? [document.body] : []].some((i) => /^(hidden|clip)$/.test(getComputedStyle(i).overflowY));
130
+ }
131
+ destination(t, e, i) {
132
+ const s = this.context.position();
133
+ let n, a, r;
134
+ 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;
137
+ break;
138
+ }
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))
142
+ return {
143
+ 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
147
+ };
148
+ }
149
+ move(t, e) {
150
+ this.cancel(), this.readingElement = void 0;
151
+ const i = this.context.position(), s = { frame: 0, direction: e };
152
+ this.movement = s;
153
+ const n = () => {
154
+ 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;
157
+ };
158
+ if (this.context.reducedMotion.matches) {
159
+ this.context.write(t.position), n();
160
+ return;
161
+ }
162
+ const a = window.location.href, r = performance.now(), d = (c) => {
163
+ if (this.movement !== s) return;
164
+ if (document.hidden || window.location.href !== a || t.element && !t.element.isConnected) {
165
+ this.reset();
166
+ return;
167
+ }
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();
170
+ };
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);
180
+ }
181
+ onWheel = (t) => {
182
+ 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)) {
183
+ this.movement && this.reset();
184
+ return;
185
+ }
186
+ 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;
189
+ return;
190
+ }
191
+ if (!this.hasPagingStops()) {
192
+ this.reset();
193
+ return;
194
+ }
195
+ 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;
202
+ }
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;
205
+ return;
206
+ }
207
+ if (!this.movement && this.readingElement) {
208
+ const r = this.measureSection(this.readingElement);
209
+ if (r && this.readWheel(r, e, t.deltaY * s, t)) return;
210
+ this.readingElement = void 0;
211
+ }
212
+ if (Math.sign(this.distance) !== e && (this.distance = 0), this.distance += t.deltaY * s, Math.abs(this.distance) < p) {
213
+ t.preventDefault();
214
+ return;
215
+ }
216
+ const n = this.measure();
217
+ if (n.length < 2) return;
218
+ 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;
221
+ }
222
+ const a = this.destination(e, !1, n);
223
+ if (!a) {
224
+ this.distance = 0;
225
+ return;
226
+ }
227
+ t.preventDefault(), this.direction = e, this.distance = 0, this.consumed = !0, this.move(a, e);
228
+ };
229
+ onKeydown = (t) => {
230
+ if (this.context.syncNavigation(), !this.enabled() || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey) return;
231
+ const e = t.key === "PageDown" || t.key === " " && !t.shiftKey ? 1 : t.key === "PageUp" || t.key === " " && t.shiftKey ? -1 : 0;
232
+ if (!e) {
233
+ ["ArrowUp", "ArrowDown", "Home", "End", "Tab", "Escape"].includes(t.key) && this.reset();
234
+ return;
235
+ }
236
+ for (const n of t.composedPath()) {
237
+ if (n === this.context.container) break;
238
+ if (n instanceof Element && (n.matches(b) || n.hasAttribute("tabindex") && Number(n.getAttribute("tabindex")) >= 0)) return;
239
+ }
240
+ if (this.nestedOwns(t, e)) return;
241
+ const i = this.measure();
242
+ if (i.length < 2) return;
243
+ const s = this.destination(e, !0, i);
244
+ s && (t.preventDefault(), !(t.repeat || this.movement?.direction === e) && (this.reset(), this.move(s, e)));
245
+ };
246
+ destroy() {
247
+ this.reset(), this.listeners?.abort(), this.desktop.removeEventListener("change", this.configure), this.sections.clear();
248
+ }
249
+ }
250
+ export {
251
+ y as ScrollRevealPager
252
+ };
@@ -1,2 +1,5 @@
1
- import { Directive } from 'vue';
2
- export declare const vScrollReveal: Directive;
1
+ import { ObjectDirective } from 'vue';
2
+ import { ScrollRevealOptions } from './ScrollReveal/ScrollRevealOptions';
3
+ export type { ScrollRevealOptions } from './ScrollReveal/ScrollRevealOptions';
4
+ /** Plain binding reveals content; :snap only registers a semantic page stop. */
5
+ export declare const vScrollReveal: ObjectDirective<HTMLElement, ScrollRevealOptions | undefined>;
@@ -1,52 +1,23 @@
1
- import { resolveModuleRuntime as f } from "../utils/UtilsModuleInterop.js";
2
- const s = /* @__PURE__ */ new WeakMap(), i = {
3
- distance: "50px",
4
- duration: 800,
5
- delay: 200,
6
- easing: "cubic-bezier(0.5, 0, 0, 1)",
7
- origin: "bottom",
8
- interval: 0,
9
- opacity: 0,
10
- scale: 1,
11
- cleanup: !1,
12
- mobile: !0,
13
- reset: !1,
14
- // true = animations repeat on scroll up/down
15
- useDelay: "always",
16
- viewFactor: 0
17
- };
18
- function a(e) {
19
- if (!e) return window;
20
- if (e === document.body || e === document.documentElement)
21
- return document.documentElement;
22
- const t = getComputedStyle(e).overflowY;
23
- return (t === "auto" || t === "scroll" || t === "overlay") && e.scrollHeight > e.clientHeight ? e : a(e.parentElement);
1
+ import { resolveScrollRevealContainer as u, getScrollRevealContainer as f } from "./ScrollReveal/ScrollRevealContainer.js";
2
+ import { normalizeScrollReveal as c } from "./ScrollReveal/ScrollRevealOptions.js";
3
+ const n = /* @__PURE__ */ new WeakMap();
4
+ function r(o) {
5
+ n.get(o)?.unregister(o), n.delete(o);
6
+ }
7
+ function i(o, e, a) {
8
+ if (typeof window > "u" || typeof document > "u" || typeof window.matchMedia != "function" || typeof AbortController > "u" || typeof requestAnimationFrame != "function" || typeof cancelAnimationFrame != "function") return;
9
+ let t = n.get(o);
10
+ t && t.context.container !== u(o) && (r(o), t = void 0), t ??= f(o), n.set(o, t), t.register(o, { snap: a === "snap", options: c(e) });
24
11
  }
25
12
  const d = {
26
- mounted: async (e, n) => {
27
- if (typeof window > "u") return;
28
- const t = await import("scrollreveal"), o = f(
29
- t,
30
- (u) => typeof u == "function"
31
- );
32
- if (!o) return;
33
- const l = a(e.parentElement);
34
- let r = s.get(l);
35
- r || (r = o({
36
- // If container is window/html, ScrollReveal expects 'document.documentElement' usually,
37
- // but 'container' option defaults to window.document.documentElement.
38
- // If it's a specific div, we pass that div.
39
- container: l === window ? document.documentElement : l
40
- }), s.set(l, r));
41
- const c = Object.assign({}, i, n.value);
42
- e.classList.add("v-scroll-reveal"), r.reveal(e, c);
43
- },
44
- updated: (e, n) => {
45
- if (!(typeof window > "u") && JSON.stringify(n.value) !== JSON.stringify(n.oldValue)) {
46
- const t = a(e.parentElement), o = s.get(t);
47
- o && o.reveal(e, Object.assign({}, i, n.value));
48
- }
49
- }
13
+ // SSR must emit exactly the authored attributes for both reveal and :snap.
14
+ // No DOM access, hidden styles, IDs or request-specific registrations.
15
+ getSSRProps: () => ({}),
16
+ mounted: (o, e) => i(o, e.value, e.arg),
17
+ updated: (o, e) => i(o, e.value, e.arg),
18
+ // Stop route-owned movement before DOM removal, with idempotent unmounted cleanup.
19
+ beforeUnmount: r,
20
+ unmounted: r
50
21
  };
51
22
  export {
52
23
  d as vScrollReveal
@@ -0,0 +1,260 @@
1
+ # Native scroll migration and REA audit
2
+
3
+ Date: 2026-11-02. Status: source implementation complete; runtime acceptance and
4
+ package delivery remain unverified. This audit does not claim measured frame rate,
5
+ heap behavior, browser compatibility, production bundle size or release readiness.
6
+
7
+ ## Scope and architecture
8
+
9
+ Repositories:
10
+
11
+ - `/Users/safdar/Projects/vlite3`
12
+ - `/Users/safdar/Playground/inna-landing-page`
13
+
14
+ The existing public directive remains the only application-facing scroll API.
15
+ Its internal per-container controller replaces both the external runtime wrapper
16
+ and the landing application's separate reveal/paging owners. This boundary is
17
+ required to share one resource lifetime while keeping reveal and navigation state
18
+ independent; it is not an application state layer or an additional public pattern.
19
+
20
+ Implementation ownership:
21
+
22
+ | Source | Responsibility |
23
+ | --- | --- |
24
+ | `src/directives/vScrollReveal.ts` | Public directive, mount/update, reparenting and synchronous/idempotent teardown. |
25
+ | `src/directives/ScrollReveal/ScrollRevealOptions.ts` | Supported primitive options, validation and comparison. |
26
+ | `src/directives/ScrollReveal/ScrollRevealContainer.ts` | WeakMap ownership, scroll geometry, resource policy, focus/hash/history and shared lifetime. |
27
+ | `src/directives/ScrollReveal/ScrollRevealMotion.ts` | One observer, visible resting DOM, reset and native keyframe effects. |
28
+ | `src/directives/ScrollReveal/ScrollRevealPager.ts` | Explicit stops, wheel intent, native tall reading, keyboard paging and one cancellable movement. |
29
+ | `src/components/Carousel/Carousel.vue` | Horizontal carousel input boundary; vertical/zoom input retains page/browser ownership. |
30
+
31
+ `src/index.ts` still exports `vScrollReveal`; the playground's existing global
32
+ registration remains intact. Public options, behavior differences and examples
33
+ are documented in `docs/components/scroll-reveal.md`. The Carousel documentation
34
+ also explains its input boundary.
35
+
36
+ The landing site registers the directive once in `src/main.ts`, replaces all ten
37
+ editorial motion owners and the homepage owner, and removes the layout's current
38
+ pager initialization. Semantic sections register stops explicitly; shared
39
+ `PublicSection`, FAQ, Download, document details and screenshot carousel roots own
40
+ their applicable stops. Capture showcase list panels register individually; their
41
+ outer grouping section does not register a competing stop. Nested hero feature
42
+ cards stay part of their parent hero; the standalone screenshot-page feature grid
43
+ registers explicitly at its call site.
44
+
45
+ The four old scroll/motion composables and Lenis-specific CSS/manifest dependency
46
+ are removed. The wheel workaround was actually in `PublicScreenshotCarousel`,
47
+ which `PublicToolCarousel` wraps; the shared implementation no longer clones or
48
+ redispatches wheel events.
49
+
50
+ ## Shipped-artifact reverse engineering
51
+
52
+ Method: the requested `reverse-engineer-anything` skill, REA's inert JavaScript
53
+ artifact analyzer and focused reads of the actual installed package bytes. No
54
+ artifact bootstrap or browser code was executed. Installed dependencies were
55
+ read only and were not patched. Their compiled code was inspected specifically
56
+ for the user's requested package investigation.
57
+
58
+ Evidence identity:
59
+
60
+ | Target | Identity / retained REA evidence |
61
+ | --- | --- |
62
+ | ScrollReveal package | Version `4.0.9`; `/Users/safdar/Projects/vlite3/node_modules/scrollreveal`; directory SHA-256 `aeb731381bb62232f304de6fcad7df182b2c9f68b431035e76780213738ddc9a`; parent `ev_2f3c34df0c1ca7197243ef5f6b5382262d05b80021ac277264d6f160c5865bb0`. |
63
+ | ScrollReveal ESM | `dist/scrollreveal.es.js`; SHA-256 `f81670b181fc81f8444ab0e460685136a90ac2ccc87a68c8394a596204641b49`; asset view `ev_73c6d7a266d8762ce239ae46d17b4daee3d2eab2dd87d883176702ed0b35b5f3`. |
64
+ | Installed VLite directives | Version `1.5.37`; `/Users/safdar/Playground/inna-landing-page/node_modules/vlite3/directives`; directory SHA-256 `43a6ffbfd6fd71412fbc16b2c3279c93cac91b8539b458d32c8f6afd1befd5ce`; parent `ev_b59bb4822e6e030ab5fd7e4755e765a296a7a181e73f1c28bc1a319a2d477f92`. |
65
+ | Installed directive bytes | `vScrollReveal.js`; SHA-256 `06422bdb8b7b9f9717a3d7796df6faab47ed4162c46717a27286f8de9e51c2fa`; module page `ev_1189780fb32cfaa487b18dc08d6a540a0ca5ad509359580266c968d3b5844c35`. |
66
+
67
+ The complete eight-record REA evidence bundle is retained at
68
+ `/private/tmp/ScrollRevealNativeMigration-REA-20261102.json` (19,340,511 bytes).
69
+ Directory artifact inventories were complete within their selected roots; semantic
70
+ coverage remains partial/unknown (3,470 ScrollReveal and 138 directive semantic
71
+ unknowns). In particular, imports outside the selected directives directory were
72
+ not analyzed as part of that artifact. No claim here treats static syntax as an
73
+ observed execution trace.
74
+
75
+ Observed old behavior, with installed ESM line references:
76
+
77
+ 1. **The old per-container cache is not true runtime isolation.** The wrapper
78
+ creates/caches objects per container, but ScrollReveal's constructor returns a
79
+ module singleton and its `defaults` getter reads module-level `config`
80
+ (`scrollreveal.es.js:1090–1174`). A later container configuration can therefore
81
+ affect defaults used by an earlier cached reference. The replacement keys real,
82
+ independent coordinators by actual scroller.
83
+ 2. **The shipped directive has no unmount hook.** It awaits a runtime import,
84
+ then registers the element, without an obsolete-mount check. Its updates compare
85
+ arbitrary binding objects using `JSON.stringify` (`vScrollReveal.js:28–56`).
86
+ The replacement has no asynchronous module acquisition and unregisters before
87
+ DOM removal and again idempotently on unmount.
88
+ 3. **ScrollReveal's scroll work scans its element store.** `delegate`
89
+ (`scrollreveal.es.js:1028–1081`) schedules RAF work per delegated event, visits
90
+ every stored element for visibility and then visits them for animation logic.
91
+ Geometry is cached until init/resize or missing geometry; it does not measure
92
+ every element's DOM rectangle on every scroll frame. It also does not run an
93
+ unconditional idle RAF loop. The replacement uses observer delivery for reveals
94
+ and fresh geometry for stop-navigation decisions.
95
+ 4. **Styles and document state are mutated by the old runtime.** `success`
96
+ (`:61–74`) adds a root class and assigns body height; `initialize` (`:536–575`)
97
+ writes hidden/visible inline styles before dispatching reveal logic. The new
98
+ system never changes section heights/layout or hides pending HTML.
99
+ 5. **Cleanup exists in ScrollReveal but the wrapper does not call it on unmount.**
100
+ `clean` (`:439–468`) can remove element state and a callback timer, while
101
+ `destroy` (`:470–498`) removes scroll/resize listeners and clears its store.
102
+ With the wrapper's default `cleanup:false`, registrations/history can outlive
103
+ removed Vue elements. The replacement removes element-owned work and destroys
104
+ container resources at the final unregistration.
105
+ 6. **Important option semantics differ deliberately.** Old `onload` means the
106
+ engine's pristine initialization (`:578–586`), while the new documented meaning
107
+ is document loading. Old `viewFactor` adjusts geometric edge bounds
108
+ (`:995–1025`); the new API documents a visible-area fraction rounded to a
109
+ percentage and limited for oversized elements. Old interval sequences are
110
+ created per `reveal()` call (`:786–797`), so this wrapper's one-element calls
111
+ cannot form a useful shared multi-element sequence; the replacement staggers
112
+ observer-delivery batches. Reset now requires fully leaving, and cleanup
113
+ releases effects without discarding mounted-lifetime seen state. These changes
114
+ are stated in public documentation, rather than silently pretending exact
115
+ third-party equivalence.
116
+ 7. **Zero scale needs care.** The old implementation substitutes a small nonzero
117
+ scale to avoid a singular transform (`:307–325`). The replacement likewise
118
+ normalizes the animation's zero-scale keyframe without altering the option.
119
+
120
+ Static sizes observed: ScrollReveal's ESM file is 31,312 bytes, its minified UMD
121
+ file is 16,613 bytes, and the installed directive is 1,665 bytes. These are raw
122
+ individual artifact bytes, not comparative production/gzip bundle measurements;
123
+ the new library has not been built.
124
+
125
+ ## Final source audit
126
+
127
+ The following are source-reviewed properties, not runtime passes:
128
+
129
+ | Area | Source evidence / handling |
130
+ | --- | --- |
131
+ | Ownership / DRY | One WeakMap coordinator per scroller; distinct reveal and paging registries. No application composable, duplicated runtime or second public directive. |
132
+ | SSR / failed enhancement | Browser globals are accessed only inside mounted-time construction/functions. Authored HTML stays visible; missing observer/animation support skips reveal enhancement. |
133
+ | Options | Primitive normalization; no object serialization; invalid values default; existing seen/entered flags survive option updates. |
134
+ | Reveal reset | Fully left elements can enter again in either direction; entrance transforms cannot repeatedly cancel/restart their own animation. Focus cancels an effect synchronously. |
135
+ | Motion / resources | Reduced motion, Save Data, 2G, low reported CPU/memory and document visibility suppress decoration. Section navigation remains separate and reduced motion uses immediate positioning. |
136
+ | Image failure | Only an entering area's images are considered; missing/failed images skip that entrance without waiting, hidden styles or global image decoding. |
137
+ | Wheel / concurrency | Intent accumulation, one active destination, no transition queue, direction reversal, consumed momentum after arrival and after input during a keyboard/other glide. |
138
+ | Tall sections | Native progressive reading; buffered tiny ticks cannot cross an unresolved reading boundary; a reached edge holds the gesture. |
139
+ | Nested areas / carousel | Composed-path checks honor child scroll capacity and overscroll containment. Horizontal gestures remain with the carousel; vertical and modified input cannot reach its underlying wheel handler. |
140
+ | Keyboard / focus | PageUp/PageDown/Space/Shift+Space outside interactive native/ARIA/focusable controls. No held-repeat chaining; other navigation keys cancel movement and remain native. |
141
+ | Dynamic layout | No permanent pixel-position cache. A reading section is remeasured alone; deliberate page decisions measure the current stop registry; settlement remeasures only the original destination. |
142
+ | Hot-path work | One reveal observer per container, one eligible wheel listener, one eligible keyboard listener; no paging listeners with fewer than two registered stops or on narrow/coarse layouts. Full registry measurement is behind intent, never in the animation loop. |
143
+ | RAF / lifecycle | Only active movement schedules RAF. Pointer/touch, focus, resize, hidden state, history/pageshow/pagehide, URL changes and unmount invalidate stale work. A frame checks URL/target lifetime before writing. |
144
+ | Data / security / scale | Client-local DOM enhancement, no network/API/data persistence or new history entries. Registries are bounded by mounted directive elements and emptied on teardown. No server-side fan-out or per-user backend work is added. |
145
+ | Content / layout | Source comparison of all 30 changed landing Vue files found identical style blocks and identical template content after removing only migrated scroll/ref attributes. Navbar scroll padding is preserved. |
146
+
147
+ Review-driven corrections included upward reset, reset option updates, transform
148
+ intersection loops, zero scale, in-flight wheel momentum latching, tiny-tick tall
149
+ boundaries, complete interactive role exclusions and avoiding full stop-registry
150
+ measurement during reading/settlement. An independent source review covered the
151
+ new native controllers while the owning investigation reviewed shipped packages.
152
+
153
+ Checks performed:
154
+
155
+ - `git diff --check` in both repositories.
156
+ - Focused source/manifest searches: no remaining old landing scroll owners,
157
+ custom reveal/section/group attributes or Lenis references in landing source and
158
+ `package.json`; no external ScrollReveal import/runtime/type dependency in the
159
+ VLite directive sources or `package.json`.
160
+ - Public export/global registration review and static comparison of landing
161
+ template/style content.
162
+ - REA artifact inventory/parsing and focused installed implementation review.
163
+
164
+ No builds, dev servers, tests, lint, typechecks, code generation or computer use
165
+ were run. Existing lockfiles and generated files were not edited or regenerated.
166
+
167
+ ## Remaining acceptance and delivery work
168
+
169
+ The landing manifest still declares published `vlite3:^1.5.37`; its installed
170
+ 1.5.37 directive is the old implementation analyzed above. The library changes
171
+ must be built/delivered through the normal package workflow and consumed by the
172
+ landing site before the new behavior can be exercised. No version number was
173
+ invented and no installed dependency was patched. Dependency lockfile
174
+ reconciliation remains part of that authorized package workflow.
175
+
176
+ Runtime acceptance remains open for physical wheel/trackpad momentum and rapid
177
+ reversal, tall reading in supported browsers, nested overscroll, carousel/zoom,
178
+ keyboard/assistive technology, initial hydration, mobile/touch, reduced motion,
179
+ resource-policy changes, missing APIs, failed/late images, route changes during a
180
+ glide, Back/Forward/BFCache, dynamic fonts/resize and repeated mount/unmount leak
181
+ checks. CPU/frame timing, production bytes and low-resource-device smoothness
182
+ require measurement; static analysis cannot establish them. The playground
183
+ contains short/tall/nested examples for that later verification.
184
+
185
+ ## Prepublication review corrections — 2026-11-02
186
+
187
+ All three subsequently reported source findings have been corrected:
188
+
189
+ - Same-direction momentum is held until a 220ms input gap; increased wheel
190
+ strength no longer releases the latch. This applies to reduced-motion instant
191
+ transitions and tall-section edge holds. Opposite intent can still reverse.
192
+ - Reveal refresh marks intersecting reset targets seen and rearms offscreen reset
193
+ targets. Resize, blur and visibility changes no longer consume their next
194
+ upward entrance; prior entrance history remains available to delay semantics.
195
+ - Before consuming wheel input, paging checks for two currently rendered stops.
196
+ The eligibility scan stops at the second usable stop. Fewer stops reset stale
197
+ movement/gesture state and leave even tiny wheel ticks native. This check uses
198
+ current geometry so CSS visibility changes do not depend on Vue updates.
199
+
200
+ Validation: focused source-path review and `git diff --check`; no build, tests,
201
+ typecheck, lint or browser execution. These fixes resolve the reported source
202
+ issues but do not establish runtime/release acceptance.
203
+
204
+ ## SSR/hydration source audit — 2026-11-02
205
+
206
+ Added explicit empty `getSSRProps` so plain and snap bindings emit authored markup
207
+ without browser state, generated IDs or hidden styles. Reviewed the directive's
208
+ import graph: module scope creates only constants/WeakMaps; browser-global class
209
+ fields execute only during client controller construction. Server render does not
210
+ populate these registries, preventing cross-request element/state retention.
211
+
212
+ Reviewed initial visible content, delayed/failed hydration, initial hashes,
213
+ conditional mounts, single-element component roots and unmount cleanup. Added
214
+ preflight checks for missing matchMedia, AbortController and RAF functions before
215
+ resource allocation, and guarded a missing CSS.supports function. Existing
216
+ IntersectionObserver/Web Animations absence continues to leave content visible.
217
+ Removed the obsolete external runtime entry from the Vite build configuration.
218
+
219
+ The landing application's shared setup registers the directive for both server
220
+ and client. Fragment/text-root component directives remain unsupported by Vue's
221
+ normal element-directive contract; public documentation now states this boundary.
222
+ The directive's source safety does not prove SSR safety of unrelated exports or
223
+ external packages loaded by the public package entrypoint.
224
+
225
+ Validation remains source inspection and whitespace checking only. Actual server
226
+ rendering, server/client markup parity, hydration warnings, async/streamed
227
+ hydration, browser restoration and production package imports have not been run.
228
+
229
+
230
+ ## Stationary-pointer wheel regression — 2026-11-02
231
+
232
+ The original silence-only latch could block continuous wheel input indefinitely
233
+ after reaching a stop or tall-section edge. On localhost:4217 at a 1440×900
234
+ desktop viewport, repeated native wheel actions at the same pointer coordinates
235
+ reached scrollY 2922 and then continued to log prevented wheel events without
236
+ progress. Space was not subject to that wheel latch.
237
+
238
+ The pager now permits sustained non-decreasing input (at least 12 normalized
239
+ pixels per event for 160ms) after movement has settled. It retains the 220ms idle
240
+ reset, reversal, no queued movement, and suppression of declining/tiny tails.
241
+ This supersedes the earlier silence-only policy above. No timers, listeners,
242
+ per-frame geometry reads, or landing-page scroll implementation were added.
243
+
244
+ Verification: `node --experimental-strip-types --test tests/ScrollRevealPager.test.ts`
245
+ passes. The regression fails against the original pager specifically at the
246
+ assertion that steady input resumes without idle or pointer movement. Coverage
247
+ includes in-flight suppression, continuous input, declining momentum, reversal,
248
+ idle restart, line-mode normalization, reduced motion, Space, and teardown.
249
+ With a temporary source alias in the landing page, 160 continuous wheel actions
250
+ at (700,500) progressed through multiple sections to scrollY 4802.5; upward
251
+ wheel actions returned to 2648.5, and Space advanced again. Temporary alias and
252
+ logging were removed after the probe. The installed package still needs a new
253
+ release containing this source fix. No production build was performed.
254
+
255
+ Limits: this reproduces the continuous-input lock, not every physical mouse or
256
+ trackpad. Wheel events carry no reliable device/momentum classification; a
257
+ long, flat momentum stream can match sustained intent. Native device feel and
258
+ other browser engines remain unverified. The separate non-cancelable-event
259
+ cancellation path was inspected but not changed because it was not the cause
260
+ of the reproduced lock.
@@ -107,6 +107,7 @@ import { Button, Input, Form } from 'vlite3'
107
107
  | Rating | Core | Star ratings and review summaries | [Rating.md](./components/rating.md) |
108
108
  | RichTextEditor | Advanced | WYSIWYG HTML notes / descriptions | [RichTextEditor.md](./components/rich-text-editor.md) |
109
109
  | Screen | Core | Standard list/CRUD page shell (search, filters, add) | [Screen.md](./components/screen.md) |
110
+ | Scroll Reveal | Directive | Animate elements entering the viewport with automatic scroll-container detection | [scroll-reveal.md](./components/scroll-reveal.md) |
110
111
  | SidebarMenu | Core | Nested app sidebar navigation | [SidebarMenu.md](./components/sidebar-menu.md) |
111
112
  | SidePanel | Core | Slide-over panel for filters/details/forms | [SidePanel.md](./components/side-panel.md) |
112
113
  | Skeleton | Core | Loading placeholders shaped like real UI | [Skeleton.md](./components/skeleton.md) |
@@ -279,6 +280,7 @@ import { Button, Input, Form } from 'vlite3'
279
280
  | **i18n** | Register a translation handler for vlite3 | Multi-language apps | [internationalization.md](./guides/internationalization.md) |
280
281
  | **Search util** | Fast typed `search` / `lazySearch` utilities | Client-side search indexes | [search.md](./utilities/search.md) |
281
282
  | **Draggable** | Vue draggable patterns | Sortable lists, Kanban-like reorder | [draggable.md](./guides/draggable.md) |
283
+ | **Scroll Reveal** | Scroll-triggered reveal directive, options, and demo | Animating content as it enters a scroll viewport | [scroll-reveal.md](./components/scroll-reveal.md) |
282
284
  | **Setup** | Install and configure vlite3 | Starting a new project with vlite3 | [setup.md](./getting-started/setup.md) |
283
285
 
284
286
  ---
@@ -308,8 +310,8 @@ import { Button, Input, Form } from 'vlite3'
308
310
  | Core components | 67 |
309
311
  | Advanced components | 27 |
310
312
  | Guides | 2 |
311
- | Guides, utilities & composables | 9 |
312
- | **Total linked from this index** | **105** |
313
+ | Guides, utilities & composables | 10 |
314
+ | **Total linked from this index** | **106** |
313
315
 
314
316
  # Usage for agents
315
317
  open the file to discover component.
@@ -23,7 +23,7 @@
23
23
  | `loop` | `boolean` | `false` | Infinite loop mode |
24
24
  | `speed` | `number` | `700` | Transition speed in ms |
25
25
  | `easing` | `string` | `'ease'` | CSS easing function |
26
- | `mousewheel` | `boolean` | `true` | Enable scrolling via mousewheel |
26
+ | `mousewheel` | `boolean` | `true` | Enable wheel navigation; horizontal carousels accept horizontal gestures, leaving vertical and modified/zoom gestures native |
27
27
  | `autoFocus` | `boolean` | `false` | Auto focus on mount |
28
28
  | `currentItem` | `number` | `0` | Index of the current item |
29
29
  | `bufferSize` | `number` | `5` | DOM nodes rendered outside view |