@riverbankcms/sdk 0.169.1 → 0.171.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 (227) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-DEhlJEwj.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
  3. package/dist/_dts/{Page-BhCfStX1.d.ts → Page-4fzXy8H9.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-DSYdsdmJ.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
  5. package/dist/_dts/{client-BZMn4Y99.d.ts → client-BPoU758C.d.ts} +32 -1
  6. package/dist/_dts/{content-types-EMK-E_r9.d.ts → content-types-TnkhoSls.d.ts} +3 -3
  7. package/dist/_dts/{contracts-DjYsGY3B.d.ts → contracts-7wrMA79U.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BtYUi-m0.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-D_fNTi5r.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
  10. package/dist/_dts/{index-NaRauKDR.d.ts → index-585vn6qb.d.ts} +72 -36
  11. package/dist/_dts/{index-BR0i0c3G.d.ts → index-CZKSUcDs.d.ts} +4 -4
  12. package/dist/_dts/{index-BV-qVnt7.d.ts → index-Cbw0IiY7.d.ts} +2 -2
  13. package/dist/_dts/{index-DgEwZ5WQ.d.ts → index-ChNbrcgD.d.ts} +1 -1
  14. package/dist/_dts/{index-QIbYMeI7.d.ts → index-DDKJfaLY.d.ts} +2 -2
  15. package/dist/_dts/{index-BzguBJzR.d.ts → index-DNCDENic.d.ts} +1 -1
  16. package/dist/_dts/{index-BYYhTQ_b.d.ts → index-W9R3Bnf2.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-BmGH6NKl.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
  18. package/dist/_dts/{request-DssgRQSm.d.ts → request-jXTRN1Y4.d.ts} +45927 -42247
  19. package/dist/_dts/{resolveBlockData-5BqNxwL8.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-DIuwuFA7.d.ts → resolvePageContent-BBgih00D.d.ts} +2 -2
  21. package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +7 -7
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
  55. package/dist/_dts/{types-cObpvZGF.d.ts → types-BXuVxDYo.d.ts} +2 -2
  56. package/dist/_dts/{types-DrAWDtqR.d.ts → types-DEAKoDNi.d.ts} +3 -3
  57. package/dist/_dts/{types-Z388-GR1.d.ts → types-kWvBwYK6.d.ts} +7 -7
  58. package/dist/_dts/{validation-hLr8zVrc.d.ts → validation-BAO0_ntM.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-CN2GyuuA.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-DSnSBNeq.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-ucgdMS35.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-BEdfJGpx.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-OpLehMpT.mjs → EventItem-BnwcoFQN.mjs} +13 -9
  70. package/dist/client/{EventListWeekNavigation-DTsVU6gc.mjs → EventListWeekNavigation-DuG6z02f.mjs} +2 -1
  71. package/dist/client/{EventListing.client-8MFGI9BA.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
  72. package/dist/client/{EventListing.view-BCvRqU86.mjs → EventListing.view-BM7rTVSL.mjs} +42 -397
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.mjs} +13 -13
  74. package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
  76. package/dist/client/Page-DH2sm4Cf.mjs +30247 -0
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-CsRlU46Y.mjs +894 -0
  79. package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
  80. package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
  81. package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-Bbn1-jJ8.mjs} +52 -2
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-B-M5l__W.mjs → cart-BozMM5NK.mjs} +3 -3
  90. package/dist/client/{cart.client-COAP4CEy.mjs → cart.client-CqOOxPbW.mjs} +1 -1
  91. package/dist/client/{checkout-ZHc8GfaG.mjs → checkout-CTWF5nbB.mjs} +3 -3
  92. package/dist/client/{checkout.client-DRralR3e.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
  94. package/dist/client/client.mjs +640 -226
  95. package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
  96. package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
  97. package/dist/client/{cta-CfuyGqXL.mjs → cta-pzQkBLgS.mjs} +2 -2
  98. package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
  100. package/dist/client/{display-DDNmyb0z.mjs → display-Cl6mgSJa.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
  104. package/dist/client/{eventCalendar-BY3AfYkK.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
  105. package/dist/client/{eventCombined-86P2vQCb.mjs → eventCombined-dELKxxIe.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
  107. package/dist/client/{eventListing-8jS0qGGC.mjs → eventListing-B2HTUWLq.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
  109. package/dist/client/form-DX70QG-J.mjs +27 -0
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.mjs} +3 -3
  112. package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
  113. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  114. package/dist/client/gifting/client.mjs +3 -3
  115. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
  116. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
  117. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
  118. package/dist/client/{newsletterForm-o5wFBVHv.mjs → newsletterForm-D1MHoPbh.mjs} +5 -26
  119. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  120. package/dist/client/portal/client.mjs +294 -48
  121. package/dist/client/{product-detail.client-5hNA8aKU.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
  122. package/dist/client/{product-list.client-c-777ohj.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
  123. package/dist/client/{productDetail-hXttfQhE.mjs → productDetail-BN3zv5sa.mjs} +3 -3
  124. package/dist/client/{productList-BPsYP_jA.mjs → productList-GN_Id4bF.mjs} +3 -3
  125. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
  126. package/dist/client/{registry.server-CMrdUGGv.mjs → registry.server-BOyra8CA.mjs} +1032 -925
  127. package/dist/client/rendering/client.mjs +57 -32
  128. package/dist/client/rendering/islandDelivery.flight.mjs +43 -10
  129. package/dist/client/rendering/islands.mjs +1 -1
  130. package/dist/client/rendering.mjs +1956 -191
  131. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  132. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
  133. package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
  135. package/dist/client/{shop-Ds47onRS.mjs → shop-LjBLDBqF.mjs} +3 -3
  136. package/dist/client/{shop-commerce-B3PyRHaN.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
  137. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
  138. package/dist/client/{shop.client-RljK0qPB.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
  139. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
  140. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
  141. package/dist/client/spam-protection.mjs +1 -1
  142. package/dist/client/{timetableModel-BG7Ejxdr.mjs → timetableModel-D1jDTbms.mjs} +11 -11
  143. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  144. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  145. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
  147. package/dist/client/{useEventPagination-spj7sGQP.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
  148. package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
  149. package/dist/client/{view-aAP2WbCR.mjs → view-ShYH3WXh.mjs} +3 -3
  150. package/dist/preview-next/before-render.mjs +33 -13
  151. package/dist/preview-next/chrome.css +4 -0
  152. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  153. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
  154. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
  155. package/dist/preview-next/client/{ArrangementLookControls-CoWdilcI.mjs → PageSectionToolbar-DsSqwrMS.mjs} +397 -23
  156. package/dist/preview-next/client/{PreviewEditorSidebar-BNCrO6PQ.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3266 -3215
  157. package/dist/preview-next/client/{PreviewEditorUI-inVZkLCd.mjs → PreviewEditorUI-C86Out4V.mjs} +6 -39
  158. package/dist/preview-next/client/{PreviewShell-CFQlAHTe.mjs → PreviewShell-CBWYjBvQ.mjs} +50 -41
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-Dgl7ktO4.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
  160. package/dist/preview-next/client/{SiteChromeCustomizeButton-DgDYHwkG.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1249 -22697
  161. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  162. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
  163. package/dist/preview-next/client/{previewAssistantSlot-DRDu7Ndv.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3481 -2113
  164. package/dist/preview-next/client/{previewChromeSurface-K6Q5uEMC.mjs → previewChromeRoot-DPeV7KaP.mjs} +52 -14
  165. package/dist/preview-next/client/runtime.mjs +3 -3
  166. package/dist/preview-next/client/{sdk-runtime-AGypzhcO.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
  167. package/dist/preview-next/client/{useAutosaveStatus-B2mn_l6c.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
  168. package/dist/preview-next/client/{useBlockCustomizeControls-CBXHo6ph.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +40 -21
  169. package/dist/preview-next/container-responsive.css +3093 -0
  170. package/dist/preview-next/editor-base.css +90 -178
  171. package/dist/preview-next/editor-chrome.css +25 -8
  172. package/dist/preview-next/keepAlive.mjs +1 -1
  173. package/dist/preview-next/middleware.mjs +1 -1
  174. package/dist/preview-next/{route-contract-jc2Bug-h.mjs → route-contract-CtSgU8UZ.mjs} +547 -196
  175. package/dist/server/{Block.shared-BHgQjX16.mjs → Block.shared-ifgaBglp.mjs} +4 -4
  176. package/dist/server/ThemeScopeCore-DGDOH6OU.mjs +1983 -0
  177. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
  178. package/dist/server/bindings-CiYpie1M.mjs +1802 -0
  179. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  180. package/dist/server/{client-C-asG6Cf.mjs → client-ngWuFsmN.mjs} +638 -224
  181. package/dist/server/config-template-validation.mjs +30 -4
  182. package/dist/server/config-validation.mjs +1 -1
  183. package/dist/server/config.mjs +3 -34
  184. package/dist/server/data/resolveBlockData.mjs +1 -1
  185. package/dist/server/index.mjs +3 -3
  186. package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
  187. package/dist/server/{loadPage-XgtQR90Z.mjs → loadPage-D4J747FQ.mjs} +2 -2
  188. package/dist/server/manifest.mjs +1 -1
  189. package/dist/server/next.mjs +8 -6
  190. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
  191. package/dist/server/{overrideResolution-Z5pwH-kz.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
  192. package/dist/server/page-converter.mjs +3 -3
  193. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  194. package/dist/server/{pageRenderPlan-DQAo35og.mjs → pageRenderPlan-DFv3h4Ib.mjs} +309 -289
  195. package/dist/server/{pageRuntimeSupport-g-K-FCHa.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
  196. package/dist/server/{pageShared-7mPhqqXX.mjs → pageShared-CAZD0LcY.mjs} +875 -328
  197. package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
  198. package/dist/server/{prebuild-C0m4KOT9.mjs → prebuild-BKOCND3b.mjs} +1 -1
  199. package/dist/server/prebuild.mjs +1 -1
  200. package/dist/server/{prefetchBlockData-DcLKHfHG.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
  201. package/dist/server/{registry-7_0_lUrh.mjs → registry-BogXzcOD.mjs} +4015 -2009
  202. package/dist/server/rendering/components/pageShared.mjs +1 -1
  203. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  204. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  205. package/dist/server/rendering/server.mjs +3 -3
  206. package/dist/server/rendering.mjs +7 -7
  207. package/dist/server/{resolveBlockData-q3WnpvyZ.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
  208. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
  209. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  210. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  211. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/theme-bridge.mjs +2 -2
  214. package/dist/server/theme.mjs +2 -1
  215. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  216. package/dist/server/{validation-CSMS6XmP.mjs → validation-vSBCWU3w.mjs} +9 -9
  217. package/dist/server/{version-DWeqmTXc.mjs → version-Cw5vFmUY.mjs} +1 -1
  218. package/dist/styles/index.css +521 -59
  219. package/package.json +1 -1
  220. package/dist/client/Page-Bu5TJU3L.mjs +0 -52239
  221. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  222. package/dist/client/form-RTqunrpz.mjs +0 -85
  223. package/dist/preview-next/client/useOpenBlockForSetup-BpZnBznt.mjs +0 -28
  224. package/dist/server/ThemeScopeCore-Ck0dhZA6.mjs +0 -24236
  225. package/dist/server/bindings-CAbTvrCZ.mjs +0 -257
  226. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  227. package/dist/server/loadContent-DKerbSnI.mjs +0 -578
@@ -1,37 +1,37 @@
1
1
  "use client";
2
2
  "use client";
3
- import { an as staticHeaderChromeRuntime } from "../shop.interactive-BH0xDlMF.mjs";
3
+ import { ln as staticHeaderChromeRuntime } from "../shop.interactive-DAKyWK1B.mjs";
4
4
  import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BlfqYLJW.mjs";
5
- import { Cn as RichText, Dn as mediaImageHostProps, En as computeMediaTransformStyle, Nn as resolveMediaNodeResponsiveImage, On as renderAudio, Tn as MediaPlaceholder, kn as renderVideo, wn as ImagePresets } from "../display-DDNmyb0z.mjs";
6
- import { n as BookingFormNodeClient } from "../booking-form.client-wd71DG19.mjs";
7
- import { on as formatCurrencyAmount } from "../noop-B_f7RqLD.mjs";
8
- import { o as getRuntimeTimeZone } from "../useAvailableSlots-GP8tnAVW.mjs";
9
- import { h as assertNever } from "../creditProducts-CMOmhWm2.mjs";
10
- import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-Cilv5zdS.mjs";
11
- import "../accessibleSurfaces-_7jkuinl.mjs";
12
- import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, fn as ICON_CONFIG, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-CMrdUGGv.mjs";
13
- import { f as Text } from "../timetableModel-BG7Ejxdr.mjs";
14
- import { t as EventRegistrationIslandClient } from "../event-registration.client-CLBdHUfd.mjs";
15
- import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-Xhf81Q-c.mjs";
16
- import { S as clsx } from "../ThemedButton-BdnEwA38.mjs";
17
- import { t as ShopClient } from "../shop.client-RljK0qPB.mjs";
5
+ import { Cn as ImagePresets, Dn as renderAudio, En as mediaImageHostProps, Mn as resolveMediaNodeResponsiveImage, On as renderVideo, Sn as RichText, Tn as computeMediaTransformStyle, wn as MediaPlaceholder } from "../display-Cl6mgSJa.mjs";
6
+ import { n as BookingFormNodeClient } from "../booking-form.client-DdqNQNCa.mjs";
7
+ import { ln as formatCurrencyAmount } from "../noop-poI1m2yW.mjs";
8
+ import { p as assertNever } from "../creditProducts-BTRX4edc.mjs";
9
+ import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-BCumOTLY.mjs";
10
+ import "../accessibleSurfaces-Bbn1-jJ8.mjs";
11
+ import { B as markEditableSurfaceForwarding, V as splitPositioningClasses, _n as ICON_CONFIG, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes, z as composeHeaderSectionWrapperClassName } from "../registry.server-BOyra8CA.mjs";
12
+ import { f as Text } from "../timetableModel-D1jDTbms.mjs";
13
+ import { t as EventRegistrationBlockClient } from "../event-registration.client-BAmBdWXE.mjs";
14
+ import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-Dzjv2CpA.mjs";
15
+ import { S as clsx } from "../ThemedButton-BMDHwnM6.mjs";
16
+ import { t as ShopClient } from "../shop.client-D0qZ3KZp.mjs";
18
17
  import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
19
18
  import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
20
- import { t as coerceRichTextDoc } from "../richText-coerce-BTurYEao.mjs";
19
+ import { t as coerceRichTextDoc } from "../richText-coerce-CtoGLZ_e.mjs";
20
+ import { o as getRuntimeTimeZone } from "../useAvailableSlots-ByHedoBi.mjs";
21
21
  import { t as createLucideIcon } from "../createLucideIcon-BrXgHVKN.mjs";
22
- import { t as CarouselNodeClient } from "../carousel.client-eSSr1oYA.mjs";
23
- import { t as EventDetailsIslandClient } from "../event-details.client-DZZaoCUc.mjs";
24
- import { t as ProductListClient } from "../product-list.client-c-777ohj.mjs";
25
- import { t as ProductDetailClient } from "../product-detail.client-5hNA8aKU.mjs";
26
- import { t as CartClient } from "../cart.client-COAP4CEy.mjs";
27
- import { t as CheckoutClient } from "../checkout.client-DRralR3e.mjs";
28
- import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-D7gRy-pL.mjs";
29
- import { t as EventListingClient } from "../EventListing.client-8MFGI9BA.mjs";
30
- import { n as EventCombinedIslandClient } from "../EventCombined.client-BEdfJGpx.mjs";
31
- import { t as EventCalendarClient } from "../EventCalendar.client-ucgdMS35.mjs";
32
- import { t as FormNodeClient } from "../form.client-D3_RF29v.mjs";
33
- import { t as NewsletterFormClient } from "../newsletter-form.client-IfLup4o0.mjs";
34
- import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-CN2GyuuA.mjs";
22
+ import { t as CarouselNodeClient } from "../carousel.client-YF4mUK5t.mjs";
23
+ import { t as EventDetailsIslandClient } from "../event-details.client-Pn9Kxh3I.mjs";
24
+ import { t as ProductListClient } from "../product-list.client-CmxOZbzL.mjs";
25
+ import { t as ProductDetailClient } from "../product-detail.client-DOQ7El1d.mjs";
26
+ import { t as CartClient } from "../cart.client-CqOOxPbW.mjs";
27
+ import { t as CheckoutClient } from "../checkout.client-CpqxN8e0.mjs";
28
+ import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-CJCl0HJC.mjs";
29
+ import { t as EventListingClient } from "../EventListing.client-18yfHrcr.mjs";
30
+ import { n as EventCombinedIslandClient } from "../EventCombined.client-DXD5i0Ar.mjs";
31
+ import { t as EventCalendarClient } from "../EventCalendar.client-kh7mkYnW.mjs";
32
+ import { t as FormNodeClient } from "../form.client-CJoqBrS6.mjs";
33
+ import { t as NewsletterFormClient } from "../newsletter-form.client-CqzNjOft.mjs";
34
+ import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-DfMsMIej.mjs";
35
35
  import * as React$1 from "react";
36
36
  import React, { createContext, createElement, startTransition, useContext, useEffect, useMemo, useReducer, useRef } from "react";
37
37
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -147,7 +147,8 @@ function createInitialGiftingClientState(initialOffers) {
147
147
  offers: initialOffers,
148
148
  submittingOfferId: null,
149
149
  errorMessage: null,
150
- purchaseNotice: null
150
+ purchaseNotice: null,
151
+ submissions: /* @__PURE__ */ new Map()
151
152
  };
152
153
  }
153
154
  function giftingClientReducer(state, action) {
@@ -164,7 +165,8 @@ function giftingClientReducer(state, action) {
164
165
  case "checkoutStarted": return {
165
166
  ...state,
166
167
  submittingOfferId: action.offerId,
167
- errorMessage: null
168
+ errorMessage: null,
169
+ submissions: new Map([...state.submissions, [action.offerId, action.submission]])
168
170
  };
169
171
  case "checkoutFailed": return {
170
172
  ...state,
@@ -175,6 +177,10 @@ function giftingClientReducer(state, action) {
175
177
  ...state,
176
178
  purchaseNotice: action.notice
177
179
  };
180
+ case "pageRestored": return {
181
+ ...state,
182
+ submittingOfferId: null
183
+ };
178
184
  default: return assertNever(action);
179
185
  }
180
186
  }
@@ -221,6 +227,7 @@ function buildGiftingCheckoutInput(formData, input) {
221
227
  const customAmount = formData.get("customAmount");
222
228
  const amountCents = input.kind === "gift_card" ? selectedAmount === "custom" ? Math.round(Number(customAmount ?? 0) * 100) : Number(selectedAmount ?? 0) : null;
223
229
  return {
230
+ purchaseToken: input.purchaseToken,
224
231
  offerId: input.offerId,
225
232
  purchaserName: readFormString("purchaserName") || null,
226
233
  purchaserEmail: readFormString("purchaserEmail"),
@@ -233,6 +240,13 @@ function buildGiftingCheckoutInput(formData, input) {
233
240
  cancelUrl: input.cancelUrl
234
241
  };
235
242
  }
243
+ /** Retries of the same form keep one purchase; changed details start another. */
244
+ function giftingSubmission(previous, fields, createToken) {
245
+ return previous?.fields === fields ? previous : {
246
+ fields,
247
+ token: createToken()
248
+ };
249
+ }
236
250
  //#endregion
237
251
  //#region ../blocks/src/system/runtime/nodes/gifting.client.tsx
238
252
  function formatCurrency(amountCents, currency) {
@@ -279,18 +293,29 @@ function GiftingClient(props) {
279
293
  cancelled = true;
280
294
  };
281
295
  }, [api, state.offers]);
296
+ useEffect(() => {
297
+ const onPageShow = (event) => {
298
+ if (event.persisted) dispatch({ type: "pageRestored" });
299
+ };
300
+ window.addEventListener("pageshow", onPageShow);
301
+ return () => window.removeEventListener("pageshow", onPageShow);
302
+ }, []);
282
303
  const hasOffers = hasPublicGiftingOffers(state.offers);
283
304
  async function handleSubmit(event, offerId, kind) {
284
305
  event.preventDefault();
285
306
  if (!siteTerms.requireAgreement("commerce")) return;
286
307
  const formData = new FormData(event.currentTarget);
308
+ const fields = JSON.stringify([...formData.entries()]);
309
+ const submission = giftingSubmission(state.submissions.get(offerId), fields, () => crypto.randomUUID());
287
310
  dispatch({
288
311
  type: "checkoutStarted",
289
- offerId
312
+ offerId,
313
+ submission
290
314
  });
291
315
  try {
292
316
  const checkout = await siteTerms.api.createGiftingCheckout(buildGiftingCheckoutInput(formData, {
293
317
  offerId,
318
+ purchaseToken: submission.token,
294
319
  kind,
295
320
  successUrl: buildGiftingCheckoutReturnUrl(window.location.href, "success"),
296
321
  cancelUrl: buildGiftingCheckoutReturnUrl(window.location.href, "cancelled")
@@ -1835,7 +1860,7 @@ const runtimeBackedBlockClientEntries = {
1835
1860
  cart: defineRuntimeBackedBlockClientEntry("cart", CartClient),
1836
1861
  checkout: defineRuntimeBackedBlockClientEntry("checkout", CheckoutClient),
1837
1862
  gifting: defineRuntimeBackedBlockClientEntry("gifting", GiftingClient),
1838
- "event-registration": defineRuntimeBackedBlockClientEntry("event-registration", EventRegistrationIslandClient),
1863
+ "event-registration": defineRuntimeBackedBlockClientEntry("event-registration", EventRegistrationBlockClient),
1839
1864
  shop: defineRuntimeBackedBlockClientEntry("shop", ShopClient)
1840
1865
  };
1841
1866
  const runtimeBackedBlockClientRegistry = {
@@ -8,30 +8,50 @@ const REACT_LAZY = Symbol.for("react.lazy");
8
8
  function isLazy(value) {
9
9
  return typeof value === "object" && value !== null && "$$typeof" in value && value.$$typeof === REACT_LAZY;
10
10
  }
11
+ /** A lazy wrapper whose shape this file doesn't recognise, so its content can't be keyed. */
12
+ var UnreadableContent = class extends Error {};
11
13
  /**
12
14
  * Flight wraps streamed or outlined chunks and not-yet-loaded client references in lazy
13
15
  * wrappers. Resolve them as React does when it renders them: a pending one throws, which
14
16
  * suspends this boundary until the content it is keyed by has arrived.
15
17
  */
16
18
  function resolveLazy(value) {
17
- return isLazy(value) ? resolveLazy(value._init(value._payload)) : value;
19
+ if (!isLazy(value)) return value;
20
+ if (typeof value._init !== "function" || !("_payload" in value)) throw new UnreadableContent();
21
+ return resolveLazy(value._init(value._payload));
18
22
  }
19
- function typeName(type) {
23
+ /**
24
+ * By the time Flight content reaches the browser, server components have rendered away, so
25
+ * every element type is a tag name, a React symbol or a client module export. Exports are
26
+ * module singletons, so their object identity tells two components apart even when they
27
+ * share a name, and stays the same across refreshes of the same page.
28
+ */
29
+ const typeIdentities = /* @__PURE__ */ new WeakMap();
30
+ /** Numbers handed out so far, both for type identities and for unreadable content. */
31
+ const issued = { count: 0 };
32
+ function identityOf(value) {
33
+ const known = typeIdentities.get(value);
34
+ if (known !== void 0) return known;
35
+ const identity = issued.count++;
36
+ typeIdentities.set(value, identity);
37
+ return identity;
38
+ }
39
+ function typeKey(type) {
20
40
  const resolved = resolveLazy(type);
21
41
  if (typeof resolved === "string") return resolved;
22
- if (typeof resolved === "function") return resolved.displayName ?? resolved.name;
23
- if (resolved && typeof resolved === "object" && "$$typeof" in resolved) return String(resolved.$$typeof);
42
+ if (typeof resolved === "symbol") return resolved.toString();
43
+ if (typeof resolved === "function" || typeof resolved === "object" && resolved !== null) return `type:${identityOf(resolved)}`;
24
44
  return String(resolved);
25
45
  }
26
46
  /** Reduces React elements in the server output to what they render: type, key and props. */
27
47
  function contentReplacer(_key, value) {
28
48
  const resolved = resolveLazy(value);
29
- if (typeof resolved === "function") return `fn:${typeName(resolved)}`;
49
+ if (typeof resolved === "function") return `fn:${identityOf(resolved)}`;
30
50
  if (typeof resolved === "symbol") return resolved.toString();
31
51
  if (resolved && typeof resolved === "object" && "$$typeof" in resolved) {
32
52
  const element = resolved;
33
53
  return {
34
- type: typeName(element.type),
54
+ type: typeKey(element.type),
35
55
  key: element.key,
36
56
  props: element.props
37
57
  };
@@ -41,9 +61,22 @@ function contentReplacer(_key, value) {
41
61
  const fnv1a = (hash, char) => Math.imul(hash ^ char.charCodeAt(0), 16777619);
42
62
  /** Folds over a string's characters without copying them into an array first. */
43
63
  const foldCharacters = Array.prototype.reduce;
44
- /** FNV-1a over the serialised content: a key, not a security boundary. */
64
+ /** The content as text, or null when part of it is in a shape this file can't read. */
65
+ function serialiseContent(content) {
66
+ try {
67
+ return JSON.stringify(content, contentReplacer) ?? "";
68
+ } catch (error) {
69
+ if (error instanceof UnreadableContent) return null;
70
+ throw error;
71
+ }
72
+ }
73
+ /**
74
+ * FNV-1a over the serialised content: a key, not a security boundary. Content it can't
75
+ * read gets a key of its own, so the root is replaced rather than ever reconciled.
76
+ */
45
77
  function islandContentKey(content) {
46
- const text = JSON.stringify(content, contentReplacer) ?? "";
78
+ const text = serialiseContent(content);
79
+ if (text === null) return `unreadable:${issued.count++}`;
47
80
  const hash = foldCharacters.call(text, fnv1a, 2166136261);
48
81
  return `${text.length}:${(hash >>> 0).toString(36)}`;
49
82
  }
@@ -73,8 +106,8 @@ function FlightIslandRoot({ as, rootProps, transport, children }) {
73
106
  * React owns the root element, and once the island mounts its runtime owns everything
74
107
  * inside it, so React must never reconcile inside a mounted root. The root is keyed by
75
108
  * its content: a refresh that brings the same props and fallback leaves a running island
76
- * alone, and one that changes either replaces the whole root, which the runtime then
77
- * mounts afresh.
109
+ * alone, and one that changes either, or that the key can't read, replaces the whole
110
+ * root, which the runtime then mounts afresh.
78
111
  */
79
112
  function IslandDelivery({ as, rootProps, transport, children }) {
80
113
  const contentKey = useMemo(() => islandContentKey({
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-CN2GyuuA.mjs";
3
+ import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-DfMsMIej.mjs";
4
4
  export { BlocksIslandsHydrator };