@riverbankcms/sdk 0.184.0 → 0.185.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 (220) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DjBTJYiF.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
  2. package/dist/_dts/{Page-BpXEM2ET.d.ts → Page-DYoL0IWL.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-Bb3h7KRE.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
  4. package/dist/_dts/{client-DgTRRtl_.d.ts → client-BKdjJ7A0.d.ts} +23 -4
  5. package/dist/_dts/{content-types-DZQJp_ak.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Ww1fmd-c.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-BGc7dju6.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
  8. package/dist/_dts/{index-Cni4jykw.d.ts → index-6WypKfbu.d.ts} +4 -4
  9. package/dist/_dts/{index-ukS-Ffem.d.ts → index-BMwrFX_K.d.ts} +1 -1
  10. package/dist/_dts/{index-W9-7djG3.d.ts → index-Bp5lk6I8.d.ts} +1 -1
  11. package/dist/_dts/{index-Cc85KVLW.d.ts → index-DTKn1H8g.d.ts} +1 -1
  12. package/dist/_dts/{index-DxxTQ_0V.d.ts → index-DX-Xe54X.d.ts} +2 -2
  13. package/dist/_dts/{index-BECaUNYs.d.ts → index-SD1fTP_7.d.ts} +2 -2
  14. package/dist/_dts/{loadContent-BlSWTlbD.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
  15. package/dist/_dts/{request-CZz2BoXJ.d.ts → request-BwYvMqLf.d.ts} +459 -109
  16. package/dist/_dts/{resolveBlockData-D12HXnS3.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-BteMsSGP.d.ts → resolvePageContent-BwUDLi_W.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  28. package/dist/_dts/sdk/src/index.d.ts +7 -7
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{serviceBookingOutline-aTlOvO3U.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +10 -7
  54. package/dist/_dts/{types-CCcQlRBi.d.ts → types-BBazdRQf.d.ts} +3 -3
  55. package/dist/_dts/{types-Du4aMnWC.d.ts → types-BwngWRQ8.d.ts} +7 -7
  56. package/dist/_dts/{types-Bi7R07RX.d.ts → types-C9_amrul.d.ts} +2 -2
  57. package/dist/_dts/{validation-CjCWVmwe.d.ts → validation-B58kUTuV.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-CFLWxjxR.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
  59. package/dist/client/{BookingMailingListNote-C4LcfwyA.mjs → BookingMailingListNote-D_khdttF.mjs} +59 -60
  60. package/dist/client/{BookingQuestionFields-DdcmoHqQ.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +48 -35
  61. package/dist/client/{CalendarAction-DYGewmvh.mjs → CalendarAction-C-AbMmct.mjs} +1 -1
  62. package/dist/client/{CalendarNavigationChevron-ZfrUiiiI.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +6 -6
  63. package/dist/client/{DemoBookingPortalAccess-pzkGVkgG.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +4 -4
  64. package/dist/client/{EventCalendar.client-Ct1B3xI4.mjs → EventCalendar.client-By7e9nyF.mjs} +10 -10
  65. package/dist/client/{EventCombined.client-DgfNtcgW.mjs → EventCombined.client-BdRZXB14.mjs} +9 -9
  66. package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
  67. package/dist/client/{EventItem-KGKkK19N.mjs → EventItem-CDMa9zOX.mjs} +4 -4
  68. package/dist/client/{EventListWeekNavigation-Ba9ezxuC.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
  69. package/dist/client/{EventListing.client-xFKRDLwC.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
  70. package/dist/client/{EventListing.view-Dy36vWHi.mjs → EventListing.view-B6LOK-z4.mjs} +5 -5
  71. package/dist/client/{EventRegistrationPayment-Dth9L00x.mjs → EventRegistrationPayment-CARdr15t.mjs} +44 -35
  72. package/dist/client/{Page-DB5KODiu.mjs → Page-uP7AKSyp.mjs} +37 -30
  73. package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
  74. package/dist/client/{SiteTermsAgreementField-BDVP_HeK.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +2 -2
  75. package/dist/client/{StepIndicator-CLgDVzCs.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRyZ8igu.mjs → StepIndicator-Cb3NMw-Y.mjs} +29 -17
  77. package/dist/client/{accessibleSurfaces-CqroimVQ.mjs → accessibleSurfaces-q-dDOwsW.mjs} +5 -3
  78. package/dist/client/{accordion-BQYRP5xV.mjs → accordion-BYW2YSUN.mjs} +1 -1
  79. package/dist/client/{booking-form.client-B7ckDuOC.mjs → booking-form.client-DAlWWWjV.mjs} +108 -70
  80. package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
  81. package/dist/client/{bookingForm-BeD4650p.mjs → bookingForm-DtVk9p5l.mjs} +4 -4
  82. package/dist/client/bookings.mjs +5 -5
  83. package/dist/client/{boxStyleClassNames-CA7FirMH.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
  84. package/dist/client/{EventEmbeddedCheckoutStep-CjoaG1zy.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
  85. package/dist/client/{carousel-DJ9Aa1m3.mjs → carousel-msur7fxW.mjs} +1 -1
  86. package/dist/client/{cart-DdCenbTy.mjs → cart-Bx-JuY2n.mjs} +3 -3
  87. package/dist/client/{cart.client-BQm06qNw.mjs → cart.client-hB_9MimN.mjs} +1 -1
  88. package/dist/client/{checkout-45wPQULN.mjs → checkout-BVWZn5Qu.mjs} +3 -3
  89. package/dist/client/{checkout.client-bSv4cc5z.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
  90. package/dist/client/{checkoutUrls-CwlaMl3W.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
  91. package/dist/client/client.mjs +43 -18
  92. package/dist/client/{constants-DXV4KR7l.mjs → constants-yA1RJGXD.mjs} +1 -1
  93. package/dist/client/{context-lCPfX-xe.mjs → context-CG77Keax.mjs} +30 -3
  94. package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
  95. package/dist/client/{demoPortalMagicLink-Ce3Gyin_.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
  96. package/dist/client/{enhanceHeaderSection-CGcDE9aE.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +3 -3
  97. package/dist/client/{event-registration.client-DlPfn4YG.mjs → event-registration.client-Ckb4aDE9.mjs} +79 -58
  98. package/dist/client/{eventCalendar-CioAdryV.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
  99. package/dist/client/{eventCombined-Dwt0G6ez.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
  100. package/dist/client/{eventListing-B3H9ifOC.mjs → eventListing-CBYxfvNf.mjs} +4 -4
  101. package/dist/client/{eventRegistration-Do7cAhXb.mjs → eventRegistration-BhAqvkCb.mjs} +4 -4
  102. package/dist/client/{form-CsqzgC6v.mjs → form-CkOfk-Eb.mjs} +3 -3
  103. package/dist/client/{form.client-DVDB7hY6.mjs → form.client-Whi43oio.mjs} +4 -4
  104. package/dist/client/{form.parts-1q2rzSYt.mjs → form.parts-BgsWo2Me.mjs} +1 -1
  105. package/dist/client/gifting/client.mjs +7 -7
  106. package/dist/client/{gifting-BrXQGX-k.mjs → gifting-XtNpLcFI.mjs} +4 -4
  107. package/dist/client/{gifting.client--zAjnY5N.mjs → gifting.client-CraWj4I4.mjs} +173 -71
  108. package/dist/client/{gifting.interactive-CrwHpUJG.mjs → gifting.interactive-DiPDObN0.mjs} +3 -2
  109. package/dist/client/{gifting.parts-CcKdDaQq.mjs → gifting.parts-_mgGOcbA.mjs} +12 -43
  110. package/dist/client/{headerSection-DlcDH4bi.mjs → headerSection-CPIN3VSU.mjs} +2 -2
  111. package/dist/client/{islands-dMh0Oxli.mjs → islands-C95FyxUF.mjs} +11 -9
  112. package/dist/client/{newsletter-form.client-BxA1PsdS.mjs → newsletter-form.client-BgVJdKVe.mjs} +6 -6
  113. package/dist/client/{newsletter-form.interactive-D0iRg7p2.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +35 -15
  114. package/dist/client/{newsletter-form.parts-Dmuklz0r.mjs → newsletter-form.parts-poPgHrUh.mjs} +1 -1
  115. package/dist/client/{newsletterForm-CBzvgIfg.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
  116. package/dist/client/portal/client.mjs +978 -72
  117. package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
  118. package/dist/client/{portalRoutes-DiGibcZI.mjs → portalRoutes-D3Ttfv5x.mjs} +48 -13
  119. package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
  120. package/dist/client/{product-detail.client-D9MP8hvH.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
  121. package/dist/client/{product-list.client-wCz1qcUY.mjs → product-list.client-CftTl7n6.mjs} +1 -1
  122. package/dist/client/{productDetail-D9-fCY6c.mjs → productDetail-b1tpt585.mjs} +3 -3
  123. package/dist/client/{productList-PJyxXSac.mjs → productList-DRT5sabi.mjs} +3 -3
  124. package/dist/client/{propsDecoder-B8lrKGPw.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
  125. package/dist/client/{registry.server-CI63JVHW.mjs → registry.server-0UDNY7dO.mjs} +185 -224
  126. package/dist/client/rendering/client.mjs +23 -23
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +5 -5
  129. package/dist/client/{richText-coerce-Jt9hDHdh.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
  130. package/dist/client/{routeIslandApiConfig-ZSPcJWx1.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-_iW9oEYc.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
  132. package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
  133. package/dist/client/{shop-CbdJlWOw.mjs → shop-DL3CYR7i.mjs} +3 -3
  134. package/dist/client/{shop-commerce-BqLbzUUn.mjs → shop-commerce-CDth2_qq.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-BT0-zRqN.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
  136. package/dist/client/{shop-discount-apply.state-Cws0lnSb.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
  137. package/dist/client/{shop.client-0cNErhJT.mjs → shop.client-BI2iw6Z3.mjs} +56 -21
  138. package/dist/client/{shopShared-COuQ2MhQ.mjs → shopShared-BNWzgWAC.mjs} +2 -2
  139. package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
  140. package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
  141. package/dist/client/src-CXOxpNtj.mjs +3 -0
  142. package/dist/client/{timetableModel-DqI6U1BS.mjs → timetableModel-DZzGD6rS.mjs} +8 -8
  143. package/dist/client/{useAutomaticDiscountPreview-CeVUVzGf.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +1 -1
  144. package/dist/client/{useAvailableSlots-B0mjVhZr.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
  145. package/dist/client/{useDiscountCodeUi-B_hfgdAP.mjs → useDiscountCodeUi-DMtTHqex.mjs} +1 -1
  146. package/dist/client/{useEventPagination-Ct4A6iR1.mjs → useEventPagination-CM-DCokc.mjs} +7 -7
  147. package/dist/client/{view-Cj151w4m.mjs → view-CHOhliHv.mjs} +3 -3
  148. package/dist/client/{wizardSteps-B3gsXNnb.mjs → wizardSteps-BbroaNkT.mjs} +68 -22
  149. package/dist/preview-next/client/{PageSectionToolbar-Dv4CW0AQ.mjs → PageSectionToolbar-CR99z8BL.mjs} +3 -3
  150. package/dist/preview-next/client/{PreviewEditorSidebar-B7WW58uE.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +6 -6
  151. package/dist/preview-next/client/{PreviewEditorUI-BnJ1ughv.mjs → PreviewEditorUI-D6IG119o.mjs} +4 -4
  152. package/dist/preview-next/client/{PreviewShell-C7qWzAe4.mjs → PreviewShell-CKjkFOZS.mjs} +5 -5
  153. package/dist/preview-next/client/{SdkPreviewModeRuntime-CYi4UHtG.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +4 -4
  154. package/dist/preview-next/client/{previewAssistantSlot-DrUoRNu9.mjs → previewAssistantSlot-DcEwU9l_.mjs} +977 -505
  155. package/dist/preview-next/client/{previewChromeRoot-CEYp90mM.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
  156. package/dist/preview-next/client/runtime.mjs +3 -3
  157. package/dist/preview-next/client/{sdk-runtime-DnO2_c0A.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
  158. package/dist/preview-next/client/{siteStyleAccess-B3PwHw2z.mjs → siteStyleAccess-BL1fZnUD.mjs} +1 -1
  159. package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
  160. package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
  161. package/dist/preview-next/client/{useAutosaveStatus-DrdQ4ier.mjs → useAutosaveStatus-CdFnzKac.mjs} +2 -2
  162. package/dist/preview-next/client/{useOpenBlockForSetup-kuGRKaRL.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +1 -1
  163. package/dist/preview-next/container-responsive.css +8 -0
  164. package/dist/preview-next/keepAlive.mjs +1 -1
  165. package/dist/preview-next/middleware.mjs +1 -1
  166. package/dist/preview-next/{route-contract-CwrXkLT3.mjs → route-contract-CQfEvfbg.mjs} +38 -13
  167. package/dist/server/{Block.shared-C5ucphCJ.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
  168. package/dist/server/{ThemeScopeCore-DvbqYXdK.mjs → ThemeScopeCore-BjxlpVaV.mjs} +5 -5
  169. package/dist/server/{accessibleSurfaces-CAcf1lHT.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +2 -2
  170. package/dist/server/{accordions-DjcsqjCK.mjs → accordions-C_C52VkS.mjs} +1 -1
  171. package/dist/server/{bindings-CFw4M-gZ.mjs → bindings-D-n66Oqc.mjs} +5 -5
  172. package/dist/server/{client-D0XCgITW.mjs → client-BGGlrkft.mjs} +41 -16
  173. package/dist/server/config-validation.mjs +1 -1
  174. package/dist/server/config.mjs +2 -2
  175. package/dist/server/{constants-BZduY8jG.mjs → constants-TkO9Uxma.mjs} +45 -10
  176. package/dist/server/data/resolveBlockData.mjs +1 -1
  177. package/dist/server/index.mjs +3 -3
  178. package/dist/server/{loadContent-C-qyB8Tq.mjs → loadContent-8H1hHdXo.mjs} +4 -4
  179. package/dist/server/{loadPage-BpKKmi8E.mjs → loadPage-BZyqF_g3.mjs} +3 -3
  180. package/dist/server/{lookMediaFrame-EFws7tAj.mjs → lookMediaFrame-Dw6R9B0L.mjs} +13 -11
  181. package/dist/server/manifest.mjs +2 -2
  182. package/dist/server/{navigation-DYkuiNXa.mjs → navigation-9TOyY5Zf.mjs} +1 -1
  183. package/dist/server/navigation.mjs +1 -1
  184. package/dist/server/next.mjs +9 -9
  185. package/dist/server/{overrideResolution-DmZn4xUE.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
  186. package/dist/server/page-converter.mjs +3 -3
  187. package/dist/server/{pageRenderPlan-DRB7cUZ0.mjs → pageRenderPlan-DmP0HVMu.mjs} +30 -8
  188. package/dist/server/{pageRuntimeSupport-Uv1xDieJ.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +3 -3
  189. package/dist/server/{pageShared-BdQF875z.mjs → pageShared-ALu7y5Dq.mjs} +272 -165
  190. package/dist/server/{parseThemeForPersistence-CwcWZL7u.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
  191. package/dist/server/{portal-BQ8qiQnk.mjs → portal-P4oHSRho.mjs} +2 -1
  192. package/dist/server/portal.mjs +2 -2
  193. package/dist/server/{prebuild-B51QZVNe.mjs → prebuild-BLL6RhjS.mjs} +1 -1
  194. package/dist/server/prebuild.mjs +1 -1
  195. package/dist/server/{prefetchBlockData-CppDAfJW.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
  196. package/dist/server/{registry-Bf4W8Qa7.mjs → registry-DD_s7l3Y.mjs} +82 -33
  197. package/dist/server/rendering/components/pageShared.mjs +1 -1
  198. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  199. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  200. package/dist/server/rendering/server.mjs +4 -4
  201. package/dist/server/rendering.mjs +9 -9
  202. package/dist/server/{resolveBlockData-DMHAZooQ.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
  203. package/dist/server/{resolveButtonColourStates-BMtAAPzp.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1 -1
  204. package/dist/server/{responseMedia-DKYfR518.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
  205. package/dist/server/{schema-DGaihVwp.mjs → schema-ClDfFtz2.mjs} +3 -3
  206. package/dist/server/server.mjs +3 -3
  207. package/dist/server/{servicePageContent-CRvmreX7.mjs → servicePageContent-CsUerbJ1.mjs} +14 -12
  208. package/dist/server/theme-bridge.mjs +3 -3
  209. package/dist/server/theme.mjs +2 -2
  210. package/dist/server/{three-pass-converter-mcy2E1Yd.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
  211. package/dist/server/{titleSourceSchema-B2qFOUwZ.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -2
  212. package/dist/server/{types-C_S0pWbR.mjs → types-CcKy8_tj.mjs} +5 -3
  213. package/dist/server/{validation-CUtNT_EZ.mjs → validation-BbImAsVs.mjs} +5 -5
  214. package/dist/server/{version-DebJQ4zn.mjs → version-BY48jPoe.mjs} +1 -1
  215. package/dist/styles/index.css +192 -134
  216. package/package.json +1 -1
  217. package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
  218. package/dist/client/runtimeResponse-DlPBWBd9.mjs +0 -3
  219. package/dist/client/src-DqMbCjI1.mjs +0 -3
  220. package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Ln as parseSiteTermsVersionId, Mn as parseAppointmentId, Rn as parseAttendeeId, Vn as parseEventSeriesRegistrationId, gt as exactSchema } from "./src-Do_s2lqH.mjs";
2
+ import { Ln as parseSiteTermsVersionId, Mn as parseAppointmentId, Rn as parseAttendeeId, Vn as parseEventSeriesRegistrationId, gt as exactSchema } from "./src-CJf3u16T.mjs";
3
3
  import { z } from "zod";
4
4
  //#region ../core/src/appointment-lifecycle.ts
5
5
  const APPOINTMENT_REQUEST_OUTCOME_VALUES = [
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { c as parseMediaAssetId, f as parseUuidBrand } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
3
- import { Mn as parseAppointmentId, Pn as parseClientArrangementId, Rn as parseAttendeeId, Vn as parseEventSeriesRegistrationId, _t as unknownKind, gt as exactSchema, ht as evolvingSchema, mt as portalBeforeYouComeTaskSchema } from "./src-Do_s2lqH.mjs";
4
- import { D as portalJoiningDetailsSchema, _ as portalPaymentToDoSchema, a as brandedId, c as courseRegistrationRefSchema, l as eventAttendeeRefSchema, o as cancellationMoneyOutcomeSchema, p as portalMoneySchema, r as appointmentRefSchema, t as customerOrderPaymentLabelsSchema, u as refundRecipientSchema, x as customerPassUseCaseSchema, y as customerMembershipStatusSchema } from "./portalOrders-tCxS04g0.mjs";
3
+ import { Mn as parseAppointmentId, Pn as parseClientArrangementId, Rn as parseAttendeeId, Vn as parseEventSeriesRegistrationId, _t as unknownKind, gt as exactSchema, ht as evolvingSchema, mt as portalBeforeYouComeTaskSchema } from "./src-CJf3u16T.mjs";
4
+ import { D as portalJoiningDetailsSchema, _ as portalPaymentToDoSchema, a as brandedId, c as courseRegistrationRefSchema, l as eventAttendeeRefSchema, o as cancellationMoneyOutcomeSchema, p as portalMoneySchema, r as appointmentRefSchema, t as customerOrderPaymentLabelsSchema, u as refundRecipientSchema, x as customerPassUseCaseSchema, y as customerMembershipStatusSchema } from "./portalOrders-CAfjTyV9.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../core/src/branded/orders.ts
7
7
  const unsafeAsOrderId = (id) => id;
@@ -17,7 +17,9 @@ const parseWaitlistEntryId = (value) => parseUuidBrand(value, unsafeAsWaitlistEn
17
17
  const unsafeAsEntitlementId = (id) => id;
18
18
  const unsafeAsPassId = (id) => id;
19
19
  const unsafeAsCustomerPassId = (id) => id;
20
+ const unsafeAsCustomerMembershipId = (id) => id;
20
21
  const parseEntitlementId = (value) => parseUuidBrand(value, unsafeAsEntitlementId);
22
+ const parseCustomerMembershipId = (value) => parseUuidBrand(value, unsafeAsCustomerMembershipId);
21
23
  //#endregion
22
24
  //#region ../core/src/booking-context-ref.ts
23
25
  /** The raw id a booking's reference carries. Callers never choose among nullable columns. */
@@ -182,18 +184,14 @@ const portalRegularSessionSchema = exactSchema()(z.object({
182
184
  trainerName: z.string().nullable(),
183
185
  serviceName: z.string().nullable(),
184
186
  holdsTime: z.boolean(),
185
- payment: z.intersection(z.union([z.object({
186
- kind: z.literal("package"),
187
- name: z.string().nullable(),
188
- sessionsLeft: z.number()
189
- }), z.object({ kind: z.enum(["owed", "payment_link"]) })]), z.object({
187
+ payment: z.object({
190
188
  coverage: z.object({ packages: z.array(z.object({
191
189
  name: z.string().nullable(),
192
190
  sessionsLeft: z.number(),
193
191
  forNewSessions: z.boolean()
194
192
  })).readonly() }),
195
193
  owedFollowUp: z.enum(["direct", "payment_link"])
196
- })),
194
+ }),
197
195
  dates: z.array(dateSchema).readonly()
198
196
  }));
199
197
  const portalRegularSessionsResponseSchema = exactSchema()(z.object({ arrangements: z.array(portalRegularSessionSchema).readonly() }));
@@ -515,7 +513,7 @@ const eventDetailSchema = exactSchema()(z.object({
515
513
  }));
516
514
  const courseDetailSchema = exactSchema()(z.object({
517
515
  eventPath: z.string().nullable(),
518
- sessions: z.array(whenSchema).readonly(),
516
+ sessions: z.array(whenSchema.extend({ calendarUid: z.string() })).readonly(),
519
517
  nextSessionAt: z.string().nullable(),
520
518
  ticketLines: z.array(ticketLineSchema).readonly()
521
519
  }));
@@ -614,7 +612,13 @@ const ENTRY_REASON_PARAMS = {
614
612
  };
615
613
  /** The query a page's own data puts in its address. */
616
614
  function targetParams(target) {
617
- return target.page === "continue" ? ENTRY_REASON_PARAMS[target.reason] : [];
615
+ if (target.page === "continue") return ENTRY_REASON_PARAMS[target.reason];
616
+ return target.page === "membership_payment" && target.invoiceId ? [[INVOICE_PARAM, target.invoiceId]] : [];
617
+ }
618
+ const INVOICE_PARAM = "invoice";
619
+ /** A Stripe invoice id as the payment page keeps it in the address. */
620
+ function parseInvoiceParam(value) {
621
+ return value && value.length <= 255 && /^in_[A-Za-z0-9]+$/.test(value) ? value : null;
618
622
  }
619
623
  function withQuery(path, params) {
620
624
  const query = new URLSearchParams(params.map(([name, value]) => [name, value])).toString();
@@ -637,6 +641,7 @@ function targetPath(target) {
637
641
  case "ticket": return `${bookingPath(target.ref)}/ticket`;
638
642
  case "waitlist_offer": return `${base}/bookings/waitlist/${target.entryId}`;
639
643
  case "passes": return `${base}/passes`;
644
+ case "membership_payment": return `${base}/passes/memberships/${target.customerMembershipId}/payment`;
640
645
  case "payments": return `${base}/payments`;
641
646
  case "order": return `${base}/payments/orders/${target.orderId}`;
642
647
  case "receipt": return `${base}/payments/receipts/${target.receiptId}`;
@@ -671,6 +676,15 @@ const CONSUMED_PARAMS = [
671
676
  "portal_login",
672
677
  "order"
673
678
  ];
679
+ /**
680
+ * What Stripe adds to a return address, client secret included: never kept,
681
+ * whichever page it lands on (the payment page reads its invoice from `invoice`).
682
+ */
683
+ const STRIPE_RETURN_PARAMS = [
684
+ "payment_intent",
685
+ "payment_intent_client_secret",
686
+ "redirect_status"
687
+ ];
674
688
  /** Continue's own query, which only Continue reads. */
675
689
  const ENTRY_PARAMS = [
676
690
  "entry",
@@ -719,10 +733,19 @@ function portalSegments(pathname) {
719
733
  return null;
720
734
  }
721
735
  }
736
+ /** Query a page reads into its route, which the route then writes back (or drops, when it wasn't valid). */
737
+ function ownParams(route) {
738
+ if (route.page === "continue") return ENTRY_PARAMS;
739
+ return route.page === "membership_payment" ? [INVOICE_PARAM] : [];
740
+ }
722
741
  function rewriteFor(url, route) {
723
742
  if (route.page === "not_found") return null;
724
743
  const kept = new URLSearchParams(url.searchParams);
725
- [...CONSUMED_PARAMS, ...route.page === "continue" ? ENTRY_PARAMS : []].forEach((name) => kept.delete(name));
744
+ [
745
+ ...CONSUMED_PARAMS,
746
+ ...STRIPE_RETURN_PARAMS,
747
+ ...ownParams(route)
748
+ ].forEach((name) => kept.delete(name));
726
749
  const canonical = withQuery(targetPath(route), [...targetParams(route), ...kept.entries()]);
727
750
  const visited = url.searchParams.toString();
728
751
  return canonical === `${url.pathname}${visited ? `?${visited}` : ""}` ? null : canonical;
@@ -737,7 +760,7 @@ function routeFromSegments(segments, params) {
737
760
  switch (first) {
738
761
  case void 0: return { page: "home" };
739
762
  case "bookings": return bookingsRoute(rest);
740
- case "passes": return only(rest, { page: "passes" });
763
+ case "passes": return passesRoute(rest, params);
741
764
  case "payments": return paymentsRoute(rest);
742
765
  case "downloads":
743
766
  case "digital-products": return downloadsRoute(rest);
@@ -891,5 +914,17 @@ const LEGACY_TABS = /* @__PURE__ */ new Map([
891
914
  function legacyTabRoute(value) {
892
915
  return value === null ? null : LEGACY_TABS.get(value) ?? null;
893
916
  }
917
+ function passesRoute(rest, params) {
918
+ if (rest.length === 0) return { page: "passes" };
919
+ const [kind, id, action, ...extra] = rest;
920
+ const membershipId = parseCustomerMembershipId(id);
921
+ if (kind !== "memberships" || !membershipId.ok || action !== "payment" || extra.length > 0) return NOT_FOUND;
922
+ const invoiceId = parseInvoiceParam(params.get(INVOICE_PARAM));
923
+ return {
924
+ page: "membership_payment",
925
+ customerMembershipId: membershipId.value,
926
+ ...invoiceId ? { invoiceId } : {}
927
+ };
928
+ }
894
929
  //#endregion
895
- export { withPortalArrival as a, portalBookingViewSchema as c, portalWaitlistOfferPriceSchema as d, unsafeAsCustomerPassId as f, parseOrderPaymentReceiptId as h, portalPath as i, portalBookingsResponseSchema as l, parseOrderId as m, isServerPortalTarget as n, portalBookingPath as o, unsafeAsPassId as p, parsePortalLocation as r, portalBookingResponseSchema as s, CUSTOMER_PORTAL_PATH as t, portalRegularSessionsResponseSchema as u };
930
+ export { withPortalArrival as a, portalBookingViewSchema as c, portalWaitlistOfferPriceSchema as d, parseCustomerMembershipId as f, parseOrderPaymentReceiptId as g, parseOrderId as h, portalPath as i, portalBookingsResponseSchema as l, unsafeAsPassId as m, isServerPortalTarget as n, portalBookingPath as o, unsafeAsCustomerPassId as p, parsePortalLocation as r, portalBookingResponseSchema as s, CUSTOMER_PORTAL_PATH as t, portalRegularSessionsResponseSchema as u };
@@ -0,0 +1,169 @@
1
+ "use client";
2
+ import { Dc as resolvePricingOptionsPriceDisplay, Ec as resolveExactOrFreePriceDisplay, yc as formatBookingPriceDisplay } from "./wizardSteps-BbroaNkT.mjs";
3
+ import { h as assertNever } from "./bookingCalendar-9nFa_do4.mjs";
4
+ import { z } from "zod";
5
+ //#region ../core/src/appointment-service-categories.ts
6
+ /**
7
+ * Groups services under their categories.
8
+ *
9
+ * A service whose `categoryId` names no category in `categories` lands in
10
+ * Other. The composite foreign key keeps that from happening with stored data,
11
+ * so this is only the total, safe answer for a caller holding a stale list.
12
+ */
13
+ function layoutServicesByCategory(categories, services, options) {
14
+ if (categories.length === 0) return {
15
+ kind: "uncategorized-site",
16
+ services: [...services]
17
+ };
18
+ const buckets = new Map(categories.map((category) => [category.id, []]));
19
+ const other = [];
20
+ for (const service of services) {
21
+ const bucket = service.categoryId === null ? void 0 : buckets.get(service.categoryId);
22
+ if (bucket !== void 0) bucket.push(service);
23
+ else other.push(service);
24
+ }
25
+ const groups = [];
26
+ for (const category of categories) {
27
+ const groupServices = buckets.get(category.id) ?? [];
28
+ if (groupServices.length === 0 && !options.keepEmptyGroups) continue;
29
+ groups.push({
30
+ category,
31
+ services: groupServices
32
+ });
33
+ }
34
+ if (groups.length === 0 && !options.keepEmptyGroups) return {
35
+ kind: "uncategorized-site",
36
+ services: other
37
+ };
38
+ return {
39
+ kind: "categorized-site",
40
+ groups,
41
+ other
42
+ };
43
+ }
44
+ /**
45
+ * Selects the public view for an optional category filter.
46
+ *
47
+ * It takes the category and service lists rather than a prebuilt layout
48
+ * because the public layout has already dropped empty categories, and then an
49
+ * empty category (`single` with no services) could not be told apart from a
50
+ * deleted one (`fallback-all`).
51
+ */
52
+ function selectCategoryView(categories, services, filterCategoryId) {
53
+ const publicLayout = () => layoutServicesByCategory(categories, services, { keepEmptyGroups: false });
54
+ if (filterCategoryId === null || filterCategoryId === void 0) return {
55
+ kind: "all",
56
+ layout: publicLayout()
57
+ };
58
+ const category = categories.find((candidate) => candidate.id === filterCategoryId);
59
+ if (category === void 0) return {
60
+ kind: "fallback-all",
61
+ missingCategoryId: filterCategoryId,
62
+ layout: publicLayout()
63
+ };
64
+ return {
65
+ kind: "single",
66
+ group: {
67
+ category,
68
+ services: services.filter((service) => service.categoryId === filterCategoryId)
69
+ }
70
+ };
71
+ }
72
+ //#endregion
73
+ //#region ../blocks/src/system/blocks/appointments/presentation.ts
74
+ const publicVenueSchema = z.object({
75
+ name: z.string(),
76
+ area: z.string().nullable()
77
+ });
78
+ const publicAppointmentLocationSchema = z.discriminatedUnion("mode", [
79
+ z.object({ mode: z.literal("online") }),
80
+ z.object({
81
+ mode: z.literal("in_person"),
82
+ venue: publicVenueSchema.nullable()
83
+ }),
84
+ z.object({
85
+ mode: z.literal("either"),
86
+ venue: publicVenueSchema.nullable()
87
+ })
88
+ ]);
89
+ const publicPricingOptionSchema = z.object({
90
+ priceAmount: z.number().finite(),
91
+ isActive: z.boolean(),
92
+ saleStartsAt: z.string().nullable(),
93
+ saleEndsAt: z.string().nullable()
94
+ });
95
+ const publicAppointmentPricingSchema = z.object({
96
+ pricingStrategy: z.enum([
97
+ "free",
98
+ "single",
99
+ "tiered",
100
+ "sliding_scale"
101
+ ]),
102
+ currency: z.string().min(1),
103
+ singlePriceAmount: z.number().nullable(),
104
+ slidingMinAmount: z.number().nullable(),
105
+ slidingMaxAmount: z.number().nullable(),
106
+ options: z.array(publicPricingOptionSchema).readonly()
107
+ });
108
+ function formatAppointmentDuration(durationMinutes) {
109
+ return `${durationMinutes} ${durationMinutes === 1 ? "minute" : "minutes"}`;
110
+ }
111
+ function formatAppointmentLocation(location) {
112
+ switch (location.mode) {
113
+ case "online": return "Online";
114
+ case "in_person": return formatVenue(location.venue);
115
+ case "either": {
116
+ const venue = formatVenue(location.venue);
117
+ return venue ? `${venue} or online` : "In person or online";
118
+ }
119
+ default: return assertNever(location);
120
+ }
121
+ }
122
+ function formatVenue(venue) {
123
+ if (!venue) return null;
124
+ return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
125
+ }
126
+ function formatAppointmentPrice(service) {
127
+ if (service.onlinePaymentMode === "package_only") return "Book with a package";
128
+ const pricing = service.pricing;
129
+ if (pricing) {
130
+ const display = appointmentPricingDisplay(pricing);
131
+ return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
132
+ }
133
+ return formatAmountOrFree(service.priceAmount, service.priceCurrency);
134
+ }
135
+ function formatAmountOrFree(amount, currency) {
136
+ if (amount === null || currency === null) return null;
137
+ if (amount === 0) return "Free";
138
+ return formatBookingPriceDisplay({
139
+ kind: "exact",
140
+ amount,
141
+ currency
142
+ }, { decimals: "auto" });
143
+ }
144
+ function appointmentPricingDisplay(pricing) {
145
+ switch (pricing.pricingStrategy) {
146
+ case "free": return {
147
+ kind: "free",
148
+ currency: pricing.currency
149
+ };
150
+ case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
151
+ case "tiered": return resolvePricingOptionsPriceDisplay({
152
+ options: pricing.options,
153
+ currency: pricing.currency,
154
+ purpose: "available_now"
155
+ });
156
+ case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
157
+ kind: "unavailable",
158
+ currency: pricing.currency
159
+ } : {
160
+ kind: "range",
161
+ minAmount: pricing.slidingMinAmount,
162
+ maxAmount: pricing.slidingMaxAmount,
163
+ currency: pricing.currency
164
+ };
165
+ default: return assertNever(pricing.pricingStrategy);
166
+ }
167
+ }
168
+ //#endregion
169
+ export { publicAppointmentPricingSchema as a, publicAppointmentLocationSchema as i, formatAppointmentLocation as n, layoutServicesByCategory as o, formatAppointmentPrice as r, selectCategoryView as s, formatAppointmentDuration as t };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as ProductDetailController } from "./shop-commerce-BqLbzUUn.mjs";
2
+ import { r as ProductDetailController } from "./shop-commerce-CDth2_qq.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as ProductListController } from "./shop-commerce-BqLbzUUn.mjs";
2
+ import { i as ProductListController } from "./shop-commerce-CDth2_qq.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
3
- import { t as ProductDetailClient } from "./product-detail.client-D9MP8hvH.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-COuQ2MhQ.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Co1VXFaW.mjs";
3
+ import { t as ProductDetailClient } from "./product-detail.client-BrBNT7Mq.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-BNWzgWAC.mjs";
5
5
  //#region src/rendering/islands/enhancers/productDetail.tsx
6
6
  const decode = defineIslandPropsDecoder("product-detail");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
3
- import { t as ProductListClient } from "./product-list.client-wCz1qcUY.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-COuQ2MhQ.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-Co1VXFaW.mjs";
3
+ import { t as ProductListClient } from "./product-list.client-CftTl7n6.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-BNWzgWAC.mjs";
5
5
  //#region src/rendering/islands/enhancers/productList.tsx
6
6
  const decode = defineIslandPropsDecoder("product-list");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { H as cartInteractiveIslandPropsCodec, Ot as eventCombinedInteractiveIslandPropsCodec, S as eventRegistrationInteractiveIslandPropsCodec, W as checkoutInteractiveIslandPropsCodec, Y as productListInteractiveIslandPropsCodec, Z as shopInteractiveIslandPropsCodec, _ as formInteractiveIslandPropsCodec, a as newsletterFormInteractiveIslandPropsCodec, c as eventListingInteractiveIslandPropsCodec, mn as headerChromeRuntimeContractSchema, p as eventCalendarInteractiveIslandPropsCodec, q as productDetailInteractiveIslandPropsCodec } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
- import { Pi as bookingFormInteractiveIslandPropsCodec } from "./wizardSteps-B3gsXNnb.mjs";
4
- import { i as createZodCodec, s as isDecodeSuccess } from "./islands-dMh0Oxli.mjs";
5
- import { i as giftingInteractiveIslandPropsCodec } from "./gifting.interactive-CrwHpUJG.mjs";
2
+ import { H as cartInteractiveIslandPropsCodec, Ot as eventCombinedInteractiveIslandPropsCodec, S as eventRegistrationInteractiveIslandPropsCodec, W as checkoutInteractiveIslandPropsCodec, Y as productListInteractiveIslandPropsCodec, Z as shopInteractiveIslandPropsCodec, _ as formInteractiveIslandPropsCodec, a as newsletterFormInteractiveIslandPropsCodec, c as eventListingInteractiveIslandPropsCodec, mn as headerChromeRuntimeContractSchema, p as eventCalendarInteractiveIslandPropsCodec, q as productDetailInteractiveIslandPropsCodec } from "./newsletter-form.interactive-DpcfRbI_.mjs";
3
+ import { Fi as bookingFormInteractiveIslandPropsCodec } from "./wizardSteps-BbroaNkT.mjs";
4
+ import { i as createZodCodec, s as isDecodeSuccess } from "./islands-C95FyxUF.mjs";
5
+ import { i as giftingInteractiveIslandPropsCodec } from "./gifting.interactive-DiPDObN0.mjs";
6
6
  import { z } from "zod";
7
7
  //#region ../blocks/src/contracts/non-block-islands.ts
8
8
  const accordionIslandSchema = z.object({