@feedmepos/mf-brand-app-builder 0.5.11 → 0.5.12
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 +99 -0
- package/dist/{AssetsSettings-CpolHf9m.js → AssetsSettings-BRmUNWzU.js} +80 -80
- package/dist/{BuilderView-7RZ42i1A.js → BuilderView-DPoES6BN.js} +212 -225
- package/dist/{ImageUpload-jL5eYjTl.js → ImageUpload-EpMFyZdg.js} +1 -1
- package/dist/{LinkButton-DSzPrKwg.js → LinkButton-DENsxaU5.js} +1 -1
- package/dist/{ListRepeater-DYjj8nI1.js → ListRepeater-DLracrtI.js} +1 -1
- package/dist/{ManagementSettings-DLQAE5tt.js → ManagementSettings-BM5Ln-Sx.js} +4 -5
- package/dist/{app-JSHXAy49.js → app-B1o1qlxh.js} +7 -7
- package/dist/app.js +1 -1
- package/dist/{image-iPd2Pjtn.js → image-Dw_jz8xE.js} +1 -1
- package/dist/{index-GWwfgXav.js → index-BMPqWhXR.js} +1 -1
- package/dist/{index-Cf_Vke2-.js → index-BxQr98LR.js} +1 -1
- package/dist/index-Dw3CRqw2.js +25 -0
- package/dist/{vue-sonner-PX6Req0V.js → index-T23clKe0.js} +311 -241
- package/dist/merchant/src/api/business/index.d.ts +2 -0
- package/dist/merchant/src/stores/business/index.d.ts +11 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/App-BpeA3Apz.js +0 -98
- package/dist/index-ctrCMOtp.js +0 -66
|
@@ -24,12 +24,14 @@ declare function getBusinessMetadata(businessId: string): Promise<unknown>;
|
|
|
24
24
|
*/
|
|
25
25
|
declare function setBusinessMetadata(businessId: string, appName: string, country: string): Promise<unknown>;
|
|
26
26
|
declare function updateBusinessProfile(businessId: string, payload: IBusinessProfilePayload): Promise<any>;
|
|
27
|
+
declare function getBusinessPremiumStatus(businessId: string): Promise<boolean>;
|
|
27
28
|
export declare const BusinessApi: {
|
|
28
29
|
getGlobalSlug: typeof getGlobalSlug;
|
|
29
30
|
setShortUrl: typeof setShortUrl;
|
|
30
31
|
getBusinessMetadata: typeof getBusinessMetadata;
|
|
31
32
|
setBusinessMetadata: typeof setBusinessMetadata;
|
|
32
33
|
updateBusinessProfile: typeof updateBusinessProfile;
|
|
34
|
+
getBusinessPremiumStatus: typeof getBusinessPremiumStatus;
|
|
33
35
|
};
|
|
34
36
|
interface IBusinessProfilePayload {
|
|
35
37
|
name: string;
|
|
@@ -3,35 +3,44 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
3
3
|
multiCountrySlug: {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
} | null;
|
|
6
|
+
isPremium: boolean;
|
|
6
7
|
}, IState | {
|
|
7
8
|
multiCountrySlug: {
|
|
8
9
|
[key: string]: string;
|
|
9
10
|
} | null;
|
|
11
|
+
isPremium: boolean;
|
|
10
12
|
}>;
|
|
11
13
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
14
|
+
getPremiumStatus: (businessId: string) => Promise<void>;
|
|
12
15
|
}, "state">, Pick<{
|
|
13
16
|
state: import("vue").Ref<{
|
|
14
17
|
multiCountrySlug: {
|
|
15
18
|
[key: string]: string;
|
|
16
19
|
} | null;
|
|
20
|
+
isPremium: boolean;
|
|
17
21
|
}, IState | {
|
|
18
22
|
multiCountrySlug: {
|
|
19
23
|
[key: string]: string;
|
|
20
24
|
} | null;
|
|
25
|
+
isPremium: boolean;
|
|
21
26
|
}>;
|
|
22
27
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
28
|
+
getPremiumStatus: (businessId: string) => Promise<void>;
|
|
23
29
|
}, never>, Pick<{
|
|
24
30
|
state: import("vue").Ref<{
|
|
25
31
|
multiCountrySlug: {
|
|
26
32
|
[key: string]: string;
|
|
27
33
|
} | null;
|
|
34
|
+
isPremium: boolean;
|
|
28
35
|
}, IState | {
|
|
29
36
|
multiCountrySlug: {
|
|
30
37
|
[key: string]: string;
|
|
31
38
|
} | null;
|
|
39
|
+
isPremium: boolean;
|
|
32
40
|
}>;
|
|
33
41
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
34
|
-
|
|
42
|
+
getPremiumStatus: (businessId: string) => Promise<void>;
|
|
43
|
+
}, "getGlobalSlug" | "getPremiumStatus">>;
|
|
35
44
|
interface IState {
|
|
36
45
|
/**
|
|
37
46
|
* @example
|
|
@@ -45,5 +54,6 @@ interface IState {
|
|
|
45
54
|
multiCountrySlug: {
|
|
46
55
|
[key: string]: string;
|
|
47
56
|
} | null;
|
|
57
|
+
isPremium: boolean;
|
|
48
58
|
}
|
|
49
59
|
export {};
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
package/dist/App-BpeA3Apz.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, computed as h, resolveComponent as u, openBlock as l, createElementBlock as m, Fragment as f, renderList as v, createVNode as n, unref as p, withCtx as _, ref as x, onMounted as b, onBeforeMount as w, watch as y, createElementVNode as i, createBlock as B, createCommentVNode as k } from "vue";
|
|
2
|
-
import { useCoreStore as C } from "@feedmepos/mf-common";
|
|
3
|
-
import { V as F } from "./vue-sonner-PX6Req0V.js";
|
|
4
|
-
import { useRoute as R, RouterLink as S, RouterView as V } from "vue-router";
|
|
5
|
-
import { g as L } from "./index-Cf_Vke2-.js";
|
|
6
|
-
const A = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r border-fm-color-neutral-gray-100 p-[10px] flex flex-col gap-12" }, N = /* @__PURE__ */ d({
|
|
7
|
-
__name: "NavigationSidebar",
|
|
8
|
-
setup(g) {
|
|
9
|
-
const e = R(), r = [
|
|
10
|
-
// {
|
|
11
|
-
// name: 'home',
|
|
12
|
-
// icon: 'style',
|
|
13
|
-
// },
|
|
14
|
-
{
|
|
15
|
-
name: "builder",
|
|
16
|
-
icon: "build"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: "settings",
|
|
20
|
-
icon: "settings"
|
|
21
|
-
}
|
|
22
|
-
], a = h(
|
|
23
|
-
() => (t) => e.matched.map((s) => s.name).includes(t)
|
|
24
|
-
);
|
|
25
|
-
return (t, s) => {
|
|
26
|
-
const c = u("FmButton");
|
|
27
|
-
return l(), m("div", A, [
|
|
28
|
-
(l(), m(f, null, v(r, (o) => n(p(S), {
|
|
29
|
-
to: { name: o.name }
|
|
30
|
-
}, {
|
|
31
|
-
default: _(() => [
|
|
32
|
-
n(c, {
|
|
33
|
-
class: "w-[44px] !h-[44px]",
|
|
34
|
-
size: "lg",
|
|
35
|
-
icon: o.icon,
|
|
36
|
-
"icon-color": a.value(o.name) ? "primary" : "neutral-gray-400",
|
|
37
|
-
"bg-color": a.value(o.name) ? "system-warning-100" : "neutral-white"
|
|
38
|
-
}, null, 8, ["icon", "icon-color", "bg-color"])
|
|
39
|
-
]),
|
|
40
|
-
_: 2
|
|
41
|
-
}, 1032, ["to"])), 64))
|
|
42
|
-
]);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}), P = { class: "relative h-[calc(100vh-56px)] w-screen" }, z = { class: "flex w-full h-full" }, G = /* @__PURE__ */ d({
|
|
46
|
-
__name: "App",
|
|
47
|
-
setup(g) {
|
|
48
|
-
const e = C(), r = x(!0);
|
|
49
|
-
async function a() {
|
|
50
|
-
var t;
|
|
51
|
-
r.value = !0, (t = e.currentBusiness.value) != null && t._id && (r.value = !1);
|
|
52
|
-
}
|
|
53
|
-
return b(() => {
|
|
54
|
-
console.log("Running v0.5.11"), e.hideSidebar.value = !0, L();
|
|
55
|
-
}), w(() => {
|
|
56
|
-
e.hideSidebar.value = !1;
|
|
57
|
-
}), y(
|
|
58
|
-
() => e.currentBusiness.value,
|
|
59
|
-
() => a(),
|
|
60
|
-
{ immediate: !0 }
|
|
61
|
-
), (t, s) => {
|
|
62
|
-
const c = u("FmCircularProgress"), o = u("FmOverlay");
|
|
63
|
-
return l(), m(f, null, [
|
|
64
|
-
s[0] || (s[0] = i("link", {
|
|
65
|
-
href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0..1,0",
|
|
66
|
-
rel: "stylesheet"
|
|
67
|
-
}, null, -1)),
|
|
68
|
-
i("div", P, [
|
|
69
|
-
n(p(F), {
|
|
70
|
-
position: "top-right",
|
|
71
|
-
"rich-colors": "",
|
|
72
|
-
"close-button": "",
|
|
73
|
-
duration: 3e3
|
|
74
|
-
}),
|
|
75
|
-
r.value ? (l(), B(o, {
|
|
76
|
-
key: 0,
|
|
77
|
-
"dismiss-away": !1,
|
|
78
|
-
"prevent-backdrop-event": !1,
|
|
79
|
-
transparent: !1,
|
|
80
|
-
"center-content": ""
|
|
81
|
-
}, {
|
|
82
|
-
default: _(() => [
|
|
83
|
-
n(c, { size: "xxl" })
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
})) : k("", !0),
|
|
87
|
-
i("div", z, [
|
|
88
|
-
n(N),
|
|
89
|
-
n(p(V), { class: "flex-1" })
|
|
90
|
-
])
|
|
91
|
-
])
|
|
92
|
-
], 64);
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
export {
|
|
97
|
-
G as default
|
|
98
|
-
};
|
package/dist/index-ctrCMOtp.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { H as n, a as o } from "./index-Cf_Vke2-.js";
|
|
2
|
-
const i = () => o().PORTAL_V2_BACKEND;
|
|
3
|
-
async function c(t) {
|
|
4
|
-
return (await n.Get(
|
|
5
|
-
"https://api.feedme.vip",
|
|
6
|
-
`/short-url/${t}`
|
|
7
|
-
)).data;
|
|
8
|
-
}
|
|
9
|
-
async function p(t, a, r) {
|
|
10
|
-
return await n.Post(
|
|
11
|
-
"https://api.feedme.vip",
|
|
12
|
-
"/short-url",
|
|
13
|
-
{
|
|
14
|
-
data: {
|
|
15
|
-
slug: t,
|
|
16
|
-
oldSlug: a,
|
|
17
|
-
type: "BUSINESS",
|
|
18
|
-
businessId: r
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
).then((e) => e.data).catch((e) => {
|
|
22
|
-
var s;
|
|
23
|
-
throw (s = e.response) == null ? void 0 : s.data;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async function u(t) {
|
|
27
|
-
return (await n.Get(
|
|
28
|
-
"https://api.feedme.vip",
|
|
29
|
-
`/metadata/${t}/config`
|
|
30
|
-
)).data;
|
|
31
|
-
}
|
|
32
|
-
async function f(t, a, r) {
|
|
33
|
-
return (await n.Post(
|
|
34
|
-
"https://api.feedme.vip",
|
|
35
|
-
`/metadata/${t}/config`,
|
|
36
|
-
{
|
|
37
|
-
data: {
|
|
38
|
-
name: a,
|
|
39
|
-
backgroundColor: "#ffffff",
|
|
40
|
-
country: r
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
)).data;
|
|
44
|
-
}
|
|
45
|
-
async function d(t, a) {
|
|
46
|
-
return await n.Put(
|
|
47
|
-
i(),
|
|
48
|
-
`businesses/${t}/profile`,
|
|
49
|
-
{
|
|
50
|
-
data: a
|
|
51
|
-
}
|
|
52
|
-
).catch((e) => {
|
|
53
|
-
var s;
|
|
54
|
-
throw (s = e.response) == null ? void 0 : s.data;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
const m = {
|
|
58
|
-
getGlobalSlug: c,
|
|
59
|
-
setShortUrl: p,
|
|
60
|
-
getBusinessMetadata: u,
|
|
61
|
-
setBusinessMetadata: f,
|
|
62
|
-
updateBusinessProfile: d
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
m as B
|
|
66
|
-
};
|