@janbox/storefront-builder 2.0.24 → 2.0.25
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/components/composer/dataset.d.ts +2 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/editor.js +81 -77
- package/dist/{index-BBoR6Gy_.js → index-C9gD44fK.js} +1 -1
- package/dist/index-CglXRxzd.js +4 -0
- package/dist/index.js +82 -75
- package/dist/lib/count-up/README.md +129 -0
- package/dist/lib/count-up/count-up.inspector/count-up.inspector.d.ts +1 -0
- package/dist/lib/count-up/count-up.inspector/index.d.ts +1 -0
- package/dist/lib/count-up/count-up.node/count-up.node.d.ts +2 -0
- package/dist/lib/count-up/count-up.node/helpers.d.ts +3 -0
- package/dist/lib/count-up/count-up.node/index.d.ts +3 -0
- package/dist/lib/count-up/count-up.node/types.d.ts +2 -0
- package/dist/lib/count-up/index.d.ts +1 -0
- package/dist/lib/icon/README.md +9 -18
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/rating/README.md +126 -0
- package/dist/lib/rating/index.d.ts +2 -0
- package/dist/lib/rating/rating/helpers.d.ts +4 -0
- package/dist/lib/rating/rating/index.d.ts +3 -0
- package/dist/lib/rating/rating/rating.d.ts +2 -0
- package/dist/lib/rating/rating/types.d.ts +10 -0
- package/dist/lib/rating/rating.inspector/index.d.ts +1 -0
- package/dist/lib/rating/rating.inspector/rating.inspector.d.ts +1 -0
- package/dist/lib/rating/rating.node/helpers.d.ts +3 -0
- package/dist/lib/rating/rating.node/index.d.ts +3 -0
- package/dist/lib/rating/rating.node/rating.node.d.ts +2 -0
- package/dist/lib/rating/rating.node/types.d.ts +2 -0
- package/dist/templates/sections/brand-story/about-story.d.ts +2 -0
- package/dist/templates/sections/hero/notebook-hero.d.ts +2 -0
- package/dist/templates/sections/index.d.ts +1 -0
- package/dist/templates/sections/testimonial/before-after.d.ts +2 -0
- package/dist/templates/sections/testimonial/index.d.ts +2 -0
- package/dist/templates.js +826 -202
- package/dist/{toaster-DMjFxzB_.js → toaster-CzSp838P.js} +6465 -6172
- package/package.json +3 -3
- package/dist/index-BPG8gpQT.js +0 -4
|
@@ -32,4 +32,6 @@ export declare const defaultResolver: {
|
|
|
32
32
|
"accordion-summary": ({ children, ...props }: import('../../lib/accordion-summary/accordion-summary.node').AccordionSummaryNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
33
|
"accordion-content": ({ children, ...props }: import('../../lib/accordion-content/accordion-content.node').AccordionContentNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
34
|
"countdown-timer": ({ unitItemProps, captionProps, timeProps, units, date, hideAfterExpired, ...props }: import('../../lib/countdown-timer/countdown-timer.node/types').CountdownTimerNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
|
+
"count-up": (props: import('../../lib/count-up/count-up.node').CountUpNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
36
|
+
rating: (props: import('../../lib/rating/rating.node').RatingNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
37
|
};
|
|
@@ -33,6 +33,8 @@ export declare enum CoreNodeResolvedEnum {
|
|
|
33
33
|
AccordionContent = "accordion-content",
|
|
34
34
|
Container = "container",
|
|
35
35
|
CountdownTimer = "countdown-timer",
|
|
36
|
+
CountUp = "count-up",
|
|
37
|
+
Rating = "rating",
|
|
36
38
|
Inline = "inline"
|
|
37
39
|
}
|
|
38
40
|
export declare enum NodeDatasetAttributes {
|
package/dist/editor.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as n, jsxs as w, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { throttle as cn, isFunction as
|
|
1
|
+
import { jsx as n, jsxs as w, Fragment as Oe } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { aB as gt, aC as ft, aD as bt, aE as f, aF as wt, aG as ce, aH as $, aI as fe, b as Ie, B as Me, a6 as kt, aJ as J, aK as He, aL as mt, aM as W, aN as I, aA as $e, az as Ct, aO as vt, aP as xt, aQ as yt, aR as Tt, aS as It, aT as Mt, aU as St, aV as _e, aW as Et, aX as Lt, aY as Wt, aZ as Nt, a_ as Rt, u as H, a$ as At, b0 as Dt, b1 as oe, m as Bt, i as Pt, G as jt, l as Se, p as Vt, F as Ee, t as Ft, Z as Ot, I as Ht, b2 as $t, s as _t, P as zt, b3 as ze, b4 as Gt, b5 as Ut, b6 as Zt, b7 as Yt, b8 as Xt, b9 as _, ba as Ge, bb as qt, bc as Jt, bd as ke, be as Kt, bf as Qt, bg as en, a5 as Ue, a1 as Ze, bh as Le, bi as tn, N as me, bj as nn, bk as rn, bl as on, a3 as sn, bm as We, bn as an } from "./toaster-CzSp838P.js";
|
|
3
|
+
import { bo as So, bp as Eo, bq as Lo, br as Wo, bs as No, bt as Ro, bu as Ao, bv as Do, bw as Bo, bx as Po, by as jo, bz as Vo, bA as Fo, bB as Oo, bC as Ho, bD as $o, bE as _o, bF as zo, bG as Go, bH as Uo, bI as Zo, bJ as Yo, bK as Xo, bL as qo, bM as Jo, bN as Ko, bO as Qo, bP as es, bQ as ts, bR as ns, bS as rs, bT as os, bU as ss, bV as is, bW as as, bX as cs, bY as ls, bZ as ds, b_ as hs, b$ as us, c0 as ps, c1 as gs, c2 as fs, c3 as bs, c4 as ws, c5 as ks, c6 as ms, c7 as Cs, c8 as vs, c9 as xs, ca as ys, cb as Ts, W as Is, cc as Ms, cd as Ss, ce as Es, cf as Ls, cg as Ws } from "./toaster-CzSp838P.js";
|
|
4
|
+
import { throttle as cn, isFunction as Ne, isNumber as se, isNil as ee, isEqual as ln } from "lodash-es";
|
|
5
5
|
import { useImperativeHandle as dn, useMemo as hn, isValidElement as un, useState as P, useRef as G, useEffect as V, Fragment as ie, Suspense as pn, createElement as Ye, useCallback as gn } from "react";
|
|
6
6
|
import "flat";
|
|
7
|
-
import { FLOATING_Z_INDEX as Xe, ThemeProvider as fn, breakpoint as bn, createTheme as
|
|
7
|
+
import { FLOATING_Z_INDEX as Xe, ThemeProvider as fn, breakpoint as bn, createTheme as Re } from "@janbox/storefront-ui/theme";
|
|
8
8
|
import "@janbox/storefront-ui/hooks";
|
|
9
9
|
import { CacheProvider as wn, Global as kn, createElement as mn } from "@emotion/react";
|
|
10
|
-
import { useFloatingParentNodeId as Cn, FloatingTree as vn, useFloating as le, autoUpdate as de, offset as qe, size as Je, flip as
|
|
10
|
+
import { useFloatingParentNodeId as Cn, FloatingTree as vn, useFloating as le, autoUpdate as de, offset as qe, size as Je, flip as Ce, useClick as xn, useHover as Ke, useFocus as Qe, useDismiss as et, useRole as tt, useInteractions as nt, safePolygon as yn, FloatingPortal as he } from "@floating-ui/react";
|
|
11
11
|
import "react-colorful";
|
|
12
12
|
import "overlayscrollbars-react";
|
|
13
13
|
import "@tanstack/react-virtual";
|
|
14
|
-
import Tn, { useFrame as
|
|
14
|
+
import Tn, { useFrame as ve } from "react-frame-component";
|
|
15
15
|
import "react-dropzone";
|
|
16
16
|
import "react-datepicker";
|
|
17
|
-
import { a as rt, C as In } from "./index-
|
|
17
|
+
import { a as rt, C as In } from "./index-C9gD44fK.js";
|
|
18
18
|
import "@janbox/storefront-ui/utils";
|
|
19
19
|
import { useToggle as ot } from "usehooks-ts";
|
|
20
20
|
import "@hello-pangea/dnd";
|
|
@@ -56,7 +56,7 @@ const Sn = () => new Mn();
|
|
|
56
56
|
function En() {
|
|
57
57
|
return gt(Sn);
|
|
58
58
|
}
|
|
59
|
-
const Ln = (e) => Cn() ? /* @__PURE__ */ n(
|
|
59
|
+
const Ln = (e) => Cn() ? /* @__PURE__ */ n(Ae, { ...e }) : /* @__PURE__ */ n(vn, { children: /* @__PURE__ */ n(Ae, { ...e }) }), Ae = ({
|
|
60
60
|
open: e,
|
|
61
61
|
placement: t = "bottom",
|
|
62
62
|
onOpenChange: o,
|
|
@@ -83,7 +83,7 @@ const Ln = (e) => Cn() ? /* @__PURE__ */ n(Re, { ...e }) : /* @__PURE__ */ n(vn,
|
|
|
83
83
|
open: e,
|
|
84
84
|
onOpenChange: o,
|
|
85
85
|
placement: t,
|
|
86
|
-
middleware: [qe(k), Je(h),
|
|
86
|
+
middleware: [qe(k), Je(h), Ce()],
|
|
87
87
|
whileElementsMounted: (...A) => de(...A, u),
|
|
88
88
|
elements: d
|
|
89
89
|
});
|
|
@@ -274,7 +274,7 @@ var Rn = /* @__PURE__ */ (function() {
|
|
|
274
274
|
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
|
|
275
275
|
}), this.tags = [], this.ctr = 0;
|
|
276
276
|
}, e;
|
|
277
|
-
})(), L = "-ms-", ae = "-moz-", C = "-webkit-", st = "comm",
|
|
277
|
+
})(), L = "-ms-", ae = "-moz-", C = "-webkit-", st = "comm", xe = "rule", ye = "decl", An = "@import", it = "@keyframes", Dn = "@layer", Bn = Math.abs, ue = String.fromCharCode, Pn = Object.assign;
|
|
278
278
|
function jn(e, t) {
|
|
279
279
|
return E(e, 0) ^ 45 ? (((t << 2 ^ E(e, 0)) << 2 ^ E(e, 1)) << 2 ^ E(e, 2)) << 2 ^ E(e, 3) : 0;
|
|
280
280
|
}
|
|
@@ -299,7 +299,7 @@ function X(e, t, o) {
|
|
|
299
299
|
function D(e) {
|
|
300
300
|
return e.length;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Te(e) {
|
|
303
303
|
return e.length;
|
|
304
304
|
}
|
|
305
305
|
function Q(e, t) {
|
|
@@ -477,14 +477,14 @@ function re(e, t, o, r, i, s, l, a, d) {
|
|
|
477
477
|
x = 0;
|
|
478
478
|
// ;
|
|
479
479
|
case 59 + h:
|
|
480
|
-
m == -1 && (y = v(y, /\f/g, "")), p > 0 && D(y) - u && Q(p > 32 ?
|
|
480
|
+
m == -1 && (y = v(y, /\f/g, "")), p > 0 && D(y) - u && Q(p > 32 ? Be(y + ";", r, o, u - 1) : Be(v(y, " ", "") + ";", r, o, u - 2), d);
|
|
481
481
|
break;
|
|
482
482
|
// @ ;
|
|
483
483
|
case 59:
|
|
484
484
|
y += ";";
|
|
485
485
|
// { rule/at-rule
|
|
486
486
|
default:
|
|
487
|
-
if (Q(A =
|
|
487
|
+
if (Q(A = De(y, t, o, k, h, i, a, S, F = [], j = [], u), s), T === 123)
|
|
488
488
|
if (h === 0)
|
|
489
489
|
re(y, t, A, A, F, s, u, a, j);
|
|
490
490
|
else
|
|
@@ -494,7 +494,7 @@ function re(e, t, o, r, i, s, l, a, d) {
|
|
|
494
494
|
case 108:
|
|
495
495
|
case 109:
|
|
496
496
|
case 115:
|
|
497
|
-
re(e, A, A, r && Q(
|
|
497
|
+
re(e, A, A, r && Q(De(e, A, A, 0, 0, i, a, S, i, F = [], u), j), i, j, u, a, r ? F : j);
|
|
498
498
|
break;
|
|
499
499
|
default:
|
|
500
500
|
re(y, A, A, A, [""], j, 0, a, j);
|
|
@@ -532,20 +532,20 @@ function re(e, t, o, r, i, s, l, a, d) {
|
|
|
532
532
|
}
|
|
533
533
|
return s;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
for (var u = i - 1, c = i === 0 ? s : [""], p =
|
|
535
|
+
function De(e, t, o, r, i, s, l, a, d, k, h) {
|
|
536
|
+
for (var u = i - 1, c = i === 0 ? s : [""], p = Te(c), b = 0, g = 0, x = 0; b < r; ++b)
|
|
537
537
|
for (var m = 0, T = X(e, u + 1, u = Bn(g = l[b])), S = e; m < p; ++m)
|
|
538
538
|
(S = at(g > 0 ? c[m] + " " + T : v(T, /&\f/g, c[m]))) && (d[x++] = S);
|
|
539
|
-
return ge(e, t, o, i === 0 ?
|
|
539
|
+
return ge(e, t, o, i === 0 ? xe : a, d, k, h);
|
|
540
540
|
}
|
|
541
541
|
function Zn(e, t, o) {
|
|
542
542
|
return ge(e, t, o, st, ue(On()), X(e, 2, -2), 0);
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
return ge(e, t, o,
|
|
544
|
+
function Be(e, t, o, r) {
|
|
545
|
+
return ge(e, t, o, ye, X(e, 0, r), X(e, r + 1, -1), r);
|
|
546
546
|
}
|
|
547
547
|
function z(e, t) {
|
|
548
|
-
for (var o = "", r =
|
|
548
|
+
for (var o = "", r = Te(e), i = 0; i < r; i++)
|
|
549
549
|
o += t(e[i], i, e, t) || "";
|
|
550
550
|
return o;
|
|
551
551
|
}
|
|
@@ -554,19 +554,19 @@ function Yn(e, t, o, r) {
|
|
|
554
554
|
case Dn:
|
|
555
555
|
if (e.children.length) break;
|
|
556
556
|
case An:
|
|
557
|
-
case
|
|
557
|
+
case ye:
|
|
558
558
|
return e.return = e.return || e.value;
|
|
559
559
|
case st:
|
|
560
560
|
return "";
|
|
561
561
|
case it:
|
|
562
562
|
return e.return = e.value + "{" + z(e.children, r) + "}";
|
|
563
|
-
case
|
|
563
|
+
case xe:
|
|
564
564
|
e.value = e.props.join(",");
|
|
565
565
|
}
|
|
566
566
|
return D(o = z(e.children, r)) ? e.return = e.value + "{" + o + "}" : "";
|
|
567
567
|
}
|
|
568
568
|
function Xn(e) {
|
|
569
|
-
var t =
|
|
569
|
+
var t = Te(e);
|
|
570
570
|
return function(o, r, i, s) {
|
|
571
571
|
for (var l = "", a = 0; a < t; a++)
|
|
572
572
|
l += e[a](o, r, i, s) || "";
|
|
@@ -605,14 +605,14 @@ var Jn = function(t, o, r) {
|
|
|
605
605
|
return t;
|
|
606
606
|
}, Qn = function(t, o) {
|
|
607
607
|
return dt(Kn(lt(t), o));
|
|
608
|
-
},
|
|
608
|
+
}, Pe = /* @__PURE__ */ new WeakMap(), er = function(t) {
|
|
609
609
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
610
610
|
// negative .length indicates that this rule has been already prefixed
|
|
611
611
|
t.length < 1)) {
|
|
612
612
|
for (var o = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
|
|
613
613
|
if (r = r.parent, !r) return;
|
|
614
|
-
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !
|
|
615
|
-
|
|
614
|
+
if (!(t.props.length === 1 && o.charCodeAt(0) !== 58 && !Pe.get(r)) && !i) {
|
|
615
|
+
Pe.set(t, !0);
|
|
616
616
|
for (var s = [], l = Qn(o, s), a = r.props, d = 0, k = 0; d < l.length; d++)
|
|
617
617
|
for (var h = 0; h < a.length; h++, k++)
|
|
618
618
|
t.props[k] = s[d] ? l[d].replace(/&\f/g, a[h]) : a[h] + " " + l[d];
|
|
@@ -770,14 +770,14 @@ function ht(e, t) {
|
|
|
770
770
|
}
|
|
771
771
|
var nr = function(t, o, r, i) {
|
|
772
772
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
773
|
-
case
|
|
773
|
+
case ye:
|
|
774
774
|
t.return = ht(t.value, t.length);
|
|
775
775
|
break;
|
|
776
776
|
case it:
|
|
777
777
|
return z([Y(t, {
|
|
778
778
|
value: v(t.value, "@", "@" + C)
|
|
779
779
|
})], i);
|
|
780
|
-
case
|
|
780
|
+
case xe:
|
|
781
781
|
if (t.length) return Fn(t.props, function(s) {
|
|
782
782
|
switch (Vn(s, /(::plac\w+|:read-\w+)/)) {
|
|
783
783
|
// :read-(only|write)
|
|
@@ -864,7 +864,7 @@ const ut = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
864
864
|
}, 200), g = new ResizeObserver(b);
|
|
865
865
|
return r.current && g.observe(r.current), () => g.disconnect();
|
|
866
866
|
}, []);
|
|
867
|
-
const a =
|
|
867
|
+
const a = Ne(t?.width) ? t.width(s.width) : t?.width, d = Ne(t?.height) ? t.height(s.height) : t?.height, k = se(a) ? s.width / a : 1, h = se(d) ? s.height / d : 1, u = Math.min(k, h, 1), c = (d ?? s.height / u) || 0, p = (a ?? s.width / u) || 0;
|
|
868
868
|
return /* @__PURE__ */ n("div", { ...o, css: { padding: 8, width: "100%", height: "100%", backgroundColor: fe.ink["1s"] }, children: /* @__PURE__ */ n("div", { css: { position: "relative", overflow: "hidden", width: "100%", height: "100%" }, ref: r, children: /* @__PURE__ */ n(
|
|
869
869
|
"div",
|
|
870
870
|
{
|
|
@@ -889,7 +889,7 @@ const ut = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
889
889
|
}
|
|
890
890
|
) }) });
|
|
891
891
|
}, sr = ({ children: e, theme: t }) => {
|
|
892
|
-
const { document: o, window: r } =
|
|
892
|
+
const { document: o, window: r } = ve(), [i, s] = P(!1), l = G(window.customElements.define.bind(window.customElements));
|
|
893
893
|
V(() => {
|
|
894
894
|
const d = l.current;
|
|
895
895
|
return r && (window.customElements.define = function(k, h, u) {
|
|
@@ -902,7 +902,7 @@ const ut = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
902
902
|
key: "css",
|
|
903
903
|
container: o?.head
|
|
904
904
|
});
|
|
905
|
-
return i ? /* @__PURE__ */ n(
|
|
905
|
+
return i ? /* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ w(wn, { value: a, children: [
|
|
906
906
|
/* @__PURE__ */ n(
|
|
907
907
|
kn,
|
|
908
908
|
{
|
|
@@ -913,13 +913,13 @@ const ut = ({ children: e, viewport: t, containerProps: o }) => {
|
|
|
913
913
|
minHeight: "100vh",
|
|
914
914
|
justifyContent: "center"
|
|
915
915
|
},
|
|
916
|
-
[`& *[${
|
|
916
|
+
[`& *[${Ie.DATA_NODE_DROP_TARGET}=${Me.True}]`]: {
|
|
917
917
|
outlineWidth: 1,
|
|
918
918
|
outlineStyle: "solid",
|
|
919
919
|
outlineOffset: -1,
|
|
920
920
|
outlineColor: "green"
|
|
921
921
|
},
|
|
922
|
-
[`& *[${
|
|
922
|
+
[`& *[${Ie.DATA_NODE_DROP_TARGET_ERROR}=${Me.True}]`]: {
|
|
923
923
|
outlineColor: "red"
|
|
924
924
|
}
|
|
925
925
|
}
|
|
@@ -963,7 +963,7 @@ const ir = [
|
|
|
963
963
|
};
|
|
964
964
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
965
965
|
/* @__PURE__ */ n(J, { responsive: t, name: e ?? "Line height", children: /* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: ir.map((c) => /* @__PURE__ */ n(
|
|
966
|
-
|
|
966
|
+
He,
|
|
967
967
|
{
|
|
968
968
|
onChange: d,
|
|
969
969
|
checked: c.value === i,
|
|
@@ -981,14 +981,14 @@ const ir = [
|
|
|
981
981
|
value: l ?? "",
|
|
982
982
|
onChange: k,
|
|
983
983
|
prefix: /* @__PURE__ */ n(W, { disabled: se(l) && l <= 0, onClick: u, children: /* @__PURE__ */ n(I, { source: Ct }) }),
|
|
984
|
-
suffix: /* @__PURE__ */ n(W, { onClick: h, children: /* @__PURE__ */ n(I, { source:
|
|
984
|
+
suffix: /* @__PURE__ */ n(W, { onClick: h, children: /* @__PURE__ */ n(I, { source: $e }) }),
|
|
985
985
|
mode: "onBlur",
|
|
986
986
|
css: { textAlign: "center" },
|
|
987
987
|
placeholder: "normal"
|
|
988
988
|
}
|
|
989
989
|
) }) })
|
|
990
990
|
] });
|
|
991
|
-
},
|
|
991
|
+
}, je = [
|
|
992
992
|
{
|
|
993
993
|
label: "Block",
|
|
994
994
|
value: "block"
|
|
@@ -1024,7 +1024,7 @@ const ir = [
|
|
|
1024
1024
|
onChange: r,
|
|
1025
1025
|
value: i
|
|
1026
1026
|
}) => {
|
|
1027
|
-
const s = ee(o) ?
|
|
1027
|
+
const s = ee(o) ? je : je.filter((a) => o.includes(a.value)), l = (a) => {
|
|
1028
1028
|
r?.({ display: a });
|
|
1029
1029
|
};
|
|
1030
1030
|
return /* @__PURE__ */ n(J, { name: e ?? "Display", responsive: t, children: /* @__PURE__ */ n(
|
|
@@ -1069,7 +1069,7 @@ const ir = [
|
|
|
1069
1069
|
k && t?.(k.rawValue);
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ n(J, { name: o ?? "Content", responsive: r, children: /* @__PURE__ */ n("div", { css: { display: "inline-flex", alignItems: "center", gap: 8 }, children: s.map((d) => /* @__PURE__ */ n(
|
|
1072
|
-
|
|
1072
|
+
He,
|
|
1073
1073
|
{
|
|
1074
1074
|
checked: d.value === l,
|
|
1075
1075
|
value: d.value,
|
|
@@ -1140,7 +1140,7 @@ const ir = [
|
|
|
1140
1140
|
/* @__PURE__ */ n(Mt, { children: /* @__PURE__ */ w("div", { style: { width: 280 }, children: [
|
|
1141
1141
|
/* @__PURE__ */ w("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
1142
1142
|
/* @__PURE__ */ n("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
1143
|
-
/* @__PURE__ */ n(St, { children: /* @__PURE__ */ n(W, { children: /* @__PURE__ */ n(I, { source:
|
|
1143
|
+
/* @__PURE__ */ n(St, { children: /* @__PURE__ */ n(W, { children: /* @__PURE__ */ n(I, { source: _e }) }) })
|
|
1144
1144
|
] }),
|
|
1145
1145
|
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: f.palette.white["1s"] } }),
|
|
1146
1146
|
/* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
@@ -1171,7 +1171,7 @@ const ir = [
|
|
|
1171
1171
|
] })
|
|
1172
1172
|
] }) })
|
|
1173
1173
|
] }) });
|
|
1174
|
-
},
|
|
1174
|
+
}, Ve = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1175
1175
|
<path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1176
1176
|
<path d="M5 8H14C17.314 8 20 10.462 20 13.5V13.5C20 16.538 17.314 19 14 19H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1177
1177
|
</svg>
|
|
@@ -1226,7 +1226,7 @@ const ir = [
|
|
|
1226
1226
|
children: [
|
|
1227
1227
|
/* @__PURE__ */ w("div", { css: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
1228
1228
|
/* @__PURE__ */ n(W, { size: "32", onClick: b, children: /* @__PURE__ */ n(I, { source: lr }) }),
|
|
1229
|
-
/* @__PURE__ */ n(At, { onSelectionChange: c, value: o, children: Dt.map(({ icon: x, size: m }) => /* @__PURE__ */ n(W, { value: m, children: /* @__PURE__ */ n(I, { source: x }) }, m)) }),
|
|
1229
|
+
/* @__PURE__ */ n(At, { onSelectionChange: c, value: o, children: Dt.map(({ icon: x, size: m, name: T }) => /* @__PURE__ */ n(W, { tooltip: { content: T }, value: m, children: /* @__PURE__ */ n(I, { source: x }) }, m)) }),
|
|
1230
1230
|
/* @__PURE__ */ w(
|
|
1231
1231
|
"div",
|
|
1232
1232
|
{
|
|
@@ -1239,8 +1239,8 @@ const ir = [
|
|
|
1239
1239
|
backgroundColor: f.palette.white["1s"]
|
|
1240
1240
|
},
|
|
1241
1241
|
children: [
|
|
1242
|
-
/* @__PURE__ */ n(W, { onClick: a.undo, disabled: !h, children: /* @__PURE__ */ n(I, { source:
|
|
1243
|
-
/* @__PURE__ */ n(W, { onClick: a.redo, disabled: !k, children: /* @__PURE__ */ n(I, { source:
|
|
1242
|
+
/* @__PURE__ */ n(W, { onClick: a.undo, disabled: !h, children: /* @__PURE__ */ n(I, { source: Ve }) }),
|
|
1243
|
+
/* @__PURE__ */ n(W, { onClick: a.redo, disabled: !k, children: /* @__PURE__ */ n(I, { source: Ve, css: { transform: "rotate(180deg)" } }) })
|
|
1244
1244
|
]
|
|
1245
1245
|
}
|
|
1246
1246
|
),
|
|
@@ -1282,7 +1282,7 @@ const ir = [
|
|
|
1282
1282
|
<path d="M3 12H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1283
1283
|
<path d="M12 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1284
1284
|
</svg>
|
|
1285
|
-
`,
|
|
1285
|
+
`, Fe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1286
1286
|
<path d="M3 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1287
1287
|
<path d="M21 6V18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1288
1288
|
<path d="M6 21H18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -1294,12 +1294,12 @@ const ir = [
|
|
|
1294
1294
|
{
|
|
1295
1295
|
name: "Container",
|
|
1296
1296
|
template: /* @__PURE__ */ n(Bt, {}),
|
|
1297
|
-
icon: { source:
|
|
1297
|
+
icon: { source: Fe, height: 32 }
|
|
1298
1298
|
},
|
|
1299
1299
|
{
|
|
1300
1300
|
name: "Block",
|
|
1301
1301
|
template: /* @__PURE__ */ n(Pt, {}),
|
|
1302
|
-
icon: { source:
|
|
1302
|
+
icon: { source: Fe, height: 32 }
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
1305
1305
|
name: "Grid",
|
|
@@ -1315,8 +1315,8 @@ const ir = [
|
|
|
1315
1315
|
paddingBottom: 16
|
|
1316
1316
|
},
|
|
1317
1317
|
children: [
|
|
1318
|
-
/* @__PURE__ */ n(
|
|
1319
|
-
/* @__PURE__ */ n(
|
|
1318
|
+
/* @__PURE__ */ n(Se, {}),
|
|
1319
|
+
/* @__PURE__ */ n(Se, {})
|
|
1320
1320
|
]
|
|
1321
1321
|
}
|
|
1322
1322
|
),
|
|
@@ -1326,7 +1326,7 @@ const ir = [
|
|
|
1326
1326
|
name: "Flex",
|
|
1327
1327
|
template: /* @__PURE__ */ w(Vt, { sx: { columnGap: 8, rowGap: 8, paddingTop: 16, paddingBottom: 16 }, children: [
|
|
1328
1328
|
/* @__PURE__ */ n(
|
|
1329
|
-
|
|
1329
|
+
Ee,
|
|
1330
1330
|
{
|
|
1331
1331
|
sx: {
|
|
1332
1332
|
width: "40%"
|
|
@@ -1334,7 +1334,7 @@ const ir = [
|
|
|
1334
1334
|
}
|
|
1335
1335
|
),
|
|
1336
1336
|
/* @__PURE__ */ n(
|
|
1337
|
-
|
|
1337
|
+
Ee,
|
|
1338
1338
|
{
|
|
1339
1339
|
sx: {
|
|
1340
1340
|
width: "60%"
|
|
@@ -1451,7 +1451,7 @@ const ir = [
|
|
|
1451
1451
|
}, Mr = ({ groups: e }) => {
|
|
1452
1452
|
const t = [Ir, ...e ?? []];
|
|
1453
1453
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
1454
|
-
/* @__PURE__ */ n("div", { css: { display: "flex", padding: 8, alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(
|
|
1454
|
+
/* @__PURE__ */ n("div", { css: { display: "flex", padding: 8, alignItems: "center", gap: 12 }, children: /* @__PURE__ */ n(ze, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(I, { source: hr }) }) }),
|
|
1455
1455
|
/* @__PURE__ */ n(
|
|
1456
1456
|
ce,
|
|
1457
1457
|
{
|
|
@@ -1478,7 +1478,7 @@ const ir = [
|
|
|
1478
1478
|
/* @__PURE__ */ n(
|
|
1479
1479
|
I,
|
|
1480
1480
|
{
|
|
1481
|
-
source:
|
|
1481
|
+
source: Ge,
|
|
1482
1482
|
css: [{ transition: "transform" }, !t && { transform: "rotate(180deg)" }]
|
|
1483
1483
|
}
|
|
1484
1484
|
)
|
|
@@ -1524,7 +1524,7 @@ const ir = [
|
|
|
1524
1524
|
children: s.icon && /* @__PURE__ */ n(Jt, { width: void 0, height: void 0, ...s.icon })
|
|
1525
1525
|
}
|
|
1526
1526
|
),
|
|
1527
|
-
/* @__PURE__ */ n("p", { css: { marginInline: "auto", textAlign: "center", ...
|
|
1527
|
+
/* @__PURE__ */ n("p", { css: { marginInline: "auto", textAlign: "center", ...ke.xs }, children: s.name })
|
|
1528
1528
|
] }, l)) }) })
|
|
1529
1529
|
] });
|
|
1530
1530
|
}, Lr = ({ group: e }) => {
|
|
@@ -1533,7 +1533,7 @@ const ir = [
|
|
|
1533
1533
|
onOpenChange: o,
|
|
1534
1534
|
placement: "right-start",
|
|
1535
1535
|
middleware: [
|
|
1536
|
-
|
|
1536
|
+
Ce(),
|
|
1537
1537
|
Je({
|
|
1538
1538
|
apply({ elements: p }) {
|
|
1539
1539
|
const b = {
|
|
@@ -1730,7 +1730,6 @@ const ir = [
|
|
|
1730
1730
|
return /* @__PURE__ */ w(
|
|
1731
1731
|
"div",
|
|
1732
1732
|
{
|
|
1733
|
-
css: { paddingBlock: 4 },
|
|
1734
1733
|
children: [
|
|
1735
1734
|
/* @__PURE__ */ w(
|
|
1736
1735
|
"div",
|
|
@@ -1766,7 +1765,7 @@ const ir = [
|
|
|
1766
1765
|
i && { transform: "rotate(0deg)" }
|
|
1767
1766
|
],
|
|
1768
1767
|
size: 16,
|
|
1769
|
-
source:
|
|
1768
|
+
source: Ge
|
|
1770
1769
|
}
|
|
1771
1770
|
) }) : /* @__PURE__ */ n("div", { css: { padding: 4 }, children: /* @__PURE__ */ n(I, { size: 16, source: Rr }) }),
|
|
1772
1771
|
/* @__PURE__ */ n(
|
|
@@ -1777,7 +1776,8 @@ const ir = [
|
|
|
1777
1776
|
overflow: "hidden",
|
|
1778
1777
|
textOverflow: "ellipsis",
|
|
1779
1778
|
whiteSpace: "nowrap",
|
|
1780
|
-
flex: 1
|
|
1779
|
+
flex: 1,
|
|
1780
|
+
...ke.xs
|
|
1781
1781
|
},
|
|
1782
1782
|
!h && { color: f.palette.white["3s"] }
|
|
1783
1783
|
],
|
|
@@ -1793,7 +1793,11 @@ const ir = [
|
|
|
1793
1793
|
css: {
|
|
1794
1794
|
display: "flex",
|
|
1795
1795
|
flexDirection: "column",
|
|
1796
|
-
gap: 4
|
|
1796
|
+
gap: 4,
|
|
1797
|
+
marginTop: 4,
|
|
1798
|
+
":empty": {
|
|
1799
|
+
display: "none"
|
|
1800
|
+
}
|
|
1797
1801
|
},
|
|
1798
1802
|
children: e.children
|
|
1799
1803
|
}
|
|
@@ -1850,7 +1854,7 @@ const ir = [
|
|
|
1850
1854
|
}
|
|
1851
1855
|
)
|
|
1852
1856
|
] }),
|
|
1853
|
-
/* @__PURE__ */ n(W, { onClick: e, children: /* @__PURE__ */ n(I, { source:
|
|
1857
|
+
/* @__PURE__ */ n(W, { onClick: e, children: /* @__PURE__ */ n(I, { source: _e }) })
|
|
1854
1858
|
]
|
|
1855
1859
|
}
|
|
1856
1860
|
),
|
|
@@ -1898,7 +1902,7 @@ const ir = [
|
|
|
1898
1902
|
[c]: { main: p, contrast: b.contrast }
|
|
1899
1903
|
}
|
|
1900
1904
|
};
|
|
1901
|
-
e.setState({ theme:
|
|
1905
|
+
e.setState({ theme: Re(g) });
|
|
1902
1906
|
}, a = (c, p) => {
|
|
1903
1907
|
const b = s(c), g = {
|
|
1904
1908
|
palette: {
|
|
@@ -1908,7 +1912,7 @@ const ir = [
|
|
|
1908
1912
|
[c]: { main: b[600], contrast: p }
|
|
1909
1913
|
}
|
|
1910
1914
|
};
|
|
1911
|
-
e.setState({ theme:
|
|
1915
|
+
e.setState({ theme: Re(g) });
|
|
1912
1916
|
}, [d, k] = P(!1), h = async () => {
|
|
1913
1917
|
k(!0);
|
|
1914
1918
|
try {
|
|
@@ -1935,11 +1939,11 @@ const ir = [
|
|
|
1935
1939
|
children: /* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: Pr.map((c) => {
|
|
1936
1940
|
const p = s(c), b = Br.includes(c);
|
|
1937
1941
|
return /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
1938
|
-
/* @__PURE__ */ n("p", { css: { ...
|
|
1942
|
+
/* @__PURE__ */ n("p", { css: { ...ke.xs, color: f.palette.white["4s"] }, children: pt[c] }),
|
|
1939
1943
|
/* @__PURE__ */ w("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1940
1944
|
t && b && /* @__PURE__ */ w("div", { css: { display: "flex", gap: 4 }, children: [
|
|
1941
1945
|
/* @__PURE__ */ n(
|
|
1942
|
-
|
|
1946
|
+
Le,
|
|
1943
1947
|
{
|
|
1944
1948
|
hidePalette: !0,
|
|
1945
1949
|
color: p[600],
|
|
@@ -1948,7 +1952,7 @@ const ir = [
|
|
|
1948
1952
|
}
|
|
1949
1953
|
),
|
|
1950
1954
|
/* @__PURE__ */ n(
|
|
1951
|
-
|
|
1955
|
+
Le,
|
|
1952
1956
|
{
|
|
1953
1957
|
hidePalette: !0,
|
|
1954
1958
|
color: p.contrast,
|
|
@@ -2061,7 +2065,7 @@ const ir = [
|
|
|
2061
2065
|
},
|
|
2062
2066
|
children: [
|
|
2063
2067
|
/* @__PURE__ */ w("div", { css: { display: "flex", paddingInline: 4, flexDirection: "column", gap: 4 }, children: [
|
|
2064
|
-
!!e && /* @__PURE__ */ w(
|
|
2068
|
+
!!e && /* @__PURE__ */ w(Oe, { children: [
|
|
2065
2069
|
/* @__PURE__ */ n(
|
|
2066
2070
|
W,
|
|
2067
2071
|
{
|
|
@@ -2073,7 +2077,7 @@ const ir = [
|
|
|
2073
2077
|
value: "insert",
|
|
2074
2078
|
css: { position: "relative" },
|
|
2075
2079
|
size: "32",
|
|
2076
|
-
children: /* @__PURE__ */ n(I, { source:
|
|
2080
|
+
children: /* @__PURE__ */ n(I, { source: $e })
|
|
2077
2081
|
}
|
|
2078
2082
|
),
|
|
2079
2083
|
/* @__PURE__ */ n("hr", { css: { borderColor: f.palette.white["2s"] } })
|
|
@@ -2127,7 +2131,7 @@ const ir = [
|
|
|
2127
2131
|
r !== "theme" && !!a?.related?.inspector && /* @__PURE__ */ w("div", { css: { display: "flex", flexDirection: "column", overflow: "hidden", flex: 1 }, children: [
|
|
2128
2132
|
/* @__PURE__ */ w("div", { css: { display: "flex", paddingInline: 8, paddingBlock: 8, alignItems: "center", gap: 8 }, children: [
|
|
2129
2133
|
/* @__PURE__ */ n(W, { onClick: d, children: /* @__PURE__ */ n(I, { source: Or }) }),
|
|
2130
|
-
/* @__PURE__ */ n("div", { css: { overflow: "hidden", flex: 1 }, children: /* @__PURE__ */ n(
|
|
2134
|
+
/* @__PURE__ */ n("div", { css: { overflow: "hidden", flex: 1 }, children: /* @__PURE__ */ n(ze, { fullWidth: !0, value: Ze(a), size: "32" }) }),
|
|
2131
2135
|
l && /* @__PURE__ */ n(W, { value: a.id, onClick: k, children: /* @__PURE__ */ n(I, { css: { color: f.palette.red["4s"] }, source: tn }) })
|
|
2132
2136
|
] }),
|
|
2133
2137
|
/* @__PURE__ */ n(
|
|
@@ -2153,9 +2157,9 @@ const ir = [
|
|
|
2153
2157
|
t && /* @__PURE__ */ n(Dr, { onClose: o })
|
|
2154
2158
|
] });
|
|
2155
2159
|
}, _r = () => {
|
|
2156
|
-
const { dom: e } =
|
|
2160
|
+
const { dom: e } = me((s) => ({
|
|
2157
2161
|
dom: s.dom
|
|
2158
|
-
})), { document: t } =
|
|
2162
|
+
})), { document: t } = ve(), { floatingStyles: o, refs: r } = le({
|
|
2159
2163
|
open: !0,
|
|
2160
2164
|
strategy: "fixed",
|
|
2161
2165
|
placement: "bottom-start",
|
|
@@ -2194,7 +2198,7 @@ const ir = [
|
|
|
2194
2198
|
}
|
|
2195
2199
|
) }) : null;
|
|
2196
2200
|
}, zr = ({ render: e }) => {
|
|
2197
|
-
const { id: t, toolbar: o } =
|
|
2201
|
+
const { id: t, toolbar: o } = me((s) => ({
|
|
2198
2202
|
toolbar: sn(s).toolbar
|
|
2199
2203
|
})), { mode: r } = $(), { isActiveSelectable: i } = H((s, l) => {
|
|
2200
2204
|
const a = l.getEvent("selected").contains(t) && t !== _, d = a ? Ue(l.node(t).get()) : !1;
|
|
@@ -2208,10 +2212,10 @@ const ir = [
|
|
|
2208
2212
|
e
|
|
2209
2213
|
] });
|
|
2210
2214
|
}, Gr = ({ children: e }) => {
|
|
2211
|
-
const { dom: t } =
|
|
2215
|
+
const { dom: t } = me((s) => ({ dom: s.dom })), { document: o } = ve(), { floatingStyles: r, refs: i } = le({
|
|
2212
2216
|
open: !0,
|
|
2213
2217
|
placement: "bottom-start",
|
|
2214
|
-
middleware: [
|
|
2218
|
+
middleware: [Ce(), qe(4)],
|
|
2215
2219
|
whileElementsMounted: de
|
|
2216
2220
|
});
|
|
2217
2221
|
return V(() => {
|
|
@@ -2281,7 +2285,7 @@ const ir = [
|
|
|
2281
2285
|
ut,
|
|
2282
2286
|
{
|
|
2283
2287
|
viewport: {
|
|
2284
|
-
width: (d) => a === "lg" ? Math.max(d,
|
|
2288
|
+
width: (d) => a === "lg" ? Math.max(d, We[a]) : We[a]
|
|
2285
2289
|
},
|
|
2286
2290
|
children: l
|
|
2287
2291
|
}
|
|
@@ -2300,7 +2304,7 @@ export {
|
|
|
2300
2304
|
Wo as BorderToolbar,
|
|
2301
2305
|
No as ChildNodesToolbar,
|
|
2302
2306
|
Ro as ColorPickerContent,
|
|
2303
|
-
|
|
2307
|
+
Le as ColorPickerPopover,
|
|
2304
2308
|
Ao as ColorPreview,
|
|
2305
2309
|
Lt as ColorToolbar,
|
|
2306
2310
|
Do as ColorVariantToolbar,
|
|
@@ -2364,7 +2368,7 @@ export {
|
|
|
2364
2368
|
wo as WbFormLabel,
|
|
2365
2369
|
I as WbIcon,
|
|
2366
2370
|
W as WbIconButton,
|
|
2367
|
-
|
|
2371
|
+
ze as WbInput,
|
|
2368
2372
|
mt as WbInputNumber,
|
|
2369
2373
|
ps as WbLoadingOverlay,
|
|
2370
2374
|
gs as WbMenu,
|
|
@@ -2375,7 +2379,7 @@ export {
|
|
|
2375
2379
|
St as WbPopoverClose,
|
|
2376
2380
|
Mt as WbPopoverContent,
|
|
2377
2381
|
Tt as WbPopoverTrigger,
|
|
2378
|
-
|
|
2382
|
+
He as WbRadioButton,
|
|
2379
2383
|
ce as WbScrollView,
|
|
2380
2384
|
vt as WbSelect,
|
|
2381
2385
|
Jt as WbSvgLoader,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useEffect as f } from "react";
|
|
3
|
-
import { u as c, C as v, D as p, a as N, d as h, N as E, g as b, r as D, b as y, B as l } from "./toaster-
|
|
3
|
+
import { u as c, C as v, D as p, a as N, d as h, N as E, g as b, r as D, b as y, B as l } from "./toaster-CzSp838P.js";
|
|
4
4
|
import { isNil as u, isString as d } from "lodash-es";
|
|
5
5
|
import "flat";
|
|
6
6
|
const k = ({ children: t, data: e }) => {
|