@snowcone-app/canvas 0.44.2 → 0.46.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.
Files changed (34) hide show
  1. package/ERROR_CONTRACT.md +1 -1
  2. package/dist/{ContextualToolbars-rCZo-KCm.js → ContextualToolbars-5tHC6s0Y.js} +4 -4
  3. package/dist/{ContextualToolbars-rCZo-KCm.js.map → ContextualToolbars-5tHC6s0Y.js.map} +1 -1
  4. package/dist/{EditorCanvasImpl-Dcati77U.js → EditorCanvasImpl-Cd_umlTI.js} +6 -6
  5. package/dist/{EditorCanvasImpl-Dcati77U.js.map → EditorCanvasImpl-Cd_umlTI.js.map} +1 -1
  6. package/dist/{ImagePanel-DhOWKvIN.js → ImagePanel-bW3yr6Ac.js} +264 -259
  7. package/dist/{ImagePanel-DhOWKvIN.js.map → ImagePanel-bW3yr6Ac.js.map} +1 -1
  8. package/dist/{SnowconeCanvas-DjszZvte.js → SnowconeCanvas-crxPwbib.js} +441 -439
  9. package/dist/SnowconeCanvas-crxPwbib.js.map +1 -0
  10. package/dist/advanced.mjs +9 -9
  11. package/dist/components/editor/EditorPreview.d.ts +19 -8
  12. package/dist/components/editor/index.d.ts +1 -1
  13. package/dist/components/embed/SnowconeCanvas.d.ts +6 -0
  14. package/dist/components/embed/kernel.d.ts +2 -0
  15. package/dist/{custom-icons-C4bzABm2.js → custom-icons-DQRp8GhF.js} +2 -2
  16. package/dist/{custom-icons-C4bzABm2.js.map → custom-icons-DQRp8GhF.js.map} +1 -1
  17. package/dist/{design-builder-DCHVrEFV.js → design-builder-sH53Og6j.js} +598 -589
  18. package/dist/design-builder-sH53Og6j.js.map +1 -0
  19. package/dist/{embed-DNWM7gZL.js → embed-DvN5BVmQ.js} +669 -657
  20. package/dist/embed-DvN5BVmQ.js.map +1 -0
  21. package/dist/embed.mjs +4 -4
  22. package/dist/index.mjs +7 -7
  23. package/dist/{template-fields-CK7Uvvc8.js → template-fields-BaQG0CJY.js} +3 -3
  24. package/dist/{template-fields-CK7Uvvc8.js.map → template-fields-BaQG0CJY.js.map} +1 -1
  25. package/dist/testing.mjs +2 -2
  26. package/dist/{useCommands-BrkGKdXr.js → useCommands-F-b_SwW-.js} +3 -3
  27. package/dist/{useCommands-BrkGKdXr.js.map → useCommands-F-b_SwW-.js.map} +1 -1
  28. package/dist/{validation-CaBO9Iw-.js → validation-hn5ZX8Po.js} +8 -8
  29. package/dist/{validation-CaBO9Iw-.js.map → validation-hn5ZX8Po.js.map} +1 -1
  30. package/example/package.json +1 -1
  31. package/package.json +4 -3
  32. package/dist/SnowconeCanvas-DjszZvte.js.map +0 -1
  33. package/dist/design-builder-DCHVrEFV.js.map +0 -1
  34. package/dist/embed-DNWM7gZL.js.map +0 -1
package/ERROR_CONTRACT.md CHANGED
@@ -480,7 +480,7 @@ the issue key in `error.data.issue`.
480
480
  - `src/components/editor/EditorPreview.tsx`
481
481
 
482
482
  ```text
483
- Editor.Preview: invalid loadingOverlay value ${JSON.stringify(value)}. A mockup preview always has a render-in-flight treatment (the loader paints over the still-visible previous mockup). Omit the prop for the default rainbow overlay, pass "dark" | "light", pass a custom ReactElement, or declare "host-owned" if the host renders its own indicator off data-sc-preview-state / <Editor.LoadingOverlay>.
483
+ Editor.Preview: invalid loadingOverlay value ${JSON.stringify(value)}. A mockup preview always has a render-in-flight treatment (the loader paints over the still-visible previous mockup). Omit the prop for the default (the beam over a picture being edited, the rainbow before one), pass an imported loader component (loadingOverlay={BeamLoader} from "@snowcone-app/loaders/beam"), "dark" | "light" for the rainbow always, a custom ReactElement, or declare "host-owned" if the host renders its own indicator off data-sc-preview-state / <Editor.LoadingOverlay>.
484
484
  ```
485
485
 
486
486
  `error.data`: `code`, `docSlug`
@@ -2,9 +2,9 @@ import { jsx as t, jsxs as p, Fragment as Ve } from "react/jsx-runtime";
2
2
  import * as re from "react";
3
3
  import Le, { useRef as W, useEffect as G, useCallback as S, useState as N, useLayoutEffect as Uo, useMemo as We, memo as Bo, useSyncExternalStore as Mr } from "react";
4
4
  import { createPortal as jo } from "react-dom";
5
- import { b as Zt, e as $o, c as Er, v as Ir } from "./design-builder-DCHVrEFV.js";
6
- import { u as Ho, I as Q, c as De, V as Rr, i as de, m as wt, B as J, W as Lr, T as pe, q as me, r as he, X as j, w as Vt, a as Wo, U as tt, D as zr, C as Ar, j as Fr, S as Or } from "./useCommands-BrkGKdXr.js";
7
- import { R as xs, L as Ne, a as _r, I as Ur, T as ct } from "./custom-icons-C4bzABm2.js";
5
+ import { b as Zt, e as $o, c as Er, v as Ir } from "./design-builder-sH53Og6j.js";
6
+ import { u as Ho, I as Q, c as De, V as Rr, i as de, m as wt, B as J, W as Lr, T as pe, q as me, r as he, X as j, w as Vt, a as Wo, U as tt, D as zr, C as Ar, j as Fr, S as Or } from "./useCommands-F-b_SwW-.js";
7
+ import { R as xs, L as Ne, a as _r, I as Ur, T as ct } from "./custom-icons-DQRp8GhF.js";
8
8
  import { I as Xe, c as Pt, i as Vo, aZ as Yo, b2 as Xo, a_ as To, b3 as Br, Z as jr, b4 as $r, b5 as Hr, b6 as Wr, b7 as Vr, b8 as No, Y as So, X as Yr, G as Et, T as je, q as Xr, S as Xs, P as qo, t as qr, b9 as Ko, ba as Kr, b1 as Gr } from "./FontAnalyzer-Ds3Wdba7.js";
9
9
  import * as It from "@radix-ui/react-popover";
10
10
  import * as pt from "@radix-ui/react-slider";
@@ -6805,4 +6805,4 @@ export {
6805
6805
  fd as s,
6806
6806
  sl as u
6807
6807
  };
6808
- //# sourceMappingURL=ContextualToolbars-rCZo-KCm.js.map
6808
+ //# sourceMappingURL=ContextualToolbars-5tHC6s0Y.js.map