@chaibuilder/sdk 1.0.2 → 1.0.4
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-c5c0dd03.js → AddBlocks-6523b7b7.js} +1 -1
- package/dist/{AddBlocks-3a7649d5.cjs → AddBlocks-a3edbae6.cjs} +1 -1
- package/dist/{BrandingOptions-e677cf11.js → BrandingOptions-39e8c4e1.js} +1 -1
- package/dist/{BrandingOptions-56d81bc2.cjs → BrandingOptions-86fbef54.cjs} +1 -1
- package/dist/{CanvasArea-a17fc7da.cjs → CanvasArea-67938f1e.cjs} +2 -2
- package/dist/{CanvasArea-14ae34d6.js → CanvasArea-e0331b42.js} +2 -2
- package/dist/{CurrentPage-8eb614ef.js → CurrentPage-762b1ead.js} +1 -1
- package/dist/{CurrentPage-68a7b712.cjs → CurrentPage-fa958150.cjs} +1 -1
- package/dist/{Layers-e2b02b28.cjs → Layers-37a6caaa.cjs} +1 -1
- package/dist/{Layers-cf39ffab.js → Layers-b3e2a0e5.js} +2 -2
- package/dist/{MarkAsGlobalBlock-ea250b6d.js → MarkAsGlobalBlock-90d59ed2.js} +1 -1
- package/dist/{MarkAsGlobalBlock-f2d5500b.cjs → MarkAsGlobalBlock-cf9e148b.cjs} +1 -1
- package/dist/{PagesPanel-15bee60b.js → PagesPanel-275d771f.js} +2 -2
- package/dist/{PagesPanel-5bf8b29e.cjs → PagesPanel-2aa9a842.cjs} +1 -1
- package/dist/{ProjectPanel-b6938da6.cjs → ProjectPanel-2bfe31f7.cjs} +1 -1
- package/dist/{ProjectPanel-ec1cc852.js → ProjectPanel-434f563e.js} +2 -2
- package/dist/{Settings-16e1b3fb.cjs → Settings-447d24b0.cjs} +1 -1
- package/dist/{Settings-6eee46a7.js → Settings-bcf29a2e.js} +1 -1
- package/dist/{SidePanels-84877501.js → SidePanels-251520d4.js} +2 -2
- package/dist/{SidePanels-6c1f280e.cjs → SidePanels-810faeb5.cjs} +1 -1
- package/dist/{Topbar-9daf50f4.js → Topbar-7abf6d32.js} +1 -1
- package/dist/{Topbar-de650052.cjs → Topbar-bcd336bc.cjs} +1 -1
- package/dist/{add-page-modal-211a170b.js → add-page-modal-357bdb9c.js} +1 -1
- package/dist/{add-page-modal-f687df67.cjs → add-page-modal-cc7664e9.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-6e2504f3.js → delete-page-modal-2303a1ac.js} +1 -1
- package/dist/{delete-page-modal-446def2d.cjs → delete-page-modal-6eebd86d.cjs} +1 -1
- package/dist/{index-b13e230b.js → index-5cde5d49.js} +1538 -1527
- package/dist/{index-a651f2ae.cjs → index-f34c9f39.cjs} +23 -23
- package/dist/{page-viewer-ade30c07.js → page-viewer-49860cf4.js} +2 -2
- package/dist/{page-viewer-5dd1916c.cjs → page-viewer-da81d5fa.cjs} +1 -1
- package/dist/{project-general-setting-104ce380.js → project-general-setting-243ab375.js} +1 -1
- package/dist/{project-general-setting-fa25fad1.cjs → project-general-setting-2ae3e26b.cjs} +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +3 -3
- package/dist/{single-page-detail-be6c051e.js → single-page-detail-335e2d59.js} +2 -2
- package/dist/{single-page-detail-d7e76b74.cjs → single-page-detail-8843206c.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-5cde5d49.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,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-5cde5d49.js";
|
|
4
4
|
import { TrashIcon as g } from "@radix-ui/react-icons";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@radix-ui/react-alert-dialog";
|
|
@@ -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-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;
|