@snowcone-app/sdk 0.24.0 → 0.24.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.24.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2346](https://github.com/snowcone-app/snowcone-monorepo/pull/2346) [`1804866`](https://github.com/snowcone-app/snowcone-monorepo/commit/1804866916ee79bf7e3db0ea65ce803a1fc005b8) Thanks [@kevinsproles](https://github.com/kevinsproles)! - Realtime: `onAllMockupsRendered` (and therefore `RenderSession.onMockups`) now receives the merged results — a ws-delivered binary frame's `blob:` `imageUrl` included — instead of the server's lean summary entries. A session whose frames rode the socket without a fallback `imageUrl` rendered but never showed: `Editor.Preview` stayed "rendering" forever.
8
+
3
9
  ## 0.24.0
4
10
 
5
11
  ### Minor Changes
@@ -349,7 +349,7 @@ var RealtimeMockupService = class {
349
349
  this.lastError = null;
350
350
  this.renderError = null;
351
351
  this.addLog(`\u{1F389} All mockups rendered: ${freshMockups.length} fresh (${data.mockups.length - freshMockups.length} stale filtered)`);
352
- this.callbacks.onAllMockupsRendered?.(freshMockups);
352
+ this.callbacks.onAllMockupsRendered?.(this.mockupResults);
353
353
  } else {
354
354
  this.addLog(`\u26A0\uFE0F all_mockups_rendered message dropped: missing 'mockups' array. Full data keys: [${Object.keys(data).join(", ")}]`);
355
355
  }
package/dist/index.cjs CHANGED
@@ -5349,7 +5349,7 @@ var RealtimeMockupService = class {
5349
5349
  this.lastError = null;
5350
5350
  this.renderError = null;
5351
5351
  this.addLog(`\u{1F389} All mockups rendered: ${freshMockups.length} fresh (${data.mockups.length - freshMockups.length} stale filtered)`);
5352
- this.callbacks.onAllMockupsRendered?.(freshMockups);
5352
+ this.callbacks.onAllMockupsRendered?.(this.mockupResults);
5353
5353
  } else {
5354
5354
  this.addLog(`\u26A0\uFE0F all_mockups_rendered message dropped: missing 'mockups' array. Full data keys: [${Object.keys(data).join(", ")}]`);
5355
5355
  }
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  REALTIME_WS_URL,
6
6
  RealtimeMockupService
7
- } from "./chunk-5DNY477E.js";
7
+ } from "./chunk-FQC2FPV7.js";
8
8
  import {
9
9
  buildMockupUrl,
10
10
  buildPublicMockupUrl,
package/dist/react.cjs CHANGED
@@ -383,7 +383,7 @@ var RealtimeMockupService = class {
383
383
  this.lastError = null;
384
384
  this.renderError = null;
385
385
  this.addLog(`\u{1F389} All mockups rendered: ${freshMockups.length} fresh (${data.mockups.length - freshMockups.length} stale filtered)`);
386
- this.callbacks.onAllMockupsRendered?.(freshMockups);
386
+ this.callbacks.onAllMockupsRendered?.(this.mockupResults);
387
387
  } else {
388
388
  this.addLog(`\u26A0\uFE0F all_mockups_rendered message dropped: missing 'mockups' array. Full data keys: [${Object.keys(data).join(", ")}]`);
389
389
  }
package/dist/react.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RealtimeMockupService
3
- } from "./chunk-5DNY477E.js";
3
+ } from "./chunk-FQC2FPV7.js";
4
4
 
5
5
  // src/realtime/react.ts
6
6
  import { useCallback, useEffect, useRef, useState } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowcone-app/sdk",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "Snowcone SDK for product mockups and print-on-demand",
5
5
  "keywords": [
6
6
  "merch",