@chaibuilder/sdk 1.0.4 → 1.0.6

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 (37) hide show
  1. package/dist/{AddBlocks-a3edbae6.cjs → AddBlocks-34209fc6.cjs} +1 -1
  2. package/dist/{AddBlocks-6523b7b7.js → AddBlocks-788a1feb.js} +1 -1
  3. package/dist/{BrandingOptions-86fbef54.cjs → BrandingOptions-049505cb.cjs} +1 -1
  4. package/dist/{BrandingOptions-39e8c4e1.js → BrandingOptions-3bbb19f0.js} +1 -1
  5. package/dist/{CanvasArea-67938f1e.cjs → CanvasArea-0eee4dd1.cjs} +2 -2
  6. package/dist/{CanvasArea-e0331b42.js → CanvasArea-ef1a4dcd.js} +2 -2
  7. package/dist/{CurrentPage-fa958150.cjs → CurrentPage-0c812168.cjs} +1 -1
  8. package/dist/{CurrentPage-762b1ead.js → CurrentPage-6c4a6a2d.js} +1 -1
  9. package/dist/{Layers-b3e2a0e5.js → Layers-e0ac56d5.js} +2 -2
  10. package/dist/{Layers-37a6caaa.cjs → Layers-fad860a5.cjs} +1 -1
  11. package/dist/{MarkAsGlobalBlock-90d59ed2.js → MarkAsGlobalBlock-981cb7fe.js} +1 -1
  12. package/dist/{MarkAsGlobalBlock-cf9e148b.cjs → MarkAsGlobalBlock-cf4c307c.cjs} +1 -1
  13. package/dist/{PagesPanel-2aa9a842.cjs → PagesPanel-4dcdc316.cjs} +1 -1
  14. package/dist/{PagesPanel-275d771f.js → PagesPanel-805d98b6.js} +2 -2
  15. package/dist/{ProjectPanel-2bfe31f7.cjs → ProjectPanel-35dcc456.cjs} +1 -1
  16. package/dist/{ProjectPanel-434f563e.js → ProjectPanel-636b6557.js} +2 -2
  17. package/dist/{Settings-447d24b0.cjs → Settings-10a6a944.cjs} +1 -1
  18. package/dist/{Settings-bcf29a2e.js → Settings-7f7e04f7.js} +1 -1
  19. package/dist/{SidePanels-251520d4.js → SidePanels-2eeb83be.js} +2 -2
  20. package/dist/{SidePanels-810faeb5.cjs → SidePanels-47ee2ffc.cjs} +1 -1
  21. package/dist/{Topbar-bcd336bc.cjs → Topbar-01491209.cjs} +1 -1
  22. package/dist/{Topbar-7abf6d32.js → Topbar-bc9054ff.js} +1 -1
  23. package/dist/{add-page-modal-cc7664e9.cjs → add-page-modal-6e30a762.cjs} +1 -1
  24. package/dist/{add-page-modal-357bdb9c.js → add-page-modal-c90cbdf2.js} +1 -1
  25. package/dist/core.cjs +1 -1
  26. package/dist/core.js +1 -1
  27. package/dist/{delete-page-modal-6eebd86d.cjs → delete-page-modal-db9ceae1.cjs} +1 -1
  28. package/dist/{delete-page-modal-2303a1ac.js → delete-page-modal-ff19917a.js} +1 -1
  29. package/dist/{index-5cde5d49.js → index-41ba78a6.js} +1592 -1591
  30. package/dist/{index-f34c9f39.cjs → index-ef6fb010.cjs} +30 -30
  31. package/dist/{page-viewer-49860cf4.js → page-viewer-5e200beb.js} +2 -2
  32. package/dist/{page-viewer-da81d5fa.cjs → page-viewer-68e74178.cjs} +1 -1
  33. package/dist/{project-general-setting-243ab375.js → project-general-setting-1ec54448.js} +1 -1
  34. package/dist/{project-general-setting-2ae3e26b.cjs → project-general-setting-5f3c1efc.cjs} +1 -1
  35. package/dist/{single-page-detail-335e2d59.js → single-page-detail-8d824bc8.js} +2 -2
  36. package/dist/{single-page-detail-8843206c.cjs → single-page-detail-ea470eb4.cjs} +1 -1
  37. package/package.json +1 -1
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a5 as b, ap as j, H as x, a8 as G, ak as O, W as U, al as w, K as F, B as W, ao as Z, z as q, a6 as z, a9 as E, d as K, f as N, l as V, o as J, aa as Q, n as X, e as Y, ab as _, m as $, k as ss, ac as es, V as as, A as os, an as ts, a1 as rs, ad as us, q as is, s as ls, am as ps, ae as ms, a7 as cs, t as ds, L as Bs, c as ks, D as ns, ag as gs, N as Cs, i as Ss, O as vs, g as Ps, j as As, h as ys, ah as hs, M as Ms, af as Ds, ai as Is, Z as Ls, aj as fs, G as Rs } from "./index-5cde5d49.js";
1
+ import { a5 as b, ap as j, H as x, a8 as G, ak as O, W as U, al as w, K as F, B as W, ao as Z, z as q, a6 as z, a9 as E, d as K, f as N, l as V, o as J, aa as Q, n as X, e as Y, ab as _, m as $, k as ss, ac as es, V as as, A as os, an as ts, a1 as rs, ad as us, q as is, s as ls, am as ps, ae as ms, a7 as cs, t as ds, L as Bs, c as ks, D as ns, ag as gs, N as Cs, i as Ss, O as vs, g as Ps, j as As, h as ys, ah as hs, M as Ms, af as Ds, ai as Is, Z as Ls, aj as fs, G as Rs } from "./index-41ba78a6.js";
2
2
  import { u as Ts } from "./useBuilderProp-21feb2da.js";
3
3
  import { useTranslation as js } from "react-i18next";
4
4
  import "./jsx-runtime-944c88e2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-5c3ac4f7.cjs"),r=require("./useBuilderProp-adacf42f.cjs"),l=require("./index-f34c9f39.cjs"),d=require("@radix-ui/react-icons");require("react");require("@radix-ui/react-alert-dialog");require("./utils-3c452dd0.cjs");require("clsx");require("tailwind-merge");require("@radix-ui/react-slot");require("class-variance-authority");require("@radix-ui/react-tooltip");require("@radix-ui/react-toast");require("jotai");require("lodash");require("./MODIFIERS-4716c669.cjs");require("@radix-ui/react-scroll-area");require("react-dom");require("@floating-ui/react-dom");require("i18next");require("react-i18next");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("flat-to-nested");require("./html-to-json-aadcbf66.cjs");require("himalaya");require("redux-undo");require("@react-hookz/web");require("@chaibuilder/blocks");require("sonner");require("lucide-react");const x=({pageData:i,projectData:s})=>{const n={},t=l.useDeletePage(),u=i.uuid===s.homepage,o=()=>{t.mutate(i,{onSuccess:()=>{n({uuid:s.homepage,slug:"/home"})}})};return e.jsxRuntimeExports.jsxs(r.AlertDialog,{children:[e.jsxRuntimeExports.jsx(r.AlertDialogTrigger,{disabled:u,children:e.jsxRuntimeExports.jsx("div",{className:`flex h-full items-center justify-center rounded-md border px-2 py-2 font-medium hover:bg-red-400 hover:text-white ${u?"cursor-not-allowed border-red-200 text-red-200":"cursor-pointer border-red-400 text-red-400"}`,children:e.jsxRuntimeExports.jsx(d.TrashIcon,{})})}),e.jsxRuntimeExports.jsxs(r.AlertDialogContent,{children:[e.jsxRuntimeExports.jsxs(r.AlertDialogTitle,{children:["Are you sure you want to delete ",e.jsxRuntimeExports.jsx("i",{className:"text-red-500",children:i.name})," page?"]}),e.jsxRuntimeExports.jsx(r.AlertDialogDescription,{children:"This action cannot be undone. This will permanently delete your page."}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-x-3",children:[e.jsxRuntimeExports.jsx(r.AlertDialogCancel,{disabled:t.isPending,children:"Cancel"}),e.jsxRuntimeExports.jsx(r.Button,{variant:"destructive",onClick:o,disabled:t.isPending,children:"Yes, Delete"})]})]})]})};exports.default=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-5c3ac4f7.cjs"),r=require("./useBuilderProp-adacf42f.cjs"),l=require("./index-ef6fb010.cjs"),d=require("@radix-ui/react-icons");require("react");require("@radix-ui/react-alert-dialog");require("./utils-3c452dd0.cjs");require("clsx");require("tailwind-merge");require("@radix-ui/react-slot");require("class-variance-authority");require("@radix-ui/react-tooltip");require("@radix-ui/react-toast");require("jotai");require("lodash");require("./MODIFIERS-4716c669.cjs");require("@radix-ui/react-scroll-area");require("react-dom");require("@floating-ui/react-dom");require("i18next");require("react-i18next");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("flat-to-nested");require("./html-to-json-aadcbf66.cjs");require("himalaya");require("redux-undo");require("@react-hookz/web");require("@chaibuilder/blocks");require("sonner");require("lucide-react");const x=({pageData:i,projectData:s})=>{const n={},t=l.useDeletePage(),u=i.uuid===s.homepage,o=()=>{t.mutate(i,{onSuccess:()=>{n({uuid:s.homepage,slug:"/home"})}})};return e.jsxRuntimeExports.jsxs(r.AlertDialog,{children:[e.jsxRuntimeExports.jsx(r.AlertDialogTrigger,{disabled:u,children:e.jsxRuntimeExports.jsx("div",{className:`flex h-full items-center justify-center rounded-md border px-2 py-2 font-medium hover:bg-red-400 hover:text-white ${u?"cursor-not-allowed border-red-200 text-red-200":"cursor-pointer border-red-400 text-red-400"}`,children:e.jsxRuntimeExports.jsx(d.TrashIcon,{})})}),e.jsxRuntimeExports.jsxs(r.AlertDialogContent,{children:[e.jsxRuntimeExports.jsxs(r.AlertDialogTitle,{children:["Are you sure you want to delete ",e.jsxRuntimeExports.jsx("i",{className:"text-red-500",children:i.name})," page?"]}),e.jsxRuntimeExports.jsx(r.AlertDialogDescription,{children:"This action cannot be undone. This will permanently delete your page."}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-x-3",children:[e.jsxRuntimeExports.jsx(r.AlertDialogCancel,{disabled:t.isPending,children:"Cancel"}),e.jsxRuntimeExports.jsx(r.Button,{variant:"destructive",onClick:o,disabled:t.isPending,children:"Yes, Delete"})]})]})]})};exports.default=x;
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./jsx-runtime-944c88e2.js";
2
2
  import { A as l, b as n, d, f as a, g as p, i as c, B as u } from "./useBuilderProp-21feb2da.js";
3
- import { a4 as x } from "./index-5cde5d49.js";
3
+ import { a4 as x } from "./index-41ba78a6.js";
4
4
  import { TrashIcon as g } from "@radix-ui/react-icons";
5
5
  import "react";
6
6
  import "@radix-ui/react-alert-dialog";