@feedmepos/mf-brand-app-builder 0.5.29-dev → 0.5.30-dev.1

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.
@@ -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
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Composable that listens for the `apply-brand-template` client event
3
- * dispatched by the Remy chat panel's ApplyTemplateActionCard.
4
- *
5
- * When the AI agent generates a template and the user clicks "Apply Template",
6
- * the action card fires a CustomEvent with the schema array as `detail`.
7
- * This composable picks it up via `useClientEvent` and replaces the
8
- * current template in the editor canvas.
9
- *
10
- * Must be called inside a component's setup (e.g. BuilderView.vue)
11
- * so the listener is properly mounted/unmounted with the component lifecycle.
12
- */
13
- export declare function useEditorBridge(): void;