@chaibuilder/sdk 1.2.10 → 1.2.12
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/README.md +10 -12
- package/dist/AddBlocks-ByeMUUzE.js +218 -0
- package/dist/AddBlocks-nMUkm4og.cjs +1 -0
- package/dist/{BrandingOptions-10jJO8mG.js → BrandingOptions--poS5shs.js} +18 -21
- package/dist/BrandingOptions-eeDfvB0R.cjs +1 -0
- package/dist/{CanvasArea-jgBDM5Qd.js → CanvasArea--TKubnIM.js} +184 -185
- package/dist/{CanvasArea-6O8dMPug.cjs → CanvasArea-h4lA4oqP.cjs} +4 -4
- package/dist/{utils-AvyFzbPC.js → Class-17XFhL48.js} +15 -16
- package/dist/Class-5ARpH_Tu.cjs +1 -0
- package/dist/CurrentPage-B3YumhrX.cjs +1 -0
- package/dist/{CurrentPage-lakeZviD.js → CurrentPage-Gw9LJ40j.js} +24 -25
- package/dist/Layers-4r_4F6ST.cjs +1 -0
- package/dist/{Layers-R7TfREUd.js → Layers-d-xge4On.js} +77 -78
- package/dist/{PagesPanel-4mqxCFHq.js → PagesPanel-E4wSgVcE.js} +14 -15
- package/dist/PagesPanel-iZLDBwXQ.cjs +1 -0
- package/dist/ProjectPanel-2TcqGnfN.cjs +1 -0
- package/dist/{ProjectPanel-Wy2nw-1w.js → ProjectPanel-q7upaf7h.js} +17 -18
- package/dist/Settings-NuDNH2dR.cjs +1 -0
- package/dist/{Settings-_K28Ontt.js → Settings-y3DHsT88.js} +163 -164
- package/dist/SidePanels-91l1CjYv.cjs +1 -0
- package/dist/{SidePanels-6slnxdSj.js → SidePanels-BK_QnEh9.js} +40 -41
- package/dist/{Topbar-bwt6HjlL.js → Topbar-b7jnOD57.js} +16 -17
- package/dist/Topbar-rEO5z57t.cjs +1 -0
- package/dist/{UnsplashImages-V29UE-57.js → UnsplashImages-Lb78FYx7.js} +27 -28
- package/dist/UnsplashImages-p-WdKs3b.cjs +1 -0
- package/dist/{UploadImages-E0mi_qn8.js → UploadImages-aWG_1r7N.js} +23 -24
- package/dist/UploadImages-zk-IYDx8.cjs +1 -0
- package/dist/{add-page-modal-FJEAqfD3.js → add-page-modal-7djj9GZj.js} +28 -29
- package/dist/add-page-modal-iUffBbAe.cjs +1 -0
- package/dist/{confirm-alert-5hfE116f.js → confirm-alert-QuqMrpWn.js} +12 -13
- package/dist/confirm-alert-i3FRAgP4.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +9 -50
- package/dist/core.js +47 -56
- package/dist/defaultTheme-IH19g4fv.cjs +1 -0
- package/dist/defaultTheme-YY8mlQS3.js +1055 -0
- package/dist/{delete-page-modal-wH0yLiQI.js → delete-page-modal-DEBiprds.js} +14 -15
- package/dist/delete-page-modal-RllDrgxs.cjs +1 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +100 -81
- package/dist/email.cjs +1 -0
- package/dist/email.d.ts +116 -0
- package/dist/email.js +79 -0
- package/dist/{controls-XPXGHKht.js → empty-slot-MWycClTb.js} +61 -50
- package/dist/empty-slot-TF2kd-0X.cjs +1 -0
- package/dist/{form-UVHCD9N3.js → form-94xR0NG8.js} +1 -1
- package/dist/{form-1j01gADS.cjs → form-yz7h2msc.cjs} +1 -1
- package/dist/{index-B4sL0YTN.js → index-0m8Zuv5X.js} +1434 -1552
- package/dist/{index-c2VLKuhY.js → index-19nTm_cE.js} +2069 -2059
- package/dist/index-TEfD-2ti.cjs +1 -0
- package/dist/{index-xbQL0wpz.cjs → index-XVud0HL8.cjs} +33 -33
- package/dist/lib.cjs +3 -3
- package/dist/lib.js +95 -1125
- package/dist/page-viewer-_ktv1pgX.cjs +1 -0
- package/dist/{page-viewer-TcK0I240.js → page-viewer-xPLhXv6k.js} +16 -17
- package/dist/{project-general-setting-4ruKl033.js → project-general-setting-XlORLtqJ.js} +15 -16
- package/dist/project-general-setting-nULU3Tzw.cjs +1 -0
- package/dist/project-seo-setting-9QkARPhg.cjs +1 -0
- package/dist/{project-seo-setting-d1EZlacB.js → project-seo-setting-KQkeHwny.js} +14 -15
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +2 -0
- package/dist/render.js +111 -70
- package/dist/single-page-detail-Gb6O3Yyw.cjs +1 -0
- package/dist/{single-page-detail-PihQi-dP.js → single-page-detail-gtVN9hxR.js} +44 -45
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +13 -14
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +138 -139
- package/dist/{useAddBlockByDrop-nLzs79He.cjs → useAddBlockByDrop-GU5QLPtz.cjs} +1 -1
- package/dist/{useAddBlockByDrop-rcDR-z9_.js → useAddBlockByDrop-b5KJh_7w.js} +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +313 -322
- package/package.json +8 -2
- package/dist/AddBlocks-GiMnBMeQ.js +0 -224
- package/dist/AddBlocks-SzURo9Bj.cjs +0 -1
- package/dist/BrandingOptions-yK-54R-c.cjs +0 -1
- package/dist/CurrentPage-1y62Ne77.cjs +0 -1
- package/dist/Layers-Z4nmm9xK.cjs +0 -1
- package/dist/PagesPanel-ouHdxyOH.cjs +0 -1
- package/dist/ProjectPanel-hHolYZjt.cjs +0 -1
- package/dist/Settings-EYOw02iE.cjs +0 -1
- package/dist/SidePanels-U-_O1QN8.cjs +0 -1
- package/dist/Topbar-dQEoY2P8.cjs +0 -1
- package/dist/UnsplashImages-pGgaUPQy.cjs +0 -1
- package/dist/UploadImages-7oLycdSh.cjs +0 -1
- package/dist/add-page-modal-In6XI-vZ.cjs +0 -1
- package/dist/confirm-alert-Vwd3OzL9.cjs +0 -1
- package/dist/controls-Dy1qa8Dc.cjs +0 -1
- package/dist/delete-page-modal-tl7FLK9J.cjs +0 -1
- package/dist/functions-Ox_svtKm.cjs +0 -1
- package/dist/functions-xIebp8Aw.js +0 -23
- package/dist/index-7ogwGh39.cjs +0 -1
- package/dist/page-viewer-SfQUe0SI.cjs +0 -1
- package/dist/project-general-setting-t7E2Y_w9.cjs +0 -1
- package/dist/project-seo-setting-4b_BJZDF.cjs +0 -1
- package/dist/single-page-detail-KuXd9Mur.cjs +0 -1
- package/dist/utils-PTxFk6qT.cjs +0 -1
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
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 {
|
|
6
|
-
import { u as g, b as Z, g as $, o as F, r as Q } from "./
|
|
5
|
+
import { bf as Y, B as q } from "./index-0m8Zuv5X.js";
|
|
6
|
+
import { u as g, b as Z, g as $, o as F, r as Q } from "./empty-slot-MWycClTb.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-
|
|
8
|
+
import { F as h } from "./form-94xR0NG8.js";
|
|
9
|
+
import { h as V, b as X, i as _, c as K } from "./index-19nTm_cE.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
|
-
import "
|
|
12
|
-
import "class-variance-authority";
|
|
13
|
-
import "./utils-AvyFzbPC.js";
|
|
14
|
-
import "./MODIFIERS-RiXS5Mn1.js";
|
|
11
|
+
import "./Functions-7jnEwJyw.js";
|
|
15
12
|
import "clsx";
|
|
16
13
|
import "tailwind-merge";
|
|
14
|
+
import "@chaibuilder/runtime";
|
|
15
|
+
import "jotai";
|
|
16
|
+
import "flat-to-nested";
|
|
17
|
+
import "./MODIFIERS-RiXS5Mn1.js";
|
|
18
|
+
import "@react-hookz/web";
|
|
19
|
+
import "@radix-ui/react-toggle";
|
|
20
|
+
import "class-variance-authority";
|
|
21
|
+
import "./Class-17XFhL48.js";
|
|
17
22
|
import "@radix-ui/react-switch";
|
|
18
23
|
import "@radix-ui/react-slot";
|
|
19
24
|
import "@radix-ui/react-accordion";
|
|
@@ -35,12 +40,6 @@ import "@radix-ui/react-context-menu";
|
|
|
35
40
|
import "react-icons-picker";
|
|
36
41
|
import "react-dom";
|
|
37
42
|
import "react-quill";
|
|
38
|
-
import "jotai";
|
|
39
|
-
import "flat-to-nested";
|
|
40
|
-
import "./Functions-7jnEwJyw.js";
|
|
41
|
-
import "redux-undo";
|
|
42
|
-
import "@chaibuilder/runtime";
|
|
43
|
-
import "@react-hookz/web";
|
|
44
43
|
import "react-i18next";
|
|
45
44
|
import "@rjsf/core";
|
|
46
45
|
import "@rjsf/validator-ajv8";
|
|
@@ -55,31 +54,31 @@ import "./html-to-json-57841sEK.js";
|
|
|
55
54
|
import "himalaya";
|
|
56
55
|
import "lucide-react";
|
|
57
56
|
import "./web-blocks.js";
|
|
58
|
-
const O = I.lazy(() => import("./delete-page-modal-
|
|
57
|
+
const O = I.lazy(() => import("./delete-page-modal-DEBiprds.js")), J = I.lazy(() => import("./confirm-alert-QuqMrpWn.js")), P = (r) => {
|
|
59
58
|
if (!L(r) || !(r.includes("/[") && r.includes("]")))
|
|
60
59
|
return !1;
|
|
61
|
-
const
|
|
60
|
+
const s = /^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/, u = /^[a-zA-Z0-9_-]+$/;
|
|
62
61
|
let e = !0;
|
|
63
62
|
return r.split("/").forEach((n) => {
|
|
64
|
-
e && (n.includes("[[") && n.includes("]]") ? e = /^\[\[\.{3}[a-zA-Z0-9_-]+\]\]$/.test(n) : n.includes("[") && n.includes("]") ? e =
|
|
63
|
+
e && (n.includes("[[") && n.includes("]]") ? e = /^\[\[\.{3}[a-zA-Z0-9_-]+\]\]$/.test(n) : n.includes("[") && n.includes("]") ? e = s.test(n) : e = u.test(n));
|
|
65
64
|
}), e;
|
|
66
65
|
}, f = (r) => r && x(r.seoData) ? {
|
|
67
66
|
...r,
|
|
68
67
|
seoData: { title: "", description: "", image: "" }
|
|
69
68
|
} : r, W = (r, m) => {
|
|
70
|
-
const
|
|
71
|
-
return
|
|
72
|
-
},
|
|
73
|
-
const u = V(), { data: e } = X(), n = _(), c = K("Homepage updated successfully."), [i, T] = j(f(
|
|
74
|
-
isHomePage: (e == null ? void 0 : e.homepage) ===
|
|
75
|
-
}), N = W(i,
|
|
69
|
+
const s = !C(y(r, ["seoData"]), y(m, ["seoData"])), u = !C(f(m).seoData, f(r).seoData);
|
|
70
|
+
return s || u;
|
|
71
|
+
}, ei = ({ open: r, setOpen: m, pageData: s }) => {
|
|
72
|
+
const u = V(), { data: e } = X(), n = _(), c = K("Homepage updated successfully."), [i, T] = j(f(s)), [d, v] = j({
|
|
73
|
+
isHomePage: (e == null ? void 0 : e.homepage) === s.uuid
|
|
74
|
+
}), N = W(i, s);
|
|
76
75
|
z(() => {
|
|
77
|
-
const l = !C(f(
|
|
76
|
+
const l = !C(f(s), i), o = (e == null ? void 0 : e.homepage) !== s.uuid && d.isHomePage;
|
|
78
77
|
m(l || o ? "PENDING" : "OPEN");
|
|
79
|
-
}, [e,
|
|
78
|
+
}, [e, s, i, d, m]);
|
|
80
79
|
const S = () => {
|
|
81
80
|
if (N) {
|
|
82
|
-
if (
|
|
81
|
+
if (s.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || "")) {
|
|
83
82
|
r === "ALERT" && m("PENDING");
|
|
84
83
|
return;
|
|
85
84
|
}
|
|
@@ -92,7 +91,7 @@ const O = I.lazy(() => import("./delete-page-modal-wH0yLiQI.js")), J = I.lazy(()
|
|
|
92
91
|
}
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
|
-
d.isHomePage && (e == null ? void 0 : e.homepage) !==
|
|
94
|
+
d.isHomePage && (e == null ? void 0 : e.homepage) !== s.uuid && c.mutate({ ...e, homepage: s == null ? void 0 : s.uuid }, { onSuccess: () => m("CLOSE") });
|
|
96
95
|
}, b = ({ formData: l }, o) => {
|
|
97
96
|
T((p) => {
|
|
98
97
|
var E, A;
|
|
@@ -149,8 +148,8 @@ const O = I.lazy(() => import("./delete-page-modal-wH0yLiQI.js")), J = I.lazy(()
|
|
|
149
148
|
default: d.isHomePage
|
|
150
149
|
})
|
|
151
150
|
};
|
|
152
|
-
return /* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
151
|
+
return /* @__PURE__ */ t.jsxs(Y, { className: "flex h-full select-none flex-col", children: [
|
|
152
|
+
/* @__PURE__ */ t.jsx(
|
|
154
153
|
J,
|
|
155
154
|
{
|
|
156
155
|
open: r === "ALERT",
|
|
@@ -160,9 +159,9 @@ const O = I.lazy(() => import("./delete-page-modal-wH0yLiQI.js")), J = I.lazy(()
|
|
|
160
159
|
disabled: c.isPending || n.isPending
|
|
161
160
|
}
|
|
162
161
|
),
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__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" }) }),
|
|
163
|
+
/* @__PURE__ */ t.jsx("div", { className: "px-2.5 pt-2", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
164
|
+
/* @__PURE__ */ t.jsx(
|
|
166
165
|
h,
|
|
167
166
|
{
|
|
168
167
|
title: "Basic Details",
|
|
@@ -172,8 +171,8 @@ const O = I.lazy(() => import("./delete-page-modal-wH0yLiQI.js")), J = I.lazy(()
|
|
|
172
171
|
disabled: n.isPending || c.isPending
|
|
173
172
|
}
|
|
174
173
|
),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ t.jsx("div", { className: "h-2 w-full" }),
|
|
175
|
+
/* @__PURE__ */ t.jsx(
|
|
177
176
|
h,
|
|
178
177
|
{
|
|
179
178
|
title: "SEO Details",
|
|
@@ -183,7 +182,7 @@ const O = I.lazy(() => import("./delete-page-modal-wH0yLiQI.js")), J = I.lazy(()
|
|
|
183
182
|
disabled: n.isPending || c.isPending
|
|
184
183
|
}
|
|
185
184
|
),
|
|
186
|
-
(e == null ? void 0 : e.homepage) !==
|
|
185
|
+
(e == null ? void 0 : e.homepage) !== s.uuid && s.type === "STATIC" ? /* @__PURE__ */ t.jsx(
|
|
187
186
|
h,
|
|
188
187
|
{
|
|
189
188
|
formData: d,
|
|
@@ -191,31 +190,31 @@ const O = I.lazy(() => import("./delete-page-modal-wH0yLiQI.js")), J = I.lazy(()
|
|
|
191
190
|
onChange: H,
|
|
192
191
|
disabled: n.isPending || c.isPending
|
|
193
192
|
}
|
|
194
|
-
) :
|
|
195
|
-
/* @__PURE__ */
|
|
193
|
+
) : 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: [
|
|
194
|
+
/* @__PURE__ */ t.jsx(G, {}),
|
|
196
195
|
" This is homepage",
|
|
197
196
|
" "
|
|
198
197
|
] }),
|
|
199
|
-
i.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || "") && /* @__PURE__ */
|
|
198
|
+
i.type === "DYNAMIC" && !P((i == null ? void 0 : i.slug) || "") && /* @__PURE__ */ t.jsxs("small", { className: "px-1 text-red-400", children: [
|
|
200
199
|
"Add dynamic ID in page slug Eg: ",
|
|
201
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ t.jsx("i", { className: "underline", children: "some-url/[some-id]" })
|
|
202
201
|
] }),
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ t.jsxs("div", { className: "my-2 flex w-full items-center justify-between gap-x-2 px-1", children: [
|
|
203
|
+
/* @__PURE__ */ t.jsx(
|
|
205
204
|
q,
|
|
206
205
|
{
|
|
207
206
|
className: "w-full",
|
|
208
207
|
type: "submit",
|
|
209
208
|
onClick: S,
|
|
210
|
-
disabled: (e == null ? void 0 : e.homepage) !==
|
|
209
|
+
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) || ""),
|
|
211
210
|
children: "Save"
|
|
212
211
|
}
|
|
213
212
|
),
|
|
214
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ t.jsx(O, { pageData: s, projectData: e })
|
|
215
214
|
] })
|
|
216
215
|
] }) })
|
|
217
216
|
] });
|
|
218
217
|
};
|
|
219
218
|
export {
|
|
220
|
-
|
|
219
|
+
ei as default
|
|
221
220
|
};
|
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-XVud0HL8.cjs");require("react");require("sonner");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("i18next");require("react-i18next");require("./index-TEfD-2ti.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("flat-to-nested");require("./MODIFIERS-2FeVfZQ9.cjs");require("@react-hookz/web");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-5ARpH_Tu.cjs");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("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("./html-to-json-2PeOCVey.cjs");require("himalaya");require("lucide-react");require("./web-blocks.cjs");require("./empty-slot-TF2kd-0X.cjs");exports.ChaiBuilderStudio=e.ChaiBuilderStudio;
|
package/dist/studio.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import {
|
|
2
|
+
import { k as ii } from "./index-19nTm_cE.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "sonner";
|
|
5
5
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
6
6
|
import "i18next";
|
|
7
7
|
import "react-i18next";
|
|
8
|
-
import "./index-
|
|
9
|
-
import "@radix-ui/react-toggle";
|
|
10
|
-
import "class-variance-authority";
|
|
11
|
-
import "./utils-AvyFzbPC.js";
|
|
8
|
+
import "./index-0m8Zuv5X.js";
|
|
12
9
|
import "lodash-es";
|
|
13
|
-
import "./
|
|
10
|
+
import "./Functions-7jnEwJyw.js";
|
|
14
11
|
import "clsx";
|
|
15
12
|
import "tailwind-merge";
|
|
13
|
+
import "@chaibuilder/runtime";
|
|
14
|
+
import "jotai";
|
|
15
|
+
import "flat-to-nested";
|
|
16
|
+
import "./MODIFIERS-RiXS5Mn1.js";
|
|
17
|
+
import "@react-hookz/web";
|
|
18
|
+
import "@radix-ui/react-toggle";
|
|
19
|
+
import "class-variance-authority";
|
|
20
|
+
import "./Class-17XFhL48.js";
|
|
16
21
|
import "@radix-ui/react-switch";
|
|
17
22
|
import "@radix-ui/react-slot";
|
|
18
23
|
import "@radix-ui/react-accordion";
|
|
@@ -35,12 +40,6 @@ import "@radix-ui/react-context-menu";
|
|
|
35
40
|
import "react-icons-picker";
|
|
36
41
|
import "react-dom";
|
|
37
42
|
import "react-quill";
|
|
38
|
-
import "jotai";
|
|
39
|
-
import "flat-to-nested";
|
|
40
|
-
import "./Functions-7jnEwJyw.js";
|
|
41
|
-
import "redux-undo";
|
|
42
|
-
import "@chaibuilder/runtime";
|
|
43
|
-
import "@react-hookz/web";
|
|
44
43
|
import "@floating-ui/react-dom";
|
|
45
44
|
import "react-textarea-autosize";
|
|
46
45
|
import "flagged";
|
|
@@ -51,7 +50,7 @@ import "./html-to-json-57841sEK.js";
|
|
|
51
50
|
import "himalaya";
|
|
52
51
|
import "lucide-react";
|
|
53
52
|
import "./web-blocks.js";
|
|
54
|
-
import "./
|
|
53
|
+
import "./empty-slot-MWycClTb.js";
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
ii as ChaiBuilderStudio
|
|
57
56
|
};
|
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-TEfD-2ti.cjs");require("react");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("flat-to-nested");require("./MODIFIERS-2FeVfZQ9.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("@react-hookz/web");require("./jsx-runtime-Z_BpKhVy.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-5ARpH_Tu.cjs");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("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
|
@@ -93,7 +93,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export declare const badgeVariants: (props?: {
|
|
96
|
-
variant?: "default" | "outline" | "
|
|
96
|
+
variant?: "default" | "outline" | "destructive" | "secondary";
|
|
97
97
|
} & ClassProp) => string;
|
|
98
98
|
|
|
99
99
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -103,7 +103,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export declare const buttonVariants: (props?: {
|
|
106
|
-
variant?: "link" | "default" | "outline" | "
|
|
106
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost";
|
|
107
107
|
size?: "sm" | "lg" | "default" | "icon";
|
|
108
108
|
} & ClassProp) => string;
|
|
109
109
|
|
|
@@ -391,7 +391,7 @@ export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<DialogPr
|
|
|
391
391
|
export declare const SheetTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
392
392
|
|
|
393
393
|
declare const sheetVariants: (props?: {
|
|
394
|
-
side?: "
|
|
394
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
395
395
|
} & ClassProp) => string;
|
|
396
396
|
|
|
397
397
|
export declare const Skeleton: ({ className, ...props }: React_3.HTMLAttributes<HTMLDivElement>) => JSX_2.Element;
|
package/dist/ui.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./jsx-runtime-WbnYoNE9.js";
|
|
3
|
-
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
1
|
+
import { b8 as z, bb as q, b9 as J, ba as U, bm as W, by as X, A as Y, ai as Z, H as _, C as $, F as K, G as N, D as O, E as Q, z as aa, bn as ea, bz as oa, B as ta, bg as ra, bj as sa, bi as na, bl as ia, bh as ba, bB as pa, aW as ua, cc as ma, aZ as la, a_ as ca, aX as da, a$ as ga, aY as Ca, ce as Ma, cd as Sa, br as Da, cf as Ta, bq as xa, ck as Aa, bp as ha, ch as wa, cl as Ia, cp as Fa, cg as Ga, ci as Pa, cj as ka, cm as Ha, cn as va, co as La, bs as Ra, ad as Ba, ae as Va, ah as Ea, b0 as fa, af as ya, ag as ja, b1 as za, aE as qa, aJ as Ja, aG as Ua, c3 as Wa, c0 as Xa, aH as Ya, c4 as Za, c8 as _a, c1 as $a, aI as Ka, c2 as Na, c5 as Oa, c6 as Qa, c7 as ae, aF as ee, aB as oe, aD as te, aC as re, b5 as se, b6 as ne, bc as ie, az as be, b7 as pe, bD as ue, bK as me, bG as le, bQ as ce, bH as de, bJ as ge, bE as Ce, bN as Me, bL as Se, bM as De, bI as Te, bS as xe, bR as Ae, bO as he, bP as we, bF as Ie, aT as Fe, aV as Ge, aU as Pe, b4 as ke, bf as He, bC as ve, aj as Le, am as Re, at as Be, an as Ve, au as Ee, bT as fe, ak as ye, al as je, ay as ze, bU as qe, bW as Je, bX as Ue, b$ as We, bZ as Xe, bY as Ye, b_ as Ze, bV as _e, S as $e, aA as Ke, ap as Ne, as as Oe, aq as Qe, ar as ao, bk as eo, y as oo, bv as to, av as ro, ax as so, bd as no, T as io, aw as bo, bA as po, bx as uo, c9 as mo, cb as lo, bw as co, ca as go } from "./index-0m8Zuv5X.js";
|
|
4
2
|
import "react";
|
|
5
|
-
import "@radix-ui/react-toggle";
|
|
6
|
-
import "class-variance-authority";
|
|
7
|
-
import "./utils-AvyFzbPC.js";
|
|
8
3
|
import "lodash-es";
|
|
9
|
-
import "./
|
|
4
|
+
import "./Functions-7jnEwJyw.js";
|
|
10
5
|
import "clsx";
|
|
11
6
|
import "tailwind-merge";
|
|
7
|
+
import "@chaibuilder/runtime";
|
|
8
|
+
import "jotai";
|
|
9
|
+
import "flat-to-nested";
|
|
10
|
+
import "./MODIFIERS-RiXS5Mn1.js";
|
|
11
|
+
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
12
|
+
import "@react-hookz/web";
|
|
13
|
+
import "./jsx-runtime-WbnYoNE9.js";
|
|
14
|
+
import "@radix-ui/react-toggle";
|
|
15
|
+
import "class-variance-authority";
|
|
16
|
+
import "./Class-17XFhL48.js";
|
|
12
17
|
import "@radix-ui/react-switch";
|
|
13
18
|
import "@radix-ui/react-slot";
|
|
14
19
|
import "@radix-ui/react-accordion";
|
|
@@ -31,149 +36,143 @@ import "@radix-ui/react-context-menu";
|
|
|
31
36
|
import "react-icons-picker";
|
|
32
37
|
import "react-dom";
|
|
33
38
|
import "react-quill";
|
|
34
|
-
import "jotai";
|
|
35
|
-
import "flat-to-nested";
|
|
36
|
-
import "./Functions-7jnEwJyw.js";
|
|
37
|
-
import "redux-undo";
|
|
38
|
-
import "@chaibuilder/runtime";
|
|
39
|
-
import "@react-hookz/web";
|
|
40
39
|
import "react-i18next";
|
|
41
40
|
export {
|
|
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
|
-
|
|
67
|
-
|
|
41
|
+
z as Accordion,
|
|
42
|
+
q as AccordionContent,
|
|
43
|
+
J as AccordionItem,
|
|
44
|
+
U as AccordionTrigger,
|
|
45
|
+
W as Alert,
|
|
46
|
+
X as AlertDescription,
|
|
47
|
+
Y as AlertDialog,
|
|
48
|
+
Z as AlertDialogAction,
|
|
49
|
+
_ as AlertDialogCancel,
|
|
50
|
+
$ as AlertDialogContent,
|
|
51
|
+
K as AlertDialogDescription,
|
|
52
|
+
N as AlertDialogFooter,
|
|
53
|
+
O as AlertDialogHeader,
|
|
54
|
+
Q as AlertDialogTitle,
|
|
55
|
+
aa as AlertDialogTrigger,
|
|
56
|
+
ea as AlertTitle,
|
|
57
|
+
oa as Badge,
|
|
58
|
+
ta as Button,
|
|
59
|
+
ra as Card,
|
|
60
|
+
sa as CardContent,
|
|
61
|
+
na as CardDescription,
|
|
62
|
+
ia as CardFooter,
|
|
63
|
+
ba as CardHeader,
|
|
64
|
+
pa as CardTitle,
|
|
65
|
+
ua as Command,
|
|
66
|
+
ma as CommandDialog,
|
|
68
67
|
la as CommandEmpty,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
ca as CommandGroup,
|
|
69
|
+
da as CommandInput,
|
|
70
|
+
ga as CommandItem,
|
|
71
|
+
Ca as CommandList,
|
|
72
|
+
Ma as CommandSeparator,
|
|
73
|
+
Sa as CommandShortcut,
|
|
74
|
+
Da as ContextMenu,
|
|
75
|
+
Ta as ContextMenuCheckboxItem,
|
|
76
|
+
xa as ContextMenuContent,
|
|
77
|
+
Aa as ContextMenuGroup,
|
|
79
78
|
ha as ContextMenuItem,
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
wa as ContextMenuLabel,
|
|
80
|
+
Ia as ContextMenuPortal,
|
|
82
81
|
Fa as ContextMenuRadioGroup,
|
|
83
82
|
Ga as ContextMenuRadioItem,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
Pa as ContextMenuSeparator,
|
|
84
|
+
ka as ContextMenuShortcut,
|
|
85
|
+
Ha as ContextMenuSub,
|
|
86
|
+
va as ContextMenuSubContent,
|
|
87
|
+
La as ContextMenuSubTrigger,
|
|
88
|
+
Ra as ContextMenuTrigger,
|
|
89
|
+
Ba as Dialog,
|
|
90
|
+
Va as DialogContent,
|
|
91
|
+
Ea as DialogDescription,
|
|
93
92
|
fa as DialogFooter,
|
|
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
|
-
|
|
121
|
-
|
|
93
|
+
ya as DialogHeader,
|
|
94
|
+
ja as DialogTitle,
|
|
95
|
+
za as DialogTrigger,
|
|
96
|
+
qa as DropdownMenu,
|
|
97
|
+
Ja as DropdownMenuCheckboxItem,
|
|
98
|
+
Ua as DropdownMenuContent,
|
|
99
|
+
Wa as DropdownMenuGroup,
|
|
100
|
+
Xa as DropdownMenuItem,
|
|
101
|
+
Ya as DropdownMenuLabel,
|
|
102
|
+
Za as DropdownMenuPortal,
|
|
103
|
+
_a as DropdownMenuRadioGroup,
|
|
104
|
+
$a as DropdownMenuRadioItem,
|
|
105
|
+
Ka as DropdownMenuSeparator,
|
|
106
|
+
Na as DropdownMenuShortcut,
|
|
107
|
+
Oa as DropdownMenuSub,
|
|
108
|
+
Qa as DropdownMenuSubContent,
|
|
109
|
+
ae as DropdownMenuSubTrigger,
|
|
110
|
+
ee as DropdownMenuTrigger,
|
|
111
|
+
oe as HoverCard,
|
|
112
|
+
te as HoverCardContent,
|
|
113
|
+
re as HoverCardTrigger,
|
|
114
|
+
se as IconPickerField,
|
|
115
|
+
ne as ImagePickerField,
|
|
116
|
+
ie as Input,
|
|
117
|
+
be as Label,
|
|
118
|
+
pe as LinkField,
|
|
119
|
+
ue as Menubar,
|
|
120
|
+
me as MenubarCheckboxItem,
|
|
122
121
|
le as MenubarContent,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
ce as MenubarGroup,
|
|
123
|
+
de as MenubarItem,
|
|
124
|
+
ge as MenubarLabel,
|
|
125
|
+
Ce as MenubarMenu,
|
|
126
|
+
Me as MenubarPortal,
|
|
127
|
+
Se as MenubarRadioGroup,
|
|
128
|
+
De as MenubarRadioItem,
|
|
129
|
+
Te as MenubarSeparator,
|
|
130
|
+
xe as MenubarShortcut,
|
|
131
|
+
Ae as MenubarSub,
|
|
133
132
|
he as MenubarSubContent,
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
we as MenubarSubTrigger,
|
|
134
|
+
Ie as MenubarTrigger,
|
|
136
135
|
Fe as Popover,
|
|
137
136
|
Ge as PopoverContent,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
137
|
+
Pe as PopoverTrigger,
|
|
138
|
+
ke as RTEField,
|
|
139
|
+
He as ScrollArea,
|
|
140
|
+
ve as ScrollBar,
|
|
141
|
+
Le as Select,
|
|
142
|
+
Re as SelectContent,
|
|
143
|
+
Be as SelectGroup,
|
|
144
|
+
Ve as SelectItem,
|
|
145
|
+
Ee as SelectLabel,
|
|
147
146
|
fe as SelectSeparator,
|
|
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
|
-
|
|
175
|
-
|
|
147
|
+
ye as SelectTrigger,
|
|
148
|
+
je as SelectValue,
|
|
149
|
+
ze as Separator,
|
|
150
|
+
qe as Sheet,
|
|
151
|
+
Je as SheetClose,
|
|
152
|
+
Ue as SheetContent,
|
|
153
|
+
We as SheetDescription,
|
|
154
|
+
Xe as SheetFooter,
|
|
155
|
+
Ye as SheetHeader,
|
|
156
|
+
Ze as SheetTitle,
|
|
157
|
+
_e as SheetTrigger,
|
|
158
|
+
$e as Skeleton,
|
|
159
|
+
Ke as Switch,
|
|
160
|
+
Ne as Tabs,
|
|
161
|
+
Oe as TabsContent,
|
|
162
|
+
Qe as TabsList,
|
|
163
|
+
ao as TabsTrigger,
|
|
164
|
+
eo as Textarea,
|
|
165
|
+
oo as Toaster,
|
|
166
|
+
to as Toggle,
|
|
167
|
+
ro as Tooltip,
|
|
168
|
+
so as TooltipContent,
|
|
169
|
+
no as TooltipPortal,
|
|
170
|
+
io as TooltipProvider,
|
|
171
|
+
bo as TooltipTrigger,
|
|
172
|
+
po as badgeVariants,
|
|
173
|
+
uo as buttonVariants,
|
|
174
|
+
mo as reducer,
|
|
176
175
|
lo as toast,
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
co as toggleVariants,
|
|
177
|
+
go as useToast
|
|
179
178
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react"),u=require("lodash-es"),t=require("./index-
|
|
1
|
+
"use strict";const n=require("react"),u=require("lodash-es"),t=require("./index-TEfD-2ti.cjs"),a=()=>{const{addCoreBlock:r}=t.useAddBlock(),l=t.useBuilderProp("getExternalPredefinedBlock");return n.useCallback(async s=>{const{block:o,dropTargetId:e,relativeIndex:c}=s;if(u.has(o,"format")){const d=await l(o);return r({blocks:d},e===0?null:e,c)}return r(o,e===0?null:e,c)},[r])};exports.useAddBlockByDrop=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback as n } from "react";
|
|
2
2
|
import { has as s } from "lodash-es";
|
|
3
|
-
import {
|
|
3
|
+
import { K as a, i as u } from "./index-0m8Zuv5X.js";
|
|
4
4
|
const B = () => {
|
|
5
5
|
const { addCoreBlock: r } = a(), l = u("getExternalPredefinedBlock");
|
|
6
6
|
return n(
|