@chaibuilder/sdk 1.2.52 → 1.2.53
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/{AddBlocks-fozauzIV.cjs → AddBlocks-7OJEZC2D.cjs} +1 -1
- package/dist/{AddBlocks-GxEmM16E.js → AddBlocks-kJNH96eQ.js} +1 -1
- package/dist/{CanvasArea-rdY6SFYn.js → CanvasArea-ZxrQurg_.js} +3 -3
- package/dist/{CanvasArea-NRtblq5d.cjs → CanvasArea-nWHWl6zD.cjs} +2 -2
- package/dist/{ChaiBuilderEditor-bNZZWYMh.js → ChaiBuilderEditor-4xhn_QlL.js} +2 -2
- package/dist/{ChaiBuilderEditor-Pga_zJgw.cjs → ChaiBuilderEditor-Rqlg194T.cjs} +1 -1
- package/dist/{CodeEditor-ye3IXW3i.cjs → CodeEditor-C6p5CZfl.cjs} +1 -1
- package/dist/{CodeEditor-tqtgia3I.js → CodeEditor-vTWgHJei.js} +1 -1
- package/dist/{CurrentPage-7NM90y76.js → CurrentPage-KPr8MnO0.js} +2 -2
- package/dist/{CurrentPage-sx7KVTmt.cjs → CurrentPage-bfY5xyr7.cjs} +1 -1
- package/dist/{ListTree-7Pz6H6eE.cjs → ListTree-4J0SUudU.cjs} +1 -1
- package/dist/{ListTree-oRbeDNod.js → ListTree-5s7iNbKT.js} +1 -1
- package/dist/{PagesPanel-XiTUaiq_.js → PagesPanel-aZBPSLS7.js} +3 -3
- package/dist/{PagesPanel-Nr-908vy.cjs → PagesPanel-re4w2009.cjs} +1 -1
- package/dist/{ProjectPanel-XfknsGkz.js → ProjectPanel-bWZtA_mw.js} +3 -3
- package/dist/{ProjectPanel-SuFYN60H.cjs → ProjectPanel-uo19SCtW.cjs} +1 -1
- package/dist/Settings-AcK9rEs3.cjs +1 -0
- package/dist/{Settings-dJ72rwnH.js → Settings-SK2ONoi0.js} +795 -805
- package/dist/{SidePanels-5dnRAsJh.cjs → SidePanels-YAKKqxIi.cjs} +1 -1
- package/dist/{SidePanels-t9oUA51J.js → SidePanels-ezU-hGki.js} +2 -2
- package/dist/{ThemeConfiguration-pcHbYiIP.js → ThemeConfiguration-q5rLYmXB.js} +1 -1
- package/dist/{ThemeConfiguration-2Sbh29qi.cjs → ThemeConfiguration-qUXsJBBZ.cjs} +1 -1
- package/dist/{Topbar-ID6Ipphd.cjs → Topbar-9mJ6dJn-.cjs} +1 -1
- package/dist/{Topbar-0DmS6VpB.js → Topbar-YhJ6xVs-.js} +1 -1
- package/dist/{UILibrariesPanel-G9J4KUsZ.js → UILibrariesPanel-N7acP7aA.js} +1 -1
- package/dist/{UILibrariesPanel-sXY6hozJ.cjs → UILibrariesPanel-uNt8spPr.cjs} +1 -1
- package/dist/{UnsplashImages-HK4_1VVL.cjs → UnsplashImages-5IlwWgRv.cjs} +1 -1
- package/dist/{UnsplashImages-MeS5Cu7a.js → UnsplashImages-iY__3dsJ.js} +1 -1
- package/dist/{UploadImages-AIKATqfP.js → UploadImages-KHk-jx9-.js} +1 -1
- package/dist/{UploadImages-LSnxByGV.cjs → UploadImages-UjtFHUqM.cjs} +1 -1
- package/dist/{add-page-modal-krxKdX7-.cjs → add-page-modal-8GuYgZa-.cjs} +1 -1
- package/dist/{add-page-modal-JkD45moJ.js → add-page-modal-HmfsbbCH.js} +3 -3
- package/dist/{confirm-alert-NHxthdRK.js → confirm-alert-AoUx_ZEf.js} +1 -1
- package/dist/{confirm-alert--QTC21Z2.cjs → confirm-alert-qdryZAvd.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-BIe0kYNH.cjs → delete-page-modal-8qEY88SK.cjs} +1 -1
- package/dist/{delete-page-modal-8rjPEchH.js → delete-page-modal-KCPx8Ako.js} +2 -2
- package/dist/email.cjs +1 -1
- package/dist/email.js +1 -1
- package/dist/{form-PQYPrD_Q.js → form-LHHE25z8.js} +1 -1
- package/dist/{form-6OLp5uEG.cjs → form-zHGQEmOp.cjs} +1 -1
- package/dist/{index-seU0_UZX.cjs → index-swYRuZtl.cjs} +1 -1
- package/dist/{index-9_b2eou7.js → index-tGVTszX2.js} +2 -2
- package/dist/{page-viewer-sKluQ_e1.js → page-viewer-P5yNaWy1.js} +3 -3
- package/dist/{page-viewer-WwwMC1Kq.cjs → page-viewer-t9AFrRlP.cjs} +1 -1
- package/dist/{project-general-setting-pRO1ikDV.cjs → project-general-setting-Ojhf6Nl6.cjs} +1 -1
- package/dist/{project-general-setting-Lc2ByvTt.js → project-general-setting-Qm8odisi.js} +3 -3
- package/dist/{project-seo-setting-BzSrXFVv.cjs → project-seo-setting-4E1mqV3j.cjs} +1 -1
- package/dist/{project-seo-setting-530_6o9S.js → project-seo-setting-j8EdSO40.js} +2 -2
- package/dist/{single-page-detail-_VP4zaCI.cjs → single-page-detail-bv-XFGOD.cjs} +1 -1
- package/dist/{single-page-detail-qDxxtedN.js → single-page-detail-mQfFVaou.js} +4 -4
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/{useCanvasSettings-pURFQG4q.cjs → useCanvasSettings-4WtrDzCu.cjs} +1 -1
- package/dist/{useCanvasSettings-5y2fSCpN.js → useCanvasSettings-Rvn5rRB8.js} +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +241 -195
- package/package.json +1 -1
- package/dist/Settings-22Hy7jUT.cjs +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { isNull as
|
|
1
|
+
import { isNull as F, isEmpty as B, get as w, pick as $, omit as V, map as T, noop as O } from "lodash-es";
|
|
2
2
|
import { j as i } from "./jsx-runtime-WbnYoNE9.js";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import { o, f as
|
|
4
|
+
import { o, f as b, v as j, r as k, b as I, g as z, T as C, y as D, q as U, c as p, h as W, u as N, S as J } from "./controls-yjgoZzB6.js";
|
|
5
5
|
import { registerChaiBlock as d } from "@chaibuilder/runtime";
|
|
6
6
|
import { E as f } from "./empty-slot-Lsxjts7Q.js";
|
|
7
|
-
import { HeadingIcon as
|
|
8
|
-
import { c as
|
|
9
|
-
import { G as
|
|
7
|
+
import { HeadingIcon as Y, TextIcon as K, CursorTextIcon as X, ButtonIcon as H, Link1Icon as Z, ImageIcon as R, RowsIcon as Q, ColumnsIcon as c0, SketchLogoIcon as t0, VideoIcon as l0, CodeIcon as e0, DividerHorizontalIcon as s0, SpaceBetweenVerticallyIcon as A, TableIcon as a0, BorderTopIcon as i0, BorderAllIcon as r0, ViewHorizontalIcon as h0, DragHandleHorizontalIcon as n0, GroupIcon as o0, LetterCaseToggleIcon as d0, CheckboxIcon as v0, InputIcon as G, RadiobuttonIcon as M0, DropdownMenuIcon as z0 } from "@radix-ui/react-icons";
|
|
8
|
+
import { c as S, g as m } from "./Functions-7jnEwJyw.js";
|
|
9
|
+
import { G as u0 } from "./index-VBXQixVm.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "clsx";
|
|
12
12
|
import "tailwind-merge";
|
|
13
|
-
const
|
|
13
|
+
const g0 = n.memo(
|
|
14
14
|
(c) => {
|
|
15
15
|
const { blockProps: l, inBuilder: t, backgroundImage: e, children: s, tag: a = "div", styles: r } = c;
|
|
16
16
|
let h = s;
|
|
@@ -19,14 +19,14 @@ const z0 = n.memo(
|
|
|
19
19
|
return e && (v = { backgroundImage: `url(${e})` }), n.createElement(a, { ...l, ...r, style: v }, h);
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
d(
|
|
22
|
+
d(g0, {
|
|
23
23
|
type: "Box",
|
|
24
24
|
label: "Box",
|
|
25
25
|
category: "core",
|
|
26
26
|
group: "basic",
|
|
27
27
|
props: {
|
|
28
28
|
styles: o({ default: "" }),
|
|
29
|
-
tag:
|
|
29
|
+
tag: b({
|
|
30
30
|
title: "Tag",
|
|
31
31
|
default: "div",
|
|
32
32
|
options: [
|
|
@@ -49,17 +49,17 @@ d(z0, {
|
|
|
49
49
|
{ value: "mark", title: "mark" }
|
|
50
50
|
]
|
|
51
51
|
}),
|
|
52
|
-
backgroundImage:
|
|
52
|
+
backgroundImage: j({ title: "Background Image" })
|
|
53
53
|
},
|
|
54
54
|
canAcceptBlock: () => !0
|
|
55
55
|
});
|
|
56
|
-
const
|
|
56
|
+
const p0 = n.memo(
|
|
57
57
|
(c) => {
|
|
58
58
|
const { blockProps: l, styles: t } = c;
|
|
59
59
|
return n.createElement("div", { ...l, ...t });
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
d(
|
|
62
|
+
d(p0, {
|
|
63
63
|
type: "EmptyBox",
|
|
64
64
|
label: "Empty Box",
|
|
65
65
|
category: "core",
|
|
@@ -69,7 +69,7 @@ d(g0, {
|
|
|
69
69
|
},
|
|
70
70
|
canAcceptBlock: () => !1
|
|
71
71
|
});
|
|
72
|
-
const
|
|
72
|
+
const f0 = (c) => {
|
|
73
73
|
const { blockProps: l, styles: t, content: e, level: s = "h1", children: a = null } = c;
|
|
74
74
|
return a ? n.createElement(s, { ...t, ...l }, a) : n.createElement(s, {
|
|
75
75
|
...t,
|
|
@@ -79,14 +79,14 @@ const u0 = (c) => {
|
|
|
79
79
|
dangerouslySetInnerHTML: { __html: e }
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
|
-
d(
|
|
82
|
+
d(f0, {
|
|
83
83
|
type: "Heading",
|
|
84
84
|
label: "Heading",
|
|
85
85
|
category: "core",
|
|
86
|
-
icon:
|
|
86
|
+
icon: Y,
|
|
87
87
|
group: "typography",
|
|
88
88
|
props: {
|
|
89
|
-
level:
|
|
89
|
+
level: b({
|
|
90
90
|
title: "Level",
|
|
91
91
|
default: "h1",
|
|
92
92
|
binding: !1,
|
|
@@ -100,13 +100,13 @@ d(u0, {
|
|
|
100
100
|
]
|
|
101
101
|
}),
|
|
102
102
|
styles: o({ default: "text-3xl" }),
|
|
103
|
-
content:
|
|
103
|
+
content: k({ title: "Content", default: "Heading goes here" })
|
|
104
104
|
},
|
|
105
105
|
canAcceptBlock: (c) => c === "Span" || c === "Text"
|
|
106
106
|
});
|
|
107
|
-
const
|
|
107
|
+
const m0 = (c) => {
|
|
108
108
|
const { blockProps: l, styles: t, content: e } = c;
|
|
109
|
-
return
|
|
109
|
+
return F(c.children) ? n.createElement("p", {
|
|
110
110
|
...t,
|
|
111
111
|
...l,
|
|
112
112
|
"data-ai-key": "content",
|
|
@@ -114,22 +114,22 @@ const p0 = (c) => {
|
|
|
114
114
|
dangerouslySetInnerHTML: { __html: e }
|
|
115
115
|
}) : n.createElement("p", { ...t, ...l }, c.children);
|
|
116
116
|
};
|
|
117
|
-
d(
|
|
117
|
+
d(m0, {
|
|
118
118
|
type: "Paragraph",
|
|
119
119
|
label: "Paragraph",
|
|
120
120
|
category: "core",
|
|
121
|
-
icon:
|
|
121
|
+
icon: K,
|
|
122
122
|
group: "typography",
|
|
123
123
|
props: {
|
|
124
124
|
styles: o({ default: "" }),
|
|
125
|
-
content:
|
|
125
|
+
content: k({
|
|
126
126
|
title: "Content",
|
|
127
127
|
default: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere."
|
|
128
128
|
})
|
|
129
129
|
},
|
|
130
130
|
canAcceptBlock: (c) => c === "Span" || c === "Link"
|
|
131
131
|
});
|
|
132
|
-
const
|
|
132
|
+
const x0 = (c) => {
|
|
133
133
|
const { blockProps: l, styles: t, content: e, children: s = null, tag: a } = c;
|
|
134
134
|
return s ? n.createElement("span", { ...t, ...l }, s) : n.createElement(a || "span", {
|
|
135
135
|
...t,
|
|
@@ -138,18 +138,18 @@ const f0 = (c) => {
|
|
|
138
138
|
dangerouslySetInnerHTML: { __html: e }
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
d(
|
|
141
|
+
d(x0, {
|
|
142
142
|
type: "Span",
|
|
143
143
|
label: "Span",
|
|
144
144
|
category: "core",
|
|
145
145
|
group: "typography",
|
|
146
146
|
props: {
|
|
147
147
|
styles: o({ default: "" }),
|
|
148
|
-
content:
|
|
148
|
+
content: k({ title: "Content", default: "" })
|
|
149
149
|
},
|
|
150
150
|
canAcceptBlock: () => !0
|
|
151
151
|
});
|
|
152
|
-
const
|
|
152
|
+
const B0 = (c) => {
|
|
153
153
|
const { blockProps: l, content: t, styles: e } = c;
|
|
154
154
|
return /* @__PURE__ */ i.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ i.jsx(
|
|
155
155
|
"div",
|
|
@@ -162,21 +162,21 @@ const m0 = (c) => {
|
|
|
162
162
|
}
|
|
163
163
|
) });
|
|
164
164
|
};
|
|
165
|
-
d(
|
|
165
|
+
d(B0, {
|
|
166
166
|
type: "RichText",
|
|
167
167
|
label: "Rich Text",
|
|
168
168
|
category: "core",
|
|
169
|
-
icon:
|
|
169
|
+
icon: X,
|
|
170
170
|
group: "typography",
|
|
171
171
|
props: {
|
|
172
172
|
styles: o({ default: "" }),
|
|
173
|
-
content:
|
|
173
|
+
content: I({
|
|
174
174
|
title: "Content",
|
|
175
175
|
default: "<p>This is a rich text block. You can add text, and other content here.</p>"
|
|
176
176
|
})
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const
|
|
179
|
+
const y0 = (c) => {
|
|
180
180
|
const { blockProps: l, iconSize: t, icon: e, content: s, iconPos: a, styles: r, children: h } = c, v = e, M = h || /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
181
181
|
/* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", children: s }),
|
|
182
182
|
v && /* @__PURE__ */ i.jsx(
|
|
@@ -198,18 +198,18 @@ const x0 = (c) => {
|
|
|
198
198
|
M
|
|
199
199
|
);
|
|
200
200
|
};
|
|
201
|
-
d(
|
|
201
|
+
d(y0, {
|
|
202
202
|
type: "Button",
|
|
203
203
|
label: "Button",
|
|
204
204
|
category: "core",
|
|
205
|
-
icon:
|
|
205
|
+
icon: H,
|
|
206
206
|
group: "basic",
|
|
207
207
|
props: {
|
|
208
208
|
content: z({ title: "Label", default: "Button" }),
|
|
209
209
|
styles: o({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
|
|
210
|
-
icon:
|
|
211
|
-
iconSize:
|
|
212
|
-
iconPos:
|
|
210
|
+
icon: C({ title: "Icon", default: "" }),
|
|
211
|
+
iconSize: D({ title: "Icon Size", default: 24 }),
|
|
212
|
+
iconPos: b({
|
|
213
213
|
title: "Icon Position",
|
|
214
214
|
default: "order-last",
|
|
215
215
|
options: [
|
|
@@ -219,9 +219,9 @@ d(x0, {
|
|
|
219
219
|
})
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
|
-
const
|
|
222
|
+
const w0 = (c) => {
|
|
223
223
|
const { blockProps: l, link: t, children: e, styles: s, inBuilder: a, content: r } = c;
|
|
224
|
-
return !e &&
|
|
224
|
+
return !e && B(s == null ? void 0 : s.className) && B(r) ? /* @__PURE__ */ i.jsx(f, { inBuilder: a }) : a ? e ? /* @__PURE__ */ i.jsx("span", { ...l, ...s, children: e }) : n.createElement("span", {
|
|
225
225
|
...l,
|
|
226
226
|
...s,
|
|
227
227
|
dangerouslySetInnerHTML: { __html: r }
|
|
@@ -234,39 +234,88 @@ const B0 = (c) => {
|
|
|
234
234
|
dangerouslySetInnerHTML: { __html: r }
|
|
235
235
|
});
|
|
236
236
|
};
|
|
237
|
-
d(
|
|
237
|
+
d(w0, {
|
|
238
238
|
type: "Link",
|
|
239
239
|
label: "Link",
|
|
240
240
|
category: "core",
|
|
241
|
-
icon:
|
|
241
|
+
icon: Z,
|
|
242
242
|
group: "basic",
|
|
243
243
|
props: {
|
|
244
244
|
styles: o({ default: "" }),
|
|
245
245
|
content: z({ title: "Content", default: "" }),
|
|
246
|
-
link:
|
|
246
|
+
link: U({
|
|
247
247
|
title: "Link",
|
|
248
248
|
default: { type: "page", target: "_self", href: "#" }
|
|
249
249
|
})
|
|
250
250
|
},
|
|
251
251
|
canAcceptBlock: (c) => c !== "Link"
|
|
252
252
|
});
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
const q = (c, ...l) => ({
|
|
254
|
+
...c,
|
|
255
|
+
className: S(c.className, ...l)
|
|
256
|
+
}), b0 = (c) => {
|
|
257
|
+
const { blockProps: l, children: t, styles: e, inBuilder: s, content: a, href: r } = c, { hrefType: h, autoplay: v, maxWidth: M, backdropColor: g, galleryName: u } = c, x = q(e, "cb-lightbox");
|
|
258
|
+
if (!t && B(e == null ? void 0 : e.className) && B(a))
|
|
259
|
+
return /* @__PURE__ */ i.jsx(f, { inBuilder: s });
|
|
260
|
+
if (s)
|
|
261
|
+
return t ? /* @__PURE__ */ i.jsx("span", { ...l, ...x, children: t }) : n.createElement("span", {
|
|
262
|
+
...l,
|
|
263
|
+
...x,
|
|
264
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
265
|
+
});
|
|
266
|
+
const y = {};
|
|
267
|
+
return y["data-vbtype"] = h, v && (y["data-autoplay"] = "true"), M && (y["data-maxwidth"] = M + "px"), g && (y["data-overlay"] = g), u && (y["data-gall"] = u), t ? /* @__PURE__ */ i.jsx("a", { ...y, href: r || "#/", ...l, ...x, children: t }) : n.createElement("a", {
|
|
268
|
+
...l,
|
|
269
|
+
...x,
|
|
270
|
+
...y,
|
|
271
|
+
href: r || "#",
|
|
272
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
d(b0, {
|
|
276
|
+
type: "LightBoxLink",
|
|
277
|
+
label: "LightBox Link",
|
|
278
|
+
category: "core",
|
|
279
|
+
icon: R,
|
|
280
|
+
group: "basic",
|
|
281
|
+
props: {
|
|
282
|
+
styles: o({ default: "" }),
|
|
283
|
+
content: z({ title: "Content", default: "Link text or drop blocks inside" }),
|
|
284
|
+
href: z({ title: "Href", default: "" }),
|
|
285
|
+
hrefType: b({
|
|
286
|
+
title: "Type",
|
|
287
|
+
default: "video",
|
|
288
|
+
options: [
|
|
289
|
+
{ value: "video", title: "video " },
|
|
290
|
+
{ value: "iframe", title: "iframe" },
|
|
291
|
+
{ value: "inline", title: "inline" },
|
|
292
|
+
{ value: "ajax", title: "ajax" }
|
|
293
|
+
]
|
|
294
|
+
}),
|
|
295
|
+
autoplay: p({ title: "Autoplay video", default: !1 }),
|
|
296
|
+
maxWidth: D({ title: "Max Width", default: 800 }),
|
|
297
|
+
backdropColor: z({ title: "Backdrop Color", default: "rgba(95,164,255,0.8)" }),
|
|
298
|
+
galleryName: D({ title: "Max Width", default: 800 })
|
|
299
|
+
},
|
|
300
|
+
canAcceptBlock: (c) => c !== "Link"
|
|
301
|
+
});
|
|
302
|
+
const D0 = (c) => {
|
|
303
|
+
const { blockProps: l, children: t, listType: e, styles: s, tag: a, inBuilder: r } = c, h = S(w(s, "className", ""), e);
|
|
304
|
+
return !t && B(s == null ? void 0 : s.className) ? /* @__PURE__ */ i.jsx(f, { inBuilder: r }) : n.createElement(
|
|
256
305
|
a || (e === "list-decimal" ? "ol" : "ul"),
|
|
257
306
|
{ ...l, ...s, className: h },
|
|
258
307
|
t
|
|
259
308
|
);
|
|
260
309
|
};
|
|
261
|
-
d(
|
|
310
|
+
d(D0, {
|
|
262
311
|
type: "List",
|
|
263
312
|
label: "List",
|
|
264
|
-
icon:
|
|
313
|
+
icon: Q,
|
|
265
314
|
category: "core",
|
|
266
315
|
group: "basic",
|
|
267
316
|
props: {
|
|
268
317
|
styles: o({ default: "" }),
|
|
269
|
-
listType:
|
|
318
|
+
listType: b({
|
|
270
319
|
title: "List type",
|
|
271
320
|
default: "list-none",
|
|
272
321
|
options: [
|
|
@@ -302,7 +351,7 @@ d(y0, {
|
|
|
302
351
|
}
|
|
303
352
|
]
|
|
304
353
|
});
|
|
305
|
-
const
|
|
354
|
+
const k0 = (c) => {
|
|
306
355
|
const { blockProps: l, content: t, styles: e, children: s, tag: a } = c;
|
|
307
356
|
return s ? n.createElement(a || "li", { ...e, ...l }, s) : n.createElement(a || "li", {
|
|
308
357
|
...e,
|
|
@@ -311,25 +360,22 @@ const w0 = (c) => {
|
|
|
311
360
|
dangerouslySetInnerHTML: { __html: t }
|
|
312
361
|
});
|
|
313
362
|
};
|
|
314
|
-
d(
|
|
363
|
+
d(k0, {
|
|
315
364
|
type: "ListItem",
|
|
316
365
|
label: "List Item",
|
|
317
|
-
icon:
|
|
366
|
+
icon: c0,
|
|
318
367
|
category: "core",
|
|
319
368
|
group: "basic",
|
|
320
369
|
props: {
|
|
321
370
|
styles: o({ default: "" }),
|
|
322
|
-
content:
|
|
371
|
+
content: k({ title: "Content", default: "List item" })
|
|
323
372
|
},
|
|
324
373
|
canAcceptBlock: (c) => c !== "ListItem",
|
|
325
374
|
canBeNested: (c) => c === "List"
|
|
326
375
|
});
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}), D0 = (c) => {
|
|
331
|
-
const { blockProps: l, icon: t, styles: e, width: s, inBuilder: a, height: r } = c, h = b0(e, I(s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : ""));
|
|
332
|
-
if (x(t))
|
|
376
|
+
const I0 = (c) => {
|
|
377
|
+
const { blockProps: l, icon: t, styles: e, width: s, inBuilder: a, height: r } = c, h = q(e, S(s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : ""));
|
|
378
|
+
if (B(t))
|
|
333
379
|
return /* @__PURE__ */ i.jsx(f, { inBuilder: a, className: "h-8 w-14" });
|
|
334
380
|
const v = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
335
381
|
return n.createElement("span", {
|
|
@@ -338,25 +384,25 @@ const b0 = (c, ...l) => ({
|
|
|
338
384
|
dangerouslySetInnerHTML: { __html: v }
|
|
339
385
|
});
|
|
340
386
|
};
|
|
341
|
-
d(
|
|
387
|
+
d(I0, {
|
|
342
388
|
type: "Icon",
|
|
343
389
|
label: "Icon",
|
|
344
390
|
category: "core",
|
|
345
|
-
icon:
|
|
391
|
+
icon: t0,
|
|
346
392
|
group: "media",
|
|
347
393
|
props: {
|
|
348
394
|
styles: o({ default: "text-black" }),
|
|
349
|
-
icon:
|
|
395
|
+
icon: C({
|
|
350
396
|
title: "Icon",
|
|
351
397
|
default: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM8 1.5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5-6.5-2.91-6.5-6.5 2.91-6.5 6.5-6.5zM8 9.356c1.812 0 3.535-0.481 5-1.327-0.228 2.788-2.393 4.971-5 4.971s-4.772-2.186-5-4.973c1.465 0.845 3.188 1.329 5 1.329zM4 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5zM10 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5z"></path></svg>'
|
|
352
398
|
}),
|
|
353
|
-
width:
|
|
354
|
-
height:
|
|
399
|
+
width: D({ title: "Width", default: "" }),
|
|
400
|
+
height: D({ title: "Height", default: "" })
|
|
355
401
|
}
|
|
356
402
|
});
|
|
357
|
-
const
|
|
403
|
+
const S0 = (c) => {
|
|
358
404
|
const { blockProps: l, image: t, styles: e, alt: s, height: a, width: r } = c;
|
|
359
|
-
return
|
|
405
|
+
return B(t) ? /* @__PURE__ */ i.jsx(f, { className: "h-36" }) : n.createElement("img", {
|
|
360
406
|
...l,
|
|
361
407
|
...e,
|
|
362
408
|
src: t,
|
|
@@ -366,15 +412,15 @@ const k0 = (c) => {
|
|
|
366
412
|
width: r
|
|
367
413
|
});
|
|
368
414
|
};
|
|
369
|
-
d(
|
|
415
|
+
d(S0, {
|
|
370
416
|
type: "Image",
|
|
371
417
|
label: "Image",
|
|
372
418
|
category: "core",
|
|
373
|
-
icon:
|
|
419
|
+
icon: R,
|
|
374
420
|
group: "media",
|
|
375
421
|
props: {
|
|
376
422
|
styles: o({ default: "" }),
|
|
377
|
-
image:
|
|
423
|
+
image: j({
|
|
378
424
|
title: "Image",
|
|
379
425
|
default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
|
|
380
426
|
}),
|
|
@@ -383,17 +429,17 @@ d(k0, {
|
|
|
383
429
|
height: z({ title: "Height", default: "" })
|
|
384
430
|
}
|
|
385
431
|
});
|
|
386
|
-
const
|
|
432
|
+
const L0 = (c) => {
|
|
387
433
|
var r;
|
|
388
434
|
const { blockProps: l, inBuilder: t, styles: e, children: s } = c;
|
|
389
435
|
let a = null;
|
|
390
436
|
return !s && t && (a = // @ts-ignore
|
|
391
|
-
/* @__PURE__ */ i.jsx("div", { className:
|
|
437
|
+
/* @__PURE__ */ i.jsx("div", { className: S("flex flex-col items-center justify-center", (r = c.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ i.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ i.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
|
|
392
438
|
"Slot: ",
|
|
393
439
|
c.name
|
|
394
440
|
] }) }) })), n.createElement("div", { ...e, ...l, droppable: "yes" }, s || a);
|
|
395
441
|
};
|
|
396
|
-
d(
|
|
442
|
+
d(L0, {
|
|
397
443
|
type: "Slot",
|
|
398
444
|
label: "Slot",
|
|
399
445
|
group: "basic",
|
|
@@ -405,41 +451,41 @@ d(I0, {
|
|
|
405
451
|
},
|
|
406
452
|
canAcceptBlock: () => !0
|
|
407
453
|
});
|
|
408
|
-
const
|
|
409
|
-
if (C.test(c)) {
|
|
410
|
-
const l = c.match(C);
|
|
411
|
-
return l ? `https://www.youtube.com/embed/${l[4]}` : c;
|
|
412
|
-
}
|
|
454
|
+
const _ = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, P = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, E = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, T0 = (c) => {
|
|
413
455
|
if (_.test(c)) {
|
|
414
456
|
const l = c.match(_);
|
|
415
|
-
return l ? `https://
|
|
457
|
+
return l ? `https://www.youtube.com/embed/${l[4]}` : c;
|
|
416
458
|
}
|
|
417
459
|
if (P.test(c)) {
|
|
418
460
|
const l = c.match(P);
|
|
461
|
+
return l ? `https://player.vimeo.com/video/${l[3]}` : c;
|
|
462
|
+
}
|
|
463
|
+
if (E.test(c)) {
|
|
464
|
+
const l = c.match(E);
|
|
419
465
|
return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : c;
|
|
420
466
|
}
|
|
421
467
|
return null;
|
|
422
|
-
},
|
|
468
|
+
}, j0 = n.memo(
|
|
423
469
|
(c) => {
|
|
424
|
-
const { blockProps: l, inBuilder: t, styles: e, url: s, controls: a } = c, r =
|
|
425
|
-
if (
|
|
470
|
+
const { blockProps: l, inBuilder: t, styles: e, url: s, controls: a } = c, r = w(a, "autoPlay", !1), h = w(a, "controls", !1), v = r || w(a, "muted", !0), M = w(a, "loop", !1);
|
|
471
|
+
if (B(s))
|
|
426
472
|
return /* @__PURE__ */ i.jsx(f, { inBuilder: t, className: "h-36" });
|
|
427
|
-
let
|
|
428
|
-
if (
|
|
429
|
-
if (!
|
|
430
|
-
const
|
|
431
|
-
|
|
473
|
+
let g = T0(s), u = null;
|
|
474
|
+
if (g) {
|
|
475
|
+
if (!B(g)) {
|
|
476
|
+
const x = [];
|
|
477
|
+
x.push(`autoplay=${r ? 1 : 0}`), x.push(`controls=${a ? 1 : 0}`), x.push(`mute=${v ? 1 : 0}&muted=${v ? 1 : 0}`), x.push(`loop=${M ? 1 : 0}`), g = `${g}?${x.join("&")}`;
|
|
432
478
|
}
|
|
433
|
-
|
|
479
|
+
u = n.createElement("iframe", {
|
|
434
480
|
...l,
|
|
435
481
|
className: "absolute inset-0 w-full h-full",
|
|
436
|
-
src:
|
|
482
|
+
src: g,
|
|
437
483
|
allow: t ? "" : "autoplay *; fullscreen *",
|
|
438
484
|
allowFullScreen: !0,
|
|
439
485
|
frameBorder: 0
|
|
440
486
|
});
|
|
441
487
|
} else
|
|
442
|
-
|
|
488
|
+
u = n.createElement("video", {
|
|
443
489
|
...l,
|
|
444
490
|
className: "absolute inset-0 w-full h-full",
|
|
445
491
|
src: s,
|
|
@@ -448,17 +494,17 @@ const C = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
|
|
|
448
494
|
autoPlay: t ? !1 : r,
|
|
449
495
|
loop: M
|
|
450
496
|
});
|
|
451
|
-
return /* @__PURE__ */ i.jsx("div", {
|
|
452
|
-
t ? /* @__PURE__ */ i.jsx("div", { ...l, ...
|
|
453
|
-
|
|
497
|
+
return /* @__PURE__ */ i.jsx("div", { ...$(e, ["className"]), children: /* @__PURE__ */ i.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
498
|
+
t ? /* @__PURE__ */ i.jsx("div", { ...l, ...V(e, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
499
|
+
u
|
|
454
500
|
] }) });
|
|
455
501
|
}
|
|
456
502
|
);
|
|
457
|
-
d(
|
|
503
|
+
d(j0, {
|
|
458
504
|
type: "Video",
|
|
459
505
|
label: "Video",
|
|
460
506
|
category: "core",
|
|
461
|
-
icon:
|
|
507
|
+
icon: l0,
|
|
462
508
|
group: "media",
|
|
463
509
|
props: {
|
|
464
510
|
styles: o({ default: "" }),
|
|
@@ -466,7 +512,7 @@ d(L0, {
|
|
|
466
512
|
title: "Video URL",
|
|
467
513
|
default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
|
|
468
514
|
}),
|
|
469
|
-
controls:
|
|
515
|
+
controls: W({
|
|
470
516
|
title: "Controls",
|
|
471
517
|
properties: {
|
|
472
518
|
autoPlay: p({ title: "Autoplay", default: !0 }),
|
|
@@ -477,7 +523,7 @@ d(L0, {
|
|
|
477
523
|
})
|
|
478
524
|
}
|
|
479
525
|
});
|
|
480
|
-
const
|
|
526
|
+
const C0 = (c) => {
|
|
481
527
|
const { blockProps: l, styles: t, htmlCode: e, inBuilder: s } = c;
|
|
482
528
|
return s ? /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
|
|
483
529
|
s ? /* @__PURE__ */ i.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
@@ -491,15 +537,15 @@ const T0 = (c) => {
|
|
|
491
537
|
dangerouslySetInnerHTML: { __html: e }
|
|
492
538
|
});
|
|
493
539
|
};
|
|
494
|
-
d(
|
|
540
|
+
d(C0, {
|
|
495
541
|
type: "CustomHTML",
|
|
496
542
|
label: "Custom HTML",
|
|
497
543
|
category: "core",
|
|
498
|
-
icon:
|
|
544
|
+
icon: e0,
|
|
499
545
|
group: "advanced",
|
|
500
546
|
props: {
|
|
501
547
|
styles: o({ default: "" }),
|
|
502
|
-
htmlCode:
|
|
548
|
+
htmlCode: N({
|
|
503
549
|
title: "HTML Code",
|
|
504
550
|
default: "<div><p>HTML Snippet goes here...</p></div>",
|
|
505
551
|
placeholder: "Enter custom HTML code here"
|
|
@@ -507,21 +553,21 @@ d(T0, {
|
|
|
507
553
|
},
|
|
508
554
|
canAcceptBlock: () => !1
|
|
509
555
|
});
|
|
510
|
-
function
|
|
511
|
-
return
|
|
556
|
+
function _0(c) {
|
|
557
|
+
return u0({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M4.698 3.419l2.057 23.073 9.231 2.563 9.256-2.566 2.059-23.069h-22.604zM13.226 9.394l-0.409 4.441 9.671 0.001-0.069 0.76-0.665 7.45-0.042 0.478-5.804 1.609-5.796-1.609-0.396-4.443h2.84l0.202 2.257 3.154 0.85 3.156-0.852 0.328-3.67-9.671-0.001 0.069-0.76 0.665-7.45 0.209-2.086h11.287l0.131 1.598 0.403 4.453h-2.841l-0.262-2.922-2.889-0.174h-0.515v-0.004l-2.755 0.074z" }, child: [] }] })(c);
|
|
512
558
|
}
|
|
513
|
-
const
|
|
559
|
+
const P0 = (c) => {
|
|
514
560
|
const { scripts: l, inBuilder: t, blockProps: e } = c;
|
|
515
561
|
return t ? /* @__PURE__ */ i.jsx("div", { ...e }) : /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: l } });
|
|
516
562
|
};
|
|
517
|
-
d(
|
|
563
|
+
d(P0, {
|
|
518
564
|
type: "CustomScript",
|
|
519
565
|
label: "Custom Script",
|
|
520
566
|
category: "core",
|
|
521
|
-
icon:
|
|
567
|
+
icon: _0,
|
|
522
568
|
group: "advanced",
|
|
523
569
|
props: {
|
|
524
|
-
scripts:
|
|
570
|
+
scripts: N({
|
|
525
571
|
title: "Script",
|
|
526
572
|
default: "",
|
|
527
573
|
placeholder: "<script>console.log('Hello, world!');<\/script>"
|
|
@@ -529,38 +575,38 @@ d(C0, {
|
|
|
529
575
|
},
|
|
530
576
|
canAcceptBlock: () => !1
|
|
531
577
|
});
|
|
532
|
-
const
|
|
578
|
+
const E0 = (c) => {
|
|
533
579
|
const { blockProps: l, styles: t } = c;
|
|
534
580
|
return n.createElement("hr", { ...t, ...l });
|
|
535
581
|
};
|
|
536
|
-
d(
|
|
582
|
+
d(E0, {
|
|
537
583
|
type: "Divider",
|
|
538
584
|
label: "Divider",
|
|
539
585
|
category: "core",
|
|
540
|
-
icon:
|
|
586
|
+
icon: s0,
|
|
541
587
|
group: "basic",
|
|
542
588
|
props: {
|
|
543
589
|
styles: o({ default: "bg-gray-900 h-0.5 py-2 my-1" })
|
|
544
590
|
}
|
|
545
591
|
});
|
|
546
|
-
const
|
|
547
|
-
d(
|
|
592
|
+
const N0 = (c) => c.inBuilder || c.forceWrapper ? /* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", ...c.blockProps, children: c.content }) : `${c.content}`;
|
|
593
|
+
d(N0, {
|
|
548
594
|
type: "Text",
|
|
549
595
|
label: "Text",
|
|
550
596
|
hidden: !0,
|
|
551
597
|
category: "core",
|
|
552
598
|
group: "typography",
|
|
553
|
-
icon:
|
|
599
|
+
icon: A,
|
|
554
600
|
props: {
|
|
555
|
-
content:
|
|
601
|
+
content: k({ title: "Content", defaultValue: "" })
|
|
556
602
|
}
|
|
557
603
|
});
|
|
558
|
-
const
|
|
604
|
+
const H0 = (c) => {
|
|
559
605
|
const { blockProps: l, backgroundImage: t, children: e, styles: s } = c;
|
|
560
606
|
let a = {};
|
|
561
607
|
return t && (a = { backgroundImage: `url(${t})` }), n.createElement("div", { ...l, ...s, style: a }, e);
|
|
562
608
|
};
|
|
563
|
-
d(
|
|
609
|
+
d(H0, {
|
|
564
610
|
type: "Body",
|
|
565
611
|
label: "Body",
|
|
566
612
|
category: "core",
|
|
@@ -568,29 +614,29 @@ d(E0, {
|
|
|
568
614
|
hidden: !0,
|
|
569
615
|
props: {
|
|
570
616
|
styles: o({ default: "font-body antialiased" }),
|
|
571
|
-
backgroundImage:
|
|
617
|
+
backgroundImage: j({ title: "Background Image" })
|
|
572
618
|
},
|
|
573
619
|
canAcceptBlock: () => !0,
|
|
574
620
|
canDelete: () => !1,
|
|
575
621
|
canMove: () => !1,
|
|
576
622
|
canDuplicate: () => !1
|
|
577
623
|
});
|
|
578
|
-
const
|
|
624
|
+
const R0 = (c) => {
|
|
579
625
|
const { blockProps: l, styles: t } = c;
|
|
580
626
|
return n.createElement("br", { ...l, ...t });
|
|
581
627
|
};
|
|
582
|
-
d(
|
|
628
|
+
d(R0, {
|
|
583
629
|
type: "LineBreak",
|
|
584
630
|
label: "Line Break",
|
|
585
631
|
category: "core",
|
|
586
632
|
group: "basic",
|
|
587
633
|
hidden: !0,
|
|
588
|
-
icon:
|
|
634
|
+
icon: A,
|
|
589
635
|
props: {
|
|
590
636
|
styles: o({ default: "" })
|
|
591
637
|
}
|
|
592
638
|
});
|
|
593
|
-
const
|
|
639
|
+
const L = (c) => {
|
|
594
640
|
const l = (a, r) => ({
|
|
595
641
|
_id: m(),
|
|
596
642
|
_parent: a,
|
|
@@ -632,105 +678,105 @@ const S = (c) => {
|
|
|
632
678
|
];
|
|
633
679
|
}
|
|
634
680
|
return c === "TableRow" ? t() : c === "TableHead" ? e() : c === "TableBody" ? s() : [];
|
|
635
|
-
},
|
|
681
|
+
}, A0 = (c) => {
|
|
636
682
|
const { blockProps: l, children: t, styles: e } = c;
|
|
637
683
|
return t ? n.createElement("table", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
638
684
|
};
|
|
639
|
-
d(
|
|
685
|
+
d(A0, {
|
|
640
686
|
type: "Table",
|
|
641
687
|
label: "Table",
|
|
642
688
|
category: "core",
|
|
643
689
|
group: "table",
|
|
644
690
|
hidden: !0,
|
|
645
|
-
icon:
|
|
691
|
+
icon: a0,
|
|
646
692
|
props: {
|
|
647
693
|
styles: o({ default: "" })
|
|
648
694
|
},
|
|
649
|
-
blocks:
|
|
695
|
+
blocks: L("Table")
|
|
650
696
|
});
|
|
651
|
-
const
|
|
697
|
+
const G0 = (c) => {
|
|
652
698
|
const { blockProps: l, children: t, styles: e } = c;
|
|
653
699
|
return t ? n.createElement("thead", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
654
700
|
};
|
|
655
|
-
d(
|
|
701
|
+
d(G0, {
|
|
656
702
|
type: "TableHead",
|
|
657
703
|
label: "Table Head",
|
|
658
704
|
category: "core",
|
|
659
705
|
group: "table",
|
|
660
706
|
hidden: !0,
|
|
661
|
-
icon:
|
|
707
|
+
icon: i0,
|
|
662
708
|
props: {
|
|
663
709
|
styles: o({ default: "" })
|
|
664
710
|
},
|
|
665
|
-
blocks:
|
|
711
|
+
blocks: L("TableHead")
|
|
666
712
|
});
|
|
667
|
-
const
|
|
713
|
+
const q0 = (c) => {
|
|
668
714
|
const { blockProps: l, children: t, styles: e } = c;
|
|
669
715
|
return t ? n.createElement("tbody", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
670
716
|
};
|
|
671
|
-
d(
|
|
717
|
+
d(q0, {
|
|
672
718
|
type: "TableBody",
|
|
673
719
|
label: "Table Body",
|
|
674
720
|
category: "core",
|
|
675
721
|
group: "table",
|
|
676
722
|
hidden: !0,
|
|
677
|
-
icon:
|
|
723
|
+
icon: r0,
|
|
678
724
|
props: {
|
|
679
725
|
styles: o({ default: "" })
|
|
680
726
|
},
|
|
681
|
-
blocks:
|
|
727
|
+
blocks: L("TableBody")
|
|
682
728
|
});
|
|
683
|
-
const
|
|
729
|
+
const F0 = (c) => {
|
|
684
730
|
const { blockProps: l, children: t, styles: e } = c;
|
|
685
731
|
return t ? n.createElement("tr", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
686
732
|
};
|
|
687
|
-
d(
|
|
733
|
+
d(F0, {
|
|
688
734
|
type: "TableRow",
|
|
689
735
|
label: "Table Row",
|
|
690
736
|
category: "core",
|
|
691
737
|
group: "table",
|
|
692
738
|
hidden: !0,
|
|
693
|
-
icon:
|
|
739
|
+
icon: h0,
|
|
694
740
|
props: {
|
|
695
741
|
styles: o({ default: "w-full" })
|
|
696
742
|
},
|
|
697
|
-
blocks:
|
|
743
|
+
blocks: L("TableRow")
|
|
698
744
|
});
|
|
699
|
-
const
|
|
745
|
+
const $0 = (c) => {
|
|
700
746
|
const { blockProps: l, children: t, content: e, styles: s } = c;
|
|
701
|
-
return !t &&
|
|
747
|
+
return !t && B(e) ? /* @__PURE__ */ i.jsx(f, {}) : t ? n.createElement("td", { ...l, ...s }, t) : n.createElement("td", {
|
|
702
748
|
...l,
|
|
703
749
|
...s,
|
|
704
750
|
dangerouslySetInnerHTML: { __html: e }
|
|
705
751
|
});
|
|
706
752
|
};
|
|
707
|
-
d(
|
|
753
|
+
d($0, {
|
|
708
754
|
type: "TableCell",
|
|
709
755
|
label: "Table Cell",
|
|
710
756
|
category: "core",
|
|
711
757
|
group: "table",
|
|
712
758
|
hidden: !0,
|
|
713
|
-
icon:
|
|
759
|
+
icon: n0,
|
|
714
760
|
props: {
|
|
715
761
|
styles: o({ default: "" }),
|
|
716
|
-
content:
|
|
762
|
+
content: I({ title: "Content", default: "Table cell item", ai: { html: !0 } })
|
|
717
763
|
}
|
|
718
764
|
});
|
|
719
|
-
const
|
|
765
|
+
const V0 = (c) => {
|
|
720
766
|
const { blockProps: l, errorMessage: t, name: e, _type: s, successMessage: a, action: r, styles: h, children: v } = c;
|
|
721
767
|
let M = v;
|
|
722
768
|
v || (M = /* @__PURE__ */ i.jsx(f, {}));
|
|
723
|
-
const
|
|
769
|
+
const g = {
|
|
724
770
|
"x-data": "useForm",
|
|
725
771
|
"x-on:submit.prevent": "post"
|
|
726
|
-
},
|
|
772
|
+
}, u = {
|
|
727
773
|
"x-html": "formResponse",
|
|
728
774
|
":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
|
|
729
775
|
};
|
|
730
776
|
return /* @__PURE__ */ i.jsxs(
|
|
731
777
|
"form",
|
|
732
778
|
{
|
|
733
|
-
...
|
|
779
|
+
...g,
|
|
734
780
|
"data-error": t,
|
|
735
781
|
"data-success": a,
|
|
736
782
|
method: "post",
|
|
@@ -738,18 +784,18 @@ const F0 = (c) => {
|
|
|
738
784
|
...l,
|
|
739
785
|
...h,
|
|
740
786
|
children: [
|
|
741
|
-
/* @__PURE__ */ i.jsx("div", { ...
|
|
787
|
+
/* @__PURE__ */ i.jsx("div", { ...u }),
|
|
742
788
|
/* @__PURE__ */ i.jsx("input", { name: "formname", type: "hidden", value: e || s }),
|
|
743
789
|
M
|
|
744
790
|
]
|
|
745
791
|
}
|
|
746
792
|
);
|
|
747
793
|
};
|
|
748
|
-
d(
|
|
794
|
+
d(V0, {
|
|
749
795
|
type: "Form",
|
|
750
796
|
label: "Form",
|
|
751
797
|
category: "core",
|
|
752
|
-
icon:
|
|
798
|
+
icon: o0,
|
|
753
799
|
group: "form",
|
|
754
800
|
hidden: !0,
|
|
755
801
|
props: {
|
|
@@ -758,29 +804,29 @@ d(F0, {
|
|
|
758
804
|
title: "Submit URL",
|
|
759
805
|
default: "/api/form/submit"
|
|
760
806
|
}),
|
|
761
|
-
errorMessage:
|
|
807
|
+
errorMessage: I({
|
|
762
808
|
title: "Error Message",
|
|
763
809
|
default: "Something went wrong. Please try again"
|
|
764
810
|
}),
|
|
765
|
-
successMessage:
|
|
811
|
+
successMessage: I({
|
|
766
812
|
title: "Success Message",
|
|
767
813
|
default: "Thank you for your submission."
|
|
768
814
|
})
|
|
769
815
|
},
|
|
770
816
|
canAcceptBlock: () => !0
|
|
771
817
|
});
|
|
772
|
-
const
|
|
818
|
+
const O0 = (c) => {
|
|
773
819
|
const { blockProps: l, content: t, styles: e, children: s } = c, a = { ...e, ...l };
|
|
774
820
|
return s ? n.createElement("label", a, s) : n.createElement("label", {
|
|
775
821
|
...a,
|
|
776
822
|
dangerouslySetInnerHTML: { __html: t }
|
|
777
823
|
});
|
|
778
824
|
};
|
|
779
|
-
d(
|
|
825
|
+
d(O0, {
|
|
780
826
|
type: "Label",
|
|
781
827
|
label: "Label",
|
|
782
828
|
category: "core",
|
|
783
|
-
icon:
|
|
829
|
+
icon: d0,
|
|
784
830
|
group: "form",
|
|
785
831
|
hidden: !0,
|
|
786
832
|
props: {
|
|
@@ -788,7 +834,7 @@ d($0, {
|
|
|
788
834
|
content: z({ title: "Content", default: "Label", ai: { html: !1 } })
|
|
789
835
|
}
|
|
790
836
|
});
|
|
791
|
-
const
|
|
837
|
+
const U0 = (c) => {
|
|
792
838
|
const { blockProps: l, inBuilder: t, label: e, styles: s, inputStyles: a, icon: r, iconPos: h } = c, v = m(), M = {
|
|
793
839
|
"x-bind:disabled": "formLoading"
|
|
794
840
|
};
|
|
@@ -808,11 +854,11 @@ const V0 = (c) => {
|
|
|
808
854
|
}
|
|
809
855
|
);
|
|
810
856
|
};
|
|
811
|
-
d(
|
|
857
|
+
d(U0, {
|
|
812
858
|
type: "FormButton",
|
|
813
859
|
label: "Submit Button",
|
|
814
860
|
category: "core",
|
|
815
|
-
icon:
|
|
861
|
+
icon: H,
|
|
816
862
|
group: "form",
|
|
817
863
|
hidden: !0,
|
|
818
864
|
props: {
|
|
@@ -820,8 +866,8 @@ d(V0, {
|
|
|
820
866
|
styles: o({
|
|
821
867
|
default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
822
868
|
}),
|
|
823
|
-
icon:
|
|
824
|
-
iconPos:
|
|
869
|
+
icon: C({ title: "Icon", default: "" }),
|
|
870
|
+
iconPos: b({
|
|
825
871
|
title: "Icon Position",
|
|
826
872
|
default: "order-last",
|
|
827
873
|
options: [
|
|
@@ -831,7 +877,7 @@ d(V0, {
|
|
|
831
877
|
})
|
|
832
878
|
}
|
|
833
879
|
});
|
|
834
|
-
const
|
|
880
|
+
const W0 = (c) => {
|
|
835
881
|
const { blockProps: l, fieldName: t, label: e, styles: s, inputStyles: a, required: r, checked: h, showLabel: v = !0 } = c, M = m();
|
|
836
882
|
return v ? /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
|
|
837
883
|
/* @__PURE__ */ i.jsx(
|
|
@@ -859,11 +905,11 @@ const O0 = (c) => {
|
|
|
859
905
|
}
|
|
860
906
|
);
|
|
861
907
|
};
|
|
862
|
-
d(
|
|
908
|
+
d(W0, {
|
|
863
909
|
type: "Checkbox",
|
|
864
910
|
label: "Checkbox",
|
|
865
911
|
category: "core",
|
|
866
|
-
icon:
|
|
912
|
+
icon: v0,
|
|
867
913
|
group: "form",
|
|
868
914
|
hidden: !0,
|
|
869
915
|
props: {
|
|
@@ -874,7 +920,7 @@ d(O0, {
|
|
|
874
920
|
required: p({ title: "Required", default: !1 })
|
|
875
921
|
}
|
|
876
922
|
});
|
|
877
|
-
const
|
|
923
|
+
const J0 = (c) => {
|
|
878
924
|
const {
|
|
879
925
|
blockProps: l,
|
|
880
926
|
label: t,
|
|
@@ -885,13 +931,13 @@ const U0 = (c) => {
|
|
|
885
931
|
required: h,
|
|
886
932
|
inputType: v = "text",
|
|
887
933
|
inBuilder: M,
|
|
888
|
-
fieldName:
|
|
889
|
-
} = c,
|
|
934
|
+
fieldName: g
|
|
935
|
+
} = c, u = m();
|
|
890
936
|
return !r || v === "submit" ? (v === "submit" && (l.value = t), /* @__PURE__ */ i.jsx(
|
|
891
937
|
"input",
|
|
892
938
|
{
|
|
893
|
-
id:
|
|
894
|
-
name:
|
|
939
|
+
id: u,
|
|
940
|
+
name: g,
|
|
895
941
|
readOnly: M,
|
|
896
942
|
...l,
|
|
897
943
|
...a,
|
|
@@ -901,14 +947,14 @@ const U0 = (c) => {
|
|
|
901
947
|
required: h
|
|
902
948
|
}
|
|
903
949
|
)) : /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
|
|
904
|
-
r && /* @__PURE__ */ i.jsx("label", { htmlFor:
|
|
950
|
+
r && /* @__PURE__ */ i.jsx("label", { htmlFor: u, children: t }),
|
|
905
951
|
/* @__PURE__ */ i.jsx(
|
|
906
952
|
"input",
|
|
907
953
|
{
|
|
908
|
-
name:
|
|
954
|
+
name: g,
|
|
909
955
|
readOnly: M,
|
|
910
956
|
...a,
|
|
911
|
-
id:
|
|
957
|
+
id: u,
|
|
912
958
|
type: v,
|
|
913
959
|
placeholder: e,
|
|
914
960
|
required: h
|
|
@@ -916,19 +962,19 @@ const U0 = (c) => {
|
|
|
916
962
|
)
|
|
917
963
|
] });
|
|
918
964
|
};
|
|
919
|
-
d(
|
|
965
|
+
d(J0, {
|
|
920
966
|
type: "Input",
|
|
921
967
|
label: "Input",
|
|
922
968
|
category: "core",
|
|
923
|
-
icon:
|
|
969
|
+
icon: G,
|
|
924
970
|
group: "form",
|
|
925
971
|
hidden: !0,
|
|
926
972
|
props: {
|
|
927
973
|
styles: o({ default: "" }),
|
|
928
974
|
fieldName: z({ title: "Field Name", default: "input" }),
|
|
929
|
-
inputType:
|
|
975
|
+
inputType: b({
|
|
930
976
|
title: "Type",
|
|
931
|
-
options:
|
|
977
|
+
options: T(
|
|
932
978
|
["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
|
|
933
979
|
(c) => ({
|
|
934
980
|
value: c,
|
|
@@ -948,7 +994,7 @@ d(U0, {
|
|
|
948
994
|
required: p({ title: "Required", default: !1 })
|
|
949
995
|
}
|
|
950
996
|
});
|
|
951
|
-
const
|
|
997
|
+
const Y0 = (c) => {
|
|
952
998
|
const { blockProps: l, fieldName: t, label: e, styles: s, inputStyles: a, checked: r, required: h, showLabel: v = !0 } = c, M = m();
|
|
953
999
|
return v ? /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
|
|
954
1000
|
/* @__PURE__ */ i.jsx("input", { ...a, name: t, id: M, type: "radio", required: h, defaultChecked: r }),
|
|
@@ -967,11 +1013,11 @@ const J0 = (c) => {
|
|
|
967
1013
|
}
|
|
968
1014
|
);
|
|
969
1015
|
};
|
|
970
|
-
d(
|
|
1016
|
+
d(Y0, {
|
|
971
1017
|
type: "Radio",
|
|
972
1018
|
label: "Radio",
|
|
973
1019
|
category: "core",
|
|
974
|
-
icon:
|
|
1020
|
+
icon: M0,
|
|
975
1021
|
group: "form",
|
|
976
1022
|
hidden: !0,
|
|
977
1023
|
props: {
|
|
@@ -982,7 +1028,7 @@ d(J0, {
|
|
|
982
1028
|
required: p({ title: "Required", default: !1 })
|
|
983
1029
|
}
|
|
984
1030
|
});
|
|
985
|
-
const
|
|
1031
|
+
const K0 = (c) => {
|
|
986
1032
|
const {
|
|
987
1033
|
blockProps: l,
|
|
988
1034
|
fieldName: t,
|
|
@@ -993,27 +1039,27 @@ const W0 = (c) => {
|
|
|
993
1039
|
required: h,
|
|
994
1040
|
showLabel: v,
|
|
995
1041
|
_multiple: M = !1
|
|
996
|
-
} = c,
|
|
1042
|
+
} = c, g = m();
|
|
997
1043
|
return v ? /* @__PURE__ */ i.jsxs("div", { ...a, children: [
|
|
998
|
-
v && /* @__PURE__ */ i.jsx("label", { htmlFor:
|
|
1044
|
+
v && /* @__PURE__ */ i.jsx("label", { htmlFor: g, children: e }),
|
|
999
1045
|
/* @__PURE__ */ i.jsxs(
|
|
1000
1046
|
"select",
|
|
1001
1047
|
{
|
|
1002
1048
|
...r,
|
|
1003
|
-
id:
|
|
1049
|
+
id: g,
|
|
1004
1050
|
required: h,
|
|
1005
1051
|
multiple: M,
|
|
1006
1052
|
name: t,
|
|
1007
1053
|
children: [
|
|
1008
1054
|
/* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
|
|
1009
|
-
|
|
1055
|
+
T(c.options, (u) => /* @__PURE__ */ i.jsx(
|
|
1010
1056
|
"option",
|
|
1011
1057
|
{
|
|
1012
|
-
selected:
|
|
1013
|
-
value:
|
|
1014
|
-
dangerouslySetInnerHTML: { __html:
|
|
1058
|
+
selected: w(u, "selected", !1),
|
|
1059
|
+
value: u.value,
|
|
1060
|
+
dangerouslySetInnerHTML: { __html: u.label }
|
|
1015
1061
|
},
|
|
1016
|
-
|
|
1062
|
+
u.value
|
|
1017
1063
|
))
|
|
1018
1064
|
]
|
|
1019
1065
|
}
|
|
@@ -1021,7 +1067,7 @@ const W0 = (c) => {
|
|
|
1021
1067
|
] }) : /* @__PURE__ */ i.jsxs(
|
|
1022
1068
|
"select",
|
|
1023
1069
|
{
|
|
1024
|
-
id:
|
|
1070
|
+
id: g,
|
|
1025
1071
|
...a,
|
|
1026
1072
|
...l,
|
|
1027
1073
|
required: h,
|
|
@@ -1029,24 +1075,24 @@ const W0 = (c) => {
|
|
|
1029
1075
|
name: t,
|
|
1030
1076
|
children: [
|
|
1031
1077
|
/* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
|
|
1032
|
-
|
|
1078
|
+
T(c.options, (u) => /* @__PURE__ */ i.jsx(
|
|
1033
1079
|
"option",
|
|
1034
1080
|
{
|
|
1035
|
-
selected:
|
|
1036
|
-
value:
|
|
1037
|
-
dangerouslySetInnerHTML: { __html:
|
|
1081
|
+
selected: w(u, "selected", !1),
|
|
1082
|
+
value: u.value,
|
|
1083
|
+
dangerouslySetInnerHTML: { __html: u.label }
|
|
1038
1084
|
},
|
|
1039
|
-
|
|
1085
|
+
u.value
|
|
1040
1086
|
))
|
|
1041
1087
|
]
|
|
1042
1088
|
}
|
|
1043
1089
|
);
|
|
1044
1090
|
};
|
|
1045
|
-
d(
|
|
1091
|
+
d(K0, {
|
|
1046
1092
|
type: "Select",
|
|
1047
1093
|
label: "Select",
|
|
1048
1094
|
category: "core",
|
|
1049
|
-
icon:
|
|
1095
|
+
icon: z0,
|
|
1050
1096
|
group: "form",
|
|
1051
1097
|
hidden: !0,
|
|
1052
1098
|
props: {
|
|
@@ -1061,7 +1107,7 @@ d(W0, {
|
|
|
1061
1107
|
}),
|
|
1062
1108
|
required: p({ title: "Required", default: !1 }),
|
|
1063
1109
|
_multiple: p({ title: "Multiple Choice", default: !1 }),
|
|
1064
|
-
options:
|
|
1110
|
+
options: J({
|
|
1065
1111
|
title: "Options",
|
|
1066
1112
|
itemProperties: {
|
|
1067
1113
|
label: z({ title: "Label", default: "" }),
|
|
@@ -1070,7 +1116,7 @@ d(W0, {
|
|
|
1070
1116
|
})
|
|
1071
1117
|
}
|
|
1072
1118
|
});
|
|
1073
|
-
const
|
|
1119
|
+
const X0 = (c) => {
|
|
1074
1120
|
const { blockProps: l, fieldName: t, label: e, placeholder: s, styles: a, inputStyles: r, _rows: h, showLabel: v } = c, M = m();
|
|
1075
1121
|
return v ? /* @__PURE__ */ i.jsxs("div", { ...a, ...l, children: [
|
|
1076
1122
|
v && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e }),
|
|
@@ -1088,11 +1134,11 @@ const Y0 = (c) => {
|
|
|
1088
1134
|
}
|
|
1089
1135
|
);
|
|
1090
1136
|
};
|
|
1091
|
-
d(
|
|
1137
|
+
d(X0, {
|
|
1092
1138
|
type: "TextArea",
|
|
1093
1139
|
label: "TextArea",
|
|
1094
1140
|
category: "core",
|
|
1095
|
-
icon:
|
|
1141
|
+
icon: G,
|
|
1096
1142
|
group: "form",
|
|
1097
1143
|
hidden: !0,
|
|
1098
1144
|
props: {
|
|
@@ -1105,10 +1151,10 @@ d(Y0, {
|
|
|
1105
1151
|
title: "Placeholder",
|
|
1106
1152
|
default: "Placeholder"
|
|
1107
1153
|
}),
|
|
1108
|
-
_rows:
|
|
1154
|
+
_rows: D({ title: "Rows", default: 3 })
|
|
1109
1155
|
}
|
|
1110
1156
|
});
|
|
1111
|
-
const
|
|
1157
|
+
const n1 = O;
|
|
1112
1158
|
export {
|
|
1113
|
-
|
|
1159
|
+
n1 as loadWebBlocks
|
|
1114
1160
|
};
|