@snowcone-app/ui 0.11.0 → 0.11.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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`23994a3`](https://github.com/snowcone-app/snowcone-monorepo/commit/23994a31bdce399b150832c38ba7ae3b6ba8d296)]:
8
+ - @snowcone-app/sdk@0.31.7
9
+
3
10
  ## 0.11.0
4
11
 
5
12
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowcone-app/ui",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
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.6"
106
+ "@snowcone-app/sdk": "0.31.7"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@chromatic-com/storybook": "^4.1.2",
@@ -13,7 +13,14 @@ import { ordinaryMockups, type CatalogProduct } from "@snowcone-app/sdk";
13
13
  import { HeroProductImage } from "../HeroProductImage";
14
14
  import { Product } from "../../patterns/Product";
15
15
  import { MockupBackground } from "../../patterns/MockupBackground";
16
- import { firstMobileHeroUrl, MOBILE_HERO_WIDTH } from "../heroMockupUrl";
16
+ import { firstMobileHeroUrl as firstMobileHeroUrlInBrowser, MOBILE_HERO_WIDTH } from "../heroMockupUrl";
17
+
18
+ /** The SERVER's URL: built where there is no window, as page.tsx builds it (a window changes what the sdk does to a
19
+ * relative artwork; 2026-11-19 the jsdom-built "server" URL matched the client while the real server's did not). */
20
+ function firstMobileHeroUrl(args: Parameters<typeof firstMobileHeroUrlInBrowser>[0]): string | null {
21
+ vi.stubGlobal("window", undefined);
22
+ try { return firstMobileHeroUrlInBrowser(args); } finally { vi.unstubAllGlobals(); }
23
+ }
17
24
  import AKTGA7 from "./fixtures/catalog-AKTGA7.json";
18
25
  import BC43BE from "./fixtures/catalog-BC43BE.json";
19
26
  import NBYVCX from "./fixtures/catalog-NBYVCX.json";