@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 +7 -2
- package/example/package.json +1 -1
- package/example/src/Widget.tsx +3 -0
- package/package.json +1 -1
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)
|
|
40
|
-
|
|
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({
|
package/example/package.json
CHANGED
package/example/src/Widget.tsx
CHANGED
|
@@ -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({
|