@riverbankcms/sdk 0.178.0 → 0.180.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 (221) hide show
  1. package/README.md +15 -8
  2. package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
  3. package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
  5. package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
  6. package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
  7. package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
  8. package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
  9. package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
  10. package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
  11. package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
  12. package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
  13. package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
  14. package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
  15. package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
  17. package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
  18. package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
  19. package/dist/_dts/resolvePageContent-Y3IZBbtL.d.ts +61 -0
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +3 -3
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +7 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +16 -8
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +3 -3
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  54. package/dist/_dts/serviceBookingOutline-BvtNagjw.d.ts +583 -0
  55. package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
  56. package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
  57. package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
  58. package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
  60. package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
  61. package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
  62. package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
  63. package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
  65. package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
  68. package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
  69. package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
  70. package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
  72. package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
  73. package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
  74. package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
  76. package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
  77. package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
  78. package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
  79. package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
  80. package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
  81. package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-wofJY8xY.mjs} +1 -1
  82. package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
  83. package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
  84. package/dist/client/bookings.mjs +40 -10
  85. package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
  86. package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
  87. package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
  88. package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
  89. package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
  90. package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
  91. package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
  93. package/dist/client/client.mjs +502 -341
  94. package/dist/client/constants-PfYJsEZF.mjs +101 -0
  95. package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
  96. package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
  97. package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
  98. package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
  99. package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
  100. package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
  101. package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
  102. package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
  103. package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
  104. package/dist/client/events-9LPvwbWp.mjs +28 -0
  105. package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
  106. package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
  107. package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
  108. package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
  109. package/dist/client/gifting/client.mjs +6 -6
  110. package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
  111. package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
  112. package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
  113. package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
  114. package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
  115. package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
  116. package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
  117. package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
  118. package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
  119. package/dist/client/portal/client.mjs +301 -117
  120. package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
  121. package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
  122. package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
  123. package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
  125. package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
  126. package/dist/client/rendering/client.mjs +41 -27
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +23 -2836
  129. package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
  131. package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
  132. package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
  133. package/dist/client/{shop-D1oTPDxm.mjs → shop-BKsgxm_-.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
  135. package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
  136. package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
  137. package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
  138. package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
  141. package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
  142. package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
  143. package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
  144. package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
  145. package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
  146. package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
  147. package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
  148. package/dist/preview-next/before-render.mjs +5 -3
  149. package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
  153. package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
  154. package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
  155. package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
  156. package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
  157. package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
  158. package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
  159. package/dist/preview-next/client/runtime.mjs +3 -3
  160. package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
  161. package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
  162. package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
  163. package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
  164. package/dist/preview-next/container-responsive.css +103 -10
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-FwFj8zGL.mjs} +71 -10
  168. package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
  169. package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
  170. package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
  171. package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
  172. package/dist/server/config-validation.mjs +1 -1
  173. package/dist/server/config.mjs +2 -2
  174. package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
  175. package/dist/server/data/dataLoaderContext.mjs +1 -1
  176. package/dist/server/data/resolveBlockData.mjs +1 -1
  177. package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
  178. package/dist/server/error-f4g44bKx.mjs +387 -0
  179. package/dist/server/index.mjs +3 -2
  180. package/dist/server/loadContent-vgWMz1uD.mjs +694 -0
  181. package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
  182. package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
  183. package/dist/server/next.mjs +67 -94
  184. package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
  185. package/dist/server/page-converter.mjs +1 -1
  186. package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
  187. package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
  188. package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
  189. package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
  190. package/dist/server/prebuild.mjs +1 -1
  191. package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
  192. package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
  193. package/dist/server/rendering/components/pageShared.mjs +1 -1
  194. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  195. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  196. package/dist/server/rendering/server.mjs +5 -4
  197. package/dist/server/rendering.mjs +9 -8
  198. package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-Cv_W1LVB.mjs} +61 -34
  199. package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
  200. package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
  201. package/dist/server/routing.mjs +271 -57
  202. package/dist/server/server.mjs +3 -3
  203. package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
  204. package/dist/server/theme-bridge.mjs +1 -1
  205. package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
  206. package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
  207. package/dist/styles/index.css +504 -27
  208. package/package.json +1 -1
  209. package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
  210. package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
  211. package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
  212. package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
  213. package/dist/client/constants-4o4_hl34.mjs +0 -6
  214. package/dist/client/course-DBEU9IA9.mjs +0 -244
  215. package/dist/client/duration-Q6_QNgiv.mjs +0 -37
  216. package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
  217. package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
  218. package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
  219. package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
  220. package/dist/client/view-DNX59QwM.mjs +0 -1372
  221. package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
@@ -1,438 +0,0 @@
1
- import { n as getRouteTemplatePrefix, r as parseRouteTemplate } from "./routeTemplate-AsKQwa47.mjs";
2
- //#region src/routing/contentTypeResolver.ts
3
- /**
4
- * Convert local SDK ContentTypeConfig to ContentTypeRoutingInfo.
5
- *
6
- * Used to transform local SDK config content types into the minimal
7
- * format needed for routing decisions.
8
- *
9
- * @param ct - ContentTypeConfig from SDK config
10
- * @returns ContentTypeRoutingInfo for routing
11
- */
12
- function toRoutingInfo(ct) {
13
- return {
14
- key: ct.key,
15
- hasPages: ct.hasPages,
16
- routePattern: ct.routePattern ?? null
17
- };
18
- }
19
- //#endregion
20
- //#region src/routing/contentRoutes.ts
21
- /**
22
- * Content route matching utilities.
23
- *
24
- * Derive route matching from SDK config to determine whether a URL path
25
- * is a CMS page or a content entry, without duplicating route patterns.
26
- */
27
- /**
28
- * Extract the first path segment from each routable content type's routePattern.
29
- *
30
- * Use this when you already have a content type array and want the same prefix
31
- * derivation behavior used by runtime routing helpers and generated config files.
32
- */
33
- function getContentEntryPrefixesFromContentTypes(contentTypes) {
34
- return contentTypes.filter((ct) => ct.hasPages && typeof ct.routePattern === "string").map((ct) => getRouteTemplatePrefix(parseRouteTemplate(ct.routePattern))).filter((prefix) => typeof prefix === "string");
35
- }
36
- /**
37
- * Extract the first path segment from each routable content type's routePattern.
38
- *
39
- * Useful for simple prefix-based routing decisions. For more precise matching
40
- * that handles nested patterns, use `isContentEntryPath` instead.
41
- *
42
- * @param config - The SDK config object from defineConfig()
43
- * @returns Array of first path segments from content type routePatterns
44
- *
45
- * @example
46
- * ```typescript
47
- * import { getContentEntryPrefixes } from '@riverbankcms/sdk/routing';
48
- * import config from '../riverbank.config';
49
- *
50
- * // Config with routePatterns: '/blog/{slug}', '/work/projects/{slug}'
51
- * const prefixes = getContentEntryPrefixes(config);
52
- * // Returns ['blog', 'work']
53
- * ```
54
- */
55
- function getContentEntryPrefixes(config) {
56
- return getContentEntryPrefixesFromContentTypes(config.content?.contentTypes ?? []);
57
- }
58
- /**
59
- * Check if a URL path matches any content entry route pattern.
60
- *
61
- * This is the core matching function that works with ContentTypeRoutingInfo[].
62
- * Use this when you have resolved content types from the API or merged sources.
63
- *
64
- * **Note:** Content types are checked in array order. If multiple patterns
65
- * could match a path, the first matching content type wins.
66
- *
67
- * @param contentTypes - Array of content type routing info
68
- * @param path - URL path as string ('/blog/my-post') or segments ['blog', 'my-post']
69
- * @returns Match result with content type and slug if matched
70
- *
71
- * @example
72
- * ```typescript
73
- * import { matchContentEntryPath } from '@riverbankcms/sdk/routing';
74
- *
75
- * const contentTypes = [
76
- * { key: 'blog-post', hasPages: true, routePattern: '/blog/{slug}' },
77
- * { key: 'project', hasPages: true, routePattern: '/work/projects/{slug}' },
78
- * ];
79
- *
80
- * matchContentEntryPath(contentTypes, '/blog/my-post');
81
- * // Returns { isEntry: true, contentType: 'blog-post', slug: 'my-post' }
82
- * ```
83
- */
84
- function matchContentEntryPath(contentTypes, path) {
85
- const segments = typeof path === "string" ? path.split("/").filter(Boolean) : path;
86
- for (const ct of contentTypes) {
87
- if (!ct.hasPages || !ct.routePattern) continue;
88
- const match = matchRouteTemplate(segments, parseRouteTemplate(ct.routePattern));
89
- if (match.matches) return {
90
- isEntry: true,
91
- contentType: ct.key,
92
- slug: match.slug
93
- };
94
- }
95
- return { isEntry: false };
96
- }
97
- /**
98
- * Check if a URL path matches any content entry route pattern.
99
- *
100
- * Supports nested patterns like '/work/projects/{slug}'. Returns the matched
101
- * content type key and extracted slug, useful for routing decisions.
102
- *
103
- * **Note:** Content types are checked in array order. If multiple patterns
104
- * could match a path, the first matching content type wins. Order more specific
105
- * patterns before generic ones in your config.
106
- *
107
- * @param config - The SDK config object from defineConfig()
108
- * @param path - URL path as string ('/blog/my-post') or segments ['blog', 'my-post']
109
- * @returns Match result with content type and slug if matched
110
- *
111
- * @example
112
- * ```typescript
113
- * import { isContentEntryPath } from '@riverbankcms/sdk/routing';
114
- * import config from '../riverbank.config';
115
- *
116
- * // Simple pattern: '/blog/{slug}'
117
- * isContentEntryPath(config, '/blog/my-post');
118
- * // Returns { isEntry: true, contentType: 'blog-post', slug: 'my-post' }
119
- *
120
- * // Nested pattern: '/work/projects/{slug}'
121
- * isContentEntryPath(config, '/work/projects/website-redesign');
122
- * // Returns { isEntry: true, contentType: 'project', slug: 'website-redesign' }
123
- *
124
- * // Non-matching path
125
- * isContentEntryPath(config, '/about');
126
- * // Returns { isEntry: false }
127
- * ```
128
- */
129
- function isContentEntryPath(config, path) {
130
- return matchContentEntryPath((config.content?.contentTypes ?? []).map(toRoutingInfo), path);
131
- }
132
- function matchRouteTemplate(pathSegments, routeTemplate) {
133
- switch (routeTemplate.kind) {
134
- case "fixed-path": {
135
- const fixedSegments = routeTemplate.path.split("/").filter(Boolean);
136
- return { matches: fixedSegments.length === pathSegments.length && fixedSegments.every((segment, index) => pathSegments[index] === segment) };
137
- }
138
- case "fallback-slug":
139
- if (pathSegments.length === 0) return { matches: false };
140
- return {
141
- matches: true,
142
- slug: pathSegments.join("/")
143
- };
144
- case "slug-template": {
145
- const { prefixSegments, suffixSegments } = routeTemplate;
146
- const minimumSegments = prefixSegments.length + suffixSegments.length + 1;
147
- if (pathSegments.length < minimumSegments) return { matches: false };
148
- if (!prefixSegments.every((segment, index) => pathSegments[index] === segment)) return { matches: false };
149
- const suffixOffset = pathSegments.length - suffixSegments.length;
150
- if (!suffixSegments.every((segment, index) => pathSegments[suffixOffset + index] === segment)) return { matches: false };
151
- const slugSegments = pathSegments.slice(prefixSegments.length, suffixOffset);
152
- if (slugSegments.length === 0) return { matches: false };
153
- return {
154
- matches: true,
155
- slug: slugSegments.join("/")
156
- };
157
- }
158
- }
159
- }
160
- //#endregion
161
- //#region src/routing/segmentValidators.ts
162
- /**
163
- * Shared URL segment validators used by routing/subroute detection.
164
- */
165
- /**
166
- * Check if a string is a valid ISO date (YYYY-MM-DD)
167
- */
168
- function isISODateString(str) {
169
- return /^\d{4}-\d{2}-\d{2}$/.test(str);
170
- }
171
- /**
172
- * Check if a string is a valid UUID
173
- */
174
- function isUUID(str) {
175
- return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(str);
176
- }
177
- /**
178
- * Check if a segment is a valid event occurrence segment (ISO date or UUID)
179
- */
180
- function isValidSegment(segment) {
181
- return isISODateString(segment) || isUUID(segment);
182
- }
183
- //#endregion
184
- //#region src/routing/entrySubroutes.ts
185
- /**
186
- * Parse a path into parent path and last segment.
187
- * Returns null when no parent/segment split exists.
188
- */
189
- function extractPotentialEntrySubroute(path) {
190
- const lastSlash = path.lastIndexOf("/");
191
- if (lastSlash <= 0) return null;
192
- const segment = path.slice(lastSlash + 1);
193
- const parentPath = path.slice(0, lastSlash);
194
- if (!segment || !parentPath) return null;
195
- return {
196
- parentPath,
197
- segment
198
- };
199
- }
200
- /**
201
- * Detect entry subroute candidate using content type routing info (no API calls).
202
- *
203
- * This lets callers avoid loading parent content when the parent path doesn't match
204
- * any content entry route pattern.
205
- */
206
- function detectEntrySubrouteFromTypes(contentTypes, path) {
207
- const parsed = extractPotentialEntrySubroute(path);
208
- if (!parsed) return null;
209
- const match = matchContentEntryPath(contentTypes, parsed.parentPath);
210
- if (!match.isEntry || !match.contentType) return null;
211
- const subroutes = contentTypes.find((ct) => ct.key === match.contentType)?.subroutes ?? [];
212
- if (subroutes.length === 0) return null;
213
- const matchedSubroute = subroutes.find((subroute) => isSegmentTypeMatch(parsed.segment, subroute.segmentType));
214
- if (!matchedSubroute) return null;
215
- return {
216
- parentPath: parsed.parentPath,
217
- segment: parsed.segment,
218
- contentTypeKey: match.contentType,
219
- kind: matchedSubroute.kind,
220
- segmentType: matchedSubroute.segmentType,
221
- precedence: matchedSubroute.precedence ?? "subroute-first"
222
- };
223
- }
224
- function isSegmentTypeMatch(segment, segmentType) {
225
- if (segmentType === "uuid") return isUUID(segment);
226
- if (segmentType === "iso-date") return isISODateString(segment);
227
- if (segmentType === "uuid-or-date") return isValidSegment(segment);
228
- return isSubrouteSlugSegment(segment);
229
- }
230
- function isSubrouteSlugSegment(segment) {
231
- return /^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(segment);
232
- }
233
- /**
234
- * Default eligibility predicate for entry subroute resolution.
235
- *
236
- * - `event`: segment must be event-like (date or UUID)
237
- * - `null`: used by fallback probing; keep it strict and only allow event-like segments
238
- * - others: not subroute-eligible
239
- */
240
- function defaultShouldAttemptEntrySubroute(args) {
241
- if (args.entryTypeKey === "event") return isValidSegment(args.segment) || isSubrouteSlugSegment(args.segment);
242
- if (args.entryTypeKey === null) return isValidSegment(args.segment);
243
- return false;
244
- }
245
- /**
246
- * Infer a known subroute kind when explicit routing metadata is unavailable.
247
- *
248
- * This is primarily used by SDK catch-all routing when local config does not
249
- * yet expose `routing.subroutes`, allowing generic resolver usage without
250
- * duplicating event-specific API calls.
251
- */
252
- function inferKnownEntrySubrouteKind(args) {
253
- if (args.entryTypeKey === "event" && isValidSegment(args.segment)) return "event-occurrence";
254
- if (args.entryTypeKey === null && isValidSegment(args.segment)) return "event-occurrence";
255
- return null;
256
- }
257
- //#endregion
258
- //#region src/routing/resolvePageContent.ts
259
- var RiverbankContentLoadError = class RiverbankContentLoadError extends Error {
260
- constructor(message, options) {
261
- super(message);
262
- this.name = "RiverbankContentLoadError";
263
- this.surface = options.surface;
264
- this.reason = options.reason ?? null;
265
- this.path = options.path ?? null;
266
- this.cause = options.cause;
267
- Object.setPrototypeOf(this, RiverbankContentLoadError.prototype);
268
- }
269
- };
270
- function contentFound(content) {
271
- return {
272
- kind: "found",
273
- content
274
- };
275
- }
276
- function contentNotFound() {
277
- return { kind: "not_found" };
278
- }
279
- function contentLoadFailed(error) {
280
- return {
281
- kind: "failed",
282
- error
283
- };
284
- }
285
- const notFound = () => ({
286
- found: false,
287
- reason: "not-found"
288
- });
289
- const invalidSubroute = () => ({
290
- found: false,
291
- reason: "invalid-subroute"
292
- });
293
- async function loadContentResolution(context, path) {
294
- const result = await context.loadContent(path);
295
- switch (result.kind) {
296
- case "found": return {
297
- found: true,
298
- content: result.content,
299
- entrySubrouteData: null,
300
- resolvedPath: path
301
- };
302
- case "not_found": return null;
303
- case "failed": return {
304
- found: false,
305
- reason: "load-failed",
306
- failedPath: path,
307
- error: result.error
308
- };
309
- }
310
- }
311
- function contentFromResolution(resolution) {
312
- return resolution?.found ? resolution.content : null;
313
- }
314
- async function resolveParentSubroute(context, input) {
315
- const subroute = await context.resolveSubroute({
316
- content: input.content,
317
- kind: input.kind,
318
- contentTypeKey: context.getContentTypeKey(input.content) ?? input.contentTypeKeyFallback,
319
- segment: input.segment
320
- });
321
- return subroute ? {
322
- found: true,
323
- content: input.content,
324
- entrySubrouteData: subroute,
325
- resolvedPath: input.parentPath
326
- } : null;
327
- }
328
- async function resolveDetectedBeforeExact(context, detected) {
329
- if (!detected || detected.precedence === "content-first") return {
330
- kind: "continue",
331
- invalidSubroute: false
332
- };
333
- const parentResolution = await loadContentResolution(context, detected.parentPath);
334
- if (parentResolution && !parentResolution.found) return {
335
- kind: "resolved",
336
- resolution: parentResolution
337
- };
338
- const parentContent = contentFromResolution(parentResolution);
339
- if (!parentContent) return {
340
- kind: "continue",
341
- invalidSubroute: false
342
- };
343
- const resolution = await resolveParentSubroute(context, {
344
- content: parentContent,
345
- kind: detected.kind,
346
- contentTypeKeyFallback: detected.contentTypeKey,
347
- parentPath: detected.parentPath,
348
- segment: detected.segment
349
- });
350
- return resolution ? {
351
- kind: "resolved",
352
- resolution
353
- } : {
354
- kind: "continue",
355
- invalidSubroute: true
356
- };
357
- }
358
- async function resolveDetectedAfterExact(context, detected, invalidBeforeExact) {
359
- if (detected.precedence !== "content-first") return invalidBeforeExact ? invalidSubroute() : notFound();
360
- const parentResolution = await loadContentResolution(context, detected.parentPath);
361
- if (parentResolution && !parentResolution.found) return parentResolution;
362
- const parentContent = contentFromResolution(parentResolution);
363
- if (!parentContent) return notFound();
364
- return await resolveParentSubroute(context, {
365
- content: parentContent,
366
- kind: detected.kind,
367
- contentTypeKeyFallback: detected.contentTypeKey,
368
- parentPath: detected.parentPath,
369
- segment: detected.segment
370
- }) ?? invalidSubroute();
371
- }
372
- function shouldLoadFallbackParent(context, contentTypes, parentPath, segment) {
373
- if (contentTypes.length === 0 || !context.shouldAttemptSubroute) return true;
374
- const parentMatch = matchContentEntryPath(contentTypes, parentPath);
375
- return context.shouldAttemptSubroute({
376
- entryTypeKey: parentMatch.isEntry ? parentMatch.contentType ?? null : null,
377
- segment
378
- });
379
- }
380
- async function resolveFallbackSubroute(context, contentTypes, path) {
381
- const fallback = extractPotentialEntrySubroute(path);
382
- if (!fallback) return notFound();
383
- if (!shouldLoadFallbackParent(context, contentTypes, fallback.parentPath, fallback.segment)) return notFound();
384
- const parentResolution = await loadContentResolution(context, fallback.parentPath);
385
- if (parentResolution && !parentResolution.found) return parentResolution;
386
- const parentContent = contentFromResolution(parentResolution);
387
- if (!parentContent) return notFound();
388
- if (!(context.shouldAttemptSubroute?.({
389
- entryTypeKey: context.getContentTypeKey(parentContent),
390
- segment: fallback.segment
391
- }) ?? true)) return notFound();
392
- return await resolveParentSubroute(context, {
393
- content: parentContent,
394
- kind: null,
395
- contentTypeKeyFallback: null,
396
- parentPath: fallback.parentPath,
397
- segment: fallback.segment
398
- }) ?? invalidSubroute();
399
- }
400
- /**
401
- * Resolve page content for a given path.
402
- *
403
- * This function implements the shared routing logic for both SDK and frontend:
404
- *
405
- * 1. **Known subroute fast-path** - For paths that clearly match a known entry type route pattern,
406
- * try parent+subroute resolution first (avoids a guaranteed exact-path miss).
407
- * 2. **Exact match** - Load content directly for the full path
408
- * 3. **Fallback** - Try subroute resolution even when the entry type isn't in `contentTypes`
409
- *
410
- * ## Error Handling
411
- *
412
- * The `loadContent` function MUST return `not_found` for absence and `failed`
413
- * for upstream errors. SDK callers should wrap their client to catch and
414
- * normalize exceptions.
415
- *
416
- * @template TContent - The content type
417
- * @param options - Resolution options with injected loaders
418
- * @returns Resolution result indicating success or failure
419
- */
420
- async function resolvePageContent(options) {
421
- const { path, contentTypes, loadContent, resolveSubroute, getContentTypeKey, shouldAttemptSubroute } = options;
422
- const context = {
423
- loadContent,
424
- resolveSubroute,
425
- getContentTypeKey,
426
- shouldAttemptSubroute
427
- };
428
- const detected = detectEntrySubrouteFromTypes(contentTypes, path);
429
- const earlySubroute = await resolveDetectedBeforeExact(context, detected);
430
- if (earlySubroute.kind === "resolved") return earlySubroute.resolution;
431
- const contentResolution = await loadContentResolution(context, path);
432
- if (contentResolution && !contentResolution.found) return contentResolution;
433
- if (contentResolution && contentFromResolution(contentResolution)) return contentResolution;
434
- if (detected) return resolveDetectedAfterExact(context, detected, earlySubroute.invalidSubroute);
435
- return resolveFallbackSubroute(context, contentTypes, path);
436
- }
437
- //#endregion
438
- export { toRoutingInfo as _, resolvePageContent as a, extractPotentialEntrySubroute as c, isUUID as d, isValidSegment as f, matchContentEntryPath as g, isContentEntryPath as h, contentNotFound as i, inferKnownEntrySubrouteKind as l, getContentEntryPrefixesFromContentTypes as m, contentFound as n, defaultShouldAttemptEntrySubroute as o, getContentEntryPrefixes as p, contentLoadFailed as r, detectEntrySubrouteFromTypes as s, RiverbankContentLoadError as t, isISODateString as u };