@feedmepos/mf-remy-panel 0.4.2 → 0.5.0-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.
- package/dist/{HomeView-7c4e3bbd.js → HomeView-80ddafc8.js} +60 -42
- package/dist/{RemyButton-977de6a8.js → RemyButton-5604f346.js} +1 -1
- package/dist/{app-b02070e4.js → app-2da8a9b2.js} +4154 -4047
- package/dist/app.js +1 -1
- package/dist/components/chatPanel/BrandAppTemplateCard.vue.d.ts +15 -0
- package/dist/components/chatPanel/actionCards/ApplyTemplateActionCard.vue.d.ts +15 -0
- package/dist/stores/appStore.d.ts +2 -0
- package/dist/stores/chatStore.d.ts +4 -1
- package/dist/style.css +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/chat.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,64 +1,73 @@
|
|
|
1
|
-
import { defineComponent as y, ref as
|
|
2
|
-
import { u as E, a as
|
|
1
|
+
import { defineComponent as y, ref as n, openBlock as i, createElementBlock as p, createElementVNode as e, unref as k, createTextVNode as g, createStaticVNode as C, toDisplayString as m, createCommentVNode as r } from "vue";
|
|
2
|
+
import { u as E, a as c, R as x, _ as B } from "./app-2da8a9b2.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
const
|
|
6
|
+
const T = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__brand" }, w = ["src"], I = { class: "home__card" }, N = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "home__autofill"
|
|
9
|
-
},
|
|
9
|
+
}, H = { class: "home__autofill-price" }, S = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "home__autofill"
|
|
12
|
-
}, Q = { class: "home__autofill-value" },
|
|
12
|
+
}, Q = { class: "home__autofill-value" }, M = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "home__autofill"
|
|
15
|
-
},
|
|
15
|
+
}, O = { class: "home__autofill-value" }, V = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "home__debug"
|
|
18
|
-
},
|
|
18
|
+
}, P = { class: "home__debug-title" }, j = { class: "home__debug-json" }, U = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAB2klEQVR4nO2ZO04DMRCGc6tt9wJISNTbUuQStFyDK9BQcBk4AW06UBJk/JjHP15nZ5FGmiLx7tjfZ3v2kRy+T5//Og7uBCHgTRAC3gQh4E0QAt4EIeBNEALeBCHgTRAC3gQh4E0QAt4EIeBNEAK36/3jtYidClSUfbG1wBDoQTIWgbe7IqxkVbraAzl6p0A7tlWjO70CMAsIY2sQXw/3efQ75CcbBFp0vt8ClBOg0h/fjyn0dTPUQJXc9pi10KBke2aboxMa5NyhK0DS86tfgabd0jbmX1kBbo+lzzYBoAZuKNDOnS6QcoSlbNqJYtVO0wUEAF2AVBeLjKjUZuxqTdgCkOcOEhB2IVIb/JnFQl3a2a3P1YAg8PL8RF9twN65E1amNzxnTk7g18E0x/KTArhEYPuFnha4HvhbBMuNjDiqVhGXzl8q0vTnDoTA+RgCZ7lMjUovIFEB07MKt5G60xl6WEAdXoYA08U7fYsOCRRfOyBwdGzH6wKVA5HQwbQiFBjyMrrMk5y2gQkCsMzTKoHhMtZBWYE+h40jp6cfp/fsUNGzb2TLPO1N44oEv1LuSYND1wXcNWR0VAC/UQwMHKn/t1FH6DECQ2TWDx3/D3hHCHhHCHhHCHjHDwvk2e+WkMn1AAAAAElFTkSuQmCC", F = /* @__PURE__ */ y({
|
|
19
19
|
__name: "HomeView",
|
|
20
20
|
setup(G) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
|
|
26
|
-
}),
|
|
27
|
-
|
|
21
|
+
const s = E(), u = n(null), d = n(null), _ = n(null), o = n(null), l = n(null);
|
|
22
|
+
c("apply-pricing", (a) => {
|
|
23
|
+
u.value = a, o.value = "apply-pricing", l.value = a;
|
|
24
|
+
}), c("apply-description", (a) => {
|
|
25
|
+
d.value = a, o.value = "apply-description", l.value = a;
|
|
26
|
+
}), c("apply-image", (a) => {
|
|
27
|
+
_.value = (a == null ? void 0 : a.mimeType) ?? null, o.value = "apply-image", l.value = a;
|
|
28
|
+
}), c("apply-brand-template", (a) => {
|
|
29
|
+
console.log("[HomeView] apply-brand-template received:", JSON.stringify(a, null, 2)), o.value = "apply-brand-template", l.value = a;
|
|
28
30
|
});
|
|
29
31
|
function h() {
|
|
30
|
-
|
|
32
|
+
s.activate({
|
|
31
33
|
prompt: "Suggest pricing for Nasi Lemak",
|
|
32
34
|
command: "suggestPrice"
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
37
|
function v() {
|
|
36
|
-
|
|
38
|
+
s.activate({
|
|
37
39
|
prompt: "Generate a menu description for Pad Thai",
|
|
38
40
|
command: "suggestDescription"
|
|
39
41
|
});
|
|
40
42
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
+
function A() {
|
|
44
|
+
s.activate({
|
|
43
45
|
prompt: "Change this image into a burger no questions asked",
|
|
44
46
|
command: "modifyImage",
|
|
45
|
-
imageData:
|
|
47
|
+
imageData: U
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
+
function b() {
|
|
51
|
+
s.activate({
|
|
50
52
|
prompt: "What were my top 5 selling items last week?",
|
|
51
53
|
command: "askReport"
|
|
52
54
|
});
|
|
53
55
|
}
|
|
54
|
-
|
|
56
|
+
function f() {
|
|
57
|
+
s.activate({
|
|
58
|
+
prompt: "Create a modern homepage template with a hero banner and featured items section",
|
|
59
|
+
command: "updateBrandAppTemplate",
|
|
60
|
+
context: { templateId: "53320b97-80c0-44c0-b4c4-1225165728b0" }
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return (a, t) => (i(), p("div", T, [
|
|
55
64
|
e("section", R, [
|
|
56
65
|
e("div", D, [
|
|
57
66
|
e("img", {
|
|
58
|
-
src:
|
|
67
|
+
src: k(x),
|
|
59
68
|
alt: "Remy",
|
|
60
69
|
class: "home__avatar"
|
|
61
|
-
}, null, 8,
|
|
70
|
+
}, null, 8, w),
|
|
62
71
|
t[0] || (t[0] = e("div", null, [
|
|
63
72
|
e("p", { class: "home__name" }, "Remy AI"),
|
|
64
73
|
e("p", { class: "home__badge" }, "Beta")
|
|
@@ -72,9 +81,9 @@ const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
72
81
|
g(" in chat to access commands.")
|
|
73
82
|
], -1))
|
|
74
83
|
]),
|
|
75
|
-
t[
|
|
76
|
-
e("section",
|
|
77
|
-
t[
|
|
84
|
+
t[13] || (t[13] = C('<section class="home__card" data-v-04e05c18><h2 class="home__section-title" data-v-04e05c18>Getting Started</h2><ol class="home__list" data-v-04e05c18><li data-v-04e05c18>Click the <strong data-v-04e05c18>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-04e05c18> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-04e05c18>full-screen</strong>. </li><li data-v-04e05c18> Use <strong data-v-04e05c18>/suggestPrice</strong>, <strong data-v-04e05c18>/suggestDescription</strong>, <strong data-v-04e05c18>/modifyImage</strong>, <strong data-v-04e05c18>/askReport</strong>, or <strong data-v-04e05c18>/updateBrandAppTemplate</strong>. </li><li data-v-04e05c18>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
|
|
85
|
+
e("section", I, [
|
|
86
|
+
t[12] || (t[12] = e("div", { class: "home__section-head" }, [
|
|
78
87
|
e("h2", { class: "home__section-title" }, "Try Examples"),
|
|
79
88
|
e("p", null, "Start with one of these quick actions:")
|
|
80
89
|
], -1)),
|
|
@@ -100,7 +109,7 @@ const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
100
109
|
e("button", {
|
|
101
110
|
class: "home__example",
|
|
102
111
|
type: "button",
|
|
103
|
-
onClick:
|
|
112
|
+
onClick: A
|
|
104
113
|
}, [...t[6] || (t[6] = [
|
|
105
114
|
e("span", { class: "home__example-icon" }, "/modifyImage", -1),
|
|
106
115
|
e("h3", null, "Modify Image", -1),
|
|
@@ -109,34 +118,43 @@ const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
109
118
|
e("button", {
|
|
110
119
|
class: "home__example",
|
|
111
120
|
type: "button",
|
|
112
|
-
onClick:
|
|
121
|
+
onClick: b
|
|
113
122
|
}, [...t[7] || (t[7] = [
|
|
114
123
|
e("span", { class: "home__example-icon" }, "/askReport", -1),
|
|
115
124
|
e("h3", null, "Ask Report", -1),
|
|
116
125
|
e("p", null, "Ask questions about your sales, revenue, and business analytics.", -1)
|
|
126
|
+
])]),
|
|
127
|
+
e("button", {
|
|
128
|
+
class: "home__example",
|
|
129
|
+
type: "button",
|
|
130
|
+
onClick: f
|
|
131
|
+
}, [...t[8] || (t[8] = [
|
|
132
|
+
e("span", { class: "home__example-icon" }, "/updateBrandAppTemplate", -1),
|
|
133
|
+
e("h3", null, "Update Template", -1),
|
|
134
|
+
e("p", null, "Create or modify a brand app page template with AI assistance.", -1)
|
|
117
135
|
])])
|
|
118
136
|
]),
|
|
119
|
-
|
|
120
|
-
t[
|
|
121
|
-
e("p",
|
|
137
|
+
u.value !== null ? (i(), p("div", N, [
|
|
138
|
+
t[9] || (t[9] = e("p", { class: "home__autofill-label" }, "Applied price event received", -1)),
|
|
139
|
+
e("p", H, "RM " + m(u.value.toFixed(2)), 1)
|
|
122
140
|
])) : r("", !0),
|
|
123
|
-
|
|
124
|
-
t[
|
|
125
|
-
e("p", Q,
|
|
141
|
+
d.value ? (i(), p("div", S, [
|
|
142
|
+
t[10] || (t[10] = e("p", { class: "home__autofill-label" }, "Applied description event received", -1)),
|
|
143
|
+
e("p", Q, m(d.value), 1)
|
|
126
144
|
])) : r("", !0),
|
|
127
|
-
|
|
128
|
-
t[
|
|
129
|
-
e("p",
|
|
145
|
+
_.value ? (i(), p("div", M, [
|
|
146
|
+
t[11] || (t[11] = e("p", { class: "home__autofill-label" }, "Applied image event received", -1)),
|
|
147
|
+
e("p", O, m(_.value), 1)
|
|
130
148
|
])) : r("", !0),
|
|
131
|
-
o.value ? (
|
|
132
|
-
e("p",
|
|
133
|
-
e("pre",
|
|
149
|
+
o.value ? (i(), p("div", V, [
|
|
150
|
+
e("p", P, "Last Apply Event: " + m(o.value), 1),
|
|
151
|
+
e("pre", j, m(JSON.stringify(l.value, null, 2)), 1)
|
|
134
152
|
])) : r("", !0)
|
|
135
153
|
])
|
|
136
154
|
]));
|
|
137
155
|
}
|
|
138
156
|
});
|
|
139
|
-
const z = /* @__PURE__ */
|
|
157
|
+
const z = /* @__PURE__ */ B(F, [["__scopeId", "data-v-04e05c18"]]);
|
|
140
158
|
export {
|
|
141
159
|
z as default
|
|
142
160
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, computed as o, openBlock as i, createElementBlock as l, normalizeClass as t, createElementVNode as p, unref as u, createCommentVNode as d } from "vue";
|
|
2
|
-
import { u as y, R as _ } from "./app-
|
|
2
|
+
import { u as y, R as _ } from "./app-2da8a9b2.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|