@riverbankcms/sdk 0.166.0 → 0.168.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 (230) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
  4. package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
  5. package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
  6. package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
  7. package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
  8. package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
  9. package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
  11. package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
  12. package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
  13. package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
  14. package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
  15. package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
  16. package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
  17. package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
  19. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
  20. package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
  21. package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
  22. package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
  23. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  25. package/dist/_dts/sdk/src/client.d.ts +7 -7
  26. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  27. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  30. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  31. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  32. package/dist/_dts/sdk/src/index.d.ts +8 -8
  33. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  35. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  37. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  38. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  39. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  43. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  45. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -5
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  49. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  50. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  51. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  52. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  53. package/dist/_dts/sdk/src/server.d.ts +5 -5
  54. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  55. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  56. package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
  57. package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
  58. package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
  59. package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
  61. package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
  62. package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
  63. package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
  64. package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
  67. package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
  68. package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
  69. package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
  70. package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
  71. package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
  72. package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
  73. package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
  74. package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
  76. package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
  77. package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
  78. package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
  79. package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
  80. package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
  81. package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
  82. package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
  83. package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
  84. package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
  85. package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
  86. package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
  87. package/dist/client/bookings.mjs +18 -13
  88. package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
  89. package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
  90. package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
  91. package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
  92. package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
  93. package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
  94. package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
  95. package/dist/client/client.mjs +325 -65
  96. package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
  97. package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
  98. package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
  101. package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
  102. package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
  103. package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
  104. package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
  105. package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
  106. package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
  107. package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
  108. package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
  109. package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
  110. package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
  111. package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
  112. package/dist/client/gifting/client.mjs +3 -3
  113. package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
  114. package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
  115. package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
  116. package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
  117. package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
  118. package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
  119. package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
  120. package/dist/client/portal/client.mjs +76 -229
  121. package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
  122. package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
  123. package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
  124. package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
  125. package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
  126. package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
  127. package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
  128. package/dist/client/rendering/client.mjs +30 -30
  129. package/dist/client/rendering/islands.mjs +1 -1
  130. package/dist/client/rendering.mjs +10 -9
  131. package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
  132. package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
  133. package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
  134. package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
  135. package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
  136. package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
  137. package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
  138. package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
  139. package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
  140. package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
  141. package/dist/client/spam-protection.mjs +1 -1
  142. package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
  143. package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
  144. package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
  145. package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
  146. package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
  147. package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
  148. package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
  149. package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
  150. package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
  151. package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
  152. package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
  153. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
  154. package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
  155. package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
  156. package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
  157. package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
  158. package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
  160. package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
  161. package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
  162. package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
  163. package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
  164. package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
  165. package/dist/preview-next/client/runtime.mjs +3 -3
  166. package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
  167. package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
  168. package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
  169. package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
  170. package/dist/preview-next/keepAlive.mjs +1 -1
  171. package/dist/preview-next/middleware.mjs +1 -1
  172. package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
  173. package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
  174. package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
  175. package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
  176. package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
  177. package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +1 -1
  180. package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
  181. package/dist/server/data/resolveBlockData.mjs +1 -1
  182. package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
  183. package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
  186. package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
  187. package/dist/server/manifest.mjs +1 -1
  188. package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
  189. package/dist/server/metadata.mjs +5 -1
  190. package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
  191. package/dist/server/next/revalidate.mjs +9 -4
  192. package/dist/server/next.mjs +6 -6
  193. package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
  194. package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
  195. package/dist/server/page-converter.mjs +3 -3
  196. package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
  197. package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
  198. package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
  199. package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
  200. package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
  203. package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +3 -3
  208. package/dist/server/rendering.mjs +8 -8
  209. package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
  210. package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
  211. package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
  212. package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/theme-bridge.mjs +2 -3
  215. package/dist/server/theme.mjs +1 -2
  216. package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
  217. package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
  218. package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
  219. package/dist/styles/index.css +991 -48
  220. package/package.json +4 -3
  221. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  222. package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
  223. package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
  224. package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
  225. package/dist/client/events-BmqPeeQm.mjs +0 -20
  226. package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
  227. package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
  228. package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
  229. package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
  230. package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
@@ -0,0 +1,115 @@
1
+ import { d as resolveManagedMediaReference, i as mediaSchema, l as renderableMediaAssetSchema, u as indexRenderableMediaAssets } from "./media-Brn9FW5s.mjs";
2
+ //#region ../site-contracts/src/identity/loaderEndpoints.ts
3
+ const SUPPORTED_LOADER_ENDPOINTS = [
4
+ "listPublishedEntries",
5
+ "getPublishedEntryPreview",
6
+ "listPublicEvents",
7
+ "listPublicEventCalendarWindow",
8
+ "listPublicRecurringSchedule",
9
+ "getPublicEventDetails",
10
+ "listPublicRouteCandidates",
11
+ "listPublicTeamMembers",
12
+ "listPublicProducts",
13
+ "listPublicPasses",
14
+ "listPublicMemberships",
15
+ "getPublicFormById",
16
+ "getPublicBookingServices",
17
+ "getPublicWeeklySlotAvailability"
18
+ ];
19
+ function isSupportedLoaderEndpoint(endpoint) {
20
+ return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
21
+ }
22
+ //#endregion
23
+ //#region ../api/src/publicProducts.ts
24
+ function parseJsonValue(value) {
25
+ try {
26
+ return JSON.parse(value);
27
+ } catch {
28
+ return null;
29
+ }
30
+ }
31
+ function asRecord(value) {
32
+ return value && typeof value === "object" ? value : null;
33
+ }
34
+ function isNonEmptyString(value) {
35
+ return typeof value === "string" && value.length > 0;
36
+ }
37
+ function encodePublicProductCategorySelector(selector) {
38
+ if (!selector) return {};
39
+ switch (selector.kind) {
40
+ case "category": return {
41
+ productCategoryScope: "category",
42
+ productCategoryId: selector.productCategoryId
43
+ };
44
+ case "current-category-page":
45
+ if (selector.productCategoryEntryId.trim().length === 0) return {};
46
+ return {
47
+ productCategoryScope: "current-category-page",
48
+ productCategoryEntryId: selector.productCategoryEntryId
49
+ };
50
+ }
51
+ }
52
+ function parsePublicProductCategorySelector(value) {
53
+ const record = asRecord(typeof value === "string" ? parseJsonValue(value) : value);
54
+ if (!record) return;
55
+ if (record.kind === "category" && isNonEmptyString(record.productCategoryId)) return {
56
+ kind: "category",
57
+ productCategoryId: record.productCategoryId
58
+ };
59
+ if (record.kind === "current-category-page" && isNonEmptyString(record.productCategoryEntryId)) return {
60
+ kind: "current-category-page",
61
+ productCategoryEntryId: record.productCategoryEntryId
62
+ };
63
+ }
64
+ //#endregion
65
+ //#region src/client/responseMedia.ts
66
+ function materializeMediaNode(value, index) {
67
+ if (Array.isArray(value)) return value.map((item) => materializeMediaNode(item, index));
68
+ if (!value || typeof value !== "object") return value;
69
+ if ("identifier" in value) {
70
+ const reference = mediaSchema.safeParse(value);
71
+ if (reference.success) {
72
+ const resolution = resolveManagedMediaReference(reference.data, index);
73
+ if (resolution.kind === "resolved") {
74
+ const { identifier: _identifier, ...usage } = reference.data;
75
+ return {
76
+ ...usage,
77
+ asset: resolution.asset
78
+ };
79
+ }
80
+ }
81
+ }
82
+ return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, materializeMediaNode(item, index)]));
83
+ }
84
+ /** A malformed or repeated sidecar asset costs only its own images, never the whole response. */
85
+ function indexSidecarAssets(mediaAssets) {
86
+ if (!Array.isArray(mediaAssets) || !mediaAssets.length) return void 0;
87
+ return indexRenderableMediaAssets([...new Map(mediaAssets.flatMap((asset) => {
88
+ const parsed = renderableMediaAssetSchema.safeParse(asset);
89
+ return parsed.success ? [[parsed.data.id, parsed.data]] : [];
90
+ })).values()]);
91
+ }
92
+ /** Resolve render-only asset references before loader coercion removes response sidecars. */
93
+ function materializeLoaderMedia(payload) {
94
+ if (!payload || typeof payload !== "object" || !("mediaAssets" in payload)) return payload;
95
+ const index = indexSidecarAssets(payload.mediaAssets);
96
+ return index ? materializeMediaNode(payload, index) : payload;
97
+ }
98
+ /**
99
+ * Entry media arrives as references with its assets beside the entries. The
100
+ * page that later renders an entry has no record of those assets, so each
101
+ * reference carries its asset from here on.
102
+ */
103
+ function materializeEntriesMedia(response) {
104
+ const index = indexSidecarAssets(response.mediaAssets);
105
+ if (!index) return response;
106
+ return {
107
+ ...response,
108
+ entries: response.entries.map((entry) => ({
109
+ ...entry,
110
+ content: Object.fromEntries(Object.entries(entry.content).map(([key, value]) => [key, materializeMediaNode(value, index)]))
111
+ }))
112
+ };
113
+ }
114
+ //#endregion
115
+ export { SUPPORTED_LOADER_ENDPOINTS as a, parsePublicProductCategorySelector as i, materializeLoaderMedia as n, isSupportedLoaderEndpoint as o, encodePublicProductCategorySelector as r, materializeEntriesMedia as t };
@@ -1,23 +1,10 @@
1
1
  import { z } from "zod";
2
- //#region ../blocks/src/lib/typeGuards.ts
3
- /**
4
- * Strict record guard: excludes null, primitives, and arrays.
5
- */
2
+ //#region ../core/src/record-guards.ts
6
3
  function isRecord(value) {
7
4
  return typeof value === "object" && value !== null && !Array.isArray(value);
8
5
  }
9
- /**
10
- * Non-null object guard: includes arrays for behavior parity with legacy helpers.
11
- *
12
- * NOTE: This intentionally narrows to UnknownRecord for compatibility with existing
13
- * callsites even though arrays pass at runtime. Follow-up cleanup should replace
14
- * this API with a more precise predicate type and migrate consumers.
15
- */
16
- function isObjectRecord(value) {
17
- return typeof value === "object" && value !== null;
18
- }
19
6
  //#endregion
20
- //#region ../blocks/src/system/manifest/richTextSchema.ts
7
+ //#region ../core/src/rich-text-schema.ts
21
8
  /**
22
9
  * Shared Rich Text Schema
23
10
  *
@@ -120,6 +107,8 @@ function createRichTextDoc(paragraphs) {
120
107
  } : { type: "paragraph" })
121
108
  };
122
109
  }
110
+ //#endregion
111
+ //#region ../blocks/src/system/manifest/richTextSchema.ts
123
112
  function createHardBreakNode() {
124
113
  return { type: "hardBreak" };
125
114
  }
@@ -191,4 +180,4 @@ function createRichTextDocFromMarkdown(markdown) {
191
180
  };
192
181
  }
193
182
  //#endregion
194
- export { isObjectRecord as a, isRichTextDoc as i, createRichTextDoc as n, isRecord as o, createRichTextDocFromMarkdown as r, RichTextDocSchema as t };
183
+ export { isRecord as a, isRichTextDoc as i, RichTextDocSchema as n, createRichTextDoc as r, createRichTextDocFromMarkdown as t };
@@ -1,4 +1,4 @@
1
- import { t as createRiverbankClient } from "./client-07UeMDzA.mjs";
2
- import { t as loadPage } from "./loadPage-BwtVqpaA.mjs";
3
- import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-ClpaSlBb.mjs";
1
+ import { t as createRiverbankClient } from "./client-Bc8jI8zN.mjs";
2
+ import { t as loadPage } from "./loadPage-B4ZYpIcd.mjs";
3
+ import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-D61gpqHB.mjs";
4
4
  export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
@@ -1,6 +1,5 @@
1
- import { A as unsafeAsOpaqueButtonColourToken, I as isOnColorBackgroundCandidateToken, L as onColorTokenName, Ot as textColorValue, R as getTextColorForBackground, T as buttonVariantIdSchema, ht as surfaceForegroundDeclarations, i as formatButtonColourContractError, it as hexToRgb, t as compileButtonColourStates } from "./resolveButtonColourStates-lry2ORwX.mjs";
2
- import { D as renderCssDeclarations, E as resolvedButtonFocusDeclarations, O as cardBorderDeclarations, T as resolvedButtonColourDeclarations, _ as generateInputGroupCss, b as generateShadowCssVars, c as generateAllBlockVarsCss, d as generateTypographyCss, f as generateProgressCss, g as INPUT_GROUP_SELECTOR, h as INPUT_GROUP_FOCUS_SELECTOR, i as compileCustomCssRules, k as cardDecorationPseudoRules, m as INPUT_GROUP_ERROR_SELECTOR, p as generateStatusCss, t as ThemeScopeCore, u as THEME_RADIUS_CSS_VARS, v as generateCheckableCss, w as RESOLVED_BUTTON_DISABLED_DECLARATIONS, y as generateOpaquePanelCss } from "./ThemeScopeCore-BI2mld9R.mjs";
3
- import { o as parseCustomCssRules } from "./validation-CDd6m8Ry.mjs";
1
+ import { M as onColorTokenName, N as getTextColorForBackground, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ht as textColorValue, i as formatButtonColourContractError, j as isOnColorBackgroundCandidateToken, n as compileButtonColourStates, tt as surfaceForegroundDeclarations, x as buttonVariantIdSchema } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
2
+ import { A as cardBorderDeclarations, C as generateCheckableCss, D as resolvedButtonFocusDeclarations, E as resolvedButtonColourDeclarations, O as generateShadowCssVars, S as generateInputGroupCss, T as RESOLVED_BUTTON_DISABLED_DECLARATIONS, b as INPUT_GROUP_FOCUS_SELECTOR, f as THEME_RADIUS_CSS_VARS, h as generateStatusCss, i as compileCustomCssRules, j as cardDecorationPseudoRules, k as renderCssDeclarations, l as parseCustomCssRules, m as generateProgressCss, p as generateTypographyCss, t as ThemeScopeCore, u as generateAllBlockVarsCss, w as generateOpaquePanelCss, x as INPUT_GROUP_SELECTOR, y as INPUT_GROUP_ERROR_SELECTOR } from "./ThemeScopeCore-NAQ_zsFu.mjs";
4
3
  import { z } from "zod";
5
4
  import * as React$1 from "react";
6
5
  import { jsx } from "react/jsx-runtime";
@@ -1,5 +1,4 @@
1
- import { t as themeSchema$1 } from "./schema-C2PqHrMo.mjs";
2
- import { t as parseThemeForPersistence } from "./parseThemeForPersistence-CJMrEkze.mjs";
1
+ import { n as themeSchema$1, t as parseThemeForPersistence } from "./parseThemeForPersistence-pJPGfMrf.mjs";
3
2
  import * as fs from "fs/promises";
4
3
  import * as path from "path";
5
4
  //#region src/theme/loader.ts
@@ -1,4 +1,4 @@
1
- import { r as createRichTextDocFromMarkdown, t as RichTextDocSchema } from "./richTextSchema-Euhuj-7V.mjs";
1
+ import { n as RichTextDocSchema, t as createRichTextDocFromMarkdown } from "./richTextSchema-DQ2NBP0n.mjs";
2
2
  import { i as ALLOWED_TRANSFORM_IDS, n as ALLOWED_NODE_TYPES, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
3
3
  import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
4
4
  import { z } from "zod";
@@ -1,14 +1,63 @@
1
- import { u as builtinTransformDefinitions } from "./pageRenderPlan-BShULdc2.mjs";
2
- import { Di as blockSectionDeclarationShape, Ei as blockCategoryEnum, Fi as validateSdkBlockDeclaration, Ii as NodeSchema, Ja as parseMailingListProviderScope, Ni as validateManifestLookField, Oi as builtInBlockKindsSchema, Pi as sdkBlockPresentationShape, Ri as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, ki as fieldSchema, t as getBlockDefinition } from "./registry-TFPJdGQi.mjs";
1
+ import { u as builtinTransformDefinitions } from "./pageRenderPlan-ByVTA7-4.mjs";
2
+ import { Fa as fieldSchema, Ia as validateManifestLookField, Ma as blockCategoryEnum, Na as blockSectionDeclarationShape, Pa as builtInBlockKindsSchema, eo as parseMailingListProviderScope, ka as NodeSchema, ki as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, t as getBlockDefinition } from "./registry-Bh0Y25zH.mjs";
3
+ import { a as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-t6gs0cB7.mjs";
4
+ import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
3
5
  import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
4
6
  import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-BWRF7509.mjs";
5
- import { t as SUPPORTED_LOADER_ENDPOINTS } from "./prefetchBlockData-C4yUmz-r.mjs";
6
- import { r as SUPPORTED_LOADER_ENDPOINTS$1 } from "./publicProducts-W9hDRwjz.mjs";
7
+ import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-Bvx0SiIM.mjs";
7
8
  import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
8
- import { t as footerModeSchema } from "./mode-Cv_TG9gP.mjs";
9
9
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
10
10
  import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
11
11
  import { z } from "zod";
12
+ //#region ../site-contracts/src/blocks/sdkDeclaration.ts
13
+ const sdkBlockPresentationShape = {
14
+ variants: z.record(z.string().min(1), NodeSchema).optional(),
15
+ defaultVariant: z.string().min(1).optional(),
16
+ variantOptions: z.record(z.string().min(1), z.object({
17
+ label: z.string().min(1).optional(),
18
+ description: z.string().min(1).optional(),
19
+ icon: z.string().min(1).optional()
20
+ })).optional()
21
+ };
22
+ function validateSdkBlockDeclaration(data, ctx) {
23
+ validateTitleSource(data, ctx);
24
+ if (data.layout && data.variants) ctx.addIssue({
25
+ code: z.ZodIssueCode.custom,
26
+ message: "Custom block must define either `layout` or `variants`, not both",
27
+ path: ["variants"]
28
+ });
29
+ if (data.variants) validateVariantKeys(data, ctx);
30
+ }
31
+ function validateTitleSource(data, ctx) {
32
+ if (!data.titleSource) return;
33
+ (Array.isArray(data.titleSource) ? data.titleSource : [data.titleSource]).forEach((source, index) => {
34
+ if (data.fields.some((field) => field !== null && typeof field === "object" && "id" in field && field.id === source)) return;
35
+ ctx.addIssue({
36
+ code: z.ZodIssueCode.custom,
37
+ message: `titleSource must reference a valid field ID (got "${source}")`,
38
+ path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
39
+ });
40
+ });
41
+ }
42
+ function validateVariantKeys(data, ctx) {
43
+ const variants = data.variants ?? {};
44
+ if (Object.keys(variants).length === 0) ctx.addIssue({
45
+ code: z.ZodIssueCode.custom,
46
+ message: "`variants` must contain at least one variant key",
47
+ path: ["variants"]
48
+ });
49
+ if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(variants, data.defaultVariant)) ctx.addIssue({
50
+ code: z.ZodIssueCode.custom,
51
+ message: "`defaultVariant` must be a key present in `variants`",
52
+ path: ["defaultVariant"]
53
+ });
54
+ Object.keys(data.variantOptions ?? {}).filter((key) => !Object.prototype.hasOwnProperty.call(variants, key)).forEach((key) => ctx.addIssue({
55
+ code: z.ZodIssueCode.custom,
56
+ message: "`variantOptions` key must exist in `variants`",
57
+ path: ["variantOptions", key]
58
+ }));
59
+ }
60
+ //#endregion
12
61
  //#region ../api/src/utils/isRecord.ts
13
62
  function isRecord(value) {
14
63
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -20,7 +69,7 @@ function isRecord(value) {
20
69
  *
21
70
  * Goal: a single source-of-truth for link shapes used across dashboard + SDK.
22
71
  * - Types live in `packages/api/src/navigation/types.ts`
23
- * - Schemas live here and are tied to types via `satisfies z.ZodType<...>`
72
+ * - Schemas live here and are tied to types via `satisfies z.core.$ZodType<...>`
24
73
  */
25
74
  const portalLinkPayloadSchema = z.object({
26
75
  kind: z.literal("portal"),
@@ -93,7 +142,7 @@ z.discriminatedUnion("kind", navigationLinkInputSchemaOptions);
93
142
  *
94
143
  * Goal: a single source-of-truth for request payload shapes used across dashboard + SDK.
95
144
  * - Endpoint request/response types live in `packages/api/src/types.ts`
96
- * - Schemas live here and are tied to those types via `satisfies z.ZodType<...>`
145
+ * - Schemas live here and are tied to those types via `satisfies z.core.$ZodType<...>`
97
146
  *
98
147
  * NOTE: These schemas represent the *wire/input* shape for API requests.
99
148
  * Service-layer code should parse/normalize again (defaults/refinements) into domain types.
@@ -137,14 +186,14 @@ const dashboardConfigSchema$1 = z.object({
137
186
  navigation: dashboardNavigationConfigSchema$1.optional()
138
187
  }).strip();
139
188
  /**
140
- * Canonical field schema comes from @riverbankcms/blocks.
189
+ * Canonical field schema comes from @riverbankcms/site-contracts/block-manifest.
141
190
  *
142
191
  * It accepts FieldDefinitionInput (pre-defaults) and outputs FieldDefinition (post-defaults).
143
192
  * This `satisfies` assertion prevents drift in the *accepted wire shape* without forcing
144
193
  * the schema output type to match the input type.
145
194
  */
146
195
  const fieldDefinitionInputSchema = unsafeRetypeZodSchema(fieldSchema);
147
- const sdkLoaderEndpointSchema$1 = z.enum(SUPPORTED_LOADER_ENDPOINTS$1);
196
+ const sdkLoaderEndpointSchema$1 = z.enum(SUPPORTED_LOADER_ENDPOINTS);
148
197
  const loaderFallbackScalarSchema = z.union([
149
198
  z.string(),
150
199
  z.number(),
@@ -961,7 +1010,7 @@ const siteStyleConfigSchema = z.object({
961
1010
  *
962
1011
  * Derived from SUPPORTED_LOADER_ENDPOINTS - the single source of truth.
963
1012
  */
964
- const sdkLoaderEndpointSchema = z.enum(SUPPORTED_LOADER_ENDPOINTS);
1013
+ const sdkLoaderEndpointSchema = z.enum(SUPPORTED_LOADER_ENDPOINTS$1);
965
1014
  const allowedTransformIds = new Set(builtinTransformDefinitions.map((transform) => transform.id));
966
1015
  /**
967
1016
  * A binding expression for dynamic loader params.
@@ -9,6 +9,6 @@
9
9
  * 1. This constant
10
10
  * 2. The "version" field in package.json
11
11
  */
12
- const SDK_VERSION = "0.166.0";
12
+ const SDK_VERSION = "0.168.0";
13
13
  //#endregion
14
14
  export { SDK_VERSION as t };