@snowcone-app/canvas 0.23.0 → 0.27.0

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 (73) hide show
  1. package/ERROR_CONTRACT.md +638 -0
  2. package/README.md +2 -1
  3. package/STYLING_CONTRACT.md +59 -8
  4. package/dist/{CanvasRenderer-6_HhR4-q.js → CanvasRenderer-yszzrDfo.js} +4 -4
  5. package/dist/{CanvasRenderer-6_HhR4-q.js.map → CanvasRenderer-yszzrDfo.js.map} +1 -1
  6. package/dist/{CanvasStateV1-DmZ1Qvvn.js → CanvasStateV1-BTbCD_xC.js} +3 -3
  7. package/dist/{CanvasStateV1-DmZ1Qvvn.js.map → CanvasStateV1-BTbCD_xC.js.map} +1 -1
  8. package/dist/{ContextualToolbars-BDEt9ND0.js → ContextualToolbars-BHjYsril.js} +6 -6
  9. package/dist/{ContextualToolbars-BDEt9ND0.js.map → ContextualToolbars-BHjYsril.js.map} +1 -1
  10. package/dist/{EditorCanvasImpl-Ckg7WO2j.js → EditorCanvasImpl-Ui8Ceb-h.js} +8 -8
  11. package/dist/{EditorCanvasImpl-Ckg7WO2j.js.map → EditorCanvasImpl-Ui8Ceb-h.js.map} +1 -1
  12. package/dist/{ExportManager-DoU4VK6h.js → ExportManager-BTcyj4cf.js} +2 -2
  13. package/dist/{ExportManager-DoU4VK6h.js.map → ExportManager-BTcyj4cf.js.map} +1 -1
  14. package/dist/{FontAnalyzer-CwIpgTGd.js → FontAnalyzer-EF3gLPr8.js} +30 -20
  15. package/dist/{FontAnalyzer-CwIpgTGd.js.map → FontAnalyzer-EF3gLPr8.js.map} +1 -1
  16. package/dist/{ImagePanel-BwqFDKvW.js → ImagePanel-CIk6z41z.js} +6 -6
  17. package/dist/{ImagePanel-BwqFDKvW.js.map → ImagePanel-CIk6z41z.js.map} +1 -1
  18. package/dist/{SnowconeCanvas-D1sLcIja.js → SnowconeCanvas-DuWALOAt.js} +10 -10
  19. package/dist/{SnowconeCanvas-D1sLcIja.js.map → SnowconeCanvas-DuWALOAt.js.map} +1 -1
  20. package/dist/{UnifiedFontService-CC3CSmH5.js → UnifiedFontService-CHVYDBDW.js} +869 -836
  21. package/dist/{UnifiedFontService-CC3CSmH5.js.map → UnifiedFontService-CHVYDBDW.js.map} +1 -1
  22. package/dist/advanced.mjs +14 -14
  23. package/dist/api/embed.d.ts +6 -2
  24. package/dist/components/editor/EditorLoadingOverlay.d.ts +12 -0
  25. package/dist/components/editor/EditorPlacements.d.ts +14 -0
  26. package/dist/components/editor/EditorPreview.d.ts +32 -8
  27. package/dist/components/editor/EditorRoot.d.ts +12 -0
  28. package/dist/components/editor/PreviewPrismOverlay.d.ts +23 -0
  29. package/dist/components/editor/RootInternals.d.ts +31 -0
  30. package/dist/components/editor/editorAudit.d.ts +66 -0
  31. package/dist/components/editor/index.d.ts +14 -0
  32. package/dist/components/editor/usePlacements.d.ts +14 -0
  33. package/dist/components/embed-realtime/context.d.ts +11 -2
  34. package/dist/components/embed-realtime/validateEmbed.d.ts +20 -1
  35. package/dist/contexts/EditorContext.d.ts +34 -0
  36. package/dist/core/HybridHistoryManager.d.ts +7 -0
  37. package/dist/core/elementGuards.d.ts +19 -0
  38. package/dist/{custom-icons-BW6hqmkL.js → custom-icons-CcLMyybv.js} +7 -7
  39. package/dist/{custom-icons-BW6hqmkL.js.map → custom-icons-CcLMyybv.js.map} +1 -1
  40. package/dist/design/design-builder.d.ts +41 -3
  41. package/dist/design/product-config.d.ts +10 -0
  42. package/dist/{design-builder-2VUjfmdt.js → design-builder-cZY958Rw.js} +109 -61
  43. package/dist/design-builder-cZY958Rw.js.map +1 -0
  44. package/dist/editorErrors-BhrZ_nwj.js +1219 -0
  45. package/dist/editorErrors-BhrZ_nwj.js.map +1 -0
  46. package/dist/embed-CJswRZte.js +1586 -0
  47. package/dist/embed-CJswRZte.js.map +1 -0
  48. package/dist/embed.mjs +42 -34
  49. package/dist/errors/editorError.d.ts +29 -1
  50. package/dist/{guards-8rkFAMBs.js → guards-DIX8aXWM.js} +2 -2
  51. package/dist/{guards-8rkFAMBs.js.map → guards-DIX8aXWM.js.map} +1 -1
  52. package/dist/hooks/elementPatch.d.ts +96 -0
  53. package/dist/hooks/useCommands.d.ts +20 -0
  54. package/dist/index.mjs +8 -8
  55. package/dist/internals.mjs +9 -9
  56. package/dist/style.css +1 -1
  57. package/dist/template-fields-BXl29sgh.js +716 -0
  58. package/dist/template-fields-BXl29sgh.js.map +1 -0
  59. package/dist/testing.mjs +4 -4
  60. package/dist/{usePieceGuideBundle-CbJJg66S.js → usePieceGuideBundle-DE21DQGZ.js} +2 -2
  61. package/dist/{usePieceGuideBundle-CbJJg66S.js.map → usePieceGuideBundle-DE21DQGZ.js.map} +1 -1
  62. package/dist/{validation-C9Fe9ahK.js → validation-DGXAQmUC.js} +11 -11
  63. package/dist/{validation-C9Fe9ahK.js.map → validation-DGXAQmUC.js.map} +1 -1
  64. package/example/package.json +1 -1
  65. package/llms.txt +3 -0
  66. package/package.json +7 -4
  67. package/dist/design-builder-2VUjfmdt.js.map +0 -1
  68. package/dist/editorErrors-B2mb1sVN.js +0 -1208
  69. package/dist/editorErrors-B2mb1sVN.js.map +0 -1
  70. package/dist/embed-DxsaqZJF.js +0 -1226
  71. package/dist/embed-DxsaqZJF.js.map +0 -1
  72. package/dist/template-fields-CQ6n2P4V.js +0 -548
  73. package/dist/template-fields-CQ6n2P4V.js.map +0 -1
@@ -2,17 +2,17 @@ import { jsx as t, jsxs as f, Fragment as Ke } from "react/jsx-runtime";
2
2
  import * as se from "react";
3
3
  import we, { useRef as $, useEffect as X, useCallback as D, useState as T, useLayoutEffect as ic, useMemo as Ye, memo as lc } from "react";
4
4
  import { createPortal as xa } from "react-dom";
5
- import { u as dc, a as Ca, e as wa, f as ka } from "./editorErrors-B2mb1sVN.js";
6
- import { n as uc, I as P, y as Ce, K as Ta, H as ae, N as mt, B as te, z as Na, T as de, h as ue, i as fe, O as j, m as ss, U as We, J as Sa, C as Da, d as Ma, S as Ia } from "./UnifiedFontService-CC3CSmH5.js";
7
- import { R as cs, L as Ee, a as Ra, I as Ea, T as Ge } from "./custom-icons-BW6hqmkL.js";
5
+ import { u as dc, a as Ca, e as wa, f as ka } from "./editorErrors-BhrZ_nwj.js";
6
+ import { n as uc, I as P, z as Ce, N as Ta, J as ae, O as mt, B as te, A as Na, T as de, h as ue, i as fe, P as j, m as ss, U as We, K as Sa, C as Da, d as Ma, S as Ia } from "./UnifiedFontService-CHVYDBDW.js";
7
+ import { R as cs, L as Ee, a as Ra, I as Ea, T as Ge } from "./custom-icons-CcLMyybv.js";
8
8
  import * as ht from "@radix-ui/react-popover";
9
9
  import * as Je from "@radix-ui/react-slider";
10
- import { T as Xn, G as fc, H as Ms, J as Is, P as pc, Q as Rs, R as qn } from "./ExportManager-DoU4VK6h.js";
10
+ import { T as Xn, G as fc, H as Ms, J as Is, P as pc, Q as Rs, R as qn } from "./ExportManager-BTcyj4cf.js";
11
11
  import * as Us from "@radix-ui/react-collapsible";
12
12
  import * as Es from "@radix-ui/react-switch";
13
13
  import * as zs from "@radix-ui/react-checkbox";
14
14
  import * as mc from "@radix-ui/react-separator";
15
- import { C as Gn, aU as za, c as os, aV as La, aW as Fa, aX as Oa, aY as Aa, aZ as Pn, am as Zn, al as _a, G as gt, T as Le, g as Ba, I as Pe, S as hc, P as gc } from "./FontAnalyzer-CwIpgTGd.js";
15
+ import { C as Gn, aU as za, c as os, aV as La, aW as Fa, aX as Oa, aY as Aa, aZ as Pn, am as Zn, al as _a, G as gt, T as Le, g as Ba, I as Pe, S as hc, P as gc } from "./FontAnalyzer-EF3gLPr8.js";
16
16
  import * as xe from "@radix-ui/react-select";
17
17
  const Et = se.forwardRef(
18
18
  ({ className: e, checked: s, variant: n, ...c }, r) => {
@@ -5553,4 +5553,4 @@ export {
5553
5553
  Di as s,
5554
5554
  zr as u
5555
5555
  };
5556
- //# sourceMappingURL=ContextualToolbars-BDEt9ND0.js.map
5556
+ //# sourceMappingURL=ContextualToolbars-BHjYsril.js.map