@feedmepos/mf-brand-app-builder 0.5.22-dev.0 → 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 (203) hide show
  1. package/dist/{App-DSjCJtmn.js → App-BRIDkK5d.js} +5 -5
  2. package/dist/{AssetsSettings-e8FjbJ_2.js → AssetsSettings-DhprCc4v.js} +6 -6
  3. package/dist/{BaDivider-DWZv3fqi.js → BaDivider-Cp9gfB4r.js} +2 -2
  4. package/dist/{BrandkitView-YRlmRZnS.js → BrandkitView-DzLVTHjo.js} +2867 -2033
  5. package/dist/{BuilderView-BLM7vEZA.js → BuilderView-BwXnOIit.js} +460 -474
  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-CDR7v2YB.js → ImageUpload-OqPKnQQI.js} +9 -9
  12. package/dist/{LinkButton-DvF93Arq.js → LinkButton-De-YNclu.js} +4 -4
  13. package/dist/{ListRepeater-Dri1M_Xh.js → ListRepeater-DIlTKjtE.js} +2 -2
  14. package/dist/{ManagementSettings-CROYjeuM.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-OPl2Khtq.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 +89 -0
  28. package/dist/{components → client/components}/src/components/BranchList.vue.d.ts +1 -1
  29. package/dist/{components → client/components}/src/components/ButtonList.vue.d.ts +1 -1
  30. package/dist/{components → client/components}/src/components/CountrySwitcher.vue.d.ts +1 -1
  31. package/dist/client/components/src/components/Homepage.vue.d.ts +19 -0
  32. package/dist/{components → client/components}/src/components/ImageCarousel.vue.d.ts +1 -1
  33. package/dist/{components → client/components}/src/components/ImageDisplay.vue.d.ts +1 -1
  34. package/dist/{components → client/components}/src/components/Member/TransactionList.vue.d.ts +1 -1
  35. package/dist/{components → client/components}/src/components/MemberCard.vue.d.ts +1 -1
  36. package/dist/{components → client/components}/src/components/NavigationBar.vue.d.ts +4 -4
  37. package/dist/{components → client/components}/src/components/OrderHistoryCard.vue.d.ts +4 -3
  38. package/dist/{components → client/components}/src/components/OrderMethod.vue.d.ts +1 -1
  39. package/dist/{components → client/components}/src/components/TextDisplay.vue.d.ts +1 -1
  40. package/dist/{components → client/components}/src/components/atoms/Button.vue.d.ts +4 -4
  41. package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts +2 -2
  42. package/dist/{components → client/components}/src/components/atoms/Container.vue.d.ts +3 -3
  43. package/dist/{components → client/components}/src/components/atoms/Icon.vue.d.ts +1 -1
  44. package/dist/{components → client/components}/src/components/atoms/LinkSlot.vue.d.ts +4 -4
  45. package/dist/{components → client/components}/src/views/OrderDetails.vue.d.ts +1 -1
  46. package/dist/{components → client/components}/src/views/_Credit.vue.d.ts +1 -1
  47. package/dist/{components → client/components}/src/views/_MemberProfile.vue.d.ts +4 -4
  48. package/dist/{components → client/components}/src/views/_Point.vue.d.ts +1 -1
  49. package/dist/{components → client/components}/src/views/_Referral.vue.d.ts +4 -4
  50. package/dist/{components → client/components}/src/views/_ReferralTutorial.vue.d.ts +4 -4
  51. package/dist/{merchant → client/merchant}/src/api/business/index.d.ts +41 -1
  52. package/dist/{merchant → client/merchant}/src/app.d.ts +2614 -0
  53. package/dist/{merchant → client/merchant}/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
  54. package/dist/{merchant → client/merchant}/src/components/brandkit/ColorSelection.vue.d.ts +1 -1
  55. package/dist/client/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +2 -0
  56. package/dist/client/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +2 -0
  57. package/dist/client/merchant/src/components/editor/toolbar/PreviewQrCode.vue.d.ts +2 -0
  58. package/dist/client/merchant/src/components/editor/toolbar/TemplatePicker.vue.d.ts +2 -0
  59. package/dist/client/merchant/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts +2 -0
  60. package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +2 -0
  61. package/dist/{merchant → client/merchant}/src/components/inputs/ColorPicker.vue.d.ts +1 -1
  62. package/dist/{merchant → client/merchant}/src/components/inputs/ImageUpload.vue.d.ts +1 -1
  63. package/dist/{merchant → client/merchant}/src/components/inputs/TextAlign.vue.d.ts +1 -1
  64. package/dist/{merchant → client/merchant}/src/components/inputs/TextDecorators.vue.d.ts +1 -1
  65. package/dist/{merchant → client/merchant}/src/components/inputs/TextStyleList.vue.d.ts +1 -1
  66. package/dist/client/merchant/src/components/inspector/Inspector.vue.d.ts +2 -0
  67. package/dist/client/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +12 -0
  68. package/dist/client/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +18 -0
  69. package/dist/client/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +13 -0
  70. package/dist/{merchant → 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 +2 -0
  72. package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +14 -0
  73. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +10 -0
  74. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +14 -0
  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 +2 -0
  77. package/dist/client/merchant/src/components/settings/ManagementSettings.vue.d.ts +2 -0
  78. package/dist/{merchant → client/merchant}/src/components/template/TemplatePreview.vue.d.ts +1 -1
  79. package/dist/{merchant → client/merchant}/src/stores/business/index.d.ts +217 -1
  80. package/dist/client/merchant/src/views/BrandkitView.vue.d.ts +2 -0
  81. package/dist/{merchant → client/merchant}/src/views/BuilderView.vue.d.ts +1 -1
  82. package/dist/client/merchant/src/views/ProjectView.vue.d.ts +2 -0
  83. package/dist/client/merchant/src/views/SettingsView.vue.d.ts +2 -0
  84. package/dist/dayjs.min-DnbY0e60.js +282 -0
  85. package/dist/{image-HDqbMgOR.js → image-D_Djf1PS.js} +1 -1
  86. package/dist/{index-V999lx_3.js → index-Bk6TOZrx.js} +2 -2
  87. package/dist/{index-BodukiEf.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--RZvbXYz.js → main-DzMHu5qo.js} +3566 -3577
  91. package/dist/package.json +7 -4
  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 +7 -4
  96. package/dist/ColorPicker-CHzKbuCD.js +0 -543
  97. package/dist/ProjectView-Tb44Sm_z.js +0 -705
  98. package/dist/components/src/components/Homepage.vue.d.ts +0 -19
  99. package/dist/components/src/components/atoms/Divider.vue.d.ts +0 -2
  100. package/dist/index-CvbnxMT4.js +0 -1736
  101. package/dist/index-DbvZZQr6.js +0 -90
  102. package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +0 -2
  103. package/dist/merchant/src/components/editor/Editor.vue.d.ts +0 -2
  104. package/dist/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +0 -2
  105. package/dist/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +0 -2
  106. package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +0 -2
  107. package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +0 -2
  108. package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +0 -12
  109. package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +0 -18
  110. package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +0 -13
  111. package/dist/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +0 -2
  112. package/dist/merchant/src/components/settings/AssetsSettings.vue.d.ts +0 -2
  113. package/dist/merchant/src/components/settings/ManagementSettings.vue.d.ts +0 -2
  114. package/dist/merchant/src/views/BrandkitView.vue.d.ts +0 -2
  115. package/dist/merchant/src/views/ProjectView.vue.d.ts +0 -2
  116. package/dist/merchant/src/views/SettingsView.vue.d.ts +0 -2
  117. /package/dist/{components → client/components}/src/components/Member/MemberAchievements.vue.d.ts +0 -0
  118. /package/dist/{components → client/components}/src/components/Member/MemberCards.vue.d.ts +0 -0
  119. /package/dist/{components → client/components}/src/components/Member/MemberSummary.vue.d.ts +0 -0
  120. /package/dist/{merchant/src/App.vue.d.ts → client/components/src/components/atoms/Divider.vue.d.ts} +0 -0
  121. /package/dist/{components → client/components}/src/components/atoms/OrderTypeChip.vue.d.ts +0 -0
  122. /package/dist/{components → client/components}/src/i18n.d.ts +0 -0
  123. /package/dist/{components → client/components}/src/main.d.ts +0 -0
  124. /package/dist/{components → client/components}/src/utils/date.d.ts +0 -0
  125. /package/dist/{components → client/components}/src/utils/image.d.ts +0 -0
  126. /package/dist/{merchant/src/Entry.vue.d.ts → client/merchant/src/App.vue.d.ts} +0 -0
  127. /package/dist/{merchant/src/components/editor/toolbar/PreviewQrCode.vue.d.ts → client/merchant/src/Entry.vue.d.ts} +0 -0
  128. /package/dist/{merchant → client/merchant}/src/api/image/index.d.ts +0 -0
  129. /package/dist/{merchant → client/merchant}/src/api/index.d.ts +0 -0
  130. /package/dist/{merchant → client/merchant}/src/api/template/index.d.ts +0 -0
  131. /package/dist/{merchant/src/components/editor/toolbar/TemplatePicker.vue.d.ts → client/merchant/src/components/atoms/BaDivider.vue.d.ts} +0 -0
  132. /package/dist/{merchant → client/merchant}/src/components/atoms/index.d.ts +0 -0
  133. /package/dist/{merchant/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts → client/merchant/src/components/editor/Editor.vue.d.ts} +0 -0
  134. /package/dist/{merchant → client/merchant}/src/components/element-sidebar/all-elements.d.ts +0 -0
  135. /package/dist/{merchant → client/merchant}/src/components/inputs/ButtonGroup.vue.d.ts +0 -0
  136. /package/dist/{merchant → client/merchant}/src/components/inputs/LinkBrandkitColor.vue.d.ts +0 -0
  137. /package/dist/{merchant → client/merchant}/src/components/inputs/LinkButton.vue.d.ts +0 -0
  138. /package/dist/{merchant → client/merchant}/src/components/inputs/ListRepeater.vue.d.ts +0 -0
  139. /package/dist/{merchant → client/merchant}/src/components/inputs/Select.vue.d.ts +0 -0
  140. /package/dist/{merchant → client/merchant}/src/components/inputs/StepperField.vue.d.ts +0 -0
  141. /package/dist/{merchant → client/merchant}/src/components/inputs/Switch.vue.d.ts +0 -0
  142. /package/dist/{merchant → client/merchant}/src/components/inputs/TextField.vue.d.ts +0 -0
  143. /package/dist/{merchant → client/merchant}/src/components/inputs/index.d.ts +0 -0
  144. /package/dist/{merchant → client/merchant}/src/components/modals/TemplateSelectionModal.vue.d.ts +0 -0
  145. /package/dist/{merchant → client/merchant}/src/composables/useNode/index.d.ts +0 -0
  146. /package/dist/{merchant → client/merchant}/src/composables/useToast/index.d.ts +0 -0
  147. /package/dist/{merchant → client/merchant}/src/config/defaultTemplateConfig.d.ts +0 -0
  148. /package/dist/{merchant → client/merchant}/src/helpers/businessUrl.d.ts +0 -0
  149. /package/dist/{merchant → client/merchant}/src/main.d.ts +0 -0
  150. /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/props.d.ts +0 -0
  151. /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/schema.d.ts +0 -0
  152. /package/dist/{merchant → client/merchant}/src/node-configs/button-list/props.d.ts +0 -0
  153. /package/dist/{merchant → client/merchant}/src/node-configs/button-list/schema.d.ts +0 -0
  154. /package/dist/{merchant → client/merchant}/src/node-configs/carousel/props.d.ts +0 -0
  155. /package/dist/{merchant → client/merchant}/src/node-configs/carousel/schema.d.ts +0 -0
  156. /package/dist/{merchant → client/merchant}/src/node-configs/container/props.d.ts +0 -0
  157. /package/dist/{merchant → client/merchant}/src/node-configs/container/schema.d.ts +0 -0
  158. /package/dist/{merchant → client/merchant}/src/node-configs/display-image/props.d.ts +0 -0
  159. /package/dist/{merchant → client/merchant}/src/node-configs/display-image/schema.d.ts +0 -0
  160. /package/dist/{merchant → client/merchant}/src/node-configs/display-text/props.d.ts +0 -0
  161. /package/dist/{merchant → client/merchant}/src/node-configs/display-text/schema.d.ts +0 -0
  162. /package/dist/{merchant → client/merchant}/src/node-configs/homepage/props.d.ts +0 -0
  163. /package/dist/{merchant → client/merchant}/src/node-configs/homepage/schema.d.ts +0 -0
  164. /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/mock-data.d.ts +0 -0
  165. /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/props.d.ts +0 -0
  166. /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/schema.d.ts +0 -0
  167. /package/dist/{merchant → client/merchant}/src/node-configs/member-card/mock-data.d.ts +0 -0
  168. /package/dist/{merchant → client/merchant}/src/node-configs/member-card/props.d.ts +0 -0
  169. /package/dist/{merchant → client/merchant}/src/node-configs/member-card/schema.d.ts +0 -0
  170. /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/mock-data.d.ts +0 -0
  171. /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/props.d.ts +0 -0
  172. /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/schema.d.ts +0 -0
  173. /package/dist/{merchant → client/merchant}/src/node-configs/member-history/mock-data.d.ts +0 -0
  174. /package/dist/{merchant → client/merchant}/src/node-configs/member-history/props.d.ts +0 -0
  175. /package/dist/{merchant → client/merchant}/src/node-configs/member-history/schema.d.ts +0 -0
  176. /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/props.d.ts +0 -0
  177. /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/schema.d.ts +0 -0
  178. /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/props.d.ts +0 -0
  179. /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/schema.d.ts +0 -0
  180. /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/props.d.ts +0 -0
  181. /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/schema.d.ts +0 -0
  182. /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/mock-data.d.ts +0 -0
  183. /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/props.d.ts +0 -0
  184. /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/schema.d.ts +0 -0
  185. /package/dist/{merchant → client/merchant}/src/node-configs/mock-data.d.ts +0 -0
  186. /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/mock-data.d.ts +0 -0
  187. /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/props.d.ts +0 -0
  188. /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/schema.d.ts +0 -0
  189. /package/dist/{merchant → client/merchant}/src/node-configs/order-method/props.d.ts +0 -0
  190. /package/dist/{merchant → client/merchant}/src/node-configs/order-method/schema.d.ts +0 -0
  191. /package/dist/{merchant → client/merchant}/src/node-configs/props.d.ts +0 -0
  192. /package/dist/{merchant → client/merchant}/src/node-configs/schema.d.ts +0 -0
  193. /package/dist/{merchant → client/merchant}/src/plugin/formkit-i18n.d.ts +0 -0
  194. /package/dist/{merchant → client/merchant}/src/plugin/formkit.d.ts +0 -0
  195. /package/dist/{merchant → client/merchant}/src/plugin/i18n.d.ts +0 -0
  196. /package/dist/{merchant → client/merchant}/src/router/index.d.ts +0 -0
  197. /package/dist/{merchant → client/merchant}/src/router/shared.d.ts +0 -0
  198. /package/dist/{merchant → client/merchant}/src/stores/editor/index.d.ts +0 -0
  199. /package/dist/{merchant → client/merchant}/src/stores/template/index.d.ts +0 -0
  200. /package/dist/{merchant → client/merchant}/src/utils/deep-to-raw.d.ts +0 -0
  201. /package/dist/{merchant → client/merchant}/src/utils/image.d.ts +0 -0
  202. /package/dist/{merchant → client/merchant}/src/utils/provider-keys.d.ts +0 -0
  203. /package/dist/{merchant → client/merchant}/src/views/views.d.ts +0 -0
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-OPl2Khtq.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;
@@ -0,0 +1,89 @@
1
+ import { type TemplateNode } from '@feedmepos/ordering-ui';
2
+ export type BrandFont = {
3
+ name: string;
4
+ source: 'google' | 'custom';
5
+ weights: string[];
6
+ files: {
7
+ [weight: string]: string;
8
+ };
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
+ };
28
+ export type BrandKit = {
29
+ colors: {
30
+ primary: string;
31
+ secondary: string;
32
+ accent: string;
33
+ background: {
34
+ base: string;
35
+ elevated: string;
36
+ };
37
+ neutral: {
38
+ light: string;
39
+ mid: string;
40
+ dark: string;
41
+ };
42
+ status: {
43
+ success: string;
44
+ warning: string;
45
+ error: string;
46
+ info?: string;
47
+ };
48
+ text: {
49
+ onPrimary: string;
50
+ primary: string;
51
+ secondary: string;
52
+ tertiary: string;
53
+ };
54
+ };
55
+ fonts: {
56
+ brand: string;
57
+ heading?: string;
58
+ body?: string;
59
+ };
60
+ fontFamilies: {
61
+ stylesheet: string;
62
+ }[];
63
+ ordering?: {
64
+ app: {
65
+ category: 'HORIZONTAL' | 'VERTICAL';
66
+ items: 'LIST' | 'GRID';
67
+ singleCategory: boolean;
68
+ };
69
+ kiosk: {
70
+ category: 'HORIZONTAL' | 'VERTICAL';
71
+ };
72
+ };
73
+ layout?: {
74
+ app?: LayoutConfig;
75
+ kiosk?: LayoutConfig;
76
+ };
77
+ };
78
+ export { type TemplateNode };
79
+ export type FdoMetadata = {
80
+ type: 'BUSINESS' | 'RESTAURANT';
81
+ country: string;
82
+ pwaConfig: {
83
+ short_name: string;
84
+ name: string;
85
+ background_color: string;
86
+ theme_color: string;
87
+ };
88
+ brandkit: BrandKit | null;
89
+ };
@@ -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;
@@ -0,0 +1,19 @@
1
+ interface IHomepageProps {
2
+ data: any;
3
+ paddingTop?: string;
4
+ paddingBottom?: string;
5
+ paddingLeft?: string;
6
+ paddingRight?: string;
7
+ backgroundColor?: string;
8
+ hideCountrySwitcher?: boolean;
9
+ showNavigationBar?: boolean;
10
+ }
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
+ }>;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -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
  };
@@ -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
  };