@chaibuilder/sdk 1.2.26 → 1.2.27
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-S-4jzdWv.cjs +1 -0
- package/dist/{AddBlocks-l1JENNvq.js → AddBlocks-ksZjjn0k.js} +6 -7
- package/dist/BrandingOptions-EMCT0Wa3.cjs +1 -0
- package/dist/{BrandingOptions-udtH5yJs.js → BrandingOptions-T_kbQFQv.js} +5 -6
- package/dist/{CanvasArea-zme1r3Zi.cjs → CanvasArea-SDzbubar.cjs} +2 -2
- package/dist/{CanvasArea-h0W-Tyha.js → CanvasArea-rhOeubmu.js} +7 -8
- package/dist/{Class-lGzsNBOK.js → Class-3k8xjeiM.js} +1 -1
- package/dist/{Class-PoYusiA5.cjs → Class-MmCxz2Ay.cjs} +1 -1
- package/dist/{CurrentPage-tJUjXWdb.js → CurrentPage-0eeU1V_c.js} +8 -9
- package/dist/CurrentPage-aTjWjc3o.cjs +1 -0
- package/dist/{ListTree-cZ-Ihlt3.js → ListTree-Muu4rAtp.js} +8 -9
- package/dist/ListTree-SWsqdfcG.cjs +1 -0
- package/dist/MODIFIERS-9EwxLM8V.cjs +1 -0
- package/dist/{MODIFIERS-dytZ-osO.js → MODIFIERS-WQdaNvb8.js} +8 -4
- package/dist/PagesPanel-n3x-0ozR.cjs +1 -0
- package/dist/{PagesPanel-6rrLXEO-.js → PagesPanel-rYN28QpN.js} +8 -9
- package/dist/{ProjectPanel-tz3bjdXy.js → ProjectPanel-ivFOhdcz.js} +13 -14
- package/dist/ProjectPanel-pBePMOta.cjs +1 -0
- package/dist/Settings-JRyJayf5.cjs +1 -0
- package/dist/{Settings-4s2LUVmC.js → Settings-XWmKzRl9.js} +6 -7
- package/dist/SidePanels-BtUeo6M9.cjs +1 -0
- package/dist/{SidePanels-bugFfInz.js → SidePanels-ODktnGbC.js} +16 -17
- package/dist/Topbar-QMeD3hvq.cjs +1 -0
- package/dist/{Topbar-pWzBEOed.js → Topbar-Yunooh00.js} +5 -6
- package/dist/UnsplashImages-05JR8oIu.cjs +1 -0
- package/dist/{UnsplashImages-qvwFbV-E.js → UnsplashImages-QMl0bxix.js} +15 -16
- package/dist/UploadImages-OgSN1HVt.cjs +1 -0
- package/dist/{UploadImages-9NapgXBq.js → UploadImages-Si-A26bc.js} +10 -11
- package/dist/add-page-modal-9pTKItY-.cjs +1 -0
- package/dist/{add-page-modal-k2Kb92HS.js → add-page-modal-U7AUUrI1.js} +24 -25
- package/dist/confirm-alert-DhRc-Zcd.cjs +1 -0
- package/dist/{confirm-alert-GUhZ_G8w.js → confirm-alert-kV5-c70T.js} +5 -6
- package/dist/core.cjs +1 -1
- package/dist/core.js +46 -47
- package/dist/defaultTheme-7Lk2zq60.cjs +1 -0
- package/dist/{defaultTheme-D8B4-wHO.js → defaultTheme-gunU_Fe5.js} +1 -1
- package/dist/delete-page-modal-4s-6AIy4.cjs +1 -0
- package/dist/{delete-page-modal-zONvdebd.js → delete-page-modal-UCBpdjLe.js} +8 -9
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +1 -1
- package/dist/email.cjs +1 -1
- package/dist/email.js +6 -7
- package/dist/{form-lBQ_76Uw.cjs → form-Ap63cNec.cjs} +1 -1
- package/dist/{form-STUz-6nE.js → form-zmlTjM9j.js} +1 -1
- package/dist/html-to-json-C_Eobs_d.cjs +1 -0
- package/dist/{html-to-json-ngX9ef2u.js → html-to-json-p__Fgqdg.js} +75 -50
- package/dist/{index-Gk6sASBd.js → index-CFUoB97-.js} +128 -129
- package/dist/index-F4AQQ6qq.cjs +1 -0
- package/dist/{index-mbyqq81O.cjs → index-Qk028f-N.cjs} +1 -1
- package/dist/{index-llTXLDGE.js → index-f0AbmoYY.js} +4 -4
- package/dist/{index-OB199Izc.cjs → index-l19JVVXI.cjs} +2 -2
- package/dist/{index-SkyM3d6Q.js → index-lOJfSheQ.js} +2 -2
- package/dist/lib.cjs +3 -3
- package/dist/lib.js +16 -17
- package/dist/page-viewer-YFrIG3L7.cjs +1 -0
- package/dist/{page-viewer-Pdg9F5Hv.js → page-viewer-jOwy--9A.js} +9 -10
- package/dist/{project-general-setting-f8Ebsn6K.js → project-general-setting-3N8HZ2fe.js} +9 -10
- package/dist/project-general-setting-hK7I7FuN.cjs +1 -0
- package/dist/{project-seo-setting-pX34Qsym.js → project-seo-setting-bSiNgO_1.js} +6 -7
- package/dist/project-seo-setting-x-FK0pez.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.js +13 -14
- package/dist/{single-page-detail-dpe5LT0M.js → single-page-detail--AZlZ-pC.js} +10 -11
- package/dist/single-page-detail-9abF2g2R.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +7 -8
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +137 -138
- package/dist/web-blocks.cjs +1 -6
- package/dist/web-blocks.js +385 -486
- package/package.json +1 -1
- package/dist/AddBlocks-zPPKkeKs.cjs +0 -1
- package/dist/BrandingOptions-DkpqGARR.cjs +0 -1
- package/dist/CurrentPage-Hl52iub_.cjs +0 -1
- package/dist/ListTree-WvTjY5rr.cjs +0 -1
- package/dist/MODIFIERS-0g14w5RS.cjs +0 -1
- package/dist/PagesPanel-WzCocl6u.cjs +0 -1
- package/dist/ProjectPanel-o7gdcwPn.cjs +0 -1
- package/dist/STRINGS--j49GZJP.js +0 -7
- package/dist/STRINGS-gPz7CUOk.cjs +0 -1
- package/dist/Settings-AqoKwR92.cjs +0 -1
- package/dist/SidePanels-3o6Okmvu.cjs +0 -1
- package/dist/Topbar-CqW7G360.cjs +0 -1
- package/dist/UnsplashImages-NGskB93R.cjs +0 -1
- package/dist/UploadImages-Oh7Glr9A.cjs +0 -1
- package/dist/add-page-modal--6TTBRYa.cjs +0 -1
- package/dist/confirm-alert-C4M9eF-o.cjs +0 -1
- package/dist/defaultTheme-7VqqhOcp.cjs +0 -1
- package/dist/delete-page-modal-cFoL-wdo.cjs +0 -1
- package/dist/html-to-json-efmv1pCj.cjs +0 -1
- package/dist/index-h-hd6EvN.cjs +0 -1
- package/dist/page-viewer-2kwnKM6v.cjs +0 -1
- package/dist/project-general-setting-CnNL98NM.cjs +0 -1
- package/dist/project-seo-setting-mlxL_e2_.cjs +0 -1
- package/dist/single-page-detail-XfzrGlzA.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("./MODIFIERS-9EwxLM8V.cjs"),S=require("./defaultTheme-7Lk2zq60.cjs"),Y=require("@chaibuilder/runtime"),F=require("react-wrap-balancer"),B=require("@react-email/render"),y=require("@react-email/components"),L=require("@bobthered/tailwindcss-palette-generator");require("./_commonjsHelpers-wDK0ZLPo.cjs");const O=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},A=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 q(t,s){return n.get(t,`${s}_attrs`,{})}function K(t,s){const e={};return Object.keys(t).forEach(r=>{if(n.isString(t[r])&&t[r].startsWith(c.STYLES_KEY)){const i=A(t[r],s);e[r]={className:i,...q(t,r)}}}),e}function w(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:m={}}=t,p=e,l=a=>K(a,i),_=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(_.map((a,x)=>{const f=O(a),d={};n.isEmpty(f)||Object.keys(f).forEach(j=>{d[j]=E.Children.toArray(f[j].map(R=>o.jsxRuntimeExports.jsx(T,{externalData:m,classPrefix:i,blocks:p,parent:R,components:s})))});const u=n.filter(p,{_parent:a._id});d.children=u.length>0?o.jsxRuntimeExports.jsx(T,{externalData:m,classPrefix:i,parent:a._id,blocks:p,components:s}):null;const g=n.get(s,a._type,null);if(g!==null){let j=a;const R=g;return E.createElement(R,n.omit({...j,index:x,...w(a,m),...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},N=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 I(t,s){const e={};return Object.keys(t).forEach(r=>{if(n.isString(t[r])&&t[r].startsWith(c.STYLES_KEY)){const i=N(t[r],s);e[r]={className:i,...W(t,r)}}}),e}function M(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,m=l=>I(l,e),p=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(p.map((l,_)=>{const a=$(l),x={};n.isEmpty(a)||Object.keys(a).forEach(u=>{x[u]=E.Children.toArray(a[u].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 u=l;const g=d.component;return u={...d.defaults,...l},E.createElement(g,n.omit({blockProps:{},inBuilder:!1,...u,index:_,...M(l,r),...m(u),...x},["_parent"]))}return o.jsxRuntimeExports.jsxs("noscript",{children:[l._type," not found"]})}))})}const P=({pageData:t,externalData:s={},before:e=null,after:r=null,classPrefix:i="c-"})=>{const m=n.get(t.project,"brandingOptions",c.BRANDING_OPTIONS_DEFAULTS);return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[e,o.jsxRuntimeExports.jsx("div",{className:i.replace("-","")+" "+S.getBrandingClasses(m,i)+" min-h-screen",children:o.jsxRuntimeExports.jsx(F.Provider,{children:o.jsxRuntimeExports.jsx(h,{externalData:s,blocks:t.page.blocks||[],classPrefix:i})})}),r]})},U=(t,s="c-")=>{const e=n.get(t,"primaryColor","#000"),r=n.get(t,"secondaryColor","#ccc"),i=n.get(t,"bodyFont","Inter"),m=n.get(t,"roundedCorners","0"),p=L.tailwindcssPaletteGenerator({colors:[e,r],names:["primary","secondary"]});return n.set(p,"primary.DEFAULT",e),n.set(p,"secondary.DEFAULT",r),{theme:{fontFamily:{body:[i,...S.defaultTheme.fontFamily.sans]},extend:{borderRadius:{global:`${m||"0"}px`},colors:p}},...s?{prefix:s}:{}}},G=t=>({fontFamily:t,fallbackFontFamily:"Verdana",webFont:{url:`https://fonts.googleapis.com/css2?family=${t}&display=swap`,format:"woff"},fontWeight:400,fontStyle:"normal"}),z=(t,s,e="html")=>{const r=U(s);return B.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,{...G(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=P;exports.RenderUnregisteredComponents=T;exports.generateEmailTemplate=z;
|
package/dist/render.js
CHANGED
|
@@ -2,11 +2,10 @@ 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 } from "./
|
|
6
|
-
import { a as R, g as
|
|
7
|
-
import { getBlockComponent as
|
|
8
|
-
import { Provider as
|
|
9
|
-
import { B as Y } from "./MODIFIERS-dytZ-osO.js";
|
|
5
|
+
import { S as x, a as p, B as L } from "./MODIFIERS-WQdaNvb8.js";
|
|
6
|
+
import { a as R, g as W, d as U } from "./defaultTheme-gunU_Fe5.js";
|
|
7
|
+
import { getBlockComponent as I } from "@chaibuilder/runtime";
|
|
8
|
+
import { Provider as Y } from "react-wrap-balancer";
|
|
10
9
|
import { render as G } from "@react-email/render";
|
|
11
10
|
import { Tailwind as H, Html as K, Head as V, Font as z } from "@react-email/components";
|
|
12
11
|
import { tailwindcssPaletteGenerator as D } from "@bobthered/tailwindcss-palette-generator";
|
|
@@ -159,7 +158,7 @@ function F({
|
|
|
159
158
|
blocks: s
|
|
160
159
|
}
|
|
161
160
|
) : null;
|
|
162
|
-
const f =
|
|
161
|
+
const f = I(l._type);
|
|
163
162
|
if (f !== null) {
|
|
164
163
|
let d = l;
|
|
165
164
|
const u = f.component;
|
|
@@ -186,21 +185,21 @@ function F({
|
|
|
186
185
|
})
|
|
187
186
|
) });
|
|
188
187
|
}
|
|
189
|
-
const
|
|
188
|
+
const ut = ({
|
|
190
189
|
pageData: t,
|
|
191
190
|
externalData: r = {},
|
|
192
191
|
before: n = null,
|
|
193
192
|
after: e = null,
|
|
194
193
|
classPrefix: s = "c-"
|
|
195
194
|
}) => {
|
|
196
|
-
const c = a(t.project, "brandingOptions",
|
|
195
|
+
const c = a(t.project, "brandingOptions", L);
|
|
197
196
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
198
197
|
n,
|
|
199
198
|
/* @__PURE__ */ o.jsx(
|
|
200
199
|
"div",
|
|
201
200
|
{
|
|
202
|
-
className: s.replace("-", "") + " " +
|
|
203
|
-
children: /* @__PURE__ */ o.jsx(
|
|
201
|
+
className: s.replace("-", "") + " " + W(c, s) + " min-h-screen",
|
|
202
|
+
children: /* @__PURE__ */ o.jsx(Y, { children: /* @__PURE__ */ o.jsx(F, { externalData: r, blocks: t.page.blocks || [], classPrefix: s }) })
|
|
204
203
|
}
|
|
205
204
|
),
|
|
206
205
|
e
|
|
@@ -213,7 +212,7 @@ const gt = ({
|
|
|
213
212
|
return S(m, "primary.DEFAULT", n), S(m, "secondary.DEFAULT", e), {
|
|
214
213
|
theme: {
|
|
215
214
|
fontFamily: {
|
|
216
|
-
body: [s, ...
|
|
215
|
+
body: [s, ...U.fontFamily.sans]
|
|
217
216
|
},
|
|
218
217
|
extend: {
|
|
219
218
|
borderRadius: {
|
|
@@ -233,7 +232,7 @@ const gt = ({
|
|
|
233
232
|
},
|
|
234
233
|
fontWeight: 400,
|
|
235
234
|
fontStyle: "normal"
|
|
236
|
-
}),
|
|
235
|
+
}), gt = (t, r, n = "html") => {
|
|
237
236
|
const e = tt(r);
|
|
238
237
|
return G(
|
|
239
238
|
/* @__PURE__ */ o.jsx(H, { config: e, children: /* @__PURE__ */ o.jsxs(K, { lang: "en", dir: "ltr", children: [
|
|
@@ -245,7 +244,7 @@ const gt = ({
|
|
|
245
244
|
};
|
|
246
245
|
export {
|
|
247
246
|
F as RenderChaiBlocks,
|
|
248
|
-
|
|
247
|
+
ut as RenderChaiPage,
|
|
249
248
|
T as RenderUnregisteredComponents,
|
|
250
|
-
|
|
249
|
+
gt as generateEmailTemplate
|
|
251
250
|
};
|
|
@@ -2,21 +2,20 @@ 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 { bf as Y, B as q } from "./index-
|
|
5
|
+
import { bf as Y, B as q } from "./index-CFUoB97-.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 P } from "./form-
|
|
9
|
-
import { f as V, a as X, g as _, b as K } from "./index-
|
|
8
|
+
import { F as P } from "./form-zmlTjM9j.js";
|
|
9
|
+
import { f as V, a as X, g as _, b as K } from "./index-f0AbmoYY.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 "./MODIFIERS-WQdaNvb8.js";
|
|
17
17
|
import "@react-hookz/web";
|
|
18
|
-
import "./
|
|
19
|
-
import "./Class-lGzsNBOK.js";
|
|
18
|
+
import "./Class-3k8xjeiM.js";
|
|
20
19
|
import "react-i18next";
|
|
21
20
|
import "@radix-ui/react-toggle";
|
|
22
21
|
import "class-variance-authority";
|
|
@@ -43,16 +42,16 @@ import "react-dom";
|
|
|
43
42
|
import "react-quill";
|
|
44
43
|
import "@rjsf/core";
|
|
45
44
|
import "@rjsf/validator-ajv8";
|
|
46
|
-
import "./index-
|
|
45
|
+
import "./index-lOJfSheQ.js";
|
|
47
46
|
import "i18next";
|
|
48
47
|
import "@floating-ui/react-dom";
|
|
49
48
|
import "flagged";
|
|
50
49
|
import "react-hotkeys-hook";
|
|
51
|
-
import "./html-to-json-
|
|
50
|
+
import "./html-to-json-p__Fgqdg.js";
|
|
52
51
|
import "himalaya";
|
|
53
52
|
import "lucide-react";
|
|
54
53
|
import "./index-YpnaudSM.js";
|
|
55
|
-
const O = I.lazy(() => import("./delete-page-modal-
|
|
54
|
+
const O = I.lazy(() => import("./delete-page-modal-UCBpdjLe.js")), J = I.lazy(() => import("./confirm-alert-kV5-c70T.js")), h = (r) => {
|
|
56
55
|
if (!L(r) || !(r.includes("/[") && r.includes("]")))
|
|
57
56
|
return !1;
|
|
58
57
|
const s = /^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/, u = /^[a-zA-Z0-9_-]+$/;
|
|
@@ -66,7 +65,7 @@ const O = I.lazy(() => import("./delete-page-modal-zONvdebd.js")), J = I.lazy(()
|
|
|
66
65
|
} : r, W = (r, m) => {
|
|
67
66
|
const s = !C(y(r, ["seoData"]), y(m, ["seoData"])), u = !C(f(m).seoData, f(r).seoData);
|
|
68
67
|
return s || u;
|
|
69
|
-
},
|
|
68
|
+
}, We = ({ open: r, setOpen: m, pageData: s }) => {
|
|
70
69
|
const u = V(), { data: e } = X(), n = _(), c = K("Homepage updated successfully."), [i, T] = j(f(s)), [d, v] = j({
|
|
71
70
|
isHomePage: (e == null ? void 0 : e.homepage) === s.uuid
|
|
72
71
|
}), N = W(i, s);
|
|
@@ -214,5 +213,5 @@ const O = I.lazy(() => import("./delete-page-modal-zONvdebd.js")), J = I.lazy(()
|
|
|
214
213
|
] });
|
|
215
214
|
};
|
|
216
215
|
export {
|
|
217
|
-
|
|
216
|
+
We as default
|
|
218
217
|
};
|
|
@@ -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-F4AQQ6qq.cjs"),d=require("./controls-KK2oLIa8.cjs"),w=require("sonner"),p=require("./form-Ap63cNec.cjs"),P=require("./index-Qk028f-N.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./MODIFIERS-9EwxLM8V.cjs");require("@react-hookz/web");require("./Class-MmCxz2Ay.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-l19JVVXI.cjs");require("i18next");require("@floating-ui/react-dom");require("flagged");require("react-hotkeys-hook");require("./html-to-json-C_Eobs_d.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");const z=f.lazy(()=>Promise.resolve().then(()=>require("./delete-page-modal-4s-6AIy4.cjs"))),L=f.lazy(()=>Promise.resolve().then(()=>require("./confirm-alert-DhRc-Zcd.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-Qk028f-N.cjs");require("react");require("sonner");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("./index-l19JVVXI.cjs");require("i18next");require("react-i18next");require("./index-F4AQQ6qq.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./MODIFIERS-9EwxLM8V.cjs");require("@react-hookz/web");require("./Class-MmCxz2Ay.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-C_Eobs_d.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");exports.ChaiBuilderStudio=e.ChaiBuilderStudio;
|
package/dist/studio.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as Y } from "./index-f0AbmoYY.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "sonner";
|
|
5
5
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-lOJfSheQ.js";
|
|
7
7
|
import "i18next";
|
|
8
8
|
import "react-i18next";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-CFUoB97-.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 "./MODIFIERS-WQdaNvb8.js";
|
|
17
17
|
import "@react-hookz/web";
|
|
18
|
-
import "./
|
|
19
|
-
import "./Class-lGzsNBOK.js";
|
|
18
|
+
import "./Class-3k8xjeiM.js";
|
|
20
19
|
import "@radix-ui/react-toggle";
|
|
21
20
|
import "class-variance-authority";
|
|
22
21
|
import "@radix-ui/react-switch";
|
|
@@ -44,10 +43,10 @@ import "react-quill";
|
|
|
44
43
|
import "@floating-ui/react-dom";
|
|
45
44
|
import "flagged";
|
|
46
45
|
import "react-hotkeys-hook";
|
|
47
|
-
import "./html-to-json-
|
|
46
|
+
import "./html-to-json-p__Fgqdg.js";
|
|
48
47
|
import "himalaya";
|
|
49
48
|
import "lucide-react";
|
|
50
49
|
import "./index-YpnaudSM.js";
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
Y as ChaiBuilderStudio
|
|
53
52
|
};
|
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-F4AQQ6qq.cjs");require("react");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./MODIFIERS-9EwxLM8V.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("@react-hookz/web");require("./Class-MmCxz2Ay.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 { b9 as
|
|
1
|
+
import { b9 as q, bc as y, ba as z, bb as J, bp as K, bC as W, A as X, ai as Y, g as Z, b as _, e as $, f as N, c as O, d as Q, a as U, bq as aa, as as ea, B as oa, bj as ta, bm as ra, bl as sa, bo as na, bk as ia, bE as ba, aY as pa, cc as ua, a$ as la, b0 as ma, aZ as ca, b1 as da, a_ as ga, ce as Ca, cd as Ma, bu as Sa, cf as Da, bt as Ta, ck as xa, bs as Aa, ch as ha, cl as Ia, cp as wa, cg as Pa, ci as ka, cj as Fa, cm as Ga, cn as La, co as va, bv as Ha, ad as Ra, ae as Ba, ah as Va, b2 as fa, af as Ea, ag as ja, ao as qa, aG as ya, aL as za, aI as Ja, bg as Ka, bh as Wa, aJ as Xa, c4 as Ya, c8 as Za, c3 as _a, aK as $a, bi as Na, c5 as Oa, c6 as Qa, c7 as Ua, aH as ae, aD as ee, aF as oe, aE as te, b6 as re, b7 as se, bd as ne, aB as ie, b8 as be, bG as pe, bN as ue, bJ as le, bT as me, bK as ce, bM as de, bH as ge, bQ as Ce, bO as Me, bP as Se, bL as De, bV as Te, bU as xe, bR as Ae, bS as he, bI as Ie, aV as we, aX as Pe, aW as ke, b5 as Fe, bf as Ge, bF as Le, aj as ve, am as He, ay as Re, an as Be, az as Ve, bW as fe, ak as Ee, al as je, aA as qe, bX as ye, bZ as ze, b_ as Je, c2 as Ke, c0 as We, b$ as Xe, c1 as Ye, bY as Ze, S as _e, aC as $e, au as Ne, ax as Oe, av as Qe, aw as Ue, bn as ao, I as eo, bz as oo, ap as to, ar as ro, be as so, T as no, aq as io, bD as bo, bB as po, c9 as uo, cb as lo, bA as mo, ca as co } from "./index-CFUoB97-.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "./Functions-7jnEwJyw.js";
|
|
@@ -6,11 +6,10 @@ import "clsx";
|
|
|
6
6
|
import "tailwind-merge";
|
|
7
7
|
import "@chaibuilder/runtime";
|
|
8
8
|
import "jotai";
|
|
9
|
-
import "./
|
|
9
|
+
import "./MODIFIERS-WQdaNvb8.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "@react-hookz/web";
|
|
12
|
-
import "./
|
|
13
|
-
import "./Class-lGzsNBOK.js";
|
|
12
|
+
import "./Class-3k8xjeiM.js";
|
|
14
13
|
import "react-i18next";
|
|
15
14
|
import "./jsx-runtime-WbnYoNE9.js";
|
|
16
15
|
import "@radix-ui/react-toggle";
|
|
@@ -38,141 +37,141 @@ import "react-icons-picker";
|
|
|
38
37
|
import "react-dom";
|
|
39
38
|
import "react-quill";
|
|
40
39
|
export {
|
|
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
|
-
|
|
66
|
-
|
|
40
|
+
q as Accordion,
|
|
41
|
+
y as AccordionContent,
|
|
42
|
+
z as AccordionItem,
|
|
43
|
+
J as AccordionTrigger,
|
|
44
|
+
K as Alert,
|
|
45
|
+
W as AlertDescription,
|
|
46
|
+
X as AlertDialog,
|
|
47
|
+
Y as AlertDialogAction,
|
|
48
|
+
Z as AlertDialogCancel,
|
|
49
|
+
_ as AlertDialogContent,
|
|
50
|
+
$ as AlertDialogDescription,
|
|
51
|
+
N as AlertDialogFooter,
|
|
52
|
+
O as AlertDialogHeader,
|
|
53
|
+
Q as AlertDialogTitle,
|
|
54
|
+
U as AlertDialogTrigger,
|
|
55
|
+
aa as AlertTitle,
|
|
56
|
+
ea as Badge,
|
|
57
|
+
oa as Button,
|
|
58
|
+
ta as Card,
|
|
59
|
+
ra as CardContent,
|
|
60
|
+
sa as CardDescription,
|
|
61
|
+
na as CardFooter,
|
|
62
|
+
ia as CardHeader,
|
|
63
|
+
ba as CardTitle,
|
|
64
|
+
pa as Command,
|
|
65
|
+
ua as CommandDialog,
|
|
67
66
|
la as CommandEmpty,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
120
|
-
|
|
67
|
+
ma as CommandGroup,
|
|
68
|
+
ca as CommandInput,
|
|
69
|
+
da as CommandItem,
|
|
70
|
+
ga as CommandList,
|
|
71
|
+
Ca as CommandSeparator,
|
|
72
|
+
Ma as CommandShortcut,
|
|
73
|
+
Sa as ContextMenu,
|
|
74
|
+
Da as ContextMenuCheckboxItem,
|
|
75
|
+
Ta as ContextMenuContent,
|
|
76
|
+
xa as ContextMenuGroup,
|
|
77
|
+
Aa as ContextMenuItem,
|
|
78
|
+
ha as ContextMenuLabel,
|
|
79
|
+
Ia as ContextMenuPortal,
|
|
80
|
+
wa as ContextMenuRadioGroup,
|
|
81
|
+
Pa as ContextMenuRadioItem,
|
|
82
|
+
ka as ContextMenuSeparator,
|
|
83
|
+
Fa as ContextMenuShortcut,
|
|
84
|
+
Ga as ContextMenuSub,
|
|
85
|
+
La as ContextMenuSubContent,
|
|
86
|
+
va as ContextMenuSubTrigger,
|
|
87
|
+
Ha as ContextMenuTrigger,
|
|
88
|
+
Ra as Dialog,
|
|
89
|
+
Ba as DialogContent,
|
|
90
|
+
Va as DialogDescription,
|
|
91
|
+
fa as DialogFooter,
|
|
92
|
+
Ea as DialogHeader,
|
|
93
|
+
ja as DialogTitle,
|
|
94
|
+
qa as DialogTrigger,
|
|
95
|
+
ya as DropdownMenu,
|
|
96
|
+
za as DropdownMenuCheckboxItem,
|
|
97
|
+
Ja as DropdownMenuContent,
|
|
98
|
+
Ka as DropdownMenuGroup,
|
|
99
|
+
Wa as DropdownMenuItem,
|
|
100
|
+
Xa as DropdownMenuLabel,
|
|
101
|
+
Ya as DropdownMenuPortal,
|
|
102
|
+
Za as DropdownMenuRadioGroup,
|
|
103
|
+
_a as DropdownMenuRadioItem,
|
|
104
|
+
$a as DropdownMenuSeparator,
|
|
105
|
+
Na as DropdownMenuShortcut,
|
|
106
|
+
Oa as DropdownMenuSub,
|
|
107
|
+
Qa as DropdownMenuSubContent,
|
|
108
|
+
Ua as DropdownMenuSubTrigger,
|
|
109
|
+
ae as DropdownMenuTrigger,
|
|
110
|
+
ee as HoverCard,
|
|
111
|
+
oe as HoverCardContent,
|
|
112
|
+
te as HoverCardTrigger,
|
|
113
|
+
re as IconPickerField,
|
|
114
|
+
se as ImagePickerField,
|
|
115
|
+
ne as Input,
|
|
116
|
+
ie as Label,
|
|
117
|
+
be as LinkField,
|
|
118
|
+
pe as Menubar,
|
|
119
|
+
ue as MenubarCheckboxItem,
|
|
121
120
|
le as MenubarContent,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
-
|
|
174
|
-
|
|
121
|
+
me as MenubarGroup,
|
|
122
|
+
ce as MenubarItem,
|
|
123
|
+
de as MenubarLabel,
|
|
124
|
+
ge as MenubarMenu,
|
|
125
|
+
Ce as MenubarPortal,
|
|
126
|
+
Me as MenubarRadioGroup,
|
|
127
|
+
Se as MenubarRadioItem,
|
|
128
|
+
De as MenubarSeparator,
|
|
129
|
+
Te as MenubarShortcut,
|
|
130
|
+
xe as MenubarSub,
|
|
131
|
+
Ae as MenubarSubContent,
|
|
132
|
+
he as MenubarSubTrigger,
|
|
133
|
+
Ie as MenubarTrigger,
|
|
134
|
+
we as Popover,
|
|
135
|
+
Pe as PopoverContent,
|
|
136
|
+
ke as PopoverTrigger,
|
|
137
|
+
Fe as RTEField,
|
|
138
|
+
Ge as ScrollArea,
|
|
139
|
+
Le as ScrollBar,
|
|
140
|
+
ve as Select,
|
|
141
|
+
He as SelectContent,
|
|
142
|
+
Re as SelectGroup,
|
|
143
|
+
Be as SelectItem,
|
|
144
|
+
Ve as SelectLabel,
|
|
145
|
+
fe as SelectSeparator,
|
|
146
|
+
Ee as SelectTrigger,
|
|
147
|
+
je as SelectValue,
|
|
148
|
+
qe as Separator,
|
|
149
|
+
ye as Sheet,
|
|
150
|
+
ze as SheetClose,
|
|
151
|
+
Je as SheetContent,
|
|
152
|
+
Ke as SheetDescription,
|
|
153
|
+
We as SheetFooter,
|
|
154
|
+
Xe as SheetHeader,
|
|
155
|
+
Ye as SheetTitle,
|
|
156
|
+
Ze as SheetTrigger,
|
|
157
|
+
_e as Skeleton,
|
|
158
|
+
$e as Switch,
|
|
159
|
+
Ne as Tabs,
|
|
160
|
+
Oe as TabsContent,
|
|
161
|
+
Qe as TabsList,
|
|
162
|
+
Ue as TabsTrigger,
|
|
163
|
+
ao as Textarea,
|
|
164
|
+
eo as Toaster,
|
|
165
|
+
oo as Toggle,
|
|
166
|
+
to as Tooltip,
|
|
167
|
+
ro as TooltipContent,
|
|
168
|
+
so as TooltipPortal,
|
|
169
|
+
no as TooltipProvider,
|
|
170
|
+
io as TooltipTrigger,
|
|
171
|
+
bo as badgeVariants,
|
|
172
|
+
po as buttonVariants,
|
|
173
|
+
uo as reducer,
|
|
175
174
|
lo as toast,
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
mo as toggleVariants,
|
|
176
|
+
co as useToast
|
|
178
177
|
};
|