@snowcone-app/canvas 0.46.11 → 0.46.13
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/ERROR_CONTRACT.md +13 -0
- package/dist/{CanvasRenderer-CLL5V71e.js → CanvasRenderer-CV8fDS6m.js} +2 -2
- package/dist/{CanvasRenderer-CLL5V71e.js.map → CanvasRenderer-CV8fDS6m.js.map} +1 -1
- package/dist/{ContextualToolbars-DnsfOy7x.js → ContextualToolbars-DsQ83_VR.js} +4 -4
- package/dist/{ContextualToolbars-DnsfOy7x.js.map → ContextualToolbars-DsQ83_VR.js.map} +1 -1
- package/dist/{EditorCanvasImpl-DDBa3pvE.js → EditorCanvasImpl-CbKLAe8P.js} +6 -6
- package/dist/{EditorCanvasImpl-DDBa3pvE.js.map → EditorCanvasImpl-CbKLAe8P.js.map} +1 -1
- package/dist/{ExportManager-BR5uca6R.js → ExportManager-Q4GQE68T.js} +381 -376
- package/dist/{ExportManager-BR5uca6R.js.map → ExportManager-Q4GQE68T.js.map} +1 -1
- package/dist/{ImagePanel-Bez-5INu.js → ImagePanel-DNgvLouH.js} +3 -3
- package/dist/{ImagePanel-Bez-5INu.js.map → ImagePanel-DNgvLouH.js.map} +1 -1
- package/dist/{SnowconeCanvas-Cjnp1ztd.js → SnowconeCanvas-Cu3IuAhp.js} +8 -8
- package/dist/{SnowconeCanvas-Cjnp1ztd.js.map → SnowconeCanvas-Cu3IuAhp.js.map} +1 -1
- package/dist/advanced.mjs +10 -10
- package/dist/{compose-CZslfDUm.js → compose-CatWJeVf.js} +3 -3
- package/dist/{compose-CZslfDUm.js.map → compose-CatWJeVf.js.map} +1 -1
- package/dist/{custom-icons-DIqddGX1.js → custom-icons-DP6uSyX-.js} +2 -2
- package/dist/{custom-icons-DIqddGX1.js.map → custom-icons-DP6uSyX-.js.map} +1 -1
- package/dist/{embed-BydDaNDy.js → embed-DobFUit8.js} +6 -6
- package/dist/{embed-BydDaNDy.js.map → embed-DobFUit8.js.map} +1 -1
- package/dist/embed.mjs +4 -4
- package/dist/errors/editorError.d.ts +3 -0
- package/dist/fontAnalysisCache-B2lh7X-_.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/internals.mjs +3 -3
- package/dist/{template-fields-cNoo8zDC.js → template-fields-BqGWVbJo.js} +3 -3
- package/dist/{template-fields-cNoo8zDC.js.map → template-fields-BqGWVbJo.js.map} +1 -1
- package/dist/{useCommands-mpsd0_l5.js → useCommands-DHwYOhSp.js} +5 -5
- package/dist/{useCommands-mpsd0_l5.js.map → useCommands-DHwYOhSp.js.map} +1 -1
- package/dist/{validation-DjdrFk2P.js → validation-EoPS9fDC.js} +9 -9
- package/dist/{validation-DjdrFk2P.js.map → validation-EoPS9fDC.js.map} +1 -1
- package/example/package.json +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ import * as F from "react";
|
|
|
3
3
|
import ne, { useRef as V, useState as B, useCallback as N, useMemo as X, useEffect as q, forwardRef as Pn, createElement as Sn, useLayoutEffect as $n, memo as Qo, useReducer as Zo, useContext as Be, createContext as Je, cloneElement as ei, useId as Pr, useSyncExternalStore as $r } from "react";
|
|
4
4
|
import { b as Yt, w as ti, o as ni, x as Hr, m as ri, q as oi } from "./design-builder-CCPB3WRx.js";
|
|
5
5
|
import { G as Ie, c as Qe, q as rt, Z as ii, I as si, P as ai, S as li, T as ci, aX as di, N as ui, aY as fi, aZ as hi, U as sr } from "./fontAnalysisCache-B2lh7X-_.js";
|
|
6
|
-
import { R as gi, I as ln, a as cn, S as dn } from "./ExportManager-
|
|
6
|
+
import { R as gi, I as ln, a as cn, S as dn } from "./ExportManager-Q4GQE68T.js";
|
|
7
7
|
import { createPortal as Hn, unstable_batchedUpdates as Ft } from "react-dom";
|
|
8
8
|
import { clsx as Br } from "clsx";
|
|
9
9
|
import { extendTailwindMerge as Vr } from "tailwind-merge";
|
|
@@ -7036,7 +7036,7 @@ const Dl = ({
|
|
|
7036
7036
|
var E;
|
|
7037
7037
|
const { get: a } = Hr(), [l, c] = B(!1), [u, d] = B(!1), [h, p] = B(!1), k = V(null), y = async () => {
|
|
7038
7038
|
try {
|
|
7039
|
-
const { ExportManager: v } = await import("./ExportManager-
|
|
7039
|
+
const { ExportManager: v } = await import("./ExportManager-Q4GQE68T.js").then((T) => T.a2), { artboardManager: D, elements: w } = a(), A = D.getAllArtboards();
|
|
7040
7040
|
v.exportToJSON(A, w, D), c(!1);
|
|
7041
7041
|
} catch (v) {
|
|
7042
7042
|
bn.error("Failed to save workspace:", v), alert("Failed to save workspace. Please try again.");
|
|
@@ -7090,7 +7090,7 @@ This will replace your current workspace. Continue?`
|
|
|
7090
7090
|
return;
|
|
7091
7091
|
}
|
|
7092
7092
|
try {
|
|
7093
|
-
const { ExportManager: T } = await import("./ExportManager-
|
|
7093
|
+
const { ExportManager: T } = await import("./ExportManager-Q4GQE68T.js").then((O) => O.a2);
|
|
7094
7094
|
await T.exportArtboardToImage(A, D, w.current, {
|
|
7095
7095
|
format: "png",
|
|
7096
7096
|
scale: 2,
|
|
@@ -7226,7 +7226,7 @@ function Go({
|
|
|
7226
7226
|
return q(() => {
|
|
7227
7227
|
if (!t || o) return;
|
|
7228
7228
|
let s = !1;
|
|
7229
|
-
return import("./ImagePanel-
|
|
7229
|
+
return import("./ImagePanel-DNgvLouH.js").then(
|
|
7230
7230
|
(a) => {
|
|
7231
7231
|
s || i(() => a.ImagePanel);
|
|
7232
7232
|
},
|
|
@@ -8150,4 +8150,4 @@ export {
|
|
|
8150
8150
|
or as y,
|
|
8151
8151
|
rn as z
|
|
8152
8152
|
};
|
|
8153
|
-
//# sourceMappingURL=useCommands-
|
|
8153
|
+
//# sourceMappingURL=useCommands-DHwYOhSp.js.map
|