@feedmepos/mf-brand-app-builder 0.5.12 → 0.5.13-alpha
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-sh0my5.js → App-Dx-zim3o.js} +4 -4
- package/dist/{AssetsSettings-BRmUNWzU.js → AssetsSettings-BrFOHUWK.js} +86 -84
- package/dist/{BuilderView-DPoES6BN.js → BuilderView-qdOop6ed.js} +6 -6
- package/dist/{ImageUpload-EpMFyZdg.js → ImageUpload-DxE1yPGA.js} +7 -7
- package/dist/{LinkButton-DENsxaU5.js → LinkButton-Cbch02ih.js} +1 -1
- package/dist/{ListRepeater-DLracrtI.js → ListRepeater-Btngd8M3.js} +1 -1
- package/dist/{ManagementSettings-BM5Ln-Sx.js → ManagementSettings-de-TEfbe.js} +5 -5
- package/dist/{app-B1o1qlxh.js → app-s4CdT1Jt.js} +7 -7
- package/dist/app.js +1 -1
- package/dist/{image-Dw_jz8xE.js → image-C-MNSOjE.js} +8 -8
- package/dist/{index-BxQr98LR.js → index-C1ZVL1AH.js} +131 -131
- package/dist/{index-T23clKe0.js → index-C4WOObjm.js} +6 -6
- package/dist/{index-Dw3CRqw2.js → index-D2kxtvYi.js} +1 -1
- package/dist/{index-BMPqWhXR.js → index-WtAjKyig.js} +18 -18
- package/dist/merchant/src/api/business/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { resolveComponent as Y, TransitionGroup as ko, defineComponent as ie, h as Qt, nextTick as On, isRef as Fo, isReactive as Po, isProxy as $o, toRaw as Ao, ref as q, openBlock as D, createElementBlock as O, Fragment as Te, renderList as ot, unref as $, createElementVNode as k, toDisplayString as Pe, createVNode as S, withCtx as M, createBlock as te, createCommentVNode as ne, computed as re, withDirectives as $t, withModifiers as Zt, vShow as At, normalizeClass as Ke, watch as en, createTextVNode as Mo, onMounted as Un, normalizeProps as Cn, mergeProps as Lo, resolveDynamicComponent as Ro, guardReactiveProps as Oo, normalizeStyle as Uo, renderSlot as dn, provide as Vo, inject as Ho, markRaw as zo } from "vue";
|
|
2
|
-
import { T as Yo, B as Vn, u as rt } from "./index-
|
|
2
|
+
import { T as Yo, B as Vn, u as rt } from "./index-WtAjKyig.js";
|
|
3
3
|
import { defineStore as jo, storeToRefs as Go } from "pinia";
|
|
4
4
|
import { v as _n } from "./v4-ANoOI1Qw.js";
|
|
5
5
|
import { _ as ke } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
6
6
|
import { _ as Wo, a as Xo, C as Ko } from "./main-CZCjdYQJ.js";
|
|
7
7
|
import { useCoreStore as Fe } from "@feedmepos/mf-common";
|
|
8
|
-
import { K as se, V as Jo } from "./index-
|
|
8
|
+
import { K as se, V as Jo } from "./index-C4WOObjm.js";
|
|
9
9
|
import { useDialog as qo, components as Qo } from "@feedmepos/ui-library";
|
|
10
|
-
import { F as Zo, a as er } from "./app-
|
|
11
|
-
import { u as tr } from "./index-
|
|
10
|
+
import { F as Zo, a as er } from "./app-s4CdT1Jt.js";
|
|
11
|
+
import { u as tr } from "./index-D2kxtvYi.js";
|
|
12
12
|
/**!
|
|
13
13
|
* Sortable 1.14.0
|
|
14
14
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -2650,7 +2650,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2650
2650
|
}
|
|
2651
2651
|
async function g() {
|
|
2652
2652
|
var w;
|
|
2653
|
-
const m = `${"https://{slug}.
|
|
2653
|
+
const m = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((w = r.currentBusiness.value) == null ? void 0 : w.id)}`)}`;
|
|
2654
2654
|
se.promise(
|
|
2655
2655
|
async () => {
|
|
2656
2656
|
var v;
|
|
@@ -4212,7 +4212,7 @@ lt.toString = yn.bind(null, function(t, e, n) {
|
|
|
4212
4212
|
const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full flex gap-8 justify-end items-center" }, ha = /* @__PURE__ */ ie({
|
|
4213
4213
|
__name: "PreviewQrCode",
|
|
4214
4214
|
setup(t) {
|
|
4215
|
-
const e = q(), n = Fe(), o = rt(), r = q(!1), i = re(() => `${`${"https://{slug}.
|
|
4215
|
+
const e = q(), n = Fe(), o = rt(), r = q(!1), i = re(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${n.currentBusiness.value.url}`)}`}/preview/${o.state.selectedTemplate.templateId}`);
|
|
4216
4216
|
function a() {
|
|
4217
4217
|
se.promise(navigator.clipboard.writeText(i.value), {
|
|
4218
4218
|
loading: "Copying...",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, resolveComponent as w, openBlock as r, createElementBlock as s, createVNode as c, Fragment as C, createElementVNode as i, unref as u, createCommentVNode as
|
|
2
|
-
import { r as g, I as h } from "./image-
|
|
1
|
+
import { defineComponent as y, ref as b, resolveComponent as w, openBlock as r, createElementBlock as s, createVNode as c, Fragment as C, createElementVNode as i, unref as u, createCommentVNode as f } from "vue";
|
|
2
|
+
import { r as g, I as h } from "./image-C-MNSOjE.js";
|
|
3
3
|
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
4
|
import "./main-CZCjdYQJ.js";
|
|
5
5
|
import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
@@ -22,12 +22,12 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
22
22
|
o
|
|
23
23
|
).then((m) => {
|
|
24
24
|
var p;
|
|
25
|
-
const a = `https://image.
|
|
25
|
+
const a = `https://image.feedmedev.cc/business/${l.currentBusiness.value._id}/${m.imagePath}`;
|
|
26
26
|
e.context.node.input(a);
|
|
27
27
|
const n = new Image();
|
|
28
28
|
(p = e.context.attrs.props) != null && p.ignoreUpdate || (n.onload = () => {
|
|
29
|
-
var
|
|
30
|
-
((
|
|
29
|
+
var d;
|
|
30
|
+
((d = e.context.node.at("$root")) == null ? void 0 : d._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
|
|
31
31
|
}), n.src = g(a);
|
|
32
32
|
}).finally(() => t.value = !1);
|
|
33
33
|
}
|
|
@@ -60,10 +60,10 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
60
60
|
class: "!text-[16px] text-fm-color-typo-white"
|
|
61
61
|
})
|
|
62
62
|
])
|
|
63
|
-
], 64)) :
|
|
63
|
+
], 64)) : f("", !0),
|
|
64
64
|
t.value ? (r(), s("div", z, [
|
|
65
65
|
c(u(k))
|
|
66
|
-
])) :
|
|
66
|
+
])) : f("", !0)
|
|
67
67
|
]);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as L, ref as f, computed as k, onBeforeMount as P, resolveComponent as c, openBlock as p, createBlock as v, withCtx as m, createElementBlock as x, createElementVNode as o, toDisplayString as I, createVNode as r, withModifiers as R, Fragment as C, renderList as F } from "vue";
|
|
2
|
-
import { u as $, B as y } from "./index-
|
|
2
|
+
import { u as $, B as y } from "./index-WtAjKyig.js";
|
|
3
3
|
import { _ as j } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
4
4
|
import { useCoreStore as z } from "@feedmepos/mf-common";
|
|
5
5
|
const A = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, resolveComponent as y, openBlock as c, createBlock as s, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
|
|
2
|
-
import { F as f } from "./app-
|
|
2
|
+
import { F as f } from "./app-s4CdT1Jt.js";
|
|
3
3
|
const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ListRepeater",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, ref as b, computed as B, watch as j, resolveComponent as m, openBlock as p, createElementBlock as w, createElementVNode as r, createVNode as c, unref as l, createBlock as z, withCtx as S, toDisplayString as $ } from "vue";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
|
-
import { K as P, B as g } from "./index-
|
|
4
|
-
import { r as U, I as V } from "./image-
|
|
3
|
+
import { K as P, B as g } from "./index-C4WOObjm.js";
|
|
4
|
+
import { r as U, I as V } from "./image-C-MNSOjE.js";
|
|
5
5
|
const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
|
|
6
6
|
"brand",
|
|
7
7
|
"home",
|
|
@@ -508,7 +508,7 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
|
|
|
508
508
|
url: "",
|
|
509
509
|
thumbnail: ""
|
|
510
510
|
}), y = B(
|
|
511
|
-
() => "https://{slug}.
|
|
511
|
+
() => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
|
|
512
512
|
);
|
|
513
513
|
function k() {
|
|
514
514
|
P.promise(
|
|
@@ -547,9 +547,9 @@ const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
|
|
|
547
547
|
await g.updateBusinessProfile(s.currentBusiness.value._id, {
|
|
548
548
|
name: a.value.name,
|
|
549
549
|
url: a.value.url,
|
|
550
|
-
thumbnail: `https://image.
|
|
550
|
+
thumbnail: `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`,
|
|
551
551
|
coverPhoto: s.currentBusiness.value.coverPhoto
|
|
552
|
-
}), a.value.thumbnail = `https://image.
|
|
552
|
+
}), a.value.thumbnail = `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${u.imagePath}`;
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
return j(
|
|
@@ -8,7 +8,7 @@ const vo = [
|
|
|
8
8
|
{
|
|
9
9
|
path: "/builder",
|
|
10
10
|
name: "builder",
|
|
11
|
-
component: L(() => import("./BuilderView-
|
|
11
|
+
component: L(() => import("./BuilderView-qdOop6ed.js"))
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
path: "/settings",
|
|
@@ -19,12 +19,12 @@ const vo = [
|
|
|
19
19
|
{
|
|
20
20
|
path: "assets",
|
|
21
21
|
name: "settings-assets",
|
|
22
|
-
component: L(() => import("./AssetsSettings-
|
|
22
|
+
component: L(() => import("./AssetsSettings-BrFOHUWK.js"))
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
path: "management",
|
|
26
26
|
name: "settings-management",
|
|
27
|
-
component: L(() => import("./ManagementSettings-
|
|
27
|
+
component: L(() => import("./ManagementSettings-de-TEfbe.js"))
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
30
|
},
|
|
@@ -4669,18 +4669,18 @@ const go = (e) => {
|
|
|
4669
4669
|
BaStepperField: B(L(() => import("./StepperField-DrHM9EDn.js")), { props: ["suffix", "disabled"] }),
|
|
4670
4670
|
BaColorPicker: B(L(() => import("./ColorPicker-DAysa9fA.js"))),
|
|
4671
4671
|
BaSelect: B(L(() => import("./Select-CbQFoAzb.js")), { props: ["selectItems"] }),
|
|
4672
|
-
BaListRepeater: B(L(() => import("./ListRepeater-
|
|
4672
|
+
BaListRepeater: B(L(() => import("./ListRepeater-Btngd8M3.js"))),
|
|
4673
4673
|
BaTextStyleList: B(L(() => import("./TextStyleList-CuPE80Py.js"))),
|
|
4674
4674
|
BaTextAlign: B(L(() => import("./TextAlign-BOC8ekaH.js"))),
|
|
4675
4675
|
BaTextDecorators: B(L(() => import("./TextDecorators-BJC4umDR.js"))),
|
|
4676
|
-
BaImageUpload: B(L(() => import("./ImageUpload-
|
|
4677
|
-
BaLinkButton: B(L(() => import("./LinkButton-
|
|
4676
|
+
BaImageUpload: B(L(() => import("./ImageUpload-DxE1yPGA.js"))),
|
|
4677
|
+
BaLinkButton: B(L(() => import("./LinkButton-Cbch02ih.js"))),
|
|
4678
4678
|
BaSwitch: B(L(() => import("./Switch-8mmNQUDo.js"))),
|
|
4679
4679
|
BaButtonGroup: B(L(() => import("./ButtonGroup-B3ba45VA.js")), { props: ["groupItems"] })
|
|
4680
4680
|
}
|
|
4681
4681
|
})
|
|
4682
4682
|
);
|
|
4683
|
-
}, ho = L(() => import("./App-
|
|
4683
|
+
}, ho = L(() => import("./App-Dx-zim3o.js"));
|
|
4684
4684
|
export {
|
|
4685
4685
|
dn as F,
|
|
4686
4686
|
pn as a,
|
package/dist/app.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as r } from "./index-
|
|
1
|
+
import { H as r } from "./index-C1ZVL1AH.js";
|
|
2
2
|
async function p(e, t, a) {
|
|
3
3
|
const n = new FormData();
|
|
4
4
|
return n.append("file", a), (await r.Put(
|
|
5
|
-
"https://api.
|
|
5
|
+
"https://api.feedmedev.vip",
|
|
6
6
|
`/image/${e}/${t}`,
|
|
7
7
|
{
|
|
8
8
|
headers: {
|
|
@@ -12,15 +12,15 @@ async function p(e, t, a) {
|
|
|
12
12
|
}
|
|
13
13
|
)).data;
|
|
14
14
|
}
|
|
15
|
-
async function
|
|
15
|
+
async function d(e, t) {
|
|
16
16
|
return (await r.Delete(
|
|
17
|
-
"https://api.
|
|
17
|
+
"https://api.feedmedev.vip",
|
|
18
18
|
`/image/${e}/${t}`
|
|
19
19
|
)).data;
|
|
20
20
|
}
|
|
21
|
-
async function
|
|
21
|
+
async function i(e, t) {
|
|
22
22
|
const a = new FormData();
|
|
23
|
-
return a.append("file", t), a.append("businessId", e), (await r.Put("https://pwa-icon-service.
|
|
23
|
+
return a.append("file", t), a.append("businessId", e), (await r.Put("https://pwa-icon-service.feedmeapidev.com", "", {
|
|
24
24
|
headers: {
|
|
25
25
|
"Content-Type": "multipart/form-data"
|
|
26
26
|
},
|
|
@@ -29,8 +29,8 @@ async function s(e, t) {
|
|
|
29
29
|
}
|
|
30
30
|
const o = {
|
|
31
31
|
uploadImage: p,
|
|
32
|
-
deleteImage:
|
|
33
|
-
uploadAppIcon:
|
|
32
|
+
deleteImage: d,
|
|
33
|
+
uploadAppIcon: i
|
|
34
34
|
};
|
|
35
35
|
function c(e) {
|
|
36
36
|
return e.replace("images.feedme-dev.workers.dev", "image.feedmedev.vip").replace("image.feedmedev.cc", "image.feedmedev.vip");
|