@webikon/webentor-core 0.15.3 → 0.15.4
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 +6 -0
- package/core-js/blocks-filters/_slider-settings.tsx +69 -60
- package/package.json +14 -10
- package/public/build/assets/coreEditorJs-C0kGg9L7.js +366 -0
- package/public/build/assets/{coreEditorJs-bf451E88.js.map → coreEditorJs-xHkmOZj0.js.map} +1 -1
- package/public/build/assets/{editor.deps-BY0wt7iZ.json → editor.deps-BlXjIMbQ.json} +1 -1
- package/public/build/manifest.json +2 -2
- package/resources/blocks/e-picker-query-loop/e-picker-query-loop.block.tsx +15 -12
- package/resources/blocks/e-query-loop/e-query-loop.block.tsx +32 -27
- package/resources/blocks/e-query-loop/taxonomy-controls.tsx +12 -10
- package/public/build/assets/coreEditorJs-hgmUqbSJ.js +0 -366
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Webentor Core Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.4
|
|
4
|
+
|
|
5
|
+
- **Restore inspector-control spacing under WordPress 7.0.** `@wordpress/components` 32.0.0 (bundled by WP 7.0) flipped `__nextHasNoMarginBottom` to default-true, silently removing the implicit 8px bottom margin from controls that relied on it. The affected bare controls — `e-slider` settings (Autoplay Speed, Slider ID, Slides per view, Space Between Slides), `e-query-loop` (Posts Per Page, Query ID, taxonomy `FormTokenField`), and `e-picker-query-loop` (Query ID) — are now wrapped in `PanelRow`, the house spacing idiom, so inspector panels render with consistent gaps again on WP 7.0. Editor-only; no frontend or API change.
|
|
6
|
+
- **Align `@wordpress/*` devDependencies with the WP 7.0 runtime.** These imports are externalized to `window.wp.*`, so the WP-bundled Gutenberg versions are what actually runs — declared ranges now match them instead of npm latest: `components` `^32.2.1`, `icons` `^11.7.1`, `block-editor` `^15.13.2`, `blocks` `^15.13.1`, `block-library` `^9.40.2`, `i18n` `^6.13.1`. Also declares the previously undeclared externalized imports (`compose` `^7.40.1`, `data` `^10.40.1`, `element` `^6.40.1`, `hooks` `^4.40.1`, `html-entities` `^4.40.1`) so their types resolve, and removes the unused webpack-era `@wordpress/dependency-extraction-webpack-plugin`. Types/lint-only; runtime is unchanged by design.
|
|
7
|
+
- **Consumer migration**: the core update itself is a transparent patch within the existing `^0.15` range (`pnpm up @webikon/webentor-core && composer update webikon/webentor-core`); the `@wordpress/*` dependency alignment applies to consumer theme manifests via `pnpm dlx @webikon/webentor-codemods run starter-2.1.2` (dry-run), then `--apply`. See `@webikon/webentor-codemods`.
|
|
8
|
+
|
|
3
9
|
## 0.15.3
|
|
4
10
|
|
|
5
11
|
- **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.
|
|
@@ -58,20 +58,22 @@ const initSliderSettings = () => {
|
|
|
58
58
|
</PanelRow>
|
|
59
59
|
|
|
60
60
|
{attributes?.slider?.autoplay && (
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
61
|
+
<PanelRow>
|
|
62
|
+
<TextControl
|
|
63
|
+
label={__('Autoplay Speed', 'webentor')}
|
|
64
|
+
value={attributes?.slider?.autoplaySpeed ?? '3000'}
|
|
65
|
+
onChange={(value) =>
|
|
66
|
+
setAttributes(
|
|
67
|
+
setImmutably(
|
|
68
|
+
attributes,
|
|
69
|
+
['slider', 'autoplaySpeed'],
|
|
70
|
+
value,
|
|
71
|
+
),
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
type="number"
|
|
75
|
+
/>
|
|
76
|
+
</PanelRow>
|
|
75
77
|
)}
|
|
76
78
|
|
|
77
79
|
{attributes?.slider?.autoplay && (
|
|
@@ -182,18 +184,20 @@ const initSliderSettings = () => {
|
|
|
182
184
|
/>
|
|
183
185
|
</PanelRow>
|
|
184
186
|
|
|
185
|
-
<
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
187
|
+
<PanelRow>
|
|
188
|
+
<TextControl
|
|
189
|
+
label={__('Slider ID', 'webentor')}
|
|
190
|
+
value={attributes?.slider?.id ?? ''}
|
|
191
|
+
onChange={(value) =>
|
|
192
|
+
setAttributes(
|
|
193
|
+
setImmutably(attributes, ['slider', 'id'], value),
|
|
194
|
+
)
|
|
195
|
+
}
|
|
196
|
+
help={__(
|
|
197
|
+
'This ID can be used to filter slider params via `webentor/slider/view/swiper_params` hook.',
|
|
198
|
+
)}
|
|
199
|
+
/>
|
|
200
|
+
</PanelRow>
|
|
197
201
|
|
|
198
202
|
<hr />
|
|
199
203
|
|
|
@@ -252,41 +256,46 @@ const initSliderSettings = () => {
|
|
|
252
256
|
/>
|
|
253
257
|
</PanelRow>
|
|
254
258
|
|
|
255
|
-
<
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
259
|
+
<PanelRow>
|
|
260
|
+
<TextControl
|
|
261
|
+
label={__('Slides per view', 'webentor')}
|
|
262
|
+
value={
|
|
263
|
+
attributes?.slider?.slidesPerView?.value?.[
|
|
264
|
+
tab.name
|
|
265
|
+
] ?? ''
|
|
266
|
+
}
|
|
267
|
+
onChange={(value) =>
|
|
268
|
+
setAttributes(
|
|
269
|
+
setImmutably(
|
|
270
|
+
attributes,
|
|
271
|
+
['slider', 'slidesPerView', 'value', tab.name],
|
|
272
|
+
value,
|
|
273
|
+
),
|
|
274
|
+
)
|
|
275
|
+
}
|
|
276
|
+
type="number"
|
|
277
|
+
/>
|
|
278
|
+
</PanelRow>
|
|
272
279
|
|
|
273
|
-
<
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
280
|
+
<PanelRow>
|
|
281
|
+
<TextControl
|
|
282
|
+
label={__('Space Between Slides', 'webentor')}
|
|
283
|
+
value={
|
|
284
|
+
attributes?.slider?.spaceBetween?.value?.[tab.name] ??
|
|
285
|
+
''
|
|
286
|
+
}
|
|
287
|
+
onChange={(value) =>
|
|
288
|
+
setAttributes(
|
|
289
|
+
setImmutably(
|
|
290
|
+
attributes,
|
|
291
|
+
['slider', 'spaceBetween', 'value', tab.name],
|
|
292
|
+
value,
|
|
293
|
+
),
|
|
294
|
+
)
|
|
295
|
+
}
|
|
296
|
+
type="number"
|
|
297
|
+
/>
|
|
298
|
+
</PanelRow>
|
|
290
299
|
</div>
|
|
291
300
|
)}
|
|
292
301
|
</TabPanel>
|
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.
|
|
4
|
+
"version": "0.15.4",
|
|
5
5
|
"description": "Core functionality and useful utilities for Webentor Stack",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Webikon s.r.o.",
|
|
@@ -153,13 +153,17 @@
|
|
|
153
153
|
"@tailwindcss/vite": "^4.3.1",
|
|
154
154
|
"@types/wordpress__block-editor": "^15.0.6",
|
|
155
155
|
"@vitejs/plugin-react": "^6.0.0",
|
|
156
|
-
"@wordpress/block-editor": "^15.
|
|
157
|
-
"@wordpress/block-library": "^9.
|
|
158
|
-
"@wordpress/blocks": "^15.
|
|
159
|
-
"@wordpress/components": "^
|
|
160
|
-
"@wordpress/
|
|
161
|
-
"@wordpress/
|
|
162
|
-
"@wordpress/
|
|
156
|
+
"@wordpress/block-editor": "^15.13.2",
|
|
157
|
+
"@wordpress/block-library": "^9.40.2",
|
|
158
|
+
"@wordpress/blocks": "^15.13.1",
|
|
159
|
+
"@wordpress/components": "^32.2.1",
|
|
160
|
+
"@wordpress/compose": "^7.40.1",
|
|
161
|
+
"@wordpress/data": "^10.40.1",
|
|
162
|
+
"@wordpress/element": "^6.40.1",
|
|
163
|
+
"@wordpress/hooks": "^4.40.1",
|
|
164
|
+
"@wordpress/html-entities": "^4.40.1",
|
|
165
|
+
"@wordpress/i18n": "^6.13.1",
|
|
166
|
+
"@wordpress/icons": "^11.7.1",
|
|
163
167
|
"eslint": "^9.39.2",
|
|
164
168
|
"eslint-config-prettier": "^10.1.8",
|
|
165
169
|
"eslint-plugin-prettier": "^5.5.6",
|
|
@@ -190,8 +194,8 @@
|
|
|
190
194
|
"swiper": "^12.2.0"
|
|
191
195
|
},
|
|
192
196
|
"lint-staged": {
|
|
193
|
-
"
|
|
194
|
-
"
|
|
197
|
+
"{core-js,resources}/**/*.{js,ts,tsx}": "eslint",
|
|
198
|
+
"resources/**/*.css": "stylelint"
|
|
195
199
|
},
|
|
196
200
|
"scripts": {
|
|
197
201
|
"dev": "vite",
|