@chaibuilder/sdk 1.2.2 → 1.2.4
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-QvCc-oag.js → AddBlocks-gbfzju1d.js} +15 -15
- package/dist/{AddBlocks-57-vroWk.cjs → AddBlocks-wuKI1ieB.cjs} +1 -1
- package/dist/{CanvasArea-59Gm0EZx.js → CanvasArea-WS9dnLyS.js} +8 -6
- package/dist/{CanvasArea-jRg53jrS.cjs → CanvasArea-wpskKN1H.cjs} +1 -1
- package/dist/CurrentPage-X9fCVXgY.cjs +1 -0
- package/dist/{CurrentPage-YPI5QTjk.js → CurrentPage-iaGHiR2B.js} +11 -9
- package/dist/Layers-EGhZWmvD.cjs +1 -0
- package/dist/{Layers-no2keK4N.js → Layers-V15IDskJ.js} +6 -4
- package/dist/{PagesPanel-pOIuFPOA.cjs → PagesPanel-Vla7HZkm.cjs} +1 -1
- package/dist/{PagesPanel-Q08uN4X3.js → PagesPanel-wfyKhLJ5.js} +6 -4
- package/dist/ProjectPanel-YLS4oOuU.cjs +1 -0
- package/dist/{ProjectPanel-zzYV9yrV.js → ProjectPanel-aiKhpNvr.js} +13 -11
- package/dist/{Settings-28A7R61i.js → Settings-JjYbPJrt.js} +5 -4
- package/dist/Settings-rnHnjhZ4.cjs +1 -0
- package/dist/{SidePanels--ZK6Iqou.js → SidePanels-XABN8kD3.js} +31 -29
- package/dist/SidePanels-vcWHxatg.cjs +1 -0
- package/dist/{add-page-modal-EHIYTW4T.js → add-page-modal-Gwhl6J1F.js} +5 -4
- package/dist/{add-page-modal-OvNXLGf0.cjs → add-page-modal-o5dy8nwt.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +24 -15
- package/dist/core.js +55 -53
- package/dist/delete-page-modal-IO_9ZCm4.cjs +1 -0
- package/dist/{delete-page-modal-qZJCk_JH.js → delete-page-modal-xGWX8RHn.js} +19 -17
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.d.ts +1 -1
- package/dist/email-blocks.js +5 -5
- package/dist/html-to-json-5UoswV2Q.cjs +1 -0
- package/dist/html-to-json-yjzEN9OX.js +184 -0
- package/dist/{index-QEchoZ98.js → index-7mV_OcXd.js} +34 -33
- package/dist/{index-hMoPNZVn.cjs → index-mUPP605-.cjs} +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +1 -1
- package/dist/{page-viewer-zFLkUu2I.js → page-viewer-Xl1i1V3J.js} +7 -5
- package/dist/page-viewer-pJFW_LaN.cjs +1 -0
- package/dist/{project-general-setting-MWGOOurD.js → project-general-setting-8H1Rka2z.js} +5 -4
- package/dist/{project-general-setting-y8daY7V9.cjs → project-general-setting-lNEoQK1n.cjs} +1 -1
- package/dist/render.d.ts +1 -1
- package/dist/{single-page-detail-C48IPzbd.js → single-page-detail-1hsqXV8c.js} +6 -5
- package/dist/single-page-detail-VKqGt-s1.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +5 -3
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +253 -235
- package/package.json +5 -4
- package/dist/CurrentPage-MLObvs0K.cjs +0 -1
- package/dist/Layers-x_mWeT_q.cjs +0 -1
- package/dist/ProjectPanel-4bN_GyNm.cjs +0 -1
- package/dist/Settings-KlTtgu3w.cjs +0 -1
- package/dist/SidePanels-eJBA_cUu.cjs +0 -1
- package/dist/delete-page-modal-U4yiuhx0.cjs +0 -1
- package/dist/html-to-json-dfALTAdG.cjs +0 -1
- package/dist/html-to-json-xKBERAI1.js +0 -177
- package/dist/page-viewer-WhM1FSU0.cjs +0 -1
- package/dist/single-page-detail--xPv74bX.cjs +0 -1
|
@@ -37,8 +37,9 @@ import { useHotkeys as se } from "react-hotkeys-hook";
|
|
|
37
37
|
import { getChaiDataProviders as oC, syncBlocksWithDefaults as cC } from "@chaibuilder/runtime";
|
|
38
38
|
import { FileTextIcon as hC, GearIcon as sC, EyeClosedIcon as vC, EyeOpenIcon as dC } from "@radix-ui/react-icons";
|
|
39
39
|
import { toast as ae, Toaster as uC } from "sonner";
|
|
40
|
-
import { g as gC } from "./html-to-json-
|
|
40
|
+
import { g as gC } from "./html-to-json-yjzEN9OX.js";
|
|
41
41
|
import { Loader as fC, Loader2 as pC, LogOutIcon as zC } from "lucide-react";
|
|
42
|
+
import "./web-blocks.js";
|
|
42
43
|
const MC = "Add block", mC = "(Enter or paste TailwindCSS HTML snippet)", HC = "(Click to add block to page)", VC = "Core", wC = "Custom Blocks", bC = "Use HTML snippets from Tailwind CSS component libraries etc. or just copy paste your own HTML code.", yC = "Tailwind HTML snippet:", xC = "Enter your code snippet here...", LC = "Import HTML", OC = "NOTE: Imported html will be added to the currently selected block. If no block is selected, the html will be added to the page.", SC = "Dark mode", CC = "This page has no blocks. Add a block by clicking the + button", BC = "This page is empty", AC = "Please select a block to edit settings or styles", EC = "Please select a styling block", PC = "Drop your block here", IC = "Use setting", kC = "Mobile (XS)", NC = "Styles set here are applied to all screen unless edited at higher breakpoint", RC = "Mobile landscape (SM)", TC = "Styles set here are applied at 640px and up unless edited at higher breakpoint", DC = "Tablet (MD)", jC = "Styles set here are applied at 768px and up", FC = "Tablet Landscape (LG)", qC = "Styles set here are applied at 1024px and up unless edited at higher breakpoint", WC = "Desktop (XL)", KC = "Styles set here are applied at 1280px and up unless edited at higher breakpoint", UC = "Large Desktop (2XL)", ZC = "Styles set here are applied at 1536px and up", GC = "Breakpoints", JC = "Clear", YC = "Clear whole canvas?", QC = "Are you sure you want to clear the whole canvas?", XC = "Cancel", _C = "Yes", $C = "Preview", tB = "Settings", eB = "Styling", aB = "Data Provider", rB = "Are you sure you want to remove <span class='text-blue-500'>{name}</span> provider?", nB = "Your data provider will be removed from this page and all added data binding will be not visible on blocks.", lB = "Remove", iB = "You have no data providers registered. Please add a data provider to your project.", oB = "Learn more", cB = "Add data providers:", hB = "Select a provider", sB = "Choose", vB = "Page data providers:", dB = "View Data", uB = "Mark as Global", gB = "Note: Global blocks are single instances. Editing global blocks will be reflected on all pages using these blocks.", fB = "Global blocks are indicated with", pB = "Global blocks are available under 'Global' category", zB = "Enter global block name", MB = "Eg: Header, Footer", mB = "{{length}} blocks selected.", HB = "Cut", VB = "Copy", wB = "Clear Selection", bB = "This is dev mode. Visit", yB = "to see page preview", xB = {
|
|
43
44
|
add_block: MC,
|
|
44
45
|
enter_paste_tailwind_html: mC,
|
|
@@ -1670,7 +1671,7 @@ function EP() {
|
|
|
1670
1671
|
Z1.AsyncMode = w, Z1.ConcurrentMode = y, Z1.ContextConsumer = x, Z1.ContextProvider = L, Z1.Element = S, Z1.ForwardRef = P, Z1.Fragment = C, Z1.Lazy = N, Z1.Memo = k, Z1.Portal = T, Z1.Profiler = U, Z1.StrictMode = t1, Z1.Suspense = Z, Z1.isAsyncMode = J, Z1.isConcurrentMode = W, Z1.isContextConsumer = G, Z1.isContextProvider = E, Z1.isElement = F, Z1.isForwardRef = a1, Z1.isFragment = _, Z1.isLazy = X, Z1.isMemo = v1, Z1.isPortal = o1, Z1.isProfiler = c1, Z1.isStrictMode = $, Z1.isSuspense = s1, Z1.isValidElementType = V, Z1.typeOf = b;
|
|
1671
1672
|
}()), Z1;
|
|
1672
1673
|
}
|
|
1673
|
-
var
|
|
1674
|
+
var Kd1 = Q4.exports;
|
|
1674
1675
|
process.env.NODE_ENV === "production" ? Q4.exports = AP() : Q4.exports = EP();
|
|
1675
1676
|
var PP = Q4.exports;
|
|
1676
1677
|
var sp = PP;
|
|
@@ -1690,7 +1691,7 @@ var IP = {
|
|
|
1690
1691
|
}, vp = {};
|
|
1691
1692
|
vp[sp.ForwardRef] = IP;
|
|
1692
1693
|
vp[sp.Memo] = kP;
|
|
1693
|
-
var
|
|
1694
|
+
var Ud1 = Object.prototype;
|
|
1694
1695
|
var NP = !0;
|
|
1695
1696
|
function N3(t, e, a) {
|
|
1696
1697
|
var r = "";
|
|
@@ -1961,7 +1962,7 @@ var B2, c0 = function(e, a, r) {
|
|
|
1961
1962
|
}) : null
|
|
1962
1963
|
);
|
|
1963
1964
|
process.env.NODE_ENV !== "production" && (ar.displayName = "EmotionCacheContext");
|
|
1964
|
-
var
|
|
1965
|
+
var Zd1 = ar.Provider;
|
|
1965
1966
|
var Fi = function(e) {
|
|
1966
1967
|
return /* @__PURE__ */ Q(function(a, r) {
|
|
1967
1968
|
var n = Pt(ar);
|
|
@@ -3340,7 +3341,7 @@ function Ap(t) {
|
|
|
3340
3341
|
}
|
|
3341
3342
|
});
|
|
3342
3343
|
}
|
|
3343
|
-
const
|
|
3344
|
+
const Gd1 = Object.keys(Op), Ep = ["xs", "sm", "md", "lg", "xl"], wk = {
|
|
3344
3345
|
dir: "ltr",
|
|
3345
3346
|
primaryShade: {
|
|
3346
3347
|
light: 6,
|
|
@@ -3982,7 +3983,7 @@ const C0 = {
|
|
|
3982
3983
|
"pop-top-right": S0(O0({}, C0), {
|
|
3983
3984
|
common: { transformOrigin: "top right" }
|
|
3984
3985
|
})
|
|
3985
|
-
},
|
|
3986
|
+
}, Jd1 = Object.keys(q0), Js = ["mousedown", "touchstart"];
|
|
3986
3987
|
function vN(t, e, a) {
|
|
3987
3988
|
const r = z1();
|
|
3988
3989
|
return L1(() => {
|
|
@@ -7424,8 +7425,8 @@ var PF = e1(() => ({
|
|
|
7424
7425
|
* tabbable 6.2.0
|
|
7425
7426
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
7426
7427
|
*/
|
|
7427
|
-
var CM = typeof Element > "u",
|
|
7428
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
7428
|
+
var CM = typeof Element > "u", Yd1 = CM ? function() {
|
|
7429
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Qd1 = !CM && Element.prototype.getRootNode ? function(t) {
|
|
7429
7430
|
var e;
|
|
7430
7431
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
7431
7432
|
} : function(t) {
|
|
@@ -10059,7 +10060,7 @@ const EK = {
|
|
|
10059
10060
|
});
|
|
10060
10061
|
lh.displayName = "@mantine/core/Avatar";
|
|
10061
10062
|
lh.Group = Hm;
|
|
10062
|
-
const
|
|
10063
|
+
const Xd1 = lh;
|
|
10063
10064
|
var PK = Object.defineProperty, IK = Object.defineProperties, kK = Object.getOwnPropertyDescriptors, m6 = Object.getOwnPropertySymbols, NK = Object.prototype.hasOwnProperty, RK = Object.prototype.propertyIsEnumerable, H6 = (t, e, a) => e in t ? PK(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, TK = (t, e) => {
|
|
10064
10065
|
for (var a in e || (e = {}))
|
|
10065
10066
|
NK.call(e, a) && H6(t, a, e[a]);
|
|
@@ -10105,7 +10106,7 @@ const GK = {
|
|
|
10105
10106
|
}));
|
|
10106
10107
|
});
|
|
10107
10108
|
xm.displayName = "@mantine/core/BackgroundImage";
|
|
10108
|
-
const
|
|
10109
|
+
const _d1 = xm;
|
|
10109
10110
|
var JK = Object.defineProperty, YK = Object.defineProperties, QK = Object.getOwnPropertyDescriptors, w6 = Object.getOwnPropertySymbols, XK = Object.prototype.hasOwnProperty, _K = Object.prototype.propertyIsEnumerable, b6 = (t, e, a) => e in t ? JK(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, Fo = (t, e) => {
|
|
10110
10111
|
for (var a in e || (e = {}))
|
|
10111
10112
|
XK.call(e, a) && b6(t, a, e[a]);
|
|
@@ -10961,7 +10962,7 @@ const mZ = {
|
|
|
10961
10962
|
});
|
|
10962
10963
|
ch.Section = Ym;
|
|
10963
10964
|
ch.displayName = "@mantine/core/Card";
|
|
10964
|
-
const
|
|
10965
|
+
const $d1 = ch;
|
|
10965
10966
|
var HZ = e1((t, { inline: e }) => ({
|
|
10966
10967
|
root: {
|
|
10967
10968
|
display: e ? "inline-flex" : "flex",
|
|
@@ -10992,7 +10993,7 @@ const tH = Q((t, e) => {
|
|
|
10992
10993
|
}, o));
|
|
10993
10994
|
});
|
|
10994
10995
|
tH.displayName = "@mantine/core/Center";
|
|
10995
|
-
const
|
|
10996
|
+
const t71 = tH, eH = $t(null), yZ = eH.Provider, xZ = () => Pt(eH);
|
|
10996
10997
|
var LZ = Object.defineProperty, c5 = Object.getOwnPropertySymbols, aH = Object.prototype.hasOwnProperty, rH = Object.prototype.propertyIsEnumerable, F6 = (t, e, a) => e in t ? LZ(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, q6 = (t, e) => {
|
|
10997
10998
|
for (var a in e || (e = {}))
|
|
10998
10999
|
aH.call(e, a) && F6(t, a, e[a]);
|
|
@@ -14292,7 +14293,7 @@ const WX = {
|
|
|
14292
14293
|
}, h)));
|
|
14293
14294
|
});
|
|
14294
14295
|
XV.displayName = "@mantine/core/Highlight";
|
|
14295
|
-
const
|
|
14296
|
+
const e71 = XV, _V = {
|
|
14296
14297
|
context: "HoverCard component was not found in the tree",
|
|
14297
14298
|
children: "HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
14298
14299
|
}, [KX, $V] = w2(_V.context);
|
|
@@ -14728,7 +14729,7 @@ const k_ = {
|
|
|
14728
14729
|
})));
|
|
14729
14730
|
});
|
|
14730
14731
|
Mw.displayName = "@mantine/core/InputBase";
|
|
14731
|
-
const
|
|
14732
|
+
const a71 = Mw;
|
|
14732
14733
|
function P7(t, e) {
|
|
14733
14734
|
if (typeof t == "string" && t.trim().length === 0)
|
|
14734
14735
|
return !0;
|
|
@@ -26147,7 +26148,7 @@ var Ih = { exports: {} }, hL = {
|
|
|
26147
26148
|
var kh = { exports: {} }, Bi1 = function(e) {
|
|
26148
26149
|
return !e || typeof e == "string" ? !1 : e instanceof Array || Array.isArray(e) || e.length >= 0 && (e.splice instanceof Function || Object.getOwnPropertyDescriptor(e, e.length - 1) && e.constructor.name !== "String");
|
|
26149
26150
|
};
|
|
26150
|
-
var
|
|
26151
|
+
var r71 = kh.exports, Ai1 = Bi1, Ei1 = Array.prototype.concat, Pi1 = Array.prototype.slice, Cg = kh.exports = function(e) {
|
|
26151
26152
|
for (var a = [], r = 0, n = e.length; r < n; r++) {
|
|
26152
26153
|
var l = e[r];
|
|
26153
26154
|
Ai1(l) ? a = Ei1.call(a, Pi1.call(l)) : a.push(l);
|
|
@@ -26160,7 +26161,7 @@ Cg.wrap = function(t) {
|
|
|
26160
26161
|
};
|
|
26161
26162
|
};
|
|
26162
26163
|
var Ii1 = kh.exports;
|
|
26163
|
-
var
|
|
26164
|
+
var n71 = Ih.exports, X0 = hL, Pr = Ii1, sL = Object.hasOwnProperty, vL = /* @__PURE__ */ Object.create(null);
|
|
26164
26165
|
for (var zc in X0)
|
|
26165
26166
|
sL.call(X0, zc) && (vL[X0[zc]] = zc);
|
|
26166
26167
|
var o2 = Ih.exports = {
|
|
@@ -26411,7 +26412,7 @@ var Nh = { exports: {} }, Ni1 = {
|
|
|
26411
26412
|
yellow: [255, 255, 0],
|
|
26412
26413
|
yellowgreen: [154, 205, 50]
|
|
26413
26414
|
};
|
|
26414
|
-
var
|
|
26415
|
+
var l71 = Nh.exports, na = Ni1, dL = {};
|
|
26415
26416
|
for (var Mc in na)
|
|
26416
26417
|
na.hasOwnProperty(Mc) && (dL[na[Mc]] = Mc);
|
|
26417
26418
|
var V1 = Nh.exports = {
|
|
@@ -31573,7 +31574,7 @@ function Yc1() {
|
|
|
31573
31574
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
31574
31575
|
return t.length !== e.length || t.some((a, r) => !Object.is(a, e[r]));
|
|
31575
31576
|
}
|
|
31576
|
-
var Fh = { exports: {} },
|
|
31577
|
+
var Fh = { exports: {} }, o71 = Fh.exports;
|
|
31577
31578
|
(function(t) {
|
|
31578
31579
|
var e = function() {
|
|
31579
31580
|
this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
|
|
@@ -32605,7 +32606,7 @@ function _c1() {
|
|
|
32605
32606
|
});
|
|
32606
32607
|
}), yc = a, yc;
|
|
32607
32608
|
}
|
|
32608
|
-
var
|
|
32609
|
+
var c71 = qh.exports;
|
|
32609
32610
|
(function(t) {
|
|
32610
32611
|
"use strict";
|
|
32611
32612
|
const e = (h, s) => (...d) => `\x1B[${h(...d) + s}m`, a = (h, s) => (...d) => {
|
|
@@ -33819,7 +33820,7 @@ function We(t) {
|
|
|
33819
33820
|
return a;
|
|
33820
33821
|
};
|
|
33821
33822
|
}
|
|
33822
|
-
const
|
|
33823
|
+
const h71 = {
|
|
33823
33824
|
added: We("green"),
|
|
33824
33825
|
deleted: We("red"),
|
|
33825
33826
|
movedestination: We("gray"),
|
|
@@ -36982,7 +36983,7 @@ D();
|
|
|
36982
36983
|
D();
|
|
36983
36984
|
D();
|
|
36984
36985
|
D();
|
|
36985
|
-
var
|
|
36986
|
+
var s71 = Wf(), oO = $t(
|
|
36986
36987
|
void 0
|
|
36987
36988
|
), Jh = () => {
|
|
36988
36989
|
const t = Pt(oO);
|
|
@@ -39277,7 +39278,7 @@ const Yv1 = () => {
|
|
|
39277
39278
|
const n = _S(t);
|
|
39278
39279
|
$f(n) && (r = [n, ...Xv1(e, n)]), a(r);
|
|
39279
39280
|
}, [t, e, a]);
|
|
39280
|
-
},
|
|
39281
|
+
}, v71 = () => _f(qO), $v1 = () => ki(VS), t61 = () => f0(() => oC(), []), d71 = ({ children: t }) => {
|
|
39281
39282
|
const [, e] = $v1(), [a] = wS(), r = t61();
|
|
39282
39283
|
return L1(() => (e({}), is(a, (n) => {
|
|
39283
39284
|
const l = Bc(r, { providerKey: n.providerKey });
|
|
@@ -39292,7 +39293,7 @@ const Yv1 = () => {
|
|
|
39292
39293
|
e((l) => (delete l[n.providerKey], l));
|
|
39293
39294
|
});
|
|
39294
39295
|
}), [r, a, e]), /* @__PURE__ */ n1.jsx(n1.Fragment, { children: t });
|
|
39295
|
-
}, e61 = va(() => import("./SidePanels
|
|
39296
|
+
}, e61 = va(() => import("./SidePanels-XABN8kD3.js")), a61 = va(() => import("./Topbar-ks1ckGLz.js")), r61 = va(() => import("./CanvasArea-WS9dnLyS.js")), n61 = va(() => import("./Settings-JjYbPJrt.js")), l61 = () => {
|
|
39296
39297
|
const [t] = ki(bS), e = (n) => {
|
|
39297
39298
|
yS() || n.preventDefault();
|
|
39298
39299
|
};
|
|
@@ -40938,7 +40939,7 @@ var XO = O.createContext(
|
|
|
40938
40939
|
children: e
|
|
40939
40940
|
}) => (O.useEffect(() => (t.mount(), () => {
|
|
40940
40941
|
t.unmount();
|
|
40941
|
-
}), [t]), /* @__PURE__ */ O.createElement(XO.Provider, { value: t }, e)), _O = O.createContext(!1), B61 = () => O.useContext(_O),
|
|
40942
|
+
}), [t]), /* @__PURE__ */ O.createElement(XO.Provider, { value: t }, e)), _O = O.createContext(!1), B61 = () => O.useContext(_O), g71 = _O.Provider;
|
|
40942
40943
|
function A61() {
|
|
40943
40944
|
let t = !1;
|
|
40944
40945
|
return {
|
|
@@ -41149,7 +41150,7 @@ const v2 = {
|
|
|
41149
41150
|
return (n) => t !== "SAVED" ? (ae.error("You have unsaved changes. Please save before changing the page."), !1) : e === n.uuid ? !1 : (r(), setTimeout(() => {
|
|
41150
41151
|
a(n.uuid);
|
|
41151
41152
|
}, 100), !0);
|
|
41152
|
-
},
|
|
41153
|
+
}, f71 = () => {
|
|
41153
41154
|
const t = b2(), e = G61(), a = Ft();
|
|
41154
41155
|
return k2({
|
|
41155
41156
|
mutationFn: async (r) => v2.post(`${a}/pages`, r).then((n) => n.json()),
|
|
@@ -41193,7 +41194,7 @@ const v2 = {
|
|
|
41193
41194
|
});
|
|
41194
41195
|
}
|
|
41195
41196
|
});
|
|
41196
|
-
},
|
|
41197
|
+
}, p71 = () => {
|
|
41197
41198
|
const t = b2(), e = Ft();
|
|
41198
41199
|
return k2({
|
|
41199
41200
|
mutationFn: async (a) => v2.delete(`${e}/page`, a).then((r) => r.json()),
|
|
@@ -41424,7 +41425,7 @@ const rd1 = () => {
|
|
|
41424
41425
|
] })
|
|
41425
41426
|
] })
|
|
41426
41427
|
] });
|
|
41427
|
-
}, cd1 = () => /* @__PURE__ */ n1.jsx(od1, { children: /* @__PURE__ */ n1.jsx("button", { className: "border-gray-200 rounded-md p-2 mb-2 border", children: /* @__PURE__ */ n1.jsx(zC, { className: "w-4 h-4 text-red-500 cursor-pointer hover:text-red-300 duration-300" }) }) }), hd1 = va(() => import("./PagesPanel-
|
|
41428
|
+
}, cd1 = () => /* @__PURE__ */ n1.jsx(od1, { children: /* @__PURE__ */ n1.jsx("button", { className: "border-gray-200 rounded-md p-2 mb-2 border", children: /* @__PURE__ */ n1.jsx(zC, { className: "w-4 h-4 text-red-500 cursor-pointer hover:text-red-300 duration-300" }) }) }), hd1 = va(() => import("./PagesPanel-wfyKhLJ5.js")), sd1 = va(() => import("./ProjectPanel-aiKhpNvr.js")), vd1 = va(() => import("./CurrentPage-iaGHiR2B.js")), dd1 = () => /* @__PURE__ */ n1.jsx("h2", { children: "Your Logo" }), ud1 = () => {
|
|
41428
41429
|
const { mutate: t } = Y61();
|
|
41429
41430
|
return J4("editable", !0) ? /* @__PURE__ */ n1.jsx(C3, { onClick: t, className: "bg-blue-600 text-white", children: "Publish" }) : null;
|
|
41430
41431
|
}, gd1 = (t) => {
|
|
@@ -41559,24 +41560,24 @@ const rd1 = () => {
|
|
|
41559
41560
|
return L1(() => {
|
|
41560
41561
|
r.setQueryData(["apiBaseUrl"], t.apiBaseUrl || "/api/chaibuilder");
|
|
41561
41562
|
}, [t.apiBaseUrl, r]), a ? /* @__PURE__ */ n1.jsx(x3, {}) : e != null && e.valid ? /* @__PURE__ */ n1.jsx(gd1, { ...t }) : /* @__PURE__ */ n1.jsx(fd1, { logo: t.logo });
|
|
41562
|
-
}, zd1 = new y61(),
|
|
41563
|
+
}, zd1 = new y61(), z71 = (t) => /* @__PURE__ */ n1.jsxs(C61, { client: zd1, children: [
|
|
41563
41564
|
/* @__PURE__ */ n1.jsx(uC, { richColors: !0 }),
|
|
41564
41565
|
/* @__PURE__ */ n1.jsx(pd1, { ...t })
|
|
41565
41566
|
] });
|
|
41566
41567
|
export {
|
|
41567
|
-
|
|
41568
|
-
|
|
41568
|
+
d71 as B,
|
|
41569
|
+
z71 as C,
|
|
41569
41570
|
Jv1 as E,
|
|
41570
41571
|
eS as a,
|
|
41571
41572
|
tS as b,
|
|
41572
41573
|
Z61 as c,
|
|
41573
41574
|
G61 as d,
|
|
41574
41575
|
ba as e,
|
|
41575
|
-
|
|
41576
|
-
|
|
41576
|
+
v71 as f,
|
|
41577
|
+
f71 as g,
|
|
41577
41578
|
b2 as h,
|
|
41578
41579
|
J61 as i,
|
|
41579
|
-
|
|
41580
|
+
p71 as j,
|
|
41580
41581
|
h61 as k,
|
|
41581
41582
|
PP as r,
|
|
41582
41583
|
$v1 as u
|