@chaibuilder/sdk 1.2.18 → 1.2.20
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-uCdu9Xpr.js → AddBlocks-VIWJkaHJ.js} +24 -25
- package/dist/AddBlocks-X9eh8OWJ.cjs +1 -0
- package/dist/{BrandingOptions-JbHRN7V5.js → BrandingOptions-5ss0k1nb.js} +12 -13
- package/dist/BrandingOptions-PzPdafIT.cjs +1 -0
- package/dist/CanvasArea-TTGqlBKO.js +908 -0
- package/dist/CanvasArea-hoyr4dfb.cjs +55 -0
- package/dist/CurrentPage-EddxgHU-.cjs +1 -0
- package/dist/{CurrentPage-AlOLPG4o.js → CurrentPage-a3T2uy8Q.js} +10 -12
- package/dist/ListTree-kergCZrw.js +126 -0
- package/dist/ListTree-tADrgsqZ.cjs +1 -0
- package/dist/Outline-3IHYlOzF.cjs +1 -0
- package/dist/Outline-rNFJGkap.js +294 -0
- package/dist/{PagesPanel-VbSQHEu_.js → PagesPanel-0bL28ofN.js} +5 -7
- package/dist/PagesPanel-B33hWN11.cjs +1 -0
- package/dist/ProjectPanel-qtRTXNOP.cjs +1 -0
- package/dist/{ProjectPanel-fqux215P.js → ProjectPanel-sBRkUXnY.js} +15 -17
- package/dist/{Settings-IhWI1ice.js → Settings-HgGe1ANj.js} +587 -554
- package/dist/Settings-rXxS3RGM.cjs +1 -0
- package/dist/{SidePanels-lMCXrchR.js → SidePanels-R_g9rSjP.js} +132 -134
- package/dist/SidePanels-aAm-2A3s.cjs +1 -0
- package/dist/{Topbar-DYiisBtw.js → Topbar-AUTKpVHO.js} +3 -4
- package/dist/Topbar-cXtxVswU.cjs +1 -0
- package/dist/TypeIcon-ElNNPazl.cjs +1 -0
- package/dist/TypeIcon-qO96rNbV.js +69 -0
- package/dist/{UnsplashImages-lGLcqo4M.js → UnsplashImages-1RFHZIte.js} +13 -14
- package/dist/UnsplashImages-p34UJJWJ.cjs +1 -0
- package/dist/UploadImages-CLfyNo1i.cjs +1 -0
- package/dist/{UploadImages-06m6vjbL.js → UploadImages-G2orrhmZ.js} +8 -9
- package/dist/{add-page-modal-mEbIXSKX.js → add-page-modal-DUthvJNJ.js} +7 -9
- package/dist/add-page-modal-KCy_Khfe.cjs +1 -0
- package/dist/confirm-alert-T8vimDRx.cjs +1 -0
- package/dist/{confirm-alert-YETlIRpE.js → confirm-alert-nk2WQHud.js} +3 -4
- package/dist/{controls-Dy1qa8Dc.cjs → controls-KK2oLIa8.cjs} +1 -1
- package/dist/{controls-XPXGHKht.js → controls-OfJWSEqC.js} +29 -28
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +2 -1
- package/dist/core.js +45 -47
- package/dist/defaultTheme-7Lk2zq60.cjs +1 -0
- package/dist/{defaultTheme-s0cpA5Oy.js → defaultTheme-gunU_Fe5.js} +31 -33
- package/dist/{delete-page-modal-J_SmPWrw.js → delete-page-modal-WvWRQUgU.js} +8 -10
- package/dist/delete-page-modal-_pFjWLJn.cjs +1 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +81 -81
- package/dist/email.cjs +1 -1
- package/dist/email.d.ts +2 -0
- package/dist/email.js +4 -6
- package/dist/{form-Y0Vb4m04.cjs → form-YnnWtUGk.cjs} +1 -1
- package/dist/{form-2xJcQs_Y.js → form-kXQX4L2W.js} +1 -1
- package/dist/{index-627XtO9e.js → index--Pt4B5bv.js} +3 -3
- package/dist/index-DeHH1q_1.cjs +1 -0
- package/dist/{index-3TQsdso6.cjs → index-JqRQZLN5.cjs} +1 -1
- package/dist/{index-LF3KXx4u.js → index-QIbDWoML.js} +8308 -8162
- package/dist/{index-ZwpjuB-N.cjs → index-e5cgISUO.cjs} +51 -51
- package/dist/{index-ZBqiaKhx.js → index-la4rqGKN.js} +802 -794
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +1 -1
- package/dist/page-viewer-6phtctz6.cjs +1 -0
- package/dist/{page-viewer-7u0SWWmO.js → page-viewer-s_lHBVfx.js} +6 -8
- package/dist/project-general-setting-SaNOMXEl.cjs +1 -0
- package/dist/{project-general-setting-SqC85J7F.js → project-general-setting-gj4A0X5W.js} +7 -9
- package/dist/{project-seo-setting-TlQherop.js → project-seo-setting-aCPg-IIc.js} +5 -6
- package/dist/project-seo-setting-bMDdgKRZ.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +10 -0
- package/dist/render.js +164 -78
- package/dist/{single-page-detail-ClZYIdSO.js → single-page-detail-TP-cxVIT.js} +36 -38
- package/dist/single-page-detail-er8i2FIF.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.d.ts +2 -0
- package/dist/studio.js +4 -6
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +130 -131
- package/dist/{useAddBlockByDrop-E343zoB3.cjs → useAddBlockByDrop-LSV8adwE.cjs} +1 -1
- package/dist/{useAddBlockByDrop-sPX4lN-O.js → useAddBlockByDrop-_vczk5o_.js} +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +1 -1
- package/package.json +4 -14
- package/dist/AddBlocks-5Q5w5lPJ.cjs +0 -1
- package/dist/BrandingOptions-xrGQI1Kn.cjs +0 -1
- package/dist/CanvasArea-aWzbzB9p.js +0 -1403
- package/dist/CanvasArea-oUIvLfdq.cjs +0 -60
- package/dist/CurrentPage-atmd8UrZ.cjs +0 -1
- package/dist/Outline-oGoAdnBw.js +0 -355
- package/dist/Outline-uMUTwN-R.cjs +0 -1
- package/dist/PagesPanel-nN3QUwXp.cjs +0 -1
- package/dist/ProjectPanel-UIEFhref.cjs +0 -1
- package/dist/Settings-8qUW0Iow.cjs +0 -1
- package/dist/SidePanels-cOHgPE9y.cjs +0 -1
- package/dist/Topbar-vLD-rWl5.cjs +0 -1
- package/dist/UnsplashImages-1JWfKlBc.cjs +0 -1
- package/dist/UploadImages-T4MYMOhW.cjs +0 -1
- package/dist/add-page-modal-niwhffYL.cjs +0 -1
- package/dist/confirm-alert-ZpEIxh3X.cjs +0 -1
- package/dist/defaultTheme-1XwPZT2b.cjs +0 -1
- package/dist/delete-page-modal-sOqRlmKb.cjs +0 -1
- package/dist/index-T3wfa1kz.cjs +0 -1
- package/dist/page-viewer-6UDraUKW.cjs +0 -1
- package/dist/project-general-setting-AW5Vtmgx.cjs +0 -1
- package/dist/project-seo-setting-cWiNZcxW.cjs +0 -1
- package/dist/single-page-detail-kJUW6FE9.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import { KeyboardIcon as
|
|
3
|
-
import
|
|
4
|
-
import { useAtom as
|
|
5
|
-
import { filter as
|
|
6
|
-
import { ad as
|
|
7
|
-
import { ListTreeIcon as
|
|
8
|
-
import { getChaiDataProviders as
|
|
9
|
-
import { useTranslation as
|
|
10
|
-
import { J as
|
|
11
|
-
import { E as
|
|
12
|
-
import { c as
|
|
2
|
+
import { KeyboardIcon as J, PlusIcon as q, Half2Icon as Y } from "@radix-ui/react-icons";
|
|
3
|
+
import v, { useState as p, useEffect as Z, useMemo as $, lazy as b, Suspense as N } from "react";
|
|
4
|
+
import { useAtom as H } from "jotai";
|
|
5
|
+
import { filter as w, map as E, isNull as G, find as Q, isEmpty as W, each as X, get as ee } from "lodash-es";
|
|
6
|
+
import { ad as F, ae as L, af as R, ag as U, ah as se, A as re, a as ae, b as le, c as ie, d as te, e as oe, f as ne, g as ce, ai as de, y as me, C as xe, aj as pe, ak as he, al as ue, am as fe, an as B, ao as je, ap as ve, aq as ge, B as g, ar as be, as as z, h as T, at as ye, S as V, au as O, av as I, aw as A, ax as S } from "./index-la4rqGKN.js";
|
|
7
|
+
import { ListTreeIcon as _, DatabaseIcon as Ne } from "lucide-react";
|
|
8
|
+
import { getChaiDataProviders as we } from "@chaibuilder/runtime";
|
|
9
|
+
import { useTranslation as y } from "react-i18next";
|
|
10
|
+
import { J as ke, a as Ce, d as De } from "./index-e0c8PmRQ.js";
|
|
11
|
+
import { E as Te } from "./index-QIbDWoML.js";
|
|
12
|
+
import { c as Ae } from "./Functions-7jnEwJyw.js";
|
|
13
13
|
import { O as i } from "./MODIFIERS-WQdaNvb8.js";
|
|
14
|
+
import { useFeature as Se } from "flagged";
|
|
14
15
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
15
|
-
import "flat-to-nested";
|
|
16
16
|
import "@react-hookz/web";
|
|
17
17
|
import "@radix-ui/react-toggle";
|
|
18
18
|
import "class-variance-authority";
|
|
@@ -42,31 +42,29 @@ import "react-dom";
|
|
|
42
42
|
import "react-quill";
|
|
43
43
|
import "i18next";
|
|
44
44
|
import "@floating-ui/react-dom";
|
|
45
|
-
import "react-textarea-autosize";
|
|
46
|
-
import "flagged";
|
|
47
45
|
import "react-dnd";
|
|
48
46
|
import "@minoru/react-dnd-treeview";
|
|
49
47
|
import "react-hotkeys-hook";
|
|
50
|
-
const
|
|
51
|
-
const { t:
|
|
52
|
-
return
|
|
48
|
+
const _e = ({ provider: s, onClose: o }) => {
|
|
49
|
+
const { t: a } = y(), [l, h] = p(null);
|
|
50
|
+
return Z(() => {
|
|
53
51
|
s && (s.mockFn ? s.mockFn : s.dataFn)().then((n) => h(n));
|
|
54
|
-
}, [s]), s ? /* @__PURE__ */ e.jsx(
|
|
55
|
-
/* @__PURE__ */ e.jsxs(
|
|
56
|
-
/* @__PURE__ */ e.jsxs(
|
|
57
|
-
|
|
52
|
+
}, [s]), s ? /* @__PURE__ */ e.jsx(F, { onOpenChange: (c) => c ? "" : o(), defaultOpen: !0, children: /* @__PURE__ */ e.jsxs(L, { children: [
|
|
53
|
+
/* @__PURE__ */ e.jsxs(R, { children: [
|
|
54
|
+
/* @__PURE__ */ e.jsxs(U, { children: [
|
|
55
|
+
a("data_provider"),
|
|
58
56
|
": ",
|
|
59
57
|
s.name
|
|
60
58
|
] }),
|
|
61
|
-
/* @__PURE__ */ e.jsx(
|
|
59
|
+
/* @__PURE__ */ e.jsx(se, { children: s.description })
|
|
62
60
|
] }),
|
|
63
|
-
/* @__PURE__ */ e.jsx(
|
|
64
|
-
|
|
61
|
+
/* @__PURE__ */ e.jsx(Te, { children: /* @__PURE__ */ e.jsx(
|
|
62
|
+
ke,
|
|
65
63
|
{
|
|
66
|
-
data:
|
|
67
|
-
shouldExpandNode:
|
|
64
|
+
data: l,
|
|
65
|
+
shouldExpandNode: Ce,
|
|
68
66
|
style: {
|
|
69
|
-
...
|
|
67
|
+
...De,
|
|
70
68
|
container: "max-h-[80vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",
|
|
71
69
|
stringValue: "text-orange-600",
|
|
72
70
|
label: "text-green-900 font-semibold pr-1 tracking-wider"
|
|
@@ -75,64 +73,64 @@ const Se = ({ provider: s, onClose: o }) => {
|
|
|
75
73
|
) })
|
|
76
74
|
] }) }) : null;
|
|
77
75
|
};
|
|
78
|
-
function
|
|
76
|
+
function Pe({
|
|
79
77
|
children: s,
|
|
80
78
|
name: o,
|
|
81
|
-
onRemove:
|
|
79
|
+
onRemove: a
|
|
82
80
|
}) {
|
|
83
|
-
const { t:
|
|
84
|
-
return /* @__PURE__ */ e.jsxs(
|
|
85
|
-
/* @__PURE__ */ e.jsx(
|
|
81
|
+
const { t: l } = y();
|
|
82
|
+
return /* @__PURE__ */ e.jsxs(re, { children: [
|
|
83
|
+
/* @__PURE__ */ e.jsx(ae, { asChild: !0, children: s }),
|
|
86
84
|
/* @__PURE__ */ e.jsxs(le, { children: [
|
|
87
|
-
/* @__PURE__ */ e.jsxs(
|
|
85
|
+
/* @__PURE__ */ e.jsxs(ie, { children: [
|
|
88
86
|
/* @__PURE__ */ e.jsx(
|
|
89
|
-
|
|
87
|
+
te,
|
|
90
88
|
{
|
|
91
|
-
dangerouslySetInnerHTML: { __html:
|
|
89
|
+
dangerouslySetInnerHTML: { __html: l("remove_provider_confirmation").replace("{name}", o) }
|
|
92
90
|
}
|
|
93
91
|
),
|
|
94
|
-
/* @__PURE__ */ e.jsx(
|
|
92
|
+
/* @__PURE__ */ e.jsx(oe, { children: l("remove_provider_warning") })
|
|
95
93
|
] }),
|
|
96
|
-
/* @__PURE__ */ e.jsxs(
|
|
97
|
-
/* @__PURE__ */ e.jsx(
|
|
98
|
-
/* @__PURE__ */ e.jsx(
|
|
94
|
+
/* @__PURE__ */ e.jsxs(ne, { children: [
|
|
95
|
+
/* @__PURE__ */ e.jsx(ce, { children: l("cancel") }),
|
|
96
|
+
/* @__PURE__ */ e.jsx(de, { onClick: a, className: "bg-red-600 hover:bg-red-700", children: l("remove") })
|
|
99
97
|
] })
|
|
100
98
|
] })
|
|
101
99
|
] });
|
|
102
100
|
}
|
|
103
|
-
const
|
|
104
|
-
const { t: s } =
|
|
105
|
-
|
|
106
|
-
), [k, u] = p(""), [
|
|
107
|
-
o.map((r) =>
|
|
108
|
-
(r) =>
|
|
109
|
-
),
|
|
110
|
-
const x =
|
|
111
|
-
n((m) => [...m, x]),
|
|
112
|
-
},
|
|
113
|
-
n((x) =>
|
|
114
|
-
},
|
|
115
|
-
return
|
|
101
|
+
const Ke = () => {
|
|
102
|
+
const { t: s } = y(), o = $(() => we(), []), [a, l] = me(), [, h] = H(xe), [c, n] = p(
|
|
103
|
+
w(o, (r) => E(a, "providerKey").includes(r.providerKey))
|
|
104
|
+
), [k, u] = p(""), [f, j] = p(null), d = w(
|
|
105
|
+
o.map((r) => E(c, "providerKey").includes(r.providerKey) ? null : { value: r.providerKey, label: r.name }),
|
|
106
|
+
(r) => !G(r)
|
|
107
|
+
), C = (r) => {
|
|
108
|
+
const x = Q(o, { providerKey: r });
|
|
109
|
+
n((m) => [...m, x]), l((m) => [...m, { providerKey: x.providerKey, args: {} }]), u(""), h("UNSAVED");
|
|
110
|
+
}, D = (r) => {
|
|
111
|
+
n((x) => w(x, (m) => m.providerKey !== r.providerKey)), l((x) => w(x, (m) => m.providerKey !== r.providerKey)), h("UNSAVED");
|
|
112
|
+
}, t = (r) => j(r);
|
|
113
|
+
return W(o) ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
|
|
116
114
|
s("no_data_providers"),
|
|
117
115
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
118
116
|
/* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: s("learn_more") })
|
|
119
117
|
] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "px-1", children: [
|
|
120
118
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
121
119
|
/* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx("p", { className: "mb-1.5 text-xs text-gray-500", children: s("add_data_providers") }) }),
|
|
122
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(
|
|
123
|
-
/* @__PURE__ */ e.jsx(
|
|
124
|
-
/* @__PURE__ */ e.jsxs(
|
|
125
|
-
/* @__PURE__ */ e.jsx(
|
|
126
|
-
|
|
120
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(pe, { value: k, onValueChange: (r) => C(r), children: [
|
|
121
|
+
/* @__PURE__ */ e.jsx(he, { className: "w-full", children: /* @__PURE__ */ e.jsx(ue, { placeholder: s("select_provider") }) }),
|
|
122
|
+
/* @__PURE__ */ e.jsxs(fe, { children: [
|
|
123
|
+
/* @__PURE__ */ e.jsx(B, { value: "", children: s("choose") }),
|
|
124
|
+
d.map((r) => /* @__PURE__ */ e.jsx(B, { value: r.value, children: r.label }, r.value))
|
|
127
125
|
] })
|
|
128
126
|
] }) }),
|
|
129
127
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
130
|
-
/* @__PURE__ */ e.jsxs("div", { className: `border-t ${
|
|
128
|
+
/* @__PURE__ */ e.jsxs("div", { className: `border-t ${c.length ? "block" : "hidden"}`, children: [
|
|
131
129
|
/* @__PURE__ */ e.jsxs("p", { className: "flex-1 pb-1.5 pt-4 text-xs font-medium text-gray-500", children: [
|
|
132
130
|
s("page_data_providers"),
|
|
133
131
|
":"
|
|
134
132
|
] }),
|
|
135
|
-
/* @__PURE__ */ e.jsx("div", { className: "space-y-2", children:
|
|
133
|
+
/* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: c.map((r) => /* @__PURE__ */ e.jsxs(
|
|
136
134
|
"div",
|
|
137
135
|
{
|
|
138
136
|
className: "w-full rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
@@ -146,7 +144,7 @@ const Ae = () => {
|
|
|
146
144
|
/* @__PURE__ */ e.jsxs(
|
|
147
145
|
"button",
|
|
148
146
|
{
|
|
149
|
-
onClick: () =>
|
|
147
|
+
onClick: () => t(r),
|
|
150
148
|
className: "inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-blue-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
151
149
|
children: [
|
|
152
150
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -172,7 +170,7 @@ const Ae = () => {
|
|
|
172
170
|
]
|
|
173
171
|
}
|
|
174
172
|
),
|
|
175
|
-
/* @__PURE__ */ e.jsx(
|
|
173
|
+
/* @__PURE__ */ e.jsx(Pe, { onRemove: () => D(r), name: r.name, children: /* @__PURE__ */ e.jsxs("button", { className: "inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-red-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", children: [
|
|
176
174
|
/* @__PURE__ */ e.jsxs(
|
|
177
175
|
"svg",
|
|
178
176
|
{
|
|
@@ -200,126 +198,126 @@ const Ae = () => {
|
|
|
200
198
|
},
|
|
201
199
|
r.providerKey
|
|
202
200
|
)) }),
|
|
203
|
-
/* @__PURE__ */ e.jsx(
|
|
201
|
+
/* @__PURE__ */ e.jsx(_e, { onClose: () => j(null), provider: f })
|
|
204
202
|
] })
|
|
205
203
|
] });
|
|
206
|
-
},
|
|
207
|
-
const { t: s } =
|
|
204
|
+
}, Ee = () => {
|
|
205
|
+
const { t: s } = y(), o = {
|
|
208
206
|
"ctrl + Z": "Undo",
|
|
209
207
|
"ctrl + Y": "Redo",
|
|
210
208
|
"ctrl + D": "Duplicate"
|
|
211
|
-
},
|
|
209
|
+
}, a = {
|
|
212
210
|
// "ctrl + /": "Rename block",
|
|
213
211
|
"ctrl + S": "Save page",
|
|
214
212
|
esc: "Deselect blocks",
|
|
215
213
|
del: "Delete block"
|
|
216
214
|
};
|
|
217
|
-
return /* @__PURE__ */ e.jsxs(
|
|
218
|
-
/* @__PURE__ */ e.jsx(
|
|
219
|
-
/* @__PURE__ */ e.jsx(
|
|
220
|
-
/* @__PURE__ */ e.jsx(
|
|
215
|
+
return /* @__PURE__ */ e.jsxs(F, { children: [
|
|
216
|
+
/* @__PURE__ */ e.jsx(je, { children: /* @__PURE__ */ e.jsxs(ve, { children: [
|
|
217
|
+
/* @__PURE__ */ e.jsx(ge, { children: /* @__PURE__ */ e.jsx(g, { size: "sm", className: "w-10", variant: "outline", children: /* @__PURE__ */ e.jsx(J, {}) }) }),
|
|
218
|
+
/* @__PURE__ */ e.jsx(be, { children: /* @__PURE__ */ e.jsx("p", { children: s("Keyboard shortcuts") }) })
|
|
221
219
|
] }) }),
|
|
222
|
-
/* @__PURE__ */ e.jsxs(
|
|
223
|
-
/* @__PURE__ */ e.jsx(
|
|
220
|
+
/* @__PURE__ */ e.jsxs(L, { className: "sm:max-w-[525px]", children: [
|
|
221
|
+
/* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx(U, { children: s("Keyboard shortcuts") }) }),
|
|
224
222
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2", children: [
|
|
225
|
-
/* @__PURE__ */ e.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-gray-200", children: Object.keys(o).map((
|
|
226
|
-
/* @__PURE__ */ e.jsx(
|
|
227
|
-
/* @__PURE__ */ e.jsx("div", { children: s(o[
|
|
228
|
-
] })) }),
|
|
229
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-y-2", children: Object.keys(
|
|
230
|
-
/* @__PURE__ */ e.jsx(
|
|
231
|
-
/* @__PURE__ */ e.jsx("div", { children: s(l
|
|
223
|
+
/* @__PURE__ */ e.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-gray-200", children: Object.keys(o).map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
224
|
+
/* @__PURE__ */ e.jsx(z, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
|
|
225
|
+
/* @__PURE__ */ e.jsx("div", { children: s(o[l]) })
|
|
226
|
+
] }, l)) }),
|
|
227
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-y-2", children: Object.keys(a).map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
228
|
+
/* @__PURE__ */ e.jsx(z, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
|
|
229
|
+
/* @__PURE__ */ e.jsx("div", { children: s(a[l]) })
|
|
232
230
|
] })) })
|
|
233
231
|
] }) })
|
|
234
232
|
] })
|
|
235
233
|
] });
|
|
236
|
-
},
|
|
237
|
-
let
|
|
238
|
-
const
|
|
239
|
-
const s = T("sideBarComponents.top", []), o = T("sideBarComponents.bottom", []), [
|
|
240
|
-
"add-blocks":
|
|
241
|
-
[i]: P,
|
|
242
|
-
"branding-options":
|
|
243
|
-
images:
|
|
234
|
+
}, Be = b(() => import("./AddBlocks-VIWJkaHJ.js")), P = b(() => import("./Outline-rNFJGkap.js")), K = b(() => import("./ListTree-kergCZrw.js")), ze = b(() => import("./BrandingOptions-5ss0k1nb.js")), Ve = b(() => import("./index-la4rqGKN.js").then((s) => s.cq));
|
|
235
|
+
let M = null;
|
|
236
|
+
const _s = () => {
|
|
237
|
+
const s = T("sideBarComponents.top", []), o = T("sideBarComponents.bottom", []), [a, l] = H(ye), [h, c] = p(a), [n, k] = p(null), { t: u } = y(), f = Se("arborist"), j = {
|
|
238
|
+
"add-blocks": Be,
|
|
239
|
+
[i]: f ? K : P,
|
|
240
|
+
"branding-options": ze,
|
|
241
|
+
images: Ve
|
|
244
242
|
};
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
X(s, ({ name: t, panel: r }) => {
|
|
244
|
+
j[t] = r;
|
|
247
245
|
});
|
|
248
|
-
const
|
|
249
|
-
clearTimeout(
|
|
246
|
+
const d = (t) => {
|
|
247
|
+
clearTimeout(M), a !== i && t === i ? M = setTimeout(() => l(i), 500) : c(t), l(t);
|
|
250
248
|
}, C = T("dataBindingSupport", !1);
|
|
251
249
|
function D() {
|
|
252
250
|
const t = setTimeout(() => {
|
|
253
|
-
n && (
|
|
251
|
+
n && (d(i), clearTimeout(n));
|
|
254
252
|
}, 500);
|
|
255
253
|
k(t);
|
|
256
254
|
}
|
|
257
255
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex", children: [
|
|
258
|
-
|
|
256
|
+
a !== i ? /* @__PURE__ */ e.jsx(
|
|
259
257
|
"div",
|
|
260
258
|
{
|
|
261
259
|
onMouseEnter: D,
|
|
262
|
-
onClick: () =>
|
|
260
|
+
onClick: () => d(i),
|
|
263
261
|
className: "fixed inset-0 z-[50] bg-black/20"
|
|
264
262
|
}
|
|
265
263
|
) : null,
|
|
266
264
|
/* @__PURE__ */ e.jsxs("div", { className: "z-[100] flex h-full w-fit flex-col items-center justify-between border-b border-r border-border bg-background pt-2", children: [
|
|
267
265
|
/* @__PURE__ */ e.jsxs("div", { className: "relative z-[100] flex w-14 flex-col items-center space-y-2", children: [
|
|
268
266
|
/* @__PURE__ */ e.jsx(
|
|
269
|
-
|
|
267
|
+
g,
|
|
270
268
|
{
|
|
271
269
|
onClick: () => {
|
|
272
|
-
|
|
270
|
+
d("add-blocks");
|
|
273
271
|
},
|
|
274
272
|
size: "sm",
|
|
275
|
-
variant:
|
|
276
|
-
children: /* @__PURE__ */ e.jsx(
|
|
273
|
+
variant: a === "add-blocks" ? "default" : "outline",
|
|
274
|
+
children: /* @__PURE__ */ e.jsx(q, { className: "text-xl" })
|
|
277
275
|
}
|
|
278
276
|
),
|
|
279
277
|
/* @__PURE__ */ e.jsx(
|
|
280
|
-
|
|
278
|
+
g,
|
|
281
279
|
{
|
|
282
|
-
onClick: () =>
|
|
280
|
+
onClick: () => d(i),
|
|
283
281
|
size: "sm",
|
|
284
|
-
variant:
|
|
285
|
-
children: /* @__PURE__ */ e.jsx(
|
|
282
|
+
variant: a === i ? "default" : "outline",
|
|
283
|
+
children: /* @__PURE__ */ e.jsx(_, { className: "w-4" })
|
|
286
284
|
}
|
|
287
285
|
),
|
|
288
286
|
/* @__PURE__ */ e.jsx(
|
|
289
|
-
|
|
287
|
+
g,
|
|
290
288
|
{
|
|
291
|
-
onClick: () =>
|
|
289
|
+
onClick: () => d("branding-options"),
|
|
292
290
|
size: "sm",
|
|
293
|
-
variant:
|
|
294
|
-
children: /* @__PURE__ */ e.jsx(
|
|
291
|
+
variant: a === "branding-options" ? "default" : "outline",
|
|
292
|
+
children: /* @__PURE__ */ e.jsx(Y, { className: "w-4 max-w-[40px] text-xs" })
|
|
295
293
|
}
|
|
296
294
|
),
|
|
297
|
-
|
|
298
|
-
s.map(({ name: t, icon:
|
|
299
|
-
|
|
295
|
+
v.Children.toArray(
|
|
296
|
+
s.map(({ name: t, icon: r }) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(V, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(
|
|
297
|
+
g,
|
|
300
298
|
{
|
|
301
|
-
onClick: () =>
|
|
299
|
+
onClick: () => d(t),
|
|
302
300
|
size: "sm",
|
|
303
301
|
className: "w-10",
|
|
304
|
-
variant:
|
|
305
|
-
children: /* @__PURE__ */ e.jsx(
|
|
302
|
+
variant: a === t ? "default" : "outline",
|
|
303
|
+
children: /* @__PURE__ */ e.jsx(r, {})
|
|
306
304
|
}
|
|
307
305
|
) }))
|
|
308
306
|
)
|
|
309
307
|
] }),
|
|
310
308
|
/* @__PURE__ */ e.jsxs("div", { className: "relative z-[100] flex w-14 flex-col items-center space-y-2 pb-2", children: [
|
|
311
|
-
/* @__PURE__ */ e.jsx(
|
|
312
|
-
|
|
313
|
-
o.map((t) => /* @__PURE__ */ e.jsx(
|
|
309
|
+
/* @__PURE__ */ e.jsx(Ee, {}),
|
|
310
|
+
v.Children.toArray(
|
|
311
|
+
o.map((t) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(V, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(t, {}) }))
|
|
314
312
|
)
|
|
315
313
|
] })
|
|
316
314
|
] }),
|
|
317
315
|
/* @__PURE__ */ e.jsx(
|
|
318
316
|
"div",
|
|
319
317
|
{
|
|
320
|
-
className: `absolute left-14 z-[50] h-full w-96 border-r bg-background duration-500 ease-in-out ${
|
|
318
|
+
className: `absolute left-14 z-[50] h-full w-96 border-r bg-background duration-500 ease-in-out ${a !== i ? "translate-x-0" : "-translate-x-full"}`,
|
|
321
319
|
children: /* @__PURE__ */ e.jsx(
|
|
322
|
-
|
|
320
|
+
N,
|
|
323
321
|
{
|
|
324
322
|
fallback: /* @__PURE__ */ e.jsxs("div", { className: "flex animate-pulse flex-col gap-y-2 bg-white p-4", children: [
|
|
325
323
|
/* @__PURE__ */ e.jsx("div", { className: "h-6 w-1/2 bg-gray-300" }),
|
|
@@ -329,14 +327,14 @@ const As = () => {
|
|
|
329
327
|
children: /* @__PURE__ */ e.jsx(
|
|
330
328
|
"div",
|
|
331
329
|
{
|
|
332
|
-
className:
|
|
330
|
+
className: Ae(
|
|
333
331
|
"relative h-full max-h-[93%] overflow-y-auto overflow-x-hidden bg-background p-1",
|
|
334
|
-
|
|
332
|
+
a === i ? "" : "z-[100]"
|
|
335
333
|
),
|
|
336
334
|
onMouseEnter: () => {
|
|
337
335
|
n && clearTimeout(n);
|
|
338
336
|
},
|
|
339
|
-
children:
|
|
337
|
+
children: v.createElement(ee(j, a, () => /* @__PURE__ */ e.jsx("div", {})))
|
|
340
338
|
}
|
|
341
339
|
)
|
|
342
340
|
}
|
|
@@ -344,39 +342,39 @@ const As = () => {
|
|
|
344
342
|
}
|
|
345
343
|
),
|
|
346
344
|
/* @__PURE__ */ e.jsx("div", { className: "h-full w-60 border-r p-1", children: /* @__PURE__ */ e.jsx(
|
|
347
|
-
|
|
345
|
+
N,
|
|
348
346
|
{
|
|
349
347
|
fallback: /* @__PURE__ */ e.jsxs("div", { className: "flex animate-pulse flex-col gap-y-2 p-4", children: [
|
|
350
348
|
/* @__PURE__ */ e.jsx("div", { className: "h-6 w-1/2 bg-gray-300" }),
|
|
351
349
|
/* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" }),
|
|
352
350
|
/* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" })
|
|
353
351
|
] }),
|
|
354
|
-
children: C ? /* @__PURE__ */ e.jsxs(
|
|
355
|
-
/* @__PURE__ */ e.jsxs(
|
|
356
|
-
/* @__PURE__ */ e.jsxs(
|
|
357
|
-
/* @__PURE__ */ e.jsx(
|
|
352
|
+
children: C ? /* @__PURE__ */ e.jsxs(O, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
|
|
353
|
+
/* @__PURE__ */ e.jsxs(I, { className: "mx-1 grid h-10 grid-cols-2", children: [
|
|
354
|
+
/* @__PURE__ */ e.jsxs(A, { value: i, children: [
|
|
355
|
+
/* @__PURE__ */ e.jsx(_, { className: "mr-2 h-3" }),
|
|
358
356
|
" ",
|
|
359
357
|
u("Outline")
|
|
360
358
|
] }),
|
|
361
|
-
/* @__PURE__ */ e.jsxs(
|
|
362
|
-
/* @__PURE__ */ e.jsx(
|
|
359
|
+
/* @__PURE__ */ e.jsxs(A, { value: "data-provider", children: [
|
|
360
|
+
/* @__PURE__ */ e.jsx(Ne, { className: "mr-2 w-3" }),
|
|
363
361
|
u("Data")
|
|
364
362
|
] })
|
|
365
363
|
] }),
|
|
366
|
-
/* @__PURE__ */ e.jsx(
|
|
367
|
-
/* @__PURE__ */ e.jsx(
|
|
368
|
-
] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(
|
|
369
|
-
/* @__PURE__ */ e.jsx(
|
|
370
|
-
/* @__PURE__ */ e.jsx(
|
|
364
|
+
/* @__PURE__ */ e.jsx(S, { value: i, className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden", children: v.createElement(f ? K : P) }),
|
|
365
|
+
/* @__PURE__ */ e.jsx(S, { value: "data-provider", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Ke, {}) })
|
|
366
|
+
] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(O, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
|
|
367
|
+
/* @__PURE__ */ e.jsx(I, { className: "mx-1 grid h-10 grid-cols-1", children: /* @__PURE__ */ e.jsxs(A, { value: i, children: [
|
|
368
|
+
/* @__PURE__ */ e.jsx(_, { className: "mr-2 h-3" }),
|
|
371
369
|
" ",
|
|
372
370
|
u("Outline")
|
|
373
371
|
] }) }),
|
|
374
372
|
/* @__PURE__ */ e.jsx(
|
|
375
|
-
|
|
373
|
+
S,
|
|
376
374
|
{
|
|
377
375
|
value: i,
|
|
378
376
|
className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden",
|
|
379
|
-
children:
|
|
377
|
+
children: v.createElement(f ? K : P)
|
|
380
378
|
}
|
|
381
379
|
)
|
|
382
380
|
] }) })
|
|
@@ -385,5 +383,5 @@ const As = () => {
|
|
|
385
383
|
] });
|
|
386
384
|
};
|
|
387
385
|
export {
|
|
388
|
-
|
|
386
|
+
_s as default
|
|
389
387
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),k=require("@radix-ui/react-icons"),i=require("react"),D=require("jotai"),u=require("lodash-es"),s=require("./index-DeHH1q_1.cjs"),R=require("lucide-react"),K=require("@chaibuilder/runtime"),g=require("react-i18next"),w=require("./index-gi1LIOCw.cjs"),S=require("./index-e5cgISUO.cjs"),I=require("./Functions-N3yhPYKY.cjs"),l=require("./MODIFIERS-9EwxLM8V.cjs"),C=require("flagged");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("@react-hookz/web");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-MmCxz2Ay.cjs");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("i18next");require("@floating-ui/react-dom");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");const P=({provider:t,onClose:a})=>{const{t:n}=g.useTranslation(),[o,h]=i.useState(null);return i.useEffect(()=>{t&&(t.mockFn?t.mockFn:t.dataFn)().then(c=>h(c))},[t]),t?e.jsxRuntimeExports.jsx(s.Dialog,{onOpenChange:d=>d?"":a(),defaultOpen:!0,children:e.jsxRuntimeExports.jsxs(s.DialogContent,{children:[e.jsxRuntimeExports.jsxs(s.DialogHeader,{children:[e.jsxRuntimeExports.jsxs(s.DialogTitle,{children:[n("data_provider"),": ",t.name]}),e.jsxRuntimeExports.jsx(s.DialogDescription,{children:t.description})]}),e.jsxRuntimeExports.jsx(S.ErrorBoundary,{children:e.jsxRuntimeExports.jsx(w.JsonView,{data:o,shouldExpandNode:w.allExpanded,style:{...w.defaultStyles,container:"max-h-[80vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",stringValue:"text-orange-600",label:"text-green-900 font-semibold pr-1 tracking-wider"}})})]})}):null};function O({children:t,name:a,onRemove:n}){const{t:o}=g.useTranslation();return e.jsxRuntimeExports.jsxs(s.AlertDialog,{children:[e.jsxRuntimeExports.jsx(s.AlertDialogTrigger,{asChild:!0,children:t}),e.jsxRuntimeExports.jsxs(s.AlertDialogContent,{children:[e.jsxRuntimeExports.jsxs(s.AlertDialogHeader,{children:[e.jsxRuntimeExports.jsx(s.AlertDialogTitle,{dangerouslySetInnerHTML:{__html:o("remove_provider_confirmation").replace("{name}",a)}}),e.jsxRuntimeExports.jsx(s.AlertDialogDescription,{children:o("remove_provider_warning")})]}),e.jsxRuntimeExports.jsxs(s.AlertDialogFooter,{children:[e.jsxRuntimeExports.jsx(s.AlertDialogCancel,{children:o("cancel")}),e.jsxRuntimeExports.jsx(s.AlertDialogAction,{onClick:n,className:"bg-red-600 hover:bg-red-700",children:o("remove")})]})]})]})}const L=()=>{const{t}=g.useTranslation(),a=i.useMemo(()=>K.getChaiDataProviders(),[]),[n,o]=s.usePageDataProviders(),[,h]=D.useAtom(s.pageSyncStateAtom),[d,c]=i.useState(u.filter(a,r=>u.map(n,"providerKey").includes(r.providerKey))),[b,E]=i.useState(""),[v,f]=i.useState(null),m=u.filter(a.map(r=>u.map(d,"providerKey").includes(r.providerKey)?null:{value:r.providerKey,label:r.name}),r=>!u.isNull(r)),N=r=>{const p=u.find(a,{providerKey:r});c(j=>[...j,p]),o(j=>[...j,{providerKey:p.providerKey,args:{}}]),E(""),h("UNSAVED")},y=r=>{c(p=>u.filter(p,j=>j.providerKey!==r.providerKey)),o(p=>u.filter(p,j=>j.providerKey!==r.providerKey)),h("UNSAVED")},x=r=>f(r);return u.isEmpty(a)?e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsxs("p",{className:"mb-1.5 p-4 text-xs text-gray-500",children:[t("no_data_providers"),e.jsxRuntimeExports.jsx("br",{}),e.jsxRuntimeExports.jsx("a",{className:"text-blue-500",href:"https://chaibuilder.com/docs/registering-data-providers",target:"_blank",children:t("learn_more")})]})}):e.jsxRuntimeExports.jsxs("div",{className:"px-1",children:[e.jsxRuntimeExports.jsx("br",{}),e.jsxRuntimeExports.jsx("label",{children:e.jsxRuntimeExports.jsx("p",{className:"mb-1.5 text-xs text-gray-500",children:t("add_data_providers")})}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-1",children:e.jsxRuntimeExports.jsxs(s.Select,{value:b,onValueChange:r=>N(r),children:[e.jsxRuntimeExports.jsx(s.SelectTrigger,{className:"w-full",children:e.jsxRuntimeExports.jsx(s.SelectValue,{placeholder:t("select_provider")})}),e.jsxRuntimeExports.jsxs(s.SelectContent,{children:[e.jsxRuntimeExports.jsx(s.SelectItem,{value:"",children:t("choose")}),m.map(r=>e.jsxRuntimeExports.jsx(s.SelectItem,{value:r.value,children:r.label},r.value))]})]})}),e.jsxRuntimeExports.jsx("br",{}),e.jsxRuntimeExports.jsxs("div",{className:`border-t ${d.length?"block":"hidden"}`,children:[e.jsxRuntimeExports.jsxs("p",{className:"flex-1 pb-1.5 pt-4 text-xs font-medium text-gray-500",children:[t("page_data_providers"),":"]}),e.jsxRuntimeExports.jsx("div",{className:"space-y-2",children:d.map(r=>e.jsxRuntimeExports.jsxs("div",{className:"w-full rounded-lg border bg-card text-card-foreground shadow-sm","data-v0-t":"card",children:[e.jsxRuntimeExports.jsx("div",{className:"flex flex-col space-y-1.5 px-4 pt-4",children:e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between",children:e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx("h3",{className:"font-medium leading-4",children:r.name}),e.jsxRuntimeExports.jsx("p",{className:"pt-1 text-xs text-gray-400",children:r.description})]})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between p-2 py-2",children:[e.jsxRuntimeExports.jsxs("button",{onClick:()=>x(r),className:"inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-blue-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",children:[e.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"mr-2 h-4 w-4",children:[e.jsxRuntimeExports.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),e.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),t("view_data")]}),e.jsxRuntimeExports.jsx(O,{onRemove:()=>y(r),name:r.name,children:e.jsxRuntimeExports.jsxs("button",{className:"inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-red-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",children:[e.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"mr-2 h-4 w-4",children:[e.jsxRuntimeExports.jsx("path",{d:"M3 6h18"}),e.jsxRuntimeExports.jsx("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),e.jsxRuntimeExports.jsx("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})]}),t("remove")]})})]})]},r.providerKey))}),e.jsxRuntimeExports.jsx(P,{onClose:()=>f(null),provider:v})]})]})},A=()=>{const{t}=g.useTranslation(),a={"ctrl + Z":"Undo","ctrl + Y":"Redo","ctrl + D":"Duplicate"},n={"ctrl + S":"Save page",esc:"Deselect blocks",del:"Delete block"};return e.jsxRuntimeExports.jsxs(s.Dialog,{children:[e.jsxRuntimeExports.jsx(s.DialogTrigger,{children:e.jsxRuntimeExports.jsxs(s.Tooltip,{children:[e.jsxRuntimeExports.jsx(s.TooltipTrigger,{children:e.jsxRuntimeExports.jsx(s.Button,{size:"sm",className:"w-10",variant:"outline",children:e.jsxRuntimeExports.jsx(k.KeyboardIcon,{})})}),e.jsxRuntimeExports.jsx(s.TooltipContent,{children:e.jsxRuntimeExports.jsx("p",{children:t("Keyboard shortcuts")})})]})}),e.jsxRuntimeExports.jsxs(s.DialogContent,{className:"sm:max-w-[525px]",children:[e.jsxRuntimeExports.jsx(s.DialogHeader,{children:e.jsxRuntimeExports.jsx(s.DialogTitle,{children:t("Keyboard shortcuts")})}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-2",children:[e.jsxRuntimeExports.jsx("div",{className:"mr-8 flex flex-col space-y-2 border-r border-gray-200",children:Object.keys(a).map(o=>e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxRuntimeExports.jsx(s.Badge,{variant:"outline",className:"border border-gray-600 p-1 px-2",children:t(o)}),e.jsxRuntimeExports.jsx("div",{children:t(a[o])})]},o))}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col space-y-2",children:Object.keys(n).map(o=>e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxRuntimeExports.jsx(s.Badge,{variant:"outline",className:"border border-gray-600 p-1 px-2",children:t(o)}),e.jsxRuntimeExports.jsx("div",{children:t(n[o])})]}))})]})})]})]})},U=i.lazy(()=>Promise.resolve().then(()=>require("./AddBlocks-X9eh8OWJ.cjs"))),T=i.lazy(()=>Promise.resolve().then(()=>require("./Outline-3IHYlOzF.cjs"))),q=i.lazy(()=>Promise.resolve().then(()=>require("./ListTree-tADrgsqZ.cjs"))),B=i.lazy(()=>Promise.resolve().then(()=>require("./BrandingOptions-PzPdafIT.cjs"))),Y=i.lazy(()=>Promise.resolve().then(()=>require("./index-DeHH1q_1.cjs")).then(t=>t.ImagesPanel));let _=null;const z=()=>{const t=s.useBuilderProp("sideBarComponents.top",[]),a=s.useBuilderProp("sideBarComponents.bottom",[]),[n,o]=D.useAtom(s.activePanelAtom),[h,d]=i.useState(n),[c,b]=i.useState(null),{t:E}=g.useTranslation(),v=C.useFeature("arborist"),f={"add-blocks":U,[l.OUTLINE_KEY]:v?q:T,"branding-options":B,images:Y};u.each(t,({name:x,panel:r})=>{f[x]=r});const m=x=>{clearTimeout(_),n!==l.OUTLINE_KEY&&x===l.OUTLINE_KEY?_=setTimeout(()=>o(l.OUTLINE_KEY),500):d(x),o(x)},N=s.useBuilderProp("dataBindingSupport",!1);function y(){const x=setTimeout(()=>{c&&(m(l.OUTLINE_KEY),clearTimeout(c))},500);b(x)}return e.jsxRuntimeExports.jsxs("div",{className:"relative flex",children:[n!==l.OUTLINE_KEY?e.jsxRuntimeExports.jsx("div",{onMouseEnter:y,onClick:()=>m(l.OUTLINE_KEY),className:"fixed inset-0 z-[50] bg-black/20"}):null,e.jsxRuntimeExports.jsxs("div",{className:"z-[100] flex h-full w-fit flex-col items-center justify-between border-b border-r border-border bg-background pt-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"relative z-[100] flex w-14 flex-col items-center space-y-2",children:[e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>{m("add-blocks")},size:"sm",variant:n==="add-blocks"?"default":"outline",children:e.jsxRuntimeExports.jsx(k.PlusIcon,{className:"text-xl"})}),e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>m(l.OUTLINE_KEY),size:"sm",variant:n===l.OUTLINE_KEY?"default":"outline",children:e.jsxRuntimeExports.jsx(R.ListTreeIcon,{className:"w-4"})}),e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>m("branding-options"),size:"sm",variant:n==="branding-options"?"default":"outline",children:e.jsxRuntimeExports.jsx(k.Half2Icon,{className:"w-4 max-w-[40px] text-xs"})}),i.Children.toArray(t.map(({name:x,icon:r})=>e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsx(s.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>m(x),size:"sm",className:"w-10",variant:n===x?"default":"outline",children:e.jsxRuntimeExports.jsx(r,{})})})))]}),e.jsxRuntimeExports.jsxs("div",{className:"relative z-[100] flex w-14 flex-col items-center space-y-2 pb-2",children:[e.jsxRuntimeExports.jsx(A,{}),i.Children.toArray(a.map(x=>e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsx(s.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(x,{})})))]})]}),e.jsxRuntimeExports.jsx("div",{className:`absolute left-14 z-[50] h-full w-96 border-r bg-background duration-500 ease-in-out ${n!==l.OUTLINE_KEY?"translate-x-0":"-translate-x-full"}`,children:e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsxs("div",{className:"flex animate-pulse flex-col gap-y-2 bg-white p-4",children:[e.jsxRuntimeExports.jsx("div",{className:"h-6 w-1/2 bg-gray-300"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"})]}),children:e.jsxRuntimeExports.jsx("div",{className:I.cn("relative h-full max-h-[93%] overflow-y-auto overflow-x-hidden bg-background p-1",n===l.OUTLINE_KEY?"":"z-[100]"),onMouseEnter:()=>{c&&clearTimeout(c)},children:i.createElement(u.get(f,n,()=>e.jsxRuntimeExports.jsx("div",{})))})})}),e.jsxRuntimeExports.jsx("div",{className:"h-full w-60 border-r p-1",children:e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsxs("div",{className:"flex animate-pulse flex-col gap-y-2 p-4",children:[e.jsxRuntimeExports.jsx("div",{className:"h-6 w-1/2 bg-gray-300"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"})]}),children:N?e.jsxRuntimeExports.jsxs(s.Tabs,{defaultValue:l.OUTLINE_KEY,className:"flex h-full w-full flex-col py-1",children:[e.jsxRuntimeExports.jsxs(s.TabsList,{className:"mx-1 grid h-10 grid-cols-2",children:[e.jsxRuntimeExports.jsxs(s.TabsTrigger,{value:l.OUTLINE_KEY,children:[e.jsxRuntimeExports.jsx(R.ListTreeIcon,{className:"mr-2 h-3"})," ",E("Outline")]}),e.jsxRuntimeExports.jsxs(s.TabsTrigger,{value:"data-provider",children:[e.jsxRuntimeExports.jsx(R.DatabaseIcon,{className:"mr-2 w-3"}),E("Data")]})]}),e.jsxRuntimeExports.jsx(s.TabsContent,{value:l.OUTLINE_KEY,className:"no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden",children:i.createElement(v?q:T)}),e.jsxRuntimeExports.jsx(s.TabsContent,{value:"data-provider",className:"flex-1 overflow-y-auto overflow-x-hidden",children:e.jsxRuntimeExports.jsx(L,{})})]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs(s.Tabs,{defaultValue:l.OUTLINE_KEY,className:"flex h-full w-full flex-col py-1",children:[e.jsxRuntimeExports.jsx(s.TabsList,{className:"mx-1 grid h-10 grid-cols-1",children:e.jsxRuntimeExports.jsxs(s.TabsTrigger,{value:l.OUTLINE_KEY,children:[e.jsxRuntimeExports.jsx(R.ListTreeIcon,{className:"mr-2 h-3"})," ",E("Outline")]})}),e.jsxRuntimeExports.jsx(s.TabsContent,{value:l.OUTLINE_KEY,className:"no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden",children:i.createElement(v?q:T)})]})})})})]})};exports.default=z;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as c } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
2
|
import z, { useMemo as V, Suspense as n } from "react";
|
|
3
3
|
import { FontFamilyIcon as o, EyeOpenIcon as M } from "@radix-ui/react-icons";
|
|
4
|
-
import { h as s, aj as u, ak as d, al as C, am as L, ay as m, az as p, an as i, z as F, B as g, q as w, S as v, aA as B } from "./index-
|
|
4
|
+
import { h as s, aj as u, ak as d, al as C, am as L, ay as m, az as p, an as i, z as F, B as g, q as w, S as v, aA as B } from "./index-la4rqGKN.js";
|
|
5
5
|
import { G as f } from "./index-YpnaudSM.js";
|
|
6
6
|
import { useTranslation as e } from "react-i18next";
|
|
7
7
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
@@ -11,7 +11,6 @@ import "clsx";
|
|
|
11
11
|
import "tailwind-merge";
|
|
12
12
|
import "@chaibuilder/runtime";
|
|
13
13
|
import "jotai";
|
|
14
|
-
import "flat-to-nested";
|
|
15
14
|
import "./MODIFIERS-WQdaNvb8.js";
|
|
16
15
|
import "@react-hookz/web";
|
|
17
16
|
import "@radix-ui/react-toggle";
|
|
@@ -104,7 +103,7 @@ const R = () => {
|
|
|
104
103
|
]
|
|
105
104
|
}
|
|
106
105
|
) : null;
|
|
107
|
-
},
|
|
106
|
+
}, u1 = () => {
|
|
108
107
|
const l = s("topBarComponents.left", []), t = s("topBarComponents.center", []), r = s("topBarComponents.right", []), h = s("editable", !0);
|
|
109
108
|
return /* @__PURE__ */ c.jsxs("div", { className: "flex h-14 items-center justify-between px-2", children: [
|
|
110
109
|
/* @__PURE__ */ c.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ c.jsx("div", { className: "flex items-center space-x-2 font-bold", children: z.Children.toArray(
|
|
@@ -125,5 +124,5 @@ const R = () => {
|
|
|
125
124
|
] });
|
|
126
125
|
};
|
|
127
126
|
export {
|
|
128
|
-
|
|
127
|
+
u1 as default
|
|
129
128
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-Z_BpKhVy.cjs"),r=require("react"),h=require("@radix-ui/react-icons"),t=require("./index-DeHH1q_1.cjs"),z=require("./index-ecnGWzh9.cjs"),i=require("react-i18next");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./MODIFIERS-9EwxLM8V.cjs");require("@react-hookz/web");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-MmCxz2Ay.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");const v=()=>t.useBuilderProp("languages",["en"]),g=()=>v().length===1?null:c.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:c.jsxRuntimeExports.jsxs(t.Select,{children:[c.jsxRuntimeExports.jsx(t.SelectTrigger,{className:"w-[150px] border-0",children:c.jsxRuntimeExports.jsx(t.SelectValue,{placeholder:c.jsxRuntimeExports.jsxs("span",{className:"flex items-center",children:[c.jsxRuntimeExports.jsx(h.FontFamilyIcon,{className:"h-4 w-4"})," English(US)"]})})}),c.jsxRuntimeExports.jsx(t.SelectContent,{children:c.jsxRuntimeExports.jsxs(t.SelectGroup,{children:[c.jsxRuntimeExports.jsx(t.SelectLabel,{children:"Fruits"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"apple",children:"Apple"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"banana",children:"Banana"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"blueberry",children:"Blueberry"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"grapes",children:"Grapes"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"pineapple",children:"Pineapple"})]})})]})});function H(l){return z.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"}}]})(l)}const V=()=>{const{savePage:l,syncState:a}=t.useSavePage(),{t:s}=i.useTranslation(),e=r.useMemo(()=>{switch(a){case"SAVING":return"animate-pulse bg-gray-300 text-gray-900";case"SAVED":return"bg-green-500 text-white hover:bg-green-600 hover:text-white";default:return"bg-gray-200 text-gray-500 hover:bg-gray-100"}},[a]),n=c.jsxRuntimeExports.jsxs(t.Button,{disabled:a==="SAVING",onClick:o=>{o.preventDefault(),l()},className:`flex h-auto w-fit items-center gap-x-2 rounded-full p-1.5 px-3 ${e}`,size:"sm",variant:"outline",children:[c.jsxRuntimeExports.jsx(H,{className:"text-lg"}),c.jsxRuntimeExports.jsx("span",{className:"text-sm",children:a==="SAVING"?"Saving...":s(a==="SAVED"?"Saved":"Unsaved")})]});return c.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:n})},M=function(){const a=t.useBuilderProp("previewComponent"),[,s]=t.usePreviewMode(),{t:e}=i.useTranslation();return a?c.jsxRuntimeExports.jsxs(t.Button,{onClick:n=>{n.preventDefault(),s(!0)},className:"flex h-auto w-fit items-center gap-x-2 rounded-full bg-gray-200 px-3 py-1",size:"sm",variant:"outline",children:[c.jsxRuntimeExports.jsx(h.EyeOpenIcon,{className:"text-xs"}),c.jsxRuntimeExports.jsx("span",{className:"text-sm",children:e("Preview")})]}):null},u=()=>{const l=t.useBuilderProp("topBarComponents.left",[]),a=t.useBuilderProp("topBarComponents.center",[]),s=t.useBuilderProp("topBarComponents.right",[]),e=t.useBuilderProp("editable",!0);return c.jsxRuntimeExports.jsxs("div",{className:"flex h-14 items-center justify-between px-2",children:[c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2 font-bold",children:r.Children.toArray(l.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))})}),c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:r.Children.toArray(a.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))}),c.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxRuntimeExports.jsx(g,{}),c.jsxRuntimeExports.jsx(M,{}),c.jsxRuntimeExports.jsx(t.Separator,{orientation:"vertical"}),e?c.jsxRuntimeExports.jsx(V,{}):null,r.Children.toArray(s.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))]})]})};exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-Z_BpKhVy.cjs"),s=require("@radix-ui/react-icons"),r=require("lucide-react"),n=t=>{switch(t.type){case"Image":return e.jsxRuntimeExports.jsx(s.ImageIcon,{});case"Heading":return e.jsxRuntimeExports.jsx(s.HeadingIcon,{});case"Text":return e.jsxRuntimeExports.jsx(s.TextIcon,{});case"Link":return e.jsxRuntimeExports.jsx(s.Link1Icon,{});case"Video":return e.jsxRuntimeExports.jsx(s.VideoIcon,{});case"RichText":return e.jsxRuntimeExports.jsx(s.CursorTextIcon,{});case"Button":return e.jsxRuntimeExports.jsx(s.ButtonIcon,{});case"CustomHTML":return e.jsxRuntimeExports.jsx(s.CodeIcon,{});case"Divider":return e.jsxRuntimeExports.jsx(s.DividerHorizontalIcon,{});case"Icon":return e.jsxRuntimeExports.jsx(s.SketchLogoIcon,{});case"List":return e.jsxRuntimeExports.jsx(s.RowsIcon,{});case"Paragraph":return e.jsxRuntimeExports.jsx(s.TextIcon,{});case"Row":return e.jsxRuntimeExports.jsx(s.RowsIcon,{});case"ListItem":return e.jsxRuntimeExports.jsx(s.ColumnsIcon,{});case"LineBreak":return e.jsxRuntimeExports.jsx(s.SpaceBetweenVerticallyIcon,{});case"Form":return e.jsxRuntimeExports.jsx(s.GroupIcon,{});case"Checkbox":return e.jsxRuntimeExports.jsx(s.CheckboxIcon,{});case"FormButton":return e.jsxRuntimeExports.jsx(s.ButtonIcon,{});case"Input":case"TextArea":return e.jsxRuntimeExports.jsx(s.InputIcon,{});case"Radio":return e.jsxRuntimeExports.jsx(s.RadiobuttonIcon,{});case"Select":return e.jsxRuntimeExports.jsx(s.DropdownMenuIcon,{});case"Table":return e.jsxRuntimeExports.jsx(s.TableIcon,{});case"TableHead":return e.jsxRuntimeExports.jsx(s.BorderTopIcon,{});case"TableBody":return e.jsxRuntimeExports.jsx(s.BorderAllIcon,{});case"TableRow":return e.jsxRuntimeExports.jsx(s.ViewHorizontalIcon,{});case"TableCell":return e.jsxRuntimeExports.jsx(s.DragHandleHorizontalIcon,{});case"DataProvider":return e.jsxRuntimeExports.jsx(r.DatabaseIcon,{size:16});case"Box":return e.jsxRuntimeExports.jsx(s.BoxIcon,{});default:return e.jsxRuntimeExports.jsx(s.BoxModelIcon,{})}};exports.TypeIcon=n;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
+
import { BoxModelIcon as t, BoxIcon as c, DragHandleHorizontalIcon as a, ViewHorizontalIcon as u, BorderAllIcon as x, BorderTopIcon as I, TableIcon as j, DropdownMenuIcon as i, RadiobuttonIcon as l, InputIcon as d, ButtonIcon as r, CheckboxIcon as T, GroupIcon as m, SpaceBetweenVerticallyIcon as p, ColumnsIcon as B, RowsIcon as n, TextIcon as o, SketchLogoIcon as b, DividerHorizontalIcon as H, CodeIcon as g, CursorTextIcon as w, VideoIcon as C, Link1Icon as L, HeadingIcon as R, ImageIcon as h } from "@radix-ui/react-icons";
|
|
3
|
+
import { DatabaseIcon as k } from "lucide-react";
|
|
4
|
+
const z = (s) => {
|
|
5
|
+
switch (s.type) {
|
|
6
|
+
case "Image":
|
|
7
|
+
return /* @__PURE__ */ e.jsx(h, {});
|
|
8
|
+
case "Heading":
|
|
9
|
+
return /* @__PURE__ */ e.jsx(R, {});
|
|
10
|
+
case "Text":
|
|
11
|
+
return /* @__PURE__ */ e.jsx(o, {});
|
|
12
|
+
case "Link":
|
|
13
|
+
return /* @__PURE__ */ e.jsx(L, {});
|
|
14
|
+
case "Video":
|
|
15
|
+
return /* @__PURE__ */ e.jsx(C, {});
|
|
16
|
+
case "RichText":
|
|
17
|
+
return /* @__PURE__ */ e.jsx(w, {});
|
|
18
|
+
case "Button":
|
|
19
|
+
return /* @__PURE__ */ e.jsx(r, {});
|
|
20
|
+
case "CustomHTML":
|
|
21
|
+
return /* @__PURE__ */ e.jsx(g, {});
|
|
22
|
+
case "Divider":
|
|
23
|
+
return /* @__PURE__ */ e.jsx(H, {});
|
|
24
|
+
case "Icon":
|
|
25
|
+
return /* @__PURE__ */ e.jsx(b, {});
|
|
26
|
+
case "List":
|
|
27
|
+
return /* @__PURE__ */ e.jsx(n, {});
|
|
28
|
+
case "Paragraph":
|
|
29
|
+
return /* @__PURE__ */ e.jsx(o, {});
|
|
30
|
+
case "Row":
|
|
31
|
+
return /* @__PURE__ */ e.jsx(n, {});
|
|
32
|
+
case "ListItem":
|
|
33
|
+
return /* @__PURE__ */ e.jsx(B, {});
|
|
34
|
+
case "LineBreak":
|
|
35
|
+
return /* @__PURE__ */ e.jsx(p, {});
|
|
36
|
+
case "Form":
|
|
37
|
+
return /* @__PURE__ */ e.jsx(m, {});
|
|
38
|
+
case "Checkbox":
|
|
39
|
+
return /* @__PURE__ */ e.jsx(T, {});
|
|
40
|
+
case "FormButton":
|
|
41
|
+
return /* @__PURE__ */ e.jsx(r, {});
|
|
42
|
+
case "Input":
|
|
43
|
+
case "TextArea":
|
|
44
|
+
return /* @__PURE__ */ e.jsx(d, {});
|
|
45
|
+
case "Radio":
|
|
46
|
+
return /* @__PURE__ */ e.jsx(l, {});
|
|
47
|
+
case "Select":
|
|
48
|
+
return /* @__PURE__ */ e.jsx(i, {});
|
|
49
|
+
case "Table":
|
|
50
|
+
return /* @__PURE__ */ e.jsx(j, {});
|
|
51
|
+
case "TableHead":
|
|
52
|
+
return /* @__PURE__ */ e.jsx(I, {});
|
|
53
|
+
case "TableBody":
|
|
54
|
+
return /* @__PURE__ */ e.jsx(x, {});
|
|
55
|
+
case "TableRow":
|
|
56
|
+
return /* @__PURE__ */ e.jsx(u, {});
|
|
57
|
+
case "TableCell":
|
|
58
|
+
return /* @__PURE__ */ e.jsx(a, {});
|
|
59
|
+
case "DataProvider":
|
|
60
|
+
return /* @__PURE__ */ e.jsx(k, { size: 16 });
|
|
61
|
+
case "Box":
|
|
62
|
+
return /* @__PURE__ */ e.jsx(c, {});
|
|
63
|
+
default:
|
|
64
|
+
return /* @__PURE__ */ e.jsx(t, {});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
z as T
|
|
69
|
+
};
|