@feedmepos/mf-brand-app-builder 0.5.31-dev.1 → 0.5.31-dev.2
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-zTaAuGBa.js → App-es2MsXs2.js} +38 -33
- package/dist/BrandkitView-DL-Xa9Ib.js +11141 -0
- package/dist/{BuilderView-Dbn0EFvV.js → BuilderView-DTY6pVRY.js} +2 -2
- package/dist/{ImageUpload-CT8vpE54.js → ImageUpload-Dqd5oGI2.js} +1 -1
- package/dist/{ListRepeater-BJVdDa65.js → ListRepeater-MVsXznzw.js} +1 -1
- package/dist/{app-D_n3qedF.js → app-DhE9tk6x.js} +5 -5
- package/dist/app.js +1 -1
- package/dist/{main-B40tnqQm.js → main-ynjxR98q.js} +2 -2
- package/dist/package.json +1 -1
- package/dist/useBusinessFeatureFlag-rGPsfDu1.js +866 -0
- package/package.json +1 -1
- package/dist/BrandkitView-ByEGKUWe.js +0 -11997
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as d, computed as h, resolveComponent as u, createElementBlock as m, openBlock as i, Fragment as f, renderList as
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { V as
|
|
1
|
+
import { defineComponent as d, computed as h, resolveComponent as u, createElementBlock as m, openBlock as i, Fragment as f, renderList as w, createElementVNode as l, createVNode as a, unref as p, withCtx as _, ref as b, onMounted as x, onBeforeMount as y, watch as B, createBlock as F, createCommentVNode as k } from "vue";
|
|
2
|
+
import { useCoreStore as S } from "@feedmepos/mf-common";
|
|
3
|
+
import { V as C } from "./vue-sonner-CBFYmm8_.js";
|
|
4
4
|
import { useRoute as R, useRouter as V, RouterLink as L, RouterView as P } from "vue-router";
|
|
5
5
|
import { g as A } from "./index-D0LOMBBD.js";
|
|
6
6
|
import { u as N } from "./index-C1rSMuKA.js";
|
|
7
|
-
|
|
7
|
+
import { i as $ } from "./useBusinessFeatureFlag-rGPsfDu1.js";
|
|
8
|
+
const z = { 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" }, M = /* @__PURE__ */ d({
|
|
8
9
|
__name: "NavigationSidebar",
|
|
9
10
|
setup(v) {
|
|
10
11
|
const e = R();
|
|
@@ -26,23 +27,23 @@ const $ = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
26
27
|
name: "settings",
|
|
27
28
|
icon: "settings"
|
|
28
29
|
}
|
|
29
|
-
],
|
|
30
|
-
() => (s) => e.matched.map((
|
|
30
|
+
], o = h(
|
|
31
|
+
() => (s) => e.matched.map((t) => t.name).includes(s)
|
|
31
32
|
);
|
|
32
|
-
return (s,
|
|
33
|
-
const
|
|
34
|
-
return i(), m("div",
|
|
35
|
-
(i(), m(f, null,
|
|
36
|
-
|
|
37
|
-
to: { name:
|
|
33
|
+
return (s, t) => {
|
|
34
|
+
const n = u("FmButton");
|
|
35
|
+
return i(), m("div", z, [
|
|
36
|
+
(i(), m(f, null, w(c, (r) => l("div", null, [
|
|
37
|
+
a(p(L), {
|
|
38
|
+
to: { name: r.name }
|
|
38
39
|
}, {
|
|
39
40
|
default: _(() => [
|
|
40
|
-
|
|
41
|
+
a(n, {
|
|
41
42
|
class: "w-[44px] !h-[44px]",
|
|
42
43
|
size: "lg",
|
|
43
|
-
icon:
|
|
44
|
-
"icon-color":
|
|
45
|
-
"bg-color":
|
|
44
|
+
icon: r.icon,
|
|
45
|
+
"icon-color": o.value(r.name) ? "primary" : "neutral-gray-400",
|
|
46
|
+
"bg-color": o.value(r.name) ? "system-warning-100" : "neutral-white"
|
|
46
47
|
}, null, 8, ["icon", "icon-color", "bg-color"])
|
|
47
48
|
]),
|
|
48
49
|
_: 2
|
|
@@ -51,39 +52,43 @@ const $ = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
51
52
|
]);
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
|
-
}),
|
|
55
|
+
}), E = { class: "relative h-[calc(100vh-56px)] w-screen" }, O = { class: "flex w-full h-full" }, J = /* @__PURE__ */ d({
|
|
55
56
|
__name: "App",
|
|
56
57
|
setup(v) {
|
|
57
|
-
const e =
|
|
58
|
+
const e = S(), c = N(), o = b(!0);
|
|
58
59
|
async function s() {
|
|
59
|
-
var
|
|
60
|
-
|
|
60
|
+
var t;
|
|
61
|
+
o.value = !0, (t = e.currentBusiness.value) != null && t._id && (await A(), await c.getPremiumStatus(e.currentBusiness.value._id), o.value = !1);
|
|
61
62
|
}
|
|
62
63
|
return x(async () => {
|
|
63
64
|
console.log(
|
|
64
|
-
`Running v0.5.31-dev.
|
|
65
|
+
`Running v0.5.31-dev.2 on ${e.namespace.value}`
|
|
65
66
|
), e.hideSidebar.value = !0;
|
|
67
|
+
const t = e.namespace.value === "prod" ? "prod" : "dev";
|
|
68
|
+
$(t).catch(
|
|
69
|
+
(n) => console.warn("[FeatureFlag] init failed:", n)
|
|
70
|
+
);
|
|
66
71
|
}), y(() => {
|
|
67
72
|
e.hideSidebar.value = !1;
|
|
68
73
|
}), B(
|
|
69
74
|
() => e.currentBusiness.value,
|
|
70
75
|
() => s(),
|
|
71
76
|
{ immediate: !0 }
|
|
72
|
-
), (
|
|
73
|
-
const
|
|
77
|
+
), (t, n) => {
|
|
78
|
+
const r = u("FmCircularProgress"), g = u("FmOverlay");
|
|
74
79
|
return i(), m(f, null, [
|
|
75
|
-
|
|
80
|
+
n[0] || (n[0] = l("link", {
|
|
76
81
|
href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0..1,0",
|
|
77
82
|
rel: "stylesheet"
|
|
78
83
|
}, null, -1)),
|
|
79
|
-
l("div",
|
|
80
|
-
|
|
84
|
+
l("div", E, [
|
|
85
|
+
a(p(C), {
|
|
81
86
|
position: "top-right",
|
|
82
87
|
"rich-colors": "",
|
|
83
88
|
"close-button": "",
|
|
84
89
|
duration: 3e3
|
|
85
90
|
}),
|
|
86
|
-
|
|
91
|
+
o.value ? (i(), F(g, {
|
|
87
92
|
key: 0,
|
|
88
93
|
"dismiss-away": !1,
|
|
89
94
|
"prevent-backdrop-event": !1,
|
|
@@ -91,13 +96,13 @@ const $ = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
91
96
|
"center-content": ""
|
|
92
97
|
}, {
|
|
93
98
|
default: _(() => [
|
|
94
|
-
r
|
|
99
|
+
a(r, { size: "xxl" })
|
|
95
100
|
]),
|
|
96
101
|
_: 1
|
|
97
|
-
})) :
|
|
98
|
-
l("div",
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
})) : k("", !0),
|
|
103
|
+
l("div", O, [
|
|
104
|
+
a(M),
|
|
105
|
+
a(p(P), { class: "flex-1" })
|
|
101
106
|
])
|
|
102
107
|
])
|
|
103
108
|
], 64);
|
|
@@ -105,5 +110,5 @@ const $ = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
105
110
|
}
|
|
106
111
|
});
|
|
107
112
|
export {
|
|
108
|
-
|
|
113
|
+
J as default
|
|
109
114
|
};
|