@feedmepos/mf-brand-app-builder 0.5.20-dev.2 → 0.5.20-prod.0
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-D_NPnwGw.js → App-BYIiIzgl.js} +7 -7
- package/dist/{AssetsSettings-DB3ZSX4R.js → AssetsSettings-DMEHi2uS.js} +18 -18
- package/dist/{BrandkitView-BwJ6165V.js → BrandkitView-BXo0FO6R.js} +2893 -3001
- package/dist/{BuilderView-ClihS2Kl.js → BuilderView-CnHk6Qkp.js} +2716 -2162
- package/dist/{ImageUpload-8n04negz.js → ImageUpload-CsSstgwO.js} +8 -8
- package/dist/{LinkButton-BZwfC-dz.js → LinkButton-EI8lIb33.js} +1 -1
- package/dist/{ListRepeater-Ckv1FcLA.js → ListRepeater-BIEp3DDy.js} +1 -1
- package/dist/{ManagementSettings-B4wHfdq8.js → ManagementSettings-B4vwsKt5.js} +6 -6
- package/dist/{ProjectView-CibQkkyX.js → ProjectView-lj60UJiJ.js} +36 -36
- package/dist/{app-Bc8YxeXK.js → app-ChDWaqYQ.js} +3879 -1659
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +29 -0
- package/dist/client/components/src/components/Member/MemberCards.vue.d.ts +1 -0
- package/dist/client/components/src/components/MemberCard.vue.d.ts +6 -0
- package/dist/client/components/src/components/OrderHistoryCard.vue.d.ts +6 -1
- package/dist/client/components/src/i18n.d.ts +4 -0
- package/dist/client/merchant/src/app.d.ts +2207 -0
- package/dist/client/merchant/src/components/modals/TemplateSelectionModal.vue.d.ts +18 -0
- package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +14 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +10 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +14 -0
- package/dist/client/merchant/src/composables/useNode/index.d.ts +1 -0
- package/dist/client/merchant/src/config/defaultTemplateConfig.d.ts +18 -0
- package/dist/client/merchant/src/node-configs/member-card/mock-data.d.ts +1 -0
- package/dist/client/merchant/src/node-configs/member-card/props.d.ts +1 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +162 -0
- package/dist/{image-Dc0YO_lp.js → image-Bnqhv2q1.js} +7 -7
- package/dist/{index-VruJQbMQ.js → index-1uBwP1Z9.js} +19 -19
- package/dist/{index-DO9dYU7p.js → index-B4ng69tO.js} +1 -1
- package/dist/{index-B9AmzX3X.js → index-DO2AwhyJ.js} +216 -216
- package/dist/{index-Ba6vae-6.js → index-j6IFIh2x.js} +15 -15
- package/dist/{main-DBrQC_KK.js → main-GG3sMSoX.js} +6656 -4135
- package/dist/package.json +4 -2
- package/dist/style.css +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TemplateTypeOption {
|
|
2
|
+
type: 'default' | 'blank';
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
previewImage?: string;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
show: boolean;
|
|
9
|
+
templateOptions: TemplateTypeOption[];
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
close: () => any;
|
|
13
|
+
select: (templateType: "default" | "blank") => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
onSelect?: ((templateType: "default" | "blank") => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
warning?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
switchLabel?: string;
|
|
3
|
+
template: any;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
update: (template: any) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onUpdate?: ((template: any) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface OrderTemplate {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
interface Props {
|
|
5
|
+
template: OrderTemplate | null;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
error: (error: string) => any;
|
|
9
|
+
update: (template: OrderTemplate) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
+
onError?: ((error: string) => any) | undefined;
|
|
12
|
+
onUpdate?: ((template: OrderTemplate) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type INodeComponent } from '../composables/useNode';
|
|
2
|
+
/**
|
|
3
|
+
* Default template configuration extracted from DefaultTemplate.vue
|
|
4
|
+
* This provides a starting point for new templates with pre-built components
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultTemplateConfig: INodeComponent[];
|
|
7
|
+
/**
|
|
8
|
+
* Default member template configuration extracted from DefaultMemberTemplate.vue
|
|
9
|
+
* This provides member-specific components for member templates
|
|
10
|
+
*/
|
|
11
|
+
export declare const defaultMemberTemplateConfig: INodeComponent[];
|
|
12
|
+
/**
|
|
13
|
+
* Creates a default homepage node with pre-configured components
|
|
14
|
+
* @param nodeManager - Node manager instance to create nodes
|
|
15
|
+
* @param isMemberTemplate - Whether this is a member template
|
|
16
|
+
* @returns Configured homepage node
|
|
17
|
+
*/
|
|
18
|
+
export declare function createDefaultTemplate(nodeManager: any, isMemberTemplate?: boolean): INodeComponent;
|
|
@@ -37,6 +37,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
37
37
|
heading?: string | undefined;
|
|
38
38
|
body?: string | undefined;
|
|
39
39
|
};
|
|
40
|
+
fontFamilies: {
|
|
41
|
+
stylesheet: string;
|
|
42
|
+
}[];
|
|
43
|
+
ordering?: {
|
|
44
|
+
app: {
|
|
45
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
46
|
+
items: "LIST" | "GRID";
|
|
47
|
+
singleCategory: boolean;
|
|
48
|
+
};
|
|
49
|
+
kiosk: {
|
|
50
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
51
|
+
};
|
|
52
|
+
} | undefined;
|
|
53
|
+
layout?: {
|
|
54
|
+
app?: {
|
|
55
|
+
template?: {
|
|
56
|
+
mainView?: Record<string, unknown> | undefined;
|
|
57
|
+
cartView?: Record<string, unknown> | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
kiosk?: {
|
|
61
|
+
template?: {
|
|
62
|
+
mainView?: Record<string, unknown> | undefined;
|
|
63
|
+
cartView?: Record<string, unknown> | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
} | undefined;
|
|
40
67
|
} | null;
|
|
41
68
|
}, IState | {
|
|
42
69
|
multiCountrySlug: {
|
|
@@ -75,6 +102,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
75
102
|
heading?: string | undefined;
|
|
76
103
|
body?: string | undefined;
|
|
77
104
|
};
|
|
105
|
+
fontFamilies: {
|
|
106
|
+
stylesheet: string;
|
|
107
|
+
}[];
|
|
108
|
+
ordering?: {
|
|
109
|
+
app: {
|
|
110
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
111
|
+
items: "LIST" | "GRID";
|
|
112
|
+
singleCategory: boolean;
|
|
113
|
+
};
|
|
114
|
+
kiosk: {
|
|
115
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
116
|
+
};
|
|
117
|
+
} | undefined;
|
|
118
|
+
layout?: {
|
|
119
|
+
app?: {
|
|
120
|
+
template?: {
|
|
121
|
+
mainView?: Record<string, unknown> | undefined;
|
|
122
|
+
cartView?: Record<string, unknown> | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
kiosk?: {
|
|
126
|
+
template?: {
|
|
127
|
+
mainView?: Record<string, unknown> | undefined;
|
|
128
|
+
cartView?: Record<string, unknown> | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
} | undefined;
|
|
78
132
|
} | null;
|
|
79
133
|
}>;
|
|
80
134
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
@@ -118,6 +172,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
118
172
|
heading?: string | undefined;
|
|
119
173
|
body?: string | undefined;
|
|
120
174
|
};
|
|
175
|
+
fontFamilies: {
|
|
176
|
+
stylesheet: string;
|
|
177
|
+
}[];
|
|
178
|
+
ordering?: {
|
|
179
|
+
app: {
|
|
180
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
181
|
+
items: "LIST" | "GRID";
|
|
182
|
+
singleCategory: boolean;
|
|
183
|
+
};
|
|
184
|
+
kiosk: {
|
|
185
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
186
|
+
};
|
|
187
|
+
} | undefined;
|
|
188
|
+
layout?: {
|
|
189
|
+
app?: {
|
|
190
|
+
template?: {
|
|
191
|
+
mainView?: Record<string, unknown> | undefined;
|
|
192
|
+
cartView?: Record<string, unknown> | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
kiosk?: {
|
|
196
|
+
template?: {
|
|
197
|
+
mainView?: Record<string, unknown> | undefined;
|
|
198
|
+
cartView?: Record<string, unknown> | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
} | undefined;
|
|
121
202
|
} | null;
|
|
122
203
|
}, IState | {
|
|
123
204
|
multiCountrySlug: {
|
|
@@ -156,6 +237,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
156
237
|
heading?: string | undefined;
|
|
157
238
|
body?: string | undefined;
|
|
158
239
|
};
|
|
240
|
+
fontFamilies: {
|
|
241
|
+
stylesheet: string;
|
|
242
|
+
}[];
|
|
243
|
+
ordering?: {
|
|
244
|
+
app: {
|
|
245
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
246
|
+
items: "LIST" | "GRID";
|
|
247
|
+
singleCategory: boolean;
|
|
248
|
+
};
|
|
249
|
+
kiosk: {
|
|
250
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
251
|
+
};
|
|
252
|
+
} | undefined;
|
|
253
|
+
layout?: {
|
|
254
|
+
app?: {
|
|
255
|
+
template?: {
|
|
256
|
+
mainView?: Record<string, unknown> | undefined;
|
|
257
|
+
cartView?: Record<string, unknown> | undefined;
|
|
258
|
+
} | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
kiosk?: {
|
|
261
|
+
template?: {
|
|
262
|
+
mainView?: Record<string, unknown> | undefined;
|
|
263
|
+
cartView?: Record<string, unknown> | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
} | undefined;
|
|
159
267
|
} | null;
|
|
160
268
|
}>;
|
|
161
269
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
@@ -199,6 +307,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
199
307
|
heading?: string | undefined;
|
|
200
308
|
body?: string | undefined;
|
|
201
309
|
};
|
|
310
|
+
fontFamilies: {
|
|
311
|
+
stylesheet: string;
|
|
312
|
+
}[];
|
|
313
|
+
ordering?: {
|
|
314
|
+
app: {
|
|
315
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
316
|
+
items: "LIST" | "GRID";
|
|
317
|
+
singleCategory: boolean;
|
|
318
|
+
};
|
|
319
|
+
kiosk: {
|
|
320
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
321
|
+
};
|
|
322
|
+
} | undefined;
|
|
323
|
+
layout?: {
|
|
324
|
+
app?: {
|
|
325
|
+
template?: {
|
|
326
|
+
mainView?: Record<string, unknown> | undefined;
|
|
327
|
+
cartView?: Record<string, unknown> | undefined;
|
|
328
|
+
} | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
kiosk?: {
|
|
331
|
+
template?: {
|
|
332
|
+
mainView?: Record<string, unknown> | undefined;
|
|
333
|
+
cartView?: Record<string, unknown> | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
} | undefined;
|
|
336
|
+
} | undefined;
|
|
202
337
|
} | null;
|
|
203
338
|
}, IState | {
|
|
204
339
|
multiCountrySlug: {
|
|
@@ -237,6 +372,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
237
372
|
heading?: string | undefined;
|
|
238
373
|
body?: string | undefined;
|
|
239
374
|
};
|
|
375
|
+
fontFamilies: {
|
|
376
|
+
stylesheet: string;
|
|
377
|
+
}[];
|
|
378
|
+
ordering?: {
|
|
379
|
+
app: {
|
|
380
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
381
|
+
items: "LIST" | "GRID";
|
|
382
|
+
singleCategory: boolean;
|
|
383
|
+
};
|
|
384
|
+
kiosk: {
|
|
385
|
+
category: "HORIZONTAL" | "VERTICAL";
|
|
386
|
+
};
|
|
387
|
+
} | undefined;
|
|
388
|
+
layout?: {
|
|
389
|
+
app?: {
|
|
390
|
+
template?: {
|
|
391
|
+
mainView?: Record<string, unknown> | undefined;
|
|
392
|
+
cartView?: Record<string, unknown> | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
kiosk?: {
|
|
396
|
+
template?: {
|
|
397
|
+
mainView?: Record<string, unknown> | undefined;
|
|
398
|
+
cartView?: Record<string, unknown> | undefined;
|
|
399
|
+
} | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
} | undefined;
|
|
240
402
|
} | null;
|
|
241
403
|
}>;
|
|
242
404
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as r, b as p } from "./index-
|
|
1
|
+
import { H as r, b as p } from "./index-DO2AwhyJ.js";
|
|
2
2
|
const i = () => p().PWA_ICON_SERVICE_BACKEND;
|
|
3
|
-
async function
|
|
3
|
+
async function s(e, t, a) {
|
|
4
4
|
const n = new FormData();
|
|
5
5
|
return n.append("file", a), (await r.Put(
|
|
6
|
-
"https://api.
|
|
6
|
+
"https://api.feedme.vip",
|
|
7
7
|
`/image/${e}/${t}`,
|
|
8
8
|
{
|
|
9
9
|
headers: {
|
|
@@ -13,9 +13,9 @@ async function d(e, t, a) {
|
|
|
13
13
|
}
|
|
14
14
|
)).data;
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
16
|
+
async function d(e, t) {
|
|
17
17
|
return (await r.Delete(
|
|
18
|
-
"https://api.
|
|
18
|
+
"https://api.feedme.vip",
|
|
19
19
|
`/image/${e}/${t}`
|
|
20
20
|
)).data;
|
|
21
21
|
}
|
|
@@ -29,8 +29,8 @@ async function o(e, t) {
|
|
|
29
29
|
})).data;
|
|
30
30
|
}
|
|
31
31
|
const f = {
|
|
32
|
-
uploadImage:
|
|
33
|
-
deleteImage:
|
|
32
|
+
uploadImage: s,
|
|
33
|
+
deleteImage: d,
|
|
34
34
|
uploadAppIcon: o
|
|
35
35
|
};
|
|
36
36
|
function u(e) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { H as e, b as r } from "./index-
|
|
2
|
-
const o = () => r().PORTAL_V2_BACKEND,
|
|
3
|
-
async function
|
|
1
|
+
import { H as e, b as r } from "./index-DO2AwhyJ.js";
|
|
2
|
+
const o = () => r().PORTAL_V2_BACKEND, c = () => r().LICENSE_BACKEND;
|
|
3
|
+
async function u(t) {
|
|
4
4
|
return (await e.Get(
|
|
5
|
-
"https://api.
|
|
5
|
+
"https://api.feedme.vip",
|
|
6
6
|
`/short-url/${t}`
|
|
7
7
|
)).data;
|
|
8
8
|
}
|
|
9
|
-
async function
|
|
9
|
+
async function p(t, a, n) {
|
|
10
10
|
return await e.Post(
|
|
11
|
-
"https://api.
|
|
11
|
+
"https://api.feedme.vip",
|
|
12
12
|
"/short-url",
|
|
13
13
|
{
|
|
14
14
|
data: {
|
|
@@ -23,15 +23,15 @@ async function u(t, a, n) {
|
|
|
23
23
|
throw (i = s.response) == null ? void 0 : i.data;
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
26
|
+
async function d(t) {
|
|
27
27
|
return (await e.Get(
|
|
28
|
-
"https://api.
|
|
28
|
+
"https://api.feedme.vip",
|
|
29
29
|
`/metadata/${t}/config`
|
|
30
30
|
)).data;
|
|
31
31
|
}
|
|
32
32
|
async function f(t, a, n) {
|
|
33
33
|
return (await e.Post(
|
|
34
|
-
"https://api.
|
|
34
|
+
"https://api.feedme.vip",
|
|
35
35
|
`/metadata/${t}/config`,
|
|
36
36
|
{
|
|
37
37
|
data: {
|
|
@@ -44,13 +44,13 @@ async function f(t, a, n) {
|
|
|
44
44
|
}
|
|
45
45
|
async function m(t) {
|
|
46
46
|
return (await e.Get(
|
|
47
|
-
"https://api.
|
|
47
|
+
"https://api.feedme.vip",
|
|
48
48
|
`/metadata/${t}/brandkit`
|
|
49
49
|
)).data;
|
|
50
50
|
}
|
|
51
51
|
async function h(t, a) {
|
|
52
52
|
return (await e.Post(
|
|
53
|
-
"https://api.
|
|
53
|
+
"https://api.feedme.vip",
|
|
54
54
|
`/metadata/${t}/brandkit`,
|
|
55
55
|
{
|
|
56
56
|
data: a
|
|
@@ -69,22 +69,22 @@ async function B(t, a) {
|
|
|
69
69
|
throw (i = s.response) == null ? void 0 : i.data;
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
async function
|
|
72
|
+
async function g(t) {
|
|
73
73
|
return await e.Get(
|
|
74
|
-
|
|
74
|
+
c(),
|
|
75
75
|
`api/business/${t}/feature/miniprogram`
|
|
76
76
|
).then((a) => a.data).catch(() => !1);
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
getGlobalSlug:
|
|
80
|
-
setShortUrl:
|
|
81
|
-
getBusinessMetadata:
|
|
78
|
+
const w = {
|
|
79
|
+
getGlobalSlug: u,
|
|
80
|
+
setShortUrl: p,
|
|
81
|
+
getBusinessMetadata: d,
|
|
82
82
|
setBusinessMetadata: f,
|
|
83
83
|
getBusinessBrandkit: m,
|
|
84
84
|
setBusinessBrandkit: h,
|
|
85
85
|
updateBusinessProfile: B,
|
|
86
|
-
getBusinessPremiumStatus:
|
|
86
|
+
getBusinessPremiumStatus: g
|
|
87
87
|
};
|
|
88
88
|
export {
|
|
89
|
-
|
|
89
|
+
w as B
|
|
90
90
|
};
|