@feedmepos/mf-brand-app-builder 0.4.1-beta.0 → 0.4.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/app.js +5011 -4790
- package/dist/components/src/components/BranchList.vue.d.ts +3 -3
- package/dist/components/src/components/ButtonList.vue.d.ts +3 -3
- package/dist/components/src/components/CountrySwitcher.vue.d.ts +5 -7
- package/dist/components/src/components/Homepage.vue.d.ts +1 -1
- package/dist/components/src/components/ImageCarousel.vue.d.ts +3 -3
- package/dist/components/src/components/ImageDisplay.vue.d.ts +3 -3
- package/dist/components/src/components/MemberCard.vue.d.ts +8 -3
- package/dist/components/src/components/OrderHistoryCard.vue.d.ts +3 -3
- package/dist/components/src/components/OrderMethod.vue.d.ts +3 -3
- package/dist/components/src/components/TextDisplay.vue.d.ts +1 -1
- package/dist/components/src/components/atoms/Button.vue.d.ts +2 -2
- package/dist/components/src/components/atoms/CircularProgress.vue.d.ts +2 -2
- package/dist/components/src/components/atoms/Container.vue.d.ts +1 -1
- package/dist/components/src/components/atoms/Divider.vue.d.ts +1 -1
- package/dist/components/src/components/atoms/Icon.vue.d.ts +2 -2
- package/dist/components/src/components/atoms/LinkSlot.vue.d.ts +3 -3
- package/dist/components/src/components/atoms/OrderTypeChip.vue.d.ts +1 -1
- package/dist/components/src/views/OrderDetails.vue.d.ts +3 -3
- package/dist/merchant/src/App.vue.d.ts +1 -1
- package/dist/merchant/src/Entry.vue.d.ts +1 -1
- package/dist/merchant/src/api/business/index.d.ts +5 -0
- package/dist/merchant/src/api/image/index.d.ts +13 -0
- package/dist/merchant/src/api/template/index.d.ts +57 -5
- package/dist/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +3 -3
- package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
- package/dist/merchant/src/components/editor/Editor.vue.d.ts +1 -1
- package/dist/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
- package/dist/merchant/src/components/editor/{EditorToolbar.vue.d.ts → toolbar/EditorToolbar.vue.d.ts} +1 -1
- package/dist/merchant/src/components/editor/{PreviewQrCode.vue.d.ts → toolbar/PreviewQrCode.vue.d.ts} +1 -1
- package/dist/merchant/src/components/editor/{TemplatePicker.vue.d.ts → toolbar/TemplatePicker.vue.d.ts} +1 -1
- package/dist/merchant/src/components/editor/{TemplatePublishMenu.vue.d.ts → toolbar/TemplateShareMenu.vue.d.ts} +1 -1
- package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/ButtonGroup.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/ColorPicker.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/LinkButton.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/ListRepeater.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/Select.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/StepperField.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/Switch.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/TextField.vue.d.ts +1 -1
- package/dist/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
- package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
- package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +1 -1
- package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +1 -1
- package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +1 -1
- package/dist/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
- package/dist/merchant/src/node-configs/member-card/props.d.ts +1 -0
- package/dist/merchant/src/node-configs/props.d.ts +1 -2
- package/dist/merchant/src/node-configs/schema.d.ts +1 -2
- package/dist/merchant/src/stores/business/index.d.ts +11 -2
- package/dist/merchant/src/stores/editor/index.d.ts +2 -2
- package/dist/merchant/src/stores/template/index.d.ts +36 -9
- package/dist/package.json +4 -4
- package/package.json +4 -4
- package/dist/merchant/src/node-configs/country-switcher/props.d.ts +0 -22
- package/dist/merchant/src/node-configs/country-switcher/schema.d.ts +0 -2
|
@@ -8,5 +8,4 @@ import { MemberCard } from './member-card/props';
|
|
|
8
8
|
import { OrderMethod } from './order-method/props';
|
|
9
9
|
import { BranchList } from './branch-list/props';
|
|
10
10
|
import { OrderHistoryCard } from './order-history-card/props';
|
|
11
|
-
|
|
12
|
-
export { Homepage, TextDisplay, ButtonList, Container, ImageDisplay, ImageCarousel, MemberCard, OrderMethod, BranchList, OrderHistoryCard, CountrySwitcher };
|
|
11
|
+
export { Homepage, TextDisplay, ButtonList, Container, ImageDisplay, ImageCarousel, MemberCard, OrderMethod, BranchList, OrderHistoryCard, };
|
|
@@ -8,5 +8,4 @@ import { MemberCard } from './member-card/schema';
|
|
|
8
8
|
import { OrderMethod } from './order-method/schema';
|
|
9
9
|
import { BranchList } from './branch-list/schema';
|
|
10
10
|
import { OrderHistoryCard } from './order-history-card/schema';
|
|
11
|
-
|
|
12
|
-
export { Homepage, TextDisplay, ButtonList, Container, ImageDisplay, ImageCarousel, MemberCard, OrderMethod, BranchList, OrderHistoryCard, CountrySwitcher };
|
|
11
|
+
export { Homepage, TextDisplay, ButtonList, Container, ImageDisplay, ImageCarousel, MemberCard, OrderMethod, BranchList, OrderHistoryCard, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useBusinessStore: import("pinia").StoreDefinition<"business",
|
|
1
|
+
export declare const useBusinessStore: import("pinia").StoreDefinition<"business", Pick<{
|
|
2
2
|
state: import("vue").Ref<{
|
|
3
3
|
multiCountrySlug: {
|
|
4
4
|
[key: string]: string;
|
|
@@ -9,7 +9,7 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
9
9
|
} | null;
|
|
10
10
|
}>;
|
|
11
11
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
12
|
-
}, "state"
|
|
12
|
+
}, "state">, Pick<{
|
|
13
13
|
state: import("vue").Ref<{
|
|
14
14
|
multiCountrySlug: {
|
|
15
15
|
[key: string]: string;
|
|
@@ -33,6 +33,15 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
33
33
|
getGlobalSlug: (slug: string) => Promise<void>;
|
|
34
34
|
}, "getGlobalSlug">>;
|
|
35
35
|
interface IState {
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* ```
|
|
39
|
+
* {
|
|
40
|
+
* "MY": "business-id-1",
|
|
41
|
+
* "SG": "business-id-2"
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
36
45
|
multiCountrySlug: {
|
|
37
46
|
[key: string]: string;
|
|
38
47
|
} | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { INodeComponent } from '../../composables/useNode';
|
|
2
|
-
export declare const useEditorStore: import("pinia").StoreDefinition<"editor",
|
|
2
|
+
export declare const useEditorStore: import("pinia").StoreDefinition<"editor", Pick<{
|
|
3
3
|
state: import("vue").Ref<{
|
|
4
4
|
node: {
|
|
5
5
|
_id: string;
|
|
@@ -55,7 +55,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", i
|
|
|
55
55
|
removeNode: (node: INodeComponent) => void;
|
|
56
56
|
setCopiedNode: (node: INodeComponent) => void;
|
|
57
57
|
isSaved: () => boolean;
|
|
58
|
-
}, "state"
|
|
58
|
+
}, "state">, Pick<{
|
|
59
59
|
state: import("vue").Ref<{
|
|
60
60
|
node: {
|
|
61
61
|
_id: string;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { INodeComponent } from '../../composables/useNode';
|
|
2
|
-
export declare const useTemplateStore: import("pinia").StoreDefinition<"template",
|
|
2
|
+
export declare const useTemplateStore: import("pinia").StoreDefinition<"template", Pick<{
|
|
3
3
|
state: import("vue").Ref<{
|
|
4
4
|
allTemplates: {
|
|
5
5
|
templateAlias: string;
|
|
6
6
|
templateId: string;
|
|
7
7
|
created?: string | undefined;
|
|
8
|
+
isPublished: boolean;
|
|
8
9
|
}[];
|
|
9
10
|
selectedTemplate: {
|
|
10
11
|
templateAlias: string;
|
|
11
12
|
templateId: string;
|
|
12
13
|
created?: string | undefined;
|
|
14
|
+
isPublished: boolean;
|
|
13
15
|
} | null;
|
|
14
16
|
activeTemplateId: string;
|
|
15
17
|
}, ITemplateStore | {
|
|
@@ -17,34 +19,39 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
|
|
|
17
19
|
templateAlias: string;
|
|
18
20
|
templateId: string;
|
|
19
21
|
created?: string | undefined;
|
|
22
|
+
isPublished: boolean;
|
|
20
23
|
}[];
|
|
21
24
|
selectedTemplate: {
|
|
22
25
|
templateAlias: string;
|
|
23
26
|
templateId: string;
|
|
24
27
|
created?: string | undefined;
|
|
28
|
+
isPublished: boolean;
|
|
25
29
|
} | null;
|
|
26
30
|
activeTemplateId: string;
|
|
27
31
|
}>;
|
|
28
32
|
getAllTemplates: (businessId: string) => Promise<void>;
|
|
29
33
|
publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
30
|
-
|
|
34
|
+
getMainTemplateId: (businessId: string) => Promise<void>;
|
|
31
35
|
setSelectedTemplate: (template: ITemplateDetails) => void;
|
|
32
36
|
saveTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
33
|
-
|
|
37
|
+
setMainPageTemplate: (businessId: string) => Promise<void>;
|
|
34
38
|
addNewTemplate: () => void;
|
|
35
39
|
renameTemplate: (businessId: string, templateId: string, alias: string) => Promise<void>;
|
|
36
40
|
deleteTemplate: (businessId: string, templateId: string) => Promise<void>;
|
|
37
|
-
|
|
41
|
+
unpublishTemplate: (businessId: string) => Promise<void>;
|
|
42
|
+
}, "state">, Pick<{
|
|
38
43
|
state: import("vue").Ref<{
|
|
39
44
|
allTemplates: {
|
|
40
45
|
templateAlias: string;
|
|
41
46
|
templateId: string;
|
|
42
47
|
created?: string | undefined;
|
|
48
|
+
isPublished: boolean;
|
|
43
49
|
}[];
|
|
44
50
|
selectedTemplate: {
|
|
45
51
|
templateAlias: string;
|
|
46
52
|
templateId: string;
|
|
47
53
|
created?: string | undefined;
|
|
54
|
+
isPublished: boolean;
|
|
48
55
|
} | null;
|
|
49
56
|
activeTemplateId: string;
|
|
50
57
|
}, ITemplateStore | {
|
|
@@ -52,34 +59,39 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
|
|
|
52
59
|
templateAlias: string;
|
|
53
60
|
templateId: string;
|
|
54
61
|
created?: string | undefined;
|
|
62
|
+
isPublished: boolean;
|
|
55
63
|
}[];
|
|
56
64
|
selectedTemplate: {
|
|
57
65
|
templateAlias: string;
|
|
58
66
|
templateId: string;
|
|
59
67
|
created?: string | undefined;
|
|
68
|
+
isPublished: boolean;
|
|
60
69
|
} | null;
|
|
61
70
|
activeTemplateId: string;
|
|
62
71
|
}>;
|
|
63
72
|
getAllTemplates: (businessId: string) => Promise<void>;
|
|
64
73
|
publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
65
|
-
|
|
74
|
+
getMainTemplateId: (businessId: string) => Promise<void>;
|
|
66
75
|
setSelectedTemplate: (template: ITemplateDetails) => void;
|
|
67
76
|
saveTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
68
|
-
|
|
77
|
+
setMainPageTemplate: (businessId: string) => Promise<void>;
|
|
69
78
|
addNewTemplate: () => void;
|
|
70
79
|
renameTemplate: (businessId: string, templateId: string, alias: string) => Promise<void>;
|
|
71
80
|
deleteTemplate: (businessId: string, templateId: string) => Promise<void>;
|
|
81
|
+
unpublishTemplate: (businessId: string) => Promise<void>;
|
|
72
82
|
}, never>, Pick<{
|
|
73
83
|
state: import("vue").Ref<{
|
|
74
84
|
allTemplates: {
|
|
75
85
|
templateAlias: string;
|
|
76
86
|
templateId: string;
|
|
77
87
|
created?: string | undefined;
|
|
88
|
+
isPublished: boolean;
|
|
78
89
|
}[];
|
|
79
90
|
selectedTemplate: {
|
|
80
91
|
templateAlias: string;
|
|
81
92
|
templateId: string;
|
|
82
93
|
created?: string | undefined;
|
|
94
|
+
isPublished: boolean;
|
|
83
95
|
} | null;
|
|
84
96
|
activeTemplateId: string;
|
|
85
97
|
}, ITemplateStore | {
|
|
@@ -87,32 +99,47 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
|
|
|
87
99
|
templateAlias: string;
|
|
88
100
|
templateId: string;
|
|
89
101
|
created?: string | undefined;
|
|
102
|
+
isPublished: boolean;
|
|
90
103
|
}[];
|
|
91
104
|
selectedTemplate: {
|
|
92
105
|
templateAlias: string;
|
|
93
106
|
templateId: string;
|
|
94
107
|
created?: string | undefined;
|
|
108
|
+
isPublished: boolean;
|
|
95
109
|
} | null;
|
|
96
110
|
activeTemplateId: string;
|
|
97
111
|
}>;
|
|
98
112
|
getAllTemplates: (businessId: string) => Promise<void>;
|
|
99
113
|
publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
100
|
-
|
|
114
|
+
getMainTemplateId: (businessId: string) => Promise<void>;
|
|
101
115
|
setSelectedTemplate: (template: ITemplateDetails) => void;
|
|
102
116
|
saveTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
103
|
-
|
|
117
|
+
setMainPageTemplate: (businessId: string) => Promise<void>;
|
|
104
118
|
addNewTemplate: () => void;
|
|
105
119
|
renameTemplate: (businessId: string, templateId: string, alias: string) => Promise<void>;
|
|
106
120
|
deleteTemplate: (businessId: string, templateId: string) => Promise<void>;
|
|
107
|
-
|
|
121
|
+
unpublishTemplate: (businessId: string) => Promise<void>;
|
|
122
|
+
}, "getAllTemplates" | "publishTemplate" | "getMainTemplateId" | "setSelectedTemplate" | "saveTemplate" | "setMainPageTemplate" | "addNewTemplate" | "renameTemplate" | "deleteTemplate" | "unpublishTemplate">>;
|
|
108
123
|
interface ITemplateStore {
|
|
124
|
+
/** List of all templates under current business */
|
|
109
125
|
allTemplates: ITemplateDetails[];
|
|
126
|
+
/**
|
|
127
|
+
* Current selected template on the editor
|
|
128
|
+
*
|
|
129
|
+
* Changing values here will affect `allTemplates`
|
|
130
|
+
* */
|
|
110
131
|
selectedTemplate: ITemplateDetails | null;
|
|
132
|
+
/** Current business's mainpage */
|
|
111
133
|
activeTemplateId: string;
|
|
112
134
|
}
|
|
113
135
|
export interface ITemplateDetails {
|
|
136
|
+
/** User-defined template name */
|
|
114
137
|
templateAlias: string;
|
|
138
|
+
/** Random uuid generated by system */
|
|
115
139
|
templateId: string;
|
|
140
|
+
/** Created date in `ISO-8601` string, generated by system */
|
|
116
141
|
created?: string;
|
|
142
|
+
/** Whether template is published publicly */
|
|
143
|
+
isPublished: boolean;
|
|
117
144
|
}
|
|
118
145
|
export {};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-brand-app-builder",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"build:mf:prod": "vite build --mode fmmf:prod",
|
|
29
29
|
"build-only:dev": "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist",
|
|
30
30
|
"build-only:prod": "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist",
|
|
31
|
-
"deploy:npm:dev": "pnpm run build-only:dev && pnpm publish --no-git-checks .",
|
|
31
|
+
"deploy:npm:dev": "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks .",
|
|
32
32
|
"deploy:npm:prod": "pnpm run build-only:prod && pnpm publish --no-git-checks ."
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@feedmepos/mf-common": "1.
|
|
36
|
-
"@feedmepos/ui-library": "1.2.
|
|
35
|
+
"@feedmepos/mf-common": "^1.8.5",
|
|
36
|
+
"@feedmepos/ui-library": "^1.2.39",
|
|
37
37
|
"@formkit/core": "^1.6.5",
|
|
38
38
|
"@formkit/vue": "^1.6.5",
|
|
39
39
|
"axios": "^1.7.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-brand-app-builder",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"./style": "./dist/style.css"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@feedmepos/mf-common": "1.
|
|
18
|
-
"@feedmepos/ui-library": "1.2.
|
|
17
|
+
"@feedmepos/mf-common": "^1.8.5",
|
|
18
|
+
"@feedmepos/ui-library": "^1.2.39",
|
|
19
19
|
"@formkit/core": "^1.6.5",
|
|
20
20
|
"@formkit/vue": "^1.6.5",
|
|
21
21
|
"axios": "^1.7.2",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"build:mf:prod": "vite build --mode fmmf:prod",
|
|
67
67
|
"build-only:dev": "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist",
|
|
68
68
|
"build-only:prod": "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist",
|
|
69
|
-
"deploy:npm:dev": "pnpm run build-only:dev && pnpm publish --no-git-checks .",
|
|
69
|
+
"deploy:npm:dev": "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks .",
|
|
70
70
|
"deploy:npm:prod": "pnpm run build-only:prod && pnpm publish --no-git-checks ."
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const CountrySwitcher: {
|
|
2
|
-
textColor: string;
|
|
3
|
-
data: {
|
|
4
|
-
selectedCountry: string;
|
|
5
|
-
};
|
|
6
|
-
containerStyles: {
|
|
7
|
-
paddingTop: string;
|
|
8
|
-
paddingBottom: string;
|
|
9
|
-
paddingLeft: string;
|
|
10
|
-
paddingRight: string;
|
|
11
|
-
marginTop: string;
|
|
12
|
-
marginBottom: string;
|
|
13
|
-
marginLeft: string;
|
|
14
|
-
marginRight: string;
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
borderRadius: string;
|
|
17
|
-
borderWidth: string;
|
|
18
|
-
borderColor: string;
|
|
19
|
-
height: string;
|
|
20
|
-
boxShadow: string;
|
|
21
|
-
};
|
|
22
|
-
};
|