@chaibuilder/sdk 1.2.110-beta.1 → 1.2.111-beta.1
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/{CodeEditor-rOhqnKcT.cjs → CodeEditor-NWAUv_Ed.cjs} +1 -1
- package/dist/{CodeEditor-jyFoM1d1.js → CodeEditor-s1ILd_Ak.js} +1 -1
- package/dist/{Topbar-SKKQMjc1.cjs → Topbar-RBTuXAXi.cjs} +1 -1
- package/dist/{Topbar-ehvnRhOq.js → Topbar-yWrMoxdA.js} +1 -1
- package/dist/{UnsplashImages-uAq-YtFi.cjs → UnsplashImages-jrDzuuK8.cjs} +1 -1
- package/dist/{UnsplashImages-Oq4_5Ihm.js → UnsplashImages-yErEaV7p.js} +1 -1
- package/dist/{UploadImages-zxbjgQf7.js → UploadImages-0igaDp4S.js} +1 -1
- package/dist/{UploadImages-UlHrI-EQ.cjs → UploadImages-6Fy8OVe1.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +17 -1
- package/dist/core.js +1 -1
- package/dist/{index-T33KMBT2.cjs → index-WrDcemUg.cjs} +2 -2
- package/dist/{index-qV5P0VmO.js → index-dvbU2Usz.js} +8 -7
- package/package.json +1 -1
|
@@ -3777,7 +3777,7 @@ const useAllDataProviders = () => useMemo(() => getChaiDataProviders(), []), Blo
|
|
|
3777
3777
|
l !== o.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { className: "rtl:rotate-180", size: 16 })
|
|
3778
3778
|
] }, l))
|
|
3779
3779
|
] }) });
|
|
3780
|
-
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-
|
|
3780
|
+
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-s1ILd_Ak.js")), CanvasArea = () => {
|
|
3781
3781
|
const [o] = useCodeEditor(), n = useBuilderProp("onError", noop);
|
|
3782
3782
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-full max-h-full w-full flex-1 flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex h-full max-h-full flex-col overflow-hidden bg-gray-100/40 px-2", children: [
|
|
3783
3783
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: n, children: /* @__PURE__ */ jsxRuntimeExports.jsx(StaticCanvas$1, {}) }) }),
|
|
@@ -5202,7 +5202,7 @@ const ViewData = ({ data: o, fullView: n }) => {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
)
|
|
5204
5204
|
] });
|
|
5205
|
-
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-
|
|
5205
|
+
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-yErEaV7p.js")), UploadImages = React__default.lazy(() => import("./UploadImages-0igaDp4S.js")), ImagesPanel = ({
|
|
5206
5206
|
isModalView: o = !1,
|
|
5207
5207
|
onSelect: n = () => {
|
|
5208
5208
|
}
|
|
@@ -5292,7 +5292,7 @@ const ImagePickerModal$1 = ImagePickerModal, ImagePickerField = ({ value: o, onC
|
|
|
5292
5292
|
}
|
|
5293
5293
|
);
|
|
5294
5294
|
}, LinkField = ({ schema: o, formData: n, onChange: r }) => {
|
|
5295
|
-
const [a, l] = useState([]), i = useBuilderProp("getPages", () => []), { type: c = "page", href: d = "", target: u = "self" } = n;
|
|
5295
|
+
const [a, l] = useState([]), i = useBuilderProp("getPages", () => []), { type: c = "page", href: d = "#", target: u = "self" } = n;
|
|
5296
5296
|
return useEffect(() => {
|
|
5297
5297
|
(async () => {
|
|
5298
5298
|
const p = await i();
|
|
@@ -5308,7 +5308,7 @@ const ImagePickerModal$1 = ImagePickerModal, ImagePickerField = ({ value: o, onC
|
|
|
5308
5308
|
{ const: "telephone", title: "Call Phone" },
|
|
5309
5309
|
{ const: "scroll", title: "Scroll to element" }
|
|
5310
5310
|
].map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: p.const, children: p.title }, p.const)) }),
|
|
5311
|
-
c === "page" ? /* @__PURE__ */ jsxRuntimeExports.jsxs("select", { name: "href", value: d, onChange: (p) => r({ ...n, href: p.target.value
|
|
5311
|
+
c === "page" ? /* @__PURE__ */ jsxRuntimeExports.jsxs("select", { name: "href", value: d, onChange: (p) => r({ ...n, href: p.target.value }), children: [
|
|
5312
5312
|
/* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "", children: "Choose page" }),
|
|
5313
5313
|
map(a, (p) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: p.slug, children: p.name }, p.uuid))
|
|
5314
5314
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -5320,7 +5320,7 @@ const ImagePickerModal$1 = ImagePickerModal, ImagePickerField = ({ value: o, onC
|
|
|
5320
5320
|
name: "href",
|
|
5321
5321
|
type: "text",
|
|
5322
5322
|
value: d,
|
|
5323
|
-
onChange: (p) => r({ ...n, href: p.target.value
|
|
5323
|
+
onChange: (p) => r({ ...n, href: p.target.value }),
|
|
5324
5324
|
placeholder: c === "page" || c === "url" ? "Enter URL" : c === "scroll" ? "#ElementID" : "Enter detail"
|
|
5325
5325
|
}
|
|
5326
5326
|
),
|
|
@@ -5439,9 +5439,10 @@ const ImagePickerModal$1 = ImagePickerModal, ImagePickerField = ({ value: o, onC
|
|
|
5439
5439
|
className: "h-8 w-full rounded-md border border-border bg-gray-50 p-0 px-2 text-xs dark:bg-gray-800",
|
|
5440
5440
|
value: (o == null ? void 0 : o.globalBlock) || "",
|
|
5441
5441
|
onChange: (i) => {
|
|
5442
|
+
var c;
|
|
5442
5443
|
l([o._id], {
|
|
5443
5444
|
globalBlock: i.target.value,
|
|
5444
|
-
_name: `Global: ${startCase(i.target.value)}`
|
|
5445
|
+
_name: `Global: ${startCase((c = get(n, i.target.value, "")) == null ? void 0 : c.name)}`
|
|
5445
5446
|
});
|
|
5446
5447
|
},
|
|
5447
5448
|
children: [
|
|
@@ -8857,7 +8858,7 @@ const PageDataProviders = () => {
|
|
|
8857
8858
|
function AiFillDatabase(o) {
|
|
8858
8859
|
return GenIcon({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z" }, child: [] }] })(o);
|
|
8859
8860
|
}
|
|
8860
|
-
const TopBar = lazy(() => import("./Topbar-
|
|
8861
|
+
const TopBar = lazy(() => import("./Topbar-yWrMoxdA.js"));
|
|
8861
8862
|
function useSidebarMenuItems(o) {
|
|
8862
8863
|
const n = o === "SINGLE_SIDE_PANEL", { t: r } = useTranslation(), a = useBuilderProp("dataBindingSupport", !1), l = useBuilderProp("askAiCallBack", null);
|
|
8863
8864
|
return useMemo(() => {
|