Skip to content

feat(core): l-section background video + button hide flags (release 0.15.5)#5

Merged
palicko merged 2 commits into
mainfrom
release/core-0.15.5
Jul 15, 2026
Merged

feat(core): l-section background video + button hide flags (release 0.15.5)#5
palicko merged 2 commits into
mainfrom
release/core-0.15.5

Conversation

@palicko

@palicko palicko commented Jul 15, 2026

Copy link
Copy Markdown
Member

webentor-core 0.15.5

Two additive, backward-compatible features, released as a patch within ^0.15.

l-section background video

  • New background <video> in the Section block's "Background Image Settings" panel; the image stays as the fallback (shown while the video loads and on mobile when disabled).
  • Toggles: Disable video on mobile (≤480px — video neither shown nor fetched), Lazyload video (loads only when the section scrolls into view, via a vanilla IntersectionObserver — core does not depend on @alpinejs/intersect), Lazyload background image (loading="lazy"; off by default since section backgrounds are usually the LCP element).
  • Video renders muted/looped/autoplay/playsinline on the existing .w-section-img layer; source held in data-src (preload="none") so nothing is fetched until the new l-section/script.ts decides. The decision re-runs on a throttled resize so a viewport starting on mobile still loads the video after crossing to desktop.
  • New attrs: video, disableVideoOnMobile, lazyloadVideo, lazyloadImage.

WebentorButton hide flags

  • Adds hideIcon and hideHtmlElement props (default off), matching the existing hideVariant / hideSize / hideLink pattern, for embeds that only need title + variant.

Verification

  • Built + verified live on the in-repo test-site (Playwright): desktop loads/plays the video; mobile (≤480px) never fetches it and shows the image; lazyload defers until in-view; mobile→desktop resize loads it; repeated resizes stay idempotent (1 request). Editor shows the controls + video preview with 0 block-validation warnings. Default e-button popover still shows every control.
  • pnpm check:versions and pnpm test-release pass (npm publish + split + tag dry-runs green for core-v0.15.5).

Publishing (@webikon/webentor-core@0.15.5) and the core-v0.15.5 tag/split fire automatically on merge to main per release.yml.

https://claude.ai/code/session_01Xf5s2M4Ax5WwBs3KBVbtze

palicko added 2 commits July 14, 2026 13:37
…elease 0.15.5

- l-section: background <video> with image fallback, per-toggle mobile disable
  (≤480px, not shown/fetched), lazyload video (IntersectionObserver, no Alpine
  dep) re-evaluated on throttled resize, and lazyload toggle for the bg image
  (eager by default). New attrs: video, disableVideoOnMobile, lazyloadVideo,
  lazyloadImage. New l-section/script.ts frontend chunk.
- WebentorButton: add hideIcon and hideHtmlElement props (default off), matching
  the existing hideVariant/hideSize/hideLink pattern.
- Rebuilt public/build bundle; bumped core npm+composer to 0.15.5; changelog +
  compatibility-matrix row.

Claude-Session: https://claude.ai/code/session_01Xf5s2M4Ax5WwBs3KBVbtze
@palicko
palicko merged commit 6d9b80f into main Jul 15, 2026
8 checks passed
@palicko
palicko deleted the release/core-0.15.5 branch July 15, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant