@chaibuilder/sdk 1.2.27 → 1.2.28
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-ksZjjn0k.js → AddBlocks-0sW6gkCO.js} +8 -7
- package/dist/AddBlocks-YJPdSqcY.cjs +1 -0
- package/dist/{BrandingOptions-T_kbQFQv.js → BrandingOptions--vgnQvD1.js} +11 -10
- package/dist/BrandingOptions-RDn_Nhcq.cjs +1 -0
- package/dist/CanvasArea-41QoxuLf.cjs +55 -0
- package/dist/CanvasArea-aii0PyU-.js +1179 -0
- package/dist/{Class-3k8xjeiM.js → Class-6Hz2KzYb.js} +1 -1
- package/dist/{Class-MmCxz2Ay.cjs → Class-Zc8hpE7f.cjs} +1 -1
- package/dist/{CurrentPage-0eeU1V_c.js → CurrentPage-06Iacwyp.js} +9 -8
- package/dist/CurrentPage-2W1pdAOG.cjs +1 -0
- package/dist/ListTree-DnA8gj-7.js +314 -0
- package/dist/ListTree-pdQ14QJC.cjs +1 -0
- package/dist/MODIFIERS-YPHRtwrM.cjs +1 -0
- package/dist/{MODIFIERS-WQdaNvb8.js → MODIFIERS-cBT31iqE.js} +7 -19
- package/dist/PagesPanel-PBFzPSNY.cjs +1 -0
- package/dist/{PagesPanel-rYN28QpN.js → PagesPanel-_1CDTUdE.js} +9 -8
- package/dist/ProjectPanel-755bbzEQ.cjs +1 -0
- package/dist/{ProjectPanel-ivFOhdcz.js → ProjectPanel-pUMeIiUW.js} +14 -13
- package/dist/STRINGS--j49GZJP.js +7 -0
- package/dist/STRINGS-gPz7CUOk.cjs +1 -0
- package/dist/Settings-G9Xtqr7n.cjs +1 -0
- package/dist/{Settings-XWmKzRl9.js → Settings-dnO-s6x0.js} +596 -559
- package/dist/SidePanels-Gq2LdVuY.cjs +1 -0
- package/dist/{SidePanels-ODktnGbC.js → SidePanels-VxSXXkt_.js} +62 -61
- package/dist/{Topbar-Yunooh00.js → Topbar-5zbOSGF6.js} +6 -5
- package/dist/Topbar-J2tb4SA1.cjs +1 -0
- package/dist/{UnsplashImages-QMl0bxix.js → UnsplashImages-4WAWgA4s.js} +20 -19
- package/dist/UnsplashImages-XwjKheek.cjs +1 -0
- package/dist/{UploadImages-Si-A26bc.js → UploadImages-PONIHtn6.js} +11 -10
- package/dist/UploadImages-y7LAQVrT.cjs +1 -0
- package/dist/{add-page-modal-U7AUUrI1.js → add-page-modal-4VrFvgEm.js} +25 -24
- package/dist/add-page-modal-jWcp0w-S.cjs +1 -0
- package/dist/confirm-alert-4OQlXZTJ.cjs +1 -0
- package/dist/{confirm-alert-kV5-c70T.js → confirm-alert-j7b88hsW.js} +6 -5
- package/dist/core.cjs +1 -1
- package/dist/core.js +47 -46
- package/dist/defaultTheme-7VqqhOcp.cjs +1 -0
- package/dist/{defaultTheme-gunU_Fe5.js → defaultTheme-D8B4-wHO.js} +1 -1
- package/dist/{delete-page-modal-UCBpdjLe.js → delete-page-modal--xHHdRAq.js} +9 -8
- package/dist/delete-page-modal-p6b0upz4.cjs +1 -0
- package/dist/email.cjs +1 -1
- package/dist/email.js +7 -6
- package/dist/{form-zmlTjM9j.js → form-_GJb9YcB.js} +1 -1
- package/dist/{form-Ap63cNec.cjs → form-jQj7E-hS.cjs} +1 -1
- package/dist/html-to-json-LJyJsnmZ.js +228 -0
- package/dist/html-to-json-vP1ESB_e.cjs +1 -0
- package/dist/{index-lOJfSheQ.js → index-0QJwevON.js} +2 -2
- package/dist/index-12HbDLon.cjs +1 -0
- package/dist/{index-f0AbmoYY.js → index-Eb5zyh2F.js} +4 -4
- package/dist/{index-Qk028f-N.cjs → index-KArv7pNz.cjs} +1 -1
- package/dist/{index-CFUoB97-.js → index-UHaqEdws.js} +993 -956
- package/dist/{index-l19JVVXI.cjs → index-mlMvwv2b.cjs} +2 -2
- package/dist/lib.cjs +3 -3
- package/dist/lib.js +17 -16
- package/dist/{page-viewer-jOwy--9A.js → page-viewer-00Xx4u8e.js} +10 -9
- package/dist/page-viewer-SZNm7b1n.cjs +1 -0
- package/dist/project-general-setting-C_pHNuZE.cjs +1 -0
- package/dist/{project-general-setting-3N8HZ2fe.js → project-general-setting-asDxlmhZ.js} +10 -9
- package/dist/{project-seo-setting-bSiNgO_1.js → project-seo-setting-DuAaDfDR.js} +7 -6
- package/dist/project-seo-setting-q2953ybQ.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.js +14 -13
- package/dist/{single-page-detail--AZlZ-pC.js → single-page-detail-UNxXvhl4.js} +17 -16
- package/dist/single-page-detail-oqj6zsLU.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +8 -7
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +134 -133
- package/dist/useCanvasSettings-MR0Glu1b.cjs +1 -0
- package/dist/useCanvasSettings-R6br4J9i.js +6 -0
- package/dist/web-blocks.cjs +33 -1
- package/dist/web-blocks.js +603 -429
- package/package.json +1 -1
- package/dist/AddBlocks-S-4jzdWv.cjs +0 -1
- package/dist/BrandingOptions-EMCT0Wa3.cjs +0 -1
- package/dist/CanvasArea-SDzbubar.cjs +0 -55
- package/dist/CanvasArea-rhOeubmu.js +0 -950
- package/dist/CurrentPage-aTjWjc3o.cjs +0 -1
- package/dist/ListTree-Muu4rAtp.js +0 -308
- package/dist/ListTree-SWsqdfcG.cjs +0 -1
- package/dist/MODIFIERS-9EwxLM8V.cjs +0 -1
- package/dist/PagesPanel-n3x-0ozR.cjs +0 -1
- package/dist/ProjectPanel-pBePMOta.cjs +0 -1
- package/dist/Settings-JRyJayf5.cjs +0 -1
- package/dist/SidePanels-BtUeo6M9.cjs +0 -1
- package/dist/Topbar-QMeD3hvq.cjs +0 -1
- package/dist/UnsplashImages-05JR8oIu.cjs +0 -1
- package/dist/UploadImages-OgSN1HVt.cjs +0 -1
- package/dist/add-page-modal-9pTKItY-.cjs +0 -1
- package/dist/confirm-alert-DhRc-Zcd.cjs +0 -1
- package/dist/defaultTheme-7Lk2zq60.cjs +0 -1
- package/dist/delete-page-modal-4s-6AIy4.cjs +0 -1
- package/dist/html-to-json-C_Eobs_d.cjs +0 -1
- package/dist/html-to-json-p__Fgqdg.js +0 -210
- package/dist/index-F4AQQ6qq.cjs +0 -1
- package/dist/page-viewer-YFrIG3L7.cjs +0 -1
- package/dist/project-general-setting-hK7I7FuN.cjs +0 -1
- package/dist/project-seo-setting-x-FK0pez.cjs +0 -1
- package/dist/single-page-detail-9abF2g2R.cjs +0 -1
package/dist/render.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-Z_BpKhVy.cjs"),E=require("react"),n=require("lodash-es"),C=require("tailwind-merge"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-Z_BpKhVy.cjs"),E=require("react"),n=require("lodash-es"),C=require("tailwind-merge"),c=require("./STRINGS-gPz7CUOk.cjs"),S=require("./defaultTheme-7VqqhOcp.cjs"),Y=require("@chaibuilder/runtime"),F=require("react-wrap-balancer"),B=require("./MODIFIERS-YPHRtwrM.cjs"),L=require("@react-email/render"),y=require("@react-email/components"),O=require("@bobthered/tailwindcss-palette-generator");require("./_commonjsHelpers-wDK0ZLPo.cjs");const A=t=>{const s={};return Object.keys(t).forEach(e=>{n.isString(t[e])&&t[e].startsWith(c.SLOT_KEY)&&(s[e]=t[e].replace(c.SLOT_KEY,"").split(","))}),s},q=n.memoize((t,s)=>{const e=t.replace(c.STYLES_KEY,"").split(","),r=C.twMerge(e[0],e[1]);return s?S.addPrefixToClasses(r,s).replace(c.STYLES_KEY,"").trim():r.replace(c.STYLES_KEY,"").trim()});function K(t,s){return n.get(t,`${s}_attrs`,{})}function w(t,s){const e={};return Object.keys(t).forEach(r=>{if(n.isString(t[r])&&t[r].startsWith(c.STYLES_KEY)){const i=q(t[r],s);e[r]={className:i,...K(t,r)}}}),e}function N(t,s){const e=n.get(t,"_bindings",{});return n.isEmpty(e)?{...t}:(n.each(e,(r,i)=>{n.isString(r)&&n.get(s,r,null)&&(t[i]=n.get(s,r,null))}),t)}function T(t){const{components:s,blocks:e,parent:r,classPrefix:i="",externalData:u={}}=t,m=e,l=a=>w(a,i),R=r?n.filter(e,{_parent:r}):n.filter(e,a=>n.isEmpty(a._parent));return o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:E.Children.toArray(R.map((a,x)=>{const f=A(a),d={};n.isEmpty(f)||Object.keys(f).forEach(j=>{d[j]=E.Children.toArray(f[j].map(_=>o.jsxRuntimeExports.jsx(T,{externalData:u,classPrefix:i,blocks:m,parent:_,components:s})))});const p=n.filter(m,{_parent:a._id});d.children=p.length>0?o.jsxRuntimeExports.jsx(T,{externalData:u,classPrefix:i,parent:a._id,blocks:m,components:s}):null;const g=n.get(s,a._type,null);if(g!==null){let j=a;const _=g;return E.createElement(_,n.omit({...j,index:x,...N(a,u),...l(j),...d},["_parent"]))}return o.jsxRuntimeExports.jsxs("noscript",{children:[a._type," not found"]})}))})}const $=t=>{const s={};return Object.keys(t).forEach(e=>{n.isString(t[e])&&t[e].startsWith(c.SLOT_KEY)&&(s[e]=t[e].replace(c.SLOT_KEY,"").split(","))}),s},I=n.memoize((t,s)=>{const e=t.replace(c.STYLES_KEY,"").split(","),r=C.twMerge(e[0],e[1]);return s===""?r.replace(c.STYLES_KEY,"").trim():S.addPrefixToClasses(r,s).replace(c.STYLES_KEY,"").trim()});function W(t,s){return n.get(t,`${s}_attrs`,{})}function M(t,s){const e={};return Object.keys(t).forEach(r=>{if(n.isString(t[r])&&t[r].startsWith(c.STYLES_KEY)){const i=I(t[r],s);e[r]={className:i,...W(t,r)}}}),e}function P(t,s){const e=n.get(t,"_bindings",{});return n.isEmpty(e)?{...t}:(n.each(e,(r,i)=>{n.isString(r)&&n.get(s,r,null)&&(t[i]=n.get(s,r,null))}),t)}function h({blocks:t,parent:s,classPrefix:e="",externalData:r={}}){const i=t,u=l=>M(l,e),m=s?n.filter(t,{_parent:s}):n.filter(t,l=>n.isEmpty(l._parent));return o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:E.Children.toArray(m.map((l,R)=>{const a=$(l),x={};n.isEmpty(a)||Object.keys(a).forEach(p=>{x[p]=E.Children.toArray(a[p].map(g=>o.jsxRuntimeExports.jsx(h,{externalData:r,classPrefix:e,blocks:i,parent:g})))});const f=n.filter(i,{_parent:l._id});x.children=f.length>0?o.jsxRuntimeExports.jsx(h,{externalData:r,classPrefix:e,parent:l._id,blocks:i}):null;const d=Y.getBlockComponent(l._type);if(d!==null){let p=l;const g=d.component;return p={...d.defaults,...l},E.createElement(g,n.omit({blockProps:{},inBuilder:!1,...p,index:R,...P(l,r),...u(p),...x},["_parent"]))}return o.jsxRuntimeExports.jsxs("noscript",{children:[l._type," not found"]})}))})}const U=({pageData:t,externalData:s={},before:e=null,after:r=null,classPrefix:i="c-"})=>{const u=n.get(t.project,"brandingOptions",B.BRANDING_OPTIONS_DEFAULTS);return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[e,o.jsxRuntimeExports.jsx("div",{className:i.replace("-","")+" "+S.getBrandingClasses(u,i)+" min-h-screen",children:o.jsxRuntimeExports.jsx(F.Provider,{children:o.jsxRuntimeExports.jsx(h,{externalData:s,blocks:t.page.blocks||[],classPrefix:i})})}),r]})},G=(t,s="c-")=>{const e=n.get(t,"primaryColor","#000"),r=n.get(t,"secondaryColor","#ccc"),i=n.get(t,"bodyFont","Inter"),u=n.get(t,"roundedCorners","0"),m=O.tailwindcssPaletteGenerator({colors:[e,r],names:["primary","secondary"]});return n.set(m,"primary.DEFAULT",e),n.set(m,"secondary.DEFAULT",r),{theme:{fontFamily:{body:[i,...S.defaultTheme.fontFamily.sans]},extend:{borderRadius:{global:`${u||"0"}px`},colors:m}},...s?{prefix:s}:{}}},z=t=>({fontFamily:t,fallbackFontFamily:"Verdana",webFont:{url:`https://fonts.googleapis.com/css2?family=${t}&display=swap`,format:"woff"},fontWeight:400,fontStyle:"normal"}),D=(t,s,e="html")=>{const r=G(s);return L.render(o.jsxRuntimeExports.jsx(y.Tailwind,{config:r,children:o.jsxRuntimeExports.jsxs(y.Html,{lang:"en",dir:"ltr",children:[o.jsxRuntimeExports.jsx(y.Head,{children:o.jsxRuntimeExports.jsx(y.Font,{...z(n.get(s,"bodyFont","Verdana"))})}),o.jsxRuntimeExports.jsx("body",{children:o.jsxRuntimeExports.jsx(h,{blocks:t})})]})}),e==="html"?{pretty:!0}:{plainText:!0})};exports.RenderChaiBlocks=h;exports.RenderChaiPage=U;exports.RenderUnregisteredComponents=T;exports.generateEmailTemplate=D;
|
package/dist/render.js
CHANGED
|
@@ -2,10 +2,11 @@ import { j as o } from "./jsx-runtime-WbnYoNE9.js";
|
|
|
2
2
|
import g from "react";
|
|
3
3
|
import { isString as j, memoize as O, get as a, isEmpty as y, each as $, filter as h, omit as w, set as S } from "lodash-es";
|
|
4
4
|
import { twMerge as N } from "tailwind-merge";
|
|
5
|
-
import { S as x, a as p
|
|
6
|
-
import { a as R, g as
|
|
7
|
-
import { getBlockComponent as
|
|
8
|
-
import { Provider as
|
|
5
|
+
import { S as x, a as p } from "./STRINGS--j49GZJP.js";
|
|
6
|
+
import { a as R, g as L, d as W } from "./defaultTheme-D8B4-wHO.js";
|
|
7
|
+
import { getBlockComponent as U } from "@chaibuilder/runtime";
|
|
8
|
+
import { Provider as I } from "react-wrap-balancer";
|
|
9
|
+
import { B as Y } from "./MODIFIERS-cBT31iqE.js";
|
|
9
10
|
import { render as G } from "@react-email/render";
|
|
10
11
|
import { Tailwind as H, Html as K, Head as V, Font as z } from "@react-email/components";
|
|
11
12
|
import { tailwindcssPaletteGenerator as D } from "@bobthered/tailwindcss-palette-generator";
|
|
@@ -158,7 +159,7 @@ function F({
|
|
|
158
159
|
blocks: s
|
|
159
160
|
}
|
|
160
161
|
) : null;
|
|
161
|
-
const f =
|
|
162
|
+
const f = U(l._type);
|
|
162
163
|
if (f !== null) {
|
|
163
164
|
let d = l;
|
|
164
165
|
const u = f.component;
|
|
@@ -185,21 +186,21 @@ function F({
|
|
|
185
186
|
})
|
|
186
187
|
) });
|
|
187
188
|
}
|
|
188
|
-
const
|
|
189
|
+
const gt = ({
|
|
189
190
|
pageData: t,
|
|
190
191
|
externalData: r = {},
|
|
191
192
|
before: n = null,
|
|
192
193
|
after: e = null,
|
|
193
194
|
classPrefix: s = "c-"
|
|
194
195
|
}) => {
|
|
195
|
-
const c = a(t.project, "brandingOptions",
|
|
196
|
+
const c = a(t.project, "brandingOptions", Y);
|
|
196
197
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
197
198
|
n,
|
|
198
199
|
/* @__PURE__ */ o.jsx(
|
|
199
200
|
"div",
|
|
200
201
|
{
|
|
201
|
-
className: s.replace("-", "") + " " +
|
|
202
|
-
children: /* @__PURE__ */ o.jsx(
|
|
202
|
+
className: s.replace("-", "") + " " + L(c, s) + " min-h-screen",
|
|
203
|
+
children: /* @__PURE__ */ o.jsx(I, { children: /* @__PURE__ */ o.jsx(F, { externalData: r, blocks: t.page.blocks || [], classPrefix: s }) })
|
|
203
204
|
}
|
|
204
205
|
),
|
|
205
206
|
e
|
|
@@ -212,7 +213,7 @@ const ut = ({
|
|
|
212
213
|
return S(m, "primary.DEFAULT", n), S(m, "secondary.DEFAULT", e), {
|
|
213
214
|
theme: {
|
|
214
215
|
fontFamily: {
|
|
215
|
-
body: [s, ...
|
|
216
|
+
body: [s, ...W.fontFamily.sans]
|
|
216
217
|
},
|
|
217
218
|
extend: {
|
|
218
219
|
borderRadius: {
|
|
@@ -232,7 +233,7 @@ const ut = ({
|
|
|
232
233
|
},
|
|
233
234
|
fontWeight: 400,
|
|
234
235
|
fontStyle: "normal"
|
|
235
|
-
}),
|
|
236
|
+
}), ht = (t, r, n = "html") => {
|
|
236
237
|
const e = tt(r);
|
|
237
238
|
return G(
|
|
238
239
|
/* @__PURE__ */ o.jsx(H, { config: e, children: /* @__PURE__ */ o.jsxs(K, { lang: "en", dir: "ltr", children: [
|
|
@@ -244,7 +245,7 @@ const ut = ({
|
|
|
244
245
|
};
|
|
245
246
|
export {
|
|
246
247
|
F as RenderChaiBlocks,
|
|
247
|
-
|
|
248
|
+
gt as RenderChaiPage,
|
|
248
249
|
T as RenderUnregisteredComponents,
|
|
249
|
-
|
|
250
|
+
ht as generateEmailTemplate
|
|
250
251
|
};
|
|
@@ -2,20 +2,21 @@ import { j as t } from "./jsx-runtime-WbnYoNE9.js";
|
|
|
2
2
|
import I, { useState as j, useEffect as z } from "react";
|
|
3
3
|
import { isString as L, isEmpty as x, isEqual as C, omit as y, kebabCase as B } from "lodash-es";
|
|
4
4
|
import { HomeIcon as G } from "@radix-ui/react-icons";
|
|
5
|
-
import {
|
|
5
|
+
import { bh as Y, B as q } from "./index-UHaqEdws.js";
|
|
6
6
|
import { u as g, b as Z, g as $, o as F, r as Q } from "./controls-OfJWSEqC.js";
|
|
7
7
|
import { toast as U } from "sonner";
|
|
8
|
-
import { F as
|
|
9
|
-
import { f as V, a as X, g as _, b as K } from "./index-
|
|
8
|
+
import { F as h } from "./form-_GJb9YcB.js";
|
|
9
|
+
import { f as V, a as X, g as _, b as K } from "./index-Eb5zyh2F.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "./Functions-7jnEwJyw.js";
|
|
12
12
|
import "clsx";
|
|
13
13
|
import "tailwind-merge";
|
|
14
14
|
import "@chaibuilder/runtime";
|
|
15
15
|
import "jotai";
|
|
16
|
-
import "./
|
|
16
|
+
import "./STRINGS--j49GZJP.js";
|
|
17
17
|
import "@react-hookz/web";
|
|
18
|
-
import "./
|
|
18
|
+
import "./MODIFIERS-cBT31iqE.js";
|
|
19
|
+
import "./Class-6Hz2KzYb.js";
|
|
19
20
|
import "react-i18next";
|
|
20
21
|
import "@radix-ui/react-toggle";
|
|
21
22
|
import "class-variance-authority";
|
|
@@ -42,16 +43,16 @@ import "react-dom";
|
|
|
42
43
|
import "react-quill";
|
|
43
44
|
import "@rjsf/core";
|
|
44
45
|
import "@rjsf/validator-ajv8";
|
|
45
|
-
import "./index-
|
|
46
|
+
import "./index-0QJwevON.js";
|
|
46
47
|
import "i18next";
|
|
47
48
|
import "@floating-ui/react-dom";
|
|
48
49
|
import "flagged";
|
|
49
50
|
import "react-hotkeys-hook";
|
|
50
|
-
import "./html-to-json-
|
|
51
|
+
import "./html-to-json-LJyJsnmZ.js";
|
|
51
52
|
import "himalaya";
|
|
52
53
|
import "lucide-react";
|
|
53
54
|
import "./index-YpnaudSM.js";
|
|
54
|
-
const O = I.lazy(() => import("./delete-page-modal
|
|
55
|
+
const O = I.lazy(() => import("./delete-page-modal--xHHdRAq.js")), J = I.lazy(() => import("./confirm-alert-j7b88hsW.js")), P = (r) => {
|
|
55
56
|
if (!L(r) || !(r.includes("/[") && r.includes("]")))
|
|
56
57
|
return !1;
|
|
57
58
|
const s = /^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/, u = /^[a-zA-Z0-9_-]+$/;
|
|
@@ -65,7 +66,7 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
65
66
|
} : r, W = (r, m) => {
|
|
66
67
|
const s = !C(y(r, ["seoData"]), y(m, ["seoData"])), u = !C(f(m).seoData, f(r).seoData);
|
|
67
68
|
return s || u;
|
|
68
|
-
},
|
|
69
|
+
}, ke = ({ open: r, setOpen: m, pageData: s }) => {
|
|
69
70
|
const u = V(), { data: e } = X(), n = _(), c = K("Homepage updated successfully."), [i, T] = j(f(s)), [d, v] = j({
|
|
70
71
|
isHomePage: (e == null ? void 0 : e.homepage) === s.uuid
|
|
71
72
|
}), N = W(i, s);
|
|
@@ -75,7 +76,7 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
75
76
|
}, [e, s, i, d, m]);
|
|
76
77
|
const S = () => {
|
|
77
78
|
if (N) {
|
|
78
|
-
if (s.type === "DYNAMIC" && !
|
|
79
|
+
if (s.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || "")) {
|
|
79
80
|
r === "ALERT" && m("PENDING");
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
@@ -159,7 +160,7 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
159
160
|
/* @__PURE__ */ t.jsx("div", { className: "rounded-md bg-background/30 px-2.5 py-1", children: /* @__PURE__ */ t.jsx("h1", { className: "px-1 font-semibold", children: "Page Details" }) }),
|
|
160
161
|
/* @__PURE__ */ t.jsx("div", { className: "px-2.5 pt-2", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
161
162
|
/* @__PURE__ */ t.jsx(
|
|
162
|
-
|
|
163
|
+
h,
|
|
163
164
|
{
|
|
164
165
|
title: "Basic Details",
|
|
165
166
|
formData: i,
|
|
@@ -170,7 +171,7 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
170
171
|
),
|
|
171
172
|
/* @__PURE__ */ t.jsx("div", { className: "h-2 w-full" }),
|
|
172
173
|
/* @__PURE__ */ t.jsx(
|
|
173
|
-
|
|
174
|
+
h,
|
|
174
175
|
{
|
|
175
176
|
title: "SEO Details",
|
|
176
177
|
formData: i,
|
|
@@ -180,7 +181,7 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
180
181
|
}
|
|
181
182
|
),
|
|
182
183
|
(e == null ? void 0 : e.homepage) !== s.uuid && s.type === "STATIC" ? /* @__PURE__ */ t.jsx(
|
|
183
|
-
|
|
184
|
+
h,
|
|
184
185
|
{
|
|
185
186
|
formData: d,
|
|
186
187
|
properties: R,
|
|
@@ -192,7 +193,7 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
192
193
|
" This is homepage",
|
|
193
194
|
" "
|
|
194
195
|
] }),
|
|
195
|
-
i.type === "DYNAMIC" && !
|
|
196
|
+
i.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || "") && /* @__PURE__ */ t.jsxs("small", { className: "px-1 text-red-400", children: [
|
|
196
197
|
"Add dynamic ID in page slug Eg: ",
|
|
197
198
|
/* @__PURE__ */ t.jsx("i", { className: "underline", children: "some-url/[some-id]" })
|
|
198
199
|
] }),
|
|
@@ -203,7 +204,7 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
203
204
|
className: "w-full",
|
|
204
205
|
type: "submit",
|
|
205
206
|
onClick: S,
|
|
206
|
-
disabled: (e == null ? void 0 : e.homepage) !== s.uuid && d.isHomePage ? !1 : x(i.name) || x(i.slug) || !N || n.isPending || c.isPending || i.type === "DYNAMIC" && !
|
|
207
|
+
disabled: (e == null ? void 0 : e.homepage) !== s.uuid && d.isHomePage ? !1 : x(i.name) || x(i.slug) || !N || n.isPending || c.isPending || i.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || ""),
|
|
207
208
|
children: "Save"
|
|
208
209
|
}
|
|
209
210
|
),
|
|
@@ -213,5 +214,5 @@ const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(()
|
|
|
213
214
|
] });
|
|
214
215
|
};
|
|
215
216
|
export {
|
|
216
|
-
|
|
217
|
+
ke as default
|
|
217
218
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-Z_BpKhVy.cjs"),f=require("react"),c=require("lodash-es"),H=require("@radix-ui/react-icons"),y=require("./index-12HbDLon.cjs"),d=require("./controls-KK2oLIa8.cjs"),w=require("sonner"),p=require("./form-jQj7E-hS.cjs"),P=require("./index-KArv7pNz.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("@react-hookz/web");require("./MODIFIERS-YPHRtwrM.cjs");require("./Class-Zc8hpE7f.cjs");require("react-i18next");require("@radix-ui/react-toggle");require("class-variance-authority");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("@rjsf/core");require("@rjsf/validator-ajv8");require("./index-mlMvwv2b.cjs");require("i18next");require("@floating-ui/react-dom");require("flagged");require("react-hotkeys-hook");require("./html-to-json-vP1ESB_e.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");const z=f.lazy(()=>Promise.resolve().then(()=>require("./delete-page-modal-p6b0upz4.cjs"))),L=f.lazy(()=>Promise.resolve().then(()=>require("./confirm-alert-4OQlXZTJ.cjs"))),E=n=>{if(!c.isString(n)||!(n.includes("/[")&&n.includes("]")))return!1;const s=/^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/,q=/^[a-zA-Z0-9_-]+$/;let e=!0;return n.split("/").forEach(u=>{e&&(u.includes("[[")&&u.includes("]]")?e=/^\[\[\.{3}[a-zA-Z0-9_-]+\]\]$/.test(u):u.includes("[")&&u.includes("]")?e=s.test(u):e=q.test(u))}),e},h=n=>n&&c.isEmpty(n.seoData)?{...n,seoData:{title:"",description:"",image:""}}:n,G=(n,o)=>{const s=!c.isEqual(c.omit(n,["seoData"]),c.omit(o,["seoData"])),q=!c.isEqual(h(o).seoData,h(n).seoData);return s||q},Y=({open:n,setOpen:o,pageData:s})=>{const q=P.useQueryClient(),{data:e}=P.useProject(),u=P.useUpdatePage(),m=P.useUpdateProject("Homepage updated successfully."),[i,b]=f.useState(h(s)),[a,A]=f.useState({isHomePage:(e==null?void 0:e.homepage)===s.uuid}),j=G(i,s);f.useEffect(()=>{const l=!c.isEqual(h(s),i),t=(e==null?void 0:e.homepage)!==s.uuid&&a.isHomePage;o(l||t?"PENDING":"OPEN")},[e,s,i,a,o]);const C=()=>{if(j){if(s.type==="DYNAMIC"&&!E((i==null?void 0:i.slug)||"")){n==="ALERT"&&o("PENDING");return}u.mutate(i,{onSuccess:()=>{q.invalidateQueries({refetchType:"active",queryKey:["pages",e==null?void 0:e.uuid]}),o("CLOSE"),w.toast.success("Page updated successfully.")}})}a.isHomePage&&(e==null?void 0:e.homepage)!==s.uuid&&m.mutate({...e,homepage:s==null?void 0:s.uuid},{onSuccess:()=>o("CLOSE")})},R=({formData:l},t)=>{b(g=>{var S,N;if(!t)return g;const x={[t]:l[t]};return t==="name"?x.slug=c.kebabCase((S=l[t])==null?void 0:S.replace(/\d/g,"")):t==="slug"?x.slug=(N=l[t])==null?void 0:N.replace(/\d/g,"").replace(/\s+/g,"").replace("--","-").replace("__","_"):t==="seoData"&&(x.seoData={title:l[t].title||"",description:l[t].description||"",image:l[t].image||""}),{...g,...x}})},I=({formData:l},t)=>{A(g=>{const x={[t]:l[t]};return{...g,...x}})},v={name:d.u({title:"Page Name",default:i.name}),slug:d.u({title:"Page Slug",default:i.slug})},T={seoData:d.b({title:"",description:"",default:{title:"",description:"",image:""},properties:{title:d.u({title:"Meta Title",default:i.name}),description:d.g({title:"Meta Description",default:i.slug}),image:d.o({title:"Social Media Image",default:""})}})},M={isHomePage:d.r({title:"Set as homepage",default:a.isHomePage})};return r.jsxRuntimeExports.jsxs(y.ScrollArea,{className:"flex h-full select-none flex-col",children:[r.jsxRuntimeExports.jsx(L,{open:n==="ALERT",title:"Do yo want to save changes?",onCancel:()=>o("CLOSE"),onConfirm:C,disabled:m.isPending||u.isPending}),r.jsxRuntimeExports.jsx("div",{className:"rounded-md bg-background/30 px-2.5 py-1",children:r.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:"Page Details"})}),r.jsxRuntimeExports.jsx("div",{className:"px-2.5 pt-2",children:r.jsxRuntimeExports.jsxs("div",{className:"flex flex-col space-y-2",children:[r.jsxRuntimeExports.jsx(p.Form,{title:"Basic Details",formData:i,properties:v,onChange:R,disabled:u.isPending||m.isPending}),r.jsxRuntimeExports.jsx("div",{className:"h-2 w-full"}),r.jsxRuntimeExports.jsx(p.Form,{title:"SEO Details",formData:i,properties:T,onChange:R,disabled:u.isPending||m.isPending}),(e==null?void 0:e.homepage)!==s.uuid&&s.type==="STATIC"?r.jsxRuntimeExports.jsx(p.Form,{formData:a,properties:M,onChange:I,disabled:u.isPending||m.isPending}):s.type==="STATIC"&&r.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-x-1 px-1 pt-2 text-xs font-medium text-gray-500",children:[r.jsxRuntimeExports.jsx(H.HomeIcon,{})," This is homepage"," "]}),i.type==="DYNAMIC"&&!E((i==null?void 0:i.slug)||"")&&r.jsxRuntimeExports.jsxs("small",{className:"px-1 text-red-400",children:["Add dynamic ID in page slug Eg: ",r.jsxRuntimeExports.jsx("i",{className:"underline",children:"some-url/[some-id]"})]}),r.jsxRuntimeExports.jsxs("div",{className:"my-2 flex w-full items-center justify-between gap-x-2 px-1",children:[r.jsxRuntimeExports.jsx(y.Button,{className:"w-full",type:"submit",onClick:C,disabled:(e==null?void 0:e.homepage)!==s.uuid&&a.isHomePage?!1:c.isEmpty(i.name)||c.isEmpty(i.slug)||!j||u.isPending||m.isPending||i.type==="DYNAMIC"&&!E((i==null?void 0:i.slug)||""),children:"Save"}),r.jsxRuntimeExports.jsx(z,{pageData:s,projectData:e})]})]})})]})};exports.default=Y;
|
package/dist/studio.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./jsx-runtime-Z_BpKhVy.cjs");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./jsx-runtime-Z_BpKhVy.cjs");const e=require("./index-KArv7pNz.cjs");require("react");require("sonner");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("./index-mlMvwv2b.cjs");require("i18next");require("react-i18next");require("./index-12HbDLon.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("@react-hookz/web");require("./MODIFIERS-YPHRtwrM.cjs");require("./Class-Zc8hpE7f.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");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("@floating-ui/react-dom");require("flagged");require("react-hotkeys-hook");require("./html-to-json-vP1ESB_e.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");exports.ChaiBuilderStudio=e.ChaiBuilderStudio;
|
package/dist/studio.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as Z } from "./index-Eb5zyh2F.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "sonner";
|
|
5
5
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-0QJwevON.js";
|
|
7
7
|
import "i18next";
|
|
8
8
|
import "react-i18next";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-UHaqEdws.js";
|
|
10
10
|
import "lodash-es";
|
|
11
11
|
import "./Functions-7jnEwJyw.js";
|
|
12
12
|
import "clsx";
|
|
13
13
|
import "tailwind-merge";
|
|
14
14
|
import "@chaibuilder/runtime";
|
|
15
15
|
import "jotai";
|
|
16
|
-
import "./
|
|
16
|
+
import "./STRINGS--j49GZJP.js";
|
|
17
17
|
import "@react-hookz/web";
|
|
18
|
-
import "./
|
|
18
|
+
import "./MODIFIERS-cBT31iqE.js";
|
|
19
|
+
import "./Class-6Hz2KzYb.js";
|
|
19
20
|
import "@radix-ui/react-toggle";
|
|
20
21
|
import "class-variance-authority";
|
|
21
22
|
import "@radix-ui/react-switch";
|
|
@@ -43,10 +44,10 @@ import "react-quill";
|
|
|
43
44
|
import "@floating-ui/react-dom";
|
|
44
45
|
import "flagged";
|
|
45
46
|
import "react-hotkeys-hook";
|
|
46
|
-
import "./html-to-json-
|
|
47
|
+
import "./html-to-json-LJyJsnmZ.js";
|
|
47
48
|
import "himalaya";
|
|
48
49
|
import "lucide-react";
|
|
49
50
|
import "./index-YpnaudSM.js";
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
Z as ChaiBuilderStudio
|
|
52
53
|
};
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-12HbDLon.cjs");require("react");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("@react-hookz/web");require("./MODIFIERS-YPHRtwrM.cjs");require("./Class-Zc8hpE7f.cjs");require("react-i18next");require("./jsx-runtime-Z_BpKhVy.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");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");exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.Alert=e.Alert;exports.AlertDescription=e.AlertDescription;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.AlertTitle=e.AlertTitle;exports.Badge=e.Badge;exports.Button=e.Button;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardDescription=e.CardDescription;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTitle=e.CardTitle;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.ContextMenu=e.ContextMenu;exports.ContextMenuCheckboxItem=e.ContextMenuCheckboxItem;exports.ContextMenuContent=e.ContextMenuContent;exports.ContextMenuGroup=e.ContextMenuGroup;exports.ContextMenuItem=e.ContextMenuItem;exports.ContextMenuLabel=e.ContextMenuLabel;exports.ContextMenuPortal=e.ContextMenuPortal;exports.ContextMenuRadioGroup=e.ContextMenuRadioGroup;exports.ContextMenuRadioItem=e.ContextMenuRadioItem;exports.ContextMenuSeparator=e.ContextMenuSeparator;exports.ContextMenuShortcut=e.ContextMenuShortcut;exports.ContextMenuSub=e.ContextMenuSub;exports.ContextMenuSubContent=e.ContextMenuSubContent;exports.ContextMenuSubTrigger=e.ContextMenuSubTrigger;exports.ContextMenuTrigger=e.ContextMenuTrigger;exports.Dialog=e.Dialog;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.IconPickerField=e.IconPickerField;exports.ImagePickerField=e.ImagePickerField;exports.Input=e.Input;exports.Label=e.Label;exports.LinkField=e.LinkField;exports.Menubar=e.Menubar;exports.MenubarCheckboxItem=e.MenubarCheckboxItem;exports.MenubarContent=e.MenubarContent;exports.MenubarGroup=e.MenubarGroup;exports.MenubarItem=e.MenubarItem;exports.MenubarLabel=e.MenubarLabel;exports.MenubarMenu=e.MenubarMenu;exports.MenubarPortal=e.MenubarPortal;exports.MenubarRadioGroup=e.MenubarRadioGroup;exports.MenubarRadioItem=e.MenubarRadioItem;exports.MenubarSeparator=e.MenubarSeparator;exports.MenubarShortcut=e.MenubarShortcut;exports.MenubarSub=e.MenubarSub;exports.MenubarSubContent=e.MenubarSubContent;exports.MenubarSubTrigger=e.MenubarSubTrigger;exports.MenubarTrigger=e.MenubarTrigger;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.RTEField=e.RichTextEditorField;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Separator=e.Separator;exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toaster=e.Toaster;exports.Toggle=e.Toggle;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipPortal=e.TooltipPortal;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.reducer=e.reducer;exports.toast=e.toast;exports.toggleVariants=e.toggleVariants;exports.useToast=e.useToast;
|
package/dist/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bb as y, be as z, bc as J, bd as K, bu as W, bH as X, A as Y, ai as Z, g as _, b as $, e as N, f as O, c as Q, d as U, a as aa, bv as ea, as as oa, B as ta, bo as ra, br as sa, bq as na, bt as ia, bp as ba, bJ as pa, aZ as ua, cg as ma, b0 as la, b1 as ca, a_ as da, b2 as ga, a$ as Ca, ci as Ma, ch as Sa, bz as Da, cj as Ta, by as xa, co as Aa, bx as ha, cl as Ia, cp as wa, ct as Pa, ck as ka, cm as Fa, cn as Ga, cq as La, cr as va, cs as Ha, bA as Ra, ad as fa, ae as Ba, ah as Va, b3 as Ea, af as ja, ag as qa, ao as ya, aG as za, aL as Ja, aI as Ka, bi as Wa, bj as Xa, aJ as Ya, c9 as Za, cd as _a, c8 as $a, aK as Na, bk as Oa, ca as Qa, cb as Ua, cc as ae, aH as ee, aD as oe, aF as te, aE as re, b7 as se, b8 as ne, bf as ie, aB as be, b9 as pe, bL as ue, bS as me, bO as le, bY as ce, bP as de, bR as ge, bM as Ce, bV as Me, bT as Se, bU as De, bQ as Te, b_ as xe, bZ as Ae, bW as he, bX as Ie, bN as we, aW as Pe, aY as ke, aX as Fe, b6 as Ge, bh as Le, bK as ve, aj as He, am as Re, ay as fe, an as Be, az as Ve, b$ as Ee, ak as je, al as qe, aA as ye, c0 as ze, c2 as Je, c3 as Ke, c7 as We, c5 as Xe, c4 as Ye, c6 as Ze, c1 as _e, S as $e, aC as Ne, au as Oe, ax as Qe, av as Ue, aw as ao, bs as eo, I as oo, bE as to, ap as ro, ar as so, bg as no, T as io, aq as bo, bI as po, bG as uo, ce as mo, cf as lo, bF as co, bm as go } from "./index-UHaqEdws.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "./Functions-7jnEwJyw.js";
|
|
@@ -6,10 +6,11 @@ import "clsx";
|
|
|
6
6
|
import "tailwind-merge";
|
|
7
7
|
import "@chaibuilder/runtime";
|
|
8
8
|
import "jotai";
|
|
9
|
-
import "./
|
|
9
|
+
import "./STRINGS--j49GZJP.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "@react-hookz/web";
|
|
12
|
-
import "./
|
|
12
|
+
import "./MODIFIERS-cBT31iqE.js";
|
|
13
|
+
import "./Class-6Hz2KzYb.js";
|
|
13
14
|
import "react-i18next";
|
|
14
15
|
import "./jsx-runtime-WbnYoNE9.js";
|
|
15
16
|
import "@radix-ui/react-toggle";
|
|
@@ -37,141 +38,141 @@ import "react-icons-picker";
|
|
|
37
38
|
import "react-dom";
|
|
38
39
|
import "react-quill";
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
41
|
+
y as Accordion,
|
|
42
|
+
z as AccordionContent,
|
|
43
|
+
J as AccordionItem,
|
|
44
|
+
K as AccordionTrigger,
|
|
45
|
+
W as Alert,
|
|
46
|
+
X as AlertDescription,
|
|
47
|
+
Y as AlertDialog,
|
|
48
|
+
Z as AlertDialogAction,
|
|
49
|
+
_ as AlertDialogCancel,
|
|
50
|
+
$ as AlertDialogContent,
|
|
51
|
+
N as AlertDialogDescription,
|
|
52
|
+
O as AlertDialogFooter,
|
|
53
|
+
Q as AlertDialogHeader,
|
|
54
|
+
U as AlertDialogTitle,
|
|
55
|
+
aa as AlertDialogTrigger,
|
|
56
|
+
ea as AlertTitle,
|
|
57
|
+
oa as Badge,
|
|
58
|
+
ta as Button,
|
|
59
|
+
ra as Card,
|
|
60
|
+
sa as CardContent,
|
|
61
|
+
na as CardDescription,
|
|
62
|
+
ia as CardFooter,
|
|
63
|
+
ba as CardHeader,
|
|
64
|
+
pa as CardTitle,
|
|
65
|
+
ua as Command,
|
|
66
|
+
ma as CommandDialog,
|
|
66
67
|
la as CommandEmpty,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
68
|
+
ca as CommandGroup,
|
|
69
|
+
da as CommandInput,
|
|
70
|
+
ga as CommandItem,
|
|
71
|
+
Ca as CommandList,
|
|
72
|
+
Ma as CommandSeparator,
|
|
73
|
+
Sa as CommandShortcut,
|
|
74
|
+
Da as ContextMenu,
|
|
75
|
+
Ta as ContextMenuCheckboxItem,
|
|
76
|
+
xa as ContextMenuContent,
|
|
77
|
+
Aa as ContextMenuGroup,
|
|
78
|
+
ha as ContextMenuItem,
|
|
79
|
+
Ia as ContextMenuLabel,
|
|
80
|
+
wa as ContextMenuPortal,
|
|
81
|
+
Pa as ContextMenuRadioGroup,
|
|
82
|
+
ka as ContextMenuRadioItem,
|
|
83
|
+
Fa as ContextMenuSeparator,
|
|
84
|
+
Ga as ContextMenuShortcut,
|
|
85
|
+
La as ContextMenuSub,
|
|
86
|
+
va as ContextMenuSubContent,
|
|
87
|
+
Ha as ContextMenuSubTrigger,
|
|
88
|
+
Ra as ContextMenuTrigger,
|
|
89
|
+
fa as Dialog,
|
|
89
90
|
Ba as DialogContent,
|
|
90
91
|
Va as DialogDescription,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
92
|
+
Ea as DialogFooter,
|
|
93
|
+
ja as DialogHeader,
|
|
94
|
+
qa as DialogTitle,
|
|
95
|
+
ya as DialogTrigger,
|
|
96
|
+
za as DropdownMenu,
|
|
97
|
+
Ja as DropdownMenuCheckboxItem,
|
|
98
|
+
Ka as DropdownMenuContent,
|
|
99
|
+
Wa as DropdownMenuGroup,
|
|
100
|
+
Xa as DropdownMenuItem,
|
|
101
|
+
Ya as DropdownMenuLabel,
|
|
102
|
+
Za as DropdownMenuPortal,
|
|
103
|
+
_a as DropdownMenuRadioGroup,
|
|
104
|
+
$a as DropdownMenuRadioItem,
|
|
105
|
+
Na as DropdownMenuSeparator,
|
|
106
|
+
Oa as DropdownMenuShortcut,
|
|
107
|
+
Qa as DropdownMenuSub,
|
|
108
|
+
Ua as DropdownMenuSubContent,
|
|
109
|
+
ae as DropdownMenuSubTrigger,
|
|
110
|
+
ee as DropdownMenuTrigger,
|
|
111
|
+
oe as HoverCard,
|
|
112
|
+
te as HoverCardContent,
|
|
113
|
+
re as HoverCardTrigger,
|
|
114
|
+
se as IconPickerField,
|
|
115
|
+
ne as ImagePickerField,
|
|
116
|
+
ie as Input,
|
|
117
|
+
be as Label,
|
|
118
|
+
pe as LinkField,
|
|
119
|
+
ue as Menubar,
|
|
120
|
+
me as MenubarCheckboxItem,
|
|
120
121
|
le as MenubarContent,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
122
|
+
ce as MenubarGroup,
|
|
123
|
+
de as MenubarItem,
|
|
124
|
+
ge as MenubarLabel,
|
|
125
|
+
Ce as MenubarMenu,
|
|
126
|
+
Me as MenubarPortal,
|
|
127
|
+
Se as MenubarRadioGroup,
|
|
128
|
+
De as MenubarRadioItem,
|
|
129
|
+
Te as MenubarSeparator,
|
|
130
|
+
xe as MenubarShortcut,
|
|
131
|
+
Ae as MenubarSub,
|
|
132
|
+
he as MenubarSubContent,
|
|
133
|
+
Ie as MenubarSubTrigger,
|
|
134
|
+
we as MenubarTrigger,
|
|
135
|
+
Pe as Popover,
|
|
136
|
+
ke as PopoverContent,
|
|
137
|
+
Fe as PopoverTrigger,
|
|
138
|
+
Ge as RTEField,
|
|
139
|
+
Le as ScrollArea,
|
|
140
|
+
ve as ScrollBar,
|
|
141
|
+
He as Select,
|
|
142
|
+
Re as SelectContent,
|
|
143
|
+
fe as SelectGroup,
|
|
143
144
|
Be as SelectItem,
|
|
144
145
|
Ve as SelectLabel,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
146
|
+
Ee as SelectSeparator,
|
|
147
|
+
je as SelectTrigger,
|
|
148
|
+
qe as SelectValue,
|
|
149
|
+
ye as Separator,
|
|
150
|
+
ze as Sheet,
|
|
151
|
+
Je as SheetClose,
|
|
152
|
+
Ke as SheetContent,
|
|
153
|
+
We as SheetDescription,
|
|
154
|
+
Xe as SheetFooter,
|
|
155
|
+
Ye as SheetHeader,
|
|
156
|
+
Ze as SheetTitle,
|
|
157
|
+
_e as SheetTrigger,
|
|
158
|
+
$e as Skeleton,
|
|
159
|
+
Ne as Switch,
|
|
160
|
+
Oe as Tabs,
|
|
161
|
+
Qe as TabsContent,
|
|
162
|
+
Ue as TabsList,
|
|
163
|
+
ao as TabsTrigger,
|
|
164
|
+
eo as Textarea,
|
|
165
|
+
oo as Toaster,
|
|
166
|
+
to as Toggle,
|
|
167
|
+
ro as Tooltip,
|
|
168
|
+
so as TooltipContent,
|
|
169
|
+
no as TooltipPortal,
|
|
170
|
+
io as TooltipProvider,
|
|
171
|
+
bo as TooltipTrigger,
|
|
172
|
+
po as badgeVariants,
|
|
173
|
+
uo as buttonVariants,
|
|
174
|
+
mo as reducer,
|
|
174
175
|
lo as toast,
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
co as toggleVariants,
|
|
177
|
+
go as useToast
|
|
177
178
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("jotai"),s=require("./index-12HbDLon.cjs"),e=()=>t.useAtom(s.canvasSettingsAtom);exports.useCanvasSettings=e;
|