@chaibuilder/sdk 4.0.0-beta.7 → 4.0.0-beta.9
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/README.md +5 -8
- package/dist/{2SSKDMRQ-hL7THuKW.js → 2SSKDMRQ-CdFBQR2o.js} +2 -2
- package/dist/{2SSKDMRQ-DDOgISWg.cjs → 2SSKDMRQ-CuQ42ST6.cjs} +1 -1
- package/dist/{AP7HFJJL-tcAhVllC.cjs → AP7HFJJL-DcnEb4BE.cjs} +1 -1
- package/dist/{AP7HFJJL-BsLQ13V_.js → AP7HFJJL-bDlWX5Yx.js} +1 -1
- package/dist/{IconPicker-FLSVAZxx.js → IconPicker-CNwplOGy.js} +2 -2
- package/dist/{IconPicker-J1KLNrSB.cjs → IconPicker-FpyYsxOf.cjs} +1 -1
- package/dist/STRINGS-BExFecZW.js +8 -0
- package/dist/STRINGS-FNnfjF5H.cjs +1 -0
- package/dist/{WDYDFRGG-BTj8AXV6.cjs → WDYDFRGG-BxLmjulP.cjs} +1 -1
- package/dist/{WDYDFRGG-Yi0eNS2V.js → WDYDFRGG-CWq7H6Qk.js} +2 -2
- package/dist/{actions-registery-CtQSSexG.cjs → actions-registery-BRgseJas.cjs} +16 -16
- package/dist/{actions-registery-DqrFhSMp.js → actions-registery-DRV8xywr.js} +180 -181
- package/dist/actions.cjs +1 -1
- package/dist/actions.d.ts +112 -51
- package/dist/actions.js +2 -2
- package/dist/{active-in-another-tab-Dozn833d.js → active-in-another-tab-C392ZWQc.js} +3 -3
- package/dist/{active-in-another-tab-BtAiatqq.cjs → active-in-another-tab-DEWOFgY5.cjs} +1 -1
- package/dist/{add-new-language-page-DD-CAoAQ.js → add-new-language-page-BL2F_Cu7.js} +4 -4
- package/dist/{add-new-language-page-9AMizlES.cjs → add-new-language-page-DBWd0wDY.cjs} +1 -1
- package/dist/{add-new-page-BS9vPnFG.cjs → add-new-page-DYrQeKCi.cjs} +1 -1
- package/dist/{add-new-page-uZKCk9eB.js → add-new-page-QVlyJhn9.js} +2 -2
- package/dist/{ai-panel-content-CK4XOkEh.js → ai-panel-content-CCOluPtK.js} +4 -4
- package/dist/{ai-panel-content-PovaKJaj.cjs → ai-panel-content-DCZRBa6s.cjs} +1 -1
- package/dist/{ai-panel-default-lang-B37k5ADH.cjs → ai-panel-default-lang-C3t0elrO.cjs} +2 -2
- package/dist/{ai-panel-default-lang-BtLjUl9d.js → ai-panel-default-lang-Crz7QAxl.js} +4 -4
- package/dist/{ai-panel-other-lang-CdQmASqv.cjs → ai-panel-other-lang-BRkr4Te3.cjs} +1 -1
- package/dist/{ai-panel-other-lang-Dp1MNaLi.js → ai-panel-other-lang-DIF8PYLh.js} +4 -4
- package/dist/{ai-prompt-input-BT-mEdTX.js → ai-prompt-input-D4dqy8L2.js} +2 -2
- package/dist/{ai-prompt-input-Dtym4w8J.cjs → ai-prompt-input-Ybgvrvd6.cjs} +1 -1
- package/dist/{ai-translation-prompt-B-lH7emI.cjs → ai-translation-prompt-Ck12Bfl6.cjs} +1 -1
- package/dist/{ai-translation-prompt-B17GK1QR.js → ai-translation-prompt-eZ4Sllva.js} +2 -2
- package/dist/{apply-binding-BvWfJCSZ.js → apply-binding-CLU6Xp4K.js} +77 -81
- package/dist/apply-binding-NvZX_rJe.cjs +1 -0
- package/dist/{code-display-DloSPyPr.cjs → code-display-9Onx6RCq.cjs} +1 -1
- package/dist/{code-display-Ck81Id9K.js → code-display-oa1j0ri7.js} +1 -1
- package/dist/{code-editor-EZT2pMsU.js → code-editor-D45h29W1.js} +1 -1
- package/dist/{code-editor-CUeNiMzA.cjs → code-editor-DH8eU4WL.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-CS7C6h9Q.js → continue-editing-in-this-client-BRrIvSrl.js} +3 -3
- package/dist/{continue-editing-in-this-client-DMZOc36k.cjs → continue-editing-in-this-client-DgZ9Q18G.cjs} +1 -1
- package/dist/core-8lkXy4lC.cjs +1 -0
- package/dist/core-BvsZwF26.js +52 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +143 -172
- package/dist/core.js +22 -34
- package/dist/{css-import-modal-s7t5gZQo.js → css-import-modal-BhLPzQH8.js} +5 -4
- package/dist/css-import-modal-C2-oVwFv.cjs +13 -0
- package/dist/{delete-design-token-C1smbx4E.js → delete-design-token-D4Q5-Xql.js} +1 -1
- package/dist/{delete-design-token-Mbw_6sYI.cjs → delete-design-token-DJSQluQ6.cjs} +1 -1
- package/dist/{delete-page-B7J3t0FN.cjs → delete-page-BxbsKhY5.cjs} +1 -1
- package/dist/{delete-page-2GfBi8Iv.js → delete-page-xHdZT-7c.js} +3 -3
- package/dist/{design-token-usage-DyO3xM-F.js → design-token-usage-7wgmVSWI.js} +2 -2
- package/dist/{design-token-usage-BoGOULG8.cjs → design-token-usage-KZ4pilLm.cjs} +1 -1
- package/dist/{digital-asset-manager-Cz3Nlrzl.js → digital-asset-manager-BmbVU7fX.js} +4 -4
- package/dist/{digital-asset-manager-DDk2ucTE.cjs → digital-asset-manager-a1fqrQVH.cjs} +1 -1
- package/dist/{duplicate-page-BwAY4Ssm.js → duplicate-page-5uIno9Yh.js} +4 -4
- package/dist/{duplicate-page-Dw3U4wTT.cjs → duplicate-page-BBTxn_o1.cjs} +1 -1
- package/dist/{dynamic-page-selector-CvBFyX2F.cjs → dynamic-page-selector-C1ef0i2I.cjs} +1 -1
- package/dist/{dynamic-page-selector-sViJuQlU.js → dynamic-page-selector-rhvhg7ol.js} +3 -3
- package/dist/{image-editor-BgGQuESa.js → image-editor-BXYZDa0s.js} +1 -1
- package/dist/{image-editor-AIsccrqC.cjs → image-editor-rqUgAO8V.cjs} +1 -1
- package/dist/{index-B7eWP_hB.js → index-Be9lAaD7.js} +421 -425
- package/dist/index-BhqugjzS.cjs +160 -0
- package/dist/index-CNEEEgTV.cjs +5 -0
- package/dist/{index-RYr8kQdI.js → index-mjuSGlPU.js} +5136 -5613
- package/dist/{json-diff-viewer-B2A78udz.cjs → json-diff-viewer-C9qmLiaq.cjs} +1 -1
- package/dist/{json-diff-viewer-Svw-kbhe.js → json-diff-viewer-aVwY7_hZ.js} +3 -3
- package/dist/{lang-panel-Bnc-9wkM.js → lang-panel-BTWk23Mw.js} +4 -4
- package/dist/{lang-panel-AmEkoWid.cjs → lang-panel-Bo1ZWYfu.cjs} +1 -1
- package/dist/{manage-design-tokens-BBkh1t4w.js → manage-design-tokens-id8bylgO.js} +4 -4
- package/dist/manage-design-tokens-lUMCgjdS.cjs +1 -0
- package/dist/{mark-as-template-CE6tRoQy.cjs → mark-as-template-BYXBDXMv.cjs} +1 -1
- package/dist/{mark-as-template-0CPzZnk-.js → mark-as-template-hv3WD852.js} +3 -3
- package/dist/{nested-path-selector-content-kGznHufl.js → nested-path-selector-content-B8z90MFF.js} +2 -2
- package/dist/{nested-path-selector-content-SmfjElr-.cjs → nested-path-selector-content-DgFFXcTD.cjs} +1 -1
- package/dist/{no-language-page-content-B4bQLc4K.cjs → no-language-page-content-6Kk8UjFX.cjs} +1 -1
- package/dist/{no-language-page-content-DXsAPDZd.js → no-language-page-content-DMACzysm.js} +3 -3
- package/dist/{no-language-page-dialog-BpPqmw9a.js → no-language-page-dialog-D4n_XYUq.js} +2 -2
- package/dist/{no-language-page-dialog-BC8NHzK2.cjs → no-language-page-dialog-mBH-fthh.cjs} +1 -1
- package/dist/{page-creator-82qTbBj4.cjs → page-creator-CGglYnYg.cjs} +1 -1
- package/dist/{page-creator-Bazn6yH4.js → page-creator-CgsOF0Eg.js} +4 -4
- package/dist/{page-lock-CRFyqKZE.js → page-lock-CUCEBnJb.js} +2 -2
- package/dist/{page-lock-D2iFZDUK.cjs → page-lock-Hsi61Mk5.cjs} +1 -1
- package/dist/{page-locked-dialog-xLqvKzax.cjs → page-locked-dialog-DSxbAMpt.cjs} +1 -1
- package/dist/{page-locked-dialog-GKfQEOmk.js → page-locked-dialog-bHvbFllT.js} +3 -3
- package/dist/{page-manager-new-Bn2QKjbf.cjs → page-manager-new-CBfFl5rL.cjs} +1 -1
- package/dist/{page-manager-new-DItY2hjd.js → page-manager-new-Cifc526h.js} +8 -8
- package/dist/{page-manager-search-and-filter-CPa8IXdd.js → page-manager-search-and-filter-CLJss6pV.js} +3 -3
- package/dist/{page-manager-search-and-filter-Dc4ky-qV.cjs → page-manager-search-and-filter-mEKl-UKh.cjs} +1 -1
- package/dist/page-revisions-content-C95dQJyx.cjs +1 -0
- package/dist/{page-revisions-content-CH-PZK0O.js → page-revisions-content-DvL4ya9g.js} +75 -67
- package/dist/pages.cjs +1 -1
- package/dist/pages.d.ts +146 -92
- package/dist/pages.js +1 -1
- package/dist/{publish-pages-content-BzJDObqr.cjs → publish-pages-content-B-6vSkql.cjs} +1 -1
- package/dist/{publish-pages-content-CSJCFElu.js → publish-pages-content-B8-IZW_U.js} +4 -4
- package/dist/{register-chai-top-bar-ESJHs5s-.js → register-chai-top-bar-CX_JkRJn.js} +78 -78
- package/dist/register-chai-top-bar-DWTuRU53.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +14 -15
- package/dist/render.js +3 -3
- package/dist/{rte-widget-modal-5T81P_hg.js → rte-widget-modal-1SbY5bcQ.js} +7 -7
- package/dist/{rte-widget-modal-BfXcA7OP.cjs → rte-widget-modal-CyKwtbOG.cjs} +1 -1
- package/dist/runtime-client.cjs +1 -0
- package/dist/runtime-client.d.ts +158 -0
- package/dist/runtime-client.js +32 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +92 -240
- package/dist/runtime.js +72 -72
- package/dist/{save-to-lib-MtWKSVeN.js → save-to-lib-BKcBfjfi.js} +3 -3
- package/dist/{save-to-lib-DGAdSa-0.cjs → save-to-lib-BmPh_Vns.cjs} +1 -1
- package/dist/{selected-block-display-CB1-hVR5.js → selected-block-display-B3hHlcLA.js} +3 -3
- package/dist/{selected-block-display-DLt_nMn9.cjs → selected-block-display-BCvTNcp2.cjs} +1 -1
- package/dist/{seo-panel-CRzzw4FW.js → seo-panel-D3EyOYij.js} +3 -3
- package/dist/{seo-panel-_kGXE9MC.cjs → seo-panel-DVClgzX9.cjs} +1 -1
- package/dist/{shared-json-ld-DoRgzDPC.cjs → shared-json-ld-BRgJTv0m.cjs} +1 -1
- package/dist/{shared-json-ld-CXukkDeS.js → shared-json-ld-DSPadwbY.js} +3 -3
- package/dist/{slug-input-Dp187Tiy.cjs → slug-input-B39SPBdP.cjs} +1 -1
- package/dist/{slug-input-CeEQ0zyv.js → slug-input-C3UrwSkt.js} +2 -2
- package/dist/supabase-actions.cjs +1 -1
- package/dist/supabase-actions.js +1 -1
- package/dist/{take-over-request-C9J3_rev.js → take-over-request-DfAlPvpE.js} +3 -3
- package/dist/{take-over-request-CXuakFBm.cjs → take-over-request-Tq9-gOCV.cjs} +1 -1
- package/dist/{theme-panel-footer-DvwsyHNQ.js → theme-panel-footer-DIy4baYU.js} +3 -3
- package/dist/{theme-panel-footer-CWZ0qs13.cjs → theme-panel-footer-DQzjVBBP.cjs} +1 -1
- package/dist/{translation-warning-modal-_aBp5ZZQ.js → translation-warning-modal-BHwLZZOw.js} +2 -2
- package/dist/{translation-warning-modal-DEt_ExQp.cjs → translation-warning-modal-Ckwt5Skc.cjs} +1 -1
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +598 -0
- package/dist/types.js +1 -0
- package/dist/{unmark-as-template-BYL5naYx.cjs → unmark-as-template-BKA-sNZr.cjs} +1 -1
- package/dist/{unmark-as-template-JN-cDUV_.js → unmark-as-template-CbgifSbI.js} +3 -3
- package/dist/{unpublish-page-B06iZEIO.cjs → unpublish-page-BqzvOD76.cjs} +1 -1
- package/dist/{unpublish-page-DqwBY2yI.js → unpublish-page-DXQpAkvc.js} +3 -3
- package/dist/utils.d.ts +5 -5
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +214 -214
- package/dist/{web-preview-h39D3TUh.js → web-preview-DH7Yv-jg.js} +2 -2
- package/dist/{web-preview-wRgRY3Tv.cjs → web-preview-DShy13AM.cjs} +1 -1
- package/package.json +13 -7
- package/dist/apply-binding-IsUf6UWJ.cjs +0 -1
- package/dist/core-Dr7QYemB.js +0 -56
- package/dist/core-Y0lXLwkq.cjs +0 -1
- package/dist/css-import-modal-kHB0ramf.cjs +0 -13
- package/dist/index-B-rSiAp_.cjs +0 -1
- package/dist/index-BwH1mRm_.cjs +0 -5
- package/dist/index-Dxfyt4d4.js +0 -39
- package/dist/index-xYnNKovy.cjs +0 -160
- package/dist/manage-design-tokens-B2fG80bi.cjs +0 -1
- package/dist/page-revisions-content-CcLFI4YK.cjs +0 -1
- package/dist/register-chai-top-bar-BqwKw4uy.cjs +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isEmpty as w, get as k, map as T, isNull as F, omit as E, pick as M } from "lodash-es";
|
|
2
|
+
import { jsx as i, jsxs as h, Fragment as S } from "react/jsx-runtime";
|
|
3
|
+
import { registerChaiBlockSchema as u, stylesProp as d } from "./runtime.js";
|
|
4
|
+
import { c as N, g as I } from "./common-functions-D2lMFR6K.js";
|
|
4
5
|
import * as b from "react";
|
|
5
6
|
import { createElement as x } from "react";
|
|
6
|
-
import { ButtonIcon as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: _("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ge = (e) => {
|
|
7
|
+
import { ButtonIcon as H, CodeIcon as $, FrameIcon as j, SketchLogoIcon as U, RowsIcon as D, LayoutIcon as Z, DividerHorizontalIcon as q, CheckboxIcon as G, FileTextIcon as W, InputIcon as V, LetterCaseToggleIcon as O, RadiobuttonIcon as Y, DropdownMenuIcon as Q, HeadingIcon as J, TableIcon as X, BorderTopIcon as K, BorderAllIcon as ee, ViewHorizontalIcon as te, DragHandleHorizontalIcon as oe, ImageIcon as le, Link1Icon as re, ColumnsIcon as ne, TextIcon as ie, CursorTextIcon as ae, SpaceBetweenVerticallyIcon as se, VideoIcon as ce, ChevronLeftIcon as de, ChevronRightIcon as pe, LoopIcon as z } from "@radix-ui/react-icons";
|
|
8
|
+
import { r as p, e as ue, c as me } from "./core-BvsZwF26.js";
|
|
9
|
+
const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: N("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ye = (e) => {
|
|
10
10
|
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: a } = e;
|
|
11
11
|
let s = r;
|
|
12
12
|
r || (s = /* @__PURE__ */ i(C, { inBuilder: t }));
|
|
13
13
|
let c = {};
|
|
14
14
|
return l && (c = { backgroundImage: `url(${l})` }), b.createElement(n, { ...o, ...a, style: c }, s);
|
|
15
|
-
},
|
|
15
|
+
}, ge = {
|
|
16
16
|
type: "Box",
|
|
17
17
|
description: "Similar to a div or section elements in HTML",
|
|
18
18
|
label: "Box",
|
|
19
19
|
category: "core",
|
|
20
20
|
group: "basic",
|
|
21
|
-
...
|
|
21
|
+
...u({
|
|
22
22
|
properties: {
|
|
23
|
-
styles:
|
|
23
|
+
styles: d(""),
|
|
24
24
|
tag: {
|
|
25
25
|
type: "string",
|
|
26
26
|
default: "div",
|
|
@@ -54,8 +54,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
54
54
|
}
|
|
55
55
|
}),
|
|
56
56
|
canAcceptBlock: () => !0
|
|
57
|
-
},
|
|
58
|
-
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder: y } = e, g = l, v = a || /* @__PURE__ */ h(
|
|
57
|
+
}, be = (e) => {
|
|
58
|
+
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder: y } = e, g = l, v = a || /* @__PURE__ */ h(S, { children: [
|
|
59
59
|
r && /* @__PURE__ */ i("span", { children: r }),
|
|
60
60
|
g && /* @__PURE__ */ i(
|
|
61
61
|
"div",
|
|
@@ -76,16 +76,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
76
76
|
v
|
|
77
77
|
);
|
|
78
78
|
return w(k(c, "href")) ? f : y ? /* @__PURE__ */ i("span", { children: f }) : /* @__PURE__ */ i("a", { "aria-label": r, href: k(c, "href") || "/", target: k(c, "target", "_self"), children: f });
|
|
79
|
-
},
|
|
79
|
+
}, fe = {
|
|
80
80
|
type: "Button",
|
|
81
81
|
description: "similar to a button element in HTML",
|
|
82
82
|
label: "Button",
|
|
83
83
|
category: "core",
|
|
84
|
-
icon:
|
|
84
|
+
icon: H,
|
|
85
85
|
group: "basic",
|
|
86
|
-
...
|
|
86
|
+
...u({
|
|
87
87
|
properties: {
|
|
88
|
-
styles:
|
|
88
|
+
styles: d("text-primary-foreground bg-primary px-4 py-2 rounded-lg flex items-center"),
|
|
89
89
|
content: {
|
|
90
90
|
type: "string",
|
|
91
91
|
title: "Button label",
|
|
@@ -132,7 +132,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
132
132
|
}),
|
|
133
133
|
i18nProps: ["content", "link"],
|
|
134
134
|
aiProps: ["content"]
|
|
135
|
-
},
|
|
135
|
+
}, he = (e) => {
|
|
136
136
|
const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
|
|
137
137
|
return r ? /* @__PURE__ */ h("div", { className: "relative", ...o, children: [
|
|
138
138
|
r ? /* @__PURE__ */ i("div", { ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
@@ -145,16 +145,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
145
145
|
...t,
|
|
146
146
|
dangerouslySetInnerHTML: { __html: l }
|
|
147
147
|
});
|
|
148
|
-
},
|
|
148
|
+
}, ke = {
|
|
149
149
|
type: "CustomHTML",
|
|
150
150
|
description: "similar to a div or section elements in HTML",
|
|
151
151
|
label: "Custom HTML",
|
|
152
152
|
category: "core",
|
|
153
|
-
icon:
|
|
153
|
+
icon: $,
|
|
154
154
|
group: "advanced",
|
|
155
|
-
...
|
|
155
|
+
...u({
|
|
156
156
|
properties: {
|
|
157
|
-
styles:
|
|
157
|
+
styles: d(""),
|
|
158
158
|
htmlCode: {
|
|
159
159
|
type: "string",
|
|
160
160
|
default: "<div><p>Enter your HTML code here...</p></div>",
|
|
@@ -163,18 +163,18 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
163
163
|
}
|
|
164
164
|
}),
|
|
165
165
|
i18nProps: ["htmlCode"]
|
|
166
|
-
},
|
|
166
|
+
}, xe = (e) => {
|
|
167
167
|
const { scripts: o, inBuilder: t, blockProps: l } = e;
|
|
168
|
-
return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className:
|
|
169
|
-
},
|
|
168
|
+
return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className: N("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ i("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: { __html: o } });
|
|
169
|
+
}, we = {
|
|
170
170
|
type: "CustomScript",
|
|
171
171
|
description: "similar to a script element in HTML",
|
|
172
172
|
label: "Custom Script",
|
|
173
173
|
category: "core",
|
|
174
|
-
icon:
|
|
174
|
+
icon: $,
|
|
175
175
|
hidden: !0,
|
|
176
176
|
group: "advanced",
|
|
177
|
-
...
|
|
177
|
+
...u({
|
|
178
178
|
properties: {
|
|
179
179
|
scripts: {
|
|
180
180
|
type: "string",
|
|
@@ -185,7 +185,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
})
|
|
188
|
-
},
|
|
188
|
+
}, ve = (e) => {
|
|
189
189
|
const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
|
|
190
190
|
return t && !r ? /* @__PURE__ */ h(
|
|
191
191
|
"div",
|
|
@@ -201,15 +201,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
201
201
|
]
|
|
202
202
|
}
|
|
203
203
|
) : b.createElement("span", { ...o }, l);
|
|
204
|
-
},
|
|
204
|
+
}, Ce = {
|
|
205
205
|
type: "GlobalBlock",
|
|
206
206
|
description: "A global block component",
|
|
207
207
|
label: "Global Block",
|
|
208
|
-
icon:
|
|
208
|
+
icon: j,
|
|
209
209
|
category: "core",
|
|
210
210
|
group: "basic",
|
|
211
211
|
hidden: !0,
|
|
212
|
-
...
|
|
212
|
+
...u({
|
|
213
213
|
properties: {
|
|
214
214
|
globalBlock: {
|
|
215
215
|
type: "string",
|
|
@@ -219,11 +219,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
})
|
|
222
|
-
},
|
|
222
|
+
}, _ = (e, ...o) => ({
|
|
223
223
|
...e,
|
|
224
|
-
className:
|
|
225
|
-
}),
|
|
226
|
-
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s =
|
|
224
|
+
className: N(e.className, ...o)
|
|
225
|
+
}), Ie = (e) => {
|
|
226
|
+
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = _(l, "");
|
|
227
227
|
if (w(t))
|
|
228
228
|
return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
|
|
229
229
|
const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
@@ -236,16 +236,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
236
236
|
},
|
|
237
237
|
dangerouslySetInnerHTML: { __html: c }
|
|
238
238
|
});
|
|
239
|
-
},
|
|
239
|
+
}, Pe = {
|
|
240
240
|
type: "Icon",
|
|
241
241
|
label: "web_blocks.icon",
|
|
242
242
|
category: "core",
|
|
243
243
|
description: "Icon block is used to display an icon/svg.",
|
|
244
244
|
icon: U,
|
|
245
245
|
group: "media",
|
|
246
|
-
...
|
|
246
|
+
...u({
|
|
247
247
|
properties: {
|
|
248
|
-
styles:
|
|
248
|
+
styles: d(""),
|
|
249
249
|
icon: {
|
|
250
250
|
type: "string",
|
|
251
251
|
title: "Icon",
|
|
@@ -264,7 +264,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, Le = (e) => {
|
|
268
268
|
const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
|
|
269
269
|
return t && !r ? /* @__PURE__ */ h(
|
|
270
270
|
"div",
|
|
@@ -280,15 +280,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
280
280
|
]
|
|
281
281
|
}
|
|
282
282
|
) : b.createElement("span", { ...o }, l);
|
|
283
|
-
},
|
|
283
|
+
}, Be = {
|
|
284
284
|
type: "PartialBlock",
|
|
285
285
|
description: "A partial block component. Partial blocks are global blocks that can be used in multiple pages.",
|
|
286
286
|
label: "Partial Block",
|
|
287
|
-
icon:
|
|
287
|
+
icon: j,
|
|
288
288
|
category: "core",
|
|
289
289
|
group: "basic",
|
|
290
290
|
hidden: !0,
|
|
291
|
-
...
|
|
291
|
+
...u({
|
|
292
292
|
properties: {
|
|
293
293
|
partialBlockId: {
|
|
294
294
|
type: "string",
|
|
@@ -298,7 +298,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
})
|
|
301
|
-
},
|
|
301
|
+
}, L = {
|
|
302
302
|
SMALL: {
|
|
303
303
|
1: "col-span-1",
|
|
304
304
|
2: "col-span-2",
|
|
@@ -341,15 +341,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
341
341
|
11: "lg:col-span-11",
|
|
342
342
|
12: "lg:col-span-12"
|
|
343
343
|
}
|
|
344
|
-
},
|
|
344
|
+
}, Se = (e) => {
|
|
345
345
|
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
|
|
346
346
|
k(l, "className", ""),
|
|
347
|
-
k(
|
|
348
|
-
n ? k(
|
|
349
|
-
a ? k(
|
|
347
|
+
k(L, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
|
|
348
|
+
n ? k(L, ["MEDIUM", n || r], "") : "",
|
|
349
|
+
a ? k(L, ["LARGE", n || r], "") : ""
|
|
350
350
|
].join(" ") };
|
|
351
351
|
return /* @__PURE__ */ i("div", { ...o, ...l, ...c, children: t || /* @__PURE__ */ i("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
|
|
352
|
-
},
|
|
352
|
+
}, Ne = {
|
|
353
353
|
type: "Column",
|
|
354
354
|
description: "A column component",
|
|
355
355
|
label: "Column",
|
|
@@ -361,9 +361,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
361
361
|
canDelete: () => !0,
|
|
362
362
|
canAcceptBlock: () => !0,
|
|
363
363
|
canBeNested: (e) => e === "Row",
|
|
364
|
-
...
|
|
364
|
+
...u({
|
|
365
365
|
properties: {
|
|
366
|
-
styles:
|
|
366
|
+
styles: d(""),
|
|
367
367
|
colSpan: {
|
|
368
368
|
type: "number",
|
|
369
369
|
title: "Column Span",
|
|
@@ -386,15 +386,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
})
|
|
389
|
-
},
|
|
389
|
+
}, _e = (e) => {
|
|
390
390
|
const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [k(l, "className", ""), " grid grid-cols-12"].join() };
|
|
391
391
|
return typeof (l == null ? void 0 : l.style) == "object" && l.style !== null ? a.style = { ...l.style, gap: `${r}px` } : a.style = { gap: `${r}px` }, /* @__PURE__ */ i("div", { ...o, ...l, ...a, children: t });
|
|
392
|
-
},
|
|
392
|
+
}, Te = {
|
|
393
393
|
type: "Row",
|
|
394
394
|
description: "A row component",
|
|
395
395
|
label: "Row",
|
|
396
396
|
group: "basic",
|
|
397
|
-
icon:
|
|
397
|
+
icon: D,
|
|
398
398
|
hidden: !0,
|
|
399
399
|
blocks: () => [
|
|
400
400
|
{ _type: "Row", _id: "row", styles: "#styles:,p-1" },
|
|
@@ -404,9 +404,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
404
404
|
category: "core",
|
|
405
405
|
wrapper: !0,
|
|
406
406
|
canAcceptBlock: (e) => e === "Column",
|
|
407
|
-
...
|
|
407
|
+
...u({
|
|
408
408
|
properties: {
|
|
409
|
-
styles:
|
|
409
|
+
styles: d(""),
|
|
410
410
|
colCount: {
|
|
411
411
|
type: "number",
|
|
412
412
|
default: 2,
|
|
@@ -421,34 +421,34 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
})
|
|
424
|
-
},
|
|
424
|
+
}, Re = (e) => {
|
|
425
425
|
const { blockProps: o, styles: t } = e;
|
|
426
426
|
return x("hr", { ...t, ...o });
|
|
427
|
-
},
|
|
427
|
+
}, Ae = {
|
|
428
428
|
type: "Divider",
|
|
429
429
|
description: "A horizontal line component",
|
|
430
430
|
label: "Divider",
|
|
431
431
|
category: "core",
|
|
432
432
|
icon: q,
|
|
433
433
|
group: "basic",
|
|
434
|
-
...
|
|
434
|
+
...u({
|
|
435
435
|
properties: {
|
|
436
|
-
styles:
|
|
436
|
+
styles: d("bg-gray-900 h-0.5 py-2 my-1")
|
|
437
437
|
}
|
|
438
438
|
})
|
|
439
|
-
},
|
|
439
|
+
}, Ee = (e) => {
|
|
440
440
|
const { blockProps: o, styles: t, backgroundImage: l } = e;
|
|
441
441
|
let r = {};
|
|
442
442
|
return l && (r = { backgroundImage: `url(${l})` }), b.createElement("div", { ...o, ...t, style: r });
|
|
443
|
-
},
|
|
443
|
+
}, Me = {
|
|
444
444
|
type: "EmptyBox",
|
|
445
445
|
description: "A box component with no children",
|
|
446
446
|
label: "Empty Box",
|
|
447
447
|
category: "core",
|
|
448
448
|
group: "basic",
|
|
449
|
-
...
|
|
449
|
+
...u({
|
|
450
450
|
properties: {
|
|
451
|
-
styles:
|
|
451
|
+
styles: d(""),
|
|
452
452
|
backgroundImage: {
|
|
453
453
|
type: "string",
|
|
454
454
|
title: "Background Image",
|
|
@@ -457,7 +457,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
})
|
|
460
|
-
},
|
|
460
|
+
}, He = (e) => {
|
|
461
461
|
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
462
462
|
return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
|
|
463
463
|
/* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
|
|
@@ -474,16 +474,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
474
474
|
defaultChecked: s
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
|
-
},
|
|
477
|
+
}, $e = {
|
|
478
478
|
type: "Checkbox",
|
|
479
479
|
label: "web_blocks.checkbox",
|
|
480
480
|
category: "core",
|
|
481
481
|
icon: G,
|
|
482
482
|
group: "form",
|
|
483
|
-
...
|
|
483
|
+
...u({
|
|
484
484
|
properties: {
|
|
485
|
-
styles:
|
|
486
|
-
inputStyles:
|
|
485
|
+
styles: d("flex items-center gap-x-2"),
|
|
486
|
+
inputStyles: d(""),
|
|
487
487
|
fieldName: {
|
|
488
488
|
type: "string",
|
|
489
489
|
title: "Field Name",
|
|
@@ -513,7 +513,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
513
513
|
}),
|
|
514
514
|
aiProps: ["label"],
|
|
515
515
|
i18nProps: ["label"]
|
|
516
|
-
},
|
|
516
|
+
}, je = (e) => {
|
|
517
517
|
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
|
|
518
518
|
let c = o;
|
|
519
519
|
return o || (c = /* @__PURE__ */ i(C, { inBuilder: s })), /* @__PURE__ */ h(
|
|
@@ -538,7 +538,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
538
538
|
]
|
|
539
539
|
}
|
|
540
540
|
);
|
|
541
|
-
},
|
|
541
|
+
}, De = {
|
|
542
542
|
type: "Form",
|
|
543
543
|
label: "Form",
|
|
544
544
|
category: "core",
|
|
@@ -554,9 +554,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
554
554
|
styles: "#styles:bg-black text-white rounded px-3 py-1,"
|
|
555
555
|
}
|
|
556
556
|
],
|
|
557
|
-
...
|
|
557
|
+
...u({
|
|
558
558
|
properties: {
|
|
559
|
-
styles:
|
|
559
|
+
styles: d(""),
|
|
560
560
|
action: {
|
|
561
561
|
type: "string",
|
|
562
562
|
title: "Submit URL",
|
|
@@ -579,7 +579,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
579
579
|
i18nProps: ["errorMessage", "successMessage"],
|
|
580
580
|
aiProps: ["errorMessage", "successMessage"],
|
|
581
581
|
canAcceptBlock: () => !0
|
|
582
|
-
},
|
|
582
|
+
}, Ve = (e) => {
|
|
583
583
|
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
|
|
584
584
|
return /* @__PURE__ */ h("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
|
|
585
585
|
l,
|
|
@@ -592,15 +592,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
592
592
|
}
|
|
593
593
|
)
|
|
594
594
|
] });
|
|
595
|
-
},
|
|
595
|
+
}, ze = {
|
|
596
596
|
type: "FormButton",
|
|
597
597
|
label: "Submit Button",
|
|
598
598
|
category: "core",
|
|
599
|
-
icon:
|
|
599
|
+
icon: H,
|
|
600
600
|
group: "form",
|
|
601
|
-
...
|
|
601
|
+
...u({
|
|
602
602
|
properties: {
|
|
603
|
-
styles:
|
|
603
|
+
styles: d(
|
|
604
604
|
"text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
605
605
|
),
|
|
606
606
|
label: {
|
|
@@ -631,7 +631,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
631
631
|
}),
|
|
632
632
|
i18nProps: ["label"],
|
|
633
633
|
aiProps: ["label"]
|
|
634
|
-
},
|
|
634
|
+
}, Fe = (e) => {
|
|
635
635
|
const o = { type: "text", autocomplete: "on" };
|
|
636
636
|
return e ? ["text", "password", "number", "hidden", "range", "color", "date", "time"].includes(e) ? { type: e, autocomplete: "on" } : e === "email" ? { type: "email", autocomplete: "email" } : e === "tel" ? { type: "tel", autocomplete: "tel" } : e === "url" ? { type: "url", autocomplete: "url" } : {
|
|
637
637
|
// Special cases
|
|
@@ -699,7 +699,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
699
699
|
organization: { type: "text", autocomplete: "organization" },
|
|
700
700
|
language: { type: "text", autocomplete: "language" }
|
|
701
701
|
}[e] || o : o;
|
|
702
|
-
},
|
|
702
|
+
}, Ue = (e) => {
|
|
703
703
|
const {
|
|
704
704
|
blockProps: o,
|
|
705
705
|
fieldName: t,
|
|
@@ -711,7 +711,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
711
711
|
required: c,
|
|
712
712
|
inputType: y,
|
|
713
713
|
defaultValue: g
|
|
714
|
-
} = e, { type: v, autocomplete: f } =
|
|
714
|
+
} = e, { type: v, autocomplete: f } = Fe(y);
|
|
715
715
|
return s ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
716
716
|
s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
717
717
|
/* @__PURE__ */ i(
|
|
@@ -740,16 +740,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
740
740
|
defaultValue: g
|
|
741
741
|
}
|
|
742
742
|
);
|
|
743
|
-
},
|
|
743
|
+
}, Ze = {
|
|
744
744
|
type: "Input",
|
|
745
745
|
label: "web_blocks.input",
|
|
746
746
|
category: "core",
|
|
747
|
-
icon:
|
|
747
|
+
icon: V,
|
|
748
748
|
group: "form",
|
|
749
|
-
...
|
|
749
|
+
...u({
|
|
750
750
|
properties: {
|
|
751
|
-
styles:
|
|
752
|
-
inputStyles:
|
|
751
|
+
styles: d(""),
|
|
752
|
+
inputStyles: d("w-full p-1"),
|
|
753
753
|
fieldName: {
|
|
754
754
|
type: "string",
|
|
755
755
|
title: "Field Name",
|
|
@@ -855,21 +855,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
855
855
|
}),
|
|
856
856
|
aiProps: ["label", "placeholder"],
|
|
857
857
|
i18nProps: ["label", "placeholder"]
|
|
858
|
-
},
|
|
858
|
+
}, qe = (e) => {
|
|
859
859
|
const { blockProps: o, content: t, styles: l, children: r } = e, n = { ...l, ...o };
|
|
860
860
|
return r ? b.createElement("label", n, r) : b.createElement("label", {
|
|
861
861
|
...n,
|
|
862
862
|
dangerouslySetInnerHTML: { __html: t }
|
|
863
863
|
});
|
|
864
|
-
},
|
|
864
|
+
}, Ge = {
|
|
865
865
|
type: "Label",
|
|
866
866
|
label: "Label",
|
|
867
867
|
category: "core",
|
|
868
868
|
icon: O,
|
|
869
869
|
group: "form",
|
|
870
|
-
...
|
|
870
|
+
...u({
|
|
871
871
|
properties: {
|
|
872
|
-
styles:
|
|
872
|
+
styles: d(),
|
|
873
873
|
content: {
|
|
874
874
|
type: "string",
|
|
875
875
|
title: "Content",
|
|
@@ -879,7 +879,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
879
879
|
}),
|
|
880
880
|
aiProps: ["content"],
|
|
881
881
|
i18nProps: ["content"]
|
|
882
|
-
},
|
|
882
|
+
}, We = (e) => {
|
|
883
883
|
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
884
884
|
return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
|
|
885
885
|
/* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
|
|
@@ -896,16 +896,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
896
896
|
checked: s
|
|
897
897
|
}
|
|
898
898
|
);
|
|
899
|
-
},
|
|
899
|
+
}, Oe = {
|
|
900
900
|
type: "Radio",
|
|
901
901
|
label: "web_blocks.radio",
|
|
902
902
|
category: "core",
|
|
903
903
|
icon: Y,
|
|
904
904
|
group: "form",
|
|
905
|
-
...
|
|
905
|
+
...u({
|
|
906
906
|
properties: {
|
|
907
|
-
styles:
|
|
908
|
-
inputStyles:
|
|
907
|
+
styles: d("flex items-center gap-x-2"),
|
|
908
|
+
inputStyles: d(""),
|
|
909
909
|
fieldName: {
|
|
910
910
|
type: "string",
|
|
911
911
|
title: "Field Name",
|
|
@@ -935,7 +935,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
935
935
|
}),
|
|
936
936
|
aiProps: ["label"],
|
|
937
937
|
i18nProps: ["label"]
|
|
938
|
-
},
|
|
938
|
+
}, Ye = (e) => {
|
|
939
939
|
const {
|
|
940
940
|
blockProps: o,
|
|
941
941
|
fieldName: t,
|
|
@@ -961,7 +961,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
961
961
|
defaultValue: f,
|
|
962
962
|
children: [
|
|
963
963
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
964
|
-
|
|
964
|
+
T(g, (m) => /* @__PURE__ */ i("option", { value: m == null ? void 0 : m.value, children: m == null ? void 0 : m.label }, m == null ? void 0 : m.value))
|
|
965
965
|
]
|
|
966
966
|
}
|
|
967
967
|
)
|
|
@@ -976,20 +976,20 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
976
976
|
defaultValue: f,
|
|
977
977
|
children: [
|
|
978
978
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
979
|
-
|
|
979
|
+
T(g, (m) => /* @__PURE__ */ i("option", { value: m == null ? void 0 : m.value, children: m == null ? void 0 : m.label }, m == null ? void 0 : m.value))
|
|
980
980
|
]
|
|
981
981
|
}
|
|
982
982
|
);
|
|
983
|
-
},
|
|
983
|
+
}, Qe = {
|
|
984
984
|
type: "Select",
|
|
985
985
|
label: "web_blocks.select",
|
|
986
986
|
category: "core",
|
|
987
987
|
icon: Q,
|
|
988
988
|
group: "form",
|
|
989
|
-
...
|
|
989
|
+
...u({
|
|
990
990
|
properties: {
|
|
991
|
-
styles:
|
|
992
|
-
inputStyles:
|
|
991
|
+
styles: d(""),
|
|
992
|
+
inputStyles: d("w-full p-1"),
|
|
993
993
|
fieldName: {
|
|
994
994
|
type: "string",
|
|
995
995
|
title: "Field Name",
|
|
@@ -1049,7 +1049,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1049
1049
|
}),
|
|
1050
1050
|
aiProps: ["label", "placeholder"],
|
|
1051
1051
|
i18nProps: ["label", "placeholder"]
|
|
1052
|
-
},
|
|
1052
|
+
}, Je = (e) => {
|
|
1053
1053
|
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: y, defaultValue: g } = e;
|
|
1054
1054
|
return c ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
1055
1055
|
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
@@ -1077,21 +1077,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1077
1077
|
defaultValue: g
|
|
1078
1078
|
}
|
|
1079
1079
|
);
|
|
1080
|
-
},
|
|
1080
|
+
}, Xe = {
|
|
1081
1081
|
type: "TextArea",
|
|
1082
1082
|
label: "web_blocks.textarea",
|
|
1083
1083
|
category: "core",
|
|
1084
|
-
icon:
|
|
1084
|
+
icon: V,
|
|
1085
1085
|
group: "form",
|
|
1086
|
-
...
|
|
1086
|
+
...u({
|
|
1087
1087
|
properties: {
|
|
1088
1088
|
fieldName: {
|
|
1089
1089
|
type: "string",
|
|
1090
1090
|
title: "Field Name",
|
|
1091
1091
|
default: "fieldName"
|
|
1092
1092
|
},
|
|
1093
|
-
styles:
|
|
1094
|
-
inputStyles:
|
|
1093
|
+
styles: d(""),
|
|
1094
|
+
inputStyles: d("w-full p-1"),
|
|
1095
1095
|
showLabel: {
|
|
1096
1096
|
type: "boolean",
|
|
1097
1097
|
title: "Show Label",
|
|
@@ -1128,21 +1128,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1128
1128
|
}),
|
|
1129
1129
|
aiProps: ["label", "placeholder"],
|
|
1130
1130
|
i18nProps: ["label", "placeholder"]
|
|
1131
|
-
},
|
|
1131
|
+
}, Ke = (e) => {
|
|
1132
1132
|
const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
|
|
1133
1133
|
return n ? b.createElement(r, { ...t, ...o }, n) : b.createElement(r, {
|
|
1134
1134
|
...t,
|
|
1135
1135
|
...o,
|
|
1136
1136
|
dangerouslySetInnerHTML: { __html: l }
|
|
1137
1137
|
});
|
|
1138
|
-
},
|
|
1138
|
+
}, et = {
|
|
1139
1139
|
type: "Heading",
|
|
1140
1140
|
description: "A heading component similar to h1, h2, h3, h4, h5, h6 elements in HTML",
|
|
1141
1141
|
label: "Heading",
|
|
1142
1142
|
category: "core",
|
|
1143
1143
|
icon: J,
|
|
1144
1144
|
group: "typography",
|
|
1145
|
-
...
|
|
1145
|
+
...u({
|
|
1146
1146
|
properties: {
|
|
1147
1147
|
tag: {
|
|
1148
1148
|
type: "string",
|
|
@@ -1150,7 +1150,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1150
1150
|
title: "Level",
|
|
1151
1151
|
enum: ["h1", "h2", "h3", "h4", "h5", "h6"]
|
|
1152
1152
|
},
|
|
1153
|
-
styles:
|
|
1153
|
+
styles: d("text-3xl"),
|
|
1154
1154
|
content: {
|
|
1155
1155
|
type: "string",
|
|
1156
1156
|
default: "Heading goes here",
|
|
@@ -1162,37 +1162,37 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1162
1162
|
aiProps: ["content"],
|
|
1163
1163
|
i18nProps: ["content"],
|
|
1164
1164
|
canAcceptBlock: () => !0
|
|
1165
|
-
},
|
|
1165
|
+
}, tt = (e) => {
|
|
1166
1166
|
const { blockProps: o, styles: t } = e;
|
|
1167
1167
|
return x("br", { ...o, ...t });
|
|
1168
|
-
},
|
|
1168
|
+
}, ot = {
|
|
1169
1169
|
type: "LineBreak",
|
|
1170
1170
|
label: "Line Break",
|
|
1171
1171
|
category: "core",
|
|
1172
1172
|
group: "basic",
|
|
1173
1173
|
hidden: !0,
|
|
1174
|
-
...
|
|
1174
|
+
...u({
|
|
1175
1175
|
properties: {
|
|
1176
|
-
styles:
|
|
1176
|
+
styles: d("")
|
|
1177
1177
|
}
|
|
1178
1178
|
}),
|
|
1179
1179
|
canAcceptBlock: () => !0,
|
|
1180
1180
|
canDelete: () => !1,
|
|
1181
1181
|
canMove: () => !1,
|
|
1182
1182
|
canDuplicate: () => !1
|
|
1183
|
-
},
|
|
1183
|
+
}, lt = (e) => {
|
|
1184
1184
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1185
1185
|
return t ? x("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1186
|
-
},
|
|
1186
|
+
}, rt = (e) => {
|
|
1187
1187
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1188
1188
|
return t ? x("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1189
|
-
},
|
|
1189
|
+
}, nt = (e) => {
|
|
1190
1190
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1191
1191
|
return t ? x("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1192
|
-
},
|
|
1192
|
+
}, it = (e) => {
|
|
1193
1193
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1194
1194
|
return t ? x("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1195
|
-
},
|
|
1195
|
+
}, at = (e) => {
|
|
1196
1196
|
const { blockProps: o, children: t, content: l, styles: r } = e;
|
|
1197
1197
|
return !t && w(l) ? /* @__PURE__ */ i(C, {}) : t ? x("td", { ...o, ...r }, t) : x("td", {
|
|
1198
1198
|
...o,
|
|
@@ -1200,72 +1200,72 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1200
1200
|
dangerouslySetInnerHTML: { __html: l }
|
|
1201
1201
|
});
|
|
1202
1202
|
};
|
|
1203
|
-
|
|
1203
|
+
p(lt, {
|
|
1204
1204
|
type: "Table",
|
|
1205
1205
|
label: "Table",
|
|
1206
1206
|
category: "core",
|
|
1207
1207
|
group: "table",
|
|
1208
1208
|
hidden: !0,
|
|
1209
1209
|
icon: X,
|
|
1210
|
-
...
|
|
1210
|
+
...u({
|
|
1211
1211
|
properties: {
|
|
1212
|
-
styles:
|
|
1212
|
+
styles: d("")
|
|
1213
1213
|
}
|
|
1214
1214
|
}),
|
|
1215
1215
|
blocks: P("Table")
|
|
1216
1216
|
});
|
|
1217
|
-
|
|
1217
|
+
p(rt, {
|
|
1218
1218
|
type: "TableHead",
|
|
1219
1219
|
label: "Table Head",
|
|
1220
1220
|
category: "core",
|
|
1221
1221
|
group: "table",
|
|
1222
1222
|
hidden: !0,
|
|
1223
1223
|
icon: K,
|
|
1224
|
-
...
|
|
1224
|
+
...u({
|
|
1225
1225
|
properties: {
|
|
1226
|
-
styles:
|
|
1226
|
+
styles: d("")
|
|
1227
1227
|
}
|
|
1228
1228
|
}),
|
|
1229
1229
|
blocks: P("TableHead")
|
|
1230
1230
|
});
|
|
1231
|
-
|
|
1231
|
+
p(nt, {
|
|
1232
1232
|
type: "TableBody",
|
|
1233
1233
|
label: "Table Body",
|
|
1234
1234
|
category: "core",
|
|
1235
1235
|
group: "table",
|
|
1236
1236
|
hidden: !0,
|
|
1237
1237
|
icon: ee,
|
|
1238
|
-
...
|
|
1238
|
+
...u({
|
|
1239
1239
|
properties: {
|
|
1240
|
-
styles:
|
|
1240
|
+
styles: d("")
|
|
1241
1241
|
}
|
|
1242
1242
|
}),
|
|
1243
1243
|
blocks: P("TableBody")
|
|
1244
1244
|
});
|
|
1245
|
-
|
|
1245
|
+
p(it, {
|
|
1246
1246
|
type: "TableRow",
|
|
1247
1247
|
label: "Table Row",
|
|
1248
1248
|
category: "core",
|
|
1249
1249
|
group: "table",
|
|
1250
1250
|
hidden: !0,
|
|
1251
1251
|
icon: te,
|
|
1252
|
-
...
|
|
1252
|
+
...u({
|
|
1253
1253
|
properties: {
|
|
1254
|
-
styles:
|
|
1254
|
+
styles: d("")
|
|
1255
1255
|
}
|
|
1256
1256
|
}),
|
|
1257
1257
|
blocks: P("TableRow")
|
|
1258
1258
|
});
|
|
1259
|
-
|
|
1259
|
+
p(at, {
|
|
1260
1260
|
type: "TableCell",
|
|
1261
1261
|
label: "Table Cell",
|
|
1262
1262
|
category: "core",
|
|
1263
1263
|
group: "table",
|
|
1264
1264
|
hidden: !0,
|
|
1265
1265
|
icon: oe,
|
|
1266
|
-
...
|
|
1266
|
+
...u({
|
|
1267
1267
|
properties: {
|
|
1268
|
-
styles:
|
|
1268
|
+
styles: d(""),
|
|
1269
1269
|
content: {
|
|
1270
1270
|
type: "string",
|
|
1271
1271
|
default: "Heading goes here",
|
|
@@ -1321,7 +1321,7 @@ function P(e) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
|
|
1323
1323
|
}
|
|
1324
|
-
const
|
|
1324
|
+
const st = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", ct = (e) => {
|
|
1325
1325
|
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth: y, mobileHeight: g } = e;
|
|
1326
1326
|
return w(t) ? /* @__PURE__ */ i(C, { className: "h-36" }) : /* @__PURE__ */ h("picture", { children: [
|
|
1327
1327
|
l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width: y, height: g }),
|
|
@@ -1338,20 +1338,20 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1338
1338
|
}
|
|
1339
1339
|
)
|
|
1340
1340
|
] });
|
|
1341
|
-
},
|
|
1341
|
+
}, dt = {
|
|
1342
1342
|
type: "Image",
|
|
1343
1343
|
description: "A image component",
|
|
1344
1344
|
label: "Image",
|
|
1345
1345
|
category: "core",
|
|
1346
1346
|
icon: le,
|
|
1347
1347
|
group: "media",
|
|
1348
|
-
...
|
|
1348
|
+
...u({
|
|
1349
1349
|
properties: {
|
|
1350
|
-
styles:
|
|
1350
|
+
styles: d("w-full h-full object-cover"),
|
|
1351
1351
|
image: {
|
|
1352
1352
|
type: "string",
|
|
1353
1353
|
title: "Image",
|
|
1354
|
-
default:
|
|
1354
|
+
default: st,
|
|
1355
1355
|
ui: { "ui:widget": "image" }
|
|
1356
1356
|
},
|
|
1357
1357
|
width: {
|
|
@@ -1399,7 +1399,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1399
1399
|
}),
|
|
1400
1400
|
aiProps: ["alt"],
|
|
1401
1401
|
i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
|
|
1402
|
-
},
|
|
1402
|
+
}, pt = (e) => {
|
|
1403
1403
|
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
|
|
1404
1404
|
let s = {};
|
|
1405
1405
|
return !l && w(a) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ i("span", { role: "link", ...o, style: s, ...r, children: l }) : x(
|
|
@@ -1422,16 +1422,16 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1422
1422
|
},
|
|
1423
1423
|
a
|
|
1424
1424
|
);
|
|
1425
|
-
},
|
|
1425
|
+
}, ut = {
|
|
1426
1426
|
type: "Link",
|
|
1427
1427
|
description: "A link component",
|
|
1428
1428
|
label: "Link",
|
|
1429
1429
|
category: "core",
|
|
1430
1430
|
icon: re,
|
|
1431
1431
|
group: "basic",
|
|
1432
|
-
...
|
|
1432
|
+
...u({
|
|
1433
1433
|
properties: {
|
|
1434
|
-
styles:
|
|
1434
|
+
styles: d("block"),
|
|
1435
1435
|
content: {
|
|
1436
1436
|
type: "string",
|
|
1437
1437
|
default: "Link text goes here",
|
|
@@ -1463,19 +1463,19 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1463
1463
|
aiProps: ["content"],
|
|
1464
1464
|
i18nProps: ["content", "link"],
|
|
1465
1465
|
canAcceptBlock: (e) => e !== "Link"
|
|
1466
|
-
},
|
|
1466
|
+
}, mt = (e) => {
|
|
1467
1467
|
const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
|
|
1468
1468
|
return !t && w(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(C, { inBuilder: n }) : b.createElement(r || "ul", { ...o, ...l }, t);
|
|
1469
|
-
},
|
|
1469
|
+
}, yt = {
|
|
1470
1470
|
type: "List",
|
|
1471
1471
|
description: "A list component",
|
|
1472
1472
|
label: "List",
|
|
1473
|
-
icon:
|
|
1473
|
+
icon: D,
|
|
1474
1474
|
category: "core",
|
|
1475
1475
|
group: "basic",
|
|
1476
|
-
...
|
|
1476
|
+
...u({
|
|
1477
1477
|
properties: {
|
|
1478
|
-
styles:
|
|
1478
|
+
styles: d("")
|
|
1479
1479
|
}
|
|
1480
1480
|
}),
|
|
1481
1481
|
canAcceptBlock: (e) => e === "ListItem",
|
|
@@ -1503,23 +1503,23 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1503
1503
|
content: "Item 3"
|
|
1504
1504
|
}
|
|
1505
1505
|
]
|
|
1506
|
-
},
|
|
1506
|
+
}, gt = (e) => {
|
|
1507
1507
|
const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
|
|
1508
1508
|
return r ? b.createElement(n || "li", { ...l, ...o }, r) : b.createElement(n || "li", {
|
|
1509
1509
|
...l,
|
|
1510
1510
|
...o,
|
|
1511
1511
|
dangerouslySetInnerHTML: { __html: t }
|
|
1512
1512
|
});
|
|
1513
|
-
},
|
|
1513
|
+
}, bt = {
|
|
1514
1514
|
type: "ListItem",
|
|
1515
1515
|
description: "A list item component",
|
|
1516
1516
|
label: "List Item",
|
|
1517
1517
|
icon: ne,
|
|
1518
1518
|
category: "core",
|
|
1519
1519
|
group: "basic",
|
|
1520
|
-
...
|
|
1520
|
+
...u({
|
|
1521
1521
|
properties: {
|
|
1522
|
-
styles:
|
|
1522
|
+
styles: d(""),
|
|
1523
1523
|
content: {
|
|
1524
1524
|
type: "string",
|
|
1525
1525
|
default: "List item",
|
|
@@ -1534,25 +1534,25 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1534
1534
|
aiProps: ["content"],
|
|
1535
1535
|
canAcceptBlock: (e) => e !== "ListItem",
|
|
1536
1536
|
canBeNested: (e) => e === "List" || e === "Repeater"
|
|
1537
|
-
},
|
|
1537
|
+
}, ft = (e) => {
|
|
1538
1538
|
const { blockProps: o, styles: t, content: l } = e;
|
|
1539
|
-
if (!
|
|
1540
|
-
const r =
|
|
1539
|
+
if (!F(e.children)) return b.createElement("p", { ...t, ...o }, e.children);
|
|
1540
|
+
const r = _(t, "rte");
|
|
1541
1541
|
return b.createElement("div", {
|
|
1542
1542
|
...r,
|
|
1543
1543
|
...o,
|
|
1544
1544
|
dangerouslySetInnerHTML: { __html: l }
|
|
1545
1545
|
});
|
|
1546
|
-
},
|
|
1546
|
+
}, ht = {
|
|
1547
1547
|
type: "Paragraph",
|
|
1548
1548
|
description: "A paragraph component",
|
|
1549
1549
|
label: "Paragraph",
|
|
1550
1550
|
category: "core",
|
|
1551
1551
|
icon: ie,
|
|
1552
1552
|
group: "typography",
|
|
1553
|
-
...
|
|
1553
|
+
...u({
|
|
1554
1554
|
properties: {
|
|
1555
|
-
styles:
|
|
1555
|
+
styles: d(""),
|
|
1556
1556
|
content: {
|
|
1557
1557
|
type: "string",
|
|
1558
1558
|
title: "Content",
|
|
@@ -1564,10 +1564,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1564
1564
|
i18nProps: ["content"],
|
|
1565
1565
|
aiProps: ["content"],
|
|
1566
1566
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
1567
|
-
},
|
|
1568
|
-
const { blockProps: o, content: t, styles: l } = e, r =
|
|
1567
|
+
}, kt = (e) => {
|
|
1568
|
+
const { blockProps: o, content: t, styles: l } = e, r = _(l, "rte");
|
|
1569
1569
|
return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
|
|
1570
|
-
},
|
|
1570
|
+
}, xt = {
|
|
1571
1571
|
type: "RichText",
|
|
1572
1572
|
description: "A rich text block",
|
|
1573
1573
|
label: "Rich Text",
|
|
@@ -1575,9 +1575,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1575
1575
|
category: "core",
|
|
1576
1576
|
icon: ae,
|
|
1577
1577
|
group: "typography",
|
|
1578
|
-
...
|
|
1578
|
+
...u({
|
|
1579
1579
|
properties: {
|
|
1580
|
-
styles:
|
|
1580
|
+
styles: d(""),
|
|
1581
1581
|
content: {
|
|
1582
1582
|
type: "string",
|
|
1583
1583
|
title: "Content",
|
|
@@ -1588,22 +1588,22 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1588
1588
|
}),
|
|
1589
1589
|
aiProps: ["content"],
|
|
1590
1590
|
i18nProps: ["content"]
|
|
1591
|
-
},
|
|
1591
|
+
}, wt = (e) => {
|
|
1592
1592
|
const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
|
|
1593
1593
|
return r ? b.createElement("span", { ...t, ...o }, r) : b.createElement(n || "span", {
|
|
1594
1594
|
...t,
|
|
1595
1595
|
...o,
|
|
1596
1596
|
dangerouslySetInnerHTML: { __html: l || "" }
|
|
1597
1597
|
});
|
|
1598
|
-
},
|
|
1598
|
+
}, vt = {
|
|
1599
1599
|
type: "Span",
|
|
1600
1600
|
description: "A span component",
|
|
1601
1601
|
label: "Span",
|
|
1602
1602
|
category: "core",
|
|
1603
1603
|
group: "basic",
|
|
1604
|
-
...
|
|
1604
|
+
...u({
|
|
1605
1605
|
properties: {
|
|
1606
|
-
styles:
|
|
1606
|
+
styles: d(""),
|
|
1607
1607
|
content: {
|
|
1608
1608
|
type: "string",
|
|
1609
1609
|
title: "Content",
|
|
@@ -1615,7 +1615,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1615
1615
|
aiProps: ["content"],
|
|
1616
1616
|
i18nProps: ["content"],
|
|
1617
1617
|
canAcceptBlock: () => !0
|
|
1618
|
-
},
|
|
1618
|
+
}, Ct = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, It = {
|
|
1619
1619
|
type: "Text",
|
|
1620
1620
|
description: "A text component with no styling",
|
|
1621
1621
|
label: "Text",
|
|
@@ -1623,9 +1623,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1623
1623
|
group: "typography",
|
|
1624
1624
|
blocks: () => [{ _id: "a", _type: "Text", _name: "Text", content: "" }],
|
|
1625
1625
|
icon: se,
|
|
1626
|
-
...
|
|
1626
|
+
...u({
|
|
1627
1627
|
properties: {
|
|
1628
|
-
styles:
|
|
1628
|
+
styles: d("text-black"),
|
|
1629
1629
|
content: {
|
|
1630
1630
|
title: "Content",
|
|
1631
1631
|
type: "string",
|
|
@@ -1635,7 +1635,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1635
1635
|
}),
|
|
1636
1636
|
aiProps: ["content"],
|
|
1637
1637
|
i18nProps: ["content"]
|
|
1638
|
-
},
|
|
1638
|
+
}, B = {
|
|
1639
1639
|
type: "object",
|
|
1640
1640
|
title: "Controls",
|
|
1641
1641
|
default: {
|
|
@@ -1666,18 +1666,18 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1666
1666
|
default: !1
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
},
|
|
1669
|
+
}, R = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, A = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Pt = (e, o) => {
|
|
1670
1670
|
const t = k(o, "autoplay", !1), l = k(o, "controls", !1), r = k(o, "loop", !1), n = t || k(o, "muted", !0);
|
|
1671
|
-
if (
|
|
1672
|
-
const a = e.match(
|
|
1671
|
+
if (R.test(e)) {
|
|
1672
|
+
const a = e.match(R);
|
|
1673
1673
|
if (a) {
|
|
1674
1674
|
const s = a[4];
|
|
1675
1675
|
let c = `https://www.youtube.com/embed/${s}`, y = t ? "autoplay=1" : "";
|
|
1676
1676
|
return y += r ? `&loop=1&playlist=${s}` : "", y += n ? "&mute=1&muted=1" : "", y += l ? "&controls=1" : "&controls=0", `${c}?${y}`;
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
if (
|
|
1680
|
-
const a = e.match(
|
|
1679
|
+
if (A.test(e)) {
|
|
1680
|
+
const a = e.match(A);
|
|
1681
1681
|
if (a) {
|
|
1682
1682
|
const s = a[1];
|
|
1683
1683
|
let c = "";
|
|
@@ -1685,13 +1685,13 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
1687
|
return null;
|
|
1688
|
-
},
|
|
1689
|
-
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a, title: s } = e, c =
|
|
1690
|
-
return /* @__PURE__ */ h("div", { ...
|
|
1691
|
-
!c && a ? /* @__PURE__ */ i("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: w(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ i("iframe", { width: "100%", src: c ?? "", title: s || "Video player", ...
|
|
1688
|
+
}, Lt = (e) => {
|
|
1689
|
+
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a, title: s } = e, c = Pt(o, r);
|
|
1690
|
+
return /* @__PURE__ */ h("div", { ...E(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
1691
|
+
!c && a ? /* @__PURE__ */ i("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: w(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ i("iframe", { width: "100%", src: c ?? "", title: s || "Video player", ...M(l, "className") }),
|
|
1692
1692
|
a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
|
|
1693
1693
|
] });
|
|
1694
|
-
},
|
|
1694
|
+
}, Bt = (e) => {
|
|
1695
1695
|
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a, title: s } = e;
|
|
1696
1696
|
let c = n;
|
|
1697
1697
|
const y = [...k(r, "srcsets", []) || []];
|
|
@@ -1719,21 +1719,21 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1719
1719
|
}),
|
|
1720
1720
|
"Your browser does not support the video tag."
|
|
1721
1721
|
) });
|
|
1722
|
-
},
|
|
1722
|
+
}, St = (e) => {
|
|
1723
1723
|
const { videoSource: o } = e;
|
|
1724
|
-
return o === "Custom" ? /* @__PURE__ */ i(
|
|
1724
|
+
return o === "Custom" ? /* @__PURE__ */ i(Bt, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Lt, { ...e }) : /* @__PURE__ */ h("div", { children: [
|
|
1725
1725
|
"Invalid video source : ",
|
|
1726
1726
|
o
|
|
1727
1727
|
] });
|
|
1728
|
-
},
|
|
1728
|
+
}, Nt = {
|
|
1729
1729
|
type: "Video",
|
|
1730
1730
|
label: "Video",
|
|
1731
1731
|
category: "core",
|
|
1732
1732
|
icon: ce,
|
|
1733
1733
|
group: "media",
|
|
1734
|
-
...
|
|
1734
|
+
...u({
|
|
1735
1735
|
properties: {
|
|
1736
|
-
styles:
|
|
1736
|
+
styles: d("absolute h-full w-full object-cover"),
|
|
1737
1737
|
videoSource: {
|
|
1738
1738
|
type: "string",
|
|
1739
1739
|
default: "Custom",
|
|
@@ -1769,7 +1769,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1769
1769
|
type: "object",
|
|
1770
1770
|
default: { srcsets: [] }
|
|
1771
1771
|
},
|
|
1772
|
-
controls: { ...
|
|
1772
|
+
controls: { ...B }
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
},
|
|
@@ -1786,7 +1786,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1786
1786
|
title: "Youtube Video URL",
|
|
1787
1787
|
default: ""
|
|
1788
1788
|
},
|
|
1789
|
-
controls: { ...
|
|
1789
|
+
controls: { ...B }
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
},
|
|
@@ -1803,7 +1803,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1803
1803
|
title: "Vimeo Video URL",
|
|
1804
1804
|
default: ""
|
|
1805
1805
|
},
|
|
1806
|
-
controls: { ...
|
|
1806
|
+
controls: { ...B }
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
@@ -1815,9 +1815,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1815
1815
|
}
|
|
1816
1816
|
}),
|
|
1817
1817
|
i18nProps: ["url", "title"]
|
|
1818
|
-
},
|
|
1819
|
-
const { paginationStyles: o } = e, t =
|
|
1820
|
-
return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...
|
|
1818
|
+
}, _t = (e) => {
|
|
1819
|
+
const { paginationStyles: o } = e, t = ue("Pagination");
|
|
1820
|
+
return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...E(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ h(S, { children: [
|
|
1821
1821
|
/* @__PURE__ */ i(
|
|
1822
1822
|
"button",
|
|
1823
1823
|
{
|
|
@@ -1833,13 +1833,13 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1833
1833
|
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "5" }),
|
|
1834
1834
|
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50", children: /* @__PURE__ */ i(pe, { className: "h-4 w-4" }) })
|
|
1835
1835
|
] }) });
|
|
1836
|
-
},
|
|
1836
|
+
}, Tt = (e) => {
|
|
1837
1837
|
const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
|
|
1838
1838
|
let c = o;
|
|
1839
1839
|
return w(c) && s && (c = /* @__PURE__ */ i("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Choose a collection to display items" })), t === "none" ? n && s ? Array.from({ length: 2 }).map((y, g) => /* @__PURE__ */ h("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1840
1840
|
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1841
1841
|
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1842
|
-
] }, g)) : c : /* @__PURE__ */ h(
|
|
1842
|
+
] }, g)) : c : /* @__PURE__ */ h(S, { children: [
|
|
1843
1843
|
b.createElement(
|
|
1844
1844
|
t,
|
|
1845
1845
|
{ ...r, ...l },
|
|
@@ -1849,9 +1849,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1849
1849
|
] }, g)) : c
|
|
1850
1850
|
),
|
|
1851
1851
|
a && /* @__PURE__ */ i(
|
|
1852
|
-
|
|
1852
|
+
_t,
|
|
1853
1853
|
{
|
|
1854
|
-
...
|
|
1854
|
+
...M(e, [
|
|
1855
1855
|
"limit",
|
|
1856
1856
|
"totalItems",
|
|
1857
1857
|
"paginationStrategy",
|
|
@@ -1863,10 +1863,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1863
1863
|
}
|
|
1864
1864
|
)
|
|
1865
1865
|
] });
|
|
1866
|
-
},
|
|
1866
|
+
}, Rt = {
|
|
1867
1867
|
type: "Repeater",
|
|
1868
1868
|
label: "Repeater",
|
|
1869
|
-
icon:
|
|
1869
|
+
icon: z,
|
|
1870
1870
|
group: "basic",
|
|
1871
1871
|
description: "Repeater block is used to display a list of items based on data binding in repeaterItems",
|
|
1872
1872
|
dataProviderMode: "live",
|
|
@@ -1875,10 +1875,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1875
1875
|
{ _id: "A", _type: "Repeater", tag: "ul" },
|
|
1876
1876
|
{ _id: "B", _name: "Repeater Item", _type: "RepeaterItem", parentTag: "ul", _parent: "A" }
|
|
1877
1877
|
],
|
|
1878
|
-
...
|
|
1878
|
+
...u({
|
|
1879
1879
|
properties: {
|
|
1880
|
-
styles:
|
|
1881
|
-
paginationStyles:
|
|
1880
|
+
styles: d("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
|
|
1881
|
+
paginationStyles: d("flex items-center justify-center gap-2 p-4"),
|
|
1882
1882
|
repeaterItems: {
|
|
1883
1883
|
title: "Collection",
|
|
1884
1884
|
type: "string",
|
|
@@ -1958,7 +1958,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1958
1958
|
]
|
|
1959
1959
|
}),
|
|
1960
1960
|
canAcceptBlock: (e) => e === "Pagination"
|
|
1961
|
-
},
|
|
1961
|
+
}, At = ({
|
|
1962
1962
|
children: e,
|
|
1963
1963
|
blockProps: o,
|
|
1964
1964
|
styles: t,
|
|
@@ -1981,41 +1981,41 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1981
1981
|
{ ...o, ...t },
|
|
1982
1982
|
/* @__PURE__ */ i("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Add children to repeater item" })
|
|
1983
1983
|
) : b.createElement(n, { ...o, ...t }, e);
|
|
1984
|
-
},
|
|
1984
|
+
}, Et = {
|
|
1985
1985
|
type: "RepeaterItem",
|
|
1986
1986
|
label: "Repeater Item",
|
|
1987
|
-
icon:
|
|
1987
|
+
icon: z,
|
|
1988
1988
|
hidden: !0,
|
|
1989
1989
|
group: "basic",
|
|
1990
|
-
...
|
|
1990
|
+
...u({
|
|
1991
1991
|
properties: {
|
|
1992
|
-
styles:
|
|
1993
|
-
parentTag:
|
|
1992
|
+
styles: d(""),
|
|
1993
|
+
parentTag: me("Repeater", "tag")
|
|
1994
1994
|
}
|
|
1995
1995
|
}),
|
|
1996
1996
|
canAcceptBlock: (e) => e !== "RepeaterItem",
|
|
1997
1997
|
canDelete: () => !1,
|
|
1998
1998
|
canMove: () => !1,
|
|
1999
1999
|
canDuplicate: () => !1
|
|
2000
|
-
},
|
|
2000
|
+
}, Mt = ({
|
|
2001
2001
|
children: e,
|
|
2002
2002
|
blockProps: o,
|
|
2003
2003
|
styles: t
|
|
2004
|
-
}) => b.createElement("div", { ...o, ...t }, e),
|
|
2004
|
+
}) => b.createElement("div", { ...o, ...t }, e), Ht = {
|
|
2005
2005
|
type: "RepeaterEmptyState",
|
|
2006
2006
|
label: "Empty State",
|
|
2007
2007
|
hidden: !0,
|
|
2008
2008
|
group: "basic",
|
|
2009
|
-
...
|
|
2010
|
-
properties: { styles:
|
|
2009
|
+
...u({
|
|
2010
|
+
properties: { styles: d("p-5 flex items-center justify-center") }
|
|
2011
2011
|
}),
|
|
2012
2012
|
canAcceptBlock: () => !0,
|
|
2013
2013
|
canDelete: () => !1,
|
|
2014
2014
|
canMove: () => !1,
|
|
2015
2015
|
canDuplicate: () => !1
|
|
2016
|
-
},
|
|
2017
|
-
|
|
2016
|
+
}, Zt = () => {
|
|
2017
|
+
p(ye, ge), p(Ee, Me), p(be, fe), p(Ke, et), p(ft, ht), p(wt, vt), p(kt, xt), p(pt, ut), p(mt, yt), p(gt, bt), p(Ie, Pe), p(ct, dt), p(St, Nt), p(he, ke), p(xe, we), p(Ct, It), p(je, De), p(Ve, ze), p(Ue, Ze), p(He, $e), p(We, Oe), p(Ye, Qe), p(Je, Xe), p(qe, Ge), p(tt, ot), p(Re, Ae), p(ve, Ce), p(Le, Be), p(_e, Te), p(Se, Ne), p(Tt, Rt), p(At, Et), p(Mt, Ht);
|
|
2018
2018
|
};
|
|
2019
2019
|
export {
|
|
2020
|
-
|
|
2020
|
+
Zt as loadWebBlocks
|
|
2021
2021
|
};
|