@webikon/webentor-core 0.15.5 → 0.15.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Webentor Core Changelog
2
2
 
3
+ ## 0.15.7
4
+
5
+ - **Pattern Overrides support for Webentor blocks (WordPress 7.0).** WP 7.0 opened Pattern Overrides to custom blocks via a single server-side opt-in, so `e-button` (`button`), `e-accordion` and `e-tab-container` (`title`), `e-image` (`imgId`, `link`), `e-svg` (`imgId`), `e-icon-picker` (`icon`) and `e-gallery` (`images`) now expose their content attributes to Block Bindings — a synced pattern can be reused across pages with per-instance content while the design keeps propagating from the original. The list is filterable via the new `webentor/block_bindings_supported_attributes` filter, and because Pattern Overrides and Block Bindings share it, these attributes also become connectable to post meta. Container blocks are overridden through their inner blocks rather than the container itself; see the new Pattern Overrides guide in the docs. One caveat: WordPress keys bindings by top-level attribute name only, so `e-button`'s single `button` object is overridden as a whole — once an instance overrides a button it keeps its own `variant`/`size`/`icon` and stops inheriting later design changes from the pattern.
6
+ - **Pass resolved attributes into Blade views.** The block `render_callback` discarded its `$attributes` argument and re-read `$block->attributes` instead, bypassing the value WordPress guarantees carries resolved Block Bindings values for dynamic blocks. `render_block_blade()` now takes them as an optional third argument and the callback passes them through. No behavior change for blocks without bindings.
7
+
8
+ ## 0.15.6
9
+
10
+ - **Give the `l-section` background video an accessible name.** The `<video>` added in 0.15.5 rendered with no `title` or `aria-label` (`<video>` has no `alt`). It now labels itself from the attachment's alt text, falling back to the attachment title, and emits both; with neither set it is treated as decorative and gets `aria-hidden="true"`. New `webentor/l-section/video_label` filter overrides the label. Frontend template only.
11
+
3
12
  ## 0.15.5
4
13
 
5
14
  - **`l-section` background video.** The Section block's "Background Image Settings" panel now accepts a background `<video>` alongside the existing image, which remains the fallback shown while the video loads and on mobile when disabled. Three toggles control delivery: *Disable video on mobile* (≤480px — the video is neither shown nor fetched; the image is used instead), *Lazyload video* (loads only when the section scrolls into the viewport, via a vanilla `IntersectionObserver` — core does not depend on `@alpinejs/intersect`), and *Lazyload background image* (`loading="lazy"` on the section image; off by default since section backgrounds are usually the LCP element). The video renders muted/looped/autoplay/`playsinline` on the existing `.w-section-img` background layer, above the `<picture>` and below the overlay/content; its source is held in `data-src` (`preload="none"`) so nothing is fetched until the block script decides to load it. The load decision re-runs on a throttled `resize`, so a viewport that starts on mobile still loads the video after crossing up to desktop. New attributes: `video`, `disableVideoOnMobile`, `lazyloadVideo`, `lazyloadImage`. Additive — existing sections are unaffected.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webikon/webentor-core",
3
3
  "homepage": "https://webikon.sk",
4
- "version": "0.15.5",
4
+ "version": "0.15.7",
5
5
  "description": "Core functionality and useful utilities for Webentor Stack",
6
6
  "license": "MIT",
7
7
  "author": "Webikon s.r.o.",
@@ -1,12 +1,12 @@
1
1
  [
2
2
  "wp-block-editor",
3
3
  "wp-blocks",
4
+ "wp-i18n",
4
5
  "wp-components",
5
6
  "wp-compose",
6
7
  "wp-data",
7
8
  "wp-element",
8
9
  "wp-hooks",
9
- "wp-i18n",
10
10
  "wp-html-entities",
11
11
  "wp-primitives"
12
12
  ]
@@ -4,7 +4,7 @@
4
4
  "name": "_utils"
5
5
  },
6
6
  "editor.deps.json": {
7
- "file": "assets/editor.deps-D8M5pYds.json",
7
+ "file": "assets/editor.deps-Bd1lgXQE.json",
8
8
  "src": "editor.deps.json"
9
9
  },
10
10
  "resources/blocks/e-accordion/script.ts": {