@chaibuilder/sdk 1.0.3 → 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-3446caa6.js → AddBlocks-6523b7b7.js} +1 -1
- package/dist/{AddBlocks-5fa3b893.cjs → AddBlocks-a3edbae6.cjs} +1 -1
- package/dist/{BrandingOptions-b64ac63a.js → BrandingOptions-39e8c4e1.js} +1 -1
- package/dist/{BrandingOptions-127004d9.cjs → BrandingOptions-86fbef54.cjs} +1 -1
- package/dist/{CanvasArea-e6f83912.cjs → CanvasArea-67938f1e.cjs} +2 -2
- package/dist/{CanvasArea-a834a8d0.js → CanvasArea-e0331b42.js} +2 -2
- package/dist/{CurrentPage-38bf7384.js → CurrentPage-762b1ead.js} +1 -1
- package/dist/{CurrentPage-9d2e0a84.cjs → CurrentPage-fa958150.cjs} +1 -1
- package/dist/{Layers-12a8b1e7.cjs → Layers-37a6caaa.cjs} +1 -1
- package/dist/{Layers-51b87bb4.js → Layers-b3e2a0e5.js} +2 -2
- package/dist/{MarkAsGlobalBlock-9cf87fe6.js → MarkAsGlobalBlock-90d59ed2.js} +1 -1
- package/dist/{MarkAsGlobalBlock-8050aa44.cjs → MarkAsGlobalBlock-cf9e148b.cjs} +1 -1
- package/dist/{PagesPanel-ec1c1e69.js → PagesPanel-275d771f.js} +2 -2
- package/dist/{PagesPanel-39a90c0f.cjs → PagesPanel-2aa9a842.cjs} +1 -1
- package/dist/{ProjectPanel-c95c40eb.cjs → ProjectPanel-2bfe31f7.cjs} +1 -1
- package/dist/{ProjectPanel-119c5cc6.js → ProjectPanel-434f563e.js} +2 -2
- package/dist/{Settings-cf2eb8a0.cjs → Settings-447d24b0.cjs} +1 -1
- package/dist/{Settings-8f30ff27.js → Settings-bcf29a2e.js} +1 -1
- package/dist/{SidePanels-2b030a30.js → SidePanels-251520d4.js} +2 -2
- package/dist/{SidePanels-d3c0f0aa.cjs → SidePanels-810faeb5.cjs} +1 -1
- package/dist/{Topbar-bb32e803.js → Topbar-7abf6d32.js} +1 -1
- package/dist/{Topbar-d3aa7d1b.cjs → Topbar-bcd336bc.cjs} +1 -1
- package/dist/{add-page-modal-8e7f343f.js → add-page-modal-357bdb9c.js} +1 -1
- package/dist/{add-page-modal-dfc01491.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-0aa418a6.js → delete-page-modal-2303a1ac.js} +1 -1
- package/dist/{delete-page-modal-eac58724.cjs → delete-page-modal-6eebd86d.cjs} +1 -1
- package/dist/{index-d643d970.js → index-5cde5d49.js} +181 -179
- package/dist/{index-e77767e0.cjs → index-f34c9f39.cjs} +2 -2
- package/dist/{page-viewer-1d8a4153.js → page-viewer-49860cf4.js} +2 -2
- package/dist/{page-viewer-94d094ba.cjs → page-viewer-da81d5fa.cjs} +1 -1
- package/dist/{project-general-setting-1318cab7.js → project-general-setting-243ab375.js} +1 -1
- package/dist/{project-general-setting-03494f42.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-aa50dfdd.js → single-page-detail-335e2d59.js} +2 -2
- package/dist/{single-page-detail-45d9ca3c.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;
|