@snowcone-app/canvas 0.39.3 → 0.40.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/dist/advanced.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { p as Q, T as M, q as D, B as ee, I as j, r as I, s as te, e as re } from "./useCommands-x8J7_Mzy.js";
2
2
  import { t as it, L as ct, M as lt, v as dt, S as ut, w as mt, x as ft, u as ht } from "./useCommands-x8J7_Mzy.js";
3
- import { r as ne, v as se } from "./validation-Dh9sVEb9.js";
4
- import { d as xt, e as gt, f as bt, h as yt, D as vt, b as St, c as wt, G as Ct, i as Tt, K as Et, L as kt, S as $t, T as At, Z as Ft, j as Pt, g as Nt, k as Bt, l as Rt, a as Mt, m as Dt, n as It, u as zt, o as Ot, p as Lt } from "./validation-Dh9sVEb9.js";
3
+ import { r as ne, v as se } from "./validation-BMB6_hp4.js";
4
+ import { d as xt, e as gt, f as bt, h as yt, D as vt, b as St, c as wt, G as Ct, i as Tt, K as Et, L as kt, S as $t, T as At, Z as Ft, j as Pt, g as Nt, k as Bt, l as Rt, a as Mt, m as Dt, n as It, u as zt, o as Ot, p as Lt } from "./validation-BMB6_hp4.js";
5
5
  import { ImagePanel as Kt } from "./ImagePanel-BaX0UE-L.js";
6
- import { P as ae, b as oe, c as ie } from "./ContextualToolbars-C62As-xY.js";
7
- import { A as _t, B as Ut, d as jt, e as qt, C as Jt, a as Zt, F as Vt, f as Xt, I as Yt, g as Ht, M as Qt, h as er, S as tr, T as rr, i as nr, j as sr, k as ar, U as or, l as ir, u as cr, m as lr } from "./ContextualToolbars-C62As-xY.js";
6
+ import { P as ae, b as oe, c as ie } from "./ContextualToolbars-_5zqlcSw.js";
7
+ import { A as _t, B as Ut, d as jt, e as qt, C as Jt, a as Zt, F as Vt, f as Xt, I as Yt, g as Ht, M as Qt, h as er, S as tr, T as rr, i as nr, j as sr, k as ar, U as or, l as ir, u as cr, m as lr } from "./ContextualToolbars-_5zqlcSw.js";
8
8
  import { b as q } from "./design-builder-CoCtjIwj.js";
9
9
  import { E as ur, P as mr, p as fr, j as hr, a as pr, u as xr, k as gr, c as br, m as yr, d as vr } from "./design-builder-CoCtjIwj.js";
10
10
  import { T as wr, u as Cr } from "./ThemeContext-Rjz25x9X.js";
@@ -17,9 +17,9 @@
17
17
  * <RealtimeEmbed
18
18
  * shop="YOUR_SHOP_ID"
19
19
  * grantUrl="/api/realtime/grant"
20
- * // variantId is REQUIRED when the product has a color/variant axis (BEEB77
21
- * // does) — omit it and the render hangs. Read it + options from getProduct().
22
- * product={{ productId: 'BEEB77', mockupIds: ['FV1qjO'], variantId: 'Pv1sLC', placements: ['Front'] }}
20
+ * // variantId is REQUIRED when the product has a color/variant axis (a frame
21
+ * // or garment colour) — omit it and the render hangs. Read it + options from getProduct().
22
+ * product={{ productId: 'BC43BE', mockupIds: ['947QAD'], variantId: 'e92f40', placements: ['Front'] }}
23
23
  * design={d}
24
24
  * >
25
25
  * <RealtimeCanvas />
@@ -24,7 +24,7 @@ export declare function formatBuyPrice(cents: number): string;
24
24
  *
25
25
  * <SnowconeEditor
26
26
  * shop={SHOP_KEY}
27
- * product={{ productId: 'BEEB77', mockupIds: ['FV1qjO'], variantId: 'Pv1sLC', placements: ['Front'] }}
27
+ * product={{ productId: 'BC43BE', mockupIds: ['947QAD'], variantId: 'e92f40', placements: ['Front'] }}
28
28
  * design={design({ name: 'Front', width: 1480, height: 2328 }).text('hello', { name: 'headline' })}
29
29
  * grantUrl="/api/realtime/grant"
30
30
  * onAddToCart={(payload) => persist(payload.designState)}
@@ -44,7 +44,7 @@ export interface ProductRenderConfig {
44
44
  * Derive the full embed wiring from one `getProduct()` payload.
45
45
  *
46
46
  * ```ts
47
- * const config = productToRenderConfig(await getProduct('BEEB77'));
47
+ * const config = productToRenderConfig(await getProduct('BC43BE'));
48
48
  * const seed = design({ name: config.placement.label, ...config.placement })
49
49
  * .text('hello', { anchor: 'center', name: 'headline' });
50
50
  *
@@ -713,7 +713,7 @@ function qe(e) {
713
713
  // wrapper, which had no DOM at all, stays layout-identical).
714
714
  /* @__PURE__ */ g("div", { className: "sc-root", style: { display: "contents" }, "data-sc-part": "root", children: /* @__PURE__ */ g(Ft, { reportedError: l, onRetry: () => d(null), children: /* @__PURE__ */ g(Vt, { ...e, internals: a, recordAudit: x }) }) });
715
715
  }
716
- let Pt = () => import("./EditorCanvasImpl-DIiRhNbF.js").then((e) => e.EditorCanvasImpl);
716
+ let Pt = () => import("./EditorCanvasImpl-CBl27o5h.js").then((e) => e.EditorCanvasImpl);
717
717
  function ze() {
718
718
  return Pt();
719
719
  }
@@ -1247,7 +1247,7 @@ function sn({
1247
1247
  return L(() => {
1248
1248
  if (!s) return;
1249
1249
  let d = !1;
1250
- return import("./ContextualToolbars-C62As-xY.js").then((a) => a.s).then(
1250
+ return import("./ContextualToolbars-_5zqlcSw.js").then((a) => a.s).then(
1251
1251
  (a) => {
1252
1252
  d || l(() => a.ContextualToolbars);
1253
1253
  },
@@ -1910,4 +1910,4 @@ export {
1910
1910
  te as u,
1911
1911
  At as v
1912
1912
  };
1913
- //# sourceMappingURL=embed-BLwf1X5u.js.map
1913
+ //# sourceMappingURL=embed-BY6gMPTK.js.map