@billgangcom/theme-lib 1.45.0 → 1.46.0
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/builder/store/usePreviewStore.d.ts +4 -0
- package/dist/builder.cjs.js +4 -4
- package/dist/builder.es.js +947 -915
- package/dist/{index-COq92Nlh.js → index-BpQ41oVX.js} +5 -1
- package/dist/{index-BAwpl1N-.cjs → index-CaVuWySB.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +15 -4
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as t, I as b, c as Y, a as tt, S as st, T as Et, b as et, C as bt, u as yt, d as kt, D as $t, e as It, v as wt, B as ot, f as _t, P as Nt, g as Ct, h as St, i as Vt, s as Yt, k as Ut, l as Bt, m as Ot, M as Mt, n as Dt, o as Lt, p as Gt } from "./index-
|
|
2
|
-
import { q as uc, L as mc } from "./index-
|
|
1
|
+
import { j as t, I as b, c as Y, a as tt, S as st, T as Et, b as et, C as bt, u as yt, d as kt, D as $t, e as It, v as wt, B as ot, f as _t, P as Nt, g as Ct, h as St, i as Vt, s as Yt, k as Ut, l as Bt, m as Ot, M as Mt, n as Dt, o as Lt, p as Gt } from "./index-BpQ41oVX.js";
|
|
2
|
+
import { q as uc, L as mc } from "./index-BpQ41oVX.js";
|
|
3
3
|
import g from "react";
|
|
4
4
|
import "@phosphor-icons/react";
|
|
5
5
|
const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1ibay_15", Qt = "_subtitle_1ibay_22", Kt = "_alignmentContent_1ibay_29", Zt = "_alignments_1ibay_37", te = "_alignment_1ibay_8", ee = "_circle_1ibay_60", se = "_paddings_1ibay_67", ne = "_padding_1ibay_67", ie = "_active_1ibay_91", oe = "_input_1ibay_98", K = {
|
|
@@ -3040,7 +3040,7 @@ const sc = (d) => {
|
|
|
3040
3040
|
padding: 10
|
|
3041
3041
|
},
|
|
3042
3042
|
onClick: (r) => {
|
|
3043
|
-
r.stopPropagation(), window.location.pathname
|
|
3043
|
+
r.stopPropagation(), window.location.pathname.includes("/admin/builder") || (a(!0), f(!0));
|
|
3044
3044
|
},
|
|
3045
3045
|
children: [
|
|
3046
3046
|
/* @__PURE__ */ t.jsx(
|
|
@@ -3233,7 +3233,7 @@ const sc = (d) => {
|
|
|
3233
3233
|
] }), Ft = ({ signUp: d }) => {
|
|
3234
3234
|
const a = JSON.parse(localStorage.getItem("token") || "{}"), { data: e } = a, s = Bt();
|
|
3235
3235
|
function i(o) {
|
|
3236
|
-
s(o);
|
|
3236
|
+
window.location.pathname.includes("/admin/builder") || s(o);
|
|
3237
3237
|
}
|
|
3238
3238
|
if (!e)
|
|
3239
3239
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -3487,6 +3487,17 @@ const sc = (d) => {
|
|
|
3487
3487
|
)
|
|
3488
3488
|
] });
|
|
3489
3489
|
}, ac = ({ children: d, path: a, className: e, target: s = "_self", id: i }) => {
|
|
3490
|
+
if (window.location.pathname.includes("/admin/builder"))
|
|
3491
|
+
return /* @__PURE__ */ t.jsx(
|
|
3492
|
+
"div",
|
|
3493
|
+
{
|
|
3494
|
+
className: e,
|
|
3495
|
+
role: "link",
|
|
3496
|
+
style: { cursor: "pointer" },
|
|
3497
|
+
id: i,
|
|
3498
|
+
children: d
|
|
3499
|
+
}
|
|
3500
|
+
);
|
|
3490
3501
|
const c = Bt(), l = /^https?:\/\//.test(a), o = (n) => {
|
|
3491
3502
|
l || s === "_blank" ? s === "_blank" ? window.open(a, "_blank") : window.location.href = a : (n.preventDefault(), c(a, { replace: !0 }));
|
|
3492
3503
|
};
|