@chaibuilder/sdk 1.2.11 → 1.2.13

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.
Files changed (62) hide show
  1. package/dist/{AddBlocks-k2p8Hy1n.cjs → AddBlocks-tomDo_Is.cjs} +1 -1
  2. package/dist/{AddBlocks-TSt8uJY4.js → AddBlocks-zN5--UP6.js} +11 -11
  3. package/dist/{BrandingOptions-WyVWfFVz.cjs → BrandingOptions-BUmE4f72.cjs} +1 -1
  4. package/dist/{BrandingOptions-uFTyYJZj.js → BrandingOptions-LbizrmRI.js} +2 -2
  5. package/dist/{CanvasArea-iRQqpOak.js → CanvasArea-OSH8wqt1.js} +22 -22
  6. package/dist/{CanvasArea-5erOZYLy.cjs → CanvasArea-nT6ZJh_V.cjs} +1 -1
  7. package/dist/{CurrentPage-RCxTz9Mc.js → CurrentPage-FzqNBLy4.js} +3 -3
  8. package/dist/{CurrentPage-NzmJloN7.cjs → CurrentPage-SWR9WU4k.cjs} +1 -1
  9. package/dist/{Layers-xDG7oltg.cjs → Layers-FRHRlPIH.cjs} +1 -1
  10. package/dist/{Layers-tXB5Pwid.js → Layers-g5_pwwgO.js} +57 -57
  11. package/dist/{PagesPanel-72nzYB1k.cjs → PagesPanel-3jcf5-iH.cjs} +1 -1
  12. package/dist/{PagesPanel-Jaz9jvye.js → PagesPanel-PSg6aqlK.js} +4 -4
  13. package/dist/{ProjectPanel-RU0QvH6e.cjs → ProjectPanel-EyEcNyh8.cjs} +1 -1
  14. package/dist/{ProjectPanel--S014Xx3.js → ProjectPanel-XW_Bx880.js} +4 -4
  15. package/dist/{Settings-gjvl5V1k.js → Settings--7qJ7ciF.js} +60 -60
  16. package/dist/{Settings-5EuwaVb3.cjs → Settings-h1c8ukpI.cjs} +1 -1
  17. package/dist/{SidePanels-Fq3kRwR0.js → SidePanels-Lmj0Qkd1.js} +8 -8
  18. package/dist/{SidePanels-uNCxnGte.cjs → SidePanels-NbM1mfsY.cjs} +1 -1
  19. package/dist/{Topbar-JqW89xI5.cjs → Topbar-2sOsQD2d.cjs} +1 -1
  20. package/dist/{Topbar-m5dbbI1f.js → Topbar-xvrno03z.js} +4 -4
  21. package/dist/{UnsplashImages-vACw5hbK.cjs → UnsplashImages-EiYSWkBa.cjs} +1 -1
  22. package/dist/{UnsplashImages-GhBD6owT.js → UnsplashImages-hhPOf7kt.js} +7 -7
  23. package/dist/{UploadImages-PzHdEKHT.cjs → UploadImages-GGCExfQd.cjs} +1 -1
  24. package/dist/{UploadImages-S1HgxeGb.js → UploadImages-JKjE44i7.js} +1 -1
  25. package/dist/{add-page-modal-GAizM2Jw.cjs → add-page-modal-65wltt_4.cjs} +1 -1
  26. package/dist/{add-page-modal-2P5hGXOQ.js → add-page-modal-Bl6y65im.js} +13 -13
  27. package/dist/{confirm-alert-57Xq5foA.js → confirm-alert-Nw1JCtuu.js} +1 -1
  28. package/dist/{confirm-alert-Uf84DpdR.cjs → confirm-alert-_DCO6hCV.cjs} +1 -1
  29. package/dist/core.cjs +1 -1
  30. package/dist/core.d.ts +8 -0
  31. package/dist/core.js +39 -37
  32. package/dist/{delete-page-modal-MG42FdnU.cjs → delete-page-modal-Q3Si4nyd.cjs} +1 -1
  33. package/dist/{delete-page-modal-ix5IjaFW.js → delete-page-modal-tiJ2UA5f.js} +3 -3
  34. package/dist/email-blocks.cjs +1 -1
  35. package/dist/email-blocks.js +27 -27
  36. package/dist/email.cjs +1 -1
  37. package/dist/email.js +4 -4
  38. package/dist/{empty-slot-TF2kd-0X.cjs → empty-slot-2LSrWJaY.cjs} +1 -1
  39. package/dist/{empty-slot-MWycClTb.js → empty-slot-5FRrRq1E.js} +33 -33
  40. package/dist/{form-SYcFyACJ.js → form-lbFCPUoE.js} +1 -1
  41. package/dist/{form-KBb3kA8g.cjs → form-vNgf0kO2.cjs} +1 -1
  42. package/dist/{index-aiHDvS5v.cjs → index-bfKqnRvZ.cjs} +1 -1
  43. package/dist/{index-cM3eKmlx.cjs → index-hS9T9Nub.cjs} +33 -33
  44. package/dist/{index-pNYv0oAF.js → index-m9VziIOy.js} +307 -295
  45. package/dist/{index-Fj3ead-J.js → index-wwk4px_E.js} +2069 -2059
  46. package/dist/{page-viewer-VxqOevr4.js → page-viewer-rLCyM4QC.js} +4 -4
  47. package/dist/{page-viewer-Sh99FGYk.cjs → page-viewer-w-ahza8q.cjs} +1 -1
  48. package/dist/{project-general-setting-VTLHa-Ik.cjs → project-general-setting-RTcIwUWc.cjs} +1 -1
  49. package/dist/{project-general-setting-nWOjPiin.js → project-general-setting-pY-Mkc8G.js} +4 -4
  50. package/dist/{project-seo-setting-70bWTwsB.js → project-seo-setting-9V67NFil.js} +3 -3
  51. package/dist/{project-seo-setting-ENAKc2Dl.cjs → project-seo-setting-aRDdqu88.cjs} +1 -1
  52. package/dist/{single-page-detail-3z7TF-Yy.js → single-page-detail-HYX4R3U0.js} +5 -5
  53. package/dist/{single-page-detail-6L38HJC4.cjs → single-page-detail-wHDpn40R.cjs} +1 -1
  54. package/dist/studio.cjs +1 -1
  55. package/dist/studio.js +3 -3
  56. package/dist/ui.cjs +1 -1
  57. package/dist/ui.js +25 -25
  58. package/dist/{useAddBlockByDrop-7mUMwNSG.cjs → useAddBlockByDrop-1WvPoBXa.cjs} +1 -1
  59. package/dist/{useAddBlockByDrop-tjQ5DgiO.js → useAddBlockByDrop-bs_SH7Tw.js} +1 -1
  60. package/dist/web-blocks.cjs +1 -1
  61. package/dist/web-blocks.js +129 -129
  62. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  import { noop as k } from "lodash-es";
2
2
  import { j as l } from "./jsx-runtime-WbnYoNE9.js";
3
3
  import { Container as f, Section as y, Row as x, Column as B, Heading as C, Text as v, Button as j, Link as w, Preview as I, Markdown as L, Img as T, Hr as H, CodeBlock as R, CodeInline as _ } from "@react-email/components";
4
- import { registerChaiBlock as r } from "@chaibuilder/runtime";
5
- import { E as g, f as d, S as c, u as s, g as u, q as m, o as A, r as S } from "./empty-slot-MWycClTb.js";
4
+ import { registerChaiBlock as i } from "@chaibuilder/runtime";
5
+ import { E as g, f as d, S as c, u as s, g as u, q as m, o as A, r as S } from "./empty-slot-5FRrRq1E.js";
6
6
  import { ImageIcon as p, HeadingIcon as P, TextIcon as h, Link1Icon as D, DividerHorizontalIcon as M, CodeSandboxLogoIcon as b } from "@radix-ui/react-icons";
7
7
  import "./_commonjsHelpers-UyOWmZb0.js";
8
8
  import "react";
9
9
  import "./Functions-7jnEwJyw.js";
10
10
  import "clsx";
11
11
  import "tailwind-merge";
12
- const N = ({ blockProps: e, styles: t, children: o }) => {
13
- let n = o;
14
- return o || (n = /* @__PURE__ */ l.jsx(g, { blockProps: {}, styles: {} })), /* @__PURE__ */ l.jsx(f, { ...e, ...t, children: n });
12
+ const N = ({ blockProps: e, styles: t, children: o, inBuilder: n }) => {
13
+ let r = o;
14
+ return o || (r = /* @__PURE__ */ l.jsx(g, { blockProps: {}, styles: {}, inBuilder: n })), /* @__PURE__ */ l.jsx(f, { ...e, ...t, children: r });
15
15
  };
16
- r(N, {
16
+ i(N, {
17
17
  type: "Container",
18
18
  label: "Container",
19
19
  group: "basic",
@@ -25,7 +25,7 @@ r(N, {
25
25
  canBeNested: (e) => !e
26
26
  });
27
27
  const E = ({ blockProps: e, styles: t, children: o }) => /* @__PURE__ */ l.jsx(y, { ...e, ...t, children: o });
28
- r(E, {
28
+ i(E, {
29
29
  type: "Section",
30
30
  label: "Section",
31
31
  group: "basic",
@@ -46,7 +46,7 @@ r(E, {
46
46
  canAcceptBlock: () => !0
47
47
  });
48
48
  const $ = ({ blockProps: e, styles: t, children: o }) => /* @__PURE__ */ l.jsx(x, { ...e, ...t, children: o });
49
- r($, {
49
+ i($, {
50
50
  type: "Row",
51
51
  label: "Row",
52
52
  group: "basic",
@@ -62,10 +62,10 @@ r($, {
62
62
  canAcceptBlock: (e) => e === "Column"
63
63
  });
64
64
  const q = ({ blockProps: e, styles: t, children: o, align: n }) => {
65
- let i = o;
66
- return o || (i = /* @__PURE__ */ l.jsx(g, { blockProps: {}, styles: {} })), /* @__PURE__ */ l.jsx(B, { ...e, ...t, align: n, children: i });
65
+ let r = o;
66
+ return o || (r = /* @__PURE__ */ l.jsx(g, { blockProps: {}, styles: {} })), /* @__PURE__ */ l.jsx(B, { ...e, ...t, align: n, children: r });
67
67
  };
68
- r(q, {
68
+ i(q, {
69
69
  type: "Column",
70
70
  label: "Column",
71
71
  group: "basic",
@@ -88,7 +88,7 @@ r(q, {
88
88
  canBeNested: (e) => e === "Row"
89
89
  });
90
90
  const z = ({ level: e, blockProps: t, styles: o, content: n }) => /* @__PURE__ */ l.jsx(C, { as: e, ...t, ...o, children: n }), J = ({ blockProps: e, styles: t, content: o }) => /* @__PURE__ */ l.jsx("h1", { ...e, ...t, children: o });
91
- r(z, {
91
+ i(z, {
92
92
  type: "Heading",
93
93
  label: "Heading",
94
94
  group: "basic",
@@ -115,7 +115,7 @@ r(z, {
115
115
  canAcceptBlock: (e) => ["Link", "RawText"].includes(e)
116
116
  });
117
117
  const U = ({ blockProps: e, styles: t, content: o }) => /* @__PURE__ */ l.jsx(v, { ...e, ...t, children: o }), V = ({ content: e, blockProps: t, styles: o }) => /* @__PURE__ */ l.jsx("p", { ...t, ...o, children: e });
118
- r(U, {
118
+ i(U, {
119
119
  type: "Text",
120
120
  label: "Text",
121
121
  group: "basic",
@@ -132,7 +132,7 @@ r(U, {
132
132
  canAcceptBlock: (e) => ["Link", "RawText"].includes(e)
133
133
  });
134
134
  const W = ({ content: e }) => e, F = ({ content: e, blockProps: t }) => /* @__PURE__ */ l.jsx("span", { ...t, children: e });
135
- r(W, {
135
+ i(W, {
136
136
  type: "RawText",
137
137
  label: "Raw Text",
138
138
  group: "basic",
@@ -148,7 +148,7 @@ r(W, {
148
148
  }
149
149
  });
150
150
  const G = ({ blockProps: e, styles: t, link: o, content: n }) => /* @__PURE__ */ l.jsx(j, { ...e, ...t, href: o.href, children: n }), K = ({ blockProps: e, styles: t, content: o }) => /* @__PURE__ */ l.jsx("button", { type: "button", ...e, ...t, children: o });
151
- r(G, {
151
+ i(G, {
152
152
  type: "Button",
153
153
  label: "Button",
154
154
  group: "basic",
@@ -160,11 +160,11 @@ r(G, {
160
160
  styles: c({ default: "bg-primary text-white px-4 py-2 rounded-md" })
161
161
  }
162
162
  });
163
- const O = ({ blockProps: e, styles: t, href: o, content: n, target: i, children: a }) => /* @__PURE__ */ l.jsx(w, { ...e, ...t, href: o, target: i, children: a || n }), Q = ({ blockProps: e, styles: t, content: o, children: n }) => {
164
- let i = n;
165
- return n || (i = /* @__PURE__ */ l.jsx(g, { blockProps: {}, styles: {} })), /* @__PURE__ */ l.jsx("span", { ...e, ...t, children: i || o });
163
+ const O = ({ blockProps: e, styles: t, href: o, content: n, target: r, children: a }) => /* @__PURE__ */ l.jsx(w, { ...e, ...t, href: o, target: r, children: a || n }), Q = ({ blockProps: e, styles: t, content: o, children: n }) => {
164
+ let r = n;
165
+ return n || (r = /* @__PURE__ */ l.jsx(g, { blockProps: {}, styles: {} })), /* @__PURE__ */ l.jsx("span", { ...e, ...t, children: r || o });
166
166
  };
167
- r(O, {
167
+ i(O, {
168
168
  type: "Link",
169
169
  label: "Link",
170
170
  group: "basic",
@@ -191,7 +191,7 @@ r(O, {
191
191
  canAcceptBlock: () => !0
192
192
  });
193
193
  const X = ({ blockProps: e, styles: t, children: o }) => /* @__PURE__ */ l.jsx(I, { ...e, ...t, children: o }), Y = ({ blockProps: e, styles: t, content: o }) => /* @__PURE__ */ l.jsx("div", { ...e, ...t, children: o });
194
- r(X, {
194
+ i(X, {
195
195
  type: "Preview",
196
196
  label: "Preview",
197
197
  group: "basic",
@@ -204,7 +204,7 @@ r(X, {
204
204
  }
205
205
  });
206
206
  const Z = ({ blockProps: e, content: t }) => /* @__PURE__ */ l.jsx(L, { children: t, ...e });
207
- r(Z, {
207
+ i(Z, {
208
208
  type: "Markdown",
209
209
  label: "Markdown",
210
210
  group: "basic",
@@ -213,8 +213,8 @@ r(Z, {
213
213
  content: u({ default: "# This is a ~~strikethrough~~", title: "Markdown" })
214
214
  }
215
215
  });
216
- const ee = ({ blockProps: e, styles: t, alt: o, image: n, width: i, height: a }) => /* @__PURE__ */ l.jsx(T, { ...e, ...t, src: n, alt: o, width: i, height: a }), te = ({ blockProps: e, styles: t, alt: o, image: n, width: i, height: a }) => /* @__PURE__ */ l.jsx("img", { ...e, ...t, src: n, alt: o, width: i, height: a });
217
- r(ee, {
216
+ const ee = ({ blockProps: e, styles: t, alt: o, image: n, width: r, height: a }) => /* @__PURE__ */ l.jsx(T, { ...e, ...t, src: n, alt: o, width: r, height: a }), te = ({ blockProps: e, styles: t, alt: o, image: n, width: r, height: a }) => /* @__PURE__ */ l.jsx("img", { ...e, ...t, src: n, alt: o, width: r, height: a });
217
+ i(ee, {
218
218
  type: "Image",
219
219
  label: "Image",
220
220
  group: "basic",
@@ -233,7 +233,7 @@ r(ee, {
233
233
  }
234
234
  });
235
235
  const oe = ({ blockProps: e, styles: t }) => /* @__PURE__ */ l.jsx(H, { ...e, ...t }), le = ({ blockProps: e, styles: t }) => /* @__PURE__ */ l.jsx("hr", { ...e, ...t });
236
- r(oe, {
236
+ i(oe, {
237
237
  type: "Divider",
238
238
  label: "Divider",
239
239
  group: "basic",
@@ -244,8 +244,8 @@ r(oe, {
244
244
  styles: c({ default: "w-full h-2" })
245
245
  }
246
246
  });
247
- const ne = ({ blockProps: e, styles: t, code: o, lineNumbers: n, theme: i, language: a }) => /* @__PURE__ */ l.jsx(R, { ...e, ...t, code: o, linenumbers: n, theme: i, language: a }), re = ({ blockProps: e, styles: t, code: o }) => /* @__PURE__ */ l.jsx("div", { ...e, ...t, children: /* @__PURE__ */ l.jsx("code", { children: o }) });
248
- r(ne, {
247
+ const ne = ({ blockProps: e, styles: t, code: o, lineNumbers: n, theme: r, language: a }) => /* @__PURE__ */ l.jsx(R, { ...e, ...t, code: o, linenumbers: n, theme: r, language: a }), re = ({ blockProps: e, styles: t, code: o }) => /* @__PURE__ */ l.jsx("div", { ...e, ...t, children: /* @__PURE__ */ l.jsx("code", { children: o }) });
248
+ i(ne, {
249
249
  type: "CodeBlock",
250
250
  label: "Code Block",
251
251
  group: "basic",
@@ -275,7 +275,7 @@ r(ne, {
275
275
  }
276
276
  });
277
277
  const ie = ({ blockProps: e, styles: t, code: o }) => /* @__PURE__ */ l.jsx(_, { ...e, ...t, children: o }), ce = ({ blockProps: e, styles: t, code: o }) => /* @__PURE__ */ l.jsx("code", { ...e, ...t, children: o });
278
- r(ie, {
278
+ i(ie, {
279
279
  type: "CodeInline",
280
280
  label: "Code Inline",
281
281
  group: "basic",
package/dist/email.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),q=require("./index-cM3eKmlx.cjs"),r=require("@radix-ui/react-icons");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("react");require("i18next");require("react-i18next");require("./index-aiHDvS5v.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("flat-to-nested");require("./MODIFIERS-2FeVfZQ9.cjs");require("@react-hookz/web");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-5ARpH_Tu.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("sonner");require("./html-to-json-2PeOCVey.cjs");require("himalaya");require("lucide-react");require("./web-blocks.cjs");require("./empty-slot-TF2kd-0X.cjs");const t=[{title:"Mobile",content:"Mobile email client",breakpoint:"xs",icon:e.jsxRuntimeExports.jsx(r.MobileIcon,{}),width:400},{title:"Email Client",content:"Content as seen inside an email client",breakpoint:"sm",icon:e.jsxRuntimeExports.jsx(r.MobileIcon,{className:"rotate-90"}),width:800}],o=i=>{const u={...i,importHTMLSupport:!1,breakpoints:t};return e.jsxRuntimeExports.jsx(q.ChaiBuilderEditor,{...u})};exports.ChaiBuilderEmail=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),q=require("./index-hS9T9Nub.cjs"),r=require("@radix-ui/react-icons");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("react");require("i18next");require("react-i18next");require("./index-bfKqnRvZ.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("flat-to-nested");require("./MODIFIERS-2FeVfZQ9.cjs");require("@react-hookz/web");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-5ARpH_Tu.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("sonner");require("./html-to-json-2PeOCVey.cjs");require("himalaya");require("lucide-react");require("./web-blocks.cjs");require("./empty-slot-2LSrWJaY.cjs");const t=[{title:"Mobile",content:"Mobile email client",breakpoint:"xs",icon:e.jsxRuntimeExports.jsx(r.MobileIcon,{}),width:400},{title:"Email Client",content:"Content as seen inside an email client",breakpoint:"sm",icon:e.jsxRuntimeExports.jsx(r.MobileIcon,{className:"rotate-90"}),width:700}],o=i=>{const u={...i,importHTMLSupport:!1,breakpoints:t};return e.jsxRuntimeExports.jsx(q.ChaiBuilderEditor,{...u})};exports.ChaiBuilderEmail=o;
package/dist/email.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { j as t } from "./jsx-runtime-WbnYoNE9.js";
2
- import { C as m } from "./index-Fj3ead-J.js";
2
+ import { C as m } from "./index-wwk4px_E.js";
3
3
  import { MobileIcon as i } from "@radix-ui/react-icons";
4
4
  import "./_commonjsHelpers-UyOWmZb0.js";
5
5
  import "react";
6
6
  import "i18next";
7
7
  import "react-i18next";
8
- import "./index-pNYv0oAF.js";
8
+ import "./index-m9VziIOy.js";
9
9
  import "lodash-es";
10
10
  import "./Functions-7jnEwJyw.js";
11
11
  import "clsx";
@@ -50,7 +50,7 @@ import "./html-to-json-57841sEK.js";
50
50
  import "himalaya";
51
51
  import "lucide-react";
52
52
  import "./web-blocks.js";
53
- import "./empty-slot-MWycClTb.js";
53
+ import "./empty-slot-5FRrRq1E.js";
54
54
  const p = [
55
55
  {
56
56
  title: "Mobile",
@@ -64,7 +64,7 @@ const p = [
64
64
  content: "Content as seen inside an email client",
65
65
  breakpoint: "sm",
66
66
  icon: /* @__PURE__ */ t.jsx(i, { className: "rotate-90" }),
67
- width: 800
67
+ width: 700
68
68
  }
69
69
  ], pt = (o) => {
70
70
  const r = {
@@ -1 +1 @@
1
- "use strict";const t=require("lodash-es"),n=require("./jsx-runtime-Z_BpKhVy.cjs"),r=require("./Functions-N3yhPYKY.cjs"),d="#styles:";const u=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),i18n:i.i18n||!1,dataType:"string",required:i.required||!1,schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:placeholder":i.placeholder||"Enter here"}}),l=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),dataType:"string",i18n:i.i18n||!1,required:i.required||!1,schema:{type:"string",...t.omit(i,["i18n","required","rows"])},uiSchema:{"ui:widget":"textarea","ui:placeholder":i.placeholder||"Enter here","ui:options":{rows:i.rows||4}}}),s=i=>({type:"singular",i18n:i.i18n||!1,default:i.default||!1,dataType:"boolean",binding:t.get(i,"binding",!0),schema:{type:"boolean",...t.omit(i,["i18n","required"])},uiSchema:{"ui:title":i.title||"Select Item","ui:description":""}}),g=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),dataType:"number",i18n:i.i18n||!1,required:i.required||!1,schema:{type:"number",...t.omit(i,["i18n","required"])},uiSchema:{}}),p=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),i18n:i.i18n||!1,required:i.required||!1,dataType:"string",schema:{type:"string",...t.omit(i,["i18n","required","options","binding"]),oneOf:i.options.map(e=>({const:e.value,title:e.title}))},uiSchema:{"ui:widget":"select"}}),o=i=>({type:"singular",i18n:i.i18n||!1,default:i.default||"",binding:t.get(i,"binding",!0),dataType:"string",schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:widget":"color"}});const m=i=>({type:"singular",default:i.default||"",i18n:i.i18n||!1,binding:t.get(i,"binding",!0),dataType:"string",schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:widget":"richtext"}}),c=i=>({type:"model",title:i.title,dataType:"object",default:i.default||{},binding:t.get(i,"binding",!0),properties:i.properties}),y=i=>({type:"list",itemProperties:i.itemProperties,binding:t.get(i,"binding",!0),title:i.title,dataType:"array",default:i.default||[],itemTitle:i.getItemLabel?i.getItemLabel({}):()=>""}),f=i=>({type:"styles",binding:!1,default:`${d},${i.default||""}`}),b=i=>({default:i.default||"",binding:t.get(i,"binding",!0),type:"singular",i18n:i.i18n||!1,dataType:"string",schema:{type:"string",title:"Icon",default:i.default||""},uiSchema:{"ui:widget":"icon"}}),h=i=>({default:i.default,type:"singular",binding:t.get(i,"binding",!0),dataType:"object",i18n:i.i18n||!1,schema:{type:"object",...i||{},properties:{type:{type:"string"},href:{type:"string"},target:{type:"string"}}},uiSchema:{"ui:field":"link"}}),q=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),dataType:"string",i18n:i.i18n||!1,schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:widget":"image"}}),x=({blockProps:i,className:e="",styles:a={}})=>n.jsxRuntimeExports.jsx("div",{...i,className:r.cn("flex h-20 flex-col items-center justify-center",e),...t.omit(a,["className"]),children:n.jsxRuntimeExports.jsx("div",{className:"flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300",children:n.jsxRuntimeExports.jsx("span",{className:"opacit flex items-center gap-x-1.5 text-xs font-semibold text-gray-400"})})});exports.EmptySlot=x;exports.S=f;exports.T=b;exports.b=c;exports.c=g;exports.f=p;exports.g=l;exports.h=y;exports.m=m;exports.o=q;exports.q=h;exports.r=s;exports.u=u;exports.y=o;
1
+ "use strict";const t=require("lodash-es"),n=require("./jsx-runtime-Z_BpKhVy.cjs"),d=require("./Functions-N3yhPYKY.cjs"),u="#styles:";const l=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),i18n:i.i18n||!1,dataType:"string",required:i.required||!1,schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:placeholder":i.placeholder||"Enter here"}}),s=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),dataType:"string",i18n:i.i18n||!1,required:i.required||!1,schema:{type:"string",...t.omit(i,["i18n","required","rows"])},uiSchema:{"ui:widget":"textarea","ui:placeholder":i.placeholder||"Enter here","ui:options":{rows:i.rows||4}}}),g=i=>({type:"singular",i18n:i.i18n||!1,default:i.default||!1,dataType:"boolean",binding:t.get(i,"binding",!0),schema:{type:"boolean",...t.omit(i,["i18n","required"])},uiSchema:{"ui:title":i.title||"Select Item","ui:description":""}}),p=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),dataType:"number",i18n:i.i18n||!1,required:i.required||!1,schema:{type:"number",...t.omit(i,["i18n","required"])},uiSchema:{}}),o=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),i18n:i.i18n||!1,required:i.required||!1,dataType:"string",schema:{type:"string",...t.omit(i,["i18n","required","options","binding"]),oneOf:i.options.map(e=>({const:e.value,title:e.title}))},uiSchema:{"ui:widget":"select"}}),m=i=>({type:"singular",i18n:i.i18n||!1,default:i.default||"",binding:t.get(i,"binding",!0),dataType:"string",schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:widget":"color"}});const c=i=>({type:"singular",default:i.default||"",i18n:i.i18n||!1,binding:t.get(i,"binding",!0),dataType:"string",schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:widget":"richtext"}}),y=i=>({type:"model",title:i.title,dataType:"object",default:i.default||{},binding:t.get(i,"binding",!0),properties:i.properties}),f=i=>({type:"list",itemProperties:i.itemProperties,binding:t.get(i,"binding",!0),title:i.title,dataType:"array",default:i.default||[],itemTitle:i.getItemLabel?i.getItemLabel({}):()=>""}),b=i=>({type:"styles",binding:!1,default:`${u},${i.default||""}`}),h=i=>({default:i.default||"",binding:t.get(i,"binding",!0),type:"singular",i18n:i.i18n||!1,dataType:"string",schema:{type:"string",title:"Icon",default:i.default||""},uiSchema:{"ui:widget":"icon"}}),q=i=>({default:i.default,type:"singular",binding:t.get(i,"binding",!0),dataType:"object",i18n:i.i18n||!1,schema:{type:"object",...i||{},properties:{type:{type:"string"},href:{type:"string"},target:{type:"string"}}},uiSchema:{"ui:field":"link"}}),x=i=>({type:"singular",default:i.default||"",binding:t.get(i,"binding",!0),dataType:"string",i18n:i.i18n||!1,schema:{type:"string",...t.omit(i,["i18n","required"])},uiSchema:{"ui:widget":"image"}}),S=({blockProps:i,className:e="",styles:a={},inBuilder:r})=>r?n.jsxRuntimeExports.jsx("div",{...i,className:d.cn("flex h-20 flex-col items-center justify-center",e),...t.omit(a,["className"]),children:n.jsxRuntimeExports.jsx("div",{className:"flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300",children:n.jsxRuntimeExports.jsx("span",{className:"opacit flex items-center gap-x-1.5 text-xs font-semibold text-gray-400"})})}):null;exports.EmptySlot=S;exports.S=b;exports.T=h;exports.b=y;exports.c=p;exports.f=o;exports.g=s;exports.h=f;exports.m=c;exports.o=x;exports.q=q;exports.r=g;exports.u=l;exports.y=m;
@@ -1,8 +1,8 @@
1
1
  import { get as e, omit as t } from "lodash-es";
2
2
  import { j as a } from "./jsx-runtime-WbnYoNE9.js";
3
- import { c as d } from "./Functions-7jnEwJyw.js";
4
- const l = "#styles:";
5
- const p = (i) => ({
3
+ import { c as l } from "./Functions-7jnEwJyw.js";
4
+ const u = "#styles:";
5
+ const o = (i) => ({
6
6
  type: "singular",
7
7
  default: i.default || "",
8
8
  binding: e(i, "binding", !0),
@@ -16,7 +16,7 @@ const p = (i) => ({
16
16
  uiSchema: {
17
17
  "ui:placeholder": i.placeholder || "Enter here"
18
18
  }
19
- }), o = (i) => ({
19
+ }), y = (i) => ({
20
20
  type: "singular",
21
21
  default: i.default || "",
22
22
  binding: e(i, "binding", !0),
@@ -34,7 +34,7 @@ const p = (i) => ({
34
34
  rows: i.rows || 4
35
35
  }
36
36
  }
37
- }), y = (i) => ({
37
+ }), c = (i) => ({
38
38
  type: "singular",
39
39
  i18n: i.i18n || !1,
40
40
  default: i.default || !1,
@@ -48,7 +48,7 @@ const p = (i) => ({
48
48
  "ui:title": i.title || "Select Item",
49
49
  "ui:description": ""
50
50
  }
51
- }), c = (i) => ({
51
+ }), m = (i) => ({
52
52
  type: "singular",
53
53
  default: i.default || "",
54
54
  binding: e(i, "binding", !0),
@@ -60,7 +60,7 @@ const p = (i) => ({
60
60
  ...t(i, ["i18n", "required"])
61
61
  },
62
62
  uiSchema: {}
63
- }), m = (i) => ({
63
+ }), f = (i) => ({
64
64
  type: "singular",
65
65
  default: i.default || "",
66
66
  binding: e(i, "binding", !0),
@@ -75,7 +75,7 @@ const p = (i) => ({
75
75
  uiSchema: {
76
76
  "ui:widget": "select"
77
77
  }
78
- }), f = (i) => ({
78
+ }), b = (i) => ({
79
79
  type: "singular",
80
80
  i18n: i.i18n || !1,
81
81
  default: i.default || "",
@@ -89,7 +89,7 @@ const p = (i) => ({
89
89
  "ui:widget": "color"
90
90
  }
91
91
  });
92
- const b = (i) => ({
92
+ const h = (i) => ({
93
93
  type: "singular",
94
94
  default: i.default || "",
95
95
  i18n: i.i18n || !1,
@@ -102,14 +102,14 @@ const b = (i) => ({
102
102
  uiSchema: {
103
103
  "ui:widget": "richtext"
104
104
  }
105
- }), h = (i) => ({
105
+ }), q = (i) => ({
106
106
  type: "model",
107
107
  title: i.title,
108
108
  dataType: "object",
109
109
  default: i.default || {},
110
110
  binding: e(i, "binding", !0),
111
111
  properties: i.properties
112
- }), q = (i) => ({
112
+ }), x = (i) => ({
113
113
  type: "list",
114
114
  itemProperties: i.itemProperties,
115
115
  binding: e(i, "binding", !0),
@@ -117,11 +117,11 @@ const b = (i) => ({
117
117
  dataType: "array",
118
118
  default: i.default || [],
119
119
  itemTitle: i.getItemLabel ? i.getItemLabel({}) : () => ""
120
- }), x = (i) => ({
120
+ }), S = (i) => ({
121
121
  type: "styles",
122
122
  binding: !1,
123
- default: `${l},${i.default || ""}`
124
- }), S = (i) => ({
123
+ default: `${u},${i.default || ""}`
124
+ }), T = (i) => ({
125
125
  default: i.default || "",
126
126
  binding: e(i, "binding", !0),
127
127
  type: "singular",
@@ -135,7 +135,7 @@ const b = (i) => ({
135
135
  uiSchema: {
136
136
  "ui:widget": "icon"
137
137
  }
138
- }), T = (i) => ({
138
+ }), j = (i) => ({
139
139
  default: i.default,
140
140
  type: "singular",
141
141
  binding: e(i, "binding", !0),
@@ -153,7 +153,7 @@ const b = (i) => ({
153
153
  uiSchema: {
154
154
  "ui:field": "link"
155
155
  }
156
- }), j = (i) => ({
156
+ }), w = (i) => ({
157
157
  type: "singular",
158
158
  default: i.default || "",
159
159
  binding: e(i, "binding", !0),
@@ -166,28 +166,28 @@ const b = (i) => ({
166
166
  uiSchema: {
167
167
  "ui:widget": "image"
168
168
  }
169
- }), w = ({ blockProps: i, className: n = "", styles: r = {} }) => /* @__PURE__ */ a.jsx(
169
+ }), $ = ({ blockProps: i, className: n = "", styles: r = {}, inBuilder: d }) => d ? /* @__PURE__ */ a.jsx(
170
170
  "div",
171
171
  {
172
172
  ...i,
173
- className: d("flex h-20 flex-col items-center justify-center", n),
173
+ className: l("flex h-20 flex-col items-center justify-center", n),
174
174
  ...t(r, ["className"]),
175
175
  children: /* @__PURE__ */ a.jsx("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300", children: /* @__PURE__ */ a.jsx("span", { className: "opacit flex items-center gap-x-1.5 text-xs font-semibold text-gray-400" }) })
176
176
  }
177
- );
177
+ ) : null;
178
178
  export {
179
- w as E,
180
- x as S,
181
- S as T,
182
- h as b,
183
- c,
184
- m as f,
185
- o as g,
186
- q as h,
187
- b as m,
188
- j as o,
189
- T as q,
190
- y as r,
191
- p as u,
192
- f as y
179
+ $ as E,
180
+ S,
181
+ T,
182
+ q as b,
183
+ m as c,
184
+ f,
185
+ y as g,
186
+ x as h,
187
+ h as m,
188
+ w as o,
189
+ j as q,
190
+ c as r,
191
+ o as u,
192
+ b as y
193
193
  };
@@ -2,7 +2,7 @@ import { j as u } from "./jsx-runtime-WbnYoNE9.js";
2
2
  import b from "@rjsf/core";
3
3
  import x from "@rjsf/validator-ajv8";
4
4
  import { includes as h, get as a, set as $, first as F } from "lodash-es";
5
- import { b3 as P, b4 as E, b5 as O, b6 as S } from "./index-pNYv0oAF.js";
5
+ import { b4 as P, b5 as E, b6 as O, b7 as S } from "./index-m9VziIOy.js";
6
6
  const d = (i, l = "") => {
7
7
  switch (i.type) {
8
8
  case "singular":
@@ -1 +1 @@
1
- "use strict";const f=require("./jsx-runtime-Z_BpKhVy.cjs"),y=require("@rjsf/core"),E=require("@rjsf/validator-ajv8"),i=require("lodash-es"),d=require("./index-aiHDvS5v.cjs"),h=(c,n="")=>{switch(c.type){case"singular":return c.uiSchema;case"model":const{properties:p}=c,u={};return Object.keys(p).forEach(r=>{const e=p[r];if(i.includes(["slot","styles"],e.type))return;const o=i.get(e,"i18n",!1)?`${r}-${n}`:r;u[o]=h(e,n)}),u;case"list":const{itemProperties:m}=c,l={items:{}};return Object.keys(m).forEach(r=>{const e=m[r];if(i.includes(["slot","styles"],e.type))return;const o=i.get(e,"i18n",!1)?`${r}-${n}`:r;l.items[o]=h(e,n)}),l;default:return{}}},x=(c,n="")=>{switch(c.type){case"singular":return c.schema;case"model":const{properties:p,title:u}=c,m={title:u,type:"object",properties:{}};return Object.keys(p).forEach(o=>{const t=p[o];if(i.includes(["slot","styles"],t.type))return;const s=i.get(t,"i18n",!1)?`${o}-${n}`:o;m.properties[s]=x(t,n)}),m;case"list":const{itemProperties:l,title:r}=c,e={title:r,type:"array",items:{type:"object",properties:{}}};return Object.keys(l).forEach(o=>{const t=l[o];if(i.includes(["slot","styles"],t.type))return;const s=i.get(t,"i18n",!1)?`${o}-${n}`:o;e.items.properties[s]=x(t,n),i.set(e.items,"title",i.get(t,"itemTitle",`${r} item`))}),e;default:return{}}},$=({title:c,properties:n={},formData:p,onChange:u,disabled:m=!1,activeLang:l=""})=>{const r={type:"object",properties:{}},e={};Object.keys(n).forEach(t=>{const s=n[t];if(i.includes(["slot","styles"],s.type))return;const a=i.get(s,"i18n",!1)?`${t}-${l}`:t;r.properties[a]=x(s,l),e[a]=h(s,l)});const o=({...t},s)=>{const a=s==null?void 0:s.replace("root.","").split("/").pop();if(!s||!a)return;const j=i.first(a.split("."));s&&j&&u({...t},j)};return f.jsxRuntimeExports.jsxs(f.jsxRuntimeExports.Fragment,{children:[c&&f.jsxRuntimeExports.jsx("h1",{className:"px-1 text-sm font-semibold underline",children:c}),f.jsxRuntimeExports.jsx("div",{className:"-mx-3",children:f.jsxRuntimeExports.jsx(y,{widgets:{richtext:d.RichTextEditorField,icon:d.IconPickerField,image:d.ImagePickerField},fields:{link:d.LinkField},idSeparator:".",autoComplete:"off",omitExtraData:!0,liveOmit:!0,liveValidate:!0,uiSchema:e,schema:r,formData:p,validator:E,onChange:o,disabled:m})})]})};exports.Form=$;
1
+ "use strict";const f=require("./jsx-runtime-Z_BpKhVy.cjs"),y=require("@rjsf/core"),E=require("@rjsf/validator-ajv8"),i=require("lodash-es"),d=require("./index-bfKqnRvZ.cjs"),h=(c,n="")=>{switch(c.type){case"singular":return c.uiSchema;case"model":const{properties:p}=c,u={};return Object.keys(p).forEach(r=>{const e=p[r];if(i.includes(["slot","styles"],e.type))return;const o=i.get(e,"i18n",!1)?`${r}-${n}`:r;u[o]=h(e,n)}),u;case"list":const{itemProperties:m}=c,l={items:{}};return Object.keys(m).forEach(r=>{const e=m[r];if(i.includes(["slot","styles"],e.type))return;const o=i.get(e,"i18n",!1)?`${r}-${n}`:r;l.items[o]=h(e,n)}),l;default:return{}}},x=(c,n="")=>{switch(c.type){case"singular":return c.schema;case"model":const{properties:p,title:u}=c,m={title:u,type:"object",properties:{}};return Object.keys(p).forEach(o=>{const t=p[o];if(i.includes(["slot","styles"],t.type))return;const s=i.get(t,"i18n",!1)?`${o}-${n}`:o;m.properties[s]=x(t,n)}),m;case"list":const{itemProperties:l,title:r}=c,e={title:r,type:"array",items:{type:"object",properties:{}}};return Object.keys(l).forEach(o=>{const t=l[o];if(i.includes(["slot","styles"],t.type))return;const s=i.get(t,"i18n",!1)?`${o}-${n}`:o;e.items.properties[s]=x(t,n),i.set(e.items,"title",i.get(t,"itemTitle",`${r} item`))}),e;default:return{}}},$=({title:c,properties:n={},formData:p,onChange:u,disabled:m=!1,activeLang:l=""})=>{const r={type:"object",properties:{}},e={};Object.keys(n).forEach(t=>{const s=n[t];if(i.includes(["slot","styles"],s.type))return;const a=i.get(s,"i18n",!1)?`${t}-${l}`:t;r.properties[a]=x(s,l),e[a]=h(s,l)});const o=({...t},s)=>{const a=s==null?void 0:s.replace("root.","").split("/").pop();if(!s||!a)return;const j=i.first(a.split("."));s&&j&&u({...t},j)};return f.jsxRuntimeExports.jsxs(f.jsxRuntimeExports.Fragment,{children:[c&&f.jsxRuntimeExports.jsx("h1",{className:"px-1 text-sm font-semibold underline",children:c}),f.jsxRuntimeExports.jsx("div",{className:"-mx-3",children:f.jsxRuntimeExports.jsx(y,{widgets:{richtext:d.RichTextEditorField,icon:d.IconPickerField,image:d.ImagePickerField},fields:{link:d.LinkField},idSeparator:".",autoComplete:"off",omitExtraData:!0,liveOmit:!0,liveValidate:!0,uiSchema:e,schema:r,formData:p,validator:E,onChange:o,disabled:m})})]})};exports.Form=$;