@chaibuilder/sdk 1.0.24 → 1.1.1
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-P3qHuE5J.cjs +1 -0
- package/dist/AddBlocks-imyQSCbI.js +230 -0
- package/dist/{BrandingOptions-2aNZT1u3.cjs → BrandingOptions-_2XBEPab.cjs} +1 -1
- package/dist/{BrandingOptions-GLVanp1T.js → BrandingOptions-tSNtQ1Kv.js} +1 -1
- package/dist/CanvasArea-JzBGfXSp.js +1412 -0
- package/dist/CanvasArea-rC2E_4eS.cjs +58 -0
- package/dist/{CurrentPage-fyWf5F84.js → CurrentPage-2Hqp8dwp.js} +2 -2
- package/dist/{CurrentPage-JJpZpFko.cjs → CurrentPage-v7RxefU-.cjs} +1 -1
- package/dist/Layers-1H-MUoKM.cjs +1 -0
- package/dist/{Layers-RGy6kyuR.js → Layers-K_1pMZK5.js} +119 -137
- package/dist/{MarkAsGlobalBlock-EsX3-clj.js → MarkAsGlobalBlock-aqik3ouc.js} +1 -1
- package/dist/{MarkAsGlobalBlock-1G5m_8t3.cjs → MarkAsGlobalBlock-p_wvHkQZ.cjs} +1 -1
- package/dist/{PagesPanel-J8uYp1Tp.cjs → PagesPanel-Qt66yy3K.cjs} +1 -1
- package/dist/{PagesPanel-LjiXL4rp.js → PagesPanel-uMZT46fo.js} +3 -3
- package/dist/{ProjectPanel-IXVY1LJ_.cjs → ProjectPanel-g92sgZ-g.cjs} +1 -1
- package/dist/{ProjectPanel-F435j6T2.js → ProjectPanel-nhhdOgSP.js} +3 -3
- package/dist/Settings-IcmgBZm9.cjs +1 -0
- package/dist/{Settings-b3lEaQ7w.js → Settings-pYbQsClt.js} +483 -475
- package/dist/{SidePanels-MnI_uhIo.js → SidePanels-9AjWdvVI.js} +62 -55
- package/dist/{SidePanels-1Ooc-KTb.cjs → SidePanels-CBkl8HgT.cjs} +1 -1
- package/dist/{Topbar-1ClabAix.js → Topbar-Jc74a6oE.js} +1 -1
- package/dist/{Topbar-e0hKiAm_.cjs → Topbar-ZjAs5fDc.cjs} +1 -1
- package/dist/{UnsplashImages-UejSDiRk.js → UnsplashImages-_PxEYx5c.js} +1 -1
- package/dist/{UnsplashImages-OJ5u1mVM.cjs → UnsplashImages-nXceZLmd.cjs} +1 -1
- package/dist/{UploadImages-2SqVkr1u.cjs → UploadImages-tcQb5NZu.cjs} +1 -1
- package/dist/{UploadImages-xBJTMBKX.js → UploadImages-zzSgKmP9.js} +10 -10
- package/dist/{add-page-modal-SdyjVxRW.js → add-page-modal-Ny4uAvWB.js} +3 -3
- package/dist/{add-page-modal-rkF5RqMj.cjs → add-page-modal-eahhWw2b.cjs} +1 -1
- package/dist/{confirm-alert-TCwoZBC3.js → confirm-alert-2JxcNf3T.js} +1 -1
- package/dist/{confirm-alert-uk39UILT.cjs → confirm-alert-mzlwOW9w.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-PKSlPOAB.cjs → delete-page-modal-07nDpZpj.cjs} +1 -1
- package/dist/{delete-page-modal-pjChqG0d.js → delete-page-modal-4qrgJQ0x.js} +2 -2
- package/dist/{form-aIN_qzKQ.js → form-TQ7vwDYO.js} +1 -1
- package/dist/{form-N6Izl5Ni.cjs → form-bSW-Pkw9.cjs} +1 -1
- package/dist/{index-aPk1Fuat.js → index-ORFlyrBx.js} +536 -534
- package/dist/{index-LL32f5q7.cjs → index-Ua5E0Syv.cjs} +11 -11
- package/dist/{index-0ZqKzbSx.js → index-aDqFUJ8v.js} +165 -160
- package/dist/index-zkc4SQCu.cjs +1 -0
- package/dist/{page-viewer-SMOg1l3b.js → page-viewer-1Eb7ypob.js} +3 -3
- package/dist/{page-viewer-wrYXvC-7.cjs → page-viewer-X8h3FMwb.cjs} +1 -1
- package/dist/{project-general-setting-wDjCo89M.cjs → project-general-setting-I4z0C7PE.cjs} +1 -1
- package/dist/{project-general-setting-CcnnvnwD.js → project-general-setting-TCl_JNdl.js} +3 -3
- package/dist/{project-seo-setting-RJMYUQxR.cjs → project-seo-setting-cERASO9j.cjs} +1 -1
- package/dist/{project-seo-setting-CPtrvtsw.js → project-seo-setting-k0HlefUD.js} +2 -2
- package/dist/{single-page-detail-7NRw-CLc.js → single-page-detail-W5sW6771.js} +4 -4
- package/dist/{single-page-detail-gnpyWcy7.cjs → single-page-detail-sdTzXA5i.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +57 -57
- package/dist/useAddBlockByDrop-DPV32UHP.cjs +1 -0
- package/dist/useAddBlockByDrop-UA_Iw_4l.js +20 -0
- package/package.json +2 -2
- package/dist/AddBlocks-F05ZiQnz.cjs +0 -3
- package/dist/AddBlocks-kmAje7cV.js +0 -270
- package/dist/CanvasArea-AHGpIP2x.cjs +0 -56
- package/dist/CanvasArea-gJ_UifbO.js +0 -1349
- package/dist/Layers-YtfF6ty5.cjs +0 -1
- package/dist/Settings-xwTkQuKA.cjs +0 -1
- package/dist/index-4h4Ti2E4.cjs +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-NV737rRe.js";
|
|
2
|
-
import { nth as k, startsWith as
|
|
3
|
-
import { BoxModelIcon as
|
|
4
|
-
import { useDrop as
|
|
5
|
-
import { useDragOver as
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { DatabaseIcon as
|
|
2
|
+
import { nth as k, startsWith as E, map as v, isUndefined as _, find as A, isEmpty as H, includes as P } from "lodash";
|
|
3
|
+
import { BoxModelIcon as L, BoxIcon as F, DragHandleHorizontalIcon as V, ViewHorizontalIcon as z, BorderAllIcon as G, BorderTopIcon as $, TableIcon as K, DropdownMenuIcon as Q, RadiobuttonIcon as U, InputIcon as Y, ButtonIcon as y, CheckboxIcon as q, GroupIcon as W, SpaceBetweenVerticallyIcon as Z, ColumnsIcon as J, RowsIcon as B, TextIcon as C, SketchLogoIcon as X, DividerHorizontalIcon as ee, CodeIcon as te, CursorTextIcon as se, VideoIcon as oe, Link1Icon as ne, HeadingIcon as re, ImageIcon as ae, TriangleRightIcon as ce, ScissorsIcon as le, ClipboardIcon as ie, TrashIcon as xe, GlobeIcon as de, CopyIcon as me, ClipboardCopyIcon as pe, DoubleArrowDownIcon as ue, StackIcon as ge } from "@radix-ui/react-icons";
|
|
4
|
+
import { useDrop as je, useDragLayer as he } from "react-dnd";
|
|
5
|
+
import { useDragOver as be, Tree as fe } from "@minoru/react-dnd-treeview";
|
|
6
|
+
import { useTranslation as Ie } from "react-i18next";
|
|
7
|
+
import { _ as ke, Z as ye, j as g, n as Be, bC as i, k as Ce, l as ve, a6 as we, m as Se, o as De, i as Te, bD as Ne, ao as Me, ap as Oe, bE as Re, bF as Ee, ae as _e, w as Ae, aj as He, p as Pe, aA as Le, br as Fe, bG as Ve } from "./index-ORFlyrBx.js";
|
|
8
|
+
import { DatabaseIcon as ze } from "lucide-react";
|
|
9
9
|
import "./lib.js";
|
|
10
|
-
import { useMemo as
|
|
11
|
-
import { a as
|
|
12
|
-
import { c as
|
|
13
|
-
import { f as
|
|
14
|
-
import { useAtom as
|
|
10
|
+
import { useMemo as Ge, lazy as $e, useCallback as Ke, useState as Qe, Suspense as Ue } from "react";
|
|
11
|
+
import { a as Ye } from "./MODIFIERS-MLfpKQY1.js";
|
|
12
|
+
import { c as w } from "./utils-PPBbw5bk.js";
|
|
13
|
+
import { f as qe } from "./index-aDqFUJ8v.js";
|
|
14
|
+
import { useAtom as We } from "jotai";
|
|
15
|
+
import { u as Ze } from "./useAddBlockByDrop-UA_Iw_4l.js";
|
|
15
16
|
import "@radix-ui/react-toggle";
|
|
16
17
|
import "class-variance-authority";
|
|
17
18
|
import "@radix-ui/react-switch";
|
|
@@ -56,70 +57,70 @@ import "react-textarea-autosize";
|
|
|
56
57
|
import "flagged";
|
|
57
58
|
import "react-hotkeys-hook";
|
|
58
59
|
import "sonner";
|
|
59
|
-
const
|
|
60
|
+
const S = (t) => {
|
|
60
61
|
switch (t.type) {
|
|
61
62
|
case "Image":
|
|
62
|
-
return /* @__PURE__ */ e.jsx(
|
|
63
|
+
return /* @__PURE__ */ e.jsx(ae, {});
|
|
63
64
|
case "Heading":
|
|
64
|
-
return /* @__PURE__ */ e.jsx(
|
|
65
|
+
return /* @__PURE__ */ e.jsx(re, {});
|
|
65
66
|
case "Text":
|
|
66
67
|
return /* @__PURE__ */ e.jsx(C, {});
|
|
67
68
|
case "Link":
|
|
68
|
-
return /* @__PURE__ */ e.jsx(
|
|
69
|
+
return /* @__PURE__ */ e.jsx(ne, {});
|
|
69
70
|
case "Video":
|
|
70
|
-
return /* @__PURE__ */ e.jsx(
|
|
71
|
+
return /* @__PURE__ */ e.jsx(oe, {});
|
|
71
72
|
case "RichText":
|
|
72
|
-
return /* @__PURE__ */ e.jsx(
|
|
73
|
+
return /* @__PURE__ */ e.jsx(se, {});
|
|
73
74
|
case "Button":
|
|
74
|
-
return /* @__PURE__ */ e.jsx(
|
|
75
|
+
return /* @__PURE__ */ e.jsx(y, {});
|
|
75
76
|
case "CustomHTML":
|
|
76
|
-
return /* @__PURE__ */ e.jsx(
|
|
77
|
+
return /* @__PURE__ */ e.jsx(te, {});
|
|
77
78
|
case "Divider":
|
|
78
|
-
return /* @__PURE__ */ e.jsx(
|
|
79
|
+
return /* @__PURE__ */ e.jsx(ee, {});
|
|
79
80
|
case "Icon":
|
|
80
|
-
return /* @__PURE__ */ e.jsx(
|
|
81
|
+
return /* @__PURE__ */ e.jsx(X, {});
|
|
81
82
|
case "List":
|
|
82
|
-
return /* @__PURE__ */ e.jsx(
|
|
83
|
+
return /* @__PURE__ */ e.jsx(B, {});
|
|
83
84
|
case "Paragraph":
|
|
84
85
|
return /* @__PURE__ */ e.jsx(C, {});
|
|
85
86
|
case "Row":
|
|
86
|
-
return /* @__PURE__ */ e.jsx(
|
|
87
|
+
return /* @__PURE__ */ e.jsx(B, {});
|
|
87
88
|
case "ListItem":
|
|
88
|
-
return /* @__PURE__ */ e.jsx(
|
|
89
|
+
return /* @__PURE__ */ e.jsx(J, {});
|
|
89
90
|
case "LineBreak":
|
|
90
|
-
return /* @__PURE__ */ e.jsx(
|
|
91
|
+
return /* @__PURE__ */ e.jsx(Z, {});
|
|
91
92
|
case "Form":
|
|
92
|
-
return /* @__PURE__ */ e.jsx(
|
|
93
|
+
return /* @__PURE__ */ e.jsx(W, {});
|
|
93
94
|
case "Checkbox":
|
|
94
|
-
return /* @__PURE__ */ e.jsx(
|
|
95
|
+
return /* @__PURE__ */ e.jsx(q, {});
|
|
95
96
|
case "FormButton":
|
|
96
|
-
return /* @__PURE__ */ e.jsx(
|
|
97
|
+
return /* @__PURE__ */ e.jsx(y, {});
|
|
97
98
|
case "Input":
|
|
98
99
|
case "TextArea":
|
|
99
|
-
return /* @__PURE__ */ e.jsx(
|
|
100
|
+
return /* @__PURE__ */ e.jsx(Y, {});
|
|
100
101
|
case "Radio":
|
|
101
|
-
return /* @__PURE__ */ e.jsx(
|
|
102
|
+
return /* @__PURE__ */ e.jsx(U, {});
|
|
102
103
|
case "Select":
|
|
103
|
-
return /* @__PURE__ */ e.jsx(
|
|
104
|
+
return /* @__PURE__ */ e.jsx(Q, {});
|
|
104
105
|
case "Table":
|
|
105
|
-
return /* @__PURE__ */ e.jsx(
|
|
106
|
+
return /* @__PURE__ */ e.jsx(K, {});
|
|
106
107
|
case "TableHead":
|
|
107
|
-
return /* @__PURE__ */ e.jsx(
|
|
108
|
+
return /* @__PURE__ */ e.jsx($, {});
|
|
108
109
|
case "TableBody":
|
|
109
|
-
return /* @__PURE__ */ e.jsx(
|
|
110
|
+
return /* @__PURE__ */ e.jsx(G, {});
|
|
110
111
|
case "TableRow":
|
|
111
|
-
return /* @__PURE__ */ e.jsx(
|
|
112
|
+
return /* @__PURE__ */ e.jsx(z, {});
|
|
112
113
|
case "TableCell":
|
|
113
|
-
return /* @__PURE__ */ e.jsx(
|
|
114
|
+
return /* @__PURE__ */ e.jsx(V, {});
|
|
114
115
|
case "DataProvider":
|
|
115
|
-
return /* @__PURE__ */ e.jsx(
|
|
116
|
+
return /* @__PURE__ */ e.jsx(ze, { size: 16 });
|
|
116
117
|
case "Box":
|
|
117
|
-
return /* @__PURE__ */ e.jsx(
|
|
118
|
+
return /* @__PURE__ */ e.jsx(F, {});
|
|
118
119
|
default:
|
|
119
|
-
return /* @__PURE__ */ e.jsx(
|
|
120
|
+
return /* @__PURE__ */ e.jsx(L, {});
|
|
120
121
|
}
|
|
121
122
|
};
|
|
122
|
-
function
|
|
123
|
+
function Je(t = "") {
|
|
123
124
|
const s = {
|
|
124
125
|
xs: "390px",
|
|
125
126
|
sm: "640px",
|
|
@@ -142,18 +143,18 @@ function et(t = "") {
|
|
|
142
143
|
}
|
|
143
144
|
return "";
|
|
144
145
|
}
|
|
145
|
-
const
|
|
146
|
+
const Xe = (t) => {
|
|
146
147
|
let s = "";
|
|
147
148
|
return Object.keys(t).forEach((o) => {
|
|
148
|
-
|
|
149
|
+
E(t[o], Ye) && (s = t[o]);
|
|
149
150
|
}), s;
|
|
150
|
-
},
|
|
151
|
+
}, et = (t) => {
|
|
151
152
|
var p;
|
|
152
|
-
const [, s] =
|
|
153
|
-
|
|
154
|
-
}, j =
|
|
155
|
-
const
|
|
156
|
-
return
|
|
153
|
+
const [, s] = ke(), [o] = ye(), { isSelected: r } = t, { id: a, data: c } = t.node, x = t.depth * 10, d = (l) => {
|
|
154
|
+
l.stopPropagation(), t.onToggle(t.node.id);
|
|
155
|
+
}, j = be(a, t.isOpen, t.onToggle), m = Ge(() => {
|
|
156
|
+
const l = Xe(t.node.data);
|
|
157
|
+
return Je(l);
|
|
157
158
|
}, [t.node.data]);
|
|
158
159
|
return (
|
|
159
160
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
@@ -161,26 +162,26 @@ const tt = (t) => {
|
|
|
161
162
|
"div",
|
|
162
163
|
{
|
|
163
164
|
onMouseEnter: () => s(a),
|
|
164
|
-
className:
|
|
165
|
+
className: w(
|
|
165
166
|
"group flex w-full items-center justify-between space-x-px py-px ",
|
|
166
167
|
r ? "bg-blue-500 text-white" : "hover:bg-gray-200 dark:hover:bg-gray-800"
|
|
167
168
|
),
|
|
168
|
-
onClick: (
|
|
169
|
-
|
|
169
|
+
onClick: (l) => {
|
|
170
|
+
l.stopPropagation(), !o.includes(a) && t.onSelect(a);
|
|
170
171
|
},
|
|
171
172
|
onContextMenu: () => t.onSelect(a),
|
|
172
|
-
style: { paddingInlineStart:
|
|
173
|
+
style: { paddingInlineStart: x },
|
|
173
174
|
...j,
|
|
174
175
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
175
176
|
/* @__PURE__ */ e.jsx(
|
|
176
177
|
"div",
|
|
177
178
|
{
|
|
178
179
|
className: `flex h-4 w-4 rotate-0 transform cursor-pointer items-center justify-center text-xs transition-transform duration-100 ${t.isOpen ? "rotate-90" : ""}`,
|
|
179
|
-
children: t.node.droppable && /* @__PURE__ */ e.jsx("button", { onClick:
|
|
180
|
+
children: t.node.droppable && /* @__PURE__ */ e.jsx("button", { onClick: d, type: "button", children: /* @__PURE__ */ e.jsx(ce, {}) })
|
|
180
181
|
}
|
|
181
182
|
),
|
|
182
183
|
/* @__PURE__ */ e.jsxs("button", { type: "button", className: "flex items-center", children: [
|
|
183
|
-
/* @__PURE__ */ e.jsx("div", { className: "-mt-1 h-3 w-3", children: /* @__PURE__ */ e.jsx(
|
|
184
|
+
/* @__PURE__ */ e.jsx("div", { className: "-mt-1 h-3 w-3", children: /* @__PURE__ */ e.jsx(S, { type: c == null ? void 0 : c._type }) }),
|
|
184
185
|
/* @__PURE__ */ e.jsx("div", { className: "ml-2 truncate text-[11px]", children: ((p = t.node.data) == null ? void 0 : p._name) || t.node.text }),
|
|
185
186
|
m ? /* @__PURE__ */ e.jsxs(
|
|
186
187
|
"span",
|
|
@@ -198,98 +199,85 @@ const tt = (t) => {
|
|
|
198
199
|
}
|
|
199
200
|
)
|
|
200
201
|
);
|
|
201
|
-
},
|
|
202
|
+
}, tt = (t) => {
|
|
202
203
|
var o;
|
|
203
204
|
const { item: s } = t.monitorProps;
|
|
204
205
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex w-max items-center bg-blue-200 bg-opacity-30 p-1 font-semibold text-blue-700", children: [
|
|
205
|
-
/* @__PURE__ */ e.jsx("div", { className: "", children: /* @__PURE__ */ e.jsx(
|
|
206
|
+
/* @__PURE__ */ e.jsx("div", { className: "", children: /* @__PURE__ */ e.jsx(S, { type: (o = s == null ? void 0 : s.data) == null ? void 0 : o._type }) }),
|
|
206
207
|
/* @__PURE__ */ e.jsx("div", { className: "ml-2 truncate text-[11px]", children: s.text })
|
|
207
208
|
] });
|
|
208
|
-
},
|
|
209
|
+
}, st = (t) => {
|
|
209
210
|
const s = t.depth * 10 + 16;
|
|
210
211
|
return /* @__PURE__ */ e.jsx("div", { className: "absolute right-0 top-0 h-0.5 -translate-y-1/2 transform bg-green-500", style: { left: s } });
|
|
211
|
-
},
|
|
212
|
-
const [t] = g(), [, s] =
|
|
213
|
-
return /* @__PURE__ */ e.jsxs(
|
|
214
|
-
/* @__PURE__ */ e.jsx(
|
|
212
|
+
}, ot = $e(() => import("./MarkAsGlobalBlock-aqik3ouc.js")), nt = () => {
|
|
213
|
+
const [t] = g(), [, s] = Be();
|
|
214
|
+
return /* @__PURE__ */ e.jsxs(i, { className: "flex items-center gap-x-4 text-xs", onClick: () => s(t), children: [
|
|
215
|
+
/* @__PURE__ */ e.jsx(le, {}),
|
|
215
216
|
" Cut"
|
|
216
217
|
] });
|
|
217
|
-
},
|
|
218
|
-
const [t] = g(), [, s] =
|
|
219
|
-
return /* @__PURE__ */ e.jsxs(
|
|
220
|
-
/* @__PURE__ */ e.jsx(
|
|
218
|
+
}, rt = () => {
|
|
219
|
+
const [t] = g(), [, s] = Ce();
|
|
220
|
+
return /* @__PURE__ */ e.jsxs(i, { className: "flex items-center gap-x-4 text-xs", onClick: () => s(t), children: [
|
|
221
|
+
/* @__PURE__ */ e.jsx(ie, {}),
|
|
221
222
|
" Copy"
|
|
222
223
|
] });
|
|
223
|
-
},
|
|
224
|
-
const [t] = g(), s =
|
|
224
|
+
}, at = () => {
|
|
225
|
+
const [t] = g(), s = ve(), o = we();
|
|
225
226
|
return /* @__PURE__ */ e.jsxs(
|
|
226
|
-
|
|
227
|
+
i,
|
|
227
228
|
{
|
|
228
229
|
disabled: (o == null ? void 0 : o._type) === "Slot",
|
|
229
230
|
className: "flex items-center gap-x-4 text-xs",
|
|
230
231
|
onClick: () => s(t),
|
|
231
232
|
children: [
|
|
232
|
-
/* @__PURE__ */ e.jsx(
|
|
233
|
+
/* @__PURE__ */ e.jsx(xe, {}),
|
|
233
234
|
" Remove"
|
|
234
235
|
]
|
|
235
236
|
}
|
|
236
237
|
);
|
|
237
|
-
},
|
|
238
|
+
}, ct = ({
|
|
238
239
|
id: t = null,
|
|
239
240
|
openMarkAsGlobalModal: s
|
|
240
241
|
}) => {
|
|
241
|
-
const [o] = g(), r =
|
|
242
|
+
const [o] = g(), r = Se(), { pasteBlocks: a, canPaste: c } = De(), x = Te("globalBlocksSupport", !1), d = Ke(() => {
|
|
242
243
|
r(o);
|
|
243
244
|
}, [o, r]);
|
|
244
|
-
return /* @__PURE__ */ e.jsxs(
|
|
245
|
-
|
|
246
|
-
/* @__PURE__ */ e.jsx(
|
|
245
|
+
return /* @__PURE__ */ e.jsxs(Ne, { className: "text-xs", children: [
|
|
246
|
+
x && /* @__PURE__ */ e.jsx(i, { className: "flex items-center gap-x-4 border-b text-xs", onClick: s, children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-4", children: [
|
|
247
|
+
/* @__PURE__ */ e.jsx(de, {}),
|
|
247
248
|
" Mark as global"
|
|
248
249
|
] }) }),
|
|
249
|
-
/* @__PURE__ */ e.jsxs(
|
|
250
|
-
/* @__PURE__ */ e.jsx(
|
|
250
|
+
/* @__PURE__ */ e.jsxs(i, { className: "flex items-center gap-x-4 text-xs", onClick: d, children: [
|
|
251
|
+
/* @__PURE__ */ e.jsx(me, {}),
|
|
251
252
|
" Duplicate"
|
|
252
253
|
] }),
|
|
253
|
-
/* @__PURE__ */ e.jsx(
|
|
254
|
-
/* @__PURE__ */ e.jsx(
|
|
254
|
+
/* @__PURE__ */ e.jsx(nt, {}),
|
|
255
|
+
/* @__PURE__ */ e.jsx(rt, {}),
|
|
255
256
|
/* @__PURE__ */ e.jsxs(
|
|
256
|
-
|
|
257
|
+
i,
|
|
257
258
|
{
|
|
258
259
|
className: "flex items-center gap-x-4 text-xs",
|
|
259
260
|
onClick: () => a(t),
|
|
260
261
|
disabled: !c,
|
|
261
262
|
children: [
|
|
262
|
-
/* @__PURE__ */ e.jsx(
|
|
263
|
+
/* @__PURE__ */ e.jsx(pe, {}),
|
|
263
264
|
" Paste"
|
|
264
265
|
]
|
|
265
266
|
}
|
|
266
267
|
),
|
|
267
|
-
/* @__PURE__ */ e.jsx(
|
|
268
|
+
/* @__PURE__ */ e.jsx(at, {})
|
|
268
269
|
] });
|
|
269
|
-
},
|
|
270
|
-
const [o, r] =
|
|
270
|
+
}, lt = ({ children: t, id: s = null }) => {
|
|
271
|
+
const [o, r] = Qe(!1);
|
|
271
272
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
272
|
-
/* @__PURE__ */ e.jsx(
|
|
273
|
-
/* @__PURE__ */ e.jsxs(
|
|
274
|
-
/* @__PURE__ */ e.jsx(
|
|
275
|
-
/* @__PURE__ */ e.jsx(
|
|
273
|
+
/* @__PURE__ */ e.jsx(Me, { open: o, onOpenChange: r, children: o && /* @__PURE__ */ e.jsx(Oe, { children: /* @__PURE__ */ e.jsx(Ue, { fallback: /* @__PURE__ */ e.jsx("div", { className: "h-96 w-full animate-pulse bg-gray-200" }), children: /* @__PURE__ */ e.jsx(ot, { closeModal: () => r(!1), id: s }) }) }) }),
|
|
274
|
+
/* @__PURE__ */ e.jsxs(Re, { children: [
|
|
275
|
+
/* @__PURE__ */ e.jsx(Ee, { children: t }),
|
|
276
|
+
/* @__PURE__ */ e.jsx(ct, { id: s, openMarkAsGlobalModal: () => r(!0) })
|
|
276
277
|
] })
|
|
277
278
|
] });
|
|
278
|
-
}, xt = () => {
|
|
279
|
-
const { addCoreBlock: t } = He(), s = w("getExternalPredefinedBlock");
|
|
280
|
-
return S(
|
|
281
|
-
async (o) => {
|
|
282
|
-
const { block: r, dropTargetId: a, relativeIndex: c } = o;
|
|
283
|
-
if (H(r, "format")) {
|
|
284
|
-
const l = await s(r);
|
|
285
|
-
return t({ blocks: l }, a === 0 ? null : a, c);
|
|
286
|
-
}
|
|
287
|
-
return t(r, a === 0 ? null : a, c);
|
|
288
|
-
},
|
|
289
|
-
[t]
|
|
290
|
-
);
|
|
291
279
|
};
|
|
292
|
-
function
|
|
280
|
+
function it(t) {
|
|
293
281
|
return v(t, (s) => {
|
|
294
282
|
const { data: o } = s;
|
|
295
283
|
return {
|
|
@@ -298,24 +286,19 @@ function mt(t) {
|
|
|
298
286
|
};
|
|
299
287
|
});
|
|
300
288
|
}
|
|
301
|
-
const
|
|
302
|
-
const t =
|
|
303
|
-
const { dragSource:
|
|
304
|
-
s(
|
|
305
|
-
|
|
306
|
-
dropTargetId: E,
|
|
307
|
-
destinationIndex: b,
|
|
308
|
-
relativeIndex: I
|
|
309
|
-
}), p(!1));
|
|
310
|
-
}, N = v(t, (n) => ({
|
|
289
|
+
const gs = () => {
|
|
290
|
+
const t = _e(), [s] = Ae(), [o, r, a] = g(), [, c] = He(), { t: x } = Ie(), { createSnapshot: d } = Pe(), j = qe(), m = Ze(), [, p] = We(Le), l = async (n, u) => {
|
|
291
|
+
const { dragSource: b, relativeIndex: f, dropTargetId: I, monitor: O } = u, R = it(n);
|
|
292
|
+
s(R), b ? d() : (await m({ block: O.getItem(), dropTargetId: I, relativeIndex: f }), p(!1));
|
|
293
|
+
}, D = v(t, (n) => ({
|
|
311
294
|
id: n._id,
|
|
312
295
|
text: n._type,
|
|
313
296
|
parent: n._parent || 0,
|
|
314
|
-
droppable: !
|
|
297
|
+
droppable: !_(A(t, { _parent: n._id })),
|
|
315
298
|
data: n
|
|
316
|
-
})),
|
|
299
|
+
})), T = () => {
|
|
317
300
|
r([]), c([]);
|
|
318
|
-
}, [{ isOver: h },
|
|
301
|
+
}, [{ isOver: h }, N] = je(() => ({
|
|
319
302
|
accept: ["CHAI_BLOCK"],
|
|
320
303
|
collect: (n) => ({
|
|
321
304
|
canDrop: n.canDrop(),
|
|
@@ -325,54 +308,53 @@ const hs = () => {
|
|
|
325
308
|
(async () => (await m({
|
|
326
309
|
block: n,
|
|
327
310
|
dropTargetId: "",
|
|
328
|
-
destinationIndex: 0,
|
|
329
311
|
relativeIndex: 0
|
|
330
312
|
}), p(!1)))();
|
|
331
313
|
}
|
|
332
|
-
})), { isDragging:
|
|
314
|
+
})), { isDragging: M } = he((n) => ({
|
|
333
315
|
isDragging: n.isDragging()
|
|
334
316
|
}));
|
|
335
317
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(
|
|
336
318
|
"div",
|
|
337
319
|
{
|
|
338
|
-
onClick: () =>
|
|
339
|
-
className:
|
|
320
|
+
onClick: () => T(),
|
|
321
|
+
className: w(
|
|
340
322
|
"-mx-1 -mt-1 flex h-full select-none flex-col space-y-1",
|
|
341
|
-
|
|
323
|
+
M ? "bg-green-50/80" : "bg-background"
|
|
342
324
|
),
|
|
343
|
-
children:
|
|
325
|
+
children: H(t) ? /* @__PURE__ */ e.jsxs(
|
|
344
326
|
"div",
|
|
345
327
|
{
|
|
346
|
-
ref:
|
|
328
|
+
ref: N,
|
|
347
329
|
className: `mx-1 mt-4 max-w-full h-full p-6 text-center text-sm text-gray-400 ${h ? "bg-blue-200" : ""}`,
|
|
348
330
|
children: [
|
|
349
|
-
h ? /* @__PURE__ */ e.jsx(
|
|
350
|
-
/* @__PURE__ */ e.jsx("p", { className: "mt-2", children:
|
|
331
|
+
h ? /* @__PURE__ */ e.jsx(ue, { className: "mx-auto h-12 w-12 animate-bounce" }) : /* @__PURE__ */ e.jsx(ge, { className: "mx-auto h-10 w-10" }),
|
|
332
|
+
/* @__PURE__ */ e.jsx("p", { className: "mt-2", children: x(h ? "drop_here_message" : "tree_view_no_blocks") })
|
|
351
333
|
]
|
|
352
334
|
}
|
|
353
|
-
) : /* @__PURE__ */ e.jsx(
|
|
354
|
-
|
|
335
|
+
) : /* @__PURE__ */ e.jsx(Fe, { id: "layers-view", className: "no-scrollbar h-full overflow-y-auto p-1", children: /* @__PURE__ */ e.jsx(
|
|
336
|
+
fe,
|
|
355
337
|
{
|
|
356
338
|
initialOpen: j,
|
|
357
339
|
extraAcceptTypes: ["CHAI_BLOCK"],
|
|
358
|
-
tree:
|
|
340
|
+
tree: D,
|
|
359
341
|
rootId: 0,
|
|
360
|
-
render: (n, { depth: u, isOpen:
|
|
361
|
-
|
|
342
|
+
render: (n, { depth: u, isOpen: b, onToggle: f }) => /* @__PURE__ */ e.jsx(lt, { id: n.id, children: /* @__PURE__ */ e.jsx(
|
|
343
|
+
et,
|
|
362
344
|
{
|
|
363
345
|
onSelect: (I) => {
|
|
364
346
|
c([]), r([I]);
|
|
365
347
|
},
|
|
366
|
-
isSelected:
|
|
348
|
+
isSelected: P(o, n.id),
|
|
367
349
|
node: n,
|
|
368
350
|
depth: u,
|
|
369
|
-
isOpen:
|
|
370
|
-
onToggle:
|
|
351
|
+
isOpen: b,
|
|
352
|
+
onToggle: f,
|
|
371
353
|
toggleIds: a
|
|
372
354
|
}
|
|
373
355
|
) }),
|
|
374
|
-
dragPreviewRender: (n) => /* @__PURE__ */ e.jsx(
|
|
375
|
-
onDrop:
|
|
356
|
+
dragPreviewRender: (n) => /* @__PURE__ */ e.jsx(tt, { monitorProps: n }),
|
|
357
|
+
onDrop: l,
|
|
376
358
|
classes: {
|
|
377
359
|
root: "h-full pt-2",
|
|
378
360
|
draggingSource: "opacity-30",
|
|
@@ -381,15 +363,15 @@ const hs = () => {
|
|
|
381
363
|
},
|
|
382
364
|
sort: !1,
|
|
383
365
|
insertDroppableFirst: !1,
|
|
384
|
-
canDrop:
|
|
366
|
+
canDrop: Ve,
|
|
385
367
|
dropTargetOffset: 2,
|
|
386
368
|
enableAnimateExpand: !0,
|
|
387
|
-
placeholderRender: (n, { depth: u }) => /* @__PURE__ */ e.jsx(
|
|
369
|
+
placeholderRender: (n, { depth: u }) => /* @__PURE__ */ e.jsx(st, { node: n, depth: u })
|
|
388
370
|
}
|
|
389
371
|
) })
|
|
390
372
|
}
|
|
391
373
|
) });
|
|
392
374
|
};
|
|
393
375
|
export {
|
|
394
|
-
|
|
376
|
+
gs as default
|
|
395
377
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import { GlobeIcon as m } from "@radix-ui/react-icons";
|
|
3
3
|
import { useState as n } from "react";
|
|
4
|
-
import { $ as p, B as o } from "./index-
|
|
4
|
+
import { $ as p, B as o } from "./index-ORFlyrBx.js";
|
|
5
5
|
import { capitalize as c } from "lodash";
|
|
6
6
|
import "./MODIFIERS-MLfpKQY1.js";
|
|
7
7
|
import "@radix-ui/react-toggle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),n=require("@radix-ui/react-icons"),o=require("react"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),n=require("@radix-ui/react-icons"),o=require("react"),s=require("./index-zkc4SQCu.cjs"),c=require("lodash");require("./MODIFIERS-WFzDQfiT.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-It2K33fU.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("jotai");require("flat-to-nested");require("redux-undo");require("@chaibuilder/runtime");require("@react-hookz/web");require("react-i18next");const x=({id:t=null,closeModal:i})=>{const l=s.useMarkAsGlobalBlock(),[r,u]=o.useState("");return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("h1",{className:"text-lg font-bold",children:"Mark as Global"}),e.jsxRuntimeExports.jsxs("div",{className:"py-2 text-sm",children:["Note: Global blocks are single instances. Editing global blocks will be reflected on all pages using these blocks. ",e.jsxRuntimeExports.jsx("br",{}),e.jsxRuntimeExports.jsxs("ul",{className:"mt-4 list-inside list-disc space-y-1",children:[e.jsxRuntimeExports.jsxs("li",{children:["Global blocks are indicated with ",e.jsxRuntimeExports.jsx(n.GlobeIcon,{className:"inline"})," icon in left sidebar"]}),e.jsxRuntimeExports.jsx("li",{children:'Global blocks are available under "Global" category'})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"my-4",children:[e.jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium text-gray-400",children:"Enter global block name"}),e.jsxRuntimeExports.jsx("input",{placeholder:"Eg: Header, Footer ",className:"mt-2 w-full",value:r,onChange:a=>u(a.target.value)})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-x-4",children:[e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>{l(t,c.capitalize(r)),i()},disabled:r.length<=2,variant:"default",children:"Mark as Global"}),e.jsxRuntimeExports.jsx(s.Button,{variant:"outline",onClick:i,children:"Cancel"})]})]})};exports.default=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),u=require("react"),i=require("lodash"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),u=require("react"),i=require("lodash"),s=require("./index-Ua5E0Syv.cjs");require("./MODIFIERS-WFzDQfiT.cjs");require("i18next");require("react-i18next");require("./index-zkc4SQCu.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-It2K33fU.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-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-KMQYiBHf.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("./tailwind-config-OxLD7oFU.cjs");require("react-hotkeys-hook");require("sonner");require("lucide-react");const a=u.lazy(()=>Promise.resolve().then(()=>require("./add-page-modal-eahhWw2b.cjs"))),x=u.lazy(()=>Promise.resolve().then(()=>require("./page-viewer-X8h3FMwb.cjs"))),d=()=>{const{data:q=[],isLoading:t}=s.usePages(),{data:r}=s.useProject(),n=i.sortBy(i.filter(q,{type:"STATIC"}),o=>i.get(o,"uuid")===(r==null?void 0:r.homepage)?0:1);return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between rounded-md bg-background/30 p-1",children:[e.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:"Pages"}),e.jsxRuntimeExports.jsx(u.Suspense,{fallback:e.jsxRuntimeExports.jsx("div",{className:"text-sm text-blue-500 underline",children:"+ New Page"}),children:e.jsxRuntimeExports.jsx(a,{})})]}),e.jsxRuntimeExports.jsx("hr",{className:"-mx-1"}),e.jsxRuntimeExports.jsx("div",{className:"-mx-1 divide-y-2",children:e.jsxRuntimeExports.jsx(x,{isLoading:t,pages:n})})]})};exports.default=d;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import i, { Suspense as s } from "react";
|
|
3
3
|
import { sortBy as a, filter as d, get as n } from "lodash";
|
|
4
|
-
import { a as l, b as c } from "./index-
|
|
4
|
+
import { a as l, b as c } from "./index-aDqFUJ8v.js";
|
|
5
5
|
import "./MODIFIERS-MLfpKQY1.js";
|
|
6
6
|
import "i18next";
|
|
7
7
|
import "react-i18next";
|
|
8
|
-
import "./index-
|
|
8
|
+
import "./index-ORFlyrBx.js";
|
|
9
9
|
import "@radix-ui/react-toggle";
|
|
10
10
|
import "class-variance-authority";
|
|
11
11
|
import "./utils-PPBbw5bk.js";
|
|
@@ -56,7 +56,7 @@ import "./tailwind-config-d1VL1lzE.js";
|
|
|
56
56
|
import "react-hotkeys-hook";
|
|
57
57
|
import "sonner";
|
|
58
58
|
import "lucide-react";
|
|
59
|
-
const x = i.lazy(() => import("./add-page-modal-
|
|
59
|
+
const x = i.lazy(() => import("./add-page-modal-Ny4uAvWB.js")), g = i.lazy(() => import("./page-viewer-1Eb7ypob.js")), bt = () => {
|
|
60
60
|
const { data: o = [], isLoading: m } = l(), { data: r } = c(), p = a(d(o, { type: "STATIC" }), (e) => n(e, "uuid") === (r == null ? void 0 : r.homepage) ? 0 : 1);
|
|
61
61
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
62
62
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),r=require("react"),x=require("lodash"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WUGKV8jN.cjs"),r=require("react"),x=require("lodash"),s=require("./index-zkc4SQCu.cjs"),a=require("./index-Ua5E0Syv.cjs");require("./MODIFIERS-WFzDQfiT.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-It2K33fU.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-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");require("i18next");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-KMQYiBHf.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("./tailwind-config-OxLD7oFU.cjs");require("react-hotkeys-hook");require("sonner");require("lucide-react");const d=r.lazy(()=>Promise.resolve().then(()=>require("./project-general-setting-I4z0C7PE.cjs"))),q=r.lazy(()=>Promise.resolve().then(()=>require("./project-seo-setting-cERASO9j.cjs"))),c=e.jsxRuntimeExports.jsx("div",{className:"px-3",children:e.jsxRuntimeExports.jsx("div",{className:"h-52 w-full animate-pulse rounded-md bg-gray-100"})}),l=t=>t&&x.isEmpty(t.seoData)?{...t,seoData:{title:"",description:"",image:""}}:t;function m(){const t=a.useUpdateProject(),{data:n}=a.useProject(),[i,o]=r.useState(l(n||{})),u=r.useRef(i);return r.useEffect(()=>()=>{x.isEqual(n,u.current)||t.mutate(u.current,{onSuccess:()=>o(u.current)})},[u]),r.useEffect(()=>{u.current=i},[i]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between rounded-md bg-background/30 p-1",children:e.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:"Website Settings"})}),e.jsxRuntimeExports.jsx("hr",{className:"-mx-1"}),e.jsxRuntimeExports.jsx("div",{className:"-mx-1",children:e.jsxRuntimeExports.jsxs(s.Accordion,{type:"single",className:"w-full",defaultValue:"GENERAL",children:[e.jsxRuntimeExports.jsxs(s.AccordionItem,{value:"GENERAL",className:"border-b-2 border-slate-100 dark:border-slate-800",children:[e.jsxRuntimeExports.jsx(s.AccordionTrigger,{className:"bg-slate-200 px-2.5 py-1.5 font-medium hover:bg-slate-100 hover:no-underline dark:bg-slate-900 dark:hover:bg-slate-800",children:"General Settings"}),e.jsxRuntimeExports.jsx(s.AccordionContent,{className:"px-2 pt-4 text-sm",children:e.jsxRuntimeExports.jsx(r.Suspense,{fallback:c,children:e.jsxRuntimeExports.jsx(d,{_projectData:i,seany:o})})})]}),e.jsxRuntimeExports.jsxs(s.AccordionItem,{value:"SEO",className:"border-b-2 border-slate-100 dark:border-slate-800",children:[e.jsxRuntimeExports.jsx(s.AccordionTrigger,{className:"bg-slate-200 px-2.5 py-1.5 font-medium hover:bg-slate-100 hover:no-underline dark:bg-slate-900 dark:hover:bg-slate-800",children:"SEO Settings"}),e.jsxRuntimeExports.jsx(s.AccordionContent,{className:"px-1 pt-4 text-sm",children:e.jsxRuntimeExports.jsx(r.Suspense,{fallback:c,children:e.jsxRuntimeExports.jsx(q,{_projectData:i,seany:o})})})]})]})})]})}exports.default=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import m, { useRef as x, useEffect as a, Suspense as p } from "react";
|
|
3
3
|
import { isEqual as b, isEmpty as j } from "lodash";
|
|
4
|
-
import {
|
|
5
|
-
import { c as h, b as g } from "./index-
|
|
4
|
+
import { bk as f, bl as n, bm as l, bn as c } from "./index-ORFlyrBx.js";
|
|
5
|
+
import { c as h, b as g } from "./index-aDqFUJ8v.js";
|
|
6
6
|
import "./MODIFIERS-MLfpKQY1.js";
|
|
7
7
|
import "@radix-ui/react-toggle";
|
|
8
8
|
import "class-variance-authority";
|
|
@@ -56,7 +56,7 @@ import "./tailwind-config-d1VL1lzE.js";
|
|
|
56
56
|
import "react-hotkeys-hook";
|
|
57
57
|
import "sonner";
|
|
58
58
|
import "lucide-react";
|
|
59
|
-
const N = m.lazy(() => import("./project-general-setting-
|
|
59
|
+
const N = m.lazy(() => import("./project-general-setting-TCl_JNdl.js")), S = m.lazy(() => import("./project-seo-setting-k0HlefUD.js")), d = /* @__PURE__ */ t.jsx("div", { className: "px-3", children: /* @__PURE__ */ t.jsx("div", { className: "h-52 w-full animate-pulse rounded-md bg-gray-100" }) }), u = (r) => r && j(r.seoData) ? {
|
|
60
60
|
...r,
|
|
61
61
|
seoData: { title: "", description: "", image: "" }
|
|
62
62
|
} : r;
|