@chaibuilder/sdk 1.2.100 → 1.2.101
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-arptm_-Q.cjs → CodeEditor-6H3xdrCM.cjs} +1 -1
- package/dist/{CodeEditor-4u3Q97EK.js → CodeEditor-JwQBcXXn.js} +1 -1
- package/dist/{Topbar-ziTrNsmI.cjs → Topbar-ImKs0qxq.cjs} +1 -1
- package/dist/{Topbar-i55trLGw.js → Topbar-WwuC_EF0.js} +1 -1
- package/dist/{UnsplashImages-9-OD1Sje.cjs → UnsplashImages-Scb7a22J.cjs} +1 -1
- package/dist/{UnsplashImages-y0LQATX2.js → UnsplashImages-auPssWRE.js} +1 -1
- package/dist/{UploadImages--tvMDTKi.cjs → UploadImages-OREmjJoH.cjs} +1 -1
- package/dist/{UploadImages-Nbpt6WL2.js → UploadImages-e-UF1mAe.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +9 -0
- package/dist/core.js +1 -1
- package/dist/{index-EyRQyWtP.cjs → index-4gjDYh6v.cjs} +2 -2
- package/dist/{index-jfezM1fH.js → index-eEpCjNMA.js} +12 -10
- package/package.json +1 -1
|
@@ -3065,7 +3065,7 @@ function getTargetedBlock(o) {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
function destroyQuill(o) {
|
|
3067
3067
|
o.container.innerHTML = "", o.container.parentNode.removeChild(o.container);
|
|
3068
|
-
|
|
3068
|
+
const n = document.querySelector(".ql-toolbar");
|
|
3069
3069
|
n && n.parentNode.removeChild(n), o = null;
|
|
3070
3070
|
}
|
|
3071
3071
|
const useHandleCanvasDblClick = () => {
|
|
@@ -3105,7 +3105,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3105
3105
|
const u = d.getAttribute("data-style-prop"), p = d.getAttribute("data-style-id"), g = d.getAttribute("data-block-parent");
|
|
3106
3106
|
n.includes(g) || i == null || i.closeAll(), o([{ id: p, prop: u, blockId: g }]), r([g]);
|
|
3107
3107
|
} else if (d != null && d.getAttribute("data-block-id")) {
|
|
3108
|
-
|
|
3108
|
+
const u = d.getAttribute("data-block-id");
|
|
3109
3109
|
n.includes(u) || i == null || i.closeAll(), o([]), r(u === "canvas" ? [] : [u]);
|
|
3110
3110
|
}
|
|
3111
3111
|
a("");
|
|
@@ -3714,7 +3714,7 @@ const useAllDataProviders = () => useMemo(() => getChaiDataProviders(), []), Blo
|
|
|
3714
3714
|
l !== o.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { className: "rtl:rotate-180", size: 16 })
|
|
3715
3715
|
] }, l))
|
|
3716
3716
|
] }) });
|
|
3717
|
-
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-
|
|
3717
|
+
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-JwQBcXXn.js")), CanvasArea = () => {
|
|
3718
3718
|
const [o] = useCodeEditor(), n = useBuilderProp("onError", noop);
|
|
3719
3719
|
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: [
|
|
3720
3720
|
/* @__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, {}) }) }),
|
|
@@ -5099,7 +5099,7 @@ const ViewData = ({ data: o, fullView: n }) => {
|
|
|
5099
5099
|
}
|
|
5100
5100
|
)
|
|
5101
5101
|
] });
|
|
5102
|
-
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-
|
|
5102
|
+
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-auPssWRE.js")), UploadImages = React__default.lazy(() => import("./UploadImages-e-UF1mAe.js")), ImagesPanel = ({
|
|
5103
5103
|
isModalView: o = !1,
|
|
5104
5104
|
onSelect: n = () => {
|
|
5105
5105
|
}
|
|
@@ -5118,14 +5118,16 @@ const ViewData = ({ data: o, fullView: n }) => {
|
|
|
5118
5118
|
] })
|
|
5119
5119
|
] });
|
|
5120
5120
|
}, ImagesPanel$1 = ImagesPanel, ImagePickerModal = ({ children: o, onSelect: n }) => {
|
|
5121
|
-
const [r, a] = useState(!1), l = (...
|
|
5122
|
-
n.call(void 0, ...
|
|
5121
|
+
const [r, a] = useState(!1), l = useBuilderProp("mediaManagerComponent", ImagesPanel$1), i = (...c) => {
|
|
5122
|
+
n.call(void 0, ...c), a(!1);
|
|
5123
5123
|
};
|
|
5124
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { open: r, onOpenChange: (
|
|
5124
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { open: r, onOpenChange: (c) => a(c), children: [
|
|
5125
5125
|
/* @__PURE__ */ jsxRuntimeExports.jsx(DialogTrigger, { asChild: !0, children: o }),
|
|
5126
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(DialogContent, { className: "flex h-3/4 max-w-5xl border-border", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5126
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(DialogContent, { className: "flex h-3/4 max-w-5xl border-border", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(l, { isModalView: !0, onSelect: i }) }) })
|
|
5127
5127
|
] });
|
|
5128
|
-
}
|
|
5128
|
+
};
|
|
5129
|
+
ImagePickerModal.displayName = "ImagePickerModal";
|
|
5130
|
+
const ImagePickerModal$1 = ImagePickerModal, ImagePickerField = ({ value: o, onChange: n, id: r, onBlur: a }) => {
|
|
5129
5131
|
const l = useBuilderProp("uploadMediaCallback"), i = useBuilderProp("unsplashAccessKey"), { t: c } = useTranslation(), d = l === void 0, u = i === void 0;
|
|
5130
5132
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
|
|
5131
5133
|
o ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: o, className: "h-20 w-20 overflow-hidden rounded-md border border-border object-cover", alt: "" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ImagePickerModal$1, { onSelect: n, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-20 w-20 cursor-pointer rounded-md border border-border bg-[radial-gradient(#AAA,transparent_1px)] duration-300 [background-size:10px_10px]" }) }),
|
|
@@ -8477,7 +8479,7 @@ const PageDataProviders = () => {
|
|
|
8477
8479
|
function AiFillDatabase(o) {
|
|
8478
8480
|
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);
|
|
8479
8481
|
}
|
|
8480
|
-
const TopBar = lazy(() => import("./Topbar-
|
|
8482
|
+
const TopBar = lazy(() => import("./Topbar-WwuC_EF0.js"));
|
|
8481
8483
|
function useSidebarMenuItems(o) {
|
|
8482
8484
|
const n = o === "SINGLE_SIDE_PANEL", { t: r } = useTranslation(), a = useBuilderProp("dataBindingSupport", !1), l = useBuilderProp("askAiCallBack", null);
|
|
8483
8485
|
return useMemo(() => {
|