@chaibuilder/sdk 1.0.20 → 1.0.22
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 +30 -103
- package/dist/{AddBlocks-U6bHEqmk.js → AddBlocks--G1jvF_h.js} +8 -5
- package/dist/AddBlocks-kQZRgF1n.cjs +3 -0
- package/dist/BrandingOptions-3zuS6-D8.cjs +1 -0
- package/dist/{BrandingOptions-qDgIOayU.js → BrandingOptions-dwNB6XlX.js} +14 -21
- package/dist/{CanvasArea-yXpQHB6x.cjs → CanvasArea-SzwU-7i5.cjs} +4 -4
- package/dist/{CanvasArea-_poBbOON.js → CanvasArea-YM7NWbx0.js} +78 -76
- package/dist/CurrentPage-Fw-gGZIK.cjs +1 -0
- package/dist/{CurrentPage-SrovfgGL.js → CurrentPage-iC1tGuWi.js} +16 -14
- package/dist/Layers-bvtrSZ0e.cjs +1 -0
- package/dist/{Layers-OKJ5nkTF.js → Layers-tvGxr-fn.js} +18 -16
- package/dist/MODIFIERS-MLfpKQY1.js +73 -0
- package/dist/MODIFIERS-WFzDQfiT.cjs +1 -0
- package/dist/{MarkAsGlobalBlock-Ynq-S6mW.js → MarkAsGlobalBlock-hUoxbVet.js} +10 -9
- package/dist/MarkAsGlobalBlock-wqHaABl_.cjs +1 -0
- package/dist/PagesPanel-IHkdL59C.cjs +1 -0
- package/dist/{PagesPanel-5macGkBU.js → PagesPanel-w32nyAEE.js} +21 -19
- package/dist/{ProjectPanel-HS_TJ2k0.js → ProjectPanel-1yH8uzoo.js} +17 -15
- package/dist/ProjectPanel-Rt_C00rp.cjs +1 -0
- package/dist/{Settings-23ZBoDkz.js → Settings-MbtN9j5p.js} +19 -16
- package/dist/Settings-zqxhKtAP.cjs +1 -0
- package/dist/SidePanels-PcCVJHFu.cjs +1 -0
- package/dist/{SidePanels-HzpyQU1x.js → SidePanels-WDSKmDRO.js} +28 -26
- package/dist/{Topbar-tfg74vbT.js → Topbar-QBbGJftd.js} +26 -25
- package/dist/Topbar-p07CgA1J.cjs +1 -0
- package/dist/{UnsplashImages-tvUZGbHK.js → UnsplashImages-NOdXhrYp.js} +8 -7
- package/dist/UnsplashImages-RobUmAqJ.cjs +1 -0
- package/dist/{UploadImages-pKoVEsI7.js → UploadImages-_yFxI_3x.js} +8 -7
- package/dist/UploadImages-oRvUykXU.cjs +1 -0
- package/dist/{add-page-modal-217go3Eh.js → add-page-modal-1C4AYlR3.js} +21 -18
- package/dist/add-page-modal-c20toln3.cjs +1 -0
- package/dist/{confirm-alert-AG96Fmck.js → confirm-alert-LM4La_do.js} +9 -8
- package/dist/confirm-alert-exrulqxB.cjs +1 -0
- package/dist/controls-G0puEH71.js +120 -0
- package/dist/controls-aHZq-q4b.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +73 -71
- package/dist/{delete-page-modal-YYt_TVmB.js → delete-page-modal-ZkdZdhkf.js} +22 -20
- package/dist/delete-page-modal-sMfhH69k.cjs +1 -0
- package/dist/{form-Ik57WNLs.cjs → form-0TlI-dUt.cjs} +1 -1
- package/dist/{form-gIapXg-W.js → form-rvWlnmcr.js} +2 -2
- package/dist/functions-JFP-oMsY.js +1109 -0
- package/dist/functions-KMQYiBHf.cjs +2 -0
- package/dist/{index-tTN-yd28.cjs → index-8dYzEcE3.cjs} +44 -44
- package/dist/{index-4DQm5fFW.js → index-UPQtDmUs.js} +5439 -5429
- package/dist/index-lH7BBNlu.cjs +1 -0
- package/dist/{index-PrUoEet_.js → index-pgz9p5Yh.js} +191 -190
- package/dist/{jsx-runtime-qAwJ85SY.js → jsx-runtime-NV737rRe.js} +1 -1
- package/dist/{jsx-runtime-WKRPbKtm.cjs → jsx-runtime-WUGKV8jN.cjs} +6 -6
- package/dist/lib.cjs +1 -2
- package/dist/lib.d.ts +3 -9
- package/dist/lib.js +113 -1264
- package/dist/page-viewer-1EuLsHyz.cjs +1 -0
- package/dist/{page-viewer-LQSQxs98.js → page-viewer-3860AKDT.js} +39 -37
- package/dist/project-general-setting-Bg7qIWUd.cjs +1 -0
- package/dist/{project-general-setting-04N25MvJ.js → project-general-setting-mg_zEkzX.js} +22 -19
- package/dist/{project-seo-setting-zxnjvt3c.js → project-seo-setting-6Q0gFmHY.js} +17 -24
- package/dist/project-seo-setting-8B9pZPZN.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.js +40 -44
- package/dist/single-page-detail-52Xz-XJ7.cjs +1 -0
- package/dist/{single-page-detail-lJHZSKqK.js → single-page-detail-Asn7bb7f.js} +47 -44
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +21 -19
- package/dist/tailwind-config-OxLD7oFU.cjs +1 -0
- package/dist/tailwind-config-d1VL1lzE.js +62 -0
- package/dist/tailwind.cjs +1 -0
- package/dist/tailwind.d.ts +80 -0
- package/dist/tailwind.js +24 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +4 -4
- package/dist/ui.js +144 -143
- package/dist/utils-It2K33fU.cjs +1 -0
- package/dist/{Class-nQk08vqd.js → utils-PPBbw5bk.js} +115 -183
- package/package.json +9 -9
- package/dist/AddBlocks-LvIqNyBE.cjs +0 -3
- package/dist/BrandingOptions-viABH78W.cjs +0 -1
- package/dist/Class-RZuPYbUS.cjs +0 -1
- package/dist/CurrentPage-XWSb_RZ8.cjs +0 -1
- package/dist/Layers-oluQMEyo.cjs +0 -1
- package/dist/MarkAsGlobalBlock-PG9EQfno.cjs +0 -1
- package/dist/PagesPanel-wYA8ksbF.cjs +0 -1
- package/dist/ProjectPanel-4hGK3CSo.cjs +0 -1
- package/dist/Settings-KS4sVa5a.cjs +0 -1
- package/dist/SidePanels-IfwzrWxw.cjs +0 -1
- package/dist/Topbar-zZtHp9g8.cjs +0 -1
- package/dist/UnsplashImages-nA7MSE46.cjs +0 -1
- package/dist/UploadImages-Ne7knL-U.cjs +0 -1
- package/dist/add-page-modal-az5Y2__Z.cjs +0 -1
- package/dist/blocks.cjs +0 -1
- package/dist/blocks.d.ts +0 -4
- package/dist/blocks.js +0 -20
- package/dist/confirm-alert-tADWj_Cs.cjs +0 -1
- package/dist/delete-page-modal-iits21u4.cjs +0 -1
- package/dist/index-SSmZipiF.js +0 -1191
- package/dist/index-UXNvQkHk.cjs +0 -1
- package/dist/index-plLNWLKk.cjs +0 -9
- package/dist/page-viewer-2SE5kCoO.cjs +0 -1
- package/dist/project-general-setting-XunBDyuZ.cjs +0 -1
- package/dist/project-seo-setting-_nu22LPz.cjs +0 -1
- package/dist/single-page-detail-TjWZvxFa.cjs +0 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import { nth as k, startsWith as P, has as H, map as v, isUndefined as L, find as V, isEmpty as z, includes as F } from "lodash";
|
|
3
|
-
import { BoxModelIcon as G, BoxIcon as $, DragHandleHorizontalIcon as K, ViewHorizontalIcon as q, BorderAllIcon as Q, BorderTopIcon as U, TableIcon as Y, DropdownMenuIcon as W, RadiobuttonIcon as Z, InputIcon as J, ButtonIcon as B, CheckboxIcon as X, GroupIcon as ee, SpaceBetweenVerticallyIcon as te, ColumnsIcon as se, RowsIcon as y, TextIcon as C, SketchLogoIcon as oe, DividerHorizontalIcon as ne, CodeIcon as re, CursorTextIcon as ae, VideoIcon as ce, Link1Icon as le, HeadingIcon as ie, ImageIcon as de, TriangleRightIcon as xe, ScissorsIcon as me, ClipboardIcon as pe, TrashIcon as ue, GlobeIcon as ge, CopyIcon as je, ClipboardCopyIcon as he, DoubleArrowDownIcon as
|
|
3
|
+
import { BoxModelIcon as G, BoxIcon as $, DragHandleHorizontalIcon as K, ViewHorizontalIcon as q, BorderAllIcon as Q, BorderTopIcon as U, TableIcon as Y, DropdownMenuIcon as W, RadiobuttonIcon as Z, InputIcon as J, ButtonIcon as B, CheckboxIcon as X, GroupIcon as ee, SpaceBetweenVerticallyIcon as te, ColumnsIcon as se, RowsIcon as y, TextIcon as C, SketchLogoIcon as oe, DividerHorizontalIcon as ne, CodeIcon as re, CursorTextIcon as ae, VideoIcon as ce, Link1Icon as le, HeadingIcon as ie, ImageIcon as de, TriangleRightIcon as xe, ScissorsIcon as me, ClipboardIcon as pe, TrashIcon as ue, GlobeIcon as ge, CopyIcon as je, ClipboardCopyIcon as he, DoubleArrowDownIcon as fe, StackIcon as be } from "@radix-ui/react-icons";
|
|
4
4
|
import { useDrop as Ie, useDragLayer as ke } from "react-dnd";
|
|
5
5
|
import { useDragOver as Be, Tree as ye } from "@minoru/react-dnd-treeview";
|
|
6
6
|
import { useTranslation as Ce } from "react-i18next";
|
|
7
|
-
import { _ as ve, Z as we, j as g, n as Se, bq as d, k as Te, l as De, a6 as Ne, m as Me, o as Oe, i as w, br as Re, ao as Ee, ap as Ae, bs as _e, bt as Pe, O as He, ae as Le, w as Ve, aj as ze, p as Fe, aA as Ge, bp as $e, bu as Ke } from "./index-
|
|
7
|
+
import { _ as ve, Z as we, j as g, n as Se, bq as d, k as Te, l as De, a6 as Ne, m as Me, o as Oe, i as w, br as Re, ao as Ee, ap as Ae, bs as _e, bt as Pe, O as He, ae as Le, w as Ve, aj as ze, p as Fe, aA as Ge, bp as $e, bu as Ke } from "./index-pgz9p5Yh.js";
|
|
8
8
|
import { DatabaseIcon as qe } from "lucide-react";
|
|
9
9
|
import "./lib.js";
|
|
10
10
|
import { useMemo as Qe, lazy as Ue, useCallback as S, useState as Ye, Suspense as We } from "react";
|
|
11
|
-
import { a as Ze
|
|
12
|
-
import {
|
|
11
|
+
import { a as Ze } from "./MODIFIERS-MLfpKQY1.js";
|
|
12
|
+
import { c as T } from "./utils-PPBbw5bk.js";
|
|
13
|
+
import { f as Je } from "./index-UPQtDmUs.js";
|
|
13
14
|
import { useAtom as Xe } from "jotai";
|
|
14
15
|
import "@radix-ui/react-toggle";
|
|
15
16
|
import "class-variance-authority";
|
|
@@ -39,16 +40,17 @@ import "redux-undo";
|
|
|
39
40
|
import "@chaibuilder/runtime";
|
|
40
41
|
import "@react-hookz/web";
|
|
41
42
|
import "himalaya";
|
|
43
|
+
import "./functions-JFP-oMsY.js";
|
|
42
44
|
import "@mhsdesign/jit-browser-tailwindcss";
|
|
43
45
|
import "@bobthered/tailwindcss-palette-generator";
|
|
44
46
|
import "@tailwindcss/forms";
|
|
45
47
|
import "@tailwindcss/typography";
|
|
46
48
|
import "@tailwindcss/aspect-ratio";
|
|
47
49
|
import "@tailwindcss/line-clamp";
|
|
50
|
+
import "./tailwind-config-d1VL1lzE.js";
|
|
48
51
|
import "clsx";
|
|
49
52
|
import "tailwind-merge";
|
|
50
53
|
import "i18next";
|
|
51
|
-
import "./index-SSmZipiF.js";
|
|
52
54
|
import "@floating-ui/react-dom";
|
|
53
55
|
import "react-textarea-autosize";
|
|
54
56
|
import "flagged";
|
|
@@ -206,7 +208,7 @@ const tt = (t) => {
|
|
|
206
208
|
}, nt = (t) => {
|
|
207
209
|
const s = t.depth * 10 + 16;
|
|
208
210
|
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 } });
|
|
209
|
-
}, rt = Ue(() => import("./MarkAsGlobalBlock-
|
|
211
|
+
}, rt = Ue(() => import("./MarkAsGlobalBlock-hUoxbVet.js")), at = () => {
|
|
210
212
|
const [t] = g(), [, s] = Se();
|
|
211
213
|
return /* @__PURE__ */ e.jsxs(d, { className: "flex items-center gap-x-4 text-xs", onClick: () => s(t), children: [
|
|
212
214
|
/* @__PURE__ */ e.jsx(me, {}),
|
|
@@ -296,13 +298,13 @@ function mt(t) {
|
|
|
296
298
|
};
|
|
297
299
|
});
|
|
298
300
|
}
|
|
299
|
-
const
|
|
301
|
+
const hs = () => {
|
|
300
302
|
const t = Le(), [s] = Ve(), [o, r, a] = g(), [, c] = ze(), { t: l } = Ce(), { createSnapshot: x } = Fe(), j = Je(), m = xt(), [, p] = Xe(Ge), i = async (n, u) => {
|
|
301
|
-
const { dragSource:
|
|
302
|
-
s(_),
|
|
303
|
+
const { dragSource: f, destinationIndex: b, relativeIndex: I, dropTargetId: E, monitor: A } = u, _ = mt(n);
|
|
304
|
+
s(_), f ? x() : (await m({
|
|
303
305
|
block: A.getItem(),
|
|
304
306
|
dropTargetId: E,
|
|
305
|
-
destinationIndex:
|
|
307
|
+
destinationIndex: b,
|
|
306
308
|
relativeIndex: I
|
|
307
309
|
}), p(!1));
|
|
308
310
|
}, N = v(t, (n) => ({
|
|
@@ -344,7 +346,7 @@ const gs = () => {
|
|
|
344
346
|
ref: O,
|
|
345
347
|
className: `mx-1 mt-4 max-w-full h-full p-6 text-center text-sm text-gray-400 ${h ? "bg-blue-200" : ""}`,
|
|
346
348
|
children: [
|
|
347
|
-
h ? /* @__PURE__ */ e.jsx(
|
|
349
|
+
h ? /* @__PURE__ */ e.jsx(fe, { className: "mx-auto h-12 w-12 animate-bounce" }) : /* @__PURE__ */ e.jsx(be, { className: "mx-auto h-10 w-10" }),
|
|
348
350
|
/* @__PURE__ */ e.jsx("p", { className: "mt-2", children: l(h ? "drop_here_message" : "tree_view_no_blocks") })
|
|
349
351
|
]
|
|
350
352
|
}
|
|
@@ -355,7 +357,7 @@ const gs = () => {
|
|
|
355
357
|
extraAcceptTypes: ["CHAI_BLOCK"],
|
|
356
358
|
tree: N,
|
|
357
359
|
rootId: 0,
|
|
358
|
-
render: (n, { depth: u, isOpen:
|
|
360
|
+
render: (n, { depth: u, isOpen: f, onToggle: b }) => /* @__PURE__ */ e.jsx(dt, { id: n.id, children: /* @__PURE__ */ e.jsx(
|
|
359
361
|
st,
|
|
360
362
|
{
|
|
361
363
|
onSelect: (I) => {
|
|
@@ -364,8 +366,8 @@ const gs = () => {
|
|
|
364
366
|
isSelected: F(o, n.id),
|
|
365
367
|
node: n,
|
|
366
368
|
depth: u,
|
|
367
|
-
isOpen:
|
|
368
|
-
onToggle:
|
|
369
|
+
isOpen: f,
|
|
370
|
+
onToggle: b,
|
|
369
371
|
toggleIds: a
|
|
370
372
|
}
|
|
371
373
|
) }),
|
|
@@ -389,5 +391,5 @@ const gs = () => {
|
|
|
389
391
|
) });
|
|
390
392
|
};
|
|
391
393
|
export {
|
|
392
|
-
|
|
394
|
+
hs as default
|
|
393
395
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var t = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function o(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
const r = "#styles:", n = "#slots:", a = "#i18n", l = [
|
|
6
|
+
"hover",
|
|
7
|
+
"focus",
|
|
8
|
+
"focus-within",
|
|
9
|
+
"focus-visible",
|
|
10
|
+
"active",
|
|
11
|
+
"visited",
|
|
12
|
+
"target",
|
|
13
|
+
"first",
|
|
14
|
+
"last",
|
|
15
|
+
"only",
|
|
16
|
+
"odd",
|
|
17
|
+
"even",
|
|
18
|
+
"first-of-type",
|
|
19
|
+
"last-of-type",
|
|
20
|
+
"only-of-type",
|
|
21
|
+
"empty",
|
|
22
|
+
"disabled",
|
|
23
|
+
"checked",
|
|
24
|
+
"indeterminate",
|
|
25
|
+
"default",
|
|
26
|
+
"required",
|
|
27
|
+
"valid",
|
|
28
|
+
"invalid",
|
|
29
|
+
"in-range",
|
|
30
|
+
"out-of-range",
|
|
31
|
+
"placeholder-shown",
|
|
32
|
+
"autofill",
|
|
33
|
+
"read-only",
|
|
34
|
+
"open",
|
|
35
|
+
"before",
|
|
36
|
+
"after",
|
|
37
|
+
"first-letter",
|
|
38
|
+
"first-line",
|
|
39
|
+
"marker",
|
|
40
|
+
"selection",
|
|
41
|
+
"file",
|
|
42
|
+
"placeholder",
|
|
43
|
+
// headless UI
|
|
44
|
+
"ui-open",
|
|
45
|
+
"ui-disabled",
|
|
46
|
+
"ui-active",
|
|
47
|
+
"ui-selected",
|
|
48
|
+
"ui-checked",
|
|
49
|
+
"ui-not-open",
|
|
50
|
+
"ui-not-disabled",
|
|
51
|
+
"ui-not-active",
|
|
52
|
+
"ui-not-selected",
|
|
53
|
+
"ui-not-checked"
|
|
54
|
+
], i = {
|
|
55
|
+
bodyFont: "Inter",
|
|
56
|
+
headingFont: "Inter",
|
|
57
|
+
roundedCorners: 5,
|
|
58
|
+
primaryColor: "#570df8",
|
|
59
|
+
secondaryColor: "#f002b8",
|
|
60
|
+
bodyBgDarkColor: "#031022",
|
|
61
|
+
bodyBgLightColor: "#fcfcfc",
|
|
62
|
+
bodyTextDarkColor: "#ffffff",
|
|
63
|
+
bodyTextLightColor: "#000000"
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
i as B,
|
|
67
|
+
a as I,
|
|
68
|
+
l as M,
|
|
69
|
+
n as S,
|
|
70
|
+
r as a,
|
|
71
|
+
t as c,
|
|
72
|
+
o as g
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const r="#styles:",n="#slots:",l="#i18n",i=["hover","focus","focus-within","focus-visible","active","visited","target","first","last","only","odd","even","first-of-type","last-of-type","only-of-type","empty","disabled","checked","indeterminate","default","required","valid","invalid","in-range","out-of-range","placeholder-shown","autofill","read-only","open","before","after","first-letter","first-line","marker","selection","file","placeholder","ui-open","ui-disabled","ui-active","ui-selected","ui-checked","ui-not-open","ui-not-disabled","ui-not-active","ui-not-selected","ui-not-checked"],f={bodyFont:"Inter",headingFont:"Inter",roundedCorners:5,primaryColor:"#570df8",secondaryColor:"#f002b8",bodyBgDarkColor:"#031022",bodyBgLightColor:"#fcfcfc",bodyTextDarkColor:"#ffffff",bodyTextLightColor:"#000000"};exports.BRANDING_OPTIONS_DEFAULTS=f;exports.I18N_KEY=l;exports.MODIFIERS=i;exports.SLOT_KEY=n;exports.STYLES_KEY=r;exports.commonjsGlobal=t;exports.getDefaultExportFromCjs=o;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
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-pgz9p5Yh.js";
|
|
5
5
|
import { capitalize as c } from "lodash";
|
|
6
|
-
import "./
|
|
7
|
-
import "clsx";
|
|
8
|
-
import "tailwind-merge";
|
|
6
|
+
import "./MODIFIERS-MLfpKQY1.js";
|
|
9
7
|
import "@radix-ui/react-toggle";
|
|
10
8
|
import "class-variance-authority";
|
|
9
|
+
import "./utils-PPBbw5bk.js";
|
|
10
|
+
import "clsx";
|
|
11
|
+
import "tailwind-merge";
|
|
11
12
|
import "@radix-ui/react-switch";
|
|
12
13
|
import "@radix-ui/react-slot";
|
|
13
14
|
import "@radix-ui/react-accordion";
|
|
@@ -35,8 +36,8 @@ import "redux-undo";
|
|
|
35
36
|
import "@chaibuilder/runtime";
|
|
36
37
|
import "@react-hookz/web";
|
|
37
38
|
import "react-i18next";
|
|
38
|
-
const
|
|
39
|
-
const
|
|
39
|
+
const X = ({ id: r = null, closeModal: l }) => {
|
|
40
|
+
const e = p(), [i, a] = n("");
|
|
40
41
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
41
42
|
/* @__PURE__ */ t.jsx("h1", { className: "text-lg font-bold", children: "Mark as Global" }),
|
|
42
43
|
/* @__PURE__ */ t.jsxs("div", { className: "py-2 text-sm", children: [
|
|
@@ -68,7 +69,7 @@ const W = ({ id: e = null, closeModal: l }) => {
|
|
|
68
69
|
o,
|
|
69
70
|
{
|
|
70
71
|
onClick: () => {
|
|
71
|
-
r
|
|
72
|
+
e(r, c(i)), l();
|
|
72
73
|
},
|
|
73
74
|
disabled: i.length <= 2,
|
|
74
75
|
variant: "default",
|
|
@@ -80,5 +81,5 @@ const W = ({ id: e = null, closeModal: l }) => {
|
|
|
80
81
|
] });
|
|
81
82
|
};
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
X as default
|
|
84
85
|
};
|
|
@@ -0,0 +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-lH7BBNlu.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;
|
|
@@ -0,0 +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-8dYzEcE3.cjs");require("./MODIFIERS-WFzDQfiT.cjs");require("i18next");require("react-i18next");require("./index-lH7BBNlu.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-c20toln3.cjs"))),x=u.lazy(()=>Promise.resolve().then(()=>require("./page-viewer-1EuLsHyz.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,29 +1,20 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
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-
|
|
5
|
-
import "./
|
|
6
|
-
import "clsx";
|
|
7
|
-
import "tailwind-merge";
|
|
4
|
+
import { a as l, b as c } from "./index-UPQtDmUs.js";
|
|
5
|
+
import "./MODIFIERS-MLfpKQY1.js";
|
|
8
6
|
import "i18next";
|
|
9
7
|
import "react-i18next";
|
|
10
|
-
import "./index-
|
|
11
|
-
import "@chaibuilder/runtime";
|
|
12
|
-
import "@radix-ui/react-icons";
|
|
13
|
-
import "./lib.js";
|
|
14
|
-
import "himalaya";
|
|
15
|
-
import "@mhsdesign/jit-browser-tailwindcss";
|
|
16
|
-
import "@bobthered/tailwindcss-palette-generator";
|
|
17
|
-
import "@tailwindcss/forms";
|
|
18
|
-
import "@tailwindcss/typography";
|
|
19
|
-
import "@tailwindcss/aspect-ratio";
|
|
20
|
-
import "@tailwindcss/line-clamp";
|
|
21
|
-
import "./index-PrUoEet_.js";
|
|
8
|
+
import "./index-pgz9p5Yh.js";
|
|
22
9
|
import "@radix-ui/react-toggle";
|
|
23
10
|
import "class-variance-authority";
|
|
11
|
+
import "./utils-PPBbw5bk.js";
|
|
12
|
+
import "clsx";
|
|
13
|
+
import "tailwind-merge";
|
|
24
14
|
import "@radix-ui/react-switch";
|
|
25
15
|
import "@radix-ui/react-slot";
|
|
26
16
|
import "@radix-ui/react-accordion";
|
|
17
|
+
import "@radix-ui/react-icons";
|
|
27
18
|
import "@radix-ui/react-alert-dialog";
|
|
28
19
|
import "@radix-ui/react-dialog";
|
|
29
20
|
import "@radix-ui/react-label";
|
|
@@ -45,16 +36,27 @@ import "react-quill";
|
|
|
45
36
|
import "jotai";
|
|
46
37
|
import "flat-to-nested";
|
|
47
38
|
import "redux-undo";
|
|
39
|
+
import "@chaibuilder/runtime";
|
|
48
40
|
import "@react-hookz/web";
|
|
49
41
|
import "@floating-ui/react-dom";
|
|
50
42
|
import "react-textarea-autosize";
|
|
51
43
|
import "flagged";
|
|
52
44
|
import "react-dnd";
|
|
53
45
|
import "@minoru/react-dnd-treeview";
|
|
46
|
+
import "./lib.js";
|
|
47
|
+
import "himalaya";
|
|
48
|
+
import "./functions-JFP-oMsY.js";
|
|
49
|
+
import "@mhsdesign/jit-browser-tailwindcss";
|
|
50
|
+
import "@bobthered/tailwindcss-palette-generator";
|
|
51
|
+
import "@tailwindcss/forms";
|
|
52
|
+
import "@tailwindcss/typography";
|
|
53
|
+
import "@tailwindcss/aspect-ratio";
|
|
54
|
+
import "@tailwindcss/line-clamp";
|
|
55
|
+
import "./tailwind-config-d1VL1lzE.js";
|
|
54
56
|
import "react-hotkeys-hook";
|
|
55
57
|
import "sonner";
|
|
56
58
|
import "lucide-react";
|
|
57
|
-
const x = i.lazy(() => import("./add-page-modal-
|
|
59
|
+
const x = i.lazy(() => import("./add-page-modal-1C4AYlR3.js")), g = i.lazy(() => import("./page-viewer-3860AKDT.js")), bt = () => {
|
|
58
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);
|
|
59
61
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
60
62
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: [
|
|
@@ -66,5 +68,5 @@ const x = i.lazy(() => import("./add-page-modal-217go3Eh.js")), g = i.lazy(() =>
|
|
|
66
68
|
] });
|
|
67
69
|
};
|
|
68
70
|
export {
|
|
69
|
-
|
|
71
|
+
bt as default
|
|
70
72
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
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 { bi as f, bj as n, bk as l, bl as c } from "./index-
|
|
5
|
-
import { c as h, b as g } from "./index-
|
|
6
|
-
import "./
|
|
7
|
-
import "clsx";
|
|
8
|
-
import "tailwind-merge";
|
|
4
|
+
import { bi as f, bj as n, bk as l, bl as c } from "./index-pgz9p5Yh.js";
|
|
5
|
+
import { c as h, b as g } from "./index-UPQtDmUs.js";
|
|
6
|
+
import "./MODIFIERS-MLfpKQY1.js";
|
|
9
7
|
import "@radix-ui/react-toggle";
|
|
10
8
|
import "class-variance-authority";
|
|
9
|
+
import "./utils-PPBbw5bk.js";
|
|
10
|
+
import "clsx";
|
|
11
|
+
import "tailwind-merge";
|
|
11
12
|
import "@radix-ui/react-switch";
|
|
12
13
|
import "@radix-ui/react-slot";
|
|
13
14
|
import "@radix-ui/react-accordion";
|
|
@@ -37,28 +38,29 @@ import "@chaibuilder/runtime";
|
|
|
37
38
|
import "@react-hookz/web";
|
|
38
39
|
import "react-i18next";
|
|
39
40
|
import "i18next";
|
|
40
|
-
import "
|
|
41
|
+
import "@floating-ui/react-dom";
|
|
42
|
+
import "react-textarea-autosize";
|
|
43
|
+
import "flagged";
|
|
44
|
+
import "react-dnd";
|
|
45
|
+
import "@minoru/react-dnd-treeview";
|
|
41
46
|
import "./lib.js";
|
|
42
47
|
import "himalaya";
|
|
48
|
+
import "./functions-JFP-oMsY.js";
|
|
43
49
|
import "@mhsdesign/jit-browser-tailwindcss";
|
|
44
50
|
import "@bobthered/tailwindcss-palette-generator";
|
|
45
51
|
import "@tailwindcss/forms";
|
|
46
52
|
import "@tailwindcss/typography";
|
|
47
53
|
import "@tailwindcss/aspect-ratio";
|
|
48
54
|
import "@tailwindcss/line-clamp";
|
|
49
|
-
import "
|
|
50
|
-
import "react-textarea-autosize";
|
|
51
|
-
import "flagged";
|
|
52
|
-
import "react-dnd";
|
|
53
|
-
import "@minoru/react-dnd-treeview";
|
|
55
|
+
import "./tailwind-config-d1VL1lzE.js";
|
|
54
56
|
import "react-hotkeys-hook";
|
|
55
57
|
import "sonner";
|
|
56
58
|
import "lucide-react";
|
|
57
|
-
const N = m.lazy(() => import("./project-general-setting-
|
|
59
|
+
const N = m.lazy(() => import("./project-general-setting-mg_zEkzX.js")), S = m.lazy(() => import("./project-seo-setting-6Q0gFmHY.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) ? {
|
|
58
60
|
...r,
|
|
59
61
|
seoData: { title: "", description: "", image: "" }
|
|
60
62
|
} : r;
|
|
61
|
-
function
|
|
63
|
+
function At() {
|
|
62
64
|
const r = h(), { data: i } = g(), [e, s] = m.useState(
|
|
63
65
|
u(i || {})
|
|
64
66
|
), o = x(e);
|
|
@@ -87,5 +89,5 @@ function kt() {
|
|
|
87
89
|
] });
|
|
88
90
|
}
|
|
89
91
|
export {
|
|
90
|
-
|
|
92
|
+
At as default
|
|
91
93
|
};
|
|
@@ -0,0 +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-lH7BBNlu.cjs"),a=require("./index-8dYzEcE3.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-Bg7qIWUd.cjs"))),q=r.lazy(()=>Promise.resolve().then(()=>require("./project-seo-setting-8B9pZPZN.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,21 +1,22 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import * as ne from "react";
|
|
3
3
|
import P, { useState as w, useMemo as N, useEffect as _, useCallback as A, createContext as Oe, useContext as re } from "react";
|
|
4
4
|
import { useThrottledCallback as me } from "@react-hookz/web";
|
|
5
5
|
import { forEach as je, isArray as ae, omit as it, truncate as dt, includes as M, get as p, first as we, split as ct, startCase as Y, toLower as te, isEmpty as b, map as C, find as pt, last as ye, filter as be, set as Me, keys as ut, cloneDeep as xt, each as gt, capitalize as ht, reject as mt, nth as Re, startsWith as z, isNumber as yt, parseInt as bt, isNaN as Ee, findLast as ft, flatten as U, intersection as _e, has as ge, isNull as vt } from "lodash";
|
|
6
6
|
import { useTranslation as Fe } from "react-i18next";
|
|
7
7
|
import { PlusIcon as Ce, Cross2Icon as Ye, EyeOpenIcon as jt, EyeClosedIcon as Ve, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as wt, ArrowTopRightIcon as Ct, ArrowBottomRightIcon as kt, ArrowBottomLeftIcon as Nt, AlignLeftIcon as Tt, AlignCenterHorizontallyIcon as St, AlignRightIcon as Rt, StretchHorizontallyIcon as Vt, FontItalicIcon as Ht, UnderlineIcon as Bt, OverlineIcon as At, LetterCaseUppercaseIcon as Dt, Cross1Icon as Pt, InfoCircledIcon as ke, MinusIcon as $t, BoxIcon as We, RowSpacingIcon as It, TriangleDownIcon as Lt, TrashIcon as Xe, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
|
|
8
|
-
import { b1 as Ot, b2 as Mt, B as pe, b3 as Et, b4 as _t, b5 as Ft, b6 as Yt, b7 as Wt, b8 as Xt, b9 as Zt, a6 as G, aq as zt, ar as Ut, as as Gt, ba as Kt, ao as qt, bb as Jt, ap as Qt, aH as W, aI as X, aK as Z, ak as er, bc as tr, bd as rr, be as lr, bf as sr, bg as or, bh as nr, p as ze, ac as Ue, bi as Ge, bj as ie, bk as de, bl as ce, aj as Ne, P as Ke, a3 as qe, j as Je, aM as Te, bm as ar, bn as ir, a4 as ue, W as dr, a9 as Qe, R as He, ag as cr, ad as pr, bo as ur, au as xr, av as gr, aw as hr, ax as mr, ay as H, bp as yr, aB as br, aC as fr, aD as Be, aE as Ae } from "./index-
|
|
8
|
+
import { b1 as Ot, b2 as Mt, B as pe, b3 as Et, b4 as _t, b5 as Ft, b6 as Yt, b7 as Wt, b8 as Xt, b9 as Zt, a6 as G, aq as zt, ar as Ut, as as Gt, ba as Kt, ao as qt, bb as Jt, ap as Qt, aH as W, aI as X, aK as Z, ak as er, bc as tr, bd as rr, be as lr, bf as sr, bg as or, bh as nr, p as ze, ac as Ue, bi as Ge, bj as ie, bk as de, bl as ce, aj as Ne, P as Ke, a3 as qe, j as Je, aM as Te, bm as ar, bn as ir, a4 as ue, W as dr, a9 as Qe, R as He, ag as cr, ad as pr, bo as ur, au as xr, av as gr, aw as hr, ax as mr, ay as H, bp as yr, aB as br, aC as fr, aD as Be, aE as Ae } from "./index-pgz9p5Yh.js";
|
|
9
9
|
import vr from "@rjsf/core";
|
|
10
10
|
import jr from "@rjsf/validator-ajv8";
|
|
11
|
-
import { u as wr } from "./
|
|
11
|
+
import { u as wr } from "./controls-G0puEH71.js";
|
|
12
12
|
import { Check as Cr, EditIcon as kr, TrashIcon as Nr } from "lucide-react";
|
|
13
13
|
import { getBlockComponent as et, getChaiDataProviders as Tr } from "@chaibuilder/runtime";
|
|
14
|
-
import { E as Sr, u as tt } from "./index-
|
|
14
|
+
import { E as Sr, u as tt } from "./index-UPQtDmUs.js";
|
|
15
15
|
import { useAtom as Rr } from "jotai";
|
|
16
16
|
import Vr from "react-autosuggest";
|
|
17
17
|
import Hr from "fuse.js";
|
|
18
|
-
import { A as Br,
|
|
18
|
+
import { A as Br, C as xe, d as Ar } from "./utils-PPBbw5bk.js";
|
|
19
|
+
import { a as Dr } from "./MODIFIERS-MLfpKQY1.js";
|
|
19
20
|
import "@radix-ui/react-toggle";
|
|
20
21
|
import "class-variance-authority";
|
|
21
22
|
import "@radix-ui/react-switch";
|
|
@@ -41,22 +42,24 @@ import "react-dom";
|
|
|
41
42
|
import "react-quill";
|
|
42
43
|
import "flat-to-nested";
|
|
43
44
|
import "redux-undo";
|
|
45
|
+
import "i18next";
|
|
46
|
+
import "clsx";
|
|
47
|
+
import "@floating-ui/react-dom";
|
|
48
|
+
import "react-textarea-autosize";
|
|
49
|
+
import "flagged";
|
|
50
|
+
import "react-dnd";
|
|
51
|
+
import "@minoru/react-dnd-treeview";
|
|
44
52
|
import "./lib.js";
|
|
45
53
|
import "himalaya";
|
|
54
|
+
import "./functions-JFP-oMsY.js";
|
|
46
55
|
import "@mhsdesign/jit-browser-tailwindcss";
|
|
47
56
|
import "@bobthered/tailwindcss-palette-generator";
|
|
48
57
|
import "@tailwindcss/forms";
|
|
49
58
|
import "@tailwindcss/typography";
|
|
50
59
|
import "@tailwindcss/aspect-ratio";
|
|
51
60
|
import "@tailwindcss/line-clamp";
|
|
52
|
-
import "
|
|
61
|
+
import "./tailwind-config-d1VL1lzE.js";
|
|
53
62
|
import "tailwind-merge";
|
|
54
|
-
import "i18next";
|
|
55
|
-
import "@floating-ui/react-dom";
|
|
56
|
-
import "react-textarea-autosize";
|
|
57
|
-
import "flagged";
|
|
58
|
-
import "react-dnd";
|
|
59
|
-
import "@minoru/react-dnd-treeview";
|
|
60
63
|
import "react-hotkeys-hook";
|
|
61
64
|
import "sonner";
|
|
62
65
|
const Pr = P.lazy(() => import("react-json-view"));
|
|
@@ -466,7 +469,7 @@ const $e = new Hr(Br, {
|
|
|
466
469
|
});
|
|
467
470
|
function _r() {
|
|
468
471
|
var D;
|
|
469
|
-
const [t] = Ne(), l = G(), r = Ke(), s = qe(), [o] = Je(), [a, d] = w(""), i = (D = we(t)) == null ? void 0 : D.prop, n = mt((p(l, i, "").replace(
|
|
472
|
+
const [t] = Ne(), l = G(), r = Ke(), s = qe(), [o] = Je(), [a, d] = w(""), i = (D = we(t)) == null ? void 0 : D.prop, n = mt((p(l, i, "").replace(Dr, "").split(",").pop() || "").split(" "), b), u = () => {
|
|
470
473
|
const j = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
471
474
|
r(o, j, !0), d("");
|
|
472
475
|
}, [x, c] = w([]), m = ({ value: j }) => {
|
|
@@ -1781,7 +1784,7 @@ const qr = (t) => {
|
|
|
1781
1784
|
(k, I = !0) => {
|
|
1782
1785
|
const F = { dark: i, mq: u, mod: n, cls: k, property: s, fullCls: "" };
|
|
1783
1786
|
(i || n !== "") && (F.mq = "xs");
|
|
1784
|
-
const oe =
|
|
1787
|
+
const oe = Ar(F);
|
|
1785
1788
|
c(h, [oe], I);
|
|
1786
1789
|
},
|
|
1787
1790
|
[h, i, u, n, s, c]
|
|
@@ -2129,7 +2132,7 @@ const pl = {
|
|
|
2129
2132
|
"-": 1,
|
|
2130
2133
|
deg: 1,
|
|
2131
2134
|
ms: 0.1
|
|
2132
|
-
},
|
|
2135
|
+
}, js = () => {
|
|
2133
2136
|
const t = G(), { t: l } = Fe(), [r, s] = P.useState(""), [o, a] = P.useState({
|
|
2134
2137
|
onDrag: (n) => n,
|
|
2135
2138
|
onDragEnd: (n) => n,
|
|
@@ -2193,5 +2196,5 @@ const pl = {
|
|
|
2193
2196
|
] });
|
|
2194
2197
|
};
|
|
2195
2198
|
export {
|
|
2196
|
-
|
|
2199
|
+
js as default
|
|
2197
2200
|
};
|