@chaibuilder/sdk 1.2.49 → 1.2.51
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-JCSA6hLF.js → AddBlocks-LyEjf6h0.js} +18 -18
- package/dist/AddBlocks-hOFqmmXZ.cjs +1 -0
- package/dist/CanvasArea-luy5nUGR.cjs +56 -0
- package/dist/{CanvasArea-c3xbVSoY.js → CanvasArea-mhINqS0c.js} +279 -263
- package/dist/{ChaiBuilderEditor-lqHQcnh3.cjs → ChaiBuilderEditor-H173PF4T.cjs} +50 -50
- package/dist/{ChaiBuilderEditor-F2yUJQdt.js → ChaiBuilderEditor-KEwDa8Bl.js} +8553 -8619
- package/dist/CodeEditor-XaHQMfpT.js +97 -0
- package/dist/CodeEditor-jh9xwRXT.cjs +1 -0
- package/dist/CurrentPage-RUx7wvBt.cjs +1 -0
- package/dist/{CurrentPage--lDu6fB9.js → CurrentPage-UzajS1xZ.js} +10 -10
- package/dist/{ListTree-7DWSal1i.js → ListTree-BWBPjCzR.js} +6 -6
- package/dist/ListTree-S6pMJlmj.cjs +1 -0
- package/dist/{MODIFIERS-cBT31iqE.js → MODIFIERS-fd5XOmum.js} +8 -4
- package/dist/MODIFIERS-mVmfEGgo.cjs +1 -0
- package/dist/PagesPanel-LBW-4mVM.cjs +1 -0
- package/dist/{PagesPanel-D1TOGyVE.js → PagesPanel-p-h6o26u.js} +7 -7
- package/dist/ProjectPanel-PQv2uVj2.cjs +1 -0
- package/dist/{ProjectPanel-PdvQsrbk.js → ProjectPanel-o0OWWnYQ.js} +7 -7
- package/dist/Settings-DclX-cDC.cjs +1 -0
- package/dist/{Settings-aEcWAB0x.js → Settings-zm-cF9rZ.js} +466 -449
- package/dist/SidePanels-0w036NaZ.cjs +1 -0
- package/dist/{SidePanels-uym8wfA0.js → SidePanels-TOHaLWC6.js} +40 -40
- package/dist/ThemeConfiguration-MBuJmbDn.cjs +1 -0
- package/dist/{ThemeConfiguration-7J_Qt53c.js → ThemeConfiguration-wJA_aBly.js} +9 -9
- package/dist/{Topbar-DkbE0ccQ.js → Topbar-Rh7dWuJD.js} +8 -8
- package/dist/Topbar-u5HAh7Mg.cjs +1 -0
- package/dist/{UILibrariesPanel-3cSqwsMi.js → UILibrariesPanel-3-cWabRt.js} +8 -8
- package/dist/UILibrariesPanel-xOys8g8A.cjs +1 -0
- package/dist/UnsplashImages-Kymq8i6b.cjs +1 -0
- package/dist/{UnsplashImages-owPv8UfV.js → UnsplashImages-dhU2-pHY.js} +6 -6
- package/dist/UploadImages-WpaiIEbj.cjs +1 -0
- package/dist/{UploadImages-zGp0fN1z.js → UploadImages-dr_gpAea.js} +4 -4
- package/dist/add-page-modal-vmUMNu7F.cjs +1 -0
- package/dist/{add-page-modal-pOnhQNMH.js → add-page-modal-zwq1hL_o.js} +12 -12
- package/dist/{confirm-alert-lbkop3bB.js → confirm-alert-73tjkqtD.js} +4 -4
- package/dist/confirm-alert-fK62IiTF.cjs +1 -0
- package/dist/controls-rRZhz0vu.cjs +1 -0
- package/dist/{controls-VTdJhdSz.js → controls-yjgoZzB6.js} +31 -18
- package/dist/core.cjs +1 -1
- package/dist/core.js +6 -6
- package/dist/{delete-page-modal-3OWHRhV4.js → delete-page-modal-DPNxHWfi.js} +6 -6
- package/dist/delete-page-modal-G_aMq7K4.cjs +1 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +1 -1
- package/dist/email.cjs +1 -1
- package/dist/email.js +4 -4
- package/dist/{form-Rqiu0P7V.cjs → form-YMuxx9Ju.cjs} +1 -1
- package/dist/{form-CetbKOxf.js → form-_tKI6ugY.js} +5 -5
- package/dist/{functions-WB3m-mfN.js → functions-JO0EW8GX.js} +1 -1
- package/dist/functions-ZZVUnIjD.cjs +1 -0
- package/dist/html-to-json-9uiQ2Dp2.cjs +1 -0
- package/dist/html-to-json-ofq1N3tB.js +186 -0
- package/dist/index-9gfJqJ6E.cjs +1 -0
- package/dist/index-YpnaudSM.js +63 -0
- package/dist/index-ecnGWzh9.cjs +1 -0
- package/dist/{index-Mzvi8sMV.js → index-vpfLlP7N.js} +15 -14
- package/dist/lib.cjs +2 -2
- package/dist/lib.js +19 -20
- package/dist/{page-viewer-7iyxGntn.js → page-viewer-UZMtWQDj.js} +12 -12
- package/dist/page-viewer-WQgFhgp5.cjs +1 -0
- package/dist/project-general-setting-Yh4fQsQH.cjs +1 -0
- package/dist/{project-general-setting-tHdsXTwH.js → project-general-setting-Zz7qcIW7.js} +12 -12
- package/dist/project-seo-setting-_gNPOTsp.cjs +1 -0
- package/dist/{project-seo-setting-zEBZ91Xk.js → project-seo-setting-wFOVAoC2.js} +6 -6
- package/dist/render.cjs +1 -1
- package/dist/render.js +44 -45
- package/dist/{single-page-detail-RBfdbTs3.js → single-page-detail-1Vveonuh.js} +21 -21
- package/dist/single-page-detail-EMxzuAe1.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +6 -6
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +100 -100
- package/dist/useCodeEditor-2KOfsFsx.js +7 -0
- package/dist/useCodeEditor-gE1NWoNH.cjs +1 -0
- package/dist/{utils-K3Zk762G.cjs → utils-D_vtk3zK.cjs} +1 -1
- package/dist/{utils-iMv3T4WT.js → utils-VpVqnC9m.js} +1 -1
- package/dist/web-blocks.cjs +1 -33
- package/dist/web-blocks.js +471 -619
- package/package.json +4 -2
- package/dist/AddBlocks-JiIeMTE-.cjs +0 -1
- package/dist/CanvasArea-K_d6ORTZ.cjs +0 -55
- package/dist/CurrentPage-DnQKF1wT.cjs +0 -1
- package/dist/ListTree-HVFqaM0-.cjs +0 -1
- package/dist/MODIFIERS-YPHRtwrM.cjs +0 -1
- package/dist/PagesPanel-pIFhxLGC.cjs +0 -1
- package/dist/ProjectPanel-t7s3-URx.cjs +0 -1
- package/dist/STRINGS--j49GZJP.js +0 -7
- package/dist/STRINGS-gPz7CUOk.cjs +0 -1
- package/dist/Settings-WevLeOpk.cjs +0 -1
- package/dist/SidePanels-mavyE3q_.cjs +0 -1
- package/dist/ThemeConfiguration-F-_ieF8J.cjs +0 -1
- package/dist/Topbar-FjX_5927.cjs +0 -1
- package/dist/UILibrariesPanel-qsjCsv10.cjs +0 -1
- package/dist/UnsplashImages-5skIflMr.cjs +0 -1
- package/dist/UploadImages-olCKp-66.cjs +0 -1
- package/dist/add-page-modal-JE2NTOKQ.cjs +0 -1
- package/dist/confirm-alert-GTawvuT8.cjs +0 -1
- package/dist/controls-jWJDao88.cjs +0 -1
- package/dist/delete-page-modal-S42VXCGh.cjs +0 -1
- package/dist/functions-fujiWLsg.cjs +0 -1
- package/dist/html-to-json-VPWiWWGH.cjs +0 -1
- package/dist/html-to-json-Z6R2o_fA.js +0 -221
- package/dist/index-SZn6KcOd.cjs +0 -1
- package/dist/page-viewer-fFmRhZs3.cjs +0 -1
- package/dist/project-general-setting-0HJ_qyW3.cjs +0 -1
- package/dist/project-seo-setting-Ln9aX7b5.cjs +0 -1
- package/dist/single-page-detail-H0heOB33.cjs +0 -1
- package/dist/useCanvasSettings-2YhM5XKu.js +0 -6
- package/dist/useCanvasSettings-tDzAqXUt.cjs +0 -1
package/dist/render.js
CHANGED
|
@@ -2,12 +2,11 @@ import { j as o } from "./jsx-runtime-WbnYoNE9.js";
|
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { isString as _, memoize as N, get as l, isEmpty as h, each as $, filter as g, omit as R, has as W } from "lodash-es";
|
|
4
4
|
import { twMerge as T } from "tailwind-merge";
|
|
5
|
-
import { S as C, a as d } from "./
|
|
6
|
-
import { a as F, g as
|
|
7
|
-
import { c as
|
|
8
|
-
import { getBlockComponent as
|
|
9
|
-
import { Provider as
|
|
10
|
-
import { B as K } from "./MODIFIERS-cBT31iqE.js";
|
|
5
|
+
import { S as C, a as d, B as L } from "./MODIFIERS-fd5XOmum.js";
|
|
6
|
+
import { a as F, g as Y } from "./functions-JO0EW8GX.js";
|
|
7
|
+
import { c as ot } from "./functions-JO0EW8GX.js";
|
|
8
|
+
import { getBlockComponent as I } from "@chaibuilder/runtime";
|
|
9
|
+
import { Provider as K } from "react-wrap-balancer";
|
|
11
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
12
11
|
const U = (t) => {
|
|
13
12
|
const s = {};
|
|
@@ -15,32 +14,32 @@ const U = (t) => {
|
|
|
15
14
|
_(t[n]) && t[n].startsWith(C) && (s[n] = t[n].replace(C, "").split(","));
|
|
16
15
|
}), s;
|
|
17
16
|
}, w = N((t, s) => {
|
|
18
|
-
const n = t.replace(d, "").split(","),
|
|
19
|
-
return s ? F(
|
|
17
|
+
const n = t.replace(d, "").split(","), e = T(n[0], n[1]);
|
|
18
|
+
return s ? F(e, s).replace(d, "").trim() : e.replace(d, "").trim();
|
|
20
19
|
});
|
|
21
20
|
function z(t, s) {
|
|
22
21
|
return l(t, `${s}_attrs`, {});
|
|
23
22
|
}
|
|
24
23
|
function G(t, s) {
|
|
25
24
|
const n = {};
|
|
26
|
-
return Object.keys(t).forEach((
|
|
27
|
-
if (_(t[
|
|
28
|
-
const
|
|
29
|
-
n[
|
|
30
|
-
className:
|
|
31
|
-
...z(t,
|
|
25
|
+
return Object.keys(t).forEach((e) => {
|
|
26
|
+
if (_(t[e]) && t[e].startsWith(d)) {
|
|
27
|
+
const r = w(t[e], s);
|
|
28
|
+
n[e] = {
|
|
29
|
+
className: r,
|
|
30
|
+
...z(t, e)
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
33
|
}), n;
|
|
35
34
|
}
|
|
36
35
|
function q(t, s) {
|
|
37
36
|
const n = l(t, "_bindings", {});
|
|
38
|
-
return h(n) ? { ...t } : ($(n, (
|
|
39
|
-
_(
|
|
37
|
+
return h(n) ? { ...t } : ($(n, (e, r) => {
|
|
38
|
+
_(e) && l(s, e, null) && (t[r] = l(s, e, null));
|
|
40
39
|
}), t);
|
|
41
40
|
}
|
|
42
41
|
function O(t) {
|
|
43
|
-
const { components: s, blocks: n, parent:
|
|
42
|
+
const { components: s, blocks: n, parent: e, classPrefix: r = "", externalData: p = {} } = t, j = n, S = (a) => G(a, r), i = e ? g(n, { _parent: e }) : g(n, (a) => h(a._parent));
|
|
44
43
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: u.Children.toArray(
|
|
45
44
|
i.map((a, E) => {
|
|
46
45
|
const f = U(a), y = {};
|
|
@@ -50,7 +49,7 @@ function O(t) {
|
|
|
50
49
|
O,
|
|
51
50
|
{
|
|
52
51
|
externalData: p,
|
|
53
|
-
classPrefix:
|
|
52
|
+
classPrefix: r,
|
|
54
53
|
blocks: j,
|
|
55
54
|
parent: A,
|
|
56
55
|
components: s
|
|
@@ -63,7 +62,7 @@ function O(t) {
|
|
|
63
62
|
O,
|
|
64
63
|
{
|
|
65
64
|
externalData: p,
|
|
66
|
-
classPrefix:
|
|
65
|
+
classPrefix: r,
|
|
67
66
|
parent: a._id,
|
|
68
67
|
blocks: j,
|
|
69
68
|
components: s
|
|
@@ -100,8 +99,8 @@ const H = (t) => {
|
|
|
100
99
|
_(t[n]) && t[n].startsWith(C) && (s[n] = t[n].replace(C, "").split(","));
|
|
101
100
|
}), s;
|
|
102
101
|
}, J = N((t, s) => {
|
|
103
|
-
const n = t.replace(d, "").split(","),
|
|
104
|
-
return s === "" ?
|
|
102
|
+
const n = t.replace(d, "").split(","), e = T(n[0], n[1]);
|
|
103
|
+
return s === "" ? e.replace(d, "").trim() : F(e, s).replace(d, "").trim();
|
|
105
104
|
});
|
|
106
105
|
function M(t, s) {
|
|
107
106
|
const n = l(t, `${s}_attrs`, {});
|
|
@@ -109,28 +108,28 @@ function M(t, s) {
|
|
|
109
108
|
}
|
|
110
109
|
function P(t, s) {
|
|
111
110
|
const n = {};
|
|
112
|
-
return Object.keys(t).forEach((
|
|
113
|
-
if (_(t[
|
|
114
|
-
const
|
|
115
|
-
n[
|
|
116
|
-
className:
|
|
117
|
-
...M(t,
|
|
111
|
+
return Object.keys(t).forEach((e) => {
|
|
112
|
+
if (_(t[e]) && t[e].startsWith(d)) {
|
|
113
|
+
const r = J(t[e], s);
|
|
114
|
+
n[e] = {
|
|
115
|
+
className: r,
|
|
116
|
+
...M(t, e)
|
|
118
117
|
};
|
|
119
118
|
}
|
|
120
119
|
}), n;
|
|
121
120
|
}
|
|
122
121
|
function Q(t, s) {
|
|
123
122
|
const n = l(t, "_bindings", {});
|
|
124
|
-
return h(n) ? { ...t } : ($(n, (
|
|
125
|
-
_(
|
|
123
|
+
return h(n) ? { ...t } : ($(n, (e, r) => {
|
|
124
|
+
_(e) && l(s, e, null) && (t[r] = l(s, e, null));
|
|
126
125
|
}), t);
|
|
127
126
|
}
|
|
128
127
|
function x({
|
|
129
128
|
blocks: t,
|
|
130
129
|
parent: s,
|
|
131
130
|
classPrefix: n = "",
|
|
132
|
-
externalData:
|
|
133
|
-
blockModifierCallback:
|
|
131
|
+
externalData: e = {},
|
|
132
|
+
blockModifierCallback: r
|
|
134
133
|
}) {
|
|
135
134
|
const p = t, j = (i) => P(i, n), S = s ? g(t, { _parent: s }) : g(t, (i) => h(i._parent));
|
|
136
135
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: u.Children.toArray(
|
|
@@ -141,7 +140,7 @@ function x({
|
|
|
141
140
|
E[c].map((m) => /* @__PURE__ */ o.jsx(
|
|
142
141
|
x,
|
|
143
142
|
{
|
|
144
|
-
externalData:
|
|
143
|
+
externalData: e,
|
|
145
144
|
classPrefix: n,
|
|
146
145
|
blocks: p,
|
|
147
146
|
parent: m
|
|
@@ -153,17 +152,17 @@ function x({
|
|
|
153
152
|
f.children = y.length > 0 ? /* @__PURE__ */ o.jsx(
|
|
154
153
|
x,
|
|
155
154
|
{
|
|
156
|
-
externalData:
|
|
155
|
+
externalData: e,
|
|
157
156
|
classPrefix: n,
|
|
158
157
|
parent: i._id,
|
|
159
158
|
blocks: p
|
|
160
159
|
}
|
|
161
160
|
) : null;
|
|
162
|
-
const B =
|
|
161
|
+
const B = I(i._type);
|
|
163
162
|
if (B !== null) {
|
|
164
163
|
let c = i;
|
|
165
164
|
const m = B.component;
|
|
166
|
-
return c = { ...B.defaults, ...i },
|
|
165
|
+
return c = { ...B.defaults, ...i }, r && (c = r(c)), u.createElement(
|
|
167
166
|
m,
|
|
168
167
|
R(
|
|
169
168
|
{
|
|
@@ -171,7 +170,7 @@ function x({
|
|
|
171
170
|
inBuilder: !1,
|
|
172
171
|
...c,
|
|
173
172
|
index: a,
|
|
174
|
-
...Q(i,
|
|
173
|
+
...Q(i, e),
|
|
175
174
|
...j(c),
|
|
176
175
|
...f
|
|
177
176
|
},
|
|
@@ -186,29 +185,29 @@ function x({
|
|
|
186
185
|
})
|
|
187
186
|
) });
|
|
188
187
|
}
|
|
189
|
-
const
|
|
188
|
+
const st = ({
|
|
190
189
|
pageData: t,
|
|
191
190
|
externalData: s = {},
|
|
192
191
|
before: n = null,
|
|
193
|
-
after:
|
|
194
|
-
classPrefix:
|
|
192
|
+
after: e = null,
|
|
193
|
+
classPrefix: r = "c-"
|
|
195
194
|
}) => {
|
|
196
|
-
const p = l(t.project, "brandingOptions",
|
|
195
|
+
const p = l(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:
|
|
203
|
-
children: /* @__PURE__ */ o.jsx(
|
|
201
|
+
className: r.replace("-", "") + " " + Y(p, r) + " min-h-screen",
|
|
202
|
+
children: /* @__PURE__ */ o.jsx(K, { children: /* @__PURE__ */ o.jsx(x, { externalData: s, blocks: t.page.blocks || [], classPrefix: r }) })
|
|
204
203
|
}
|
|
205
204
|
),
|
|
206
|
-
|
|
205
|
+
e
|
|
207
206
|
] });
|
|
208
207
|
};
|
|
209
208
|
export {
|
|
210
209
|
x as RenderChaiBlocks,
|
|
211
|
-
|
|
210
|
+
st as RenderChaiPage,
|
|
212
211
|
O as RenderUnregisteredComponents,
|
|
213
|
-
|
|
212
|
+
ot as convertToBlocks
|
|
214
213
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
2
|
import I, { useState as j, useEffect as z } from "react";
|
|
3
|
-
import { isString as L, isEmpty as x, isEqual as C, omit as y, kebabCase as
|
|
4
|
-
import { HomeIcon as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { isString as L, isEmpty as x, isEqual as C, omit as y, kebabCase as B } from "lodash-es";
|
|
4
|
+
import { HomeIcon as G } from "@radix-ui/react-icons";
|
|
5
|
+
import { bf as Y, B as q } from "./ChaiBuilderEditor-KEwDa8Bl.js";
|
|
6
|
+
import { g, h as Z, r as $, v as F, c as Q } from "./controls-yjgoZzB6.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-_tKI6ugY.js";
|
|
9
|
+
import { f as V, a as X, g as _, b as K } from "./index-vpfLlP7N.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "clsx";
|
|
12
12
|
import "react-dom";
|
|
@@ -16,14 +16,13 @@ import "jotai";
|
|
|
16
16
|
import "i18next";
|
|
17
17
|
import "react-i18next";
|
|
18
18
|
import "flagged";
|
|
19
|
-
import "./
|
|
19
|
+
import "./MODIFIERS-fd5XOmum.js";
|
|
20
20
|
import "./Functions-7jnEwJyw.js";
|
|
21
21
|
import "tailwind-merge";
|
|
22
22
|
import "@chaibuilder/runtime";
|
|
23
23
|
import "@react-hookz/web";
|
|
24
|
-
import "./MODIFIERS-cBT31iqE.js";
|
|
25
24
|
import "tree-model";
|
|
26
|
-
import "./utils-
|
|
25
|
+
import "./utils-VpVqnC9m.js";
|
|
27
26
|
import "@radix-ui/react-toggle";
|
|
28
27
|
import "class-variance-authority";
|
|
29
28
|
import "@radix-ui/react-switch";
|
|
@@ -47,12 +46,13 @@ import "react-icons-picker";
|
|
|
47
46
|
import "react-quill";
|
|
48
47
|
import "react-hotkeys-hook";
|
|
49
48
|
import "lucide-react";
|
|
49
|
+
import "./index-YpnaudSM.js";
|
|
50
50
|
import "@rjsf/core";
|
|
51
51
|
import "@rjsf/validator-ajv8";
|
|
52
52
|
import "./core.js";
|
|
53
|
-
import "./html-to-json-
|
|
53
|
+
import "./html-to-json-ofq1N3tB.js";
|
|
54
54
|
import "himalaya";
|
|
55
|
-
const O = I.lazy(() => import("./delete-page-modal-
|
|
55
|
+
const O = I.lazy(() => import("./delete-page-modal-DPNxHWfi.js")), J = I.lazy(() => import("./confirm-alert-73tjkqtD.js")), P = (r) => {
|
|
56
56
|
if (!L(r) || !(r.includes("/[") && r.includes("]")))
|
|
57
57
|
return !1;
|
|
58
58
|
const s = /^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/, u = /^[a-zA-Z0-9_-]+$/;
|
|
@@ -76,7 +76,7 @@ const O = I.lazy(() => import("./delete-page-modal-3OWHRhV4.js")), J = I.lazy(()
|
|
|
76
76
|
}, [e, s, i, d, m]);
|
|
77
77
|
const S = () => {
|
|
78
78
|
if (N) {
|
|
79
|
-
if (s.type === "DYNAMIC" && !
|
|
79
|
+
if (s.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || "")) {
|
|
80
80
|
r === "ALERT" && m("PENDING");
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
@@ -96,7 +96,7 @@ const O = I.lazy(() => import("./delete-page-modal-3OWHRhV4.js")), J = I.lazy(()
|
|
|
96
96
|
if (!o)
|
|
97
97
|
return p;
|
|
98
98
|
const a = { [o]: l[o] };
|
|
99
|
-
return o === "name" ? a.slug =
|
|
99
|
+
return o === "name" ? a.slug = B((E = l[o]) == null ? void 0 : E.replace(/\d/g, "")) : o === "slug" ? a.slug = (A = l[o]) == null ? void 0 : A.replace(/\d/g, "").replace(/\s+/g, "").replace("--", "-").replace("__", "_") : o === "seoData" && (a.seoData = {
|
|
100
100
|
title: l[o].title || "",
|
|
101
101
|
description: l[o].description || "",
|
|
102
102
|
image: l[o].image || ""
|
|
@@ -146,7 +146,7 @@ const O = I.lazy(() => import("./delete-page-modal-3OWHRhV4.js")), J = I.lazy(()
|
|
|
146
146
|
default: d.isHomePage
|
|
147
147
|
})
|
|
148
148
|
};
|
|
149
|
-
return /* @__PURE__ */ t.jsxs(
|
|
149
|
+
return /* @__PURE__ */ t.jsxs(Y, { className: "flex h-full select-none flex-col", children: [
|
|
150
150
|
/* @__PURE__ */ t.jsx(
|
|
151
151
|
J,
|
|
152
152
|
{
|
|
@@ -160,7 +160,7 @@ const O = I.lazy(() => import("./delete-page-modal-3OWHRhV4.js")), J = I.lazy(()
|
|
|
160
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" }) }),
|
|
161
161
|
/* @__PURE__ */ t.jsx("div", { className: "px-2.5 pt-2", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
162
162
|
/* @__PURE__ */ t.jsx(
|
|
163
|
-
|
|
163
|
+
h,
|
|
164
164
|
{
|
|
165
165
|
title: "Basic Details",
|
|
166
166
|
formData: i,
|
|
@@ -171,7 +171,7 @@ const O = I.lazy(() => import("./delete-page-modal-3OWHRhV4.js")), J = I.lazy(()
|
|
|
171
171
|
),
|
|
172
172
|
/* @__PURE__ */ t.jsx("div", { className: "h-2 w-full" }),
|
|
173
173
|
/* @__PURE__ */ t.jsx(
|
|
174
|
-
|
|
174
|
+
h,
|
|
175
175
|
{
|
|
176
176
|
title: "SEO Details",
|
|
177
177
|
formData: i,
|
|
@@ -181,7 +181,7 @@ const O = I.lazy(() => import("./delete-page-modal-3OWHRhV4.js")), J = I.lazy(()
|
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
183
|
(e == null ? void 0 : e.homepage) !== s.uuid && s.type === "STATIC" ? /* @__PURE__ */ t.jsx(
|
|
184
|
-
|
|
184
|
+
h,
|
|
185
185
|
{
|
|
186
186
|
formData: d,
|
|
187
187
|
properties: R,
|
|
@@ -189,22 +189,22 @@ const O = I.lazy(() => import("./delete-page-modal-3OWHRhV4.js")), J = I.lazy(()
|
|
|
189
189
|
disabled: n.isPending || c.isPending
|
|
190
190
|
}
|
|
191
191
|
) : s.type === "STATIC" && /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1 px-1 pt-2 text-xs font-medium text-gray-500", children: [
|
|
192
|
-
/* @__PURE__ */ t.jsx(
|
|
192
|
+
/* @__PURE__ */ t.jsx(G, {}),
|
|
193
193
|
" This is homepage",
|
|
194
194
|
" "
|
|
195
195
|
] }),
|
|
196
|
-
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: [
|
|
197
197
|
"Add dynamic ID in page slug Eg: ",
|
|
198
198
|
/* @__PURE__ */ t.jsx("i", { className: "underline", children: "some-url/[some-id]" })
|
|
199
199
|
] }),
|
|
200
200
|
/* @__PURE__ */ t.jsxs("div", { className: "my-2 flex w-full items-center justify-between gap-x-2 px-1", children: [
|
|
201
201
|
/* @__PURE__ */ t.jsx(
|
|
202
|
-
|
|
202
|
+
q,
|
|
203
203
|
{
|
|
204
204
|
className: "w-full",
|
|
205
205
|
type: "submit",
|
|
206
206
|
onClick: S,
|
|
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" && !
|
|
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) || ""),
|
|
208
208
|
children: "Save"
|
|
209
209
|
}
|
|
210
210
|
),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-Z_BpKhVy.cjs"),g=require("react"),c=require("lodash-es"),H=require("@radix-ui/react-icons"),y=require("./ChaiBuilderEditor-H173PF4T.cjs"),d=require("./controls-rRZhz0vu.cjs"),w=require("sonner"),p=require("./form-YMuxx9Ju.cjs"),h=require("./index-9gfJqJ6E.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("clsx");require("react-dom");require("@radix-ui/react-scroll-area");require("@floating-ui/react-dom");require("jotai");require("i18next");require("react-i18next");require("flagged");require("./MODIFIERS-mVmfEGgo.cjs");require("./Functions-N3yhPYKY.cjs");require("tailwind-merge");require("@chaibuilder/runtime");require("@react-hookz/web");require("tree-model");require("./utils-D_vtk3zK.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-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");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-quill");require("react-hotkeys-hook");require("lucide-react");require("./index-ecnGWzh9.cjs");require("@rjsf/core");require("@rjsf/validator-ajv8");require("./core.cjs");require("./html-to-json-9uiQ2Dp2.cjs");require("himalaya");const z=g.lazy(()=>Promise.resolve().then(()=>require("./delete-page-modal-G_aMq7K4.cjs"))),L=g.lazy(()=>Promise.resolve().then(()=>require("./confirm-alert-fK62IiTF.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},P=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(P(o).seoData,P(n).seoData);return s||q},Y=({open:n,setOpen:o,pageData:s})=>{const q=h.useQueryClient(),{data:e}=h.useProject(),u=h.useUpdatePage(),m=h.useUpdateProject("Homepage updated successfully."),[i,b]=g.useState(P(s)),[a,A]=g.useState({isHomePage:(e==null?void 0:e.homepage)===s.uuid}),j=G(i,s);g.useEffect(()=>{const l=!c.isEqual(P(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(f=>{var S,N;if(!t)return f;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||""}),{...f,...x}})},I=({formData:l},t)=>{A(f=>{const x={[t]:l[t]};return{...f,...x}})},v={name:d.g({title:"Page Name",default:i.name}),slug:d.g({title:"Page Slug",default:i.slug})},T={seoData:d.h({title:"",description:"",default:{title:"",description:"",image:""},properties:{title:d.g({title:"Meta Title",default:i.name}),description:d.r({title:"Meta Description",default:i.slug}),image:d.v({title:"Social Media Image",default:""})}})},M={isHomePage:d.c({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-9gfJqJ6E.cjs");require("react");require("sonner");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("./core.cjs");require("./ChaiBuilderEditor-H173PF4T.cjs");require("clsx");require("react-dom");require("@radix-ui/react-scroll-area");require("@floating-ui/react-dom");require("jotai");require("i18next");require("react-i18next");require("flagged");require("lodash-es");require("./MODIFIERS-mVmfEGgo.cjs");require("./Functions-N3yhPYKY.cjs");require("tailwind-merge");require("@chaibuilder/runtime");require("@react-hookz/web");require("tree-model");require("./utils-D_vtk3zK.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-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-quill");require("react-hotkeys-hook");require("lucide-react");require("./index-ecnGWzh9.cjs");require("./html-to-json-9uiQ2Dp2.cjs");require("himalaya");exports.ChaiBuilderStudio=e.ChaiBuilderStudio;
|
package/dist/studio.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import { C as Z } from "./index-
|
|
2
|
+
import { C as Z } from "./index-vpfLlP7N.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "sonner";
|
|
5
5
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
6
6
|
import "./core.js";
|
|
7
|
-
import "./ChaiBuilderEditor-
|
|
7
|
+
import "./ChaiBuilderEditor-KEwDa8Bl.js";
|
|
8
8
|
import "clsx";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "@radix-ui/react-scroll-area";
|
|
@@ -14,14 +14,13 @@ import "i18next";
|
|
|
14
14
|
import "react-i18next";
|
|
15
15
|
import "flagged";
|
|
16
16
|
import "lodash-es";
|
|
17
|
-
import "./
|
|
17
|
+
import "./MODIFIERS-fd5XOmum.js";
|
|
18
18
|
import "./Functions-7jnEwJyw.js";
|
|
19
19
|
import "tailwind-merge";
|
|
20
20
|
import "@chaibuilder/runtime";
|
|
21
21
|
import "@react-hookz/web";
|
|
22
|
-
import "./MODIFIERS-cBT31iqE.js";
|
|
23
22
|
import "tree-model";
|
|
24
|
-
import "./utils-
|
|
23
|
+
import "./utils-VpVqnC9m.js";
|
|
25
24
|
import "@radix-ui/react-toggle";
|
|
26
25
|
import "class-variance-authority";
|
|
27
26
|
import "@radix-ui/react-switch";
|
|
@@ -46,7 +45,8 @@ import "react-icons-picker";
|
|
|
46
45
|
import "react-quill";
|
|
47
46
|
import "react-hotkeys-hook";
|
|
48
47
|
import "lucide-react";
|
|
49
|
-
import "./
|
|
48
|
+
import "./index-YpnaudSM.js";
|
|
49
|
+
import "./html-to-json-ofq1N3tB.js";
|
|
50
50
|
import "himalaya";
|
|
51
51
|
export {
|
|
52
52
|
Z as ChaiBuilderStudio
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ChaiBuilderEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ChaiBuilderEditor-H173PF4T.cjs");require("./jsx-runtime-Z_BpKhVy.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("react");require("clsx");require("react-dom");require("@radix-ui/react-scroll-area");require("@floating-ui/react-dom");require("jotai");require("i18next");require("react-i18next");require("flagged");require("lodash-es");require("./MODIFIERS-mVmfEGgo.cjs");require("./Functions-N3yhPYKY.cjs");require("tailwind-merge");require("@chaibuilder/runtime");require("@react-hookz/web");require("tree-model");require("./utils-D_vtk3zK.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-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-quill");require("react-hotkeys-hook");require("lucide-react");require("./index-ecnGWzh9.cjs");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;
|