@feedmepos/mf-brand-app-builder 0.3.1-beta.1 → 0.3.1-beta.3
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 +5788 -4220
- package/dist/components/src/components/ButtonList.vue.d.ts +1 -0
- package/dist/components/src/components/ImageCarousel.vue.d.ts +2 -0
- package/dist/components/src/components/ImageDisplay.vue.d.ts +2 -0
- package/dist/components/src/components/atoms/Button.vue.d.ts +1 -1
- package/dist/merchant/src/components/editor/PreviewQrCode.vue.d.ts +2 -0
- package/dist/merchant/src/node-configs/button-list/props.d.ts +1 -0
- package/dist/merchant/src/node-configs/carousel/props.d.ts +1 -0
- package/dist/merchant/src/node-configs/display-image/props.d.ts +1 -0
- package/dist/merchant/src/stores/editor/index.d.ts +0 -76
- package/dist/merchant/src/stores/template/index.d.ts +0 -42
- package/dist/package.json +3 -1
- package/package.json +3 -1
|
@@ -9,6 +9,7 @@ interface IButtonListProps {
|
|
|
9
9
|
containerStyles: IContainerProps;
|
|
10
10
|
items: IListItem[];
|
|
11
11
|
itemsPerRow: number;
|
|
12
|
+
textColor: string;
|
|
12
13
|
}
|
|
13
14
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IButtonListProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
15
|
linkClick: (linkTo: ILink) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CSSProperties } from 'vue';
|
|
1
2
|
import { type IContainerProps } from './atoms/Container.vue';
|
|
2
3
|
import { type ILink } from './atoms/LinkSlot.vue';
|
|
3
4
|
interface IImageCarousel {
|
|
@@ -9,6 +10,7 @@ interface IImageCarousel {
|
|
|
9
10
|
enableIndicator: boolean;
|
|
10
11
|
autoRotation: boolean;
|
|
11
12
|
rotationInterval: string;
|
|
13
|
+
objectFit: CSSProperties['objectFit'];
|
|
12
14
|
}
|
|
13
15
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IImageCarousel>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
16
|
linkClick: (linkTo: ILink) => void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
1
2
|
import { type IContainerProps } from './atoms/Container.vue';
|
|
2
3
|
import { type ILink } from './atoms/LinkSlot.vue';
|
|
3
4
|
interface IImageDisplayProps {
|
|
4
5
|
containerStyles: IContainerProps;
|
|
5
6
|
imageUrl: string;
|
|
6
7
|
linkTo: ILink;
|
|
8
|
+
objectFit: CSSProperties['objectFit'];
|
|
7
9
|
}
|
|
8
10
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IImageDisplayProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
11
|
linkClick: (linkTo: ILink) => void;
|
|
@@ -20,10 +20,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
20
|
textColor: string;
|
|
21
21
|
}>>>, {
|
|
22
22
|
type: string;
|
|
23
|
+
textColor: string;
|
|
23
24
|
prependIcon: string;
|
|
24
25
|
appendIcon: string;
|
|
25
26
|
buttonColor: string;
|
|
26
|
-
textColor: string;
|
|
27
27
|
}, {}>, {
|
|
28
28
|
default?(_: {}): any;
|
|
29
29
|
}>;
|
|
@@ -23,29 +23,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", i
|
|
|
23
23
|
children: any[];
|
|
24
24
|
} | null;
|
|
25
25
|
firstFetchedData: string | null;
|
|
26
|
-
}, IEditorState | {
|
|
27
|
-
node: {
|
|
28
|
-
_id: string;
|
|
29
|
-
type: string;
|
|
30
|
-
props: any;
|
|
31
|
-
data: any;
|
|
32
|
-
children: any[];
|
|
33
|
-
}[];
|
|
34
|
-
selectedNode: {
|
|
35
|
-
_id: string;
|
|
36
|
-
type: string;
|
|
37
|
-
props: any;
|
|
38
|
-
data: any;
|
|
39
|
-
children: any[];
|
|
40
|
-
} | null;
|
|
41
|
-
copied: {
|
|
42
|
-
_id: string;
|
|
43
|
-
type: string;
|
|
44
|
-
props: any;
|
|
45
|
-
data: any;
|
|
46
|
-
children: any[];
|
|
47
|
-
} | null;
|
|
48
|
-
firstFetchedData: string | null;
|
|
49
26
|
}>;
|
|
50
27
|
setNodeList: (newNode: INodeComponent[]) => void;
|
|
51
28
|
setRootNode: (newNode: INodeComponent) => void;
|
|
@@ -79,29 +56,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", i
|
|
|
79
56
|
children: any[];
|
|
80
57
|
} | null;
|
|
81
58
|
firstFetchedData: string | null;
|
|
82
|
-
}, IEditorState | {
|
|
83
|
-
node: {
|
|
84
|
-
_id: string;
|
|
85
|
-
type: string;
|
|
86
|
-
props: any;
|
|
87
|
-
data: any;
|
|
88
|
-
children: any[];
|
|
89
|
-
}[];
|
|
90
|
-
selectedNode: {
|
|
91
|
-
_id: string;
|
|
92
|
-
type: string;
|
|
93
|
-
props: any;
|
|
94
|
-
data: any;
|
|
95
|
-
children: any[];
|
|
96
|
-
} | null;
|
|
97
|
-
copied: {
|
|
98
|
-
_id: string;
|
|
99
|
-
type: string;
|
|
100
|
-
props: any;
|
|
101
|
-
data: any;
|
|
102
|
-
children: any[];
|
|
103
|
-
} | null;
|
|
104
|
-
firstFetchedData: string | null;
|
|
105
59
|
}>;
|
|
106
60
|
setNodeList: (newNode: INodeComponent[]) => void;
|
|
107
61
|
setRootNode: (newNode: INodeComponent) => void;
|
|
@@ -135,29 +89,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", i
|
|
|
135
89
|
children: any[];
|
|
136
90
|
} | null;
|
|
137
91
|
firstFetchedData: string | null;
|
|
138
|
-
}, IEditorState | {
|
|
139
|
-
node: {
|
|
140
|
-
_id: string;
|
|
141
|
-
type: string;
|
|
142
|
-
props: any;
|
|
143
|
-
data: any;
|
|
144
|
-
children: any[];
|
|
145
|
-
}[];
|
|
146
|
-
selectedNode: {
|
|
147
|
-
_id: string;
|
|
148
|
-
type: string;
|
|
149
|
-
props: any;
|
|
150
|
-
data: any;
|
|
151
|
-
children: any[];
|
|
152
|
-
} | null;
|
|
153
|
-
copied: {
|
|
154
|
-
_id: string;
|
|
155
|
-
type: string;
|
|
156
|
-
props: any;
|
|
157
|
-
data: any;
|
|
158
|
-
children: any[];
|
|
159
|
-
} | null;
|
|
160
|
-
firstFetchedData: string | null;
|
|
161
92
|
}>;
|
|
162
93
|
setNodeList: (newNode: INodeComponent[]) => void;
|
|
163
94
|
setRootNode: (newNode: INodeComponent) => void;
|
|
@@ -168,10 +99,3 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", i
|
|
|
168
99
|
setCopiedNode: (node: INodeComponent) => void;
|
|
169
100
|
isSaved: () => boolean;
|
|
170
101
|
}, "setNodeList" | "setRootNode" | "setFromTemplate" | "setCurrentNode" | "updateNode" | "removeNode" | "setCopiedNode" | "isSaved">>;
|
|
171
|
-
interface IEditorState {
|
|
172
|
-
node: INodeComponent[];
|
|
173
|
-
selectedNode: INodeComponent | null;
|
|
174
|
-
copied: INodeComponent | null;
|
|
175
|
-
firstFetchedData: string | null;
|
|
176
|
-
}
|
|
177
|
-
export {};
|
|
@@ -12,18 +12,6 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
|
|
|
12
12
|
created?: string | undefined;
|
|
13
13
|
} | null;
|
|
14
14
|
activeTemplateId: string;
|
|
15
|
-
}, ITemplateStore | {
|
|
16
|
-
allTemplates: {
|
|
17
|
-
templateAlias: string;
|
|
18
|
-
templateId: string;
|
|
19
|
-
created?: string | undefined;
|
|
20
|
-
}[];
|
|
21
|
-
selectedTemplate: {
|
|
22
|
-
templateAlias: string;
|
|
23
|
-
templateId: string;
|
|
24
|
-
created?: string | undefined;
|
|
25
|
-
} | null;
|
|
26
|
-
activeTemplateId: string;
|
|
27
15
|
}>;
|
|
28
16
|
getAllTemplates: (businessId: string) => Promise<void>;
|
|
29
17
|
publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
@@ -47,18 +35,6 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
|
|
|
47
35
|
created?: string | undefined;
|
|
48
36
|
} | null;
|
|
49
37
|
activeTemplateId: string;
|
|
50
|
-
}, ITemplateStore | {
|
|
51
|
-
allTemplates: {
|
|
52
|
-
templateAlias: string;
|
|
53
|
-
templateId: string;
|
|
54
|
-
created?: string | undefined;
|
|
55
|
-
}[];
|
|
56
|
-
selectedTemplate: {
|
|
57
|
-
templateAlias: string;
|
|
58
|
-
templateId: string;
|
|
59
|
-
created?: string | undefined;
|
|
60
|
-
} | null;
|
|
61
|
-
activeTemplateId: string;
|
|
62
38
|
}>;
|
|
63
39
|
getAllTemplates: (businessId: string) => Promise<void>;
|
|
64
40
|
publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
@@ -82,18 +58,6 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
|
|
|
82
58
|
created?: string | undefined;
|
|
83
59
|
} | null;
|
|
84
60
|
activeTemplateId: string;
|
|
85
|
-
}, ITemplateStore | {
|
|
86
|
-
allTemplates: {
|
|
87
|
-
templateAlias: string;
|
|
88
|
-
templateId: string;
|
|
89
|
-
created?: string | undefined;
|
|
90
|
-
}[];
|
|
91
|
-
selectedTemplate: {
|
|
92
|
-
templateAlias: string;
|
|
93
|
-
templateId: string;
|
|
94
|
-
created?: string | undefined;
|
|
95
|
-
} | null;
|
|
96
|
-
activeTemplateId: string;
|
|
97
61
|
}>;
|
|
98
62
|
getAllTemplates: (businessId: string) => Promise<void>;
|
|
99
63
|
publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
|
|
@@ -105,14 +69,8 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
|
|
|
105
69
|
renameTemplate: (businessId: string, templateId: string, alias: string) => Promise<void>;
|
|
106
70
|
deleteTemplate: (businessId: string, templateId: string) => Promise<void>;
|
|
107
71
|
}, "getAllTemplates" | "publishTemplate" | "getActiveTemplateId" | "setSelectedTemplate" | "saveTemplate" | "setActiveTemplate" | "addNewTemplate" | "renameTemplate" | "deleteTemplate">>;
|
|
108
|
-
interface ITemplateStore {
|
|
109
|
-
allTemplates: ITemplateDetails[];
|
|
110
|
-
selectedTemplate: ITemplateDetails | null;
|
|
111
|
-
activeTemplateId: string;
|
|
112
|
-
}
|
|
113
72
|
export interface ITemplateDetails {
|
|
114
73
|
templateAlias: string;
|
|
115
74
|
templateId: string;
|
|
116
75
|
created?: string;
|
|
117
76
|
}
|
|
118
|
-
export {};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-brand-app-builder",
|
|
3
|
-
"version": "0.3.1-beta.
|
|
3
|
+
"version": "0.3.1-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"axios": "^1.7.2",
|
|
40
40
|
"dotenv": "^16.4.5",
|
|
41
41
|
"pinia": "^2.1.7",
|
|
42
|
+
"qrcode": "^1.5.4",
|
|
42
43
|
"uuid": "^9.0.1",
|
|
43
44
|
"vue": "^3.4.21",
|
|
44
45
|
"vue-router": "^4.3.2",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"@rushstack/eslint-patch": "^1.8.0",
|
|
50
51
|
"@tsconfig/node20": "^20.1.4",
|
|
51
52
|
"@types/node": "^20.12.5",
|
|
53
|
+
"@types/qrcode": "^1.5.5",
|
|
52
54
|
"@types/uuid": "^9.0.8",
|
|
53
55
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
54
56
|
"@vue/eslint-config-prettier": "^9.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-brand-app-builder",
|
|
3
|
-
"version": "0.3.1-beta.
|
|
3
|
+
"version": "0.3.1-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"axios": "^1.7.2",
|
|
22
22
|
"dotenv": "^16.4.5",
|
|
23
23
|
"pinia": "^2.1.7",
|
|
24
|
+
"qrcode": "^1.5.4",
|
|
24
25
|
"uuid": "^9.0.1",
|
|
25
26
|
"vue": "^3.4.21",
|
|
26
27
|
"vue-router": "^4.3.2",
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
"@rushstack/eslint-patch": "^1.8.0",
|
|
32
33
|
"@tsconfig/node20": "^20.1.4",
|
|
33
34
|
"@types/node": "^20.12.5",
|
|
35
|
+
"@types/qrcode": "^1.5.5",
|
|
34
36
|
"@types/uuid": "^9.0.8",
|
|
35
37
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
36
38
|
"@vue/eslint-config-prettier": "^9.0.0",
|