@snowcone-app/canvas 0.16.0 → 0.17.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-BQD8fCBU.js → CanvasStateV1-C6i6vU6p.js} +63 -63
- package/dist/{CanvasStateV1-BQD8fCBU.js.map → CanvasStateV1-C6i6vU6p.js.map} +1 -1
- package/dist/EditorCanvasImpl-DkgE5-C2.js +68 -0
- package/dist/EditorCanvasImpl-DkgE5-C2.js.map +1 -0
- package/dist/EditorContext-CyanYzo2.js +1131 -0
- package/dist/EditorContext-CyanYzo2.js.map +1 -0
- package/dist/{ImportManager-eotl7r5d.js → ElementFactory-C05JJkRp.js} +1510 -5121
- package/dist/ElementFactory-C05JJkRp.js.map +1 -0
- package/dist/{HybridHistoryManager-NL3zyEl4.js → HybridHistoryManager-Bht98XRv.js} +98 -98
- package/dist/{HybridHistoryManager-NL3zyEl4.js.map → HybridHistoryManager-Bht98XRv.js.map} +1 -1
- package/dist/ImportManager-kRYfIX-D.js +3617 -0
- package/dist/ImportManager-kRYfIX-D.js.map +1 -0
- package/dist/SnowconeCanvas-C3eZ9PP8.js +1047 -0
- package/dist/SnowconeCanvas-C3eZ9PP8.js.map +1 -0
- package/dist/ThemeContext-Rjz25x9X.js +75 -0
- package/dist/ThemeContext-Rjz25x9X.js.map +1 -0
- package/dist/UnifiedFontService-BAtqqkU4.js +1478 -0
- package/dist/UnifiedFontService-BAtqqkU4.js.map +1 -0
- package/dist/advanced.mjs +210 -207
- package/dist/advanced.mjs.map +1 -1
- package/dist/api/embed.d.ts +8 -4
- package/dist/api/testing.d.ts +1 -0
- package/dist/components/editor/EditorBuy.d.ts +49 -0
- package/dist/components/editor/EditorCanvas.d.ts +30 -0
- package/dist/components/editor/EditorCanvasImpl.d.ts +33 -0
- package/dist/components/editor/EditorPreview.d.ts +39 -0
- package/dist/components/editor/EditorRoot.d.ts +86 -0
- package/dist/components/editor/EditorTextField.d.ts +22 -0
- package/dist/components/editor/RootInternals.d.ts +77 -0
- package/dist/components/editor/designStateStore.d.ts +45 -0
- package/dist/components/editor/index.d.ts +23 -0
- package/dist/components/embed-realtime/RealtimeCanvas.d.ts +1 -1
- package/dist/components/embed-realtime/RealtimeEmbed.d.ts +5 -78
- package/dist/components/embed-realtime/RealtimeMockup.d.ts +5 -34
- package/dist/components/embed-realtime/context.d.ts +12 -2
- package/dist/components/embed-realtime/validateEmbed.d.ts +17 -3
- package/dist/design/design-builder.d.ts +81 -6
- package/dist/editorError-DMENTZ-3.js +19 -0
- package/dist/editorError-DMENTZ-3.js.map +1 -0
- package/dist/editorErrors-DbIEtCTt.js +29 -0
- package/dist/editorErrors-DbIEtCTt.js.map +1 -0
- package/dist/embed-Bdj4PKUA.js +737 -0
- package/dist/embed-Bdj4PKUA.js.map +1 -0
- package/dist/embed.mjs +38 -230
- package/dist/embed.mjs.map +1 -1
- package/dist/errors/editorError.d.ts +57 -0
- package/dist/iconify-D6eVIEy4.js +1089 -0
- package/dist/iconify-D6eVIEy4.js.map +1 -0
- package/dist/index.mjs +48 -46
- package/dist/index.mjs.map +1 -1
- package/dist/internals.mjs +105 -104
- package/dist/internals.mjs.map +1 -1
- package/dist/template-fields-GOM4MNfq.js +643 -0
- package/dist/template-fields-GOM4MNfq.js.map +1 -0
- package/dist/testing/editorErrors.d.ts +30 -0
- package/dist/testing.mjs +28 -23
- package/dist/testing.mjs.map +1 -1
- package/dist/{usePieceGuideBundle-Cyl695jv.js → usePieceGuideBundle-CGERAQJl.js} +2 -2
- package/dist/{usePieceGuideBundle-Cyl695jv.js.map → usePieceGuideBundle-CGERAQJl.js.map} +1 -1
- package/dist/validation-DEd6EOCP.js +19947 -0
- package/dist/validation-DEd6EOCP.js.map +1 -0
- package/dist/workers/export-worker.bundle.string.d.ts +1 -1
- package/package.json +9 -4
- package/dist/ImportManager-eotl7r5d.js.map +0 -1
- package/dist/ThemeContext-D9AaUw9v.js +0 -1200
- package/dist/ThemeContext-D9AaUw9v.js.map +0 -1
- package/dist/template-fields-PcSPApl5.js +0 -1632
- package/dist/template-fields-PcSPApl5.js.map +0 -1
- package/dist/validation-BpEod0Rn.js +0 -22953
- package/dist/validation-BpEod0Rn.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as Kt } from "./HybridHistoryManager-
|
|
1
|
+
import { f as Gt } from "./ElementFactory-C05JJkRp.js";
|
|
2
|
+
import { A as Kt } from "./HybridHistoryManager-Bht98XRv.js";
|
|
3
3
|
var Pe;
|
|
4
4
|
function u(e, t, n) {
|
|
5
5
|
function o(c, a) {
|
|
@@ -442,7 +442,7 @@ const Ze = (e) => (t, n, o, r) => {
|
|
|
442
442
|
}, yn = (e) => (t, n, o) => pe(e)(t, n, o), bn = (e) => async (t, n, o) => {
|
|
443
443
|
const r = o ? { ...o, direction: "backward" } : { direction: "backward" };
|
|
444
444
|
return de(e)(t, n, r);
|
|
445
|
-
}, zn = (e) => async (t, n, o) => de(e)(t, n, o), wn = /^[cC][0-9a-z]{6,}$/, kn = /^[0-9a-z]+$/, $n = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Sn = /^[0-9a-vA-V]{20}$/, Zn = /^[A-Za-z0-9]{27}$/, On = /^[a-zA-Z0-9_-]{21}$/,
|
|
445
|
+
}, zn = (e) => async (t, n, o) => de(e)(t, n, o), wn = /^[cC][0-9a-z]{6,}$/, kn = /^[0-9a-z]+$/, $n = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Sn = /^[0-9a-vA-V]{20}$/, Zn = /^[A-Za-z0-9]{27}$/, On = /^[a-zA-Z0-9_-]{21}$/, Tn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, En = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ce = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, In = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Pn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
446
446
|
function Nn() {
|
|
447
447
|
return new RegExp(Pn, "u");
|
|
448
448
|
}
|
|
@@ -846,7 +846,7 @@ const ao = {
|
|
|
846
846
|
vendor: "zod",
|
|
847
847
|
version: 1
|
|
848
848
|
}));
|
|
849
|
-
}),
|
|
849
|
+
}), Te = /* @__PURE__ */ u("$ZodString", (e, t) => {
|
|
850
850
|
var n;
|
|
851
851
|
$.init(e, t), e._zod.pattern = [...((n = e == null ? void 0 : e._zod.bag) == null ? void 0 : n.patterns) ?? []].pop() ?? Ln(e._zod.bag), e._zod.parse = (o, r) => {
|
|
852
852
|
if (t.coerce)
|
|
@@ -862,9 +862,9 @@ const ao = {
|
|
|
862
862
|
}), o;
|
|
863
863
|
};
|
|
864
864
|
}), k = /* @__PURE__ */ u("$ZodStringFormat", (e, t) => {
|
|
865
|
-
he.init(e, t),
|
|
865
|
+
he.init(e, t), Te.init(e, t);
|
|
866
866
|
}), uo = /* @__PURE__ */ u("$ZodGUID", (e, t) => {
|
|
867
|
-
t.pattern ?? (t.pattern =
|
|
867
|
+
t.pattern ?? (t.pattern = En), k.init(e, t);
|
|
868
868
|
}), lo = /* @__PURE__ */ u("$ZodUUID", (e, t) => {
|
|
869
869
|
if (t.version) {
|
|
870
870
|
const o = {
|
|
@@ -951,7 +951,7 @@ const ao = {
|
|
|
951
951
|
}), ko = /* @__PURE__ */ u("$ZodISOTime", (e, t) => {
|
|
952
952
|
t.pattern ?? (t.pattern = Jn(t)), k.init(e, t);
|
|
953
953
|
}), $o = /* @__PURE__ */ u("$ZodISODuration", (e, t) => {
|
|
954
|
-
t.pattern ?? (t.pattern =
|
|
954
|
+
t.pattern ?? (t.pattern = Tn), k.init(e, t);
|
|
955
955
|
}), So = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
|
|
956
956
|
t.pattern ?? (t.pattern = An), k.init(e, t), e._zod.bag.format = "ipv4";
|
|
957
957
|
}), Zo = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
|
|
@@ -970,7 +970,7 @@ const ao = {
|
|
|
970
970
|
};
|
|
971
971
|
}), Oo = /* @__PURE__ */ u("$ZodCIDRv4", (e, t) => {
|
|
972
972
|
t.pattern ?? (t.pattern = jn), k.init(e, t);
|
|
973
|
-
}),
|
|
973
|
+
}), To = /* @__PURE__ */ u("$ZodCIDRv6", (e, t) => {
|
|
974
974
|
t.pattern ?? (t.pattern = xn), k.init(e, t), e._zod.check = (n) => {
|
|
975
975
|
const o = n.value.split("/");
|
|
976
976
|
try {
|
|
@@ -1007,7 +1007,7 @@ function mt(e) {
|
|
|
1007
1007
|
return !1;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
|
-
const
|
|
1010
|
+
const Eo = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
|
|
1011
1011
|
t.pattern ?? (t.pattern = Dn), k.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
1012
1012
|
mt(n.value) || n.issues.push({
|
|
1013
1013
|
code: "invalid_format",
|
|
@@ -1226,8 +1226,8 @@ const Fo = /* @__PURE__ */ u("$ZodObject", (e, t) => {
|
|
|
1226
1226
|
c.value = {};
|
|
1227
1227
|
const f = [], p = s.shape;
|
|
1228
1228
|
for (const g of s.keys) {
|
|
1229
|
-
const h = p[g], w = h._zod.optin === "optional",
|
|
1230
|
-
C instanceof Promise ? f.push(C.then((
|
|
1229
|
+
const h = p[g], w = h._zod.optin === "optional", T = h._zod.optout === "optional", C = h._zod.run({ value: l[g], issues: [] }, a);
|
|
1230
|
+
C instanceof Promise ? f.push(C.then((E) => ae(E, c, g, l, w, T))) : ae(C, c, g, l, w, T);
|
|
1231
1231
|
}
|
|
1232
1232
|
return i ? vt(f, l, c, a, o.value, e) : f.length ? Promise.all(f).then(() => c) : c;
|
|
1233
1233
|
};
|
|
@@ -1235,19 +1235,19 @@ const Fo = /* @__PURE__ */ u("$ZodObject", (e, t) => {
|
|
|
1235
1235
|
Fo.init(e, t);
|
|
1236
1236
|
const n = e._zod.parse, o = fe(() => _t(t)), r = (g) => {
|
|
1237
1237
|
var H, j;
|
|
1238
|
-
const h = new co(["shape", "payload", "ctx"]), w = o.value,
|
|
1238
|
+
const h = new co(["shape", "payload", "ctx"]), w = o.value, T = (F) => {
|
|
1239
1239
|
const O = Ae(F);
|
|
1240
1240
|
return `shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`;
|
|
1241
1241
|
};
|
|
1242
1242
|
h.write("const input = payload.value;");
|
|
1243
1243
|
const C = /* @__PURE__ */ Object.create(null);
|
|
1244
|
-
let
|
|
1244
|
+
let E = 0;
|
|
1245
1245
|
for (const F of w.keys)
|
|
1246
|
-
C[F] = `key_${
|
|
1246
|
+
C[F] = `key_${E++}`;
|
|
1247
1247
|
h.write("const newResult = {};");
|
|
1248
1248
|
for (const F of w.keys) {
|
|
1249
1249
|
const O = C[F], N = Ae(F), G = g[F], Ie = ((H = G == null ? void 0 : G._zod) == null ? void 0 : H.optin) === "optional", Wt = ((j = G == null ? void 0 : G._zod) == null ? void 0 : j.optout) === "optional";
|
|
1250
|
-
h.write(`const ${O} = ${
|
|
1250
|
+
h.write(`const ${O} = ${T(F)};`), Ie && Wt ? h.write(`
|
|
1251
1251
|
if (${O}.issues.length) {
|
|
1252
1252
|
if (${N} in input) {
|
|
1253
1253
|
payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
|
|
@@ -1944,7 +1944,7 @@ function Or(e, t) {
|
|
|
1944
1944
|
});
|
|
1945
1945
|
}
|
|
1946
1946
|
// @__NO_SIDE_EFFECTS__
|
|
1947
|
-
function
|
|
1947
|
+
function Tr(e, t) {
|
|
1948
1948
|
return new e({
|
|
1949
1949
|
type: "string",
|
|
1950
1950
|
format: "date",
|
|
@@ -1953,7 +1953,7 @@ function Er(e, t) {
|
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
1955
|
// @__NO_SIDE_EFFECTS__
|
|
1956
|
-
function
|
|
1956
|
+
function Er(e, t) {
|
|
1957
1957
|
return new e({
|
|
1958
1958
|
type: "string",
|
|
1959
1959
|
format: "time",
|
|
@@ -2233,10 +2233,10 @@ function I(e, t, n = { path: [], schemaPath: [] }) {
|
|
|
2233
2233
|
if (e._zod.processJSONSchema)
|
|
2234
2234
|
e._zod.processJSONSchema(t, s.schema, g);
|
|
2235
2235
|
else {
|
|
2236
|
-
const w = s.schema,
|
|
2237
|
-
if (!
|
|
2236
|
+
const w = s.schema, T = t.processors[r.type];
|
|
2237
|
+
if (!T)
|
|
2238
2238
|
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);
|
|
2239
|
-
|
|
2239
|
+
T(e, t, w, g);
|
|
2240
2240
|
}
|
|
2241
2241
|
const h = e._zod.parent;
|
|
2242
2242
|
h && (s.ref || (s.ref = h), I(h, t, g), t.seen.get(h).isParent = !0);
|
|
@@ -2260,14 +2260,14 @@ function $t(e, t) {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
2262
|
const r = (f) => {
|
|
2263
|
-
var
|
|
2263
|
+
var T;
|
|
2264
2264
|
const p = e.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2265
2265
|
if (e.external) {
|
|
2266
|
-
const C = (
|
|
2266
|
+
const C = (T = e.external.registry.get(f[0])) == null ? void 0 : T.id, E = e.external.uri ?? ((H) => H);
|
|
2267
2267
|
if (C)
|
|
2268
|
-
return { ref:
|
|
2268
|
+
return { ref: E(C) };
|
|
2269
2269
|
const P = f[1].defId ?? f[1].schema.id ?? `schema${e.counter++}`;
|
|
2270
|
-
return f[1].defId = P, { defId: P, ref: `${
|
|
2270
|
+
return f[1].defId = P, { defId: P, ref: `${E("__shared")}#/${p}/${P}` };
|
|
2271
2271
|
}
|
|
2272
2272
|
if (f[1] === n)
|
|
2273
2273
|
return { ref: "#" };
|
|
@@ -2279,8 +2279,8 @@ function $t(e, t) {
|
|
|
2279
2279
|
const p = f[1], { ref: g, defId: h } = r(f);
|
|
2280
2280
|
p.def = { ...p.schema }, h && (p.defId = h);
|
|
2281
2281
|
const w = p.schema;
|
|
2282
|
-
for (const
|
|
2283
|
-
delete w[
|
|
2282
|
+
for (const T in w)
|
|
2283
|
+
delete w[T];
|
|
2284
2284
|
w.$ref = g;
|
|
2285
2285
|
};
|
|
2286
2286
|
if (e.cycles === "throw")
|
|
@@ -2327,24 +2327,24 @@ function St(e, t) {
|
|
|
2327
2327
|
const g = e.seen.get(p);
|
|
2328
2328
|
if (g.ref === null)
|
|
2329
2329
|
return;
|
|
2330
|
-
const h = g.def ?? g.schema, w = { ...h },
|
|
2331
|
-
if (g.ref = null,
|
|
2332
|
-
o(
|
|
2333
|
-
const
|
|
2334
|
-
if (P.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (h.allOf = h.allOf ?? [], h.allOf.push(P)) : Object.assign(h, P), Object.assign(h, w), p._zod.parent ===
|
|
2330
|
+
const h = g.def ?? g.schema, w = { ...h }, T = g.ref;
|
|
2331
|
+
if (g.ref = null, T) {
|
|
2332
|
+
o(T);
|
|
2333
|
+
const E = e.seen.get(T), P = E.schema;
|
|
2334
|
+
if (P.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (h.allOf = h.allOf ?? [], h.allOf.push(P)) : Object.assign(h, P), Object.assign(h, w), p._zod.parent === T)
|
|
2335
2335
|
for (const j in h)
|
|
2336
2336
|
j === "$ref" || j === "allOf" || j in w || delete h[j];
|
|
2337
|
-
if (P.$ref &&
|
|
2337
|
+
if (P.$ref && E.def)
|
|
2338
2338
|
for (const j in h)
|
|
2339
|
-
j === "$ref" || j === "allOf" || j in
|
|
2339
|
+
j === "$ref" || j === "allOf" || j in E.def && JSON.stringify(h[j]) === JSON.stringify(E.def[j]) && delete h[j];
|
|
2340
2340
|
}
|
|
2341
2341
|
const C = p._zod.parent;
|
|
2342
|
-
if (C && C !==
|
|
2342
|
+
if (C && C !== T) {
|
|
2343
2343
|
o(C);
|
|
2344
|
-
const
|
|
2345
|
-
if (
|
|
2344
|
+
const E = e.seen.get(C);
|
|
2345
|
+
if (E != null && E.schema.$ref && (h.$ref = E.schema.$ref, E.def))
|
|
2346
2346
|
for (const P in h)
|
|
2347
|
-
P === "$ref" || P === "allOf" || P in
|
|
2347
|
+
P === "$ref" || P === "allOf" || P in E.def && JSON.stringify(h[P]) === JSON.stringify(E.def[P]) && delete h[P];
|
|
2348
2348
|
}
|
|
2349
2349
|
e.override({
|
|
2350
2350
|
zodSchema: p,
|
|
@@ -2593,13 +2593,13 @@ const wi = /* @__PURE__ */ u("ZodISODate", (e, t) => {
|
|
|
2593
2593
|
wo.init(e, t), Z.init(e, t);
|
|
2594
2594
|
});
|
|
2595
2595
|
function ki(e) {
|
|
2596
|
-
return /* @__PURE__ */
|
|
2596
|
+
return /* @__PURE__ */ Tr(wi, e);
|
|
2597
2597
|
}
|
|
2598
2598
|
const $i = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
|
|
2599
2599
|
ko.init(e, t), Z.init(e, t);
|
|
2600
2600
|
});
|
|
2601
2601
|
function Si(e) {
|
|
2602
|
-
return /* @__PURE__ */
|
|
2602
|
+
return /* @__PURE__ */ Er($i, e);
|
|
2603
2603
|
}
|
|
2604
2604
|
const Zi = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
|
|
2605
2605
|
$o.init(e, t), Z.init(e, t);
|
|
@@ -2607,7 +2607,7 @@ const Zi = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
|
|
|
2607
2607
|
function Oi(e) {
|
|
2608
2608
|
return /* @__PURE__ */ Ir(Zi, e);
|
|
2609
2609
|
}
|
|
2610
|
-
const
|
|
2610
|
+
const Ti = (e, t) => {
|
|
2611
2611
|
ct.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2612
2612
|
format: {
|
|
2613
2613
|
value: (n) => fn(e, n)
|
|
@@ -2636,9 +2636,9 @@ const Ei = (e, t) => {
|
|
|
2636
2636
|
// enumerable: false,
|
|
2637
2637
|
}
|
|
2638
2638
|
});
|
|
2639
|
-
}, U = /* @__PURE__ */ u("ZodError",
|
|
2639
|
+
}, U = /* @__PURE__ */ u("ZodError", Ti, {
|
|
2640
2640
|
Parent: Error
|
|
2641
|
-
}),
|
|
2641
|
+
}), Ei = /* @__PURE__ */ Ze(U), Ii = /* @__PURE__ */ Oe(U), Pi = /* @__PURE__ */ pe(U), Ni = /* @__PURE__ */ de(U), Ai = /* @__PURE__ */ hn(U), Ci = /* @__PURE__ */ mn(U), ji = /* @__PURE__ */ gn(U), xi = /* @__PURE__ */ _n(U), Di = /* @__PURE__ */ vn(U), Ri = /* @__PURE__ */ yn(U), Ui = /* @__PURE__ */ bn(U), Fi = /* @__PURE__ */ zn(U), Ke = /* @__PURE__ */ new WeakMap();
|
|
2642
2642
|
function oe(e, t, n) {
|
|
2643
2643
|
const o = Object.getPrototypeOf(e);
|
|
2644
2644
|
let r = Ke.get(o);
|
|
@@ -2675,7 +2675,7 @@ const S = /* @__PURE__ */ u("ZodType", (e, t) => ($.init(e, t), Object.assign(e[
|
|
|
2675
2675
|
input: le(e, "input"),
|
|
2676
2676
|
output: le(e, "output")
|
|
2677
2677
|
}
|
|
2678
|
-
}), e.toJSONSchema = Xr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (n, o) =>
|
|
2678
|
+
}), e.toJSONSchema = Xr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (n, o) => Ei(e, n, o, { callee: e.parse }), e.safeParse = (n, o) => Pi(e, n, o), e.parseAsync = async (n, o) => Ii(e, n, o, { callee: e.parseAsync }), e.safeParseAsync = async (n, o) => Ni(e, n, o), e.spa = e.safeParseAsync, e.encode = (n, o) => Ai(e, n, o), e.decode = (n, o) => Ci(e, n, o), e.encodeAsync = async (n, o) => ji(e, n, o), e.decodeAsync = async (n, o) => xi(e, n, o), e.safeEncode = (n, o) => Di(e, n, o), e.safeDecode = (n, o) => Ri(e, n, o), e.safeEncodeAsync = async (n, o) => Ui(e, n, o), e.safeDecodeAsync = async (n, o) => Fi(e, n, o), oe(e, "ZodType", {
|
|
2679
2679
|
check(...n) {
|
|
2680
2680
|
const o = this.def;
|
|
2681
2681
|
return this.clone(J(o, {
|
|
@@ -2774,7 +2774,7 @@ const S = /* @__PURE__ */ u("ZodType", (e, t) => ($.init(e, t), Object.assign(e[
|
|
|
2774
2774
|
},
|
|
2775
2775
|
configurable: !0
|
|
2776
2776
|
}), e)), Ot = /* @__PURE__ */ u("_ZodString", (e, t) => {
|
|
2777
|
-
|
|
2777
|
+
Te.init(e, t), S.init(e, t), e._zod.processJSONSchema = (o, r, i) => Qr(e, o, r);
|
|
2778
2778
|
const n = e._zod.bag;
|
|
2779
2779
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, oe(e, "_ZodString", {
|
|
2780
2780
|
regex(...o) {
|
|
@@ -2824,7 +2824,7 @@ const S = /* @__PURE__ */ u("ZodType", (e, t) => ($.init(e, t), Object.assign(e[
|
|
|
2824
2824
|
}
|
|
2825
2825
|
});
|
|
2826
2826
|
}), Ji = /* @__PURE__ */ u("ZodString", (e, t) => {
|
|
2827
|
-
|
|
2827
|
+
Te.init(e, t), Ot.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ sr(Mi, n)), e.url = (n) => e.check(/* @__PURE__ */ fr(Li, n)), e.jwt = (n) => e.check(/* @__PURE__ */ Zr(rs, n)), e.emoji = (n) => e.check(/* @__PURE__ */ pr(Vi, n)), e.guid = (n) => e.check(/* @__PURE__ */ Ve(Ye, n)), e.uuid = (n) => e.check(/* @__PURE__ */ cr(ce, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ ar(ce, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ ur(ce, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ lr(ce, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ dr(Bi, n)), e.guid = (n) => e.check(/* @__PURE__ */ Ve(Ye, n)), e.cuid = (n) => e.check(/* @__PURE__ */ hr(Wi, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ mr(Gi, n)), e.ulid = (n) => e.check(/* @__PURE__ */ gr(Ki, n)), e.base64 = (n) => e.check(/* @__PURE__ */ kr(ts, n)), e.base64url = (n) => e.check(/* @__PURE__ */ $r(ns, n)), e.xid = (n) => e.check(/* @__PURE__ */ _r(Yi, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ vr(qi, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ yr(Xi, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ br(Hi, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ zr(Qi, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ wr(es, n)), e.e164 = (n) => e.check(/* @__PURE__ */ Sr(os, n)), e.datetime = (n) => e.check(zi(n)), e.date = (n) => e.check(ki(n)), e.time = (n) => e.check(Si(n)), e.duration = (n) => e.check(Oi(n));
|
|
2828
2828
|
});
|
|
2829
2829
|
function z(e) {
|
|
2830
2830
|
return /* @__PURE__ */ ir(Ji, e);
|
|
@@ -2860,16 +2860,16 @@ const Z = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
|
|
|
2860
2860
|
}), Qi = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
|
|
2861
2861
|
Oo.init(e, t), Z.init(e, t);
|
|
2862
2862
|
}), es = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
|
|
2863
|
-
Eo.init(e, t), Z.init(e, t);
|
|
2864
|
-
}), ts = /* @__PURE__ */ u("ZodBase64", (e, t) => {
|
|
2865
2863
|
To.init(e, t), Z.init(e, t);
|
|
2864
|
+
}), ts = /* @__PURE__ */ u("ZodBase64", (e, t) => {
|
|
2865
|
+
Eo.init(e, t), Z.init(e, t);
|
|
2866
2866
|
}), ns = /* @__PURE__ */ u("ZodBase64URL", (e, t) => {
|
|
2867
2867
|
Po.init(e, t), Z.init(e, t);
|
|
2868
2868
|
}), os = /* @__PURE__ */ u("ZodE164", (e, t) => {
|
|
2869
2869
|
No.init(e, t), Z.init(e, t);
|
|
2870
2870
|
}), rs = /* @__PURE__ */ u("ZodJWT", (e, t) => {
|
|
2871
2871
|
Co.init(e, t), Z.init(e, t);
|
|
2872
|
-
}),
|
|
2872
|
+
}), Tt = /* @__PURE__ */ u("ZodNumber", (e, t) => {
|
|
2873
2873
|
gt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (o, r, i) => ei(e, o, r), oe(e, "ZodNumber", {
|
|
2874
2874
|
gt(o, r) {
|
|
2875
2875
|
return this.check(/* @__PURE__ */ We(o, r));
|
|
@@ -2921,10 +2921,10 @@ const Z = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
|
|
|
2921
2921
|
e.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), e.isFinite = !0, e.format = n.format ?? null;
|
|
2922
2922
|
});
|
|
2923
2923
|
function d(e) {
|
|
2924
|
-
return /* @__PURE__ */ Pr(
|
|
2924
|
+
return /* @__PURE__ */ Pr(Tt, e);
|
|
2925
2925
|
}
|
|
2926
2926
|
const is = /* @__PURE__ */ u("ZodNumberFormat", (e, t) => {
|
|
2927
|
-
jo.init(e, t),
|
|
2927
|
+
jo.init(e, t), Tt.init(e, t);
|
|
2928
2928
|
});
|
|
2929
2929
|
function qe(e) {
|
|
2930
2930
|
return /* @__PURE__ */ Nr(is, e);
|
|
@@ -3020,18 +3020,18 @@ function b(e, t) {
|
|
|
3020
3020
|
};
|
|
3021
3021
|
return new fs(n);
|
|
3022
3022
|
}
|
|
3023
|
-
const
|
|
3023
|
+
const Et = /* @__PURE__ */ u("ZodUnion", (e, t) => {
|
|
3024
3024
|
yt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (n, o, r) => li(e, n, o, r), e.options = t.options;
|
|
3025
3025
|
});
|
|
3026
3026
|
function ye(e, t) {
|
|
3027
|
-
return new
|
|
3027
|
+
return new Et({
|
|
3028
3028
|
type: "union",
|
|
3029
3029
|
options: e,
|
|
3030
3030
|
..._(t)
|
|
3031
3031
|
});
|
|
3032
3032
|
}
|
|
3033
3033
|
const ps = /* @__PURE__ */ u("ZodDiscriminatedUnion", (e, t) => {
|
|
3034
|
-
|
|
3034
|
+
Et.init(e, t), Mo.init(e, t);
|
|
3035
3035
|
});
|
|
3036
3036
|
function It(e, t, n) {
|
|
3037
3037
|
return new ps({
|
|
@@ -3199,22 +3199,22 @@ function Os(e, t) {
|
|
|
3199
3199
|
catchValue: typeof t == "function" ? t : () => t
|
|
3200
3200
|
});
|
|
3201
3201
|
}
|
|
3202
|
-
const
|
|
3202
|
+
const Ts = /* @__PURE__ */ u("ZodPipe", (e, t) => {
|
|
3203
3203
|
Qo.init(e, t), S.init(e, t), e._zod.processJSONSchema = (n, o, r) => _i(e, n, o, r), e.in = t.in, e.out = t.out;
|
|
3204
3204
|
});
|
|
3205
3205
|
function et(e, t) {
|
|
3206
|
-
return new
|
|
3206
|
+
return new Ts({
|
|
3207
3207
|
type: "pipe",
|
|
3208
3208
|
in: e,
|
|
3209
3209
|
out: t
|
|
3210
3210
|
// ...util.normalizeParams(params),
|
|
3211
3211
|
});
|
|
3212
3212
|
}
|
|
3213
|
-
const
|
|
3213
|
+
const Es = /* @__PURE__ */ u("ZodReadonly", (e, t) => {
|
|
3214
3214
|
er.init(e, t), S.init(e, t), e._zod.processJSONSchema = (n, o, r) => vi(e, n, o, r), e.unwrap = () => e._zod.def.innerType;
|
|
3215
3215
|
});
|
|
3216
3216
|
function Is(e) {
|
|
3217
|
-
return new
|
|
3217
|
+
return new Es({
|
|
3218
3218
|
type: "readonly",
|
|
3219
3219
|
innerType: e
|
|
3220
3220
|
});
|
|
@@ -3270,7 +3270,7 @@ const ze = b({
|
|
|
3270
3270
|
id: z(),
|
|
3271
3271
|
type: R(["clip", "alpha", "luma", "distress"]),
|
|
3272
3272
|
// maskElement is a nested element config -- use lazy to break the cycle
|
|
3273
|
-
maskElement: At(() =>
|
|
3273
|
+
maskElement: At(() => Ee),
|
|
3274
3274
|
inverted: m().optional(),
|
|
3275
3275
|
feather: d().optional(),
|
|
3276
3276
|
opacity: d().optional(),
|
|
@@ -3485,14 +3485,14 @@ const ze = b({
|
|
|
3485
3485
|
}), ec = re.extend({
|
|
3486
3486
|
transformType: v("group"),
|
|
3487
3487
|
transformData: Lt.optional(),
|
|
3488
|
-
children: At(() => D(
|
|
3488
|
+
children: At(() => D(Ee)).optional()
|
|
3489
3489
|
}), tc = re.extend({
|
|
3490
3490
|
transformType: v("shape"),
|
|
3491
3491
|
transformData: Vt.optional()
|
|
3492
3492
|
}), nc = re.extend({
|
|
3493
3493
|
transformType: v("path"),
|
|
3494
3494
|
transformData: Bt.optional()
|
|
3495
|
-
}),
|
|
3495
|
+
}), Ee = It("transformType", [
|
|
3496
3496
|
Bs,
|
|
3497
3497
|
Ws,
|
|
3498
3498
|
Gs,
|
|
@@ -3545,7 +3545,7 @@ const ze = b({
|
|
|
3545
3545
|
}), sc = b({
|
|
3546
3546
|
version: v(1),
|
|
3547
3547
|
artboards: D(ic),
|
|
3548
|
-
elements: D(
|
|
3548
|
+
elements: D(Ee),
|
|
3549
3549
|
activeArtboardId: z()
|
|
3550
3550
|
});
|
|
3551
3551
|
function pc(e, t) {
|
|
@@ -3680,7 +3680,7 @@ function ac(e) {
|
|
|
3680
3680
|
);
|
|
3681
3681
|
}
|
|
3682
3682
|
export {
|
|
3683
|
-
|
|
3683
|
+
Ee as A,
|
|
3684
3684
|
sc as C,
|
|
3685
3685
|
ic as S,
|
|
3686
3686
|
It as a,
|
|
@@ -3696,4 +3696,4 @@ export {
|
|
|
3696
3696
|
ye as u,
|
|
3697
3697
|
cc as v
|
|
3698
3698
|
};
|
|
3699
|
-
//# sourceMappingURL=CanvasStateV1-
|
|
3699
|
+
//# sourceMappingURL=CanvasStateV1-C6i6vU6p.js.map
|