efficient-storefront-blocks 0.129.0 → 0.130.0

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,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.130.0 — 2026-11-25 — The 360° view reads WebP sprite sheets
4
+
5
+ **For hosts:** breaking for a host that builds a `SpinSet` by hand: it now
6
+ needs `count`, and `frames` is optional. No peer change. The storefront
7
+ re-vendors `src/` with `node scripts/sync-storefront-blocks.mjs`, then runs
8
+ `just check`.
9
+
10
+ - **A spin set can be a few sprite sheets** instead of one file per frame:
11
+ `sheets.desktop` (1000 px frames, 4 x 4 a sheet) and `sheets.phone`
12
+ (600 px frames, 6 x 6), frames row-major from frame 0, plus `startFrame`,
13
+ one picture of the start frame. A full turn of 120 frames is 8 + 4 sheets
14
+ and 1 start picture, against 120 files.
15
+ - **Each sheet is at most 4096 px a side** (`SPIN_SHEET_MAX_SIDE`, 16.7 MP:
16
+ the size iOS Safari decodes in full). A set with a larger sheet, the wrong
17
+ number of sheets, no phone or desktop sheets, or no start picture draws its
18
+ frame list when it has a whole one, and is dropped when it has none. A sheet
19
+ that fails to load or loads at another size is never drawn.
20
+ - **The page opens on the start picture**, asked for first and alone. Then
21
+ the sheets this screen reads (phone under 720 px) are asked for once per
22
+ page, the sheet holding the start first; a screen that crosses 720 px (a
23
+ phone turned) reads the other size. Until a frame's sheet has loaded, the
24
+ last drawn picture stays, and a new finish never draws the old one's cell.
25
+ - A set stored as a frame list (`frames`) still draws as before.
26
+
3
27
  ## 0.129.0 — 2026-11-25 — The 360° view is the gallery's first picture, on a studio ground
4
28
 
5
29
  **For hosts:** breaking for a host that imports the spin helpers: