@chaibuilder/sdk 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddBlocks-U6bHEqmk.js → AddBlocks-0-e393Fn.js} +7 -5
- package/dist/AddBlocks-p68Cz79o.cjs +3 -0
- package/dist/BrandingOptions-HtNCJO9_.cjs +1 -0
- package/dist/{BrandingOptions-qDgIOayU.js → BrandingOptions-QqqJ-YRb.js} +14 -21
- package/dist/{CanvasArea-_poBbOON.js → CanvasArea-0hMAhzxn.js} +14 -13
- package/dist/{CanvasArea-yXpQHB6x.cjs → CanvasArea-pZz5czrV.cjs} +4 -4
- package/dist/{CurrentPage-SrovfgGL.js → CurrentPage-UOkxZISs.js} +15 -14
- package/dist/CurrentPage-phMDH1Ub.cjs +1 -0
- package/dist/Layers-NKZXi2LV.cjs +1 -0
- package/dist/{Layers-OKJ5nkTF.js → Layers-TB-Lriju.js} +17 -16
- package/dist/MODIFIERS-MLfpKQY1.js +73 -0
- package/dist/MODIFIERS-WFzDQfiT.cjs +1 -0
- package/dist/MarkAsGlobalBlock-5h3wP4zj.cjs +1 -0
- package/dist/{MarkAsGlobalBlock-Ynq-S6mW.js → MarkAsGlobalBlock-Pa8po8qP.js} +10 -9
- package/dist/PagesPanel-ffrNyFyp.cjs +1 -0
- package/dist/{PagesPanel-5macGkBU.js → PagesPanel-mAMSbYPt.js} +20 -19
- package/dist/ProjectPanel-1ywILLme.cjs +1 -0
- package/dist/{ProjectPanel-HS_TJ2k0.js → ProjectPanel-XvsYajju.js} +16 -15
- package/dist/{Settings-23ZBoDkz.js → Settings-8AbHXcDP.js} +18 -16
- package/dist/Settings-hdmnT_mI.cjs +1 -0
- package/dist/{SidePanels-HzpyQU1x.js → SidePanels-LQg3mdC4.js} +27 -26
- package/dist/SidePanels-xaNrI3oK.cjs +1 -0
- package/dist/Topbar-A3WZDrK4.cjs +1 -0
- package/dist/{Topbar-tfg74vbT.js → Topbar-wA6jhMj9.js} +26 -25
- package/dist/UnsplashImages-E8zPMgJf.cjs +1 -0
- package/dist/{UnsplashImages-tvUZGbHK.js → UnsplashImages-mzIO1QeT.js} +8 -7
- package/dist/UploadImages-qEuDUEMn.cjs +1 -0
- package/dist/{UploadImages-pKoVEsI7.js → UploadImages-qMeaY4sk.js} +8 -7
- package/dist/add-page-modal-9deiA1W9.cjs +1 -0
- package/dist/{add-page-modal-217go3Eh.js → add-page-modal-oER3yE4F.js} +20 -18
- package/dist/{confirm-alert-AG96Fmck.js → confirm-alert-rDSai_jQ.js} +9 -8
- package/dist/confirm-alert-tH8UCCSF.cjs +1 -0
- package/dist/controls-G0puEH71.js +120 -0
- package/dist/controls-aHZq-q4b.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +72 -71
- package/dist/{delete-page-modal-YYt_TVmB.js → delete-page-modal-QzQdrLYI.js} +21 -20
- package/dist/delete-page-modal-ShTRkqkB.cjs +1 -0
- package/dist/{form-Ik57WNLs.cjs → form-MlgUSEy_.cjs} +1 -1
- package/dist/{form-gIapXg-W.js → form-vWeEsG9Y.js} +2 -2
- package/dist/functions-eu6BbvqO.cjs +2 -0
- package/dist/functions-hmbWDcnW.js +1108 -0
- package/dist/{index-PrUoEet_.js → index-G55KtqnU.js} +190 -189
- package/dist/index-T5MFAHA0.cjs +1 -0
- package/dist/{index-4DQm5fFW.js → index-mLIwGF5W.js} +5439 -5429
- package/dist/{index-tTN-yd28.cjs → index-pCHSFoQO.cjs} +44 -44
- package/dist/{jsx-runtime-qAwJ85SY.js → jsx-runtime-NV737rRe.js} +1 -1
- package/dist/{jsx-runtime-WKRPbKtm.cjs → jsx-runtime-WUGKV8jN.cjs} +6 -6
- package/dist/lib.cjs +1 -2
- package/dist/lib.js +116 -1208
- package/dist/page-viewer-GPNN1H92.cjs +1 -0
- package/dist/{page-viewer-LQSQxs98.js → page-viewer-X3IEOrUC.js} +17 -16
- package/dist/project-general-setting-HZeYf9A1.cjs +1 -0
- package/dist/{project-general-setting-04N25MvJ.js → project-general-setting-oujmeWOG.js} +21 -19
- package/dist/project-seo-setting-3FZQXaTn.cjs +1 -0
- package/dist/{project-seo-setting-zxnjvt3c.js → project-seo-setting-_X6ckVa4.js} +17 -24
- package/dist/render.cjs +1 -1
- package/dist/render.js +40 -44
- package/dist/single-page-detail-ILshOKys.cjs +1 -0
- package/dist/{single-page-detail-lJHZSKqK.js → single-page-detail-SxboE7TI.js} +46 -44
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +20 -19
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +4 -4
- package/dist/ui.js +144 -143
- package/dist/utils-It2K33fU.cjs +1 -0
- package/dist/{Class-nQk08vqd.js → utils-PPBbw5bk.js} +115 -183
- package/package.json +2 -7
- package/dist/AddBlocks-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-G55KtqnU.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-mLIwGF5W.js";
|
|
13
14
|
import { useAtom as Xe } from "jotai";
|
|
14
15
|
import "@radix-ui/react-toggle";
|
|
15
16
|
import "class-variance-authority";
|
|
@@ -39,6 +40,7 @@ import "redux-undo";
|
|
|
39
40
|
import "@chaibuilder/runtime";
|
|
40
41
|
import "@react-hookz/web";
|
|
41
42
|
import "himalaya";
|
|
43
|
+
import "./functions-hmbWDcnW.js";
|
|
42
44
|
import "@mhsdesign/jit-browser-tailwindcss";
|
|
43
45
|
import "@bobthered/tailwindcss-palette-generator";
|
|
44
46
|
import "@tailwindcss/forms";
|
|
@@ -48,7 +50,6 @@ import "@tailwindcss/line-clamp";
|
|
|
48
50
|
import "clsx";
|
|
49
51
|
import "tailwind-merge";
|
|
50
52
|
import "i18next";
|
|
51
|
-
import "./index-SSmZipiF.js";
|
|
52
53
|
import "@floating-ui/react-dom";
|
|
53
54
|
import "react-textarea-autosize";
|
|
54
55
|
import "flagged";
|
|
@@ -206,7 +207,7 @@ const tt = (t) => {
|
|
|
206
207
|
}, nt = (t) => {
|
|
207
208
|
const s = t.depth * 10 + 16;
|
|
208
209
|
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-
|
|
210
|
+
}, rt = Ue(() => import("./MarkAsGlobalBlock-Pa8po8qP.js")), at = () => {
|
|
210
211
|
const [t] = g(), [, s] = Se();
|
|
211
212
|
return /* @__PURE__ */ e.jsxs(d, { className: "flex items-center gap-x-4 text-xs", onClick: () => s(t), children: [
|
|
212
213
|
/* @__PURE__ */ e.jsx(me, {}),
|
|
@@ -296,13 +297,13 @@ function mt(t) {
|
|
|
296
297
|
};
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
|
-
const
|
|
300
|
+
const js = () => {
|
|
300
301
|
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(_),
|
|
302
|
+
const { dragSource: f, destinationIndex: b, relativeIndex: I, dropTargetId: E, monitor: A } = u, _ = mt(n);
|
|
303
|
+
s(_), f ? x() : (await m({
|
|
303
304
|
block: A.getItem(),
|
|
304
305
|
dropTargetId: E,
|
|
305
|
-
destinationIndex:
|
|
306
|
+
destinationIndex: b,
|
|
306
307
|
relativeIndex: I
|
|
307
308
|
}), p(!1));
|
|
308
309
|
}, N = v(t, (n) => ({
|
|
@@ -344,7 +345,7 @@ const gs = () => {
|
|
|
344
345
|
ref: O,
|
|
345
346
|
className: `mx-1 mt-4 max-w-full h-full p-6 text-center text-sm text-gray-400 ${h ? "bg-blue-200" : ""}`,
|
|
346
347
|
children: [
|
|
347
|
-
h ? /* @__PURE__ */ e.jsx(
|
|
348
|
+
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
349
|
/* @__PURE__ */ e.jsx("p", { className: "mt-2", children: l(h ? "drop_here_message" : "tree_view_no_blocks") })
|
|
349
350
|
]
|
|
350
351
|
}
|
|
@@ -355,7 +356,7 @@ const gs = () => {
|
|
|
355
356
|
extraAcceptTypes: ["CHAI_BLOCK"],
|
|
356
357
|
tree: N,
|
|
357
358
|
rootId: 0,
|
|
358
|
-
render: (n, { depth: u, isOpen:
|
|
359
|
+
render: (n, { depth: u, isOpen: f, onToggle: b }) => /* @__PURE__ */ e.jsx(dt, { id: n.id, children: /* @__PURE__ */ e.jsx(
|
|
359
360
|
st,
|
|
360
361
|
{
|
|
361
362
|
onSelect: (I) => {
|
|
@@ -364,8 +365,8 @@ const gs = () => {
|
|
|
364
365
|
isSelected: F(o, n.id),
|
|
365
366
|
node: n,
|
|
366
367
|
depth: u,
|
|
367
|
-
isOpen:
|
|
368
|
-
onToggle:
|
|
368
|
+
isOpen: f,
|
|
369
|
+
onToggle: b,
|
|
369
370
|
toggleIds: a
|
|
370
371
|
}
|
|
371
372
|
) }),
|
|
@@ -389,5 +390,5 @@ const gs = () => {
|
|
|
389
390
|
) });
|
|
390
391
|
};
|
|
391
392
|
export {
|
|
392
|
-
|
|
393
|
+
js as default
|
|
393
394
|
};
|
|
@@ -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;
|
|
@@ -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-T5MFAHA0.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,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-G55KtqnU.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"),u=require("react"),i=require("lodash"),s=require("./index-pCHSFoQO.cjs");require("./MODIFIERS-WFzDQfiT.cjs");require("i18next");require("react-i18next");require("./index-T5MFAHA0.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-It2K33fU.cjs");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("jotai");require("flat-to-nested");require("redux-undo");require("@chaibuilder/runtime");require("@react-hookz/web");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("./lib.cjs");require("himalaya");require("./functions-eu6BbvqO.cjs");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("react-hotkeys-hook");require("sonner");require("lucide-react");const a=u.lazy(()=>Promise.resolve().then(()=>require("./add-page-modal-9deiA1W9.cjs"))),x=u.lazy(()=>Promise.resolve().then(()=>require("./page-viewer-GPNN1H92.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-mLIwGF5W.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-G55KtqnU.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,26 @@ 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-hmbWDcnW.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";
|
|
54
55
|
import "react-hotkeys-hook";
|
|
55
56
|
import "sonner";
|
|
56
57
|
import "lucide-react";
|
|
57
|
-
const x = i.lazy(() => import("./add-page-modal-
|
|
58
|
+
const x = i.lazy(() => import("./add-page-modal-oER3yE4F.js")), g = i.lazy(() => import("./page-viewer-X3IEOrUC.js")), ht = () => {
|
|
58
59
|
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
60
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
60
61
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: [
|
|
@@ -66,5 +67,5 @@ const x = i.lazy(() => import("./add-page-modal-217go3Eh.js")), g = i.lazy(() =>
|
|
|
66
67
|
] });
|
|
67
68
|
};
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
ht as default
|
|
70
71
|
};
|
|
@@ -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-T5MFAHA0.cjs"),a=require("./index-pCHSFoQO.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-eu6BbvqO.cjs");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("react-hotkeys-hook");require("sonner");require("lucide-react");const d=r.lazy(()=>Promise.resolve().then(()=>require("./project-general-setting-HZeYf9A1.cjs"))),q=r.lazy(()=>Promise.resolve().then(()=>require("./project-seo-setting-3FZQXaTn.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,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-G55KtqnU.js";
|
|
5
|
+
import { c as h, b as g } from "./index-mLIwGF5W.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,28 @@ 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-hmbWDcnW.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 "@floating-ui/react-dom";
|
|
50
|
-
import "react-textarea-autosize";
|
|
51
|
-
import "flagged";
|
|
52
|
-
import "react-dnd";
|
|
53
|
-
import "@minoru/react-dnd-treeview";
|
|
54
55
|
import "react-hotkeys-hook";
|
|
55
56
|
import "sonner";
|
|
56
57
|
import "lucide-react";
|
|
57
|
-
const N = m.lazy(() => import("./project-general-setting-
|
|
58
|
+
const N = m.lazy(() => import("./project-general-setting-oujmeWOG.js")), S = m.lazy(() => import("./project-seo-setting-_X6ckVa4.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
59
|
...r,
|
|
59
60
|
seoData: { title: "", description: "", image: "" }
|
|
60
61
|
} : r;
|
|
61
|
-
function
|
|
62
|
+
function yt() {
|
|
62
63
|
const r = h(), { data: i } = g(), [e, s] = m.useState(
|
|
63
64
|
u(i || {})
|
|
64
65
|
), o = x(e);
|
|
@@ -87,5 +88,5 @@ function kt() {
|
|
|
87
88
|
] });
|
|
88
89
|
}
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
+
yt as default
|
|
91
92
|
};
|
|
@@ -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-G55KtqnU.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-mLIwGF5W.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,23 @@ 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-hmbWDcnW.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 "clsx";
|
|
53
61
|
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
62
|
import "react-hotkeys-hook";
|
|
61
63
|
import "sonner";
|
|
62
64
|
const Pr = P.lazy(() => import("react-json-view"));
|
|
@@ -466,7 +468,7 @@ const $e = new Hr(Br, {
|
|
|
466
468
|
});
|
|
467
469
|
function _r() {
|
|
468
470
|
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(
|
|
471
|
+
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
472
|
const j = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
471
473
|
r(o, j, !0), d("");
|
|
472
474
|
}, [x, c] = w([]), m = ({ value: j }) => {
|
|
@@ -1781,7 +1783,7 @@ const qr = (t) => {
|
|
|
1781
1783
|
(k, I = !0) => {
|
|
1782
1784
|
const F = { dark: i, mq: u, mod: n, cls: k, property: s, fullCls: "" };
|
|
1783
1785
|
(i || n !== "") && (F.mq = "xs");
|
|
1784
|
-
const oe =
|
|
1786
|
+
const oe = Ar(F);
|
|
1785
1787
|
c(h, [oe], I);
|
|
1786
1788
|
},
|
|
1787
1789
|
[h, i, u, n, s, c]
|
|
@@ -2129,7 +2131,7 @@ const pl = {
|
|
|
2129
2131
|
"-": 1,
|
|
2130
2132
|
deg: 1,
|
|
2131
2133
|
ms: 0.1
|
|
2132
|
-
},
|
|
2134
|
+
}, vs = () => {
|
|
2133
2135
|
const t = G(), { t: l } = Fe(), [r, s] = P.useState(""), [o, a] = P.useState({
|
|
2134
2136
|
onDrag: (n) => n,
|
|
2135
2137
|
onDragEnd: (n) => n,
|
|
@@ -2193,5 +2195,5 @@ const pl = {
|
|
|
2193
2195
|
] });
|
|
2194
2196
|
};
|
|
2195
2197
|
export {
|
|
2196
|
-
|
|
2198
|
+
vs as default
|
|
2197
2199
|
};
|