@snowcone-app/ui 0.11.10 → 0.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowcone-app/ui",
3
- "version": "0.11.10",
3
+ "version": "0.11.11",
4
4
  "description": "React components for merchandise visualization and customization",
5
5
  "keywords": [
6
6
  "react",
@@ -103,7 +103,7 @@
103
103
  "react-instantsearch": "^7.15.5",
104
104
  "react-zoom-pan-pinch": "^3.6.4",
105
105
  "tailwind-merge": "^3.0.0",
106
- "@snowcone-app/sdk": "0.31.15"
106
+ "@snowcone-app/sdk": "0.32.0"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@chromatic-com/storybook": "^4.1.2",
@@ -140,8 +140,10 @@ async function seedAll(n: number) {
140
140
  // #6369 (2026-11-25): on the boxes, cropped renders stall from ~10 mockups a session (measured: 5 passes, 10 stalls;
141
141
  // full frame passes at 33). Stopgap: more than 5 mockups -> full-frame delivery.
142
142
  describe("cropped delivery limit (#6369 stopgap)", () => {
143
- it("the limit is the measured boundary: 5", () => {
143
+ it("the limit is the measured boundary: 5, the same as the SDK's useMockupStage", async () => {
144
144
  expect(CROPPED_DELIVERY_MAX_MOCKUPS).toBe(5);
145
+ const sdk = await vi.importActual<typeof import("@snowcone-app/sdk")>("@snowcone-app/sdk");
146
+ expect(sdk.CROPPED_DELIVERY_MAX_MOCKUPS).toBe(CROPPED_DELIVERY_MAX_MOCKUPS);
145
147
  expect(croppedDeliveryAllowed(5)).toBe(true);
146
148
  expect(croppedDeliveryAllowed(6)).toBe(false);
147
149
  });
@@ -8,7 +8,8 @@
8
8
  * last version at every size up to 33. Desktop galleries hold 20-33 mockups, so desktop live previews stopped updating
9
9
  * after the second version (67 of 80 editor-canary runs from 2026-11-23 20:00Z).
10
10
  *
11
- * Remove (delete this module and its three call sites in RealtimeProvider) once the box-side fix for #6369 is rolled
11
+ * The SDK's useMockupStage holds the same rule (`@snowcone-app/sdk` CROPPED_DELIVERY_MAX_MOCKUPS; a test pins the two
12
+ * equal). Remove (delete this module and its three call sites in RealtimeProvider, and the SDK's twin) once the box-side fix for #6369 is rolled
12
13
  * and the canary passes with cropped delivery at 33 mockups.
13
14
  */
14
15
  export const CROPPED_DELIVERY_MAX_MOCKUPS = 5;