@webikon/webentor-core 0.15.6 → 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,10 @@
|
|
|
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
|
+
|
|
3
8
|
## 0.15.6
|
|
4
9
|
|
|
5
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.
|
package/package.json
CHANGED