@chaibuilder/sdk 1.0.5 → 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.
- package/dist/{AddBlocks-bebc8e38.cjs → AddBlocks-34209fc6.cjs} +1 -1
- package/dist/{AddBlocks-94cf46d7.js → AddBlocks-788a1feb.js} +1 -1
- package/dist/{BrandingOptions-703e2c8b.cjs → BrandingOptions-049505cb.cjs} +1 -1
- package/dist/{BrandingOptions-c22ad026.js → BrandingOptions-3bbb19f0.js} +1 -1
- package/dist/{CanvasArea-cd4da772.cjs → CanvasArea-0eee4dd1.cjs} +2 -2
- package/dist/{CanvasArea-90b0f63d.js → CanvasArea-ef1a4dcd.js} +2 -2
- package/dist/{CurrentPage-7a6d4643.cjs → CurrentPage-0c812168.cjs} +1 -1
- package/dist/{CurrentPage-aa4de22f.js → CurrentPage-6c4a6a2d.js} +1 -1
- package/dist/{Layers-cff22f39.js → Layers-e0ac56d5.js} +2 -2
- package/dist/{Layers-94260926.cjs → Layers-fad860a5.cjs} +1 -1
- package/dist/{MarkAsGlobalBlock-d9bcd24a.js → MarkAsGlobalBlock-981cb7fe.js} +1 -1
- package/dist/{MarkAsGlobalBlock-4f1e20b0.cjs → MarkAsGlobalBlock-cf4c307c.cjs} +1 -1
- package/dist/{PagesPanel-53b0eff4.cjs → PagesPanel-4dcdc316.cjs} +1 -1
- package/dist/{PagesPanel-bb740126.js → PagesPanel-805d98b6.js} +2 -2
- package/dist/{ProjectPanel-c0f6a656.cjs → ProjectPanel-35dcc456.cjs} +1 -1
- package/dist/{ProjectPanel-7dab69b4.js → ProjectPanel-636b6557.js} +2 -2
- package/dist/{Settings-f4f20456.cjs → Settings-10a6a944.cjs} +1 -1
- package/dist/{Settings-00337fa2.js → Settings-7f7e04f7.js} +1 -1
- package/dist/{SidePanels-ef5cf825.js → SidePanels-2eeb83be.js} +2 -2
- package/dist/{SidePanels-b3e85d16.cjs → SidePanels-47ee2ffc.cjs} +1 -1
- package/dist/{Topbar-58a2d4b3.cjs → Topbar-01491209.cjs} +1 -1
- package/dist/{Topbar-3c249ffe.js → Topbar-bc9054ff.js} +1 -1
- package/dist/{add-page-modal-7f75bbb5.cjs → add-page-modal-6e30a762.cjs} +1 -1
- package/dist/{add-page-modal-7ccb5b8e.js → add-page-modal-c90cbdf2.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-a88a20fd.cjs → delete-page-modal-db9ceae1.cjs} +1 -1
- package/dist/{delete-page-modal-4af2dc82.js → delete-page-modal-ff19917a.js} +1 -1
- package/dist/{index-11d42656.js → index-41ba78a6.js} +1589 -1589
- package/dist/{index-b7e3f3cb.cjs → index-ef6fb010.cjs} +30 -30
- package/dist/{page-viewer-f4770b77.js → page-viewer-5e200beb.js} +2 -2
- package/dist/{page-viewer-2936d827.cjs → page-viewer-68e74178.cjs} +1 -1
- package/dist/{project-general-setting-61e24f3d.js → project-general-setting-1ec54448.js} +1 -1
- package/dist/{project-general-setting-6f0e0138.cjs → project-general-setting-5f3c1efc.cjs} +1 -1
- package/dist/{single-page-detail-515b1f19.js → single-page-detail-8d824bc8.js} +2 -2
- package/dist/{single-page-detail-abca8ffb.cjs → single-page-detail-ea470eb4.cjs} +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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";
|