@chaibuilder/sdk 1.0.19 → 1.0.21
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-eoo1CzaK.js → AddBlocks-0-e393Fn.js} +29 -27
- package/dist/AddBlocks-p68Cz79o.cjs +3 -0
- package/dist/BrandingOptions-HtNCJO9_.cjs +1 -0
- package/dist/{BrandingOptions-1zbCs5bl.js → BrandingOptions-QqqJ-YRb.js} +15 -22
- package/dist/{CanvasArea-Mpb5yTgf.js → CanvasArea-0hMAhzxn.js} +15 -14
- package/dist/{CanvasArea-AsL1cGRZ.cjs → CanvasArea-pZz5czrV.cjs} +4 -4
- package/dist/{CurrentPage-ddbm_deC.js → CurrentPage-UOkxZISs.js} +16 -15
- package/dist/CurrentPage-phMDH1Ub.cjs +1 -0
- package/dist/Layers-NKZXi2LV.cjs +1 -0
- package/dist/{Layers-3UtlSah_.js → Layers-TB-Lriju.js} +18 -17
- package/dist/MODIFIERS-MLfpKQY1.js +73 -0
- package/dist/MODIFIERS-WFzDQfiT.cjs +1 -0
- package/dist/MarkAsGlobalBlock-5h3wP4zj.cjs +1 -0
- package/dist/{MarkAsGlobalBlock-ySc-D4SB.js → MarkAsGlobalBlock-Pa8po8qP.js} +11 -10
- package/dist/PagesPanel-ffrNyFyp.cjs +1 -0
- package/dist/{PagesPanel-nLcJD9CK.js → PagesPanel-mAMSbYPt.js} +20 -19
- package/dist/ProjectPanel-1ywILLme.cjs +1 -0
- package/dist/{ProjectPanel-sFE2KDi-.js → ProjectPanel-XvsYajju.js} +17 -16
- package/dist/{Settings-UOB68lg0.js → Settings-8AbHXcDP.js} +98 -96
- package/dist/Settings-hdmnT_mI.cjs +1 -0
- package/dist/{SidePanels-IFF2nXXZ.js → SidePanels-LQg3mdC4.js} +28 -27
- package/dist/SidePanels-xaNrI3oK.cjs +1 -0
- package/dist/Topbar-A3WZDrK4.cjs +1 -0
- package/dist/{Topbar-lX9OMPwj.js → Topbar-wA6jhMj9.js} +27 -26
- package/dist/UnsplashImages-E8zPMgJf.cjs +1 -0
- package/dist/{UnsplashImages-u_QTABzi.js → UnsplashImages-mzIO1QeT.js} +9 -8
- package/dist/UploadImages-qEuDUEMn.cjs +1 -0
- package/dist/{UploadImages-gV5xDHIu.js → UploadImages-qMeaY4sk.js} +9 -8
- package/dist/add-page-modal-9deiA1W9.cjs +1 -0
- package/dist/{add-page-modal-1z_f7PxL.js → add-page-modal-oER3yE4F.js} +21 -19
- package/dist/{confirm-alert-ZQ-sxX0X.js → confirm-alert-rDSai_jQ.js} +10 -9
- package/dist/confirm-alert-tH8UCCSF.cjs +1 -0
- package/dist/controls-G0puEH71.js +120 -0
- package/dist/controls-aHZq-q4b.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +72 -71
- package/dist/{delete-page-modal-OnKk3P5L.js → delete-page-modal-QzQdrLYI.js} +22 -21
- package/dist/delete-page-modal-ShTRkqkB.cjs +1 -0
- package/dist/{form-Osm1AmO5.cjs → form-MlgUSEy_.cjs} +1 -1
- package/dist/{form-zZJyZuNH.js → form-vWeEsG9Y.js} +2 -2
- package/dist/functions-eu6BbvqO.cjs +2 -0
- package/dist/functions-hmbWDcnW.js +1108 -0
- package/dist/{index-2EHcmZqL.js → index-G55KtqnU.js} +191 -190
- package/dist/index-T5MFAHA0.cjs +1 -0
- package/dist/{index-2-Cf7p7w.js → index-mLIwGF5W.js} +5439 -5429
- package/dist/{index-vKSUqeQx.cjs → index-pCHSFoQO.cjs} +44 -44
- package/dist/{jsx-runtime-qAwJ85SY.js → jsx-runtime-NV737rRe.js} +1 -1
- package/dist/{jsx-runtime-WKRPbKtm.cjs → jsx-runtime-WUGKV8jN.cjs} +6 -6
- package/dist/lib.cjs +1 -2
- package/dist/lib.js +116 -1208
- package/dist/page-viewer-GPNN1H92.cjs +1 -0
- package/dist/{page-viewer-d2r9KEIw.js → page-viewer-X3IEOrUC.js} +18 -17
- package/dist/project-general-setting-HZeYf9A1.cjs +1 -0
- package/dist/{project-general-setting--Qu-QJlM.js → project-general-setting-oujmeWOG.js} +22 -20
- package/dist/project-seo-setting-3FZQXaTn.cjs +1 -0
- package/dist/{project-seo-setting-v6l-AbZS.js → project-seo-setting-_X6ckVa4.js} +17 -24
- package/dist/render.cjs +1 -1
- package/dist/render.js +39 -43
- package/dist/server.cjs +1 -1
- package/dist/server.js +1 -1
- package/dist/single-page-detail-ILshOKys.cjs +1 -0
- package/dist/{single-page-detail-olLc2XXk.js → single-page-detail-SxboE7TI.js} +47 -45
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +20 -19
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +4 -4
- package/dist/ui.js +145 -144
- package/dist/utils-It2K33fU.cjs +1 -0
- package/dist/{Class-nQk08vqd.js → utils-PPBbw5bk.js} +115 -183
- package/package.json +2 -7
- package/dist/AddBlocks-jU0NwP_s.cjs +0 -3
- package/dist/BrandingOptions-DXAH3zCN.cjs +0 -1
- package/dist/Class-RZuPYbUS.cjs +0 -1
- package/dist/CurrentPage-VYXjpKJ-.cjs +0 -1
- package/dist/Layers-cUeI3Uhq.cjs +0 -1
- package/dist/MarkAsGlobalBlock-lYL8cO9x.cjs +0 -1
- package/dist/PagesPanel-iFpq7X9a.cjs +0 -1
- package/dist/ProjectPanel-Nq_fot83.cjs +0 -1
- package/dist/Settings-jiWn1Oof.cjs +0 -1
- package/dist/SidePanels-JhPtKGnL.cjs +0 -1
- package/dist/Topbar-qi5ab8rR.cjs +0 -1
- package/dist/UnsplashImages-a2r7b3kB.cjs +0 -1
- package/dist/UploadImages-jLQgLujd.cjs +0 -1
- package/dist/add-page-modal-iRSIjkvI.cjs +0 -1
- package/dist/blocks.cjs +0 -1
- package/dist/blocks.d.ts +0 -4
- package/dist/blocks.js +0 -20
- package/dist/confirm-alert-z74-fGOT.cjs +0 -1
- package/dist/delete-page-modal-a3Tb8T6e.cjs +0 -1
- package/dist/index-XvLiA8z7.js +0 -1191
- package/dist/index-c8zW_D2V.cjs +0 -1
- package/dist/index-fwo4wa7u.cjs +0 -1
- package/dist/index-gmZcUXyn.js +0 -25
- package/dist/index-l9moYwFE.cjs +0 -9
- package/dist/page-viewer-9OzvKHZd.cjs +0 -1
- package/dist/project-general-setting-15WMnfLc.cjs +0 -1
- package/dist/project-seo-setting-PvLLVhvk.cjs +0 -1
- package/dist/single-page-detail-jIi5lRLh.cjs +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-
|
|
1
|
+
import { j as s } from "./jsx-runtime-NV737rRe.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";
|
|
4
4
|
import { HomeIcon as G } from "@radix-ui/react-icons";
|
|
5
|
-
import { bp as Y, B as q } from "./index-
|
|
6
|
-
import { u as g, b as Z, g as $, o as F, r as Q } from "./
|
|
5
|
+
import { bp as Y, B as q } from "./index-G55KtqnU.js";
|
|
6
|
+
import { u as g, b as Z, g as $, o as F, r as Q } from "./controls-G0puEH71.js";
|
|
7
7
|
import { toast as U } from "sonner";
|
|
8
|
-
import { F as h } from "./form-
|
|
9
|
-
import { h as V, b as X, i as _, c as K } from "./index-
|
|
10
|
-
import "./
|
|
11
|
-
import "clsx";
|
|
12
|
-
import "tailwind-merge";
|
|
8
|
+
import { F as h } from "./form-vWeEsG9Y.js";
|
|
9
|
+
import { h as V, b as X, i as _, c as K } from "./index-mLIwGF5W.js";
|
|
10
|
+
import "./MODIFIERS-MLfpKQY1.js";
|
|
13
11
|
import "@radix-ui/react-toggle";
|
|
14
12
|
import "class-variance-authority";
|
|
13
|
+
import "./utils-PPBbw5bk.js";
|
|
14
|
+
import "clsx";
|
|
15
|
+
import "tailwind-merge";
|
|
15
16
|
import "@radix-ui/react-switch";
|
|
16
17
|
import "@radix-ui/react-slot";
|
|
17
18
|
import "@radix-ui/react-accordion";
|
|
@@ -36,17 +37,9 @@ import "react-quill";
|
|
|
36
37
|
import "jotai";
|
|
37
38
|
import "flat-to-nested";
|
|
38
39
|
import "redux-undo";
|
|
39
|
-
import "
|
|
40
|
+
import "@chaibuilder/runtime";
|
|
40
41
|
import "@react-hookz/web";
|
|
41
42
|
import "react-i18next";
|
|
42
|
-
import "./lib.js";
|
|
43
|
-
import "himalaya";
|
|
44
|
-
import "@mhsdesign/jit-browser-tailwindcss";
|
|
45
|
-
import "@bobthered/tailwindcss-palette-generator";
|
|
46
|
-
import "@tailwindcss/forms";
|
|
47
|
-
import "@tailwindcss/typography";
|
|
48
|
-
import "@tailwindcss/aspect-ratio";
|
|
49
|
-
import "@tailwindcss/line-clamp";
|
|
50
43
|
import "@rjsf/core";
|
|
51
44
|
import "@rjsf/validator-ajv8";
|
|
52
45
|
import "i18next";
|
|
@@ -55,66 +48,75 @@ import "react-textarea-autosize";
|
|
|
55
48
|
import "flagged";
|
|
56
49
|
import "react-dnd";
|
|
57
50
|
import "@minoru/react-dnd-treeview";
|
|
51
|
+
import "./lib.js";
|
|
52
|
+
import "himalaya";
|
|
53
|
+
import "./functions-hmbWDcnW.js";
|
|
54
|
+
import "@mhsdesign/jit-browser-tailwindcss";
|
|
55
|
+
import "@bobthered/tailwindcss-palette-generator";
|
|
56
|
+
import "@tailwindcss/forms";
|
|
57
|
+
import "@tailwindcss/typography";
|
|
58
|
+
import "@tailwindcss/aspect-ratio";
|
|
59
|
+
import "@tailwindcss/line-clamp";
|
|
58
60
|
import "react-hotkeys-hook";
|
|
59
61
|
import "lucide-react";
|
|
60
|
-
const O = I.lazy(() => import("./delete-page-modal-
|
|
62
|
+
const O = I.lazy(() => import("./delete-page-modal-QzQdrLYI.js")), J = I.lazy(() => import("./confirm-alert-rDSai_jQ.js")), P = (r) => {
|
|
61
63
|
if (!L(r) || !(r.includes("/[") && r.includes("]")))
|
|
62
64
|
return !1;
|
|
63
|
-
const t = /^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/,
|
|
65
|
+
const t = /^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/, p = /^[a-zA-Z0-9_-]+$/;
|
|
64
66
|
let e = !0;
|
|
65
|
-
return r.split("/").forEach((
|
|
66
|
-
e && (
|
|
67
|
+
return r.split("/").forEach((m) => {
|
|
68
|
+
e && (m.includes("[[") && m.includes("]]") ? e = /^\[\[\.{3}[a-zA-Z0-9_-]+\]\]$/.test(m) : m.includes("[") && m.includes("]") ? e = t.test(m) : e = p.test(m));
|
|
67
69
|
}), e;
|
|
68
70
|
}, f = (r) => r && x(r.seoData) ? {
|
|
69
71
|
...r,
|
|
70
72
|
seoData: { title: "", description: "", image: "" }
|
|
71
|
-
} : r, W = (r,
|
|
72
|
-
const t = !C(y(r, ["seoData"]), y(
|
|
73
|
-
return t ||
|
|
74
|
-
},
|
|
75
|
-
const
|
|
73
|
+
} : r, W = (r, n) => {
|
|
74
|
+
const t = !C(y(r, ["seoData"]), y(n, ["seoData"])), p = !C(f(n).seoData, f(r).seoData);
|
|
75
|
+
return t || p;
|
|
76
|
+
}, ri = ({ open: r, setOpen: n, pageData: t }) => {
|
|
77
|
+
const p = V(), { data: e } = X(), m = _(), c = K("Homepage updated successfully."), [i, T] = j(f(t)), [d, v] = j({
|
|
76
78
|
isHomePage: (e == null ? void 0 : e.homepage) === t.uuid
|
|
77
79
|
}), N = W(i, t);
|
|
78
80
|
z(() => {
|
|
79
81
|
const l = !C(f(t), i), o = (e == null ? void 0 : e.homepage) !== t.uuid && d.isHomePage;
|
|
80
|
-
|
|
81
|
-
}, [e, t, i, d,
|
|
82
|
+
n(l || o ? "PENDING" : "OPEN");
|
|
83
|
+
}, [e, t, i, d, n]);
|
|
82
84
|
const S = () => {
|
|
83
85
|
if (N) {
|
|
84
86
|
if (t.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || "")) {
|
|
85
|
-
r === "ALERT" &&
|
|
87
|
+
r === "ALERT" && n("PENDING");
|
|
86
88
|
return;
|
|
87
89
|
}
|
|
88
|
-
|
|
90
|
+
m.mutate(i, {
|
|
89
91
|
onSuccess: () => {
|
|
90
|
-
|
|
92
|
+
p.invalidateQueries({
|
|
91
93
|
refetchType: "active",
|
|
92
94
|
queryKey: ["pages", e == null ? void 0 : e.uuid]
|
|
93
|
-
}),
|
|
95
|
+
}), n("CLOSE"), U.success("Page updated successfully.");
|
|
94
96
|
}
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
|
-
d.isHomePage && (e == null ? void 0 : e.homepage) !== t.uuid && c.mutate({ ...e, homepage: t == null ? void 0 : t.uuid }, { onSuccess: () =>
|
|
99
|
+
d.isHomePage && (e == null ? void 0 : e.homepage) !== t.uuid && c.mutate({ ...e, homepage: t == null ? void 0 : t.uuid }, { onSuccess: () => n("CLOSE") });
|
|
98
100
|
}, b = ({ formData: l }, o) => {
|
|
99
|
-
T((
|
|
101
|
+
T((u) => {
|
|
100
102
|
var E, A;
|
|
101
103
|
if (!o)
|
|
102
|
-
return
|
|
104
|
+
return u;
|
|
103
105
|
const a = { [o]: l[o] };
|
|
104
106
|
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 = {
|
|
105
107
|
title: l[o].title || "",
|
|
106
108
|
description: l[o].description || "",
|
|
107
109
|
image: l[o].image || ""
|
|
108
110
|
}), {
|
|
109
|
-
...
|
|
111
|
+
...u,
|
|
110
112
|
...a
|
|
111
113
|
};
|
|
112
114
|
});
|
|
113
115
|
}, H = ({ formData: l }, o) => {
|
|
114
|
-
v((
|
|
116
|
+
v((u) => {
|
|
115
117
|
const a = { [o]: l[o] };
|
|
116
118
|
return {
|
|
117
|
-
...
|
|
119
|
+
...u,
|
|
118
120
|
...a
|
|
119
121
|
};
|
|
120
122
|
});
|
|
@@ -157,9 +159,9 @@ const O = I.lazy(() => import("./delete-page-modal-OnKk3P5L.js")), J = I.lazy(()
|
|
|
157
159
|
{
|
|
158
160
|
open: r === "ALERT",
|
|
159
161
|
title: "Do yo want to save changes?",
|
|
160
|
-
onCancel: () =>
|
|
162
|
+
onCancel: () => n("CLOSE"),
|
|
161
163
|
onConfirm: S,
|
|
162
|
-
disabled: c.isPending ||
|
|
164
|
+
disabled: c.isPending || m.isPending
|
|
163
165
|
}
|
|
164
166
|
),
|
|
165
167
|
/* @__PURE__ */ s.jsx("div", { className: "rounded-md bg-background/30 px-2.5 py-1", children: /* @__PURE__ */ s.jsx("h1", { className: "px-1 font-semibold", children: "Page Details" }) }),
|
|
@@ -171,7 +173,7 @@ const O = I.lazy(() => import("./delete-page-modal-OnKk3P5L.js")), J = I.lazy(()
|
|
|
171
173
|
formData: i,
|
|
172
174
|
properties: M,
|
|
173
175
|
onChange: b,
|
|
174
|
-
disabled:
|
|
176
|
+
disabled: m.isPending || c.isPending
|
|
175
177
|
}
|
|
176
178
|
),
|
|
177
179
|
/* @__PURE__ */ s.jsx("div", { className: "h-2 w-full" }),
|
|
@@ -182,7 +184,7 @@ const O = I.lazy(() => import("./delete-page-modal-OnKk3P5L.js")), J = I.lazy(()
|
|
|
182
184
|
formData: i,
|
|
183
185
|
properties: w,
|
|
184
186
|
onChange: b,
|
|
185
|
-
disabled:
|
|
187
|
+
disabled: m.isPending || c.isPending
|
|
186
188
|
}
|
|
187
189
|
),
|
|
188
190
|
(e == null ? void 0 : e.homepage) !== t.uuid && t.type === "STATIC" ? /* @__PURE__ */ s.jsx(
|
|
@@ -191,7 +193,7 @@ const O = I.lazy(() => import("./delete-page-modal-OnKk3P5L.js")), J = I.lazy(()
|
|
|
191
193
|
formData: d,
|
|
192
194
|
properties: R,
|
|
193
195
|
onChange: H,
|
|
194
|
-
disabled:
|
|
196
|
+
disabled: m.isPending || c.isPending
|
|
195
197
|
}
|
|
196
198
|
) : t.type === "STATIC" && /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-x-1 px-1 pt-2 text-xs font-medium text-gray-500", children: [
|
|
197
199
|
/* @__PURE__ */ s.jsx(G, {}),
|
|
@@ -209,7 +211,7 @@ const O = I.lazy(() => import("./delete-page-modal-OnKk3P5L.js")), J = I.lazy(()
|
|
|
209
211
|
className: "w-full",
|
|
210
212
|
type: "submit",
|
|
211
213
|
onClick: S,
|
|
212
|
-
disabled: (e == null ? void 0 : e.homepage) !== t.uuid && d.isHomePage ? !1 : x(i.name) || x(i.slug) || !N ||
|
|
214
|
+
disabled: (e == null ? void 0 : e.homepage) !== t.uuid && d.isHomePage ? !1 : x(i.name) || x(i.slug) || !N || m.isPending || c.isPending || i.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || ""),
|
|
213
215
|
children: "Save"
|
|
214
216
|
}
|
|
215
217
|
),
|
|
@@ -219,5 +221,5 @@ const O = I.lazy(() => import("./delete-page-modal-OnKk3P5L.js")), J = I.lazy(()
|
|
|
219
221
|
] });
|
|
220
222
|
};
|
|
221
223
|
export {
|
|
222
|
-
|
|
224
|
+
ri as default
|
|
223
225
|
};
|
package/dist/studio.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./jsx-runtime-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./jsx-runtime-WUGKV8jN.cjs");const e=require("./index-pCHSFoQO.cjs");require("react");require("sonner");require("./MODIFIERS-WFzDQfiT.cjs");require("i18next");require("react-i18next");require("./index-T5MFAHA0.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-It2K33fU.cjs");require("lodash");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-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("jotai");require("flat-to-nested");require("redux-undo");require("@chaibuilder/runtime");require("@react-hookz/web");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("./lib.cjs");require("himalaya");require("./functions-eu6BbvqO.cjs");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("react-hotkeys-hook");require("lucide-react");exports.ChaiBuilderStudio=e.ChaiBuilderStudio;
|
package/dist/studio.js
CHANGED
|
@@ -1,30 +1,21 @@
|
|
|
1
|
-
import "./jsx-runtime-
|
|
2
|
-
import { C as
|
|
1
|
+
import "./jsx-runtime-NV737rRe.js";
|
|
2
|
+
import { C as mi } from "./index-mLIwGF5W.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "sonner";
|
|
5
|
-
import "./
|
|
6
|
-
import "clsx";
|
|
7
|
-
import "tailwind-merge";
|
|
8
|
-
import "lodash";
|
|
5
|
+
import "./MODIFIERS-MLfpKQY1.js";
|
|
9
6
|
import "i18next";
|
|
10
7
|
import "react-i18next";
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-gmZcUXyn.js";
|
|
13
|
-
import "@radix-ui/react-icons";
|
|
14
|
-
import "./lib.js";
|
|
15
|
-
import "himalaya";
|
|
16
|
-
import "@mhsdesign/jit-browser-tailwindcss";
|
|
17
|
-
import "@bobthered/tailwindcss-palette-generator";
|
|
18
|
-
import "@tailwindcss/forms";
|
|
19
|
-
import "@tailwindcss/typography";
|
|
20
|
-
import "@tailwindcss/aspect-ratio";
|
|
21
|
-
import "@tailwindcss/line-clamp";
|
|
22
|
-
import "./index-2EHcmZqL.js";
|
|
8
|
+
import "./index-G55KtqnU.js";
|
|
23
9
|
import "@radix-ui/react-toggle";
|
|
24
10
|
import "class-variance-authority";
|
|
11
|
+
import "./utils-PPBbw5bk.js";
|
|
12
|
+
import "lodash";
|
|
13
|
+
import "clsx";
|
|
14
|
+
import "tailwind-merge";
|
|
25
15
|
import "@radix-ui/react-switch";
|
|
26
16
|
import "@radix-ui/react-slot";
|
|
27
17
|
import "@radix-ui/react-accordion";
|
|
18
|
+
import "@radix-ui/react-icons";
|
|
28
19
|
import "@radix-ui/react-alert-dialog";
|
|
29
20
|
import "@radix-ui/react-dialog";
|
|
30
21
|
import "@radix-ui/react-label";
|
|
@@ -46,14 +37,24 @@ import "react-quill";
|
|
|
46
37
|
import "jotai";
|
|
47
38
|
import "flat-to-nested";
|
|
48
39
|
import "redux-undo";
|
|
40
|
+
import "@chaibuilder/runtime";
|
|
49
41
|
import "@react-hookz/web";
|
|
50
42
|
import "@floating-ui/react-dom";
|
|
51
43
|
import "react-textarea-autosize";
|
|
52
44
|
import "flagged";
|
|
53
45
|
import "react-dnd";
|
|
54
46
|
import "@minoru/react-dnd-treeview";
|
|
47
|
+
import "./lib.js";
|
|
48
|
+
import "himalaya";
|
|
49
|
+
import "./functions-hmbWDcnW.js";
|
|
50
|
+
import "@mhsdesign/jit-browser-tailwindcss";
|
|
51
|
+
import "@bobthered/tailwindcss-palette-generator";
|
|
52
|
+
import "@tailwindcss/forms";
|
|
53
|
+
import "@tailwindcss/typography";
|
|
54
|
+
import "@tailwindcss/aspect-ratio";
|
|
55
|
+
import "@tailwindcss/line-clamp";
|
|
55
56
|
import "react-hotkeys-hook";
|
|
56
57
|
import "lucide-react";
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
+
mi as ChaiBuilderStudio
|
|
59
60
|
};
|
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-T5MFAHA0.cjs");require("./jsx-runtime-WUGKV8jN.cjs");require("./MODIFIERS-WFzDQfiT.cjs");require("react");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-It2K33fU.cjs");require("lodash");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-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("jotai");require("flat-to-nested");require("redux-undo");require("@chaibuilder/runtime");require("@react-hookz/web");require("react-i18next");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.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
|
|
|
104
104
|
|
|
105
105
|
export declare const buttonVariants: (props?: {
|
|
106
106
|
variant?: "link" | "default" | "outline" | "secondary" | "destructive" | "ghost";
|
|
107
|
-
size?: "icon" | "
|
|
107
|
+
size?: "icon" | "default" | "sm" | "lg";
|
|
108
108
|
} & ClassProp) => string;
|
|
109
109
|
|
|
110
110
|
export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -153,7 +153,7 @@ export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<R
|
|
|
153
153
|
|
|
154
154
|
export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
|
|
155
155
|
children?: React_2.ReactNode;
|
|
156
|
-
} & Omit<React_2.HTMLAttributes<HTMLDivElement>, "
|
|
156
|
+
} & Omit<React_2.HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
|
|
157
157
|
disabled?: boolean;
|
|
158
158
|
onSelect?: (value: string) => void;
|
|
159
159
|
value?: string;
|
|
@@ -444,12 +444,12 @@ declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
|
444
444
|
|
|
445
445
|
export declare const Toggle: React_2.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
446
446
|
variant?: "default" | "outline";
|
|
447
|
-
size?: "
|
|
447
|
+
size?: "default" | "sm" | "lg";
|
|
448
448
|
} & ClassProp) => string> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
449
449
|
|
|
450
450
|
export declare const toggleVariants: (props?: {
|
|
451
451
|
variant?: "default" | "outline";
|
|
452
|
-
size?: "
|
|
452
|
+
size?: "default" | "sm" | "lg";
|
|
453
453
|
} & ClassProp) => string;
|
|
454
454
|
|
|
455
455
|
export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
|