@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.
- package/ERROR_CONTRACT.md +1 -1
- package/dist/{ContextualToolbars-rCZo-KCm.js → ContextualToolbars-5tHC6s0Y.js} +4 -4
- package/dist/{ContextualToolbars-rCZo-KCm.js.map → ContextualToolbars-5tHC6s0Y.js.map} +1 -1
- package/dist/{EditorCanvasImpl-Dcati77U.js → EditorCanvasImpl-Cd_umlTI.js} +6 -6
- package/dist/{EditorCanvasImpl-Dcati77U.js.map → EditorCanvasImpl-Cd_umlTI.js.map} +1 -1
- package/dist/{ImagePanel-DhOWKvIN.js → ImagePanel-bW3yr6Ac.js} +264 -259
- package/dist/{ImagePanel-DhOWKvIN.js.map → ImagePanel-bW3yr6Ac.js.map} +1 -1
- package/dist/{SnowconeCanvas-DjszZvte.js → SnowconeCanvas-crxPwbib.js} +441 -439
- package/dist/SnowconeCanvas-crxPwbib.js.map +1 -0
- package/dist/advanced.mjs +9 -9
- package/dist/components/editor/EditorPreview.d.ts +19 -8
- package/dist/components/editor/index.d.ts +1 -1
- package/dist/components/embed/SnowconeCanvas.d.ts +6 -0
- package/dist/components/embed/kernel.d.ts +2 -0
- package/dist/{custom-icons-C4bzABm2.js → custom-icons-DQRp8GhF.js} +2 -2
- package/dist/{custom-icons-C4bzABm2.js.map → custom-icons-DQRp8GhF.js.map} +1 -1
- package/dist/{design-builder-DCHVrEFV.js → design-builder-sH53Og6j.js} +598 -589
- package/dist/design-builder-sH53Og6j.js.map +1 -0
- package/dist/{embed-DNWM7gZL.js → embed-DvN5BVmQ.js} +669 -657
- package/dist/embed-DvN5BVmQ.js.map +1 -0
- package/dist/embed.mjs +4 -4
- package/dist/index.mjs +7 -7
- package/dist/{template-fields-CK7Uvvc8.js → template-fields-BaQG0CJY.js} +3 -3
- package/dist/{template-fields-CK7Uvvc8.js.map → template-fields-BaQG0CJY.js.map} +1 -1
- package/dist/testing.mjs +2 -2
- package/dist/{useCommands-BrkGKdXr.js → useCommands-F-b_SwW-.js} +3 -3
- package/dist/{useCommands-BrkGKdXr.js.map → useCommands-F-b_SwW-.js.map} +1 -1
- package/dist/{validation-CaBO9Iw-.js → validation-hn5ZX8Po.js} +8 -8
- package/dist/{validation-CaBO9Iw-.js.map → validation-hn5ZX8Po.js.map} +1 -1
- package/example/package.json +1 -1
- package/package.json +4 -3
- package/dist/SnowconeCanvas-DjszZvte.js.map +0 -1
- package/dist/design-builder-DCHVrEFV.js.map +0 -1
- 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
|
|
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-
|
|
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-
|
|
7
|
-
import { R as xs, L as Ne, a as _r, I as Ur, T as ct } from "./custom-icons-
|
|
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-
|
|
6808
|
+
//# sourceMappingURL=ContextualToolbars-5tHC6s0Y.js.map
|