@chaibuilder/sdk 1.0.0 → 1.0.2
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-4f054351.cjs → AddBlocks-3a7649d5.cjs} +1 -1
- package/dist/{AddBlocks-f6836e71.js → AddBlocks-c5c0dd03.js} +1 -1
- package/dist/{BrandingOptions-cfa79ffe.cjs → BrandingOptions-56d81bc2.cjs} +1 -1
- package/dist/{BrandingOptions-33e6da26.js → BrandingOptions-e677cf11.js} +1 -1
- package/dist/{CanvasArea-1e5fa968.js → CanvasArea-14ae34d6.js} +2 -2
- package/dist/{CanvasArea-971b3ff8.cjs → CanvasArea-a17fc7da.cjs} +2 -2
- package/dist/{CurrentPage-b2d12d83.cjs → CurrentPage-68a7b712.cjs} +1 -1
- package/dist/{CurrentPage-223cc3dd.js → CurrentPage-8eb614ef.js} +1 -1
- package/dist/{Layers-b2c5aa66.js → Layers-cf39ffab.js} +2 -2
- package/dist/{Layers-860f5e42.cjs → Layers-e2b02b28.cjs} +1 -1
- package/dist/{MarkAsGlobalBlock-9b0135aa.js → MarkAsGlobalBlock-ea250b6d.js} +1 -1
- package/dist/{MarkAsGlobalBlock-1a3d5e53.cjs → MarkAsGlobalBlock-f2d5500b.cjs} +1 -1
- package/dist/{PagesPanel-034efd4c.js → PagesPanel-15bee60b.js} +2 -2
- package/dist/{PagesPanel-2a80f9b2.cjs → PagesPanel-5bf8b29e.cjs} +1 -1
- package/dist/{ProjectPanel-5deae7f1.cjs → ProjectPanel-b6938da6.cjs} +1 -1
- package/dist/{ProjectPanel-3827a349.js → ProjectPanel-ec1cc852.js} +2 -2
- package/dist/{Settings-9f61cc69.cjs → Settings-16e1b3fb.cjs} +1 -1
- package/dist/{Settings-a2d4e9c2.js → Settings-6eee46a7.js} +1 -1
- package/dist/{SidePanels-0d276d29.cjs → SidePanels-6c1f280e.cjs} +1 -1
- package/dist/{SidePanels-b881185b.js → SidePanels-84877501.js} +2 -2
- package/dist/{Topbar-fda7588e.js → Topbar-9daf50f4.js} +1 -1
- package/dist/{Topbar-68a0d125.cjs → Topbar-de650052.cjs} +1 -1
- package/dist/{add-page-modal-38af4548.js → add-page-modal-211a170b.js} +1 -1
- package/dist/{add-page-modal-fb51b45b.cjs → add-page-modal-f687df67.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-305c49fd.cjs → delete-page-modal-446def2d.cjs} +1 -1
- package/dist/{delete-page-modal-a226ed3a.js → delete-page-modal-6e2504f3.js} +1 -1
- package/dist/{index-6fc652ec.cjs → index-a651f2ae.cjs} +2 -2
- package/dist/{index-914d197c.js → index-b13e230b.js} +3 -3
- package/dist/{page-viewer-857a82f4.cjs → page-viewer-5dd1916c.cjs} +1 -1
- package/dist/{page-viewer-682940be.js → page-viewer-ade30c07.js} +2 -2
- package/dist/{project-general-setting-0fa55bb9.js → project-general-setting-104ce380.js} +1 -1
- package/dist/{project-general-setting-280ccd16.cjs → project-general-setting-fa25fad1.cjs} +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.d.ts +61 -14
- package/dist/server.js +74 -46
- package/dist/{single-page-detail-8b715650.js → single-page-detail-be6c051e.js} +2 -2
- package/dist/{single-page-detail-b9c4ac1e.cjs → single-page-detail-d7e76b74.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-b13e230b.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-a651f2ae.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-b13e230b.js";
|
|
4
4
|
import { TrashIcon as g } from "@radix-ui/react-icons";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@radix-ui/react-alert-dialog";
|