@chaibuilder/sdk 1.0.24 → 1.1.1
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-P3qHuE5J.cjs +1 -0
- package/dist/AddBlocks-imyQSCbI.js +230 -0
- package/dist/{BrandingOptions-2aNZT1u3.cjs → BrandingOptions-_2XBEPab.cjs} +1 -1
- package/dist/{BrandingOptions-GLVanp1T.js → BrandingOptions-tSNtQ1Kv.js} +1 -1
- package/dist/CanvasArea-JzBGfXSp.js +1412 -0
- package/dist/CanvasArea-rC2E_4eS.cjs +58 -0
- package/dist/{CurrentPage-fyWf5F84.js → CurrentPage-2Hqp8dwp.js} +2 -2
- package/dist/{CurrentPage-JJpZpFko.cjs → CurrentPage-v7RxefU-.cjs} +1 -1
- package/dist/Layers-1H-MUoKM.cjs +1 -0
- package/dist/{Layers-RGy6kyuR.js → Layers-K_1pMZK5.js} +119 -137
- package/dist/{MarkAsGlobalBlock-EsX3-clj.js → MarkAsGlobalBlock-aqik3ouc.js} +1 -1
- package/dist/{MarkAsGlobalBlock-1G5m_8t3.cjs → MarkAsGlobalBlock-p_wvHkQZ.cjs} +1 -1
- package/dist/{PagesPanel-J8uYp1Tp.cjs → PagesPanel-Qt66yy3K.cjs} +1 -1
- package/dist/{PagesPanel-LjiXL4rp.js → PagesPanel-uMZT46fo.js} +3 -3
- package/dist/{ProjectPanel-IXVY1LJ_.cjs → ProjectPanel-g92sgZ-g.cjs} +1 -1
- package/dist/{ProjectPanel-F435j6T2.js → ProjectPanel-nhhdOgSP.js} +3 -3
- package/dist/Settings-IcmgBZm9.cjs +1 -0
- package/dist/{Settings-b3lEaQ7w.js → Settings-pYbQsClt.js} +483 -475
- package/dist/{SidePanels-MnI_uhIo.js → SidePanels-9AjWdvVI.js} +62 -55
- package/dist/{SidePanels-1Ooc-KTb.cjs → SidePanels-CBkl8HgT.cjs} +1 -1
- package/dist/{Topbar-1ClabAix.js → Topbar-Jc74a6oE.js} +1 -1
- package/dist/{Topbar-e0hKiAm_.cjs → Topbar-ZjAs5fDc.cjs} +1 -1
- package/dist/{UnsplashImages-UejSDiRk.js → UnsplashImages-_PxEYx5c.js} +1 -1
- package/dist/{UnsplashImages-OJ5u1mVM.cjs → UnsplashImages-nXceZLmd.cjs} +1 -1
- package/dist/{UploadImages-2SqVkr1u.cjs → UploadImages-tcQb5NZu.cjs} +1 -1
- package/dist/{UploadImages-xBJTMBKX.js → UploadImages-zzSgKmP9.js} +10 -10
- package/dist/{add-page-modal-SdyjVxRW.js → add-page-modal-Ny4uAvWB.js} +3 -3
- package/dist/{add-page-modal-rkF5RqMj.cjs → add-page-modal-eahhWw2b.cjs} +1 -1
- package/dist/{confirm-alert-TCwoZBC3.js → confirm-alert-2JxcNf3T.js} +1 -1
- package/dist/{confirm-alert-uk39UILT.cjs → confirm-alert-mzlwOW9w.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-PKSlPOAB.cjs → delete-page-modal-07nDpZpj.cjs} +1 -1
- package/dist/{delete-page-modal-pjChqG0d.js → delete-page-modal-4qrgJQ0x.js} +2 -2
- package/dist/{form-aIN_qzKQ.js → form-TQ7vwDYO.js} +1 -1
- package/dist/{form-N6Izl5Ni.cjs → form-bSW-Pkw9.cjs} +1 -1
- package/dist/{index-aPk1Fuat.js → index-ORFlyrBx.js} +536 -534
- package/dist/{index-LL32f5q7.cjs → index-Ua5E0Syv.cjs} +11 -11
- package/dist/{index-0ZqKzbSx.js → index-aDqFUJ8v.js} +165 -160
- package/dist/index-zkc4SQCu.cjs +1 -0
- package/dist/{page-viewer-SMOg1l3b.js → page-viewer-1Eb7ypob.js} +3 -3
- package/dist/{page-viewer-wrYXvC-7.cjs → page-viewer-X8h3FMwb.cjs} +1 -1
- package/dist/{project-general-setting-wDjCo89M.cjs → project-general-setting-I4z0C7PE.cjs} +1 -1
- package/dist/{project-general-setting-CcnnvnwD.js → project-general-setting-TCl_JNdl.js} +3 -3
- package/dist/{project-seo-setting-RJMYUQxR.cjs → project-seo-setting-cERASO9j.cjs} +1 -1
- package/dist/{project-seo-setting-CPtrvtsw.js → project-seo-setting-k0HlefUD.js} +2 -2
- package/dist/{single-page-detail-7NRw-CLc.js → single-page-detail-W5sW6771.js} +4 -4
- package/dist/{single-page-detail-gnpyWcy7.cjs → single-page-detail-sdTzXA5i.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +57 -57
- package/dist/useAddBlockByDrop-DPV32UHP.cjs +1 -0
- package/dist/useAddBlockByDrop-UA_Iw_4l.js +20 -0
- package/package.json +2 -2
- package/dist/AddBlocks-F05ZiQnz.cjs +0 -3
- package/dist/AddBlocks-kmAje7cV.js +0 -270
- package/dist/CanvasArea-AHGpIP2x.cjs +0 -56
- package/dist/CanvasArea-gJ_UifbO.js +0 -1349
- package/dist/Layers-YtfF6ty5.cjs +0 -1
- package/dist/Settings-xwTkQuKA.cjs +0 -1
- package/dist/index-4h4Ti2E4.cjs +0 -1
package/dist/core.d.ts
CHANGED
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as os } from "./index-
|
|
2
|
-
import { ak as rs, N as is, af as ps, O as ms, ah as us, P as ls, ae as cs, an as ds, x as Bs, i as ks, y as ns, Q as gs, p as Cs, R as Ps, U as Ss, k as vs, V as ys, n as As, W as Ms, X as hs, m as Ds, L as Is, Y as Ls, Z as Rs, _ as fs, am as xs, $ as Ts, a0 as Us, o as bs, h as js, al as ws, a1 as Hs, M as Os, l as Fs, a3 as Gs, ag as Ws, a6 as Zs, a5 as Es, a4 as Ns, j as Qs, ad as Vs, ai as Xs, aj as Ys, w as _s, a7 as $s, a9 as qs, a2 as zs, aa as Js, a8 as Ks, ab as se, ac as ee } from "./index-
|
|
1
|
+
import { k as os } from "./index-aDqFUJ8v.js";
|
|
2
|
+
import { ak as rs, N as is, af as ps, O as ms, ah as us, P as ls, ae as cs, an as ds, x as Bs, i as ks, y as ns, Q as gs, p as Cs, R as Ps, U as Ss, k as vs, V as ys, n as As, W as Ms, X as hs, m as Ds, L as Is, Y as Ls, Z as Rs, _ as fs, am as xs, $ as Ts, a0 as Us, o as bs, h as js, al as ws, a1 as Hs, M as Os, l as Fs, a3 as Gs, ag as Ws, a6 as Zs, a5 as Es, a4 as Ns, j as Qs, ad as Vs, ai as Xs, aj as Ys, w as _s, a7 as $s, a9 as qs, a2 as zs, aa as Js, a8 as Ks, ab as se, ac as ee } from "./index-ORFlyrBx.js";
|
|
3
3
|
import { useTranslation as oe } from "react-i18next";
|
|
4
4
|
import "i18next";
|
|
5
5
|
import "./jsx-runtime-NV737rRe.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),r=require("./index-zkc4SQCu.cjs"),q=require("./index-Ua5E0Syv.cjs"),l=require("@radix-ui/react-icons");require("./MODIFIERS-WFzDQfiT.cjs");require("react");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-It2K33fU.cjs");require("lodash");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("jotai");require("flat-to-nested");require("redux-undo");require("@chaibuilder/runtime");require("@react-hookz/web");require("react-i18next");require("i18next");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("./lib.cjs");require("himalaya");require("./functions-KMQYiBHf.cjs");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("./tailwind-config-OxLD7oFU.cjs");require("react-hotkeys-hook");require("sonner");require("lucide-react");const d=({pageData:i,projectData:t})=>{const n={},u=q.useDeletePage(),s=i.uuid===t.homepage,o=()=>{u.mutate(i,{onSuccess:()=>{n({uuid:t.homepage,slug:"/home"})}})};return e.jsxRuntimeExports.jsxs(r.AlertDialog,{children:[e.jsxRuntimeExports.jsx(r.AlertDialogTrigger,{disabled:s,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 ${s?"cursor-not-allowed border-red-200 text-red-200":"cursor-pointer border-red-400 text-red-400"}`,children:e.jsxRuntimeExports.jsx(l.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:u.isPending,children:"Cancel"}),e.jsxRuntimeExports.jsx(r.Button,{variant:"destructive",onClick:o,disabled:u.isPending,children:"Yes, Delete"})]})]})]})};exports.default=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-NV737rRe.js";
|
|
2
|
-
import { D as s, E as l, F as n, H as d, I as a, K as c, B as u } from "./index-
|
|
3
|
-
import { j as x } from "./index-
|
|
2
|
+
import { D as s, E as l, F as n, H as d, I as a, K as c, B as u } from "./index-ORFlyrBx.js";
|
|
3
|
+
import { j as x } from "./index-aDqFUJ8v.js";
|
|
4
4
|
import { TrashIcon as h } from "@radix-ui/react-icons";
|
|
5
5
|
import "./MODIFIERS-MLfpKQY1.js";
|
|
6
6
|
import "react";
|
|
@@ -2,7 +2,7 @@ import { j as u } from "./jsx-runtime-NV737rRe.js";
|
|
|
2
2
|
import b from "@rjsf/core";
|
|
3
3
|
import x from "@rjsf/validator-ajv8";
|
|
4
4
|
import { includes as h, get as a, set as $, first as F } from "lodash";
|
|
5
|
-
import {
|
|
5
|
+
import { bg as P, bh as E, bi as O, bj as S } from "./index-ORFlyrBx.js";
|
|
6
6
|
const d = (i, l = "") => {
|
|
7
7
|
switch (i.type) {
|
|
8
8
|
case "singular":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const f=require("./jsx-runtime-WUGKV8jN.cjs"),y=require("@rjsf/core"),E=require("@rjsf/validator-ajv8"),i=require("lodash"),d=require("./index-
|
|
1
|
+
"use strict";const f=require("./jsx-runtime-WUGKV8jN.cjs"),y=require("@rjsf/core"),E=require("@rjsf/validator-ajv8"),i=require("lodash"),d=require("./index-zkc4SQCu.cjs"),h=(c,n="")=>{switch(c.type){case"singular":return c.uiSchema;case"model":const{properties:p}=c,u={};return Object.keys(p).forEach(r=>{const e=p[r];if(i.includes(["slot","styles"],e.type))return;const o=i.get(e,"i18n",!1)?`${r}-${n}`:r;u[o]=h(e,n)}),u;case"list":const{itemProperties:m}=c,l={items:{}};return Object.keys(m).forEach(r=>{const e=m[r];if(i.includes(["slot","styles"],e.type))return;const o=i.get(e,"i18n",!1)?`${r}-${n}`:r;l.items[o]=h(e,n)}),l;default:return{}}},x=(c,n="")=>{switch(c.type){case"singular":return c.schema;case"model":const{properties:p,title:u}=c,m={title:u,type:"object",properties:{}};return Object.keys(p).forEach(o=>{const t=p[o];if(i.includes(["slot","styles"],t.type))return;const s=i.get(t,"i18n",!1)?`${o}-${n}`:o;m.properties[s]=x(t,n)}),m;case"list":const{itemProperties:l,title:r}=c,e={title:r,type:"array",items:{type:"object",properties:{}}};return Object.keys(l).forEach(o=>{const t=l[o];if(i.includes(["slot","styles"],t.type))return;const s=i.get(t,"i18n",!1)?`${o}-${n}`:o;e.items.properties[s]=x(t,n),i.set(e.items,"title",i.get(t,"itemTitle",`${r} item`))}),e;default:return{}}},$=({title:c,properties:n={},formData:p,onChange:u,disabled:m=!1,activeLang:l=""})=>{const r={type:"object",properties:{}},e={};Object.keys(n).forEach(t=>{const s=n[t];if(i.includes(["slot","styles"],s.type))return;const a=i.get(s,"i18n",!1)?`${t}-${l}`:t;r.properties[a]=x(s,l),e[a]=h(s,l)});const o=({...t},s)=>{const a=s==null?void 0:s.replace("root.","").split("/").pop();if(!s||!a)return;const j=i.first(a.split("."));s&&j&&u({...t},j)};return f.jsxRuntimeExports.jsxs(f.jsxRuntimeExports.Fragment,{children:[c&&f.jsxRuntimeExports.jsx("h1",{className:"px-1 text-sm font-semibold underline",children:c}),f.jsxRuntimeExports.jsx("div",{className:"-mx-3",children:f.jsxRuntimeExports.jsx(y,{widgets:{richtext:d.RichTextEditorField,icon:d.IconPickerField,image:d.ImagePickerField},fields:{link:d.LinkField},idSeparator:".",autoComplete:"off",omitExtraData:!0,liveOmit:!0,liveValidate:!0,uiSchema:e,schema:r,formData:p,validator:E,onChange:o,disabled:m})})]})};exports.Form=$;
|