@feedmepos/mf-brand-app-builder 0.5.14-alpha.1 → 0.5.14-alpha.10
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-CItWwtbP.js → App-3_s-e3nq.js} +32 -30
- package/dist/{AssetsSettings-C-KubeZf.js → AssetsSettings-C-XjsF0n.js} +101 -88
- package/dist/BrandkitView-DucN6tvF.js +285 -0
- package/dist/{BuilderView-CwgW1f4v.js → BuilderView-C_zzef6D.js} +2241 -2176
- package/dist/ColorPicker-BXOagDFY.js +543 -0
- package/dist/ColorPicker-C8FTLPJQ.js +156 -0
- package/dist/{ImageUpload-TmUczyfF.js → ImageUpload-DaZWlZEJ.js} +11 -11
- package/dist/{LinkButton-DZgU3ywg.js → LinkButton-CBLc1TL3.js} +32 -31
- package/dist/{ListRepeater-CFVvkPDx.js → ListRepeater-AwMtMY9w.js} +1 -1
- package/dist/{ManagementSettings-Bb0pyiqN.js → ManagementSettings-Nzg2sHql.js} +79 -47
- package/dist/ProjectView-CFmp5F_4.js +680 -0
- package/dist/Select-kJ2B5OCL.js +91 -0
- package/dist/StepperField-nyaUK9ht.js +30 -0
- package/dist/{app-CGvVUULL.js → app-DmRIHvWF.js} +136 -78
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +44 -0
- package/dist/{components → client/components}/src/components/ButtonList.vue.d.ts +2 -0
- package/dist/{components → client/components}/src/components/MemberCard.vue.d.ts +1 -0
- package/dist/{components → client/components}/src/components/NavigationBar.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/OrderMethod.vue.d.ts +3 -0
- package/dist/{components → client/components}/src/main.d.ts +1 -2
- package/dist/{components → client/components}/src/views/_MemberProfile.vue.d.ts +9 -2
- package/dist/{merchant → client/merchant}/src/api/business/index.d.ts +14 -0
- package/dist/{merchant → client/merchant}/src/api/index.d.ts +21 -1
- package/dist/client/merchant/src/components/brandkit/ColorSelection.vue.d.ts +15 -0
- package/dist/{merchant → client/merchant}/src/components/element-sidebar/all-elements.d.ts +1 -0
- package/dist/client/merchant/src/components/inputs/LinkBrandkitColor.vue.d.ts +9 -0
- package/dist/client/merchant/src/components/template/TemplatePreview.vue.d.ts +8 -0
- package/dist/client/merchant/src/composables/useToast/index.d.ts +8 -0
- package/dist/{merchant/src/node-configs/member-button-list → client/merchant/src/node-configs/button-list}/props.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/node-configs/props.d.ts +1 -2
- package/dist/{merchant → client/merchant}/src/node-configs/schema.d.ts +1 -2
- package/dist/client/merchant/src/stores/business/index.d.ts +262 -0
- package/dist/{merchant → client/merchant}/src/stores/template/index.d.ts +3 -3
- package/dist/client/merchant/src/views/BuilderView.vue.d.ts +5 -0
- package/dist/client/merchant/src/views/views.d.ts +101 -0
- package/dist/{image-BDxBQznd.js → image-CgXjWyqN.js} +1 -1
- package/dist/{index-Bo8Z8m-w.js → index-BAS2oeyj.js} +66 -62
- package/dist/{index-tAs8jqUd.js → index-BakrTyC_.js} +200 -195
- package/dist/index-CajMju7D.js +30 -0
- package/dist/index-CgMKkAzT.js +90 -0
- package/dist/{main-DsKVTvvP.js → main-ClD4flPw.js} +1757 -1823
- package/dist/package.json +2 -1
- package/dist/style.css +1 -1
- package/dist/{views-Dd4l-D61.js → views-BDWw3w14.js} +45 -15
- package/dist/{index-CIXbKN-F.js → vue-sonner-CBFYmm8_.js} +261 -327
- package/package.json +2 -1
- package/dist/ColorPicker-CD7uePb_.js +0 -590
- package/dist/ProjectView-B2_5g2ky.js +0 -509
- package/dist/Select-C2r_c4vv.js +0 -25
- package/dist/StepperField-xVvcmxNx.js +0 -29
- package/dist/components/src/components/Member/MemberButtonList.vue.d.ts +0 -21
- package/dist/index-arvscVup.js +0 -25
- package/dist/merchant/src/node-configs/button-list/props.d.ts +0 -29
- package/dist/merchant/src/node-configs/member-button-list/schema.d.ts +0 -2
- package/dist/merchant/src/stores/business/index.d.ts +0 -59
- package/dist/merchant/src/views/HomeView.vue.d.ts +0 -2
- package/dist/merchant/src/views/views.d.ts +0 -11
- /package/dist/{components → client/components}/src/components/BranchList.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/CountrySwitcher.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Homepage.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/ImageCarousel.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/ImageDisplay.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberAchievements.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberCards.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberSummary.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/TransactionList.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/OrderHistoryCard.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/TextDisplay.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Button.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Container.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Divider.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Icon.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/LinkSlot.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/OrderTypeChip.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/utils/date.d.ts +0 -0
- /package/dist/{components → client/components}/src/utils/image.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/OrderDetails.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_Credit.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_Point.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_Referral.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_ReferralTutorial.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/App.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/Entry.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/image/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/template/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/app.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaDivider.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/Editor.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/EditorFloatingToobar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/EditorToolbar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/PreviewQrCode.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplatePicker.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/element-sidebar/ElementSidebar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ColorPicker.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ImageUpload.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/LinkButton.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ListRepeater.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Select.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/StepperField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Switch.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextAlign.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextDecorators.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextStyleList.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/Inspector.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigSection.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTab.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/AssetsSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/ManagementSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/composables/useNode/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/helpers/businessUrl.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/main.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/button-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/formkit.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/shared.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/stores/editor/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/deep-to-raw.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/image.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/provider-keys.d.ts +0 -0
- /package/dist/{merchant/src/views/BuilderView.vue.d.ts → client/merchant/src/views/BrandkitView.vue.d.ts} +0 -0
- /package/dist/{merchant → client/merchant}/src/views/ProjectView.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/views/SettingsView.vue.d.ts +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as d, computed as v, resolveComponent as u, createElementBlock as m, openBlock as i, Fragment as f, renderList as
|
|
1
|
+
import { defineComponent as d, computed as v, resolveComponent as u, createElementBlock as m, openBlock as i, Fragment as f, renderList as b, createElementVNode as l, createVNode as r, unref as p, withCtx as _, ref as w, onMounted as x, onBeforeMount as y, watch as B, createBlock as k, createCommentVNode as S } from "vue";
|
|
2
2
|
import { useCoreStore as C } from "@feedmepos/mf-common";
|
|
3
|
-
import { V as F } from "./
|
|
3
|
+
import { V as F } from "./vue-sonner-CBFYmm8_.js";
|
|
4
4
|
import { useRoute as R, useRouter as V, RouterLink as L, RouterView as P } from "vue-router";
|
|
5
|
-
import { g as A } from "./index-
|
|
6
|
-
import { u as N } from "./index-
|
|
7
|
-
const
|
|
5
|
+
import { g as A } from "./index-BakrTyC_.js";
|
|
6
|
+
import { u as N } from "./index-CajMju7D.js";
|
|
7
|
+
const $ = { 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" }, z = /* @__PURE__ */ d({
|
|
8
8
|
__name: "NavigationSidebar",
|
|
9
9
|
setup(g) {
|
|
10
10
|
const e = R();
|
|
11
11
|
V();
|
|
12
12
|
const c = [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
{
|
|
14
|
+
name: "brandkit",
|
|
15
|
+
icon: "style"
|
|
16
|
+
},
|
|
17
17
|
{
|
|
18
18
|
name: "projects",
|
|
19
19
|
icon: "folder"
|
|
@@ -31,18 +31,18 @@ const z = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
31
31
|
);
|
|
32
32
|
return (s, o) => {
|
|
33
33
|
const a = u("FmButton");
|
|
34
|
-
return i(), m("div",
|
|
35
|
-
(i(), m(f, null,
|
|
36
|
-
|
|
37
|
-
to: { name:
|
|
34
|
+
return i(), m("div", $, [
|
|
35
|
+
(i(), m(f, null, b(c, (n) => l("div", null, [
|
|
36
|
+
r(p(L), {
|
|
37
|
+
to: { name: n.name }
|
|
38
38
|
}, {
|
|
39
39
|
default: _(() => [
|
|
40
|
-
|
|
40
|
+
r(a, {
|
|
41
41
|
class: "w-[44px] !h-[44px]",
|
|
42
42
|
size: "lg",
|
|
43
|
-
icon:
|
|
44
|
-
"icon-color": t.value(
|
|
45
|
-
"bg-color": t.value(
|
|
43
|
+
icon: n.icon,
|
|
44
|
+
"icon-color": t.value(n.name) ? "primary" : "neutral-gray-400",
|
|
45
|
+
"bg-color": t.value(n.name) ? "system-warning-100" : "neutral-white"
|
|
46
46
|
}, null, 8, ["icon", "icon-color", "bg-color"])
|
|
47
47
|
]),
|
|
48
48
|
_: 2
|
|
@@ -51,31 +51,33 @@ const z = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
51
51
|
]);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
}),
|
|
54
|
+
}), M = { class: "relative h-[calc(100vh-56px)] w-screen" }, E = { class: "flex w-full h-full" }, q = /* @__PURE__ */ d({
|
|
55
55
|
__name: "App",
|
|
56
56
|
setup(g) {
|
|
57
|
-
const e = C(), c = N(), t =
|
|
57
|
+
const e = C(), c = N(), t = w(!0);
|
|
58
58
|
async function s() {
|
|
59
59
|
var o;
|
|
60
|
-
t.value = !0, (o = e.currentBusiness.value) != null && o._id && (await c.getPremiumStatus(e.currentBusiness.value._id), t.value = !1);
|
|
60
|
+
t.value = !0, (o = e.currentBusiness.value) != null && o._id && (await A(), await c.getPremiumStatus(e.currentBusiness.value._id), t.value = !1);
|
|
61
61
|
}
|
|
62
|
-
return
|
|
63
|
-
console.log(
|
|
64
|
-
|
|
62
|
+
return x(async () => {
|
|
63
|
+
console.log(
|
|
64
|
+
`Running v0.5.14-alpha.10 on ${e.namespace.value}`
|
|
65
|
+
), e.hideSidebar.value = !0;
|
|
66
|
+
}), y(() => {
|
|
65
67
|
e.hideSidebar.value = !1;
|
|
66
|
-
}),
|
|
68
|
+
}), B(
|
|
67
69
|
() => e.currentBusiness.value,
|
|
68
70
|
() => s(),
|
|
69
71
|
{ immediate: !0 }
|
|
70
72
|
), (o, a) => {
|
|
71
|
-
const
|
|
73
|
+
const n = u("FmCircularProgress"), h = u("FmOverlay");
|
|
72
74
|
return i(), m(f, null, [
|
|
73
75
|
a[0] || (a[0] = l("link", {
|
|
74
76
|
href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0..1,0",
|
|
75
77
|
rel: "stylesheet"
|
|
76
78
|
}, null, -1)),
|
|
77
|
-
l("div",
|
|
78
|
-
|
|
79
|
+
l("div", M, [
|
|
80
|
+
r(p(F), {
|
|
79
81
|
position: "top-right",
|
|
80
82
|
"rich-colors": "",
|
|
81
83
|
"close-button": "",
|
|
@@ -89,13 +91,13 @@ const z = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
89
91
|
"center-content": ""
|
|
90
92
|
}, {
|
|
91
93
|
default: _(() => [
|
|
92
|
-
n
|
|
94
|
+
r(n, { size: "xxl" })
|
|
93
95
|
]),
|
|
94
96
|
_: 1
|
|
95
97
|
})) : S("", !0),
|
|
96
98
|
l("div", E, [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
r(z),
|
|
100
|
+
r(p(P), { class: "flex-1" })
|
|
99
101
|
])
|
|
100
102
|
])
|
|
101
103
|
], 64);
|