@chaibuilder/sdk 1.2.12 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddBlocks-nMUkm4og.cjs → AddBlocks-tomDo_Is.cjs} +1 -1
- package/dist/{AddBlocks-ByeMUUzE.js → AddBlocks-zN5--UP6.js} +1 -1
- package/dist/{BrandingOptions-eeDfvB0R.cjs → BrandingOptions-BUmE4f72.cjs} +1 -1
- package/dist/{BrandingOptions--poS5shs.js → BrandingOptions-LbizrmRI.js} +2 -2
- package/dist/{CanvasArea-h4lA4oqP.cjs → CanvasArea-1PwexKQz.cjs} +1 -1
- package/dist/{CanvasArea--TKubnIM.js → CanvasArea-leUzGAdQ.js} +4 -4
- package/dist/{CurrentPage-B3YumhrX.cjs → CurrentPage-M6uJPKhj.cjs} +1 -1
- package/dist/{CurrentPage-Gw9LJ40j.js → CurrentPage-XSq62fdk.js} +3 -3
- package/dist/{Layers-d-xge4On.js → Layers-JoV3wull.js} +4 -4
- package/dist/{Layers-4r_4F6ST.cjs → Layers-tasAbEc8.cjs} +1 -1
- package/dist/{PagesPanel-E4wSgVcE.js → PagesPanel-5KjlPTtj.js} +4 -4
- package/dist/{PagesPanel-iZLDBwXQ.cjs → PagesPanel-v1B780fd.cjs} +1 -1
- package/dist/{ProjectPanel-q7upaf7h.js → ProjectPanel-4X2KLnOi.js} +4 -4
- package/dist/{ProjectPanel-2TcqGnfN.cjs → ProjectPanel-NZYWWYTt.cjs} +1 -1
- package/dist/{Settings-y3DHsT88.js → Settings-1WP3BWxr.js} +3 -3
- package/dist/{Settings-NuDNH2dR.cjs → Settings-FW-bX28i.cjs} +1 -1
- package/dist/{SidePanels-91l1CjYv.cjs → SidePanels-YpyBLRub.cjs} +1 -1
- package/dist/{SidePanels-BK_QnEh9.js → SidePanels-ZlDXRldT.js} +4 -4
- package/dist/{Topbar-rEO5z57t.cjs → Topbar-2sOsQD2d.cjs} +1 -1
- package/dist/{Topbar-b7jnOD57.js → Topbar-xvrno03z.js} +1 -1
- package/dist/{UnsplashImages-p-WdKs3b.cjs → UnsplashImages-EiYSWkBa.cjs} +1 -1
- package/dist/{UnsplashImages-Lb78FYx7.js → UnsplashImages-hhPOf7kt.js} +1 -1
- package/dist/{UploadImages-zk-IYDx8.cjs → UploadImages-GGCExfQd.cjs} +1 -1
- package/dist/{UploadImages-aWG_1r7N.js → UploadImages-JKjE44i7.js} +1 -1
- package/dist/{add-page-modal-7djj9GZj.js → add-page-modal-iYgzDs08.js} +4 -4
- package/dist/{add-page-modal-iUffBbAe.cjs → add-page-modal-ueEpfep_.cjs} +1 -1
- package/dist/{confirm-alert-QuqMrpWn.js → confirm-alert-Nw1JCtuu.js} +1 -1
- package/dist/{confirm-alert-i3FRAgP4.cjs → confirm-alert-_DCO6hCV.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +3 -3
- package/dist/{delete-page-modal-RllDrgxs.cjs → delete-page-modal-CT-ZA6H5.cjs} +1 -1
- package/dist/{delete-page-modal-DEBiprds.js → delete-page-modal-hlR-A69E.js} +3 -3
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +27 -27
- package/dist/email.cjs +1 -1
- package/dist/email.js +4 -4
- package/dist/{empty-slot-TF2kd-0X.cjs → empty-slot-2LSrWJaY.cjs} +1 -1
- package/dist/{empty-slot-MWycClTb.js → empty-slot-5FRrRq1E.js} +33 -33
- package/dist/{form-94xR0NG8.js → form-lbFCPUoE.js} +1 -1
- package/dist/{form-yz7h2msc.cjs → form-vNgf0kO2.cjs} +1 -1
- package/dist/{index-19nTm_cE.js → index-DXznIJrr.js} +665 -660
- package/dist/{index-XVud0HL8.cjs → index-TBa4RPnS.cjs} +22 -22
- package/dist/{index-TEfD-2ti.cjs → index-bfKqnRvZ.cjs} +1 -1
- package/dist/{index-0m8Zuv5X.js → index-m9VziIOy.js} +2 -2
- package/dist/{page-viewer-xPLhXv6k.js → page-viewer-Hgr72mrQ.js} +4 -4
- package/dist/{page-viewer-_ktv1pgX.cjs → page-viewer-voX6SLpK.cjs} +1 -1
- package/dist/{project-general-setting-XlORLtqJ.js → project-general-setting-OdZj-lfx.js} +4 -4
- package/dist/{project-general-setting-nULU3Tzw.cjs → project-general-setting-VFFXhGpN.cjs} +1 -1
- package/dist/{project-seo-setting-KQkeHwny.js → project-seo-setting-9V67NFil.js} +3 -3
- package/dist/{project-seo-setting-9QkARPhg.cjs → project-seo-setting-aRDdqu88.cjs} +1 -1
- package/dist/{single-page-detail-gtVN9hxR.js → single-page-detail-AjhWBVK1.js} +5 -5
- package/dist/{single-page-detail-Gb6O3Yyw.cjs → single-page-detail-FIwXvGx2.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.d.ts +110 -2
- package/dist/studio.js +3 -3
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/{useAddBlockByDrop-GU5QLPtz.cjs → useAddBlockByDrop-1WvPoBXa.cjs} +1 -1
- package/dist/{useAddBlockByDrop-b5KJh_7w.js → useAddBlockByDrop-bs_SH7Tw.js} +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +129 -129
- package/package.json +1 -1
|
@@ -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
|
|
4
|
-
const
|
|
5
|
-
const
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
120
|
+
}), S = (i) => ({
|
|
121
121
|
type: "styles",
|
|
122
122
|
binding: !1,
|
|
123
|
-
default: `${
|
|
124
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
169
|
+
}), $ = ({ blockProps: i, className: n = "", styles: r = {}, inBuilder: d }) => d ? /* @__PURE__ */ a.jsx(
|
|
170
170
|
"div",
|
|
171
171
|
{
|
|
172
172
|
...i,
|
|
173
|
-
className:
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
c,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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 { b4 as P, b5 as E, b6 as O, b7 as S } from "./index-
|
|
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-
|
|
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=$;
|