efficient-storefront-blocks 0.126.1 → 0.126.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,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.126.3 — 2026-11-25 — A shopper's chat socket offers the access token as a subprotocol
4
+
5
+ **For hosts:** no peer change. The storefront re-vendors `src/` with
6
+ `node scripts/sync-storefront-blocks.mjs`, then runs `just check`.
7
+
8
+ - **A signed-in shopper's live-chat and assistant sockets no longer put the
9
+ access token in the URL** (SG#02937). A URL's query string reaches the
10
+ backend's handshake log, and an access token there is a login. The socket
11
+ now offers it as `Sec-WebSocket-Protocol: efficient-access-token, <jwt>`,
12
+ which the backend's `/ws/chat/` already reads and echoes. A guest's
13
+ `guest_token` still rides on `?token=` until the backend reads it from a
14
+ subprotocol too.
15
+ - New in `render/lib/chat-socket`: `chatSocketTarget(id, credential)`,
16
+ `ChatSocketCredential`, `ChatSocketTarget`, `ACCESS_TOKEN_SUBPROTOCOL`, and
17
+ `openChatSocket`'s `credential` option. `chatSocketUrl` and the `token`
18
+ option are deprecated: both still put the token on the URL.
19
+
20
+ ## 0.126.2 — 2026-11-25 — The Product Gallery turns a wheel through 360°
21
+
22
+ **For hosts:** no peer change. The storefront re-vendors `src/` with
23
+ `node scripts/sync-storefront-blocks.mjs`, then runs `just check`.
24
+
25
+ - **The Product Gallery block has a 360° view**: a new block prop `spin`
26
+ holds rendered frames per product slug and finish name (a normal list and a
27
+ zoom list of the same length). When the finish on the stage has a set, the
28
+ stage and the first stacked photo show "View 360°": a drag turns the wheel,
29
+ wheel, pinch or double-click zooms up to 2x, and the zoom frames load only
30
+ while zoomed. Reduced motion: no turn on its own and no glide. A broken set
31
+ is dropped on read. A set may cover an arc instead of a full turn
32
+ (`arc`, in degrees, for a wheel with no back pockets): it opens on its
33
+ middle frame, the face, and a drag stops at both ends. Old pages have no `spin` and draw as before.
34
+
3
35
  ## 0.126.1 — 2026-11-25 — A Studio card's hover rendering keeps the studio picture
4
36
 
5
37
  **For hosts:** no peer change. The storefront re-vendors `src/` with