@snowcone-app/canvas 0.11.1 → 0.12.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.
- package/dist/{CanvasStateV1-D3THl2Zc.js → CanvasStateV1-CKsfggNP.js} +3 -3
- package/dist/{CanvasStateV1-D3THl2Zc.js.map → CanvasStateV1-CKsfggNP.js.map} +1 -1
- package/dist/{HybridHistoryManager-DANuzx7G.js → HybridHistoryManager-NL3zyEl4.js} +21 -21
- package/dist/{HybridHistoryManager-DANuzx7G.js.map → HybridHistoryManager-NL3zyEl4.js.map} +1 -1
- package/dist/{ImportManager-NCtkY5Z0.js → ImportManager-eotl7r5d.js} +2 -2
- package/dist/{ImportManager-NCtkY5Z0.js.map → ImportManager-eotl7r5d.js.map} +1 -1
- package/dist/{ThemeContext-U-VDtIiS.js → ThemeContext-Cl1JPVLZ.js} +2 -2
- package/dist/{ThemeContext-U-VDtIiS.js.map → ThemeContext-Cl1JPVLZ.js.map} +1 -1
- package/dist/advanced.mjs +8 -8
- package/dist/api/embed.d.ts +3 -1
- package/dist/api/stable.d.ts +3 -1
- package/dist/components/embed-realtime/context.d.ts +9 -0
- package/dist/components/embed-realtime/usePieceGuideBundle.d.ts +48 -0
- package/dist/design/template-fields.d.ts +39 -1
- package/dist/embed.mjs +215 -155
- package/dist/embed.mjs.map +1 -1
- package/dist/hooks/useDeadBindingWarning.d.ts +2 -2
- package/dist/hooks/useFontBinding.d.ts +23 -0
- package/dist/index.mjs +24 -23
- package/dist/internals.mjs +4 -4
- package/dist/template-fields-IgDV7PRY.js +1627 -0
- package/dist/template-fields-IgDV7PRY.js.map +1 -0
- package/dist/testing.mjs +2 -2
- package/dist/utils/UnifiedFontService.d.ts +7 -0
- package/dist/{validation-C857Ptxn.js → validation-BpmNOvuY.js} +14 -4
- package/dist/{validation-C857Ptxn.js.map → validation-BpmNOvuY.js.map} +1 -1
- package/package.json +3 -3
- package/dist/template-fields-C8Tj67ek.js +0 -1585
- package/dist/template-fields-C8Tj67ek.js.map +0 -1
package/dist/testing.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u } from "react";
|
|
3
|
-
import { T as s, E as m } from "./ThemeContext-
|
|
4
|
-
import { ad as d, A as h, g, I as A } from "./HybridHistoryManager-
|
|
3
|
+
import { T as s, E as m } from "./ThemeContext-Cl1JPVLZ.js";
|
|
4
|
+
import { ad as d, A as h, g, I as A } from "./HybridHistoryManager-NL3zyEl4.js";
|
|
5
5
|
const x = ({
|
|
6
6
|
children: t,
|
|
7
7
|
initialElements: e = [],
|
|
@@ -39,6 +39,13 @@ declare class UnifiedFontServiceClass {
|
|
|
39
39
|
* platforms.
|
|
40
40
|
*/
|
|
41
41
|
loadFont(font: FontDefinition): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Load a Google Font by family name alone (full font, link injection).
|
|
44
|
+
* For callers that only have a family string — e.g. `useFontBinding`
|
|
45
|
+
* applying a template's designer-curated font option — not a full
|
|
46
|
+
* {@link FontDefinition}. Idempotent per family.
|
|
47
|
+
*/
|
|
48
|
+
loadGoogleFontByName(fontName: string): void;
|
|
42
49
|
/**
|
|
43
50
|
* Load Google Font via CSS link injection (full font)
|
|
44
51
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, jsxs as m, Fragment as jt } from "react/jsx-runtime";
|
|
2
2
|
import Oe, { createContext as Ir, useState as z, useEffect as ne, useCallback as H, useMemo as ft, useContext as yr, useRef as Y, forwardRef as Ci, createElement as da, useImperativeHandle as Cl, useLayoutEffect as Ra, memo as Da, useReducer as Nd, cloneElement as Md } from "react";
|
|
3
|
-
import { u as or, a as ki, s as Rd, f as Dd, e as Ia, g as kl } from "./ThemeContext-
|
|
4
|
-
import { c as un, G as je, I as Xt,
|
|
3
|
+
import { u as or, a as ki, s as Rd, f as Dd, e as Ia, g as kl } from "./ThemeContext-Cl1JPVLZ.js";
|
|
4
|
+
import { c as un, G as je, I as Xt, D as Aa, E as li, H as Sl, J as ms, K as Id, L as mr, M as Ad, N as qo, P as Jn, O as _n, Q as ni, U as Ld, T as mt, z as zd, V as ho, W as Pd, X as Od, Y as Fd, Z as Tl, _ as Bd, $ as Ui, a0 as Hd, a1 as $d, S as Rr, R as _d, C as Dr, a2 as fo, a3 as Xd, a4 as Ud, a5 as Yd, a6 as jd, a7 as Wd, a8 as gs, a9 as ys, aa as Vd, g as Gd } from "./HybridHistoryManager-NL3zyEl4.js";
|
|
5
5
|
import { createPortal as Si, unstable_batchedUpdates as Zo } from "react-dom";
|
|
6
|
-
import { g as Xr, e as Kd, r as qd, f as Zd, C as bs, h as ri, T as Jd, A as Qd, j as eu, S as tu, k as nu, l as La, D as ko, p as So, m as po, a as ru, n as xs, o as El, M as ua, I as Yi } from "./ImportManager-
|
|
6
|
+
import { g as Xr, e as Kd, r as qd, f as Zd, C as bs, h as ri, T as Jd, A as Qd, j as eu, S as tu, k as nu, l as La, D as ko, p as So, m as po, a as ru, n as xs, o as El, M as ua, I as Yi } from "./ImportManager-eotl7r5d.js";
|
|
7
7
|
import { renderToStaticMarkup as ou } from "react-dom/server";
|
|
8
8
|
import { Button as Be, Tooltip as vt, TooltipTrigger as wt, TooltipContent as Ct, Slider as bt, Drawer as Nl, DrawerContent as Ml, DrawerTitle as Rl, DrawerDescription as iu, Popover as Qn, PopoverTrigger as er, PopoverContent as tr, Disclosure as Ao, DisclosureTrigger as Lo, Label as xt, Switch as Ar, DisclosureContent as zo, Fieldset as $r, TooltipProvider as Dl, RadioGroup as ci, Radio as $n, Tabs as gt, Badge as Fr, TextField as uo, Input as mo, TextArea as au, Spinner as su, Checkbox as di, Surface as oi, Separator as Jo, Select as lu, SelectTrigger as cu, SelectValue as du, SelectContent as uu, SelectItem as hu } from "@snowcone-app/ui";
|
|
9
9
|
import { clsx as fu } from "clsx";
|
|
@@ -16718,6 +16718,15 @@ class i0 {
|
|
|
16718
16718
|
pl.error(`Failed to load font ${t.name}:`, n);
|
|
16719
16719
|
}
|
|
16720
16720
|
}
|
|
16721
|
+
/**
|
|
16722
|
+
* Load a Google Font by family name alone (full font, link injection).
|
|
16723
|
+
* For callers that only have a family string — e.g. `useFontBinding`
|
|
16724
|
+
* applying a template's designer-curated font option — not a full
|
|
16725
|
+
* {@link FontDefinition}. Idempotent per family.
|
|
16726
|
+
*/
|
|
16727
|
+
loadGoogleFontByName(t) {
|
|
16728
|
+
this.loadGoogleFont(t);
|
|
16729
|
+
}
|
|
16721
16730
|
/**
|
|
16722
16731
|
* Load Google Font via CSS link injection (full font)
|
|
16723
16732
|
*/
|
|
@@ -21138,6 +21147,7 @@ export {
|
|
|
21138
21147
|
C0 as af,
|
|
21139
21148
|
ut as ag,
|
|
21140
21149
|
ze as ah,
|
|
21150
|
+
Zn as ai,
|
|
21141
21151
|
Su as b,
|
|
21142
21152
|
Eu as c,
|
|
21143
21153
|
ku as d,
|
|
@@ -21164,4 +21174,4 @@ export {
|
|
|
21164
21174
|
Lg as y,
|
|
21165
21175
|
h0 as z
|
|
21166
21176
|
};
|
|
21167
|
-
//# sourceMappingURL=validation-
|
|
21177
|
+
//# sourceMappingURL=validation-BpmNOvuY.js.map
|