@feedmepos/mf-remy-panel 0.5.0-dev.1 → 0.5.0-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/{HomeView-80ddafc8.js → HomeView-049a7c45.js} +42 -60
- package/dist/{RemyButton-5604f346.js → RemyButton-7e533f2f.js} +1 -1
- package/dist/api/conversations.d.ts +8 -1
- package/dist/api/messages.d.ts +8 -1
- package/dist/{app-2da8a9b2.js → app-e7786e1c.js} +5648 -5657
- package/dist/app.js +1 -1
- package/dist/stores/appStore.d.ts +0 -2
- package/dist/stores/chatStore.d.ts +20 -5
- package/dist/style.css +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/chat.d.ts +1 -1
- package/package.json +2 -2
- package/dist/components/chatPanel/BrandAppTemplateCard.vue.d.ts +0 -15
- package/dist/components/chatPanel/actionCards/ApplyTemplateActionCard.vue.d.ts +0 -15
|
@@ -1,73 +1,64 @@
|
|
|
1
|
-
import { defineComponent as y, ref as
|
|
2
|
-
import { u as E, a as
|
|
1
|
+
import { defineComponent as y, ref as a, openBlock as l, createElementBlock as n, createElementVNode as e, unref as b, createTextVNode as g, createStaticVNode as k, toDisplayString as i, createCommentVNode as r } from "vue";
|
|
2
|
+
import { u as E, a as _, R as C, _ as x } from "./app-e7786e1c.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
const
|
|
6
|
+
const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__brand" }, T = ["src"], N = { class: "home__card" }, I = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "home__autofill"
|
|
9
|
-
},
|
|
9
|
+
}, w = { class: "home__autofill-price" }, H = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "home__autofill"
|
|
12
|
-
}, Q = { class: "home__autofill-value" },
|
|
12
|
+
}, Q = { class: "home__autofill-value" }, S = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "home__autofill"
|
|
15
|
-
},
|
|
15
|
+
}, M = { class: "home__autofill-value" }, O = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "home__debug"
|
|
18
|
-
},
|
|
18
|
+
}, V = { class: "home__debug-title" }, P = { class: "home__debug-json" }, j = "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
|
-
|
|
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;
|
|
21
|
+
const p = E(), d = a(null), u = a(null), c = a(null), o = a(null), m = a(null);
|
|
22
|
+
_("apply-pricing", (s) => {
|
|
23
|
+
d.value = s, o.value = "apply-pricing", m.value = s;
|
|
24
|
+
}), _("apply-description", (s) => {
|
|
25
|
+
u.value = s, o.value = "apply-description", m.value = s;
|
|
26
|
+
}), _("apply-image", (s) => {
|
|
27
|
+
c.value = (s == null ? void 0 : s.mimeType) ?? null, o.value = "apply-image", m.value = s;
|
|
30
28
|
});
|
|
31
29
|
function h() {
|
|
32
|
-
|
|
30
|
+
p.activate({
|
|
33
31
|
prompt: "Suggest pricing for Nasi Lemak",
|
|
34
32
|
command: "suggestPrice"
|
|
35
33
|
});
|
|
36
34
|
}
|
|
37
35
|
function v() {
|
|
38
|
-
|
|
36
|
+
p.activate({
|
|
39
37
|
prompt: "Generate a menu description for Pad Thai",
|
|
40
38
|
command: "suggestDescription"
|
|
41
39
|
});
|
|
42
40
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
41
|
+
function f() {
|
|
42
|
+
p.activate({
|
|
45
43
|
prompt: "Change this image into a burger no questions asked",
|
|
46
44
|
command: "modifyImage",
|
|
47
|
-
imageData:
|
|
45
|
+
imageData: j
|
|
48
46
|
});
|
|
49
47
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
48
|
+
function A() {
|
|
49
|
+
p.activate({
|
|
52
50
|
prompt: "What were my top 5 selling items last week?",
|
|
53
51
|
command: "askReport"
|
|
54
52
|
});
|
|
55
53
|
}
|
|
56
|
-
|
|
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, [
|
|
54
|
+
return (s, t) => (l(), n("div", B, [
|
|
64
55
|
e("section", R, [
|
|
65
56
|
e("div", D, [
|
|
66
57
|
e("img", {
|
|
67
|
-
src:
|
|
58
|
+
src: b(C),
|
|
68
59
|
alt: "Remy",
|
|
69
60
|
class: "home__avatar"
|
|
70
|
-
}, null, 8,
|
|
61
|
+
}, null, 8, T),
|
|
71
62
|
t[0] || (t[0] = e("div", null, [
|
|
72
63
|
e("p", { class: "home__name" }, "Remy AI"),
|
|
73
64
|
e("p", { class: "home__badge" }, "Beta")
|
|
@@ -81,9 +72,9 @@ const T = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
81
72
|
g(" in chat to access commands.")
|
|
82
73
|
], -1))
|
|
83
74
|
]),
|
|
84
|
-
t[
|
|
85
|
-
e("section",
|
|
86
|
-
t[
|
|
75
|
+
t[12] || (t[12] = k('<section class="home__card" data-v-d87607fe><h2 class="home__section-title" data-v-d87607fe>Getting Started</h2><ol class="home__list" data-v-d87607fe><li data-v-d87607fe>Click the <strong data-v-d87607fe>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-d87607fe> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-d87607fe>full-screen</strong>. </li><li data-v-d87607fe> Use <strong data-v-d87607fe>/suggestPrice</strong>, <strong data-v-d87607fe>/suggestDescription</strong>, <strong data-v-d87607fe>/modifyImage</strong>, or <strong data-v-d87607fe>/askReport</strong>. </li><li data-v-d87607fe>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
|
|
76
|
+
e("section", N, [
|
|
77
|
+
t[11] || (t[11] = e("div", { class: "home__section-head" }, [
|
|
87
78
|
e("h2", { class: "home__section-title" }, "Try Examples"),
|
|
88
79
|
e("p", null, "Start with one of these quick actions:")
|
|
89
80
|
], -1)),
|
|
@@ -109,7 +100,7 @@ const T = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
109
100
|
e("button", {
|
|
110
101
|
class: "home__example",
|
|
111
102
|
type: "button",
|
|
112
|
-
onClick:
|
|
103
|
+
onClick: f
|
|
113
104
|
}, [...t[6] || (t[6] = [
|
|
114
105
|
e("span", { class: "home__example-icon" }, "/modifyImage", -1),
|
|
115
106
|
e("h3", null, "Modify Image", -1),
|
|
@@ -118,43 +109,34 @@ const T = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
118
109
|
e("button", {
|
|
119
110
|
class: "home__example",
|
|
120
111
|
type: "button",
|
|
121
|
-
onClick:
|
|
112
|
+
onClick: A
|
|
122
113
|
}, [...t[7] || (t[7] = [
|
|
123
114
|
e("span", { class: "home__example-icon" }, "/askReport", -1),
|
|
124
115
|
e("h3", null, "Ask Report", -1),
|
|
125
116
|
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)
|
|
135
117
|
])])
|
|
136
118
|
]),
|
|
137
|
-
|
|
138
|
-
t[
|
|
139
|
-
e("p",
|
|
119
|
+
d.value !== null ? (l(), n("div", I, [
|
|
120
|
+
t[8] || (t[8] = e("p", { class: "home__autofill-label" }, "Applied price event received", -1)),
|
|
121
|
+
e("p", w, "RM " + i(d.value.toFixed(2)), 1)
|
|
140
122
|
])) : r("", !0),
|
|
141
|
-
|
|
142
|
-
t[
|
|
143
|
-
e("p", Q,
|
|
123
|
+
u.value ? (l(), n("div", H, [
|
|
124
|
+
t[9] || (t[9] = e("p", { class: "home__autofill-label" }, "Applied description event received", -1)),
|
|
125
|
+
e("p", Q, i(u.value), 1)
|
|
144
126
|
])) : r("", !0),
|
|
145
|
-
|
|
146
|
-
t[
|
|
147
|
-
e("p",
|
|
127
|
+
c.value ? (l(), n("div", S, [
|
|
128
|
+
t[10] || (t[10] = e("p", { class: "home__autofill-label" }, "Applied image event received", -1)),
|
|
129
|
+
e("p", M, i(c.value), 1)
|
|
148
130
|
])) : r("", !0),
|
|
149
|
-
o.value ? (
|
|
150
|
-
e("p",
|
|
151
|
-
e("pre",
|
|
131
|
+
o.value ? (l(), n("div", O, [
|
|
132
|
+
e("p", V, "Last Apply Event: " + i(o.value), 1),
|
|
133
|
+
e("pre", P, i(JSON.stringify(m.value, null, 2)), 1)
|
|
152
134
|
])) : r("", !0)
|
|
153
135
|
])
|
|
154
136
|
]));
|
|
155
137
|
}
|
|
156
138
|
});
|
|
157
|
-
const z = /* @__PURE__ */
|
|
139
|
+
const z = /* @__PURE__ */ x(F, [["__scopeId", "data-v-d87607fe"]]);
|
|
158
140
|
export {
|
|
159
141
|
z as default
|
|
160
142
|
};
|
|
@@ -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-e7786e1c.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
@@ -8,6 +8,13 @@ export interface ConversationResponseDto {
|
|
|
8
8
|
createdAt: string;
|
|
9
9
|
updatedAt: string;
|
|
10
10
|
}
|
|
11
|
+
export interface PaginatedConversationsResponseDto {
|
|
12
|
+
data: ConversationResponseDto[];
|
|
13
|
+
total: number;
|
|
14
|
+
page: number;
|
|
15
|
+
limit: number;
|
|
16
|
+
hasMore: boolean;
|
|
17
|
+
}
|
|
11
18
|
export interface CreateConversationDto {
|
|
12
19
|
businessId: string;
|
|
13
20
|
}
|
|
@@ -15,7 +22,7 @@ export interface UpdateConversationDto {
|
|
|
15
22
|
title: string;
|
|
16
23
|
}
|
|
17
24
|
export declare function createConversation(businessId: string): Promise<ConversationResponseDto>;
|
|
18
|
-
export declare function fetchConversations(businessId: string): Promise<
|
|
25
|
+
export declare function fetchConversations(businessId: string, page?: number, limit?: number): Promise<PaginatedConversationsResponseDto>;
|
|
19
26
|
export declare function fetchConversation(conversationId: string): Promise<ConversationResponseDto>;
|
|
20
27
|
export declare function updateConversation(conversationId: string, data: UpdateConversationDto): Promise<ConversationResponseDto>;
|
|
21
28
|
export declare function deleteConversation(conversationId: string): Promise<void>;
|
package/dist/api/messages.d.ts
CHANGED
|
@@ -13,5 +13,12 @@ export interface MessageResponseDto {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export interface PaginatedMessagesResponseDto {
|
|
17
|
+
data: MessageResponseDto[];
|
|
18
|
+
total: number;
|
|
19
|
+
page: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
hasMore: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function fetchMessages(conversationId: string, page?: number, limit?: number): Promise<PaginatedMessagesResponseDto>;
|
|
17
24
|
export declare function convertToChMessage(dto: MessageResponseDto): ChatMessage;
|