@webikon/webentor-core 0.15.1 → 0.15.3
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,13 @@
|
|
|
1
1
|
# Webentor Core Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.3
|
|
4
|
+
|
|
5
|
+
- **Fix `e-picker-query-loop` ignoring the manual pick order.** The Posts Picker Query Loop block stores the editor's hand-picked order in its `posts` attribute and builds a `WP_Query` with `post__in`, but never set `orderby`, so `WP_Query` fell back to its default `orderby => date, order => DESC` and re-sorted the results by publish date — discarding the chosen order on the frontend. It now sets `'orderby' => 'post__in'`, so picked posts render in exactly the order the editor arranged them. No consumer migration needed; the `webentor/query_loop_args` filter can still override `orderby` per query.
|
|
6
|
+
|
|
7
|
+
## 0.15.2
|
|
8
|
+
|
|
9
|
+
- **Preserve text alignment on core blocks under WordPress 7.0.** WP 7.0 moved Paragraph's "Align text" control into `supports.typography.textAlign`, which the `disableTypography` filter was wiping by nulling the whole typography object. The filter now keeps `textAlign` and strips only the rest, so Paragraph/Heading keep alignment while native typography stays hidden. No consumer migration needed.
|
|
10
|
+
|
|
3
11
|
## 0.15.1
|
|
4
12
|
|
|
5
13
|
- **Fix focal-point cropping in responsive `<source srcset>`.** `get_resized_image_object()` re-derived its `src` via `bis_get_attachment_image_src()` without the `$crop` flag, so Better Image Sizes never read the attachment's `focal_point` meta for the srcset — the `<picture>` `<source>` entries (1x/2x) loaded the center-fit file while only the fallback `<img>` honored the focal point. It now passes `$crop` through, matching `get_resized_image_url()`, so focal-point crops apply at every breakpoint. Also stops generating the redundant crop-less duplicate file. No API change for consumers.
|
|
@@ -96,7 +96,10 @@ function initCustomTypographyFilter() {
|
|
|
96
96
|
});
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Disable native typography controls, but keep `textAlign`.
|
|
100
|
+
*
|
|
101
|
+
* WP 7.0 moved the "Align text" control into `supports.typography.textAlign`,
|
|
102
|
+
* so nulling the whole object would strip alignment too.
|
|
100
103
|
*
|
|
101
104
|
* @param {object} settings block settings
|
|
102
105
|
* @param {string} name block name
|
|
@@ -107,7 +110,8 @@ function initCustomTypographyFilter() {
|
|
|
107
110
|
'webentor/core/disableTypography',
|
|
108
111
|
function (settings) {
|
|
109
112
|
if (settings?.supports?.typography) {
|
|
110
|
-
settings.supports.typography
|
|
113
|
+
const { textAlign } = settings.supports.typography;
|
|
114
|
+
settings.supports.typography = textAlign ? { textAlign } : null;
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
return settings;
|
package/package.json
CHANGED