@chaibuilder/sdk 2.0.0-beta.7 → 2.0.0-beta.8

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.
@@ -3801,7 +3801,7 @@ const useAllDataProviders = () => useMemo(() => getChaiDataProviders(), []), Blo
3801
3801
  l !== o.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { className: "rtl:rotate-180", size: 16 })
3802
3802
  ] }, l))
3803
3803
  ] }) });
3804
- }, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-Bqjwy0VH.js")), CanvasArea = () => {
3804
+ }, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-BUKZyPNe.js")), CanvasArea = () => {
3805
3805
  const [o] = useCodeEditor(), r = useBuilderProp("onError", noop);
3806
3806
  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: [
3807
3807
  /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: r, children: /* @__PURE__ */ jsxRuntimeExports.jsx(StaticCanvas$1, {}) }) }),
@@ -4827,10 +4827,10 @@ const MediaManagerModal$1 = MediaManagerModal, ImagePickerField = ({ value: o, o
4827
4827
  var D;
4828
4828
  const { t: a } = useTranslation(), l = useBuilderProp("searchCollectionItems", (x, k) => []), [i, c] = useState(!1), [d, p] = useState(!1), [u, m] = useState("page"), [f, g] = useState(""), [E, j] = useState([]), [b, v] = useState(-1), S = useRef(null), w = (D = r == null ? void 0 : r.find((x) => x.key === u)) == null ? void 0 : D.name;
4829
4829
  useEffect(() => {
4830
- if (!o || i || !startsWith(o, "collection:"))
4830
+ if (g(""), j([]), v(-1), p(!1), !o || i || !startsWith(o, "collection:"))
4831
4831
  return;
4832
4832
  const x = split(o, ":"), k = get(x, 1, "page") || "page";
4833
- m(k), g(""), j([]), v(-1), (async () => {
4833
+ m(k), (async () => {
4834
4834
  const C = await l(k, [get(x, 2, "page")]);
4835
4835
  C && Array.isArray(C) && g(get(C, [0, "name"], ""));
4836
4836
  })();
@@ -8310,7 +8310,7 @@ const ChooseLayout = ({ open: o, close: r }) => {
8310
8310
  ] }) })
8311
8311
  ] })
8312
8312
  ] });
8313
- }, TopBar = lazy(() => import("./Topbar-g2pI6yGs.js"));
8313
+ }, TopBar = lazy(() => import("./Topbar-34AjGxOm.js"));
8314
8314
  function useSidebarMenuItems(o) {
8315
8315
  const r = o === "SINGLE_SIDE_PANEL", { t: n } = useTranslation(), a = useBuilderProp("askAiCallBack", null);
8316
8316
  return useMemo(() => {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "Suraj Air",
6
6
  "license": "BSD-3-Clause",
7
7
  "homepage": "https://chaibuilder.com",
8
- "version": "2.0.0-beta.7",
8
+ "version": "2.0.0-beta.8",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",