feat(core): l-section background video + button hide flags (release 0.15.5)#5
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
webentor-core 0.15.5
Two additive, backward-compatible features, released as a patch within
^0.15.l-sectionbackground video<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).IntersectionObserver— core does not depend on@alpinejs/intersect), Lazyload background image (loading="lazy"; off by default since section backgrounds are usually the LCP element).playsinlineon the existing.w-section-imglayer; source held indata-src(preload="none") so nothing is fetched until the newl-section/script.tsdecides. The decision re-runs on a throttledresizeso a viewport starting on mobile still loads the video after crossing to desktop.video,disableVideoOnMobile,lazyloadVideo,lazyloadImage.WebentorButtonhide flagshideIconandhideHtmlElementprops (default off), matching the existinghideVariant/hideSize/hideLinkpattern, for embeds that only need title + variant.Verification
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. Defaulte-buttonpopover still shows every control.pnpm check:versionsandpnpm test-releasepass (npm publish + split + tag dry-runs green forcore-v0.15.5).Publishing (
@webikon/webentor-core@0.15.5) and thecore-v0.15.5tag/split fire automatically on merge tomainperrelease.yml.https://claude.ai/code/session_01Xf5s2M4Ax5WwBs3KBVbtze