@feedmepos/mf-brand-app-builder 0.5.28-prod → 0.5.30-dev.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/{App-BjzhfhpF.js → App-a34dXdKR.js} +7 -7
- package/dist/{AssetsSettings-DJOCXmyp.js → AssetsSettings-DhprCc4v.js} +18 -18
- package/dist/BrandkitView-DyMY_wX_.js +10773 -0
- package/dist/{BuilderView-CeBhUmEZ.js → BuilderView-ByQ3ibzf.js} +8 -8
- package/dist/{ImageUpload-odamvjyc.js → ImageUpload-C1GXh8yx.js} +8 -8
- package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
- package/dist/{ListRepeater-Cwbdyrr4.js → ListRepeater-DN84BgE2.js} +1 -1
- package/dist/{ManagementSettings-DHh2g_XJ.js → ManagementSettings-CueLn4v_.js} +6 -6
- package/dist/{ProjectView-DKXRpIC6.js → ProjectView-ByxaVBFb.js} +1 -1
- package/dist/{app-Bh_S4QSD.js → app-Box0RGix.js} +19 -25
- package/dist/app.js +1 -1
- package/dist/brand-core/src/brandkit.d.ts +2 -2
- package/dist/brand-core/src/entity.d.ts +50 -0
- package/dist/brandkit-CyhkM7H0.js +127 -0
- package/dist/client/merchant/src/app.d.ts +10 -16
- package/dist/client/merchant/src/stores/business/index.d.ts +318 -0
- package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
- package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
- package/dist/{index-CawZ03Z8.js → index-C1rSMuKA.js} +1 -1
- package/dist/index-C4vwWvn_.js +112 -0
- package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
- package/dist/{main-TiuQoOa_.js → main-LSAkXdRX.js} +218 -226
- package/dist/package.json +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/BrandkitView-DoW1oGaQ.js +0 -9996
- package/dist/brandkit-OeLZ05mv.js +0 -101
- package/dist/index-BUEKCOG0.js +0 -112
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { useSnackbar as u } from "@feedmepos/ui-library";
|
|
2
|
-
function m() {
|
|
3
|
-
const n = u();
|
|
4
|
-
function l(i, e) {
|
|
5
|
-
const { loading: t, success: r, error: s, duration: o } = e, a = n.open(
|
|
6
|
-
{
|
|
7
|
-
message: typeof t == "function" ? t() : t,
|
|
8
|
-
type: "info",
|
|
9
|
-
spinner: !0,
|
|
10
|
-
dismissable: !1
|
|
11
|
-
},
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
return (typeof i == "function" ? i() : i).then((c) => (n.close(a), r && n.open(
|
|
15
|
-
{
|
|
16
|
-
message: typeof r == "function" ? r() : r,
|
|
17
|
-
type: "success",
|
|
18
|
-
spinner: !1,
|
|
19
|
-
dismissable: !0
|
|
20
|
-
},
|
|
21
|
-
o ?? 2e3
|
|
22
|
-
), c)).catch((c) => {
|
|
23
|
-
throw s && (n.close(a), n.open(
|
|
24
|
-
{
|
|
25
|
-
message: typeof s == "function" ? s(c) : s,
|
|
26
|
-
type: "error",
|
|
27
|
-
spinner: !1,
|
|
28
|
-
dismissable: !0
|
|
29
|
-
},
|
|
30
|
-
o ?? 2e3
|
|
31
|
-
)), c;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
promise: l
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
const d = /* @__PURE__ */ new Set(), f = {
|
|
39
|
-
colors: {
|
|
40
|
-
primary: "#ff7823",
|
|
41
|
-
secondary: "#fff3e6",
|
|
42
|
-
accent: "#fff3e6",
|
|
43
|
-
background: {
|
|
44
|
-
base: "#F8F8F8",
|
|
45
|
-
elevated: "#FFFFFF"
|
|
46
|
-
},
|
|
47
|
-
neutral: {
|
|
48
|
-
light: "#ECF0F0",
|
|
49
|
-
mid: "#555555",
|
|
50
|
-
dark: "#1C1C1E"
|
|
51
|
-
},
|
|
52
|
-
text: {
|
|
53
|
-
onPrimary: "#FFFFFF",
|
|
54
|
-
primary: "#1C1C1E",
|
|
55
|
-
secondary: "#555555",
|
|
56
|
-
tertiary: "#A2A09E"
|
|
57
|
-
},
|
|
58
|
-
status: {
|
|
59
|
-
success: "#10B981",
|
|
60
|
-
warning: "#F59E0B",
|
|
61
|
-
error: "#EF4444",
|
|
62
|
-
info: "#3B82F6"
|
|
63
|
-
// Add info if missing previously
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
fonts: {
|
|
67
|
-
brand: "'Inter', sans-serif",
|
|
68
|
-
heading: "'Inter', sans-serif",
|
|
69
|
-
body: "'Roboto', sans-serif"
|
|
70
|
-
},
|
|
71
|
-
ordering: {
|
|
72
|
-
app: {
|
|
73
|
-
category: "VERTICAL",
|
|
74
|
-
items: "LIST",
|
|
75
|
-
singleCategory: !1
|
|
76
|
-
},
|
|
77
|
-
kiosk: {
|
|
78
|
-
category: "VERTICAL",
|
|
79
|
-
singleCategory: !1
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
fontFamilies: []
|
|
83
|
-
};
|
|
84
|
-
function p(n = f, l) {
|
|
85
|
-
const i = document.documentElement, e = (s, o) => {
|
|
86
|
-
o && i.style.setProperty(`--brand-${s}`, o);
|
|
87
|
-
}, { colors: t, fonts: r } = n;
|
|
88
|
-
e("color-primary", t.primary), e("color-secondary", t.secondary), e("color-accent", t.accent), e("color-background-base", t.background.base), e("color-background-elevated", t.background.elevated), e("color-neutral-light", t.neutral.light), e("color-neutral-mid", t.neutral.mid), e("color-neutral-dark", t.neutral.dark), e("color-typo-on-primary", t.text.onPrimary), e("color-typo-primary", t.text.primary), e("color-typo-secondary", t.text.secondary), e("color-typo-tertiary", t.text.tertiary), e("color-status-success", t.status.success), e("color-status-warning", t.status.warning), e("color-status-error", t.status.error), e("color-status-info", t.status.info), e("font-family-brand", r.brand), e("font-family-heading", r.heading ?? r.brand), e("font-family-body", r.body ?? r.brand);
|
|
89
|
-
for (const s of n.fontFamilies ?? []) {
|
|
90
|
-
const o = s.stylesheet;
|
|
91
|
-
if (!o || d.has(o) || document.querySelector(`link[href="${o}"]`))
|
|
92
|
-
continue;
|
|
93
|
-
const a = document.createElement("link");
|
|
94
|
-
a.rel = "stylesheet", a.href = o, a.setAttribute("data-brand-font", o), document.head.appendChild(a), d.add(o);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
export {
|
|
98
|
-
p as a,
|
|
99
|
-
f as b,
|
|
100
|
-
m as u
|
|
101
|
-
};
|
package/dist/index-BUEKCOG0.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { H as e, a as i } from "./index-C6_vWPi0.js";
|
|
2
|
-
const o = () => i().PORTAL_V2_BACKEND, p = () => i().LICENSE_BACKEND;
|
|
3
|
-
async function c(t) {
|
|
4
|
-
return (await e.Get(
|
|
5
|
-
"https://api.feedme.vip",
|
|
6
|
-
`/short-url/${t}`
|
|
7
|
-
)).data;
|
|
8
|
-
}
|
|
9
|
-
async function d(t, a, s) {
|
|
10
|
-
return await e.Post(
|
|
11
|
-
"https://api.feedme.vip",
|
|
12
|
-
"/short-url",
|
|
13
|
-
{
|
|
14
|
-
data: {
|
|
15
|
-
slug: t,
|
|
16
|
-
oldSlug: a,
|
|
17
|
-
type: "BUSINESS",
|
|
18
|
-
businessId: s
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
).then((n) => n.data).catch((n) => {
|
|
22
|
-
var r;
|
|
23
|
-
throw (r = n.response) == null ? void 0 : r.data;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async function u(t) {
|
|
27
|
-
return (await e.Get(
|
|
28
|
-
"https://api.feedme.vip",
|
|
29
|
-
`/metadata/${t}/config`
|
|
30
|
-
)).data;
|
|
31
|
-
}
|
|
32
|
-
async function f(t, a, s) {
|
|
33
|
-
return (await e.Post(
|
|
34
|
-
"https://api.feedme.vip",
|
|
35
|
-
`/metadata/${t}/config`,
|
|
36
|
-
{
|
|
37
|
-
data: {
|
|
38
|
-
name: a,
|
|
39
|
-
backgroundColor: "#ffffff",
|
|
40
|
-
country: s
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
)).data;
|
|
44
|
-
}
|
|
45
|
-
async function m(t) {
|
|
46
|
-
return (await e.Get(
|
|
47
|
-
"https://api.feedme.vip",
|
|
48
|
-
`/metadata/${t}/brandkit`
|
|
49
|
-
)).data;
|
|
50
|
-
}
|
|
51
|
-
async function h(t, a) {
|
|
52
|
-
return (await e.Post(
|
|
53
|
-
"https://api.feedme.vip",
|
|
54
|
-
`/metadata/${t}/brandkit`,
|
|
55
|
-
{
|
|
56
|
-
data: a
|
|
57
|
-
}
|
|
58
|
-
)).data;
|
|
59
|
-
}
|
|
60
|
-
async function l(t, a) {
|
|
61
|
-
return (await e.Get(
|
|
62
|
-
"https://api.feedme.vip",
|
|
63
|
-
`/metadata/${t}/brandkit/template-history/${a}`
|
|
64
|
-
)).data;
|
|
65
|
-
}
|
|
66
|
-
async function y(t, a, s) {
|
|
67
|
-
return (await e.Post(
|
|
68
|
-
"https://api.feedme.vip",
|
|
69
|
-
`/metadata/${t}/brandkit/template-restore/${a}/${s}`,
|
|
70
|
-
{}
|
|
71
|
-
)).data;
|
|
72
|
-
}
|
|
73
|
-
async function $(t, a) {
|
|
74
|
-
return (await e.Delete(
|
|
75
|
-
"https://api.feedme.vip",
|
|
76
|
-
`/metadata/${t}/brandkit/template-history/${a}`
|
|
77
|
-
)).data;
|
|
78
|
-
}
|
|
79
|
-
async function w(t, a) {
|
|
80
|
-
return await e.Put(
|
|
81
|
-
o(),
|
|
82
|
-
`businesses/${t}/profile`,
|
|
83
|
-
{
|
|
84
|
-
data: a
|
|
85
|
-
}
|
|
86
|
-
).catch((n) => {
|
|
87
|
-
var r;
|
|
88
|
-
throw (r = n.response) == null ? void 0 : r.data;
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
async function B(t) {
|
|
92
|
-
return await e.Get(
|
|
93
|
-
p(),
|
|
94
|
-
`api/business/${t}/feature/miniprogram`
|
|
95
|
-
).then((a) => a.data).catch(() => !1);
|
|
96
|
-
}
|
|
97
|
-
const b = {
|
|
98
|
-
getGlobalSlug: c,
|
|
99
|
-
setShortUrl: d,
|
|
100
|
-
getBusinessMetadata: u,
|
|
101
|
-
setBusinessMetadata: f,
|
|
102
|
-
getBusinessBrandkit: m,
|
|
103
|
-
setBusinessBrandkit: h,
|
|
104
|
-
getTemplateHistory: l,
|
|
105
|
-
restoreTemplateVersion: y,
|
|
106
|
-
clearTemplateHistory: $,
|
|
107
|
-
updateBusinessProfile: w,
|
|
108
|
-
getBusinessPremiumStatus: B
|
|
109
|
-
};
|
|
110
|
-
export {
|
|
111
|
-
b as B
|
|
112
|
-
};
|