efficient-storefront-blocks 0.129.0 → 0.130.1
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 +40 -0
- package/dist/index.js +26 -26
- package/dist/render/components/CompatibleTyres.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicRelatedProducts.js +1 -1
- package/dist/render/components/product-hero/SpinLayer.js +1 -1
- package/dist/render/lib/document/blocks/commerce/BundleOffer/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CompatibleTyres/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/RelatedProducts/meta.js +1 -1
- package/dist/render/lib/sections/spin-sets.d.ts +19 -1
- package/dist/render/lib/sections/spin-sets.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.130.1 — 2026-11-25 — No empty band under an own-box heading on product-page card and tyre sections
|
|
4
|
+
|
|
5
|
+
**For hosts:** no breaking change, no peer change. The storefront re-vendors
|
|
6
|
+
`src/` with `node scripts/sync-storefront-blocks.mjs`.
|
|
7
|
+
|
|
8
|
+
- **With its words in a Box of their own** (`headPlacement: "own-box"`), the
|
|
9
|
+
card band of Related Products and of a bound Product Grid keeps no room
|
|
10
|
+
above the cards; the room below stays. It drew 120 px (phone 80) above the
|
|
11
|
+
cards, under the heading's own Box, so the page showed an empty band about
|
|
12
|
+
144 px tall.
|
|
13
|
+
- **The tyre band does the same** (Compatible Tyres, and a tyre answer of
|
|
14
|
+
Related Products or a bound Product Grid).
|
|
15
|
+
- Both now read the product page's one 120/80 band pair, the one the Spec
|
|
16
|
+
Table and the Fitment Table read. A section that draws its own head keeps
|
|
17
|
+
120 px above and below, byte for byte.
|
|
18
|
+
|
|
19
|
+
## 0.130.0 — 2026-11-25 — The 360° view reads WebP sprite sheets
|
|
20
|
+
|
|
21
|
+
**For hosts:** breaking for a host that builds a `SpinSet` by hand: it now
|
|
22
|
+
needs `count`, and `frames` is optional. No peer change. The storefront
|
|
23
|
+
re-vendors `src/` with `node scripts/sync-storefront-blocks.mjs`, then runs
|
|
24
|
+
`just check`.
|
|
25
|
+
|
|
26
|
+
- **A spin set can be a few sprite sheets** instead of one file per frame:
|
|
27
|
+
`sheets.desktop` (1000 px frames, 4 x 4 a sheet) and `sheets.phone`
|
|
28
|
+
(600 px frames, 6 x 6), frames row-major from frame 0, plus `startFrame`,
|
|
29
|
+
one picture of the start frame. A full turn of 120 frames is 8 + 4 sheets
|
|
30
|
+
and 1 start picture, against 120 files.
|
|
31
|
+
- **Each sheet is at most 4096 px a side** (`SPIN_SHEET_MAX_SIDE`, 16.7 MP:
|
|
32
|
+
the size iOS Safari decodes in full). A set with a larger sheet, the wrong
|
|
33
|
+
number of sheets, no phone or desktop sheets, or no start picture draws its
|
|
34
|
+
frame list when it has a whole one, and is dropped when it has none. A sheet
|
|
35
|
+
that fails to load or loads at another size is never drawn.
|
|
36
|
+
- **The page opens on the start picture**, asked for first and alone. Then
|
|
37
|
+
the sheets this screen reads (phone under 720 px) are asked for once per
|
|
38
|
+
page, the sheet holding the start first; a screen that crosses 720 px (a
|
|
39
|
+
phone turned) reads the other size. Until a frame's sheet has loaded, the
|
|
40
|
+
last drawn picture stays, and a new finish never draws the old one's cell.
|
|
41
|
+
- A set stored as a frame list (`frames`) still draws as before.
|
|
42
|
+
|
|
3
43
|
## 0.129.0 — 2026-11-25 — The 360° view is the gallery's first picture, on a studio ground
|
|
4
44
|
|
|
5
45
|
**For hosts:** breaking for a host that imports the spin helpers:
|