@feedmepos/mf-brand-app-builder 0.5.22-dev.1 → 0.5.23-dev.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.
Files changed (99) hide show
  1. package/dist/{App-D5eO5srB.js → App-BRIDkK5d.js} +5 -5
  2. package/dist/{AssetsSettings-D_E8q7eK.js → AssetsSettings-DhprCc4v.js} +6 -6
  3. package/dist/{BaDivider-DWZv3fqi.js → BaDivider-Cp9gfB4r.js} +2 -2
  4. package/dist/{BrandkitView-BlJhBYi6.js → BrandkitView-DzLVTHjo.js} +2150 -1931
  5. package/dist/{BuilderView-Dfl1VhES.js → BuilderView-BwXnOIit.js} +427 -444
  6. package/dist/{ButtonGroup-D_HkX122.js → ButtonGroup-2ilMTPHH.js} +2 -2
  7. package/dist/{CircularProgress-h90pbjU3.js → CircularProgress-DdblYCtV.js} +4 -4
  8. package/dist/ColorPicker-RKWzhLBO.js +543 -0
  9. package/dist/{ColorPicker-I6CkNIxt.js → ColorPicker-dVFIiu94.js} +14 -14
  10. package/dist/{Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js → Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js} +2 -2
  11. package/dist/{ImageUpload-FyvXrDKK.js → ImageUpload-OqPKnQQI.js} +9 -9
  12. package/dist/{LinkButton-C9OU3Rcs.js → LinkButton-De-YNclu.js} +4 -4
  13. package/dist/{ListRepeater-BnVoFhhm.js → ListRepeater-DIlTKjtE.js} +2 -2
  14. package/dist/{ManagementSettings-CtvF5d9C.js → ManagementSettings-Cz4HkNm1.js} +4 -4
  15. package/dist/ProjectView-ByxaVBFb.js +428 -0
  16. package/dist/{Select-BRYuMWoQ.js → Select-DQx6OfZx.js} +9 -9
  17. package/dist/{SettingsView-DHA7hXUx.js → SettingsView-uft0uKio.js} +2 -2
  18. package/dist/{StepperField-BeeZ_sl9.js → StepperField-nyaUK9ht.js} +2 -2
  19. package/dist/{Switch-8mmNQUDo.js → Switch-uc_zN-mb.js} +2 -2
  20. package/dist/{TextAlign-BOC8ekaH.js → TextAlign-BSp1Xi7F.js} +2 -2
  21. package/dist/{TextDecorators-BJC4umDR.js → TextDecorators-1C54q7us.js} +4 -4
  22. package/dist/{TextField-BiVH5rLX.js → TextField-DfBJB6vQ.js} +2 -2
  23. package/dist/{TextStyleList-CuPE80Py.js → TextStyleList-Bef3irUx.js} +3 -3
  24. package/dist/{app-CJ2VgCHp.js → app-CY0-wVrG.js} +6513 -3895
  25. package/dist/app.js +1 -1
  26. package/dist/brand-core/src/brandkit.d.ts +5 -0
  27. package/dist/brand-core/src/entity.d.ts +22 -14
  28. package/dist/client/components/src/components/BranchList.vue.d.ts +1 -1
  29. package/dist/client/components/src/components/ButtonList.vue.d.ts +1 -1
  30. package/dist/client/components/src/components/CountrySwitcher.vue.d.ts +1 -1
  31. package/dist/client/components/src/components/Homepage.vue.d.ts +3 -3
  32. package/dist/client/components/src/components/ImageCarousel.vue.d.ts +1 -1
  33. package/dist/client/components/src/components/ImageDisplay.vue.d.ts +1 -1
  34. package/dist/client/components/src/components/Member/TransactionList.vue.d.ts +1 -1
  35. package/dist/client/components/src/components/MemberCard.vue.d.ts +1 -1
  36. package/dist/client/components/src/components/NavigationBar.vue.d.ts +4 -4
  37. package/dist/client/components/src/components/OrderHistoryCard.vue.d.ts +4 -3
  38. package/dist/client/components/src/components/OrderMethod.vue.d.ts +1 -1
  39. package/dist/client/components/src/components/TextDisplay.vue.d.ts +1 -1
  40. package/dist/client/components/src/components/atoms/Button.vue.d.ts +4 -4
  41. package/dist/client/components/src/components/atoms/CircularProgress.vue.d.ts +2 -2
  42. package/dist/client/components/src/components/atoms/Container.vue.d.ts +3 -3
  43. package/dist/client/components/src/components/atoms/Divider.vue.d.ts +1 -1
  44. package/dist/client/components/src/components/atoms/Icon.vue.d.ts +1 -1
  45. package/dist/client/components/src/components/atoms/LinkSlot.vue.d.ts +4 -4
  46. package/dist/client/components/src/views/OrderDetails.vue.d.ts +1 -1
  47. package/dist/client/components/src/views/_Credit.vue.d.ts +1 -1
  48. package/dist/client/components/src/views/_MemberProfile.vue.d.ts +4 -4
  49. package/dist/client/components/src/views/_Point.vue.d.ts +1 -1
  50. package/dist/client/components/src/views/_Referral.vue.d.ts +4 -4
  51. package/dist/client/components/src/views/_ReferralTutorial.vue.d.ts +4 -4
  52. package/dist/client/merchant/src/api/business/index.d.ts +41 -1
  53. package/dist/client/merchant/src/app.d.ts +2614 -0
  54. package/dist/client/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
  55. package/dist/client/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
  56. package/dist/client/merchant/src/components/brandkit/ColorSelection.vue.d.ts +1 -1
  57. package/dist/client/merchant/src/components/editor/Editor.vue.d.ts +1 -1
  58. package/dist/client/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
  59. package/dist/client/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +1 -1
  60. package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
  61. package/dist/client/merchant/src/components/inputs/ColorPicker.vue.d.ts +1 -1
  62. package/dist/client/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
  63. package/dist/client/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
  64. package/dist/client/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
  65. package/dist/client/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
  66. package/dist/client/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
  67. package/dist/client/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +3 -3
  68. package/dist/client/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +3 -3
  69. package/dist/client/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +3 -3
  70. package/dist/client/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
  71. package/dist/client/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +1 -1
  72. package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +3 -3
  73. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +1 -1
  74. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +1 -1
  75. package/dist/client/merchant/src/components/order-template/TemplateVersionHistory.vue.d.ts +18 -0
  76. package/dist/client/merchant/src/components/settings/AssetsSettings.vue.d.ts +1 -1
  77. package/dist/client/merchant/src/components/settings/ManagementSettings.vue.d.ts +1 -1
  78. package/dist/client/merchant/src/components/template/TemplatePreview.vue.d.ts +1 -1
  79. package/dist/client/merchant/src/stores/business/index.d.ts +145 -13
  80. package/dist/client/merchant/src/views/BrandkitView.vue.d.ts +1 -1
  81. package/dist/client/merchant/src/views/BuilderView.vue.d.ts +1 -1
  82. package/dist/client/merchant/src/views/ProjectView.vue.d.ts +1 -1
  83. package/dist/client/merchant/src/views/SettingsView.vue.d.ts +1 -1
  84. package/dist/dayjs.min-DnbY0e60.js +282 -0
  85. package/dist/{image-BtHlnsmY.js → image-D_Djf1PS.js} +1 -1
  86. package/dist/{index-ChMgx2Hq.js → index-Bk6TOZrx.js} +2 -2
  87. package/dist/{index-5BRydZO9.js → index-C1rSMuKA.js} +1 -1
  88. package/dist/index-C4vwWvn_.js +112 -0
  89. package/dist/index-D0LOMBBD.js +1822 -0
  90. package/dist/{main-8cObQmGm.js → main-DzMHu5qo.js} +3536 -3547
  91. package/dist/package.json +4 -3
  92. package/dist/style.css +1 -1
  93. package/dist/{v4-ANoOI1Qw.js → v4-CKwdnpQf.js} +8 -8
  94. package/dist/{vue-sonner-PX6Req0V.js → vue-sonner-CBFYmm8_.js} +129 -125
  95. package/package.json +4 -3
  96. package/dist/ColorPicker-CHzKbuCD.js +0 -543
  97. package/dist/ProjectView-Bq0vBJ3V.js +0 -705
  98. package/dist/index-BEAkOquM.js +0 -90
  99. package/dist/index-BXwbQwb-.js +0 -1736
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { c as i, d as o, i as e, r as m } from "./app-CJ2VgCHp.js";
2
+ import { c as i, d as o, i as e, r as m } from "./app-CY0-wVrG.js";
3
3
  export {
4
4
  i as FmApp,
5
5
  o as FormKitPlugin,
@@ -0,0 +1,5 @@
1
+ import type { BrandKit } from './entity';
2
+ export declare const brandkit: BrandKit;
3
+ export declare function applyBrandKitFromAPI(url: string): Promise<void>;
4
+ export declare function applyBrandKit(kit?: BrandKit, target?: HTMLElement): void;
5
+ export declare function applyBrandkitFeedmeUI(kit?: BrandKit, target?: HTMLElement): void;
@@ -1,4 +1,4 @@
1
- import { type TemplateNode } from "@feedmepos/ordering-ui";
1
+ import { type TemplateNode } from '@feedmepos/ordering-ui';
2
2
  export type BrandFont = {
3
3
  name: string;
4
4
  source: 'google' | 'custom';
@@ -7,6 +7,24 @@ export type BrandFont = {
7
7
  [weight: string]: string;
8
8
  };
9
9
  };
10
+ export type TemplateVersion = {
11
+ version: number;
12
+ template: {
13
+ mainView?: Record<string, unknown>;
14
+ cartView?: Record<string, unknown>;
15
+ };
16
+ createdAt: string;
17
+ createdBy?: string;
18
+ description?: string;
19
+ };
20
+ export type LayoutConfig = {
21
+ template?: {
22
+ mainView?: Record<string, unknown>;
23
+ cartView?: Record<string, unknown>;
24
+ };
25
+ templateHistory?: TemplateVersion[];
26
+ currentVersion?: number;
27
+ };
10
28
  export type BrandKit = {
11
29
  colors: {
12
30
  primary: string;
@@ -39,7 +57,7 @@ export type BrandKit = {
39
57
  heading?: string;
40
58
  body?: string;
41
59
  };
42
- fontFamilies?: {
60
+ fontFamilies: {
43
61
  stylesheet: string;
44
62
  }[];
45
63
  ordering?: {
@@ -53,18 +71,8 @@ export type BrandKit = {
53
71
  };
54
72
  };
55
73
  layout?: {
56
- app?: {
57
- template?: {
58
- mainView?: Record<string, unknown>;
59
- cartView?: Record<string, unknown>;
60
- };
61
- };
62
- kiosk?: {
63
- template?: {
64
- mainView?: Record<string, unknown>;
65
- cartView?: Record<string, unknown>;
66
- };
67
- };
74
+ app?: LayoutConfig;
75
+ kiosk?: LayoutConfig;
68
76
  };
69
77
  };
70
78
  export { type TemplateNode };
@@ -11,5 +11,5 @@ declare const _default: import("vue").DefineComponent<IBranchListProps, {}, {},
11
11
  click: () => any;
12
12
  }, string, import("vue").PublicProps, Readonly<IBranchListProps> & Readonly<{
13
13
  onClick?: (() => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  export default _default;
@@ -17,5 +17,5 @@ declare const _default: import("vue").DefineComponent<IButtonListProps, {}, {},
17
17
  linkClick: (linkTo: ILink) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<IButtonListProps> & Readonly<{
19
19
  onLinkClick?: ((linkTo: ILink) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  export default _default;
@@ -8,5 +8,5 @@ declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {},
8
8
  switchCountry: () => any;
9
9
  }, string, import("vue").PublicProps, Readonly<ITextDisplayProps> & Readonly<{
10
10
  onSwitchCountry?: (() => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
@@ -8,11 +8,11 @@ interface IHomepageProps {
8
8
  hideCountrySwitcher?: boolean;
9
9
  showNavigationBar?: boolean;
10
10
  }
11
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<IHomepageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IHomepageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
12
- default?(_: {}): any;
11
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<IHomepageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IHomepageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
12
+ default?: ((props: {}) => any) | undefined;
13
13
  }>;
14
14
  export default _default;
15
- type __VLS_WithTemplateSlots<T, S> = T & {
15
+ type __VLS_WithSlots<T, S> = T & {
16
16
  new (): {
17
17
  $slots: S;
18
18
  };
@@ -16,5 +16,5 @@ declare const _default: import("vue").DefineComponent<IImageCarousel, {}, {}, {}
16
16
  linkClick: (linkTo: ILink) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<IImageCarousel> & Readonly<{
18
18
  onLinkClick?: ((linkTo: ILink) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  export default _default;
@@ -11,5 +11,5 @@ declare const _default: import("vue").DefineComponent<IImageDisplayProps, {}, {}
11
11
  linkClick: (linkTo: ILink) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<IImageDisplayProps> & Readonly<{
13
13
  onLinkClick?: ((linkTo: ILink) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  export default _default;
@@ -1,5 +1,5 @@
1
1
  type __VLS_Props = {
2
2
  transactions: any[];
3
3
  };
4
- declare const _default: 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>;
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
5
  export default _default;
@@ -41,5 +41,5 @@ declare const _default: import("vue").DefineComponent<IMembershipCardProps, {},
41
41
  primaryColor: string;
42
42
  accentColor: string;
43
43
  textOnPrimaryColor: string;
44
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
45
  export default _default;
@@ -2,15 +2,15 @@ type __VLS_Props = {
2
2
  title?: string;
3
3
  className?: string;
4
4
  };
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
6
  back: () => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onBack?: (() => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLElement>, {
10
- append?(_: {}): any;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
10
+ append?: ((props: {}) => any) | undefined;
11
11
  }>;
12
12
  export default _default;
13
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
14
14
  new (): {
15
15
  $slots: S;
16
16
  };
@@ -5,6 +5,7 @@ interface IOrderHistoryData {
5
5
  orderDate: string;
6
6
  orderType: 'DINE_IN' | 'PICKUP' | 'DELIVERY' | string;
7
7
  orderId: string;
8
+ restaurantId: string;
8
9
  }
9
10
  interface IOrderHistoryCardProps {
10
11
  containerStyles: IContainerProps;
@@ -16,12 +17,12 @@ interface IOrderHistoryCardProps {
16
17
  }
17
18
  declare const _default: import("vue").DefineComponent<IOrderHistoryCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
19
  signIn: () => any;
19
- orderClicked: (orderId: string) => any;
20
+ orderClicked: (orderId: string, restaurantId: string) => any;
20
21
  }, string, import("vue").PublicProps, Readonly<IOrderHistoryCardProps> & Readonly<{
21
22
  onSignIn?: (() => any) | undefined;
22
- onOrderClicked?: ((orderId: string) => any) | undefined;
23
+ onOrderClicked?: ((orderId: string, restaurantId: string) => any) | undefined;
23
24
  }>, {
24
25
  primaryColor: string;
25
26
  textOnPrimaryColor: string;
26
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
28
  export default _default;
@@ -25,5 +25,5 @@ declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {},
25
25
  onDelivery?: (() => any) | undefined;
26
26
  onPickup?: (() => any) | undefined;
27
27
  onQueue?: (() => any) | undefined;
28
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  export default _default;
@@ -17,5 +17,5 @@ interface ITextDisplayProps {
17
17
  };
18
18
  };
19
19
  }
20
- declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ITextDisplayProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ITextDisplayProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  export default _default;
@@ -6,17 +6,17 @@ export interface IButtonProps {
6
6
  textColor?: string;
7
7
  iconColor?: string;
8
8
  }
9
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<IButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IButtonProps> & Readonly<{}>, {
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<IButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IButtonProps> & Readonly<{}>, {
10
10
  type: string;
11
11
  textColor: string;
12
12
  prependIcon: string;
13
13
  appendIcon: string;
14
14
  buttonColor: string;
15
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>, {
16
- default?(_: {}): any;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
16
+ default?: ((props: {}) => any) | undefined;
17
17
  }>;
18
18
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
19
+ type __VLS_WithSlots<T, S> = T & {
20
20
  new (): {
21
21
  $slots: S;
22
22
  };
@@ -4,8 +4,8 @@ export interface FmCircularProgressProps {
4
4
  color?: string;
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<FmCircularProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FmCircularProgressProps> & Readonly<{}>, {
7
- size: "md" | "lg" | "xxl" | "xl";
8
7
  color: string;
8
+ size: "md" | "lg" | "xxl" | "xl";
9
9
  indeterminate: boolean;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -15,11 +15,11 @@ export interface IContainerProps {
15
15
  height: string;
16
16
  boxShadow: string;
17
17
  }
18
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Partial<IContainerProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Partial<IContainerProps>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
19
- default?(_: {}): any;
18
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Partial<IContainerProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Partial<IContainerProps>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
19
+ default?: ((props: {}) => any) | undefined;
20
20
  }>;
21
21
  export default _default;
22
- type __VLS_WithTemplateSlots<T, S> = T & {
22
+ type __VLS_WithSlots<T, S> = T & {
23
23
  new (): {
24
24
  $slots: S;
25
25
  };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -4,5 +4,5 @@ interface IIconProps {
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<IIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IIconProps> & Readonly<{}>, {
6
6
  filled: boolean;
7
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLSpanElement>;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
@@ -5,15 +5,15 @@ export interface ILink {
5
5
  interface ILinkSlotProps {
6
6
  linkTo: ILink;
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<ILinkSlotProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ILinkSlotProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
9
  linkClick: (linkTo: ILink) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<ILinkSlotProps> & Readonly<{
11
11
  onLinkClick?: ((linkTo: ILink) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
13
- default?(_: {}): any;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
13
+ default?: ((props: {}) => any) | undefined;
14
14
  }>;
15
15
  export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
16
+ type __VLS_WithSlots<T, S> = T & {
17
17
  new (): {
18
18
  $slots: S;
19
19
  };
@@ -5,5 +5,5 @@ declare const _default: import("vue").DefineComponent<IOrderDetailsProps, {}, {}
5
5
  back: () => any;
6
6
  }, string, import("vue").PublicProps, Readonly<IOrderDetailsProps> & Readonly<{
7
7
  onBack?: (() => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  export default _default;
@@ -20,5 +20,5 @@ declare const _default: import("vue").DefineComponent<IHistoryPageProps, {}, {},
20
20
  }, string, import("vue").PublicProps, Readonly<IHistoryPageProps> & Readonly<{
21
21
  onBack?: (() => any) | undefined;
22
22
  "onView-all"?: (() => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -17,17 +17,17 @@ interface MemberProfileProps {
17
17
  };
18
18
  };
19
19
  }
20
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MemberProfileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<MemberProfileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  [x: string]: any;
22
22
  } & {
23
23
  [x: string]: any;
24
24
  }, string, import("vue").PublicProps, Readonly<MemberProfileProps> & Readonly<{
25
25
  [x: `on${Capitalize<any>}`]: ((...args: any[] | unknown[]) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
27
- default?(_: {}): any;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
27
+ default?: ((props: {}) => any) | undefined;
28
28
  }>;
29
29
  export default _default;
30
- type __VLS_WithTemplateSlots<T, S> = T & {
30
+ type __VLS_WithSlots<T, S> = T & {
31
31
  new (): {
32
32
  $slots: S;
33
33
  };
@@ -20,5 +20,5 @@ declare const _default: import("vue").DefineComponent<IHistoryPageProps, {}, {},
20
20
  }, string, import("vue").PublicProps, Readonly<IHistoryPageProps> & Readonly<{
21
21
  onBack?: (() => any) | undefined;
22
22
  "onView-all"?: (() => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  submitReferrerCodeError?: string;
7
7
  } | null;
8
8
  };
9
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
10
  back: () => any;
11
11
  "copy-code": (code: string) => any;
12
12
  "share-code": (code: string) => any;
@@ -20,11 +20,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
20
  "onSubmit-code"?: ((code: string) => any) | undefined;
21
21
  "onInvite-history"?: (() => any) | undefined;
22
22
  "onHow-it-works"?: (() => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
24
- default?(_: {}): any;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
24
+ default?: ((props: {}) => any) | undefined;
25
25
  }>;
26
26
  export default _default;
27
- type __VLS_WithTemplateSlots<T, S> = T & {
27
+ type __VLS_WithSlots<T, S> = T & {
28
28
  new (): {
29
29
  $slots: S;
30
30
  };
@@ -7,17 +7,17 @@ type __VLS_Props = {
7
7
  programName: string;
8
8
  };
9
9
  };
10
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
11
  back: () => any;
12
12
  tnc: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
14
  onBack?: (() => any) | undefined;
15
15
  onTnc?: (() => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
17
- default?(_: {}): any;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
17
+ default?: ((props: {}) => any) | undefined;
18
18
  }>;
19
19
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
20
+ type __VLS_WithSlots<T, S> = T & {
21
21
  new (): {
22
22
  $slots: S;
23
23
  };
@@ -1,5 +1,5 @@
1
1
  import { type IBaResponse } from '..';
2
- import type { BrandKit } from '@feedmepos/brand-core';
2
+ import type { BrandKit, TemplateVersion } from '../../../../../brand-core/src/entity';
3
3
  /**
4
4
  * Get all business and country info from top-level slug
5
5
  * @param slug
@@ -35,6 +35,43 @@ declare function getBusinessBrandkit(businessId: string): Promise<BrandKit>;
35
35
  * @param businessId
36
36
  */
37
37
  declare function setBusinessBrandkit(businessId: string, brandkit: BrandKit): Promise<unknown>;
38
+ /**
39
+ * Get template version history for a specific target (app or kiosk)
40
+ * @param businessId
41
+ * @param target - 'app' or 'kiosk'
42
+ */
43
+ declare function getTemplateHistory(businessId: string, target: 'app' | 'kiosk'): Promise<{
44
+ currentVersion: number;
45
+ templateHistory: TemplateVersion[];
46
+ currentTemplate: {
47
+ mainView?: Record<string, unknown>;
48
+ cartView?: Record<string, unknown>;
49
+ } | null;
50
+ }>;
51
+ /**
52
+ * Restore a specific template version
53
+ * @param businessId
54
+ * @param target - 'app' or 'kiosk'
55
+ * @param version - version number to restore
56
+ */
57
+ declare function restoreTemplateVersion(businessId: string, target: 'app' | 'kiosk', version: number): Promise<{
58
+ message: string;
59
+ data: {
60
+ restoredTemplate: {
61
+ mainView?: Record<string, unknown>;
62
+ cartView?: Record<string, unknown>;
63
+ };
64
+ newVersion: number;
65
+ };
66
+ }>;
67
+ /**
68
+ * Clear template version history for a specific target (app or kiosk)
69
+ * @param businessId
70
+ * @param target - 'app' or 'kiosk'
71
+ */
72
+ declare function clearTemplateHistory(businessId: string, target: 'app' | 'kiosk'): Promise<{
73
+ message: string;
74
+ }>;
38
75
  declare function updateBusinessProfile(businessId: string, payload: IBusinessProfilePayload): Promise<any>;
39
76
  declare function getBusinessPremiumStatus(businessId: string): Promise<boolean>;
40
77
  export declare const BusinessApi: {
@@ -44,6 +81,9 @@ export declare const BusinessApi: {
44
81
  setBusinessMetadata: typeof setBusinessMetadata;
45
82
  getBusinessBrandkit: typeof getBusinessBrandkit;
46
83
  setBusinessBrandkit: typeof setBusinessBrandkit;
84
+ getTemplateHistory: typeof getTemplateHistory;
85
+ restoreTemplateVersion: typeof restoreTemplateVersion;
86
+ clearTemplateHistory: typeof clearTemplateHistory;
47
87
  updateBusinessProfile: typeof updateBusinessProfile;
48
88
  getBusinessPremiumStatus: typeof getBusinessPremiumStatus;
49
89
  };