@billgangcom/theme-lib 1.44.1 → 1.44.2
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/App.d.ts +1 -1
- package/dist/builder/components/Preview/Render/index.d.ts +11 -2
- package/dist/builder/utils/index.d.ts +1 -0
- package/dist/builder/utils/splitTextIntoSpans.d.ts +1 -0
- package/dist/builder.cjs.js +48 -48
- package/dist/builder.es.js +958 -943
- package/dist/{index-Dg3e7rFo.js → index-CbgVRiD5.js} +108 -63
- package/dist/{index-BkqkB6IP.cjs → index-X-Olyqgp.cjs} +15 -15
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -4
- package/dist/ui/ButtonsSettings/index.d.ts +3 -1
- package/dist/ui/FormSettings/index.d.ts +7 -3
- package/dist/ui/ItemsSettings/index.d.ts +3 -1
- package/dist/ui/ItemsSettings/popup.d.ts +1 -0
- package/dist/ui/ProductCardButtons/index.d.ts +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1465 -1421
- package/package.json +1 -1
|
@@ -9551,7 +9551,51 @@ const qa = async (e) => {
|
|
|
9551
9551
|
withToken: !0,
|
|
9552
9552
|
method: "delete"
|
|
9553
9553
|
});
|
|
9554
|
-
}
|
|
9554
|
+
};
|
|
9555
|
+
function zie(e) {
|
|
9556
|
+
const t = e.split(" "), r = 20, n = [];
|
|
9557
|
+
let a = [];
|
|
9558
|
+
return t.forEach((o, s) => {
|
|
9559
|
+
o.length > r ? (a.length > 0 && (n.push(
|
|
9560
|
+
/* @__PURE__ */ i.jsxs(
|
|
9561
|
+
"span",
|
|
9562
|
+
{
|
|
9563
|
+
style: { hyphens: "manual" },
|
|
9564
|
+
children: [
|
|
9565
|
+
a.join(" "),
|
|
9566
|
+
" "
|
|
9567
|
+
]
|
|
9568
|
+
},
|
|
9569
|
+
`short-${s}`
|
|
9570
|
+
)
|
|
9571
|
+
), a = []), n.push(
|
|
9572
|
+
/* @__PURE__ */ i.jsxs(
|
|
9573
|
+
"span",
|
|
9574
|
+
{
|
|
9575
|
+
style: { hyphens: "auto" },
|
|
9576
|
+
children: [
|
|
9577
|
+
o,
|
|
9578
|
+
" "
|
|
9579
|
+
]
|
|
9580
|
+
},
|
|
9581
|
+
`long-${s}`
|
|
9582
|
+
)
|
|
9583
|
+
)) : a.push(o);
|
|
9584
|
+
}), a.length > 0 && n.push(
|
|
9585
|
+
/* @__PURE__ */ i.jsxs(
|
|
9586
|
+
"span",
|
|
9587
|
+
{
|
|
9588
|
+
style: { hyphens: "manual" },
|
|
9589
|
+
children: [
|
|
9590
|
+
a.join(" "),
|
|
9591
|
+
" "
|
|
9592
|
+
]
|
|
9593
|
+
},
|
|
9594
|
+
"last-short"
|
|
9595
|
+
)
|
|
9596
|
+
), n;
|
|
9597
|
+
}
|
|
9598
|
+
const NU = async () => {
|
|
9555
9599
|
const e = localStorage.getItem("shopId") || void 0, t = `${Zs}/v1/dash/shops/${e}/images`;
|
|
9556
9600
|
return await qa({
|
|
9557
9601
|
url: t,
|
|
@@ -9567,7 +9611,7 @@ const qa = async (e) => {
|
|
|
9567
9611
|
body: e,
|
|
9568
9612
|
contentType: "mutlipart/form-data"
|
|
9569
9613
|
});
|
|
9570
|
-
},
|
|
9614
|
+
}, Zie = async (e) => {
|
|
9571
9615
|
const t = localStorage.getItem("shopId") || void 0, r = localStorage.getItem("draftId"), n = `${Zs}/v2/builder/shops/${t}/drafts/${r}/reset`;
|
|
9572
9616
|
return await qa({
|
|
9573
9617
|
url: n,
|
|
@@ -9575,7 +9619,7 @@ const qa = async (e) => {
|
|
|
9575
9619
|
method: "post",
|
|
9576
9620
|
body: e
|
|
9577
9621
|
});
|
|
9578
|
-
},
|
|
9622
|
+
}, Yie = async (e) => {
|
|
9579
9623
|
const t = window.location.hostname.includes("localhost") ? localStorage.getItem("fakeDomain") || "flagship-theme.pages.dev" : window.location.hostname, r = `${I0}/v2/shops/${t}/pages/${e}`;
|
|
9580
9624
|
try {
|
|
9581
9625
|
return await qa({
|
|
@@ -9587,7 +9631,7 @@ const qa = async (e) => {
|
|
|
9587
9631
|
if (jt.isAxiosError(n) && n.response && n.response.status === 404)
|
|
9588
9632
|
return null;
|
|
9589
9633
|
}
|
|
9590
|
-
},
|
|
9634
|
+
}, qie = async () => {
|
|
9591
9635
|
const e = window.location.hostname.includes("localhost") ? localStorage.getItem("fakeDomain") || "flagship-theme.pages.dev" : window.location.hostname, t = `${I0}/v2/shops/${e}/settings-theme`;
|
|
9592
9636
|
return await qa({
|
|
9593
9637
|
url: t,
|
|
@@ -14661,7 +14705,7 @@ var CZ = () => bt("customers/dash/info"), wZ = () => bt("customers/dash/dashboar
|
|
|
14661
14705
|
children: e.map((n) => /* @__PURE__ */ i.jsx(uZ, { message: n, onRemove: r }, n.id))
|
|
14662
14706
|
}
|
|
14663
14707
|
);
|
|
14664
|
-
},
|
|
14708
|
+
}, Kie = ({
|
|
14665
14709
|
children: e,
|
|
14666
14710
|
shopDomain: t,
|
|
14667
14711
|
shopId: r,
|
|
@@ -26508,7 +26552,7 @@ var yre = () => {
|
|
|
26508
26552
|
}
|
|
26509
26553
|
)
|
|
26510
26554
|
] });
|
|
26511
|
-
}, bre = yre, Cre = () => /* @__PURE__ */ i.jsx(Xm, { children: /* @__PURE__ */ i.jsx(bre, {}) }),
|
|
26555
|
+
}, bre = yre, Cre = () => /* @__PURE__ */ i.jsx(Xm, { children: /* @__PURE__ */ i.jsx(bre, {}) }), Xie = Cre, wre = ({ email: e, balance: t }) => /* @__PURE__ */ i.jsxs("div", { className: "mb-4 hidden xl:flex w-full flex-col items-center rounded-2xl bg-surface0 py-4", children: [
|
|
26512
26556
|
/* @__PURE__ */ i.jsx("div", { className: "mb-1 font-bold", children: e }),
|
|
26513
26557
|
/* @__PURE__ */ i.jsxs("div", { className: "rounded-xl bg-brandLight px-2 py-1 text-sm text-brandDefault", children: [
|
|
26514
26558
|
"Balance: ",
|
|
@@ -27858,7 +27902,7 @@ var Bne = {
|
|
|
27858
27902
|
}, Gne = () => /* @__PURE__ */ i.jsxs(Xm, { children: [
|
|
27859
27903
|
/* @__PURE__ */ i.jsx(qne, {}),
|
|
27860
27904
|
/* @__PURE__ */ i.jsx(bQ, { richColors: !0, closeButton: !0 })
|
|
27861
|
-
] }),
|
|
27905
|
+
] }), Jie = Gne, Kne = ({
|
|
27862
27906
|
lastUpdate: e,
|
|
27863
27907
|
invoiceId: t,
|
|
27864
27908
|
email: r,
|
|
@@ -28314,7 +28358,7 @@ var Bne = {
|
|
|
28314
28358
|
}
|
|
28315
28359
|
)
|
|
28316
28360
|
] });
|
|
28317
|
-
},
|
|
28361
|
+
}, Qie = xae, yae = _.object({
|
|
28318
28362
|
amount: _.coerce.number({ message: "The balance field should be number." }).min(1, { message: "The balance field cannot be empty." }),
|
|
28319
28363
|
gateway: _.string().min(1, { message: "Select pay method" })
|
|
28320
28364
|
}), bae = ({
|
|
@@ -28409,7 +28453,7 @@ var Bne = {
|
|
|
28409
28453
|
] }) }),
|
|
28410
28454
|
/* @__PURE__ */ i.jsx("div", { className: "p-4 pt-0", children: /* @__PURE__ */ i.jsx(Mn, { className: "md:hidden" }) })
|
|
28411
28455
|
] }) });
|
|
28412
|
-
},
|
|
28456
|
+
}, ele = Cae, wae = {
|
|
28413
28457
|
NEW: "New",
|
|
28414
28458
|
PENDING: "Order Pending",
|
|
28415
28459
|
EXPIRED: "Order Expired",
|
|
@@ -28673,7 +28717,7 @@ var Bne = {
|
|
|
28673
28717
|
] })
|
|
28674
28718
|
] }) })
|
|
28675
28719
|
] });
|
|
28676
|
-
},
|
|
28720
|
+
}, tle = Lae, Dae = ({ subscription: e }) => /* @__PURE__ */ i.jsxs("div", { className: "p-6 mt-3 bg-surface100 rounded-lg", children: [
|
|
28677
28721
|
/* @__PURE__ */ i.jsxs("div", { className: "w-full flex items-start gap-3", children: [
|
|
28678
28722
|
/* @__PURE__ */ i.jsx(
|
|
28679
28723
|
"div",
|
|
@@ -29608,7 +29652,7 @@ var Bne = {
|
|
|
29608
29652
|
] })
|
|
29609
29653
|
] }) })
|
|
29610
29654
|
] });
|
|
29611
|
-
},
|
|
29655
|
+
}, rle = hoe;
|
|
29612
29656
|
const poe = "_button_1gxoe_1", moe = "_primary_1gxoe_14", goe = "_secondary_1gxoe_22", voe = "_tertiary_1gxoe_30", xoe = "_content_1gxoe_38", yoe = "_withoutHover_1gxoe_45", so = {
|
|
29613
29657
|
button: poe,
|
|
29614
29658
|
primary: moe,
|
|
@@ -29702,7 +29746,7 @@ const poe = "_button_1gxoe_1", moe = "_primary_1gxoe_14", goe = "_secondary_1gxo
|
|
|
29702
29746
|
]
|
|
29703
29747
|
}
|
|
29704
29748
|
);
|
|
29705
|
-
},
|
|
29749
|
+
}, nle = (e) => {
|
|
29706
29750
|
const { label: t, onChange: r, activeImage: n } = e, { setOpenModal: a, setOnChange: o } = F0();
|
|
29707
29751
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(
|
|
29708
29752
|
"div",
|
|
@@ -29746,7 +29790,7 @@ const poe = "_button_1gxoe_1", moe = "_primary_1gxoe_14", goe = "_secondary_1gxo
|
|
|
29746
29790
|
]
|
|
29747
29791
|
}
|
|
29748
29792
|
) });
|
|
29749
|
-
},
|
|
29793
|
+
}, ale = () => {
|
|
29750
29794
|
const { setOpenModal: e, onChange: t } = F0(), { setIsOpen: r } = B0(), [n, a] = V.useState(!1), o = () => {
|
|
29751
29795
|
var v;
|
|
29752
29796
|
(v = s.current) == null || v.click();
|
|
@@ -29955,7 +29999,7 @@ const poe = "_button_1gxoe_1", moe = "_primary_1gxoe_14", goe = "_secondary_1gxo
|
|
|
29955
29999
|
borderless: koe,
|
|
29956
30000
|
rightIcon: Loe,
|
|
29957
30001
|
inputPostfix: Doe
|
|
29958
|
-
},
|
|
30002
|
+
}, ole = (e) => {
|
|
29959
30003
|
const {
|
|
29960
30004
|
onChange: t,
|
|
29961
30005
|
style: r,
|
|
@@ -30433,7 +30477,7 @@ var Vt;
|
|
|
30433
30477
|
})(Vt || (Vt = {}));
|
|
30434
30478
|
function Al() {
|
|
30435
30479
|
}
|
|
30436
|
-
function
|
|
30480
|
+
function sle(e, t) {
|
|
30437
30481
|
return Be(
|
|
30438
30482
|
() => ({
|
|
30439
30483
|
sensor: e,
|
|
@@ -30443,7 +30487,7 @@ function ole(e, t) {
|
|
|
30443
30487
|
[e, t]
|
|
30444
30488
|
);
|
|
30445
30489
|
}
|
|
30446
|
-
function
|
|
30490
|
+
function ile() {
|
|
30447
30491
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
30448
30492
|
t[r] = arguments[r];
|
|
30449
30493
|
return Be(
|
|
@@ -32003,7 +32047,7 @@ var Xn;
|
|
|
32003
32047
|
(function(e) {
|
|
32004
32048
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
32005
32049
|
})(Xn || (Xn = {}));
|
|
32006
|
-
const
|
|
32050
|
+
const lle = /* @__PURE__ */ I5(function(t) {
|
|
32007
32051
|
var r, n, a, o;
|
|
32008
32052
|
let {
|
|
32009
32053
|
id: s,
|
|
@@ -32566,7 +32610,7 @@ const A5 = (e) => {
|
|
|
32566
32610
|
}, Ii = {
|
|
32567
32611
|
scaleX: 1,
|
|
32568
32612
|
scaleY: 1
|
|
32569
|
-
},
|
|
32613
|
+
}, cle = (e) => {
|
|
32570
32614
|
var t;
|
|
32571
32615
|
let {
|
|
32572
32616
|
activeIndex: r,
|
|
@@ -32619,7 +32663,7 @@ const k5 = "Sortable", L5 = /* @__PURE__ */ V.createContext({
|
|
|
32619
32663
|
droppable: !1
|
|
32620
32664
|
}
|
|
32621
32665
|
});
|
|
32622
|
-
function
|
|
32666
|
+
function ule(e) {
|
|
32623
32667
|
let {
|
|
32624
32668
|
children: t,
|
|
32625
32669
|
id: r,
|
|
@@ -32717,7 +32761,7 @@ function die(e) {
|
|
|
32717
32761
|
o && s(null);
|
|
32718
32762
|
}, [o]), o;
|
|
32719
32763
|
}
|
|
32720
|
-
function
|
|
32764
|
+
function dle(e) {
|
|
32721
32765
|
let {
|
|
32722
32766
|
animateLayoutChanges: t = iie,
|
|
32723
32767
|
attributes: r,
|
|
@@ -32880,7 +32924,7 @@ const hie = "_wrapper_3dnl4_1", pie = "_label_3dnl4_10", mie = "_textarea_3dnl4_
|
|
|
32880
32924
|
label: pie,
|
|
32881
32925
|
textarea: mie,
|
|
32882
32926
|
length: gie
|
|
32883
|
-
},
|
|
32927
|
+
}, fle = (e) => {
|
|
32884
32928
|
const { onChange: t, label: r, value: n, maxLength: a, placeholder: o = "Type something..." } = e, [s, l] = V.useState(n.length);
|
|
32885
32929
|
return /* @__PURE__ */ i.jsxs("div", { className: Fi.wrapper, children: [
|
|
32886
32930
|
r && /* @__PURE__ */ i.jsx(
|
|
@@ -32912,52 +32956,53 @@ const hie = "_wrapper_3dnl4_1", pie = "_label_3dnl4_10", mie = "_textarea_3dnl4_
|
|
|
32912
32956
|
] });
|
|
32913
32957
|
};
|
|
32914
32958
|
export {
|
|
32915
|
-
|
|
32959
|
+
Aie as $,
|
|
32916
32960
|
Zs as A,
|
|
32917
32961
|
t0 as B,
|
|
32918
|
-
|
|
32919
|
-
|
|
32920
|
-
|
|
32921
|
-
|
|
32962
|
+
nle as C,
|
|
32963
|
+
lle as D,
|
|
32964
|
+
qie as E,
|
|
32965
|
+
Ya as F,
|
|
32922
32966
|
Eie as G,
|
|
32923
|
-
|
|
32967
|
+
Fie as H,
|
|
32924
32968
|
Rn as I,
|
|
32925
|
-
|
|
32926
|
-
|
|
32969
|
+
Jo as J,
|
|
32970
|
+
Sie as K,
|
|
32927
32971
|
Hie as L,
|
|
32928
32972
|
Bie as M,
|
|
32929
|
-
|
|
32930
|
-
|
|
32973
|
+
Tie as N,
|
|
32974
|
+
Iie as O,
|
|
32931
32975
|
j5 as P,
|
|
32932
|
-
|
|
32933
|
-
|
|
32976
|
+
Wie as Q,
|
|
32977
|
+
Uie as R,
|
|
32934
32978
|
$ie as S,
|
|
32935
|
-
|
|
32936
|
-
|
|
32937
|
-
|
|
32938
|
-
|
|
32939
|
-
|
|
32940
|
-
|
|
32941
|
-
|
|
32942
|
-
|
|
32943
|
-
|
|
32944
|
-
|
|
32945
|
-
|
|
32946
|
-
|
|
32947
|
-
|
|
32948
|
-
|
|
32949
|
-
|
|
32950
|
-
|
|
32951
|
-
|
|
32952
|
-
|
|
32979
|
+
fle as T,
|
|
32980
|
+
Nie as U,
|
|
32981
|
+
n$ as V,
|
|
32982
|
+
Mie as W,
|
|
32983
|
+
Pie as X,
|
|
32984
|
+
jo as Y,
|
|
32985
|
+
Lie as Z,
|
|
32986
|
+
jie as _,
|
|
32987
|
+
ole as a,
|
|
32988
|
+
_ie as a0,
|
|
32989
|
+
F0 as a1,
|
|
32990
|
+
Zie as a2,
|
|
32991
|
+
bie as a3,
|
|
32992
|
+
Kie as a4,
|
|
32993
|
+
Cie as a5,
|
|
32994
|
+
Xie as a6,
|
|
32995
|
+
ele as a7,
|
|
32996
|
+
Qie as a8,
|
|
32953
32997
|
tle as a9,
|
|
32954
|
-
|
|
32998
|
+
rle as aa,
|
|
32999
|
+
Jie as ab,
|
|
32955
33000
|
Vie as b,
|
|
32956
33001
|
cr as c,
|
|
32957
|
-
|
|
32958
|
-
|
|
33002
|
+
sle as d,
|
|
33003
|
+
ule as e,
|
|
32959
33004
|
su as f,
|
|
32960
|
-
|
|
33005
|
+
dle as g,
|
|
32961
33006
|
Rl as h,
|
|
32962
33007
|
u$ as i,
|
|
32963
33008
|
i as j,
|
|
@@ -32967,14 +33012,14 @@ export {
|
|
|
32967
33012
|
B0 as n,
|
|
32968
33013
|
Die as o,
|
|
32969
33014
|
Oie as p,
|
|
32970
|
-
|
|
33015
|
+
ale as q,
|
|
32971
33016
|
qa as r,
|
|
32972
|
-
|
|
32973
|
-
|
|
32974
|
-
|
|
32975
|
-
|
|
32976
|
-
|
|
32977
|
-
|
|
32978
|
-
|
|
33017
|
+
zie as s,
|
|
33018
|
+
jt as t,
|
|
33019
|
+
ile as u,
|
|
33020
|
+
cle as v,
|
|
33021
|
+
yi as w,
|
|
33022
|
+
wie as x,
|
|
33023
|
+
kie as y,
|
|
32979
33024
|
Yie as z
|
|
32980
33025
|
};
|