@snowcone-app/canvas 0.46.3 → 0.46.6
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/{CanvasRenderer-B8BADU_r.js → CanvasRenderer-CmIQSVCK.js} +4 -4
- package/dist/{CanvasRenderer-B8BADU_r.js.map → CanvasRenderer-CmIQSVCK.js.map} +1 -1
- package/dist/{ContextualToolbars-5tHC6s0Y.js → ContextualToolbars-Dmo86Wd2.js} +323 -322
- package/dist/{ContextualToolbars-5tHC6s0Y.js.map → ContextualToolbars-Dmo86Wd2.js.map} +1 -1
- package/dist/{EditorCanvasImpl-CrP9FSoY.js → EditorCanvasImpl-BHa8q4iO.js} +16 -15
- package/dist/{EditorCanvasImpl-CrP9FSoY.js.map → EditorCanvasImpl-BHa8q4iO.js.map} +1 -1
- package/dist/{ExportManager-xRsXgyNo.js → ExportManager-DEJgxB0S.js} +79 -78
- package/dist/{ExportManager-xRsXgyNo.js.map → ExportManager-DEJgxB0S.js.map} +1 -1
- package/dist/{FontAnalyzer-Ds3Wdba7.js → FontAnalyzer-CLMJi2Sw.js} +374 -409
- package/dist/FontAnalyzer-CLMJi2Sw.js.map +1 -0
- package/dist/{ImagePanel-bW3yr6Ac.js → ImagePanel-4fHABjNT.js} +6 -6
- package/dist/{ImagePanel-bW3yr6Ac.js.map → ImagePanel-4fHABjNT.js.map} +1 -1
- package/dist/{SnowconeCanvas-crxPwbib.js → SnowconeCanvas-GPag5BXG.js} +10 -10
- package/dist/{SnowconeCanvas-crxPwbib.js.map → SnowconeCanvas-GPag5BXG.js.map} +1 -1
- package/dist/advanced.mjs +54 -54
- package/dist/core/image-adjustments.d.ts +2 -4
- package/dist/core/masked-crop.d.ts +3 -55
- package/dist/{custom-icons-DQRp8GhF.js → custom-icons-Dt0Y4VSn.js} +2 -2
- package/dist/{custom-icons-DQRp8GhF.js.map → custom-icons-Dt0Y4VSn.js.map} +1 -1
- package/dist/design-builder-HKRo18WT.js +1798 -0
- package/dist/design-builder-HKRo18WT.js.map +1 -0
- package/dist/{embed-D0f-YvCl.js → embed-DhjsJ3ni.js} +10 -10
- package/dist/{embed-D0f-YvCl.js.map → embed-DhjsJ3ni.js.map} +1 -1
- package/dist/embed.mjs +35 -36
- package/dist/embed.mjs.map +1 -1
- package/dist/{export-worker.bundle.string-BL30CYzH.js → export-worker.bundle.string-CyMb_XjB.js} +27 -25
- package/dist/{export-worker.bundle.string-BL30CYzH.js.map → export-worker.bundle.string-CyMb_XjB.js.map} +1 -1
- package/dist/{guards-DwYEoqcn.js → guards-Dk86a-kH.js} +2 -2
- package/dist/{guards-DwYEoqcn.js.map → guards-Dk86a-kH.js.map} +1 -1
- package/dist/index.mjs +43 -43
- package/dist/internals.mjs +150 -149
- package/dist/internals.mjs.map +1 -1
- package/dist/rendering/serialize-for-server.d.ts +4 -91
- package/dist/state/CanvasStateV1.d.ts +1 -363
- package/dist/{CanvasStateV1-BlDWgOzV.js → template-fields-CKEuUmTM.js} +1997 -1835
- package/dist/template-fields-CKEuUmTM.js.map +1 -0
- package/dist/testing.mjs +61 -60
- package/dist/testing.mjs.map +1 -1
- package/dist/{useCommands-F-b_SwW-.js → useCommands-BI7O5Lf0.js} +225 -225
- package/dist/{useCommands-F-b_SwW-.js.map → useCommands-BI7O5Lf0.js.map} +1 -1
- package/dist/{usePieceGuideBundle-BWdobHQE.js → usePieceGuideBundle-DJfjOVEd.js} +2 -2
- package/dist/{usePieceGuideBundle-BWdobHQE.js.map → usePieceGuideBundle-DJfjOVEd.js.map} +1 -1
- package/dist/utils/custom-fonts.d.ts +2 -16
- package/dist/{validation-hn5ZX8Po.js → validation-au_-Sj-A.js} +11 -11
- package/dist/{validation-hn5ZX8Po.js.map → validation-au_-Sj-A.js.map} +1 -1
- package/dist/workers/export-worker.bundle.string.d.ts +1 -1
- package/example/package.json +1 -1
- package/package.json +4 -3
- package/dist/CanvasStateV1-BlDWgOzV.js.map +0 -1
- package/dist/FontAnalyzer-Ds3Wdba7.js.map +0 -1
- package/dist/design-builder-sH53Og6j.js +0 -1870
- package/dist/design-builder-sH53Og6j.js.map +0 -1
- package/dist/template-fields-BaQG0CJY.js +0 -559
- package/dist/template-fields-BaQG0CJY.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as Ze, o as et, E as tt, C as nt, y as se, z as oe, A as rt, F as it, G as st, H as ot, J as at, l as dt, e as lt } from "./useCommands-
|
|
2
|
-
import {
|
|
1
|
+
import { n as Ze, o as et, E as tt, C as nt, y as se, z as oe, A as rt, F as it, G as st, H as ot, J as at, l as dt, e as lt } from "./useCommands-BI7O5Lf0.js";
|
|
2
|
+
import { q as I, Y as De, p as K } from "./FontAnalyzer-CLMJi2Sw.js";
|
|
3
3
|
import { jsx as f, jsxs as U, Fragment as ct } from "react/jsx-runtime";
|
|
4
4
|
import we, { useContext as ut, createContext as mt, useRef as C, useState as D, useMemo as L, useCallback as G, useLayoutEffect as ae, useEffect as F, useSyncExternalStore as J, Component as pt, forwardRef as Le, useId as Ee, memo as ft, isValidElement as ke } from "react";
|
|
5
5
|
import { assertVariantSelected as ht, RenderSession as gt, createCartDetail as yt } from "@snowcone-app/sdk";
|
|
6
|
-
import {
|
|
7
|
-
import { u as kt, p as xt } from "./usePieceGuideBundle-
|
|
8
|
-
import { D as St, C as Rt,
|
|
9
|
-
import "
|
|
10
|
-
import "./
|
|
6
|
+
import { B as bt, E as vt, o as wt, q as Et } from "./design-builder-HKRo18WT.js";
|
|
7
|
+
import { u as kt, p as xt } from "./usePieceGuideBundle-DJfjOVEd.js";
|
|
8
|
+
import { D as St, C as Rt, g as It, e as Ot } from "./template-fields-CKEuUmTM.js";
|
|
9
|
+
import { serializeStateForServer as ee } from "@snowcone-app/design/wire";
|
|
10
|
+
import "./ExportManager-DEJgxB0S.js";
|
|
11
11
|
const Be = mt(void 0);
|
|
12
12
|
function te() {
|
|
13
13
|
const e = ut(Be);
|
|
@@ -713,7 +713,7 @@ function ze(e) {
|
|
|
713
713
|
// wrapper, which had no DOM at all, stays layout-identical).
|
|
714
714
|
/* @__PURE__ */ f("div", { className: "sc-root", style: { display: "contents" }, "data-sc-part": "root", children: /* @__PURE__ */ f(Pt, { reportedError: c, onRetry: () => a(null), children: /* @__PURE__ */ f(Vt, { ...e, internals: d, recordAudit: R }) }) });
|
|
715
715
|
}
|
|
716
|
-
let jt = () => import("./EditorCanvasImpl-
|
|
716
|
+
let jt = () => import("./EditorCanvasImpl-BHa8q4iO.js").then((e) => e.EditorCanvasImpl);
|
|
717
717
|
function Ke() {
|
|
718
718
|
return jt();
|
|
719
719
|
}
|
|
@@ -1269,7 +1269,7 @@ function ln({
|
|
|
1269
1269
|
return F(() => {
|
|
1270
1270
|
if (!s) return;
|
|
1271
1271
|
let a = !1;
|
|
1272
|
-
return import("./ContextualToolbars-
|
|
1272
|
+
return import("./ContextualToolbars-Dmo86Wd2.js").then((d) => d.s).then(
|
|
1273
1273
|
(d) => {
|
|
1274
1274
|
a || c(() => d.ContextualToolbars);
|
|
1275
1275
|
},
|
|
@@ -1932,4 +1932,4 @@ export {
|
|
|
1932
1932
|
te as u,
|
|
1933
1933
|
Dt as v
|
|
1934
1934
|
};
|
|
1935
|
-
//# sourceMappingURL=embed-
|
|
1935
|
+
//# sourceMappingURL=embed-DhjsJ3ni.js.map
|