@riverbankcms/sdk 0.170.0 → 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 (219) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4fzXy8H9.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-BPoU758C.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-TnkhoSls.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-7wrMA79U.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
  10. package/dist/_dts/{index-BisbMZTW.d.ts → index-585vn6qb.d.ts} +72 -36
  11. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-CZKSUcDs.d.ts} +4 -4
  12. package/dist/_dts/{index-B82pqQAC.d.ts → index-Cbw0IiY7.d.ts} +2 -2
  13. package/dist/_dts/{index-DXc_ewhR.d.ts → index-ChNbrcgD.d.ts} +1 -1
  14. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-DDKJfaLY.d.ts} +2 -2
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DNCDENic.d.ts} +1 -1
  16. package/dist/_dts/{index-CstY6ZMa.d.ts → index-W9R3Bnf2.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-jXTRN1Y4.d.ts} +3554 -1370
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.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-CbjK5ZLy.d.ts → types-BXuVxDYo.d.ts} +2 -2
  56. package/dist/_dts/{types-CpuxuS40.d.ts → types-DEAKoDNi.d.ts} +3 -3
  57. package/dist/_dts/{types-990t4t99.d.ts → types-kWvBwYK6.d.ts} +7 -7
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-BAO0_ntM.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.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-CH7z2m47.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-LXUHJEi7.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.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-gFuZn-dE.mjs → EventItem-BnwcoFQN.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DuG6z02f.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BM7rTVSL.mjs} +42 -396
  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-PW4Ojv9r.mjs → Page-DH2sm4Cf.mjs} +2696 -2426
  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-wlRXnOjO.mjs → cart-BozMM5NK.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-CqOOxPbW.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-CTWF5nbB.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.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 -218
  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-B4VbblGN.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-dELKxxIe.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-B2HTUWLq.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-DX70QG-J.mjs} +3 -3
  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/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-D1MHoPbh.mjs} +3 -3
  118. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  119. package/dist/client/portal/client.mjs +294 -48
  120. package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-BN3zv5sa.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-GN_Id4bF.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-BOyra8CA.mjs} +1015 -926
  126. package/dist/client/rendering/client.mjs +57 -32
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +1956 -191
  129. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
  132. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-LjBLDBqF.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-D1jDTbms.mjs} +11 -11
  141. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  142. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  143. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
  146. package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
  147. package/dist/client/{view-CgComegl.mjs → view-ShYH3WXh.mjs} +3 -3
  148. package/dist/preview-next/before-render.mjs +33 -13
  149. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  150. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-DsSqwrMS.mjs} +392 -11
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3264 -3199
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-C86Out4V.mjs} +5 -6
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-CBWYjBvQ.mjs} +20 -10
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1155 -330
  158. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  159. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3558 -2230
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-DPeV7KaP.mjs} +1 -1
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +28 -3
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/keepAlive.mjs +1 -1
  168. package/dist/preview-next/middleware.mjs +1 -1
  169. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-CtSgU8UZ.mjs} +547 -188
  170. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-ifgaBglp.mjs} +4 -4
  171. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-DGDOH6OU.mjs} +3 -3
  172. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
  173. package/dist/server/bindings-CiYpie1M.mjs +1802 -0
  174. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  175. package/dist/server/{client-Djjv-NuA.mjs → client-ngWuFsmN.mjs} +638 -216
  176. package/dist/server/config-template-validation.mjs +30 -4
  177. package/dist/server/config-validation.mjs +1 -1
  178. package/dist/server/config.mjs +3 -34
  179. package/dist/server/data/resolveBlockData.mjs +1 -1
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
  182. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-D4J747FQ.mjs} +2 -2
  183. package/dist/server/manifest.mjs +1 -1
  184. package/dist/server/next.mjs +8 -6
  185. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
  186. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
  187. package/dist/server/page-converter.mjs +3 -3
  188. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  189. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-DFv3h4Ib.mjs} +306 -287
  190. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
  191. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-CAZD0LcY.mjs} +848 -315
  192. package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
  193. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-BKOCND3b.mjs} +1 -1
  194. package/dist/server/prebuild.mjs +1 -1
  195. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
  196. package/dist/server/{registry-Djrj9gWy.mjs → registry-BogXzcOD.mjs} +4000 -1989
  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 +3 -3
  201. package/dist/server/rendering.mjs +7 -7
  202. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
  203. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
  204. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  205. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  206. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
  207. package/dist/server/server.mjs +3 -3
  208. package/dist/server/theme-bridge.mjs +2 -2
  209. package/dist/server/theme.mjs +2 -1
  210. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  211. package/dist/server/{validation-Dh8htd6l.mjs → validation-vSBCWU3w.mjs} +9 -9
  212. package/dist/server/{version-LMwnoksN.mjs → version-Cw5vFmUY.mjs} +1 -1
  213. package/dist/styles/index.css +408 -10
  214. package/package.json +1 -1
  215. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  216. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  217. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  218. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  219. package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
@@ -1,432 +0,0 @@
1
- "use client";
2
- import "./shop.interactive-BH0xDlMF.mjs";
3
- import { M as assertNever } from "./creditProducts-CMOmhWm2.mjs";
4
- import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
5
- import { t as StepIndicator$1 } from "./StepIndicator-BK0GEDoP.mjs";
6
- import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
7
- import React from "react";
8
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
- //#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
10
- function RegistrationClosedState({ title, body }) {
11
- return /* @__PURE__ */ jsx("div", {
12
- id: EVENT_REGISTRATION_ANCHOR_ID,
13
- className: "rb-reg-surface er-container er-registration-closed",
14
- role: "status",
15
- children: /* @__PURE__ */ jsx("div", {
16
- className: "rb-reg-stack er-stack",
17
- children: /* @__PURE__ */ jsxs("div", { children: [
18
- /* @__PURE__ */ jsx("p", {
19
- className: "er-registration-shell__eyebrow",
20
- children: "Registration"
21
- }),
22
- /* @__PURE__ */ jsx("h3", {
23
- className: "er-title er-registration-shell__title",
24
- children: title
25
- }),
26
- /* @__PURE__ */ jsx("p", {
27
- className: "er-text er-text--muted",
28
- children: body
29
- })
30
- ] })
31
- })
32
- });
33
- }
34
- //#endregion
35
- //#region ../blocks/src/system/runtime/nodes/event-registration/BookingEntryViews.tsx
36
- /**
37
- * The in-page booking card and the fixed booking bar (issue 1581).
38
- *
39
- * No hooks and no client-only imports: the server renders the card at its
40
- * final size before hydration, and the client renders the same markup.
41
- */
42
- function joinFacts(facts) {
43
- return facts.filter((fact) => Boolean(fact)).join(" · ");
44
- }
45
- function finishedTitle(entry) {
46
- if (entry.kind === "waitlisted") return entry.when ? `You’re on the waitlist for ${entry.when}` : "You’re on the waitlist";
47
- return entry.when ? `You’re booked: ${entry.when}` : "You’re booked";
48
- }
49
- function CheckBadge() {
50
- return /* @__PURE__ */ jsx("span", {
51
- className: "er-booking-card__badge",
52
- "aria-hidden": "true",
53
- children: /* @__PURE__ */ jsx("svg", {
54
- width: "22",
55
- height: "22",
56
- viewBox: "0 0 22 22",
57
- fill: "none",
58
- stroke: "currentColor",
59
- strokeWidth: "2.6",
60
- strokeLinecap: "round",
61
- strokeLinejoin: "round",
62
- children: /* @__PURE__ */ jsx("path", { d: "M5 11.5l4 4L17 7" })
63
- })
64
- });
65
- }
66
- function CardCta(props) {
67
- return /* @__PURE__ */ jsx(ThemedButton, {
68
- type: "button",
69
- variant: props.variant,
70
- size: "md",
71
- extraClassName: "er-booking-card__cta",
72
- label: props.label,
73
- onClick: props.onClick
74
- });
75
- }
76
- function SingleCard({ entry, buttonVariant, onAction }) {
77
- return /* @__PURE__ */ jsx("div", {
78
- className: "er-booking-card",
79
- "data-entry": "single",
80
- children: /* @__PURE__ */ jsxs("div", {
81
- className: "er-booking-card__row",
82
- children: [
83
- entry.tile ? /* @__PURE__ */ jsxs("span", {
84
- className: "er-booking-card__tile",
85
- "aria-hidden": "true",
86
- children: [/* @__PURE__ */ jsx("span", {
87
- className: "er-booking-card__tile-month",
88
- children: entry.tile.month
89
- }), /* @__PURE__ */ jsx("span", {
90
- className: "er-booking-card__tile-day",
91
- children: entry.tile.day
92
- })]
93
- }) : null,
94
- /* @__PURE__ */ jsxs("div", {
95
- className: "er-booking-card__body",
96
- children: [
97
- entry.when ? /* @__PURE__ */ jsx("p", {
98
- className: "er-booking-card__when",
99
- children: entry.when
100
- }) : null,
101
- entry.venue ? /* @__PURE__ */ jsx("p", {
102
- className: "er-booking-card__venue",
103
- children: entry.venue
104
- }) : null,
105
- /* @__PURE__ */ jsx("p", {
106
- className: "er-booking-card__facts",
107
- children: joinFacts([entry.price, entry.places])
108
- })
109
- ]
110
- }),
111
- /* @__PURE__ */ jsx(CardCta, {
112
- label: entry.action,
113
- variant: buttonVariant,
114
- onClick: onAction
115
- })
116
- ]
117
- })
118
- });
119
- }
120
- function ChooseDateCard({ entry, buttonVariant, onAction, onChooseDate }) {
121
- return /* @__PURE__ */ jsxs("div", {
122
- className: "er-booking-card",
123
- "data-entry": "choose-date",
124
- children: [/* @__PURE__ */ jsxs("div", {
125
- className: "er-booking-card__row",
126
- children: [/* @__PURE__ */ jsxs("div", {
127
- className: "er-booking-card__body",
128
- children: [/* @__PURE__ */ jsx("p", {
129
- className: "er-booking-card__when",
130
- children: joinFacts([entry.schedule, entry.venue])
131
- }), /* @__PURE__ */ jsx("p", {
132
- className: "er-booking-card__facts",
133
- children: joinFacts([entry.price])
134
- })]
135
- }), /* @__PURE__ */ jsx(CardCta, {
136
- label: entry.action,
137
- variant: buttonVariant,
138
- onClick: onAction
139
- })]
140
- }), /* @__PURE__ */ jsxs("div", {
141
- className: "er-booking-card__dates",
142
- children: [
143
- /* @__PURE__ */ jsx("span", {
144
- className: "er-booking-card__dates-label",
145
- children: "Next dates"
146
- }),
147
- entry.dates.map((date) => /* @__PURE__ */ jsx("button", {
148
- type: "button",
149
- className: "er-booking-card__date",
150
- "data-full": date.full ? "true" : void 0,
151
- onClick: onChooseDate ? () => onChooseDate(date.selectionId) : void 0,
152
- children: joinFacts([date.label, date.places])
153
- }, date.selectionId)),
154
- entry.moreCount > 0 ? /* @__PURE__ */ jsxs("span", {
155
- className: "er-booking-card__more",
156
- children: [
157
- "+ ",
158
- entry.moreCount,
159
- " more"
160
- ]
161
- }) : null
162
- ]
163
- })]
164
- });
165
- }
166
- function ChooseEventCard({ entry, buttonVariant, onAction }) {
167
- return /* @__PURE__ */ jsx("div", {
168
- className: "er-booking-card",
169
- "data-entry": "choose-event",
170
- children: /* @__PURE__ */ jsxs("div", {
171
- className: "er-booking-card__row",
172
- children: [/* @__PURE__ */ jsx("div", {
173
- className: "er-booking-card__body",
174
- children: /* @__PURE__ */ jsx("p", {
175
- className: "er-booking-card__when",
176
- children: entry.countLabel
177
- })
178
- }), /* @__PURE__ */ jsx(CardCta, {
179
- label: entry.action,
180
- variant: buttonVariant,
181
- onClick: onAction
182
- })]
183
- })
184
- });
185
- }
186
- function FinishedCard({ entry, onAction }) {
187
- return /* @__PURE__ */ jsx("div", {
188
- className: "er-booking-card",
189
- "data-entry": entry.kind,
190
- children: /* @__PURE__ */ jsxs("div", {
191
- className: "er-booking-card__row",
192
- children: [
193
- /* @__PURE__ */ jsx(CheckBadge, {}),
194
- /* @__PURE__ */ jsxs("div", {
195
- className: "er-booking-card__body",
196
- children: [/* @__PURE__ */ jsx("p", {
197
- className: "er-booking-card__when",
198
- children: finishedTitle(entry)
199
- }), entry.kind === "booked" && entry.places ? /* @__PURE__ */ jsx("p", {
200
- className: "er-booking-card__facts",
201
- children: entry.places
202
- }) : null]
203
- }),
204
- /* @__PURE__ */ jsx(CardCta, {
205
- label: entry.action,
206
- variant: "outline",
207
- onClick: onAction
208
- })
209
- ]
210
- })
211
- });
212
- }
213
- function BookingEntryCard(props) {
214
- const { entry, ...rest } = props;
215
- switch (entry.kind) {
216
- case "single": return /* @__PURE__ */ jsx(SingleCard, {
217
- entry,
218
- ...rest
219
- });
220
- case "chooseDate": return /* @__PURE__ */ jsx(ChooseDateCard, {
221
- entry,
222
- ...rest
223
- });
224
- case "chooseEvent": return /* @__PURE__ */ jsx(ChooseEventCard, {
225
- entry,
226
- ...rest
227
- });
228
- case "inProgress": return null;
229
- case "booked":
230
- case "waitlisted": return /* @__PURE__ */ jsx(FinishedCard, {
231
- entry,
232
- ...rest
233
- });
234
- default: return assertNever(entry);
235
- }
236
- }
237
- function BarProgress({ progress }) {
238
- return /* @__PURE__ */ jsx("span", {
239
- className: "er-booking-bar__progress",
240
- "aria-hidden": "true",
241
- children: /* @__PURE__ */ jsx("span", {
242
- className: "er-booking-bar__progress-fill",
243
- style: { width: `${Math.round(progress.current / Math.max(progress.total, 1) * 100)}%` }
244
- })
245
- });
246
- }
247
- function plain(text) {
248
- return text ? {
249
- text,
250
- tone: "plain"
251
- } : null;
252
- }
253
- function price(text) {
254
- return text ? {
255
- text,
256
- tone: "price"
257
- } : null;
258
- }
259
- function barCopy(title, facts) {
260
- const present = facts.filter((fact) => fact !== null);
261
- return {
262
- title,
263
- facts: present,
264
- summary: present.map((fact) => fact.text).join(" · ")
265
- };
266
- }
267
- /** What the bar says for every booking state: a title or status, then its facts. */
268
- function bookingBarCopy(entry) {
269
- switch (entry.kind) {
270
- case "single": {
271
- const copy = barCopy(entry.title, [
272
- plain(entry.run),
273
- plain(entry.shortWhen),
274
- price(entry.price),
275
- plain(entry.places)
276
- ]);
277
- return copy.facts.length > 0 ? copy : barCopy(entry.title, [plain(entry.action || "Book your place")]);
278
- }
279
- case "chooseDate": return barCopy(entry.title, [
280
- price(entry.price),
281
- plain(entry.nextDate ? `next: ${entry.nextDate}` : null),
282
- plain(entry.schedule)
283
- ]);
284
- case "chooseEvent": return barCopy(entry.title, [plain(entry.countLabel)]);
285
- case "inProgress": return barCopy(entry.title, [plain("Booking in progress"), plain(entry.progress ? `Step ${entry.progress.current} of ${entry.progress.total}` : null)]);
286
- case "booked": return barCopy("Booked", [plain(entry.shortWhen), plain(entry.places)]);
287
- case "waitlisted": return barCopy("On the waitlist", [plain(entry.shortWhen)]);
288
- default: return assertNever(entry);
289
- }
290
- }
291
- /**
292
- * The facts with a thin divider between them. Assistive tech hears a comma
293
- * in place of each divider, so the bar still reads as a sentence.
294
- */
295
- function BarFacts({ facts, className }) {
296
- return /* @__PURE__ */ jsx("span", {
297
- className,
298
- children: facts.map((fact, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [index > 0 ? /* @__PURE__ */ jsx(BarDivider, {}) : null, /* @__PURE__ */ jsx("span", {
299
- className: fact.tone === "price" ? "er-booking-bar__fact er-booking-bar__fact--price" : "er-booking-bar__fact",
300
- children: fact.text
301
- })] }, `${index}-${fact.text}`))
302
- });
303
- }
304
- function BarDivider() {
305
- return /* @__PURE__ */ jsx("span", {
306
- className: "er-booking-bar__divider",
307
- children: /* @__PURE__ */ jsx("span", {
308
- className: "rb-sr-only",
309
- children: ", "
310
- })
311
- });
312
- }
313
- /** Longer labels (a block's own button text) give way to a short one in the bar. */
314
- const BAR_LABEL_MAX = 18;
315
- /** The bar's button label: short enough for a phone's bar. */
316
- function bookingBarAction(entry) {
317
- switch (entry.kind) {
318
- case "single": return entry.action.length <= BAR_LABEL_MAX ? entry.action : "Book now";
319
- case "inProgress": return "Continue";
320
- case "chooseDate":
321
- case "chooseEvent":
322
- case "booked":
323
- case "waitlisted": return entry.action;
324
- default: return assertNever(entry);
325
- }
326
- }
327
- function FinishedBar(props) {
328
- const { title, facts } = bookingBarCopy(props.entry);
329
- return /* @__PURE__ */ jsxs("button", {
330
- type: "button",
331
- className: "er-booking-bar__status",
332
- onClick: props.onAction,
333
- children: [
334
- /* @__PURE__ */ jsx("span", {
335
- className: "er-booking-bar__check",
336
- "aria-hidden": "true",
337
- children: /* @__PURE__ */ jsx("svg", {
338
- width: "12",
339
- height: "12",
340
- viewBox: "0 0 12 12",
341
- fill: "none",
342
- stroke: "currentColor",
343
- strokeWidth: "2",
344
- strokeLinecap: "round",
345
- strokeLinejoin: "round",
346
- children: /* @__PURE__ */ jsx("path", { d: "M2.5 6.25l2.25 2.25L9.5 3.75" })
347
- })
348
- }),
349
- /* @__PURE__ */ jsxs("span", {
350
- className: "er-booking-bar__status-text",
351
- children: [/* @__PURE__ */ jsx("strong", {
352
- className: "er-booking-bar__status-title",
353
- children: title
354
- }), facts.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(BarDivider, {}), /* @__PURE__ */ jsx(BarFacts, {
355
- className: "er-booking-bar__meta",
356
- facts
357
- })] }) : null]
358
- }),
359
- /* @__PURE__ */ jsx("span", {
360
- className: "rb-sr-only",
361
- children: ", view your booking"
362
- })
363
- ]
364
- });
365
- }
366
- function BookingEntryBar(props) {
367
- const hidden = props.state === "hidden";
368
- const finished = props.entry.kind === "booked" || props.entry.kind === "waitlisted";
369
- return /* @__PURE__ */ jsx("div", {
370
- ref: props.barRef,
371
- className: "er-booking-bar",
372
- "data-rb-site-overlay": "",
373
- role: "region",
374
- "aria-label": "Booking",
375
- "data-state": props.state,
376
- "data-entry": props.entry.kind,
377
- "aria-hidden": hidden || void 0,
378
- inert: hidden,
379
- children: /* @__PURE__ */ jsx("div", {
380
- className: "er-booking-bar__inner",
381
- children: finished ? /* @__PURE__ */ jsx(FinishedBar, {
382
- entry: props.entry,
383
- onAction: props.onAction
384
- }) : /* @__PURE__ */ jsx(IdleBarContent, {
385
- entry: props.entry,
386
- buttonVariant: props.buttonVariant,
387
- onAction: props.onAction
388
- })
389
- })
390
- });
391
- }
392
- function IdleBarContent(props) {
393
- const { title, facts } = bookingBarCopy(props.entry);
394
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
395
- className: "er-booking-bar__info",
396
- children: [
397
- /* @__PURE__ */ jsx("span", {
398
- className: "er-booking-bar__title",
399
- children: title
400
- }),
401
- /* @__PURE__ */ jsx(BarFacts, {
402
- className: "er-booking-bar__meta",
403
- facts
404
- }),
405
- props.entry.kind === "inProgress" && props.entry.progress ? /* @__PURE__ */ jsx(BarProgress, { progress: props.entry.progress }) : null
406
- ]
407
- }), /* @__PURE__ */ jsx(ThemedButton, {
408
- type: "button",
409
- variant: props.buttonVariant,
410
- size: "sm",
411
- extraClassName: "er-booking-bar__cta",
412
- label: bookingBarAction(props.entry),
413
- onClick: props.onAction
414
- })] });
415
- }
416
- //#endregion
417
- //#region ../blocks/src/system/runtime/nodes/event-registration/StepIndicator.tsx
418
- /**
419
- * Step indicator component for the event registration wizard.
420
- * Thin wrapper around the shared StepIndicator: styled by the shared
421
- * registration-surface classes, with 'er'-prefixed classes kept in the
422
- * markup as the stable hook surface for per-site theme CSS.
423
- */
424
- function StepIndicator(props) {
425
- return /* @__PURE__ */ jsx(StepIndicator$1, {
426
- ...props,
427
- classPrefix: "er",
428
- emitSharedClasses: true
429
- });
430
- }
431
- //#endregion
432
- export { RegistrationClosedState as i, BookingEntryBar as n, BookingEntryCard as r, StepIndicator as t };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import { en as useEditorUiStoreInstance, i as usePreviewSidebarNavigation } from "./previewAssistantSlot-CSs9S8wr.mjs";
3
- //#region ../preview-next/src/client/blocks/useOpenBlockForSetup.ts
4
- /**
5
- * Opens a block in the sidebar, at the field that needs filling in when
6
- * there's one. Every "Set up" button goes through here.
7
- */
8
- function useOpenBlockForSetup() {
9
- const navigation = usePreviewSidebarNavigation();
10
- const uiStore = useEditorUiStoreInstance();
11
- const open = (blockId) => navigation.openBlock(blockId);
12
- const openField = (blockId, fieldPath) => {
13
- open(blockId);
14
- uiStore.getState().requestFocus({
15
- kind: "main-field",
16
- blockId,
17
- fieldPath: fieldPath.startsWith("content.") ? fieldPath : `content.${fieldPath}`
18
- });
19
- };
20
- const setUp = (blockId, repair) => repair.kind === "field" ? openField(blockId, repair.path) : open(blockId);
21
- return {
22
- open,
23
- openField,
24
- setUp
25
- };
26
- }
27
- //#endregion
28
- export { useOpenBlockForSetup as t };