@snowcone-app/ui 0.4.10 → 0.4.11

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1632](https://github.com/snowcone-app/snowcone-monorepo/pull/1632) [`8a3b7e2`](https://github.com/snowcone-app/snowcone-monorepo/commit/8a3b7e26867257a22073dc5a55fb19d94ffded3f) Thanks [@kevinsproles](https://github.com/kevinsproles)! - RealtimeProvider: decode the frozen cropped-delivery background at seed time. With ws binary frame delivery the full frame's `imageUrl` is a live `blob:` URL the SDK revokes when the next frame for that mockup arrives; lazily loading it at composite time failed (`E_OVERLAY_FRAME_LOAD`), disabled cropped delivery for the session, and cost three extra full renders per edit.
8
+
3
9
  ## 0.4.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -6303,7 +6303,10 @@ function RealtimeProvider({
6303
6303
  if (isFullRect(result.cropRect)) {
6304
6304
  if (firstSight && sessionLive) {
6305
6305
  processedFrameRef.current.set(result.mockupId, result.imageUrl);
6306
- backgroundsRef.current.set(result.mockupId, { url: result.imageUrl });
6306
+ const imgPromise = loadImageElement(result.imageUrl);
6307
+ imgPromise.catch(() => {
6308
+ });
6309
+ backgroundsRef.current.set(result.mockupId, { url: result.imageUrl, imgPromise });
6307
6310
  }
6308
6311
  displayable.push(result);
6309
6312
  } else if (firstSight && sessionLive) {