@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
@@ -6507,6 +6507,16 @@ class ai {
6507
6507
  timestamp: Date.now()
6508
6508
  }, this.notifyCommandExecuted(e, "artboard", t);
6509
6509
  }
6510
+ /**
6511
+ * Peek at the command currently on top of an artboard's history (the entry
6512
+ * the next `undoArtboard` would undo), or null. Used by `updateElement`'s
6513
+ * coalescing to verify its last command is still the live tip before
6514
+ * folding a new patch into it.
6515
+ */
6516
+ peekArtboard(t) {
6517
+ const e = this.artboardHistories.get(t);
6518
+ return e ? e.history[e.currentIndex] ?? null : null;
6519
+ }
6510
6520
  /**
6511
6521
  * Smart undo - determines which history to use
6512
6522
  */
@@ -7142,7 +7152,7 @@ class Ve {
7142
7152
  }
7143
7153
  const hi = new Ve();
7144
7154
  export {
7145
- Me as $,
7155
+ be as $,
7146
7156
  nt as A,
7147
7157
  Q as B,
7148
7158
  re as C,
@@ -7163,24 +7173,24 @@ export {
7163
7173
  P as R,
7164
7174
  Ft as S,
7165
7175
  q as T,
7166
- ke as U,
7167
- Uo as V,
7176
+ ti as U,
7177
+ ke as V,
7168
7178
  We as W,
7169
- No as X,
7170
- Go as Y,
7171
- $o as Z,
7172
- be as _,
7179
+ Uo as X,
7180
+ No as Y,
7181
+ Go as Z,
7182
+ $o as _,
7173
7183
  Xo as a,
7174
- Fe as a0,
7175
- at as a1,
7176
- Ot as a2,
7177
- Tt as a3,
7178
- Bt as a4,
7179
- j as a5,
7180
- Xt as a6,
7181
- pe as a7,
7182
- So as a8,
7183
- Co as a9,
7184
+ Me as a0,
7185
+ Fe as a1,
7186
+ at as a2,
7187
+ Ot as a3,
7188
+ Tt as a4,
7189
+ Bt as a5,
7190
+ j as a6,
7191
+ Xt as a7,
7192
+ pe as a8,
7193
+ So as a9,
7184
7194
  ro as aA,
7185
7195
  Jo as aB,
7186
7196
  ce as aC,
@@ -7207,8 +7217,8 @@ export {
7207
7217
  wo as aX,
7208
7218
  Pe as aY,
7209
7219
  rt as aZ,
7210
- J as aa,
7211
- ti as ab,
7220
+ Co as aa,
7221
+ J as ab,
7212
7222
  ei as ac,
7213
7223
  oi as ad,
7214
7224
  ii as ae,
@@ -7259,4 +7269,4 @@ export {
7259
7269
  Dt as y,
7260
7270
  hi as z
7261
7271
  };
7262
- //# sourceMappingURL=FontAnalyzer-CwIpgTGd.js.map
7272
+ //# sourceMappingURL=FontAnalyzer-EF3gLPr8.js.map