@feedmepos/mf-brand-app-builder 0.5.13-alpha → 0.5.13
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-Dx-zim3o.js → App-DF03mf4C.js} +27 -25
- package/dist/{AssetsSettings-BrFOHUWK.js → AssetsSettings-CLNsRfkn.js} +84 -86
- package/dist/{BuilderView-qdOop6ed.js → BuilderView-C-zYam5O.js} +10 -10
- package/dist/{ButtonGroup-B3ba45VA.js → ButtonGroup-CbW3Lnxj.js} +2 -2
- package/dist/{CircularProgress-h90pbjU3.js → CircularProgress-DdblYCtV.js} +4 -4
- package/dist/{ColorPicker-DAysa9fA.js → ColorPicker-Bz8yOMlS.js} +2 -2
- package/dist/{Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js → Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js} +2 -2
- package/dist/{ImageUpload-DxE1yPGA.js → ImageUpload-Cpkzp4iS.js} +14 -14
- package/dist/{LinkButton-Cbch02ih.js → LinkButton-D0MS93kZ.js} +3 -3
- package/dist/{ListRepeater-Btngd8M3.js → ListRepeater-DDJL956f.js} +2 -2
- package/dist/{ManagementSettings-de-TEfbe.js → ManagementSettings-BQuJDFla.js} +6 -6
- package/dist/{Select-CbQFoAzb.js → Select-C2r_c4vv.js} +2 -2
- package/dist/{SettingsView-DFAxZPug.js → SettingsView-BUGfoZhA.js} +2 -2
- package/dist/{StepperField-DrHM9EDn.js → StepperField-xVvcmxNx.js} +2 -2
- package/dist/{Switch-8mmNQUDo.js → Switch-uc_zN-mb.js} +2 -2
- package/dist/{TextAlign-BOC8ekaH.js → TextAlign-BSp1Xi7F.js} +2 -2
- package/dist/{TextDecorators-BJC4umDR.js → TextDecorators-1C54q7us.js} +4 -4
- package/dist/{TextField-BiVH5rLX.js → TextField-DfBJB6vQ.js} +2 -2
- package/dist/{TextStyleList-CuPE80Py.js → TextStyleList-Bef3irUx.js} +3 -3
- package/dist/{app-s4CdT1Jt.js → app-DXnRpFqq.js} +27 -27
- package/dist/app.js +1 -1
- package/dist/components/src/components/BranchList.vue.d.ts +1 -1
- package/dist/components/src/components/ButtonList.vue.d.ts +1 -1
- package/dist/components/src/components/CountrySwitcher.vue.d.ts +1 -1
- package/dist/components/src/components/Homepage.vue.d.ts +3 -3
- package/dist/components/src/components/ImageCarousel.vue.d.ts +1 -1
- package/dist/components/src/components/ImageDisplay.vue.d.ts +1 -1
- package/dist/components/src/components/MemberCard.vue.d.ts +2 -1
- package/dist/components/src/components/OrderHistoryCard.vue.d.ts +1 -1
- package/dist/components/src/components/OrderMethod.vue.d.ts +1 -1
- package/dist/components/src/components/TextDisplay.vue.d.ts +1 -1
- package/dist/components/src/components/atoms/Button.vue.d.ts +4 -4
- package/dist/components/src/components/atoms/CircularProgress.vue.d.ts +1 -1
- package/dist/components/src/components/atoms/Container.vue.d.ts +3 -3
- package/dist/components/src/components/atoms/Divider.vue.d.ts +1 -1
- package/dist/components/src/components/atoms/Icon.vue.d.ts +1 -1
- package/dist/components/src/components/atoms/LinkSlot.vue.d.ts +4 -4
- package/dist/components/src/views/OrderDetails.vue.d.ts +1 -1
- package/dist/{image-C-MNSOjE.js → image-Dm7AsBZX.js} +8 -8
- package/dist/index-B0O5NxWl.js +1741 -0
- package/dist/{index-D2kxtvYi.js → index-BZ63ygCw.js} +1 -1
- package/dist/{index-C4WOObjm.js → index-CAfpg2Eg.js} +205 -201
- package/dist/{index-WtAjKyig.js → index-CJXFGv-u.js} +21 -21
- package/dist/{main-CZCjdYQJ.js → main-BnnUrWK-.js} +265 -266
- package/dist/merchant/src/api/business/index.d.ts +1 -1
- package/dist/merchant/src/api/index.d.ts +21 -1
- package/dist/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
- package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
- package/dist/merchant/src/components/editor/Editor.vue.d.ts +1 -1
- package/dist/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
- package/dist/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +1 -1
- package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/ColorPicker.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
- package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
- package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +3 -3
- package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +3 -3
- package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +3 -3
- package/dist/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
- package/dist/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +1 -1
- package/dist/merchant/src/components/settings/AssetsSettings.vue.d.ts +1 -1
- package/dist/merchant/src/components/settings/ManagementSettings.vue.d.ts +1 -1
- package/dist/merchant/src/views/BuilderView.vue.d.ts +1 -1
- package/dist/merchant/src/views/HomeView.vue.d.ts +1 -1
- package/dist/merchant/src/views/SettingsView.vue.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/{v4-ANoOI1Qw.js → v4-CKwdnpQf.js} +8 -8
- package/package.json +1 -1
- package/dist/index-C1ZVL1AH.js +0 -1729
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as y, openBlock as w, ref as $ } from "vue";
|
|
2
2
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { H as m } from "./index-
|
|
3
|
+
import { H as m } from "./index-B0O5NxWl.js";
|
|
4
4
|
import { defineStore as g } from "pinia";
|
|
5
|
-
import { v as A } from "./v4-
|
|
5
|
+
import { v as A } from "./v4-CKwdnpQf.js";
|
|
6
6
|
async function _(e) {
|
|
7
7
|
return (await m.Get(
|
|
8
|
-
"https://api.
|
|
8
|
+
"https://api.feedme.vip",
|
|
9
9
|
`/template/${e}`
|
|
10
10
|
)).data;
|
|
11
11
|
}
|
|
12
12
|
async function B(e, l, s) {
|
|
13
13
|
return (await m.Get(
|
|
14
|
-
"https://api.
|
|
14
|
+
"https://api.feedme.vip",
|
|
15
15
|
`/template/${e}/${l}/${s}`
|
|
16
16
|
)).data;
|
|
17
17
|
}
|
|
18
18
|
async function P(e, l, s, c) {
|
|
19
19
|
return (await m.Put(
|
|
20
|
-
"https://api.
|
|
20
|
+
"https://api.feedme.vip",
|
|
21
21
|
`/template/${e}/${l}/${s.templateId}`,
|
|
22
22
|
{
|
|
23
23
|
data: {
|
|
@@ -29,7 +29,7 @@ async function P(e, l, s, c) {
|
|
|
29
29
|
}
|
|
30
30
|
async function b(e, l) {
|
|
31
31
|
return (await m.Put(
|
|
32
|
-
"https://api.
|
|
32
|
+
"https://api.feedme.vip",
|
|
33
33
|
`/template/${e}/active`,
|
|
34
34
|
{
|
|
35
35
|
data: {
|
|
@@ -40,19 +40,19 @@ async function b(e, l) {
|
|
|
40
40
|
}
|
|
41
41
|
async function U(e) {
|
|
42
42
|
return (await m.Get(
|
|
43
|
-
"https://api.
|
|
43
|
+
"https://api.feedme.vip",
|
|
44
44
|
`/template/${e}/active`
|
|
45
45
|
)).data;
|
|
46
46
|
}
|
|
47
47
|
async function x(e, l, s) {
|
|
48
48
|
return await m.Head(
|
|
49
|
-
"https://api.
|
|
49
|
+
"https://api.feedme.vip",
|
|
50
50
|
`/template/${e}/${l}/${s}`
|
|
51
|
-
).then((
|
|
51
|
+
).then((d) => d.status === 200).catch(() => !1);
|
|
52
52
|
}
|
|
53
53
|
async function M(e, l, s) {
|
|
54
54
|
return (await m.Post(
|
|
55
|
-
"https://api.
|
|
55
|
+
"https://api.feedme.vip",
|
|
56
56
|
`/template/${e}/${l}/rename`,
|
|
57
57
|
{
|
|
58
58
|
data: {
|
|
@@ -63,7 +63,7 @@ async function M(e, l, s) {
|
|
|
63
63
|
}
|
|
64
64
|
async function N(e, l, s) {
|
|
65
65
|
return (await m.Delete(
|
|
66
|
-
"https://api.
|
|
66
|
+
"https://api.feedme.vip",
|
|
67
67
|
`/template/${e}/${l}/${s}`
|
|
68
68
|
)).data;
|
|
69
69
|
}
|
|
@@ -78,7 +78,7 @@ const p = {
|
|
|
78
78
|
headTemplateById: x
|
|
79
79
|
}, S = {}, G = { class: "border-b border-fm-color-neutral-gray-100" };
|
|
80
80
|
function H(e, l) {
|
|
81
|
-
return
|
|
81
|
+
return w(), y("div", G);
|
|
82
82
|
}
|
|
83
83
|
const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
84
84
|
const e = $({
|
|
@@ -103,7 +103,7 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
103
103
|
async function c(t) {
|
|
104
104
|
e.value.activeTemplateId = await p.getMainTemplateId(t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function d(t) {
|
|
107
107
|
e.value.selectedTemplate = e.value.allTemplates.find(
|
|
108
108
|
(a) => a.templateId === t
|
|
109
109
|
) ?? null;
|
|
@@ -126,10 +126,10 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
126
126
|
}
|
|
127
127
|
function T() {
|
|
128
128
|
let t = "Untitled", a = 2;
|
|
129
|
-
e.value.allTemplates.forEach((
|
|
130
|
-
if (!
|
|
131
|
-
const n =
|
|
132
|
-
n.length === 1 && n[0] === "Untitled" ? t = "Untitled 2" : n.length === 2 && n[0] === "Untitled" && !isNaN(+n[1]) && (
|
|
129
|
+
e.value.allTemplates.forEach((r) => {
|
|
130
|
+
if (!r.templateAlias.startsWith("Untitled")) return;
|
|
131
|
+
const n = r.templateAlias.split(" ");
|
|
132
|
+
n.length === 1 && n[0] === "Untitled" ? t = "Untitled 2" : n.length === 2 && n[0] === "Untitled" && !isNaN(+n[1]) && (r.templateAlias.startsWith(`Untitled ${a}`) && (a += 1), t = `Untitled ${a}`);
|
|
133
133
|
});
|
|
134
134
|
const i = {
|
|
135
135
|
templateAlias: t,
|
|
@@ -140,12 +140,12 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
140
140
|
}
|
|
141
141
|
async function f(t, a, i) {
|
|
142
142
|
await p.renameTemplate(t, a, i).then(() => {
|
|
143
|
-
var
|
|
143
|
+
var r;
|
|
144
144
|
e.value.allTemplates = e.value.allTemplates.map((n) => n.templateId === a ? {
|
|
145
145
|
...n,
|
|
146
146
|
templateAlias: i,
|
|
147
147
|
templateId: a
|
|
148
|
-
} : n), ((
|
|
148
|
+
} : n), ((r = e.value.selectedTemplate) == null ? void 0 : r.templateId) === a && (e.value.selectedTemplate.templateAlias = i);
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
async function v(t, a) {
|
|
@@ -172,7 +172,7 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
172
172
|
getAllTemplates: l,
|
|
173
173
|
publishTemplate: s,
|
|
174
174
|
getMainTemplateId: c,
|
|
175
|
-
setSelectedTemplate:
|
|
175
|
+
setSelectedTemplate: d,
|
|
176
176
|
saveTemplate: u,
|
|
177
177
|
setMainPageTemplate: o,
|
|
178
178
|
addNewTemplate: T,
|