@feedmepos/mf-brand-app-builder 0.1.0-beta.3 → 0.2.0-beta.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.
Files changed (52) hide show
  1. package/dist/app.js +9954 -6888
  2. package/dist/components/src/components/ButtonList.vue.d.ts +3 -2
  3. package/dist/components/src/components/Homepage.vue.d.ts +5 -5
  4. package/dist/components/src/components/ImageCarousel.vue.d.ts +21 -0
  5. package/dist/components/src/components/ImageDisplay.vue.d.ts +16 -0
  6. package/dist/components/src/components/MemberCard.vue.d.ts +32 -0
  7. package/dist/components/src/components/TextDisplay.vue.d.ts +14 -0
  8. package/dist/components/src/components/atoms/CircularProgress.vue.d.ts +36 -0
  9. package/dist/components/src/components/atoms/Container.vue.d.ts +2 -1
  10. package/dist/components/src/components/atoms/Divider.vue.d.ts +2 -0
  11. package/dist/components/src/main.d.ts +6 -1
  12. package/dist/merchant/src/api/image/index.d.ts +7 -0
  13. package/dist/merchant/src/api/index.d.ts +11 -0
  14. package/dist/merchant/src/api/template/index.d.ts +14 -0
  15. package/dist/merchant/src/app.d.ts +1 -2
  16. package/dist/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +22 -0
  17. package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +2 -0
  18. package/dist/merchant/src/components/atoms/index.d.ts +3 -0
  19. package/dist/merchant/src/components/editor/EditorToobar.vue.d.ts +2 -0
  20. package/dist/merchant/src/components/element-sidebar/all-elements.d.ts +5 -1
  21. package/dist/merchant/src/components/inputs/ButtonGroup.vue.d.ts +19 -0
  22. package/dist/merchant/src/components/inputs/ImageUpload.vue.d.ts +15 -0
  23. package/dist/merchant/src/components/inputs/LinkButton.vue.d.ts +15 -0
  24. package/dist/merchant/src/components/inputs/Switch.vue.d.ts +15 -0
  25. package/dist/merchant/src/components/inputs/TextAlign.vue.d.ts +21 -0
  26. package/dist/merchant/src/components/inputs/TextDecorators.vue.d.ts +19 -0
  27. package/dist/merchant/src/components/inputs/TextStyleList.vue.d.ts +15 -0
  28. package/dist/merchant/src/components/inputs/index.d.ts +8 -1
  29. package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +1 -1
  30. package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +13 -7
  31. package/dist/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +15 -0
  32. package/dist/merchant/src/composables/useNode/index.d.ts +2 -0
  33. package/dist/merchant/src/node-configs/button-list/props.d.ts +4 -2
  34. package/dist/merchant/src/node-configs/carousel/props.d.ts +22 -0
  35. package/dist/merchant/src/node-configs/carousel/schema.d.ts +2 -0
  36. package/dist/merchant/src/node-configs/container/props.d.ts +36 -0
  37. package/dist/merchant/src/node-configs/display-image/props.d.ts +17 -0
  38. package/dist/merchant/src/node-configs/display-image/schema.d.ts +2 -0
  39. package/dist/merchant/src/node-configs/display-text/props.d.ts +14 -0
  40. package/dist/merchant/src/node-configs/member-card/mock-data.d.ts +8 -0
  41. package/dist/merchant/src/node-configs/member-card/props.d.ts +27 -0
  42. package/dist/merchant/src/node-configs/member-card/schema.d.ts +2 -0
  43. package/dist/merchant/src/node-configs/mock-data.d.ts +2 -0
  44. package/dist/merchant/src/node-configs/props.d.ts +4 -1
  45. package/dist/merchant/src/node-configs/schema.d.ts +4 -1
  46. package/dist/merchant/src/plugin/formkit.d.ts +3 -0
  47. package/dist/merchant/src/stores/editor/index.d.ts +31 -4
  48. package/dist/merchant/src/stores/template/index.d.ts +35 -0
  49. package/dist/merchant/src/utils/deep-to-raw.d.ts +1 -0
  50. package/dist/package.json +4 -3
  51. package/dist/style.css +1 -1
  52. package/package.json +4 -3
@@ -1,11 +1,12 @@
1
1
  import { type IContainerProps } from './atoms/Container.vue';
2
2
  interface IListItem {
3
- icon: string;
4
3
  label: string;
4
+ imageUrl: string;
5
+ linkTo: string;
5
6
  }
6
7
  interface IButtonListProps extends IContainerProps {
7
8
  items: IListItem[];
8
- displayStyle: 'vertical' | 'horizontal';
9
+ itemsPerRow: number;
9
10
  }
10
11
  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
12
  export default _default;
@@ -1,10 +1,10 @@
1
1
  interface IHompageProps {
2
2
  data: any;
3
- paddingTop: string;
4
- paddingBottom: string;
5
- paddingLeft: string;
6
- paddingRight: string;
7
- backgroundColor: string;
3
+ paddingTop?: string;
4
+ paddingBottom?: string;
5
+ paddingLeft?: string;
6
+ paddingRight?: string;
7
+ backgroundColor?: string;
8
8
  }
9
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
10
  default?(_: {}): any;
@@ -0,0 +1,21 @@
1
+ import { type IContainerProps } from './atoms/Container.vue';
2
+ interface IImageCarousel extends Partial<IContainerProps> {
3
+ items: {
4
+ imageUrl: string;
5
+ linkTo: string;
6
+ }[];
7
+ enableIndicator: boolean;
8
+ autoRotation: boolean;
9
+ rotationInterval: string;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IImageCarousel>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IImageCarousel>>>, {}, {}>;
12
+ export default _default;
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,16 @@
1
+ import { type IContainerProps } from './atoms/Container.vue';
2
+ interface IImageDisplayProps extends Partial<IContainerProps> {
3
+ imageUrl: string;
4
+ linkTo: string;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IImageDisplayProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IImageDisplayProps>>>, {}, {}>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToOption<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,32 @@
1
+ import { type IContainerProps } from './atoms/Container.vue';
2
+ interface IMembershipCardData {
3
+ memberImage: string;
4
+ memberName: string;
5
+ memberTierName: string;
6
+ memberCredit: number;
7
+ memberPoints: number;
8
+ memberTitles: string[];
9
+ }
10
+ interface IMembershipCardProps extends Partial<IContainerProps> {
11
+ data: IMembershipCardData | null;
12
+ showCredit: boolean;
13
+ showPoints: boolean;
14
+ showTier: boolean;
15
+ showTitle: boolean;
16
+ authLoading?: boolean;
17
+ }
18
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IMembershipCardProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ signIn: () => void;
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IMembershipCardProps>>> & {
21
+ onSignIn?: (() => any) | undefined;
22
+ }, {}, {}>;
23
+ export default _default;
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
+ };
@@ -1,6 +1,20 @@
1
+ import { type CSSProperties } from 'vue';
1
2
  import { type IContainerProps } from './atoms/Container.vue';
2
3
  interface ITextDisplayProps extends IContainerProps {
3
4
  textContent: string;
5
+ style: {
6
+ fontSize: string;
7
+ fontStyle: string;
8
+ fontWeight: string;
9
+ lineHeight: string;
10
+ letterSpacing: string;
11
+ color: string;
12
+ textAlign: CSSProperties['text-align'];
13
+ textDecorators: {
14
+ fontStyle: string;
15
+ textDecorationLine: string;
16
+ };
17
+ };
4
18
  }
5
19
  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
20
  export default _default;
@@ -0,0 +1,36 @@
1
+ export interface FmCircularProgressProps {
2
+ indeterminate?: boolean;
3
+ size?: 'md' | 'lg' | 'xl' | 'xxl';
4
+ color?: string;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FmCircularProgressProps>, {
7
+ indeterminate: undefined;
8
+ size: string;
9
+ color: string;
10
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FmCircularProgressProps>, {
11
+ indeterminate: undefined;
12
+ size: string;
13
+ color: string;
14
+ }>>>, {
15
+ size: "md" | "lg" | "xl" | "xxl";
16
+ color: string;
17
+ indeterminate: boolean;
18
+ }, {}>;
19
+ export default _default;
20
+ type __VLS_WithDefaults<P, D> = {
21
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
22
+ default: D[K];
23
+ }> : P[K];
24
+ };
25
+ type __VLS_Prettify<T> = {
26
+ [K in keyof T]: T[K];
27
+ } & {};
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToOption<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: import('vue').PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
@@ -11,8 +11,9 @@ export interface IContainerProps {
11
11
  borderRadius: string;
12
12
  borderWidth: string;
13
13
  borderColor: string;
14
+ height: string;
14
15
  }
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
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Partial<IContainerProps>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Partial<IContainerProps>>>>, {}, {}>, {
16
17
  default?(_: {}): any;
17
18
  }>;
18
19
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -3,4 +3,9 @@ import TextDisplay from './components/TextDisplay.vue';
3
3
  import ButtonList from './components/ButtonList.vue';
4
4
  import Container from './components/atoms/Container.vue';
5
5
  import Icon from './components/atoms/Icon.vue';
6
- export { Homepage, TextDisplay, ButtonList, Container, Icon };
6
+ import ImageDisplay from './components/ImageDisplay.vue';
7
+ import ImageCarousel from './components/ImageCarousel.vue';
8
+ import MemberCard from './components/MemberCard.vue';
9
+ import CircularProgress from './components/atoms/CircularProgress.vue';
10
+ import Divider from './components/atoms/Divider.vue';
11
+ export { Homepage, TextDisplay, ButtonList, Container, Icon, ImageDisplay, ImageCarousel, MemberCard, CircularProgress, Divider };
@@ -0,0 +1,7 @@
1
+ declare function uploadImage(businessId: string, path: string, file: File): Promise<unknown>;
2
+ declare function deleteImage(businessId: string, path: string): Promise<unknown>;
3
+ export declare const ImageApi: {
4
+ uploadImage: typeof uploadImage;
5
+ deleteImage: typeof deleteImage;
6
+ };
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type AxiosRequestConfig, type AxiosResponse } from 'axios';
2
+ declare class ApiClient {
3
+ private instance;
4
+ constructor();
5
+ Get<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
6
+ Post<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
7
+ Put<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
8
+ Delete<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
9
+ }
10
+ export declare const Api: ApiClient;
11
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { INodeComponent } from '../../composables/useNode';
2
+ declare function getAllTemplates(businessId: string): Promise<string[]>;
3
+ declare function getTemplateById(businessId: string, templateId: string): Promise<INodeComponent[]>;
4
+ declare function uploadTemplate(businessId: string, templateId: string, schema: INodeComponent[]): Promise<unknown>;
5
+ declare function setActiveTemplate(businessId: string, templateId: string): Promise<string>;
6
+ declare function getActiveTemplate(businessId: string): Promise<string>;
7
+ export declare const TemplateApi: {
8
+ getAllTemplates: typeof getAllTemplates;
9
+ getTemplateById: typeof getTemplateById;
10
+ uploadTemplate: typeof uploadTemplate;
11
+ setActiveTemplate: typeof setActiveTemplate;
12
+ getActiveTemplate: typeof getActiveTemplate;
13
+ };
14
+ export {};
@@ -1,3 +1,2 @@
1
- import type { App } from 'vue';
2
1
  export { default as FmApp } from './App.vue';
3
- export declare const initFormKit: (app: App<Element>) => void;
2
+ export { FormKitPlugin } from './plugin/formkit';
@@ -0,0 +1,22 @@
1
+ interface IButtonGroup {
2
+ modelValue: string;
3
+ groupItems: {
4
+ icon: string;
5
+ value: string;
6
+ }[];
7
+ }
8
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IButtonGroup>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (val: string) => void;
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IButtonGroup>>> & {
11
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
12
+ }, {}, {}>;
13
+ export default _default;
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,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import BaButtonGroup from "./BaButtonGroup.vue";
2
+ import BaDivider from "./BaDivider.vue";
3
+ export { BaButtonGroup, BaDivider };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -1,6 +1,10 @@
1
+ export interface IElementSection {
2
+ title: string;
3
+ children: IElementItem[];
4
+ }
1
5
  export interface IElementItem {
2
6
  title: string;
3
7
  icon: string;
4
8
  component: string;
5
9
  }
6
- export declare const Elements: IElementItem[];
10
+ export declare const Elements: IElementSection[];
@@ -0,0 +1,19 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ type ButtonGroupItem = {
3
+ label: string;
4
+ value: any;
5
+ };
6
+ interface IButtonGroupProps {
7
+ context: FormKitFrameworkContext<ButtonGroupItem[]>;
8
+ }
9
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IButtonGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IButtonGroupProps>>>, {}, {}>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToOption<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,15 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ interface IImageUpload {
3
+ context: FormKitFrameworkContext;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IImageUpload>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IImageUpload>>>, {}, {}>;
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,15 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ interface ISwitchProps {
3
+ context: FormKitFrameworkContext;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<ISwitchProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ISwitchProps>>>, {}, {}>;
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,21 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ interface IButtonGroupItem {
3
+ groupItems: {
4
+ icon: string;
5
+ value: string;
6
+ }[];
7
+ }
8
+ interface IButtonGroup {
9
+ context: FormKitFrameworkContext & IButtonGroupItem;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IButtonGroup>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IButtonGroup>>>, {}, {}>;
12
+ export default _default;
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,19 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ type DecoratorContext = {
3
+ fontStyle: string;
4
+ textDecorationLine: string;
5
+ };
6
+ interface IButtonGroup {
7
+ context: FormKitFrameworkContext<DecoratorContext>;
8
+ }
9
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IButtonGroup>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IButtonGroup>>>, {}, {}>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToOption<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,15 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ interface ITextStyleListProps {
3
+ context: FormKitFrameworkContext;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<ITextStyleListProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ITextStyleListProps>>>, {}, {}>;
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
+ };
@@ -3,4 +3,11 @@ import StepperField from './StepperField.vue';
3
3
  import ColorPicker from './ColorPicker.vue';
4
4
  import Select from './Select.vue';
5
5
  import ListRepeater from './ListRepeater.vue';
6
- export { TextField, ColorPicker, Select, StepperField, ListRepeater };
6
+ import TextStyleList from './TextStyleList.vue';
7
+ import TextAlign from './TextAlign.vue';
8
+ import TextDecorators from './TextDecorators.vue';
9
+ import ImageUpload from './ImageUpload.vue';
10
+ import LinkButton from './LinkButton.vue';
11
+ import Switch from './Switch.vue';
12
+ import ButtonGroup from './ButtonGroup.vue';
13
+ export { TextField, ColorPicker, Select, StepperField, ListRepeater, TextStyleList, TextAlign, TextDecorators, ImageUpload, LinkButton, Switch, ButtonGroup };
@@ -1,5 +1,5 @@
1
1
  interface IConfigSectionProps {
2
- label: string;
2
+ label?: string;
3
3
  }
4
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
5
  default?(_: {}): any;
@@ -1,16 +1,13 @@
1
1
  import { type ComputedRef } from 'vue';
2
2
  import type { IConfigTabItemProps } from './ConfigTabItem.vue';
3
+ interface IConfigTabProps {
4
+ title: string;
5
+ }
3
6
  export interface IConfigTabProvider {
4
7
  register: (componentProp: IConfigTabItemProps) => void;
5
8
  currentTab: ComputedRef<string>;
6
9
  }
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
- } | {}, {}>, {
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<IConfigTabProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IConfigTabProps>>>, {}, {}>, {
14
11
  default?(_: {}): any;
15
12
  }>;
16
13
  export default _default;
@@ -19,3 +16,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
19
16
  $slots: S;
20
17
  };
21
18
  };
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToOption<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
@@ -0,0 +1,15 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ title: string;
3
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
4
+ title: string;
5
+ }>>>, {}, {}>;
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
+ };
@@ -4,6 +4,8 @@
4
4
  */
5
5
  export declare function useNodeManager(): {
6
6
  buildNewNode: (nodeType: string, data: any) => INodeComponent;
7
+ copyNode: (node: INodeComponent) => void;
8
+ pasteNode: () => void;
7
9
  };
8
10
  export interface INodeComponent {
9
11
  _id: string;
@@ -1,9 +1,10 @@
1
1
  export declare const ButtonList: {
2
2
  items: {
3
- icon: string;
4
3
  label: string;
4
+ imageUrl: string;
5
+ linkTo: string;
5
6
  }[];
6
- displayStyle: string;
7
+ itemsPerRow: number;
7
8
  paddingTop: string;
8
9
  paddingBottom: string;
9
10
  paddingLeft: string;
@@ -16,4 +17,5 @@ export declare const ButtonList: {
16
17
  borderRadius: string;
17
18
  borderWidth: string;
18
19
  borderColor: string;
20
+ height: string;
19
21
  };
@@ -0,0 +1,22 @@
1
+ export declare const ImageCarousel: {
2
+ items: {
3
+ imageUrl: string;
4
+ linkTo: string;
5
+ }[];
6
+ enableIndicator: boolean;
7
+ autoRotation: boolean;
8
+ rotationInterval: string;
9
+ paddingTop: string;
10
+ paddingBottom: string;
11
+ paddingLeft: string;
12
+ paddingRight: string;
13
+ marginTop: string;
14
+ marginBottom: string;
15
+ marginLeft: string;
16
+ marginRight: string;
17
+ backgroundColor: string;
18
+ borderRadius: string;
19
+ borderWidth: string;
20
+ borderColor: string;
21
+ height: string;
22
+ };
@@ -0,0 +1,2 @@
1
+ import type { FormKitSchemaDefinition } from '@formkit/core';
2
+ export declare const ImageCarousel: FormKitSchemaDefinition;
@@ -1,3 +1,18 @@
1
+ export interface IContainer {
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
+ height?: string;
15
+ }
1
16
  export declare const Container: {
2
17
  paddingTop: string;
3
18
  paddingBottom: string;
@@ -11,4 +26,25 @@ export declare const Container: {
11
26
  borderRadius: string;
12
27
  borderWidth: string;
13
28
  borderColor: string;
29
+ height: string;
30
+ };
31
+ /**
32
+ * To build a default container styling
33
+ * @param style
34
+ * @returns {IContainer}
35
+ */
36
+ export declare const ContainerFactory: (style: IContainer) => {
37
+ paddingTop: string;
38
+ paddingBottom: string;
39
+ paddingLeft: string;
40
+ paddingRight: string;
41
+ marginTop: string;
42
+ marginBottom: string;
43
+ marginLeft: string;
44
+ marginRight: string;
45
+ backgroundColor: string;
46
+ borderRadius: string;
47
+ borderWidth: string;
48
+ borderColor: string;
49
+ height: string;
14
50
  };
@@ -0,0 +1,17 @@
1
+ export declare const ImageDisplay: {
2
+ imageUrl: string;
3
+ linkTo: string;
4
+ paddingTop: string;
5
+ paddingBottom: string;
6
+ paddingLeft: string;
7
+ paddingRight: string;
8
+ marginTop: string;
9
+ marginBottom: string;
10
+ marginLeft: string;
11
+ marginRight: string;
12
+ backgroundColor: string;
13
+ borderRadius: string;
14
+ borderWidth: string;
15
+ borderColor: string;
16
+ height: string;
17
+ };
@@ -0,0 +1,2 @@
1
+ import type { FormKitSchemaDefinition } from '@formkit/core';
2
+ export declare const ImageDisplay: FormKitSchemaDefinition;
@@ -1,5 +1,18 @@
1
1
  export declare const TextDisplay: {
2
2
  textContent: string;
3
+ style: {
4
+ fontSize: string;
5
+ fontStyle: string;
6
+ fontWeight: string;
7
+ lineHeight: string;
8
+ letterSpacing: string;
9
+ color: string;
10
+ textAlign: string;
11
+ textDecorators: {
12
+ fontStyle: string;
13
+ textDecorationLine: string;
14
+ };
15
+ };
3
16
  paddingTop: string;
4
17
  paddingBottom: string;
5
18
  paddingLeft: string;
@@ -12,4 +25,5 @@ export declare const TextDisplay: {
12
25
  borderRadius: string;
13
26
  borderWidth: string;
14
27
  borderColor: string;
28
+ height: string;
15
29
  };