@snowcone-app/canvas 0.21.0 → 0.21.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/README.md CHANGED
@@ -36,8 +36,10 @@ npm install @snowcone-app/canvas
36
36
  The fastest path to a working integration. A live product preview, one
37
37
  personalized text layer, and a completeness-gated add-to-cart — the full
38
38
  design editor never loads. This file ships in this package at
39
- [`example/src/Widget.tsx`](./example/src/Widget.tsx); copy it and change the
40
- design, the product ids, and the parts.
39
+ [`example/src/Widget.tsx`](./example/src/Widget.tsx) (reading this in the
40
+ monorepo instead of the npm tarball? It lives at
41
+ `packages/canvas/fixtures/no-canvas-widget/` there — `example/` is assembled at
42
+ publish); copy it and change the design, the product ids, and the parts.
41
43
 
42
44
  <!-- canonical-example (verbatim from example/src/Widget.tsx; drift-gated) -->
43
45
 
@@ -60,6 +62,9 @@ const product = {
60
62
  productId: 'BEEB77',
61
63
  mockupIds: ['FV1qjO'],
62
64
  placements: ['Front'],
65
+ // BEEB77 has a COLOR axis (Frame) — a color product REQUIRES variantId, or
66
+ // a live render times out. Read real ids from the catalog with getProduct().
67
+ variantId: 'Pv1sLC',
63
68
  };
64
69
 
65
70
  export function PersonalizationWidget({
@@ -10,7 +10,7 @@
10
10
  "build": "tsc --noEmit && vite build"
11
11
  },
12
12
  "dependencies": {
13
- "@snowcone-app/canvas": "^0.21.0",
13
+ "@snowcone-app/canvas": "^0.21.1",
14
14
  "react": "^19.1.0",
15
15
  "react-dom": "^19.1.0"
16
16
  },
@@ -28,6 +28,9 @@ const product = {
28
28
  productId: 'BEEB77',
29
29
  mockupIds: ['FV1qjO'],
30
30
  placements: ['Front'],
31
+ // BEEB77 has a COLOR axis (Frame) — a color product REQUIRES variantId, or
32
+ // a live render times out. Read real ids from the catalog with getProduct().
33
+ variantId: 'Pv1sLC',
31
34
  };
32
35
 
33
36
  export function PersonalizationWidget({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowcone-app/canvas",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Self-contained canvas editor component for e-commerce product customization",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",