@feedmepos/mf-brand-app-builder 0.1.0-beta.1
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/README.md +39 -0
- package/dist/app.js +9830 -0
- package/dist/components/src/components/ButtonList.vue.d.ts +20 -0
- package/dist/components/src/components/Homepage.vue.d.ts +26 -0
- package/dist/components/src/components/TextDisplay.vue.d.ts +15 -0
- package/dist/components/src/components/atoms/Container.vue.d.ts +32 -0
- package/dist/components/src/components/atoms/Icon.vue.d.ts +29 -0
- package/dist/components/src/main.d.ts +6 -0
- package/dist/favicon.ico +0 -0
- package/dist/merchant/src/App.vue.d.ts +2 -0
- package/dist/merchant/src/Entry.vue.d.ts +2 -0
- package/dist/merchant/src/app.d.ts +1 -0
- package/dist/merchant/src/components/editor/Editor.vue.d.ts +2 -0
- package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +2 -0
- package/dist/merchant/src/components/element-sidebar/all-elements.d.ts +6 -0
- package/dist/merchant/src/components/inputs/ColorPicker.vue.d.ts +15 -0
- package/dist/merchant/src/components/inputs/ListRepeater.vue.d.ts +15 -0
- package/dist/merchant/src/components/inputs/Select.vue.d.ts +15 -0
- package/dist/merchant/src/components/inputs/StepperField.vue.d.ts +15 -0
- package/dist/merchant/src/components/inputs/TextField.vue.d.ts +15 -0
- package/dist/merchant/src/components/inputs/index.d.ts +6 -0
- package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +2 -0
- package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +21 -0
- package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +21 -0
- package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +22 -0
- package/dist/merchant/src/composables/useNode/index.d.ts +14 -0
- package/dist/merchant/src/main.d.ts +2 -0
- package/dist/merchant/src/node-configs/button-list/props.d.ts +19 -0
- package/dist/merchant/src/node-configs/button-list/schema.d.ts +2 -0
- package/dist/merchant/src/node-configs/container/props.d.ts +14 -0
- package/dist/merchant/src/node-configs/container/schema.d.ts +2 -0
- package/dist/merchant/src/node-configs/display-text/props.d.ts +15 -0
- package/dist/merchant/src/node-configs/display-text/schema.d.ts +2 -0
- package/dist/merchant/src/node-configs/homepage/props.d.ts +7 -0
- package/dist/merchant/src/node-configs/homepage/schema.d.ts +2 -0
- package/dist/merchant/src/node-configs/props.d.ts +5 -0
- package/dist/merchant/src/node-configs/schema.d.ts +5 -0
- package/dist/merchant/src/router/index.d.ts +2 -0
- package/dist/merchant/src/stores/editor/index.d.ts +68 -0
- package/dist/merchant/src/utils/provider-keys.d.ts +3 -0
- package/dist/package.json +64 -0
- package/dist/style.css +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type IContainerProps } from './atoms/Container.vue';
|
|
2
|
+
interface IListItem {
|
|
3
|
+
icon: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface IButtonListProps extends IContainerProps {
|
|
7
|
+
items: IListItem[];
|
|
8
|
+
displayStyle: 'vertical' | 'horizontal';
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IButtonListProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IButtonListProps>>>, {}, {}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToOption<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface IHompageProps {
|
|
2
|
+
data: any;
|
|
3
|
+
paddingTop: string;
|
|
4
|
+
paddingBottom: string;
|
|
5
|
+
paddingLeft: string;
|
|
6
|
+
paddingRight: string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<IHompageProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IHompageProps>>>, {}, {}>, {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type IContainerProps } from './atoms/Container.vue';
|
|
2
|
+
interface ITextDisplayProps extends IContainerProps {
|
|
3
|
+
textContent: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<ITextDisplayProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ITextDisplayProps>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IContainerProps {
|
|
2
|
+
paddingTop: string;
|
|
3
|
+
paddingBottom: string;
|
|
4
|
+
paddingLeft: string;
|
|
5
|
+
paddingRight: string;
|
|
6
|
+
marginTop: string;
|
|
7
|
+
marginBottom: string;
|
|
8
|
+
marginLeft: string;
|
|
9
|
+
marginRight: string;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
borderRadius: string;
|
|
12
|
+
borderWidth: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<IContainerProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IContainerProps>>>, {}, {}>, {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToOption<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface IIconProps {
|
|
2
|
+
name: string;
|
|
3
|
+
filled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<IIconProps>, {
|
|
6
|
+
filled: boolean;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<IIconProps>, {
|
|
8
|
+
filled: boolean;
|
|
9
|
+
}>>>, {
|
|
10
|
+
filled: boolean;
|
|
11
|
+
}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithDefaults<P, D> = {
|
|
14
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
15
|
+
default: D[K];
|
|
16
|
+
}> : P[K];
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Prettify<T> = {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} & {};
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Homepage from './components/Homepage.vue';
|
|
2
|
+
import TextDisplay from './components/TextDisplay.vue';
|
|
3
|
+
import ButtonList from './components/ButtonList.vue';
|
|
4
|
+
import Container from './components/atoms/Container.vue';
|
|
5
|
+
import Icon from './components/atoms/Icon.vue';
|
|
6
|
+
export { Homepage, TextDisplay, ButtonList, Container, Icon };
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FmApp } from './App.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
+
interface IColorPickerProps {
|
|
3
|
+
context: FormKitFrameworkContext;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IColorPickerProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IColorPickerProps>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
+
interface IListRepeaterProps {
|
|
3
|
+
context: FormKitFrameworkContext;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IListRepeaterProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IListRepeaterProps>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
+
interface ISelectProps {
|
|
3
|
+
context: FormKitFrameworkContext;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<ISelectProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ISelectProps>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
+
interface IStepperFieldProps {
|
|
3
|
+
context: FormKitFrameworkContext;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IStepperFieldProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IStepperFieldProps>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
+
interface ITextFieldProps {
|
|
3
|
+
context: FormKitFrameworkContext;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<ITextFieldProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ITextFieldProps>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import TextField from './TextField.vue';
|
|
2
|
+
import StepperField from './StepperField.vue';
|
|
3
|
+
import ColorPicker from './ColorPicker.vue';
|
|
4
|
+
import Select from './Select.vue';
|
|
5
|
+
import ListRepeater from './ListRepeater.vue';
|
|
6
|
+
export { TextField, ColorPicker, Select, StepperField, ListRepeater };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface IConfigSectionProps {
|
|
2
|
+
label: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<IConfigSectionProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IConfigSectionProps>>>, {}, {}>, {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { IConfigTabItemProps } from './ConfigTabItem.vue';
|
|
3
|
+
export interface IConfigTabProvider {
|
|
4
|
+
register: (componentProp: IConfigTabItemProps) => void;
|
|
5
|
+
currentTab: ComputedRef<string>;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
}>>>>, {
|
|
12
|
+
readonly [x: number]: string;
|
|
13
|
+
} | {}, {}>, {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IConfigTabItemProps {
|
|
2
|
+
title: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<IConfigTabItemProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IConfigTabItemProps>>>, {}, {}>, {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToOption<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable to build and edit nodes
|
|
3
|
+
* @returns
|
|
4
|
+
*/
|
|
5
|
+
export declare function useNodeManager(): {
|
|
6
|
+
buildNewNode: (nodeType: string, data: any) => INodeComponent;
|
|
7
|
+
};
|
|
8
|
+
export interface INodeComponent {
|
|
9
|
+
_id: string;
|
|
10
|
+
type: string;
|
|
11
|
+
props: any;
|
|
12
|
+
data: any;
|
|
13
|
+
children: INodeComponent[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const ButtonList: {
|
|
2
|
+
items: {
|
|
3
|
+
icon: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}[];
|
|
6
|
+
displayStyle: string;
|
|
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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const Container: {
|
|
2
|
+
paddingTop: string;
|
|
3
|
+
paddingBottom: string;
|
|
4
|
+
paddingLeft: string;
|
|
5
|
+
paddingRight: string;
|
|
6
|
+
marginTop: string;
|
|
7
|
+
marginBottom: string;
|
|
8
|
+
marginLeft: string;
|
|
9
|
+
marginRight: string;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
borderRadius: string;
|
|
12
|
+
borderWidth: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const TextDisplay: {
|
|
2
|
+
textContent: string;
|
|
3
|
+
paddingTop: string;
|
|
4
|
+
paddingBottom: string;
|
|
5
|
+
paddingLeft: string;
|
|
6
|
+
paddingRight: string;
|
|
7
|
+
marginTop: string;
|
|
8
|
+
marginBottom: string;
|
|
9
|
+
marginLeft: string;
|
|
10
|
+
marginRight: string;
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
borderWidth: string;
|
|
14
|
+
borderColor: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { INodeComponent } from '../../composables/useNode';
|
|
2
|
+
export declare const useEditorStore: import("pinia").StoreDefinition<"editor", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
+
state: import("vue").ComputedRef<{
|
|
4
|
+
node: {
|
|
5
|
+
_id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
props: any;
|
|
8
|
+
data: any;
|
|
9
|
+
children: any[];
|
|
10
|
+
}[];
|
|
11
|
+
selectedNode: {
|
|
12
|
+
_id: string;
|
|
13
|
+
type: string;
|
|
14
|
+
props: any;
|
|
15
|
+
data: any;
|
|
16
|
+
children: any[];
|
|
17
|
+
} | null;
|
|
18
|
+
}>;
|
|
19
|
+
setNodeList: (newNode: INodeComponent[]) => void;
|
|
20
|
+
setRootNode: (newNode: INodeComponent) => void;
|
|
21
|
+
setCurrentNode: (node: any) => void;
|
|
22
|
+
updateNode: (node: any) => void;
|
|
23
|
+
saveNode: () => void;
|
|
24
|
+
}, never>>, Pick<{
|
|
25
|
+
state: import("vue").ComputedRef<{
|
|
26
|
+
node: {
|
|
27
|
+
_id: string;
|
|
28
|
+
type: string;
|
|
29
|
+
props: any;
|
|
30
|
+
data: any;
|
|
31
|
+
children: any[];
|
|
32
|
+
}[];
|
|
33
|
+
selectedNode: {
|
|
34
|
+
_id: string;
|
|
35
|
+
type: string;
|
|
36
|
+
props: any;
|
|
37
|
+
data: any;
|
|
38
|
+
children: any[];
|
|
39
|
+
} | null;
|
|
40
|
+
}>;
|
|
41
|
+
setNodeList: (newNode: INodeComponent[]) => void;
|
|
42
|
+
setRootNode: (newNode: INodeComponent) => void;
|
|
43
|
+
setCurrentNode: (node: any) => void;
|
|
44
|
+
updateNode: (node: any) => void;
|
|
45
|
+
saveNode: () => void;
|
|
46
|
+
}, "state">, Pick<{
|
|
47
|
+
state: import("vue").ComputedRef<{
|
|
48
|
+
node: {
|
|
49
|
+
_id: string;
|
|
50
|
+
type: string;
|
|
51
|
+
props: any;
|
|
52
|
+
data: any;
|
|
53
|
+
children: any[];
|
|
54
|
+
}[];
|
|
55
|
+
selectedNode: {
|
|
56
|
+
_id: string;
|
|
57
|
+
type: string;
|
|
58
|
+
props: any;
|
|
59
|
+
data: any;
|
|
60
|
+
children: any[];
|
|
61
|
+
} | null;
|
|
62
|
+
}>;
|
|
63
|
+
setNodeList: (newNode: INodeComponent[]) => void;
|
|
64
|
+
setRootNode: (newNode: INodeComponent) => void;
|
|
65
|
+
setCurrentNode: (node: any) => void;
|
|
66
|
+
updateNode: (node: any) => void;
|
|
67
|
+
saveNode: () => void;
|
|
68
|
+
}, "setNodeList" | "setRootNode" | "setCurrentNode" | "updateNode" | "saveNode">>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@feedmepos/mf-brand-app-builder",
|
|
3
|
+
"version": "0.1.0-beta.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"module": "./dist/app.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/app.js",
|
|
12
|
+
"types": "./dist/merchant/src/app.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./style": "./dist/style.css"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite --mode dev",
|
|
18
|
+
"prod": "vite --mode prod",
|
|
19
|
+
"build": "run-p type-check \"build-only {@}\" --",
|
|
20
|
+
"preview": "vite preview",
|
|
21
|
+
"type-check": "vue-tsc --build --force",
|
|
22
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
23
|
+
"format": "prettier --write src/",
|
|
24
|
+
"tsc-resolve": "tsc-alias --project tsconfig.app.json --outDir dist",
|
|
25
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && pnpm tsc-resolve",
|
|
26
|
+
"build-types": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false && pnpm tsc-resolve",
|
|
27
|
+
"build:mf": "vite build --mode fmmf",
|
|
28
|
+
"build-only": "pnpm build:mf && pnpm build:dts && pnpm build-types && cp package.json ./dist",
|
|
29
|
+
"deploy:npm": "pnpm run build-only && pnpm publish --no-git-checks ."
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@feedmepos/mf-common": "1.6.1-rc.6",
|
|
33
|
+
"@feedmepos/ui-library": "^1.2.3",
|
|
34
|
+
"@formkit/core": "^1.6.5",
|
|
35
|
+
"@formkit/vue": "^1.6.5",
|
|
36
|
+
"pinia": "^2.1.7",
|
|
37
|
+
"uuid": "^9.0.1",
|
|
38
|
+
"vue": "^3.4.21",
|
|
39
|
+
"vue-router": "^4.3.2",
|
|
40
|
+
"vuedraggable": "^4.1.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@rushstack/eslint-patch": "^1.8.0",
|
|
44
|
+
"@tsconfig/node20": "^20.1.4",
|
|
45
|
+
"@types/node": "^20.12.5",
|
|
46
|
+
"@types/uuid": "^9.0.8",
|
|
47
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
48
|
+
"@vue/eslint-config-prettier": "^9.0.0",
|
|
49
|
+
"@vue/eslint-config-typescript": "^13.0.0",
|
|
50
|
+
"@vue/tsconfig": "^0.5.1",
|
|
51
|
+
"autoprefixer": "^10.4.19",
|
|
52
|
+
"eslint": "^8.57.0",
|
|
53
|
+
"eslint-plugin-vue": "^9.23.0",
|
|
54
|
+
"npm-run-all2": "^6.1.2",
|
|
55
|
+
"postcss": "^8.4.38",
|
|
56
|
+
"prettier": "^3.2.5",
|
|
57
|
+
"tailwindcss": "^3.4.3",
|
|
58
|
+
"tsc-alias": "^1.8.10",
|
|
59
|
+
"typescript": "~5.4.0",
|
|
60
|
+
"vite": "^5.2.11",
|
|
61
|
+
"vite-plugin-vue-devtools": "^7.0.25",
|
|
62
|
+
"vue-tsc": "^2.0.11"
|
|
63
|
+
}
|
|
64
|
+
}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.icon-rounded{font-variation-settings:"FILL" 0}.icon-filled{font-variation-settings:"FILL" 1}
|