@riverbankcms/sdk 0.160.0 → 0.162.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 (209) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
  2. package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
  3. package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
  4. package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
  5. package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
  6. package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
  8. package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
  10. package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
  11. package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
  12. package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
  13. package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
  14. package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
  15. package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
  16. package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
  17. package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
  18. package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
  19. package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
  20. package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  43. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  45. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  46. package/dist/_dts/sdk/src/server.d.ts +5 -5
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
  49. package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
  50. package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
  51. package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
  52. package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
  53. package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
  54. package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
  55. package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
  56. package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
  57. package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
  58. package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
  59. package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
  60. package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
  61. package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
  62. package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
  63. package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
  64. package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
  65. package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
  66. package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
  67. package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
  68. package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
  69. package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
  70. package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
  72. package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
  73. package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
  74. package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
  75. package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
  76. package/dist/client/bookings.mjs +5 -5
  77. package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
  78. package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
  79. package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
  80. package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
  81. package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
  82. package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
  83. package/dist/client/client.mjs +37 -71
  84. package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
  85. package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
  86. package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
  87. package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
  88. package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
  89. package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
  90. package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
  91. package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
  92. package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
  93. package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
  94. package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
  95. package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
  96. package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
  97. package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
  98. package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
  99. package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
  100. package/dist/client/gifting/client.mjs +3 -3
  101. package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
  102. package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
  103. package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
  104. package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
  105. package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
  106. package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
  107. package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
  108. package/dist/client/portal/client.mjs +1116 -85
  109. package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
  110. package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
  111. package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
  112. package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
  113. package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
  114. package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
  115. package/dist/client/rendering/client.mjs +28 -28
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +18 -9
  118. package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
  119. package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
  120. package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
  121. package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
  122. package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
  124. package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
  125. package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
  126. package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
  127. package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
  128. package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
  129. package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
  130. package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
  131. package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
  132. package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
  133. package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
  134. package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
  135. package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
  136. package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
  137. package/dist/preview-next/before-render.mjs +7 -6
  138. package/dist/preview-next/chrome.css +2 -0
  139. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
  140. package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
  141. package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
  142. package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
  143. package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
  145. package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
  146. package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
  147. package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
  148. package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
  149. package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
  150. package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
  151. package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
  152. package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
  153. package/dist/preview-next/client/runtime.mjs +3 -3
  154. package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
  155. package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
  156. package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
  157. package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
  158. package/dist/preview-next/editor-base.css +2 -2
  159. package/dist/preview-next/keepAlive.mjs +3 -3
  160. package/dist/preview-next/middleware.mjs +7 -3
  161. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  162. package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
  163. package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
  164. package/dist/preview-next/session.mjs +1 -1
  165. package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
  166. package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
  167. package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
  168. package/dist/server/config-validation.mjs +1 -1
  169. package/dist/server/config.mjs +2 -2
  170. package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
  171. package/dist/server/index.mjs +3 -3
  172. package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
  173. package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
  174. package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
  175. package/dist/server/next.mjs +9 -9
  176. package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
  177. package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
  178. package/dist/server/page-converter.mjs +1 -1
  179. package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
  180. package/dist/server/prebuild.mjs +1 -1
  181. package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
  182. package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
  183. package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
  184. package/dist/server/rendering/server.mjs +4 -4
  185. package/dist/server/rendering.mjs +8 -8
  186. package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
  187. package/dist/server/routing.mjs +1 -1
  188. package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
  189. package/dist/server/server.mjs +3 -3
  190. package/dist/server/site-styles-DrkprQPL.mjs +755 -0
  191. package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
  192. package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
  193. package/dist/server/theme-bridge.mjs +1 -1
  194. package/dist/server/theme.mjs +1 -1
  195. package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
  196. package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
  197. package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
  198. package/dist/styles/index.css +1029 -41
  199. package/package.json +1 -1
  200. package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
  201. package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
  202. package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
  203. package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
  204. package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
  205. package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
  206. package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
  207. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
  208. package/dist/server/loadPage-DUPP51C-.mjs +0 -2
  209. package/dist/server/media-CcHwZkdJ.mjs +0 -243
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riverbankcms/sdk",
3
- "version": "0.160.0",
3
+ "version": "0.162.0",
4
4
  "description": "Riverbank CMS SDK for headless content consumption",
5
5
  "main": "./dist/server/index.mjs",
6
6
  "module": "./dist/server/index.mjs",
@@ -1,13 +0,0 @@
1
- import { E as ThemeResponsiveMode } from "./schema-D0bNcPWK.js";
2
- //#region .cache/declarations/theme-core/src/themeRuntime.d.ts
3
- type ThemeRuntime = {
4
- kind: "cms-theme";
5
- responsiveMode?: ThemeResponsiveMode;
6
- } | {
7
- kind: "responsive-only";
8
- responsiveMode?: ThemeResponsiveMode;
9
- } | {
10
- kind: "none";
11
- };
12
- //#endregion
13
- export { ThemeRuntime as t };
@@ -1,135 +0,0 @@
1
- "use client";
2
- import { $ as isRecord } from "./noop-B610YKEx.mjs";
3
- import { useEffect, useRef, useState } from "react";
4
- import { jsx } from "react/jsx-runtime";
5
- //#region ../blocks/src/system/runtime/nodes/shared/LeafletStaticMap.tsx
6
- /**
7
- * LeafletStaticMap
8
- *
9
- * Displays a static Leaflet map with a marker at the provided location.
10
- * Loads Leaflet CSS/JS from CDN to avoid bundling in the blocks package.
11
- */
12
- const LEAFLET_CSS = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";
13
- const LEAFLET_CSS_INTEGRITY = "sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=";
14
- const LEAFLET_JS = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
15
- const LEAFLET_JS_INTEGRITY = "sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=";
16
- let leafletLoaded = false;
17
- let leafletLoadPromise = null;
18
- function isLeafletApi(value) {
19
- if (!isRecord(value)) return false;
20
- return typeof value.map === "function" && typeof value.tileLayer === "function" && typeof value.marker === "function";
21
- }
22
- function loadLeaflet() {
23
- if (leafletLoaded) return Promise.resolve();
24
- if (leafletLoadPromise) return leafletLoadPromise;
25
- leafletLoadPromise = new Promise((resolve, reject) => {
26
- if (typeof window !== "undefined" && isLeafletApi(Reflect.get(window, "L"))) {
27
- leafletLoaded = true;
28
- resolve();
29
- return;
30
- }
31
- const link = document.createElement("link");
32
- link.rel = "stylesheet";
33
- link.href = LEAFLET_CSS;
34
- link.integrity = LEAFLET_CSS_INTEGRITY;
35
- link.crossOrigin = "anonymous";
36
- document.head.appendChild(link);
37
- const script = document.createElement("script");
38
- script.src = LEAFLET_JS;
39
- script.integrity = LEAFLET_JS_INTEGRITY;
40
- script.crossOrigin = "anonymous";
41
- script.async = true;
42
- script.onload = () => {
43
- leafletLoaded = true;
44
- resolve();
45
- };
46
- script.onerror = () => {
47
- leafletLoadPromise = null;
48
- reject(/* @__PURE__ */ new Error("Failed to load Leaflet"));
49
- };
50
- document.head.appendChild(script);
51
- });
52
- return leafletLoadPromise;
53
- }
54
- const LeafletStaticMap = ({ location, label, className = "", height = 200, zoom = 15 }) => {
55
- const mapContainerRef = useRef(null);
56
- const mapRef = useRef(null);
57
- const markerRef = useRef(null);
58
- const [loading, setLoading] = useState(true);
59
- const [error, setError] = useState(null);
60
- useEffect(() => {
61
- let mounted = true;
62
- async function initMap() {
63
- try {
64
- await loadLeaflet();
65
- if (!mounted || !mapContainerRef.current) return;
66
- const L = Reflect.get(window, "L");
67
- if (!isLeafletApi(L)) throw new Error("Leaflet not available");
68
- if (!mapRef.current) {
69
- const map = L.map(mapContainerRef.current, {
70
- scrollWheelZoom: false,
71
- dragging: true,
72
- zoomControl: true
73
- });
74
- L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: "&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>" }).addTo(map);
75
- const marker = L.marker([location.lat, location.lng]);
76
- marker.addTo(map);
77
- map.setView([location.lat, location.lng], zoom);
78
- if (label) marker.bindPopup(label);
79
- mapRef.current = map;
80
- markerRef.current = {
81
- bindPopup(content) {
82
- marker.bindPopup(content);
83
- return this;
84
- },
85
- setLatLng(latlng) {
86
- marker.setLatLng(latlng);
87
- return this;
88
- }
89
- };
90
- }
91
- setLoading(false);
92
- } catch (err) {
93
- if (mounted) {
94
- setError(err instanceof Error ? err.message : "Failed to load map");
95
- setLoading(false);
96
- }
97
- }
98
- }
99
- initMap();
100
- return () => {
101
- mounted = false;
102
- if (mapRef.current) {
103
- mapRef.current.remove();
104
- mapRef.current = null;
105
- markerRef.current = null;
106
- }
107
- };
108
- }, []);
109
- useEffect(() => {
110
- if (!mapRef.current || !markerRef.current) return;
111
- mapRef.current.setView([location.lat, location.lng], zoom);
112
- markerRef.current.setLatLng([location.lat, location.lng]);
113
- if (label) markerRef.current.bindPopup(label);
114
- }, [
115
- location.lat,
116
- location.lng,
117
- label,
118
- zoom
119
- ]);
120
- if (error) return null;
121
- return /* @__PURE__ */ jsx("div", {
122
- ref: mapContainerRef,
123
- className: `leaflet-static-map ${className}`,
124
- style: {
125
- height,
126
- width: "100%",
127
- borderRadius: "0.5rem",
128
- overflow: "hidden",
129
- backgroundColor: loading ? "rgb(var(--tb-surface))" : void 0
130
- },
131
- "aria-label": label ? `Map showing ${label}` : "Location map"
132
- });
133
- };
134
- //#endregion
135
- export { LeafletStaticMap as t };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import { i as normalizeLocationMapProps, t as LocationMapView } from "./location-map.view-Cx4Bl7ij.mjs";
3
- import { t as LeafletStaticMap } from "./LeafletStaticMap-ClZCCzAm.mjs";
4
- import "react";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
- //#region ../blocks/src/system/runtime/nodes/location-map.client.tsx
7
- function LocationMapClient(props) {
8
- const normalized = normalizeLocationMapProps(props);
9
- return /* @__PURE__ */ jsxs("div", {
10
- className: `location-map ${normalized.className ?? ""}`.trim(),
11
- "data-block": "location-map",
12
- children: [/* @__PURE__ */ jsx(LocationMapView, {
13
- ...normalized,
14
- renderMap: ({ addressText, className, height, location, zoom }) => /* @__PURE__ */ jsx(LeafletStaticMap, {
15
- location,
16
- label: addressText ?? void 0,
17
- className,
18
- height,
19
- zoom
20
- })
21
- }), props.children]
22
- });
23
- }
24
- function LocationMapIslandClient(props) {
25
- return /* @__PURE__ */ jsx(LocationMapClient, { ...props });
26
- }
27
- //#endregion
28
- export { LocationMapIslandClient as t };
@@ -1,345 +0,0 @@
1
- "use client";
2
- import { i as ThemedButtonLink, ir as textColorStyle } from "./ThemedButton-C22C9cCF.mjs";
3
- import { St as toScheduledBookingDateTime, _t as parseLocalScheduleTime, ft as formatBookingCompactEnglishTime } from "./noop-B610YKEx.mjs";
4
- import { hn as parseWeeklyOpeningHours } from "./shop.interactive-5SnnDHz3.mjs";
5
- import "react";
6
- import { z } from "zod";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- //#region ../core/src/string.ts
9
- /**
10
- * Trim a user-entered string and collapse blank values to null.
11
- */
12
- function trimmedStringOrNull(value) {
13
- const trimmed = typeof value === "string" ? value.trim() : "";
14
- return trimmed.length > 0 ? trimmed : null;
15
- }
16
- //#endregion
17
- //#region ../core/src/location.ts
18
- /** One complete, finite, bounded arrival pin; zero is a valid coordinate. */
19
- const locationPinSchema = z.strictObject({
20
- lat: z.number().min(-90).max(90),
21
- lng: z.number().min(-180).max(180)
22
- }).readonly().brand();
23
- const addressPart = z.string().trim().max(200).nullish().transform((value) => trimmedStringOrNull(value));
24
- /** Building identifies the place; unit/floor refine it without moving it. */
25
- const locationAddressSchema = z.strictObject({
26
- building: addressPart,
27
- unit: addressPart,
28
- floor: addressPart,
29
- street: addressPart,
30
- locality: addressPart,
31
- region: addressPart,
32
- postalCode: addressPart,
33
- country: addressPart.transform((value) => value?.length === 2 ? value.toUpperCase() : value)
34
- }).readonly().transform((address) => Object.values(address).some((part) => part !== null) ? address : null);
35
- const locationAddressMatchSchema = z.strictObject({
36
- point: locationPinSchema,
37
- precision: z.enum([
38
- "building",
39
- "street",
40
- "area",
41
- "unknown"
42
- ]),
43
- placeId: z.string().trim().max(1024).regex(/^[a-z][a-z0-9-]*:\S+$/),
44
- attribution: z.array(z.strictObject({
45
- text: z.string().trim().min(1).max(500),
46
- url: z.url().max(2048).refine((value) => /^https?:\/\//.test(value))
47
- }).readonly()).min(1).max(4).readonly()
48
- }).readonly();
49
- z.strictObject({
50
- address: locationAddressSchema.nullable().default(null),
51
- pin: locationPinSchema.nullable().default(null),
52
- doorNote: z.string().trim().max(1e3).nullish().transform(trimmedStringOrNull),
53
- addressMatch: locationAddressMatchSchema.nullable().default(null),
54
- ownerConfirmedPinAndAddress: z.boolean().default(false)
55
- }).superRefine((value, context) => {
56
- if (value.address === null && value.pin === null) context.addIssue({
57
- code: "custom",
58
- path: ["address"],
59
- message: "Use null to remove a location."
60
- });
61
- if (value.address === null && value.addressMatch !== null) context.addIssue({
62
- code: "custom",
63
- path: ["addressMatch"],
64
- message: "Address evidence requires an address."
65
- });
66
- if (value.ownerConfirmedPinAndAddress && (value.address === null || value.pin === null)) context.addIssue({
67
- code: "custom",
68
- path: ["ownerConfirmedPinAndAddress"],
69
- message: "Confirmation requires both address and pin."
70
- });
71
- }).readonly();
72
- function normalizeLocationAddressText(value) {
73
- if (typeof value !== "string") return null;
74
- return trimmedStringOrNull(value);
75
- }
76
- function hasLocationCoordinates(value) {
77
- return value != null && typeof value.lat === "number" && Number.isFinite(value.lat) && Math.abs(value.lat) <= 90 && typeof value.lng === "number" && Number.isFinite(value.lng) && Math.abs(value.lng) <= 180;
78
- }
79
- function toLocationCoordinates(value) {
80
- if (!hasLocationCoordinates(value)) return null;
81
- return {
82
- lat: value.lat,
83
- lng: value.lng
84
- };
85
- }
86
- //#endregion
87
- //#region ../core/src/opening-hours.ts
88
- const openingHoursWeekdayLabels = {
89
- monday: "Monday",
90
- tuesday: "Tuesday",
91
- wednesday: "Wednesday",
92
- thursday: "Thursday",
93
- friday: "Friday",
94
- saturday: "Saturday",
95
- sunday: "Sunday"
96
- };
97
- function formatOpeningHoursTime(value) {
98
- const time = parseLocalScheduleTime(value);
99
- return formatBookingCompactEnglishTime(toScheduledBookingDateTime({
100
- startsAt: new Date(Date.UTC(2e3, 0, 1, time.hour, time.minute)).toISOString(),
101
- timeZone: "UTC",
102
- locale: "en-GB"
103
- }));
104
- }
105
- function formatDayHours(day) {
106
- return day.kind === "closed" ? "Closed" : day.intervals.map((interval) => `${formatOpeningHoursTime(interval.opensAt)} to ${formatOpeningHoursTime(interval.closesAt)}`).join(", ");
107
- }
108
- function weekdayRangeLabel(weekdays) {
109
- const first = weekdays[0];
110
- const last = weekdays[weekdays.length - 1];
111
- if (!first || !last) return "";
112
- return first === last ? openingHoursWeekdayLabels[first] : `${openingHoursWeekdayLabels[first]} to ${openingHoursWeekdayLabels[last]}`;
113
- }
114
- /** Monday-first table rows; only adjacent days with identical ranges are grouped. */
115
- function formatOpeningHoursRows(hours) {
116
- return (hours?.days ?? []).reduce((rows, day) => {
117
- const text = formatDayHours(day);
118
- const previous = rows[rows.length - 1];
119
- const weekdays = previous?.kind === day.kind && previous.hours === text ? [...previous.weekdays, day.weekday] : [day.weekday];
120
- const row = {
121
- kind: day.kind,
122
- weekdays,
123
- label: weekdayRangeLabel(weekdays),
124
- hours: text
125
- };
126
- return weekdays.length > 1 ? [...rows.slice(0, -1), row] : [...rows, row];
127
- }, []);
128
- }
129
- //#endregion
130
- //#region ../blocks/src/system/runtime/nodes/location-map.shared.ts
131
- const LOCATION_MAP_DEFAULTS = {
132
- zoom: 15,
133
- heightPx: 320,
134
- showAddressText: true,
135
- showDirections: true,
136
- directionsLabel: "Get directions"
137
- };
138
- const LOCATION_MAP_LIMITS = {
139
- zoom: {
140
- min: 3,
141
- max: 18
142
- },
143
- heightPx: {
144
- min: 200,
145
- max: 600
146
- }
147
- };
148
- function normalizeNumber(value, fallback) {
149
- if (typeof value === "number" && Number.isFinite(value)) return value;
150
- if (typeof value === "string") {
151
- const parsed = Number.parseFloat(value);
152
- if (Number.isFinite(parsed)) return parsed;
153
- }
154
- return fallback;
155
- }
156
- function normalizeOptionalNumber(value) {
157
- if (typeof value === "number" && Number.isFinite(value)) return value;
158
- if (typeof value === "string") {
159
- const parsed = Number.parseFloat(value);
160
- if (Number.isFinite(parsed)) return parsed;
161
- }
162
- return null;
163
- }
164
- function normalizeBoolean(value, fallback) {
165
- if (typeof value === "boolean") return value;
166
- if (typeof value === "string") {
167
- if (value === "true") return true;
168
- if (value === "false") return false;
169
- }
170
- return fallback;
171
- }
172
- function normalizeLocationMapValueRecord(record) {
173
- const normalized = {
174
- addressText: normalizeLocationAddressText(typeof record.addressText === "string" ? record.addressText : typeof record.displayAddress === "string" ? record.displayAddress : null),
175
- lat: normalizeOptionalNumber(record.lat),
176
- lng: normalizeOptionalNumber(record.lng)
177
- };
178
- if (normalized.addressText === null && normalized.lat === null && normalized.lng === null) return null;
179
- return normalized;
180
- }
181
- function normalizeLocationMapValue(value) {
182
- if (typeof value !== "object" || value === null) return null;
183
- return normalizeLocationMapValueRecord(value);
184
- }
185
- function normalizeLocationMapSource(value) {
186
- return value === "business_address" || value === "venue" ? value : "custom";
187
- }
188
- function resolveLocationMapLocation(input) {
189
- const source = normalizeLocationMapSource(input.locationSource);
190
- if (source === "business_address") {
191
- const locationValue = normalizeLocationMapValue(input.businessAddress ?? input.location);
192
- return locationValue ? {
193
- kind: "business_address",
194
- locationValue
195
- } : {
196
- kind: "unresolved",
197
- source,
198
- reason: "missing_business_address"
199
- };
200
- }
201
- if (source === "venue") {
202
- const venueId = typeof input.venueId === "string" && input.venueId.trim() ? input.venueId.trim() : null;
203
- if (!venueId) return {
204
- kind: "unresolved",
205
- source,
206
- reason: "missing_venue_id"
207
- };
208
- const locationValue = input.venuesById ? normalizeLocationMapValue(input.venuesById[venueId] ?? null) : null;
209
- return locationValue ? {
210
- kind: "venue",
211
- venueId,
212
- locationValue
213
- } : {
214
- kind: "unresolved",
215
- source,
216
- reason: "missing_venue_location"
217
- };
218
- }
219
- const locationValue = normalizeLocationMapValue(input.location);
220
- return locationValue ? {
221
- kind: "custom",
222
- locationValue
223
- } : {
224
- kind: "unresolved",
225
- source,
226
- reason: "missing_custom_location"
227
- };
228
- }
229
- function describeUnresolvedLocationMapLocation(resolvedLocation) {
230
- if (resolvedLocation.kind !== "unresolved") return null;
231
- switch (resolvedLocation.reason) {
232
- case "missing_business_address": return "Business address details are not configured yet.";
233
- case "missing_venue_id": return "Choose a venue to show this map.";
234
- case "missing_venue_location": return "The selected venue does not have location details yet.";
235
- case "missing_custom_location": return "Location details coming soon.";
236
- }
237
- }
238
- function normalizeLocationMapProps(input) {
239
- const parsedHours = parseWeeklyOpeningHours(input.openingHours);
240
- const resolvedLocation = resolveLocationMapLocation(input);
241
- const locationValue = resolvedLocation.kind === "unresolved" ? null : resolvedLocation.locationValue;
242
- const directionsLabel = normalizeLocationAddressText(input.directionsLabel) ?? LOCATION_MAP_DEFAULTS.directionsLabel;
243
- return {
244
- resolvedLocation,
245
- locationValue,
246
- unresolvedMessage: describeUnresolvedLocationMapLocation(resolvedLocation),
247
- addressText: locationValue?.addressText ?? null,
248
- location: toLocationCoordinates(locationValue),
249
- zoom: Math.min(LOCATION_MAP_LIMITS.zoom.max, Math.max(LOCATION_MAP_LIMITS.zoom.min, Math.round(normalizeNumber(input.zoom, LOCATION_MAP_DEFAULTS.zoom)))),
250
- heightPx: Math.min(LOCATION_MAP_LIMITS.heightPx.max, Math.max(LOCATION_MAP_LIMITS.heightPx.min, Math.round(normalizeNumber(input.heightPx, LOCATION_MAP_DEFAULTS.heightPx)))),
251
- openingHours: parsedHours.ok ? parsedHours.value : null,
252
- showOpeningHours: normalizeBoolean(input.showOpeningHours, true),
253
- showAddressText: normalizeBoolean(input.showAddressText, LOCATION_MAP_DEFAULTS.showAddressText),
254
- showDirections: normalizeBoolean(input.showDirections, LOCATION_MAP_DEFAULTS.showDirections),
255
- directionsLabel,
256
- className: typeof input.className === "string" ? input.className : null
257
- };
258
- }
259
- function toLocationMapHydrationProps(input) {
260
- const normalized = normalizeLocationMapProps(input);
261
- return {
262
- location: normalized.locationValue,
263
- zoom: normalized.zoom,
264
- heightPx: normalized.heightPx,
265
- openingHours: normalized.openingHours,
266
- showOpeningHours: normalized.showOpeningHours,
267
- showAddressText: normalized.showAddressText,
268
- showDirections: normalized.showDirections,
269
- directionsLabel: normalized.directionsLabel,
270
- className: normalized.className
271
- };
272
- }
273
- function buildGoogleMapsDirectionsUrl(input) {
274
- const destination = input.location ? `${input.location.lat},${input.location.lng}` : normalizeLocationAddressText(input.addressText);
275
- if (!destination) return null;
276
- const url = new URL("https://www.google.com/maps/dir/");
277
- url.searchParams.set("api", "1");
278
- url.searchParams.set("destination", destination);
279
- return url.toString();
280
- }
281
- //#endregion
282
- //#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
283
- function OpeningHoursTable({ hours }) {
284
- if (!hours) return null;
285
- return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("table", { children: [/* @__PURE__ */ jsx("caption", { children: "Opening hours" }), /* @__PURE__ */ jsx("tbody", { children: formatOpeningHoursRows(hours).map((row) => /* @__PURE__ */ jsxs("tr", {
286
- "data-closed": row.kind === "closed" ? true : void 0,
287
- children: [/* @__PURE__ */ jsx("th", {
288
- scope: "row",
289
- children: row.label
290
- }), /* @__PURE__ */ jsx("td", { children: row.hours })]
291
- }, row.label)) })] }), hours.note ? /* @__PURE__ */ jsx("p", { children: hours.note }) : null] });
292
- }
293
- function LocationMapDirections({ url, label }) {
294
- return url ? /* @__PURE__ */ jsx(ThemedButtonLink, {
295
- href: url,
296
- target: "_blank",
297
- rel: "noreferrer",
298
- variant: "ghost",
299
- size: "sm",
300
- extraClassName: "rb-w-fit",
301
- label
302
- }) : null;
303
- }
304
- function LocationMapView(props) {
305
- const { addressText, location, renderMap, zoom, heightPx, showAddressText, directionsLabel } = props;
306
- const directionsUrl = props.showDirections ? buildGoogleMapsDirectionsUrl({
307
- addressText,
308
- location
309
- }) : null;
310
- const hours = props.showOpeningHours === false ? null : props.openingHours ?? null;
311
- if (![
312
- location,
313
- addressText,
314
- directionsUrl,
315
- hours
316
- ].some(Boolean)) return /* @__PURE__ */ jsx("p", {
317
- className: "rb-caption",
318
- style: textColorStyle("mutedText"),
319
- children: props.unresolvedMessage ?? "Location details coming soon."
320
- });
321
- return /* @__PURE__ */ jsxs("div", {
322
- className: "rb-flex rb-flex-col rb-gap-4 rb-text-left",
323
- children: [
324
- location && renderMap ? renderMap({
325
- addressText,
326
- location,
327
- className: "rb-location-map-canvas",
328
- height: heightPx,
329
- zoom
330
- }) : null,
331
- showAddressText && addressText ? /* @__PURE__ */ jsx("p", {
332
- className: "rb-caption",
333
- style: textColorStyle("mutedText"),
334
- children: addressText
335
- }) : null,
336
- /* @__PURE__ */ jsx(OpeningHoursTable, { hours }),
337
- /* @__PURE__ */ jsx(LocationMapDirections, {
338
- url: directionsUrl,
339
- label: directionsLabel
340
- })
341
- ]
342
- });
343
- }
344
- //#endregion
345
- export { normalizeLocationMapSource as a, normalizeLocationMapProps as i, LOCATION_MAP_DEFAULTS as n, toLocationMapHydrationProps as o, LOCATION_MAP_LIMITS as r, LocationMapView as t };
@@ -1,15 +0,0 @@
1
- "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
3
- import { t as LocationMapIslandClient } from "./location-map.client-Cylb_MHw.mjs";
4
- import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
5
- import "react";
6
- import { jsx } from "react/jsx-runtime";
7
- //#region src/rendering/islands/enhancers/locationMap.tsx
8
- const decode = defineIslandPropsDecoder("location-map");
9
- const enhance = (root, props) => {
10
- return mountReactIsland(root, ({ root: reactRoot }) => {
11
- reactRoot.render(/* @__PURE__ */ jsx(LocationMapIslandClient, { ...props }));
12
- });
13
- };
14
- //#endregion
15
- export { decode, enhance };