@snowcone-app/ui 0.4.11 → 0.4.13
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 +14 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/services/CanvasExportService.ts +10 -1
- package/src/services/__tests__/CanvasExportService.emptyState.test.ts +48 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1636](https://github.com/snowcone-app/snowcone-monorepo/pull/1636) [`51148a3`](https://github.com/snowcone-app/snowcone-monorepo/commit/51148a39710a0720440186ffdf0ed9443b36d63a) Thanks [@kevinsproles](https://github.com/kevinsproles)! - CanvasExportService: an empty design is sent to the realtime renderer once art has rendered in the session. Deleting or undoing the last element now re-renders the blank product instead of leaving the mockup showing art that is no longer in the design. A blank editor mount still sends nothing.
|
|
8
|
+
|
|
9
|
+
## 0.4.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1634](https://github.com/snowcone-app/snowcone-monorepo/pull/1634) [`b9d59e6`](https://github.com/snowcone-app/snowcone-monorepo/commit/b9d59e6c23540e73759ff33e1ad4347493aee017) 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.
|
|
14
|
+
|
|
15
|
+
- [#1634](https://github.com/snowcone-app/snowcone-monorepo/pull/1634) [`b9d59e6`](https://github.com/snowcone-app/snowcone-monorepo/commit/b9d59e6c23540e73759ff33e1ad4347493aee017) Thanks [@kevinsproles](https://github.com/kevinsproles)! - CanvasExportService: an empty design is sent to the realtime renderer once art has rendered in the session. Deleting or undoing the last element now re-renders the blank product instead of leaving the mockup showing art that is no longer in the design. A blank editor mount still sends nothing.
|
|
16
|
+
|
|
3
17
|
## 0.4.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -8888,7 +8888,7 @@ var CanvasExportService = class _CanvasExportService {
|
|
|
8888
8888
|
handleStateChange = (state) => {
|
|
8889
8889
|
if (!state) return;
|
|
8890
8890
|
const hasElements = state.elements?.length > 0;
|
|
8891
|
-
if (!hasElements) return;
|
|
8891
|
+
if (!hasElements && !this.jsonModeSentSuccessfully) return;
|
|
8892
8892
|
const hasLoadingImages = state.elements?.some(
|
|
8893
8893
|
(el) => (el.type === "image" || el.transformType === "image") && el.imageLoadState === "loading"
|
|
8894
8894
|
);
|
|
@@ -8976,6 +8976,8 @@ var CanvasExportService = class _CanvasExportService {
|
|
|
8976
8976
|
this.stateChangeThrottleTimeout = null;
|
|
8977
8977
|
}
|
|
8978
8978
|
this.stateChangeLastSendTime = 0;
|
|
8979
|
+
this.jsonModeSentSuccessfully = false;
|
|
8980
|
+
this.pendingCanvasState = null;
|
|
8979
8981
|
if (this.clearImageBitmapCache) {
|
|
8980
8982
|
this.clearImageBitmapCache();
|
|
8981
8983
|
}
|