@feedmepos/mf-brand-app-builder 0.5.20-dev.3 → 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-DNayQ0r1.js → App-BYIiIzgl.js} +7 -7
- package/dist/{AssetsSettings-Cgp-Awzc.js → AssetsSettings-DMEHi2uS.js} +18 -18
- package/dist/{BrandkitView-BCggsZJY.js → BrandkitView-BXo0FO6R.js} +2600 -1983
- package/dist/{BuilderView-BhuHqSEj.js → BuilderView-CnHk6Qkp.js} +2716 -2162
- package/dist/{ImageUpload-CEVZ2Smd.js → ImageUpload-CsSstgwO.js} +8 -8
- package/dist/{LinkButton-DRpeZMhV.js → LinkButton-EI8lIb33.js} +1 -1
- package/dist/{ListRepeater-BNEN5FMB.js → ListRepeater-BIEp3DDy.js} +1 -1
- package/dist/{ManagementSettings-lMIl05UD.js → ManagementSettings-B4vwsKt5.js} +6 -6
- package/dist/{ProjectView-Cdm7gqIj.js → ProjectView-lj60UJiJ.js} +36 -36
- package/dist/{app-DLQ8KWDz.js → app-ChDWaqYQ.js} +3316 -1239
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +20 -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 +2068 -4
- 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 +108 -0
- package/dist/{image-PTt3u2NG.js → image-Bnqhv2q1.js} +7 -7
- package/dist/{index-ChqP94MN.js → index-1uBwP1Z9.js} +19 -19
- package/dist/{index-eP_AjEnI.js → index-B4ng69tO.js} +1 -1
- package/dist/{index-CNJn9sP5.js → index-DO2AwhyJ.js} +216 -216
- package/dist/{index-3aVTK-0n.js → index-j6IFIh2x.js} +15 -15
- package/dist/{main-D_oG0ihX.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,15 +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
|
+
}[];
|
|
40
43
|
ordering?: {
|
|
41
44
|
app: {
|
|
42
45
|
category: "HORIZONTAL" | "VERTICAL";
|
|
43
46
|
items: "LIST" | "GRID";
|
|
47
|
+
singleCategory: boolean;
|
|
44
48
|
};
|
|
45
49
|
kiosk: {
|
|
46
50
|
category: "HORIZONTAL" | "VERTICAL";
|
|
47
51
|
};
|
|
48
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;
|
|
49
67
|
} | null;
|
|
50
68
|
}, IState | {
|
|
51
69
|
multiCountrySlug: {
|
|
@@ -84,15 +102,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
84
102
|
heading?: string | undefined;
|
|
85
103
|
body?: string | undefined;
|
|
86
104
|
};
|
|
105
|
+
fontFamilies: {
|
|
106
|
+
stylesheet: string;
|
|
107
|
+
}[];
|
|
87
108
|
ordering?: {
|
|
88
109
|
app: {
|
|
89
110
|
category: "HORIZONTAL" | "VERTICAL";
|
|
90
111
|
items: "LIST" | "GRID";
|
|
112
|
+
singleCategory: boolean;
|
|
91
113
|
};
|
|
92
114
|
kiosk: {
|
|
93
115
|
category: "HORIZONTAL" | "VERTICAL";
|
|
94
116
|
};
|
|
95
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;
|
|
96
132
|
} | null;
|
|
97
133
|
}>;
|
|
98
134
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
@@ -136,15 +172,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
136
172
|
heading?: string | undefined;
|
|
137
173
|
body?: string | undefined;
|
|
138
174
|
};
|
|
175
|
+
fontFamilies: {
|
|
176
|
+
stylesheet: string;
|
|
177
|
+
}[];
|
|
139
178
|
ordering?: {
|
|
140
179
|
app: {
|
|
141
180
|
category: "HORIZONTAL" | "VERTICAL";
|
|
142
181
|
items: "LIST" | "GRID";
|
|
182
|
+
singleCategory: boolean;
|
|
143
183
|
};
|
|
144
184
|
kiosk: {
|
|
145
185
|
category: "HORIZONTAL" | "VERTICAL";
|
|
146
186
|
};
|
|
147
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;
|
|
148
202
|
} | null;
|
|
149
203
|
}, IState | {
|
|
150
204
|
multiCountrySlug: {
|
|
@@ -183,15 +237,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
183
237
|
heading?: string | undefined;
|
|
184
238
|
body?: string | undefined;
|
|
185
239
|
};
|
|
240
|
+
fontFamilies: {
|
|
241
|
+
stylesheet: string;
|
|
242
|
+
}[];
|
|
186
243
|
ordering?: {
|
|
187
244
|
app: {
|
|
188
245
|
category: "HORIZONTAL" | "VERTICAL";
|
|
189
246
|
items: "LIST" | "GRID";
|
|
247
|
+
singleCategory: boolean;
|
|
190
248
|
};
|
|
191
249
|
kiosk: {
|
|
192
250
|
category: "HORIZONTAL" | "VERTICAL";
|
|
193
251
|
};
|
|
194
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;
|
|
195
267
|
} | null;
|
|
196
268
|
}>;
|
|
197
269
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
@@ -235,15 +307,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
235
307
|
heading?: string | undefined;
|
|
236
308
|
body?: string | undefined;
|
|
237
309
|
};
|
|
310
|
+
fontFamilies: {
|
|
311
|
+
stylesheet: string;
|
|
312
|
+
}[];
|
|
238
313
|
ordering?: {
|
|
239
314
|
app: {
|
|
240
315
|
category: "HORIZONTAL" | "VERTICAL";
|
|
241
316
|
items: "LIST" | "GRID";
|
|
317
|
+
singleCategory: boolean;
|
|
242
318
|
};
|
|
243
319
|
kiosk: {
|
|
244
320
|
category: "HORIZONTAL" | "VERTICAL";
|
|
245
321
|
};
|
|
246
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;
|
|
247
337
|
} | null;
|
|
248
338
|
}, IState | {
|
|
249
339
|
multiCountrySlug: {
|
|
@@ -282,15 +372,33 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
282
372
|
heading?: string | undefined;
|
|
283
373
|
body?: string | undefined;
|
|
284
374
|
};
|
|
375
|
+
fontFamilies: {
|
|
376
|
+
stylesheet: string;
|
|
377
|
+
}[];
|
|
285
378
|
ordering?: {
|
|
286
379
|
app: {
|
|
287
380
|
category: "HORIZONTAL" | "VERTICAL";
|
|
288
381
|
items: "LIST" | "GRID";
|
|
382
|
+
singleCategory: boolean;
|
|
289
383
|
};
|
|
290
384
|
kiosk: {
|
|
291
385
|
category: "HORIZONTAL" | "VERTICAL";
|
|
292
386
|
};
|
|
293
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;
|
|
294
402
|
} | null;
|
|
295
403
|
}>;
|
|
296
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
|
};
|